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 62df7b43
authored
May 11, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
01f320ca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
18 deletions
src/views/DeliverList/deliverAdd.vue
src/views/DeliverList/index.vue
src/views/purchaseOrder/index.vue
src/views/DeliverList/deliverAdd.vue
View file @
62df7b4
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<GLTable
:tableData=
"item.goodsWarehousingList"
:noDataImg=
"url"
:tableParams=
"tableParams"
:hasPage=
"false"
>
<GLTable
:tableData=
"item.goodsWarehousingList"
:noDataImg=
"url"
:tableParams=
"tableParams"
:hasPage=
"false"
>
<template
slot=
"increaseStockNum"
slot-scope=
"scope"
>
<template
slot=
"increaseStockNum"
slot-scope=
"scope"
>
<el-form-item
style=
"margin-bottom: 0px"
:prop=
"'goodsWarehousingList.' + scope.index + '.increaseStockNum'"
:rules=
"rules.increaseStockNum"
>
<el-form-item
style=
"margin-bottom: 0px"
:prop=
"'goodsWarehousingList.' + scope.index + '.increaseStockNum'"
:rules=
"rules.increaseStockNum"
>
<el-input
v-model=
"scope.scope.increaseStockNum"
placeholder=
"请输入"
@
blur=
"handleCalculate(scope.scope, 'increaseStockNum')"
></el-input>
<el-input
v-model=
"scope.scope.increaseStockNum"
placeholder=
"请输入"
@
blur=
"handleCalculate(scope.scope, 'increaseStockNum'
, index
)"
></el-input>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
<!-- 入库仓库 -->
<!-- 入库仓库 -->
...
@@ -150,7 +150,12 @@ export default {
...
@@ -150,7 +150,12 @@ export default {
},
},
created
()
{},
created
()
{},
methods
:
{
methods
:
{
handleCalculate
(
data
,
key
)
{
handleCalculate
(
data
,
key
,
index
)
{
console
.
log
(
data
[
key
],
index
)
if
(
data
[
key
]
>
this
.
detailInfo
.
deliveryDetailList
[
index
].
stockNum
)
{
data
[
key
]
=
this
.
detailInfo
.
deliveryDetailList
[
index
].
stockNum
return
}
data
[
key
]
=
data
[
key
]
?
new
BigNumber
(
data
[
key
]).
dp
(
2
).
toNumber
()
:
''
data
[
key
]
=
data
[
key
]
?
new
BigNumber
(
data
[
key
]).
dp
(
2
).
toNumber
()
:
''
},
},
getMerchantList
()
{
getMerchantList
()
{
...
@@ -168,10 +173,15 @@ export default {
...
@@ -168,10 +173,15 @@ export default {
item
.
goodsWarehousingList
[
0
].
yqMerchantName
=
storeUsageList
[
0
].
merchantName
item
.
goodsWarehousingList
[
0
].
yqMerchantName
=
storeUsageList
[
0
].
merchantName
item
.
goodsWarehousingList
[
0
].
yqMerchantId
=
storeUsageList
[
0
].
merchantNo
item
.
goodsWarehousingList
[
0
].
yqMerchantId
=
storeUsageList
[
0
].
merchantNo
})
})
this
.
getRefByYqShopList
(
deliveryDetailList
[
0
].
goodsWarehousingList
[
0
],
storeUsageList
[
0
].
merchantNo
)
},
},
getRefByYqShopList
(
value
)
{
getRefByYqShopList
(
data
,
value
)
{
this
.
$apis
.
purchaseShopping
.
get4SRefByYqShopList
({
scene
:
1
,
merchantId
:
value
}).
then
(
res
=>
{
this
.
$apis
.
purchaseShopping
.
get4SRefByYqShopList
({
scene
:
1
,
merchantId
:
value
}).
then
(
res
=>
{
this
.
refByYqShopList
=
res
this
.
refByYqShopList
=
res
this
.
refByYqShopList
.
unshift
({
merchantName
:
data
.
yqMerchantName
,
merchantId
:
data
.
yqMerchantId
})
})
})
},
},
handleSelect
(
data
,
id
)
{
handleSelect
(
data
,
id
)
{
...
@@ -181,7 +191,7 @@ export default {
...
@@ -181,7 +191,7 @@ export default {
data
.
merchantId
=
''
data
.
merchantId
=
''
}
}
})
})
this
.
getRefByYqShopList
(
id
)
this
.
getRefByYqShopList
(
data
,
id
)
},
},
handleStoreSelect
(
data
,
id
)
{
handleStoreSelect
(
data
,
id
)
{
this
.
refByYqShopList
.
forEach
(
item
=>
{
this
.
refByYqShopList
.
forEach
(
item
=>
{
...
@@ -214,16 +224,16 @@ export default {
...
@@ -214,16 +224,16 @@ export default {
})
})
},
},
handleDelete
(
index
,
line
)
{
handleDelete
(
index
,
line
)
{
this
.
detailInfo
.
deliveryDetailList
[
index
].
goodsWarehousingList
.
splice
(
line
,
1
)
if
(
this
.
detailInfo
.
deliveryDetailList
[
index
].
goodsWarehousingList
.
length
>
1
)
{
this
.
detailInfo
.
deliveryDetailList
[
index
].
goodsWarehousingList
.
splice
(
line
,
1
)
}
},
},
addLineTable
(
index
)
{
addLineTable
(
index
)
{
let
{
let
{
storeUsageList
}
=
this
storeUsageList
}
=
this
this
.
detailInfo
.
deliveryDetailList
[
index
].
goodsWarehousingList
.
push
({
this
.
detailInfo
.
deliveryDetailList
[
index
].
goodsWarehousingList
.
push
({
increaseStockNum
:
''
,
increaseStockNum
:
''
,
yqMerchantId
:
storeUsageList
.
length
==
1
?
storeUsageList
[
0
].
merchantNo
:
''
,
yqMerchantId
:
storeUsageList
.
length
==
1
?
storeUsageList
[
0
].
merchantNo
:
''
,
yqMerchantName
:
storeUsageList
.
length
==
1
?
storeUsageList
[
0
].
merchantName
:
''
,
yqMerchantName
:
storeUsageList
.
length
==
1
?
storeUsageList
[
0
].
merchantName
:
''
,
merchantId
:
''
,
merchantId
:
''
,
merchantName
:
''
merchantName
:
''
})
})
...
...
src/views/DeliverList/index.vue
View file @
62df7b4
...
@@ -63,13 +63,15 @@ export default {
...
@@ -63,13 +63,15 @@ export default {
label
:
'承运单号'
,
label
:
'承运单号'
,
name
:
'deliveryNumber'
,
name
:
'deliveryNumber'
,
type
:
'input'
,
type
:
'input'
,
isClear
:
true
isClear
:
true
,
maxlength
:
50
},
},
{
{
label
:
'承运公司'
,
label
:
'承运公司'
,
name
:
'deliveryCompany'
,
name
:
'deliveryCompany'
,
type
:
'input'
,
type
:
'input'
,
isClear
:
true
isClear
:
true
,
maxlength
:
20
},
},
{
{
label
:
'发货时间'
,
label
:
'发货时间'
,
...
@@ -82,13 +84,15 @@ export default {
...
@@ -82,13 +84,15 @@ export default {
label
:
'所属订单'
,
label
:
'所属订单'
,
name
:
'orderCode'
,
name
:
'orderCode'
,
type
:
'input'
,
type
:
'input'
,
isClear
:
true
isClear
:
true
,
maxlength
:
20
},
},
{
{
label
:
'所属商户'
,
label
:
'所属商户'
,
name
:
'merchantName'
,
name
:
'merchantName'
,
type
:
'input'
,
type
:
'input'
,
isClear
:
true
isClear
:
true
,
maxlength
:
50
},
},
{
{
label
:
'状态'
,
label
:
'状态'
,
...
@@ -151,7 +155,7 @@ export default {
...
@@ -151,7 +155,7 @@ export default {
label
:
'发货时间'
,
label
:
'发货时间'
,
prop
:
'deliveryDate'
,
prop
:
'deliveryDate'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
dayjs
(
cellValue
.
deliveryDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
return
cellValue
.
deliveryDate
?
dayjs
(
cellValue
.
deliveryDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
):
'--'
}
}
},
},
{
{
...
@@ -200,8 +204,9 @@ export default {
...
@@ -200,8 +204,9 @@ export default {
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
this
.
searchForm
.
placeOrderTimeStr
.
length
)
{
if
(
this
.
searchForm
.
placeOrderTimeStr
.
length
)
{
params
.
deliveryDateStart
=
new
Date
(
this
.
searchForm
.
placeOrderTimeStr
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
params
.
deliveryDateEnd
=
new
Date
(
this
.
searchForm
.
placeOrderTimeStr
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
params
.
deliveryDateStart
=
dayjs
(
this
.
searchForm
.
placeOrderTimeStr
[
0
]).
format
(
'YYYY-MM-DD'
)
+
' 00:00:00'
params
.
deliveryDateEnd
=
dayjs
(
this
.
searchForm
.
placeOrderTimeStr
[
1
]).
format
(
'YYYY-MM-DD'
)
+
' 23:59:59'
}
}
delete
params
.
placeOrderTimeStr
delete
params
.
placeOrderTimeStr
...
...
src/views/purchaseOrder/index.vue
View file @
62df7b4
...
@@ -83,7 +83,8 @@ export default {
...
@@ -83,7 +83,8 @@ export default {
label
:
'订单编号'
,
label
:
'订单编号'
,
name
:
'orderCode'
,
name
:
'orderCode'
,
type
:
'input'
,
type
:
'input'
,
isClear
:
true
isClear
:
true
,
maxlength
:
20
},
},
{
{
label
:
'订单状态'
,
label
:
'订单状态'
,
...
...
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