Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
b07cd6fb
Commit
b07cd6fb
authored
Oct 15, 2022
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拆单应收款bug修复
parent
60ece7c1
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
151 additions
and
69 deletions
+151
-69
orderHandle.js
src/api/ecw/orderHandle.js
+10
-1
index.vue
src/components/CustomerSelector/index.vue
+1
-1
creatCollection.vue
src/views/ecw/financial/creatCollection.vue
+15
-3
printVoucher.vue
src/views/ecw/financial/printVoucher.vue
+90
-50
splitApply.vue
src/views/ecw/order/splitApply.vue
+35
-14
No files found.
src/api/ecw/orderHandle.js
View file @
b07cd6fb
...
@@ -127,4 +127,13 @@ export function getMergeListByMergeId(params){
...
@@ -127,4 +127,13 @@ export function getMergeListByMergeId(params){
method
:
'
get
'
,
method
:
'
get
'
,
params
params
})
})
}
}
\ No newline at end of file
// 计价单位的数量参数是否必传
export
function
quantitycheck
(
query
)
{
return
request
({
url
:
'
/order/split-item/quantity/check
'
,
method
:
'
get
'
,
params
:
query
})
}
src/components/CustomerSelector/index.vue
View file @
b07cd6fb
...
@@ -59,7 +59,7 @@ export default {
...
@@ -59,7 +59,7 @@ export default {
params
.
searchKey
=
keyword
params
.
searchKey
=
keyword
this
.
loading
=
true
this
.
loading
=
true
getCustomerSelect
(
params
)
getCustomerSelect
(
params
)
.
then
(
res
=>
this
.
list
=
res
.
data
)
.
then
(
res
=>
this
.
list
=
res
.
data
.
list
)
.
finally
(()
=>
this
.
loading
=
false
)
.
finally
(()
=>
this
.
loading
=
false
)
}
}
}
}
...
...
src/views/ecw/financial/creatCollection.vue
View file @
b07cd6fb
...
@@ -112,7 +112,11 @@
...
@@ -112,7 +112,11 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('箱数')"
align=
"center"
prop=
"num"
/>
<el-table-column
:label=
"$t('箱数')"
align=
"center"
prop=
"num"
/>
<el-table-column
:label=
"$t('体积/重量')"
align=
"center"
prop=
"weight"
/>
<el-table-column
:label=
"$t('体积/重量')"
align=
"center"
prop=
"weight"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
volume
}}
/
{{
scope
.
row
.
weight
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('收入类型')"
align=
"center"
prop=
"feeType"
>
<el-table-column
:label=
"$t('收入类型')"
align=
"center"
prop=
"feeType"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<dict-tag
<dict-tag
...
@@ -510,7 +514,11 @@
...
@@ -510,7 +514,11 @@
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('箱数')
"
align
=
"
center
"
prop
=
"
num
"
/>
<
el
-
table
-
column
:
label
=
"
$t('箱数')
"
align
=
"
center
"
prop
=
"
num
"
/>
<
el
-
table
-
column
:
label
=
"
$t('体积/重量')
"
align
=
"
center
"
prop
=
"
weight
"
/>
<
el
-
table
-
column
:
label
=
"
$t('体积/重量')
"
align
=
"
center
"
prop
=
"
weight
"
>
<
template
slot
-
scope
=
"
scope
"
>
{{
scope
.
row
.
volume
}}
/
{{
scope
.
row
.
weight
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('发货人')
"
align
=
"
center
"
prop
=
"
consignorName
"
/>
<
el
-
table
-
column
:
label
=
"
$t('发货人')
"
align
=
"
center
"
prop
=
"
consignorName
"
/>
<
el
-
table
-
column
:
label
=
"
$t('收货人')
"
align
=
"
center
"
prop
=
"
consigneeName
"
/>
<
el
-
table
-
column
:
label
=
"
$t('收货人')
"
align
=
"
center
"
prop
=
"
consigneeName
"
/>
<
el
-
table
-
column
:
label
=
"
$t('订单状态')
"
align
=
"
center
"
prop
=
"
status
"
>
<
el
-
table
-
column
:
label
=
"
$t('订单状态')
"
align
=
"
center
"
prop
=
"
status
"
>
...
@@ -571,7 +579,11 @@
...
@@ -571,7 +579,11 @@
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('箱数')
"
align
=
"
center
"
prop
=
"
num
"
/>
<
el
-
table
-
column
:
label
=
"
$t('箱数')
"
align
=
"
center
"
prop
=
"
num
"
/>
<
el
-
table
-
column
:
label
=
"
$t('体积/重量')
"
align
=
"
center
"
prop
=
"
weight
"
/>
<
el
-
table
-
column
:
label
=
"
$t('体积/重量')
"
align
=
"
center
"
prop
=
"
weight
"
>
<
template
slot
-
scope
=
"
scope
"
>
{{
scope
.
row
.
volume
}}
/
{{
scope
.
row
.
weight
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('收入类型')
"
align
=
"
center
"
prop
=
"
feeType
"
>
<
el
-
table
-
column
:
label
=
"
$t('收入类型')
"
align
=
"
center
"
prop
=
"
feeType
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
dict
-
tag
<
dict
-
tag
...
...
src/views/ecw/financial/printVoucher.vue
View file @
b07cd6fb
This diff is collapsed.
Click to expand it.
src/views/ecw/order/splitApply.vue
View file @
b07cd6fb
...
@@ -214,26 +214,29 @@
...
@@ -214,26 +214,29 @@
</div>
</div>
</el-dialog>
</el-dialog>
<!-- 对话框(添加 / 修改) -->
<!-- 对话框(添加 / 修改) -->
<el-dialog
:title=
"$t('放入品名')"
:visible.sync=
"shopOpen"
width=
"
4
00px"
append-to-body
>
<el-dialog
:title=
"$t('放入品名')"
:visible.sync=
"shopOpen"
width=
"
5
00px"
append-to-body
>
<el-form
ref=
"shopForm"
:model=
"shopForm"
:rules=
"shopRules"
label-width=
"
8
0px"
>
<el-form
ref=
"shopForm"
:model=
"shopForm"
:rules=
"shopRules"
label-width=
"
12
0px"
>
<el-row>
<el-row>
<el-form-item
:label=
"$t('中文品名')+':'"
v-if=
"splitData.length>0"
>
<el-form-item
:label=
"$t('中文品名')+':'"
v-if=
"splitData.length>0"
>
<el-select
v-model=
"shopForm.p
rodTitleZh
"
:placeholder=
"$t('请选择中文品名')"
@
change=
"changeProdTitleZh"
clearable
>
<el-select
v-model=
"shopForm.p
ordid
"
:placeholder=
"$t('请选择中文品名')"
@
change=
"changeProdTitleZh"
clearable
>
<el-option
v-for=
"item in splitData[0].orderSplitItemBackVOList"
:label=
"item.prodTitleZh"
:value=
"item.
prodTitleZh
"
:key=
"item.prodTitleZh"
></el-option>
<el-option
v-for=
"item in splitData[0].orderSplitItemBackVOList"
:label=
"item.prodTitleZh"
:value=
"item.
id
"
:key=
"item.prodTitleZh"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
<el-row>
<el-row>
<el-form-item
:label=
"$t('英文品名')+':'"
v-if=
"splitData.length>0"
>
<el-form-item
:label=
"$t('英文品名')+':'"
v-if=
"splitData.length>0"
>
<el-select
v-model=
"shopForm.p
rodTitleEn"
:placeholder=
"$t('请选择英文品名')"
@
change=
"changeProdTitleEn
"
clearable
>
<el-select
v-model=
"shopForm.p
ordid"
:placeholder=
"$t('请选择英文品名')"
@
change=
"changeProdTitleZh
"
clearable
>
<el-option
v-for=
"item in splitData[0].orderSplitItemBackVOList"
:label=
"item.prodTitleEn"
:value=
"item.
prodTitleEn
"
:key=
"item.prodTitleEn"
></el-option>
<el-option
v-for=
"item in splitData[0].orderSplitItemBackVOList"
:label=
"item.prodTitleEn"
:value=
"item.
id
"
:key=
"item.prodTitleEn"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('剩余箱数')+':'"
>
<el-form-item
:label=
"$t('剩余箱数')+':'"
>
{{shopForm.sum||0}}
{{shopForm.sum||0}}
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('放入箱数')+':'"
>
<el-form-item
:label=
"$t('放入箱数')+':'"
>
<el-input-number
v-model=
"shopForm.num"
controls-position=
"right"
:min=
"1"
:max=
"shopForm.sum"
></el-input-number>
<el-input-number
v-model=
"shopForm.num"
@
change=
"numChange"
controls-position=
"right"
:min=
"1"
:max=
"shopForm.sum"
></el-input-number>
</el-form-item>
<el-form-item
v-if=
"quantityshow"
:label=
"$t('放入数量')+'('+$t('个')+')'+':'"
>
<el-input-number
v-model=
"shopForm.quantity"
controls-position=
"right"
:min=
"1"
:max=
"quantitySum"
></el-input-number>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('备注信息')+':'"
>
<el-form-item
:label=
"$t('备注信息')+':'"
>
<el-input
v-model=
"shopForm.remarks"
></el-input>
<el-input
v-model=
"shopForm.remarks"
></el-input>
...
@@ -265,7 +268,7 @@
...
@@ -265,7 +268,7 @@
<
script
>
<
script
>
import
{
getDictData
,
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
import
{
getDictData
,
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
import
{
getSplitList
,
splitApply
,
createSplit
,
cancelApply
,
createSplitItem
,
deleteSplitItem
,
deleteSplit
}
from
"
@/api/ecw/orderHandle
"
import
{
getSplitList
,
splitApply
,
createSplit
,
cancelApply
,
createSplitItem
,
deleteSplitItem
,
deleteSplit
,
quantitycheck
}
from
"
@/api/ecw/orderHandle
"
import
{
getWarehouseList
}
from
'
@/api/ecw/warehouse
'
import
{
getWarehouseList
}
from
'
@/api/ecw/warehouse
'
import
{
getChannelList
}
from
'
@/api/ecw/channel
'
import
{
getChannelList
}
from
'
@/api/ecw/channel
'
import
WorkFlow
from
'
@/components/WorkFlow
'
import
WorkFlow
from
'
@/components/WorkFlow
'
...
@@ -297,7 +300,7 @@ export default {
...
@@ -297,7 +300,7 @@ export default {
importCityList
:[],
importCityList
:[],
selectedUsers
:[],
selectedUsers
:[],
shopOpen
:
false
,
shopOpen
:
false
,
quantityshow
:
false
,
shopForm
:{},
shopForm
:{},
// 表单校验
// 表单校验
rules
:
{
rules
:
{
...
@@ -318,7 +321,8 @@ export default {
...
@@ -318,7 +321,8 @@ export default {
page
:
1
,
page
:
1
,
rows
:
20
rows
:
20
},
},
splitItemIndex
:
0
splitItemIndex
:
0
,
quantitySum
:
0
};
};
},
},
created
()
{
created
()
{
...
@@ -457,6 +461,7 @@ export default {
...
@@ -457,6 +461,7 @@ export default {
addShop
(
index
){
addShop
(
index
){
this
.
splitItemIndex
=
index
this
.
splitItemIndex
=
index
this
.
shopOpen
=
true
this
.
shopOpen
=
true
},
},
addSplit
(){
addSplit
(){
this
.
form
.
transportId
=
this
.
orderData
.
transportId
this
.
form
.
transportId
=
this
.
orderData
.
transportId
...
@@ -466,22 +471,38 @@ export default {
...
@@ -466,22 +471,38 @@ export default {
if
(
this
.
orderData
.
logisticsInfoDto
&&
this
.
orderData
.
logisticsInfoDto
.
channelId
){
if
(
this
.
orderData
.
logisticsInfoDto
&&
this
.
orderData
.
logisticsInfoDto
.
channelId
){
this
.
form
.
channelId
=
this
.
orderData
.
logisticsInfoDto
.
channelId
this
.
form
.
channelId
=
this
.
orderData
.
logisticsInfoDto
.
channelId
}
}
}
}
this
.
open
=
true
this
.
open
=
true
},
},
changeProdTitleZh
(){
changeProdTitleZh
(
val
){
var
list
=
[]
var
list
=
[]
list
=
this
.
splitData
[
0
].
orderSplitItemBackVOList
.
filter
(
item
=>
item
.
prodTitleZh
==
this
.
shopForm
.
prodTitleZh
)
list
=
this
.
splitData
[
0
].
orderSplitItemBackVOList
.
filter
(
item
=>
item
.
id
==
val
)
this
.
shopForm
.
sum
=
list
[
0
].
num
this
.
shopForm
.
sum
=
list
[
0
].
num
this
.
quantitySum
=
list
[
0
].
quantity
this
.
shopForm
.
orderItemId
=
list
[
0
].
orderItemId
this
.
shopForm
.
orderItemId
=
list
[
0
].
orderItemId
this
.
shopForm
.
prodTitleEn
=
list
[
0
].
prodTitleEn
this
.
shopForm
.
prodTitleEn
=
list
[
0
].
prodTitleEn
this
.
shopForm
.
prodTitleZh
=
list
[
0
].
prodTitleZh
var
params
=
{
'
seaFreightVolume
'
:
list
[
0
].
seaFreightVolume
,
'
clearanceFreightVolume
'
:
list
[
0
].
clearanceFreightVolume
}
console
.
log
(
params
)
this
.
numcheck
(
params
)
},
numcheck
(
params
){
quantitycheck
(
params
).
then
(
res
=>
{
this
.
quantityshow
=
res
.
data
})
},
numChange
(){
var
sum
=
parseInt
(
this
.
quantitySum
/
this
.
shopForm
.
num
)
this
.
$set
(
this
.
shopForm
,
'
quantity
'
,
sum
)
},
},
changeProdTitleEn
(){
changeProdTitleEn
(){
var
list
=
[]
var
list
=
[]
list
=
this
.
splitData
[
0
].
orderSplitItemBackVOList
.
filter
(
item
=>
item
.
prodTitleEn
==
this
.
shopForm
.
prodTitleEn
)
list
=
this
.
splitData
[
0
].
orderSplitItemBackVOList
.
filter
(
item
=>
item
.
prodTitleEn
==
this
.
shopForm
.
prodTitleEn
)
this
.
shopForm
.
sum
=
list
[
0
].
num
this
.
shopForm
.
sum
=
list
[
0
].
num
this
.
quantitySum
=
list
[
0
].
quantity
this
.
shopForm
.
prodTitleZh
=
list
[
0
].
prodTitleZh
this
.
shopForm
.
prodTitleZh
=
list
[
0
].
prodTitleZh
},
},
haddleAdd
(){
haddleAdd
(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment