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
42a7ed14
Commit
42a7ed14
authored
Nov 04, 2022
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拆单合单bug修复
parent
754f3373
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
81 additions
and
52 deletions
+81
-52
paymentVoucher.vue
src/views/ecw/financial/paymentVoucher.vue
+7
-7
receiptDetail.vue
src/views/ecw/financial/receiptDetail.vue
+50
-28
detail.vue
src/views/ecw/offer/detail.vue
+1
-1
singleApply.vue
src/views/ecw/order/singleApply.vue
+1
-1
splitApply.vue
src/views/ecw/order/splitApply.vue
+22
-15
No files found.
src/views/ecw/financial/paymentVoucher.vue
View file @
42a7ed14
...
...
@@ -133,17 +133,17 @@
class
-
name
=
"
small-padding fixed-width
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
el
-
button
v
-
if
=
"
scope.row.state == 1 || scope.row.state == 3
"
size
=
"
mini
"
v
-
hasPermi
=
"
['ecw:verification:update']
"
@
click
=
"
handleAdd(scope.row.id)
"
type
=
"
text
"
>
{{
$t
(
'
编辑
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 1 || scope.row.state == 3
"
size
=
"
mini
"
v
-
hasPermi
=
"
['ecw:
verification
:update']
"
type
=
"
text
"
@
click
=
"
examineClick(scope.row.id)
"
>
{{
$t
(
'
审核
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 1 || scope.row.state == 3
"
size
=
"
mini
"
@
click
=
"
handleAdd(scope.row.id)
"
type
=
"
text
"
>
{{
$t
(
'
编辑
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 1 || scope.row.state == 3
"
size
=
"
mini
"
v
-
hasPermi
=
"
['ecw:
payment
:update']
"
type
=
"
text
"
@
click
=
"
examineClick(scope.row.id)
"
>
{{
$t
(
'
审核
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 2
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:
verification
:update']
"
@
click
=
"
verifyCancelClick(scope.row)
"
>
{{
$t
(
'
反审核
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 2
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:
verification
:update']
"
@
click
=
"
verificationClick(scope.row)
"
>
{{
$t
(
'
核销
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 2
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:
payment
:update']
"
@
click
=
"
verifyCancelClick(scope.row)
"
>
{{
$t
(
'
反审核
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 2
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:
payment
:update']
"
@
click
=
"
verificationClick(scope.row)
"
>
{{
$t
(
'
核销
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 4
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:
verification
:update']
"
@
click
=
"
verificationCancelClick(scope.row)
"
>
{{
$t
(
'
反核销
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 4
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:
payment
:update']
"
@
click
=
"
verificationCancelClick(scope.row)
"
>
{{
$t
(
'
反核销
'
)
}}
<
/el-button
>
<!--
<
el
-
button
v
-
if
=
"
scope.row.state == 3
"
size
=
"
mini
"
type
=
"
text
"
>
开票
<
/el-button> --
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
toprint(scope.row.id)
"
v
-
hasPermi
=
"
['ecw:
verification
:query']
"
>
{{
$t
(
'
打印
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 1 || scope.row.state == 3
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:
verification
:delete']
"
@
click
=
"
deleteClick(scope.row)
"
>
{{
$t
(
'
删除
'
)
}}
<
/el-button
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
toprint(scope.row.id)
"
v
-
hasPermi
=
"
['ecw:
payment
:query']
"
>
{{
$t
(
'
打印
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state == 1 || scope.row.state == 3
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:
payment
:delete']
"
@
click
=
"
deleteClick(scope.row)
"
>
{{
$t
(
'
删除
'
)
}}
<
/el-button
>
<!--
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
open = true
"
>
导出订单
<
/el-button> --
>
<
/template
>
<
/el-table-column
>
...
...
src/views/ecw/financial/receiptDetail.vue
View file @
42a7ed14
...
...
@@ -47,7 +47,7 @@
<el-table-column
:label=
"$t('总金额')"
align=
"center"
prop=
"totalAmount"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
totalAmount
}}
</span>
<
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('优惠金额')"
align=
"center"
>
...
...
@@ -176,9 +176,10 @@
<
template
slot
-
scope
=
"
scope
"
>
<
span
v
-
if
=
"
scope.row.type !== 'total'
"
>
{{
scope
.
row
.
collectionAmount
}}
<
/span
>
<
div
v
-
else
>
<
div
v
-
if
=
"
scope.row.collectionAmount[0]
"
>
{{
$t
(
'
美元
'
)
}}
:
{{
scope
.
row
.
collectionAmount
[
0
]
}}
<
/div
>
<
div
v
-
for
=
"
itemAmount in scope.row.collectionAmount
"
>
{{
itemAmount
.
currencyName
}}
:
{{
itemAmount
.
amount
}}
<
/div
>
<!--
<
div
v
-
if
=
"
scope.row.collectionAmount[0]
"
>
{{
$t
(
'
美元
'
)
}}
:
{{
scope
.
row
.
collectionAmount
[
0
]
}}
<
/div
>
<
div
v
-
if
=
"
scope.row.collectionAmount[1]
"
>
{{
$t
(
'
人民币
'
)
}}
:
{{
scope
.
row
.
collectionAmount
[
1
]
}}
<
/div
>
<
div
v
-
if
=
"
scope.row.collectionAmount[2]
"
>
{{
$t
(
'
奈拉
'
)
}}
:
{{
scope
.
row
.
collectionAmount
[
2
]
}}
<
/div
>
<
div
v
-
if
=
"
scope.row.collectionAmount[2]
"
>
{{
$t
(
'
奈拉
'
)
}}
:
{{
scope
.
row
.
collectionAmount
[
2
]
}}
<
/div>
--
>
<
/div
>
<!--
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
scope.row.currencyId
"
/>
-->
<
/template
>
...
...
@@ -575,43 +576,59 @@ export default {
res
.
data
=
[...
res
.
data
,
{
type
:
'
total
'
,
writeOffAmount
:
res
.
data
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
writeOffAmount
||
0
),
0
),
collectionAmount
:
[
0
,
0
,
0
]
collectionAmount
:
[]
}
]
}
this
.
$set
(
this
.
form
,
'
receiptAccountList
'
,
[...
res
.
data
])
// 收款总计
const
dollarList
=
res
.
data
.
filter
(
v
=>
v
.
collectionCurrencyId
==
1
)
const
dollar
=
dollarList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
collectionAmount
||
0
),
0
)
//
const dollarList = res.data.filter(v => v.collectionCurrencyId == 1)
//
const dollar = dollarList.reduce((total, currentValue) => NP.plus(total, currentValue.collectionAmount || 0), 0)
const
rmbList
=
res
.
data
.
filter
(
v
=>
v
.
collectionCurrencyId
==
3
)
const
rmb
=
rmbList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
collectionAmount
||
0
),
0
)
//
const rmbList = res.data.filter(v => v.collectionCurrencyId == 3)
//
const rmb = rmbList.reduce((total, currentValue) => NP.plus(total, currentValue.collectionAmount || 0), 0)
const
nairaList
=
res
.
data
.
filter
(
v
=>
v
.
collectionCurrencyId
==
2
)
const
naira
=
nairaList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
collectionAmount
||
0
),
0
)
//
const nairaList = res.data.filter(v => v.collectionCurrencyId == 2)
//
const naira = nairaList.reduce((total, currentValue) => NP.plus(total, currentValue.collectionAmount || 0), 0)
res
.
data
[
res
.
data
.
length
-
1
].
collectionAmount
=
[
dollar
,
rmb
,
naira
]
//
res.data[res.data.length -1].collectionAmount = [dollar, rmb, naira]
// this.$set(this.form, 'receiptAccountList', [...this.form.receiptAccountList])
const
dollarListByList
=
this
.
list
.
filter
(
v
=>
v
.
currencyId
===
1
)
const
discountDollar
=
dollarListByList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
discountTotal
||
0
),
0
)
const
d
=
res
.
data
.
find
(
v
=>
v
.
currencyId
==
1
)
d
&&
(
d
.
discountTotal
=
discountDollar
)
// const dollarListByList = this.list.filter(v => v.currencyId === 1)
// const discountDollar = dollarListByList.reduce((total, currentValue) => NP.plus(total, currentValue.discountTotal || 0), 0)
// const d = res.data.find(v => v.currencyId == 1)
// d && (d.discountTotal = discountDollar)
// const rmbListByList = this.list.filter(v => v.currencyId === 3)
// const discountRmb = rmbListByList.reduce((total, currentValue) => NP.plus(total, currentValue.discountTotal || 0), 0)
// const r = res.data.find(v => v.currencyId == 3)
// r && (r.discountTotal = discountRmb)
const
rmbListByList
=
this
.
list
.
filter
(
v
=>
v
.
currencyId
===
3
)
const
discountRmb
=
rmbListByList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
discountTotal
||
0
),
0
)
const
r
=
res
.
data
.
find
(
v
=>
v
.
currencyId
==
3
)
r
&&
(
r
.
discountTotal
=
discountRmb
)
const
nairaListByList
=
this
.
list
.
filter
(
v
=>
v
.
currencyId
===
2
)
const
discountNaira
=
nairaListByList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
discountTotal
||
0
),
0
)
const
n
=
res
.
data
.
find
(
v
=>
v
.
currencyId
==
2
)
// 收款总计
var
amountList
=
[]
this
.
currencyList
.
forEach
((
item
,
index
)
=>
{
var
nairaListByList
=
this
.
list
.
filter
(
v
=>
v
.
currencyId
===
item
.
id
)
if
(
nairaListByList
.
length
>
0
){
var
discountNaira
=
nairaListByList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
discountTotal
||
0
),
0
)
var
n
=
res
.
data
.
find
(
v
=>
v
.
currencyId
==
item
.
id
)
n
&&
(
n
.
discountTotal
=
discountNaira
)
}
var
dollarList
=
this
.
form
.
receiptAccountList
.
filter
(
v
=>
v
.
collectionCurrencyId
==
item
.
id
)
if
(
dollarList
.
length
>
0
){
var
dollar
=
dollarList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
collectionAmount
),
0
).
toFixed
(
6
)
amountList
.
push
({
currencyName
:
item
.
titleZh
,
amount
:
dollar
}
)
}
}
)
this
.
form
.
receiptAccountList
[
this
.
form
.
receiptAccountList
.
length
-
1
].
collectionAmount
=
amountList
this
.
$set
(
this
.
form
,
'
receiptAccountList
'
,
[...
this
.
form
.
receiptAccountList
])
this
.
$set
(
this
.
form
,
'
receiptAccountList
'
,
[...
res
.
data
])
this
.
$nextTick
(()
=>
{
//
this.form.receiptAccountList.forEach((item, index) =>
{
//
this.rateChange(item, index)
//
}
);
this
.
form
.
receiptAccountList
.
forEach
((
item
,
index
)
=>
{
this
.
rateChange
(
item
,
index
)
}
);
}
)
}
)
}
...
...
@@ -619,6 +636,11 @@ export default {
this
.
getList
()
}
,
methods
:
{
rateChange
(
row
,
index
)
{
console
.
log
(
row
)
row
.
receivableAmount
&&
(
row
.
collectionAmount
=
NP
.
times
(
row
.
collectionRate
||
0
,
NP
.
minus
(
row
.
receivableAmount
,
row
.
discountTotal
||
0
)).
toFixed
(
6
))
this
.
form
.
receiptAccountList
[
index
]
=
{...
row
}
}
,
setWriteOffAmount
()
{
this
.
$set
(
this
.
addForm
,
'
writeOffAmount
'
,
NP
.
times
(
this
.
addForm
.
rate
||
0
,
this
.
addForm
.
amount
||
0
))
}
,
...
...
@@ -715,7 +737,7 @@ export default {
// else if (this.showCurrencyId === 3 && val === 2) rate = this.NANtoRMB()
// else if (this.showCurrencyId === 2 && val === 1) rate = this.UStoNAN()
// else if (this.showCurrencyId === 2 && val === 3) rate = this.RMBtoNAN()
rate
=
NP
.
divide
(
this
.
currencyList
.
find
(
v
=>
v
.
id
===
this
.
showCurrencyId
).
huilv
,
this
.
currencyList
.
find
(
v
=>
v
.
id
===
val
).
huilv
).
toFixed
(
6
)
rate
=
NP
.
divide
(
this
.
currencyList
.
find
(
v
=>
v
.
id
===
val
).
huilv
,
this
.
currencyList
.
find
(
v
=>
v
.
id
===
this
.
showCurrencyId
).
huilv
).
toFixed
(
6
)
}
this
.
$set
(
this
.
addForm
,
'
rate
'
,
rate
)
}
,
...
...
src/views/ecw/offer/detail.vue
View file @
42a7ed14
...
...
@@ -9,7 +9,7 @@
<el-button
size=
"mini"
type=
"primary"
@
click=
"$router.push('edit?id=' + offerId)"
>
{{
$t
(
'
编辑
'
)
}}
</el-button>
<el-button
type=
"primary"
v-if=
"[1,3,7].indexOf(list.status) > -1"
size=
"mini"
@
click=
"handleAdd"
>
{{
$t
(
'
跟进
'
)
}}
</el-button>
<el-button
type=
"primary"
v-if=
"[3,7].indexOf(list.status) > -1"
size=
"mini"
@
click=
"toResult"
>
{{
$t
(
'
结果
'
)
}}
</el-button>
<el-button
size=
"mini"
v-if=
"[1,3,7].indexOf(list.status) > -1"
type=
"primary"
@
click
=
"$router.push('/offer/special/' + offerId)"
>
{{
$t
(
'
特价
'
)
}}
</el-button>
<el-button
size=
"mini"
v-if=
"[1,3,7].indexOf(list.status) > -1"
type=
"primary"
@
click
.native=
"$router.push('/offer/special?offerId=' + offerId)"
>
{{
$t
(
'
特价
'
)
}}
</el-button>
<el-button
type=
"danger"
size=
"mini"
@
click=
"handleDelete"
>
{{
$t
(
'
删除
'
)
}}
</el-button>
</div>
</div>
...
...
src/views/ecw/order/singleApply.vue
View file @
42a7ed14
...
...
@@ -276,7 +276,7 @@ export default {
},
submitForm
(){
let
that
=
this
if
(
!
that
.
orderNos
){
if
(
!
that
.
orderNos
||
that
.
orderNos
.
length
==
0
){
that
.
$message
.
error
(
this
.
$t
(
"
请选择待合单的订单
"
));
return
}
...
...
src/views/ecw/order/splitApply.vue
View file @
42a7ed14
...
...
@@ -96,7 +96,7 @@
</el-row>
<el-row
v-if=
"scope.row.warehouseInInfoVO"
>
<span>
{{
$t
(
'
品牌
'
)
}}
:
<dict-tag
:type=
"DICT_TYPE.ECW_IS_BRAND"
:value=
"scope.row.
brand
Type"
/>
<dict-tag
:type=
"DICT_TYPE.ECW_IS_BRAND"
:value=
"scope.row.
fee
Type"
/>
</span>
<span
style=
"margin-left: 10px;"
>
{{
$t
(
'
箱数
'
)
}}
:
{{
!
scope
.
row
.
warehouseInInfoVO
?
0
:
scope
.
row
.
warehouseInInfoVO
.
cartonsNum
}}
</span>
<span
style=
"margin-left: 10px;"
>
{{
$t
(
'
体积
'
)
}}
:
{{
!
scope
.
row
.
warehouseInInfoVO
?
0
:
scope
.
row
.
warehouseInInfoVO
.
volume
}}
m³
</span>
...
...
@@ -189,23 +189,20 @@
<!-- 对话框(添加 / 修改) -->
<el-dialog
:title=
"$t('新建拆单')"
:visible.sync=
"open"
width=
"400px"
append-to-body
>
<el-form
ref=
"formSplit"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-row>
<el-form-item
:label=
"$t('运输方式')+':'"
>
<dict-selector
:clearable=
"true"
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
v-model=
"form.transportId"
formatter=
"number"
/>
<el-form-item
:label=
"$t('运输方式')"
>
<dict-selector
:clearable=
"true"
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
@
change=
"changeTransport"
v-model=
"form.transportId"
/>
</el-form-item>
</el-row>
<el-row>
<el-form-item
:label=
"$t('目的仓库')+':'"
>
<el-select
v-model=
"form.destWarehouseId"
:placeholder=
"$t('请选择目的仓库')"
clearable
>
<el-option
v-for=
"item in importCityList"
:label=
"item.titleZh"
:value=
"item.id"
:key=
"item.id"
></el-option>
<el-form-item
:label=
"$t('出货渠道')"
v-if=
"getDictData(DICT_TYPE.ECW_TRANSPORT_TYPE, form.transportId).cssClass == 'channel'"
>
<el-select
v-model=
"form.channelId"
:placeholder=
"$t('请选择出货渠道')"
:clearable=
"true"
>
<el-option
:disabled=
"getDictData(DICT_TYPE.ECW_TRANSPORT_TYPE, form.transportId).cssClass != 'channel'"
v-for=
"item in channelData"
:key=
"item.channelId"
:label=
"$l(item, 'name')"
:value=
"item.channelId"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('出货渠道')"
v-if=
"getDictData(DICT_TYPE.ECW_TRANSPORT_TYPE, form.transportId).cssClass == 'channel'"
>
<el-select
v-model=
"form.channelId"
:placeholder=
"$t('请选择出货渠道')"
clearable
>
<el-option
:disabled=
"getDictData(DICT_TYPE.ECW_TRANSPORT_TYPE, form.transportId).cssClass != 'channel'"
v-for=
"item in channelData"
:key=
"item.channelId"
:label=
"item.nameZh"
:value=
"item.channelId"
/>
<el-form-item
:label=
"$t('目的仓库')"
>
<el-select
v-model=
"form.destWarehouseId"
@
change=
"changeDeatWarehouseId"
:placeholder=
"$t('请选择目的仓库')"
:clearable=
"true"
>
<el-option
v-for=
"items in importCityList"
:label=
"$l(items, 'title')"
:value=
"items.id"
:key=
"items.id"
></el-option>
</el-select>
</el-form-item>
</el-row>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
...
@@ -373,6 +370,16 @@ export default {
}
return
data
},
changeTransport
(
e
){
this
.
$set
(
this
.
form
,
'
transportId
'
,
e
)
console
.
log
(
this
.
form
.
transportId
)
this
.
$forceUpdate
()
},
changeDeatWarehouseId
(
e
){
this
.
$forceUpdate
()
this
.
$set
(
this
.
form
,
'
destWarehouseId
'
,
e
)
console
.
log
(
this
.
form
.
destWarehouseId
)
},
getOrder
(){
this
.
loading
=
true
;
getOrder
(
this
.
queryParams
.
orderId
).
then
(
response
=>
{
...
...
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