Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-purchase
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8857a722
authored
Apr 26, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
46a62da8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
package.json
src/config/index.js
src/views/purchaseOrder/components/orderDetailDialog.vue
src/views/purchaseOrder/into.vue
package.json
View file @
8857a72
...
...
@@ -14,7 +14,7 @@
"dayjs"
:
"^1.10.7"
,
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^2.0.
8
"
,
"glsx-common"
:
"^2.0.
9
"
,
"glsx-components"
:
"^1.5.7"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
...
...
src/config/index.js
View file @
8857a72
...
...
@@ -17,7 +17,7 @@ export const fetchConfig = function (isEnv = true) {
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
let
params
=
{
moduleName
:
'purchase'
,
mockUrl
:
'https://oss-config.glsx.com.cn/mock/643e06c7ea3da3a974f54357/purchase/config'
,
httpOptions
:
{
Headers
:
{
refererurl
:
location
.
href
},
request
:
{
timeout
:
30000
}
}
}
let
params
=
{
moduleName
:
'purchase'
,
mockUrl
:
'https://oss-config.glsx.com.cn/mock/643e06c7ea3da3a974f54357/purchase/config'
,
env
:
'test'
,
httpOptions
:
{
Headers
:
{
refererurl
:
location
.
href
},
request
:
{
timeout
:
30000
}
}
}
return
utils
.
getConfig
(
params
)
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/616d28231072f92988f059fb/home/config')
// return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('http://config-center-backend.test.glsx.com/glsxAdmin/config?moduleUrl=home').then(res => res)
...
...
src/views/purchaseOrder/components/orderDetailDialog.vue
View file @
8857a72
...
...
@@ -83,7 +83,9 @@ export default {
label
:
'采购数量'
,
prop
:
'goodsNumber'
,
formatter
:
cellValue
=>
{
return
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`
${
cellValue
.
goodsNumber
}
卷/
${
cellValue
.
conversionValue
?
cellValue
.
goodsNumber
*
cellValue
.
conversionValue
:
'-'
}
米`
:
`
${
cellValue
.
goodsNumber
}
件`
let
condition
=
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`
${
cellValue
.
goodsNumber
}
卷/
${
cellValue
.
conversionValue
?
cellValue
.
goodsNumber
*
cellValue
.
conversionValue
:
'-'
}
米`
:
`
${
cellValue
.
goodsNumber
}
件`
return
this
.
paramsObj
.
purchaseType
==
1
?
condition
:
`
${
cellValue
.
goodsNumber
}
件`
}
},
{
...
...
src/views/purchaseOrder/into.vue
View file @
8857a72
...
...
@@ -166,8 +166,8 @@ export default {
},
getData
()
{
this
.
$apis
.
purchaseShopping
.
selectByOrderCode
({
orderCode
:
this
.
orderCode
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
formdata
.
tableData
=
res
this
.
formdata
.
tableData
.
goodsCode
=
res
.
type
})
},
handleDelete
(
index
)
{
...
...
@@ -189,6 +189,7 @@ export default {
},
handleCalculate
(
data
,
key
)
{
if
(
key
==
'goodsNumber'
)
{
data
[
key
]
=
new
BigNumber
(
data
[
key
]).
dp
(
0
).
toNumber
()
data
.
goodsTotalPrice
=
''
data
.
upgradePurchasePrice
=
''
return
...
...
@@ -198,7 +199,6 @@ export default {
data
[
key
]
=
new
BigNumber
(
data
[
key
]).
dp
(
2
).
toNumber
()
let
params
=
{
upgradePurchasePrice
:
data
=>
{
data
.
goodsTotalPrice
=
new
BigNumber
(
data
.
upgradePurchasePrice
)
.
times
(
data
.
goodsNumber
)
.
dp
(
2
)
...
...
@@ -214,7 +214,7 @@ export default {
params
[
key
](
data
)
},
addLine
()
{
this
.
formdata
.
tableData
.
push
({
this
.
formdata
.
tableData
.
unshift
({
upgradeGoodsId
:
''
,
goodsCode
:
''
,
goodsName
:
''
,
...
...
@@ -249,6 +249,6 @@ export default {
padding-top
:
2px
;
z-index
:
9999999
;
position
:
static
;
}
}
}
</
style
>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment