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
ea447df0
Commit
ea447df0
authored
Nov 05, 2022
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab.jdshangmen.com/jiedao-app/jiedao-app-operator
into dev
parents
533ed54b
d272ef4b
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
169 additions
and
96 deletions
+169
-96
dict.js
src/utils/dict.js
+1
-0
review.vue
src/views/ecw/box/shippingSea/nodePage/review.vue
+21
-3
seaProcess.vue
src/views/ecw/box/shippingSea/seaProcess.vue
+13
-3
creatPayment.vue
src/views/ecw/financial/creatPayment.vue
+1
-1
receiptDetail.vue
src/views/ecw/financial/receiptDetail.vue
+60
-33
addAssociatedOrder.vue
src/views/ecw/order/addAssociatedOrder.vue
+6
-1
detail.vue
src/views/ecw/order/detail.vue
+2
-2
editDialog.vue
src/views/ecw/order/warehousing/components/editDialog.vue
+1
-1
index.vue
src/views/ecw/order/warehousing/index.vue
+8
-2
index.vue
src/views/ecw/productBrank/Empower/index.vue
+56
-50
No files found.
src/utils/dict.js
View file @
ea447df0
...
@@ -181,6 +181,7 @@ export const DICT_TYPE = {
...
@@ -181,6 +181,7 @@ export const DICT_TYPE = {
MANUAL_EXCEPTION_TYPE
:
'
manual_exception_type
'
,
MANUAL_EXCEPTION_TYPE
:
'
manual_exception_type
'
,
APPLY_STATUS
:
'
apply_status
'
,
//特价申请审核状态
APPLY_STATUS
:
'
apply_status
'
,
//特价申请审核状态
WAREHOUSING_SPECIFICATION_TYPE
:
'
warehousing_specification_type
'
,
WAREHOUSING_SPECIFICATION_TYPE
:
'
warehousing_specification_type
'
,
ECW_AUTH_TYPE
:
'
auth_type
'
,
//品牌授权
ECASH_INIT
:
'
ecash_init
'
,
//e-cash
ECASH_INIT
:
'
ecash_init
'
,
//e-cash
FEE_TYPE
:
'
receivable_fee_type
'
,
FEE_TYPE
:
'
receivable_fee_type
'
,
...
...
src/views/ecw/box/shippingSea/nodePage/review.vue
View file @
ea447df0
...
@@ -33,7 +33,11 @@ export default {
...
@@ -33,7 +33,11 @@ export default {
},
},
created
()
{
created
()
{
const
{
currNode
,
shipmentObj
}
=
this
.
$attrs
;
const
{
currNode
,
shipmentObj
}
=
this
.
$attrs
;
const
{
preInstallBackInfo
,
cabinetUnloadBackApprovalInfo
}
=
shipmentObj
;
const
{
preInstallBackInfo
,
cabinetBackInfo
,
cabinetUnloadBackApprovalInfo
,
}
=
shipmentObj
;
if
(
currNode
.
type
===
"
preinstall
"
)
{
if
(
currNode
.
type
===
"
preinstall
"
)
{
this
.
isReview
=
preInstallBackInfo
?
true
:
false
;
this
.
isReview
=
preInstallBackInfo
?
true
:
false
;
if
(
preInstallBackInfo
&&
preInstallBackInfo
.
approvalStatus
!==
1
)
{
if
(
preInstallBackInfo
&&
preInstallBackInfo
.
approvalStatus
!==
1
)
{
...
@@ -41,9 +45,19 @@ export default {
...
@@ -41,9 +45,19 @@ export default {
}
}
this
.
bpmProcessId
=
preInstallBackInfo
?.
bpmProcessId
;
this
.
bpmProcessId
=
preInstallBackInfo
?.
bpmProcessId
;
}
}
if
(
currNode
.
type
===
"
cabinet
"
)
{
this
.
isReview
=
cabinetBackInfo
?
true
:
false
;
if
(
cabinetBackInfo
&&
cabinetBackInfo
.
approvalStatus
!==
1
)
{
this
.
isReview
=
false
;
}
this
.
bpmProcessId
=
cabinetBackInfo
?.
bpmProcessId
;
}
if
(
currNode
.
type
===
"
unloading
"
)
{
if
(
currNode
.
type
===
"
unloading
"
)
{
this
.
isReview
=
cabinetUnloadBackApprovalInfo
?
true
:
false
;
this
.
isReview
=
cabinetUnloadBackApprovalInfo
?
true
:
false
;
if
(
cabinetUnloadBackApprovalInfo
&&
cabinetUnloadBackApprovalInfo
.
approvalStatus
!==
1
)
{
if
(
cabinetUnloadBackApprovalInfo
&&
cabinetUnloadBackApprovalInfo
.
approvalStatus
!==
1
)
{
this
.
isReview
=
false
;
this
.
isReview
=
false
;
}
}
this
.
bpmProcessId
=
cabinetUnloadBackApprovalInfo
?.
bpmProcessId
;
this
.
bpmProcessId
=
cabinetUnloadBackApprovalInfo
?.
bpmProcessId
;
...
@@ -59,11 +73,15 @@ export default {
...
@@ -59,11 +73,15 @@ export default {
this
.
$refs
[
"
reviewForm
"
].
validate
((
valid
)
=>
{
this
.
$refs
[
"
reviewForm
"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
const
{
currNode
,
shipmentObj
}
=
this
.
$attrs
;
const
{
currNode
,
shipmentObj
}
=
this
.
$attrs
;
let
approvalType
=
4
;
// 预装反审
if
(
currNode
.
type
===
"
cabinet
"
)
approvalType
=
9
;
// 装柜反审
if
(
currNode
.
type
===
"
unloading
"
)
approvalType
=
7
;
// 卸柜反审核
approvalCreate
({
approvalCreate
({
shipmentId
:
shipmentObj
.
id
,
shipmentId
:
shipmentObj
.
id
,
...
this
.
reviewObj
,
...
this
.
reviewObj
,
approvalStatus
:
0
,
approvalStatus
:
0
,
approvalType
:
currNode
.
type
===
"
preinstall
"
?
4
:
7
,
// 4预装反审 7卸柜反审核
approvalType
,
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
cancel
(
"
submit
"
);
this
.
cancel
(
"
submit
"
);
...
...
src/views/ecw/box/shippingSea/seaProcess.vue
View file @
ea447df0
...
@@ -80,12 +80,12 @@ export default {
...
@@ -80,12 +80,12 @@ export default {
seaBaseData
:
Array
,
seaBaseData
:
Array
,
width
:
{
width
:
{
type
:
String
,
type
:
String
,
default
:
'
76px
'
default
:
"
76px
"
,
},
},
height
:
{
height
:
{
type
:
String
,
type
:
String
,
default
:
'
76px
'
default
:
"
76px
"
,
}
}
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -169,6 +169,16 @@ export default {
...
@@ -169,6 +169,16 @@ export default {
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
true
);
this
.
$set
(
this
.
dialogConfig
,
"
fullscreen
"
,
true
);
this
.
$set
(
this
.
dialogConfig
,
"
title
"
,
this
.
$t
(
"
出货安排(预装)
"
));
this
.
$set
(
this
.
dialogConfig
,
"
title
"
,
this
.
$t
(
"
出货安排(预装)
"
));
}
}
// 装柜
case
"
cabinet
"
:
// 装柜反审
const
cabStatus
=
this
.
shipmentObj
[
node
.
keyName
];
if
([
47
].
includes
(
cabStatus
))
{
this
.
currentComponent
=
`reviewWidget`
;
this
.
$set
(
this
.
dialogConfig
,
"
width
"
,
"
700px
"
);
this
.
$set
(
this
.
dialogConfig
,
"
title
"
,
this
.
$t
(
"
装柜反审
"
));
}
break
;
// 卸柜
// 卸柜
case
"
unloading
"
:
case
"
unloading
"
:
// 卸柜反审
// 卸柜反审
...
...
src/views/ecw/financial/creatPayment.vue
View file @
ea447df0
...
@@ -197,7 +197,7 @@
...
@@ -197,7 +197,7 @@
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('价税合计(RMB)')"
align=
"center"
prop=
"total"
>
<el-table-column
:label=
"$t('价税合计(RMB)')"
align=
"center"
prop=
"total"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
total
=
((
scope
.
row
.
totalAmount
*
scope
.
row
.
exchangeRate
)
+
(
scope
.
row
.
totalAmount
*
scope
.
row
.
exchangeRate
)
*
(
scope
.
row
.
taxRate
/
100
)).
toFixed
(
6
)
}}
</span>
<span>
{{
scope
.
row
.
total
=
((
scope
.
row
.
totalAmount
*
scope
.
row
.
exchangeRate
)
+
(
scope
.
row
.
totalAmount
*
scope
.
row
.
exchangeRate
)
*
(
scope
.
row
.
taxRate
/
100
)).
toFixed
(
2
)
}}
</span>
<!--
<span>
{{
scope
.
row
.
total
}}
</span>
-->
<!--
<span>
{{
scope
.
row
.
total
}}
</span>
-->
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
...
src/views/ecw/financial/receiptDetail.vue
View file @
ea447df0
...
@@ -124,8 +124,8 @@
...
@@ -124,8 +124,8 @@
<!--
<
el
-
table
-
column
label
=
"
应收金额
"
align
=
"
center
"
prop
=
"
receivableAmount
"
/>
-->
<!--
<
el
-
table
-
column
label
=
"
应收金额
"
align
=
"
center
"
prop
=
"
receivableAmount
"
/>
-->
<
el
-
table
-
column
:
label
=
"
$t('应收金额')
"
align
=
"
center
"
prop
=
"
receivableAmount
"
>
<
el
-
table
-
column
:
label
=
"
$t('应收金额')
"
align
=
"
center
"
prop
=
"
receivableAmount
"
>
<
template
slot
-
scope
=
"
scope
"
v
-
if
=
"
scope.row.type !== 'total'
"
>
<
template
slot
-
scope
=
"
scope
"
v
-
if
=
"
scope.row.type !== 'total'
"
>
<
span
v
-
if
=
"
scope.row.discountTotal>0
"
>
{{
`${scope.row.receivableAmount - scope.row.discountTotal
}
(${scope.row.receivableAmount
}
- ${scope.row.discountTotal
}
)`
}}
<
/span
>
<
span
v
-
if
=
"
scope.row.discountTotal
&&scope.row.discountTotal
>0
"
>
{{
`${scope.row.receivableAmount - scope.row.discountTotal
}
(${scope.row.receivableAmount
}
- ${scope.row.discountTotal
}
)`
}}
<
/span
>
<
span
v
-
else
>
{{
`${scope.row.receivableAmount
- scope.row.discountTotal
}
`
}}
<
/span
>
<
span
v
-
else
>
{{
`${scope.row.receivableAmount
}
`
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"
center
"
width
=
"
220
"
>
<
el
-
table
-
column
align
=
"
center
"
width
=
"
220
"
>
...
@@ -510,7 +510,7 @@ export default {
...
@@ -510,7 +510,7 @@ export default {
this
.
detailed
.
forEach
(
item
=>
{
this
.
detailed
.
forEach
(
item
=>
{
total
=
NP
.
plus
(
total
,
item
.
writeOffAmount
)
total
=
NP
.
plus
(
total
,
item
.
writeOffAmount
)
}
)
}
)
return
total
.
toFixed
(
6
)
return
total
.
toFixed
(
2
)
}
,
}
,
WriteOffProportion
(){
WriteOffProportion
(){
let
total
=
0
let
total
=
0
...
@@ -618,8 +618,13 @@ export default {
...
@@ -618,8 +618,13 @@ export default {
}
}
var
dollarList
=
this
.
form
.
receiptAccountList
.
filter
(
v
=>
v
.
collectionCurrencyId
==
item
.
id
)
var
dollarList
=
this
.
form
.
receiptAccountList
.
filter
(
v
=>
v
.
collectionCurrencyId
==
item
.
id
)
if
(
dollarList
.
length
>
0
){
if
(
dollarList
.
length
>
0
){
var
dollar
=
dollarList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
collectionAmount
),
0
).
toFixed
(
6
)
var
dollar
=
dollarList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
collectionAmount
),
0
).
toFixed
(
2
)
amountList
.
push
({
currencyName
:
item
.
titleZh
,
amount
:
dollar
}
)
if
(
n
.
discountTotal
&&
n
.
discountTotal
>
0
){
amountList
.
push
({
currencyName
:
item
.
titleZh
,
amount
:(
dollar
-
n
.
discountTotal
).
toFixed
(
2
)
}
)
}
else
{
amountList
.
push
({
currencyName
:
item
.
titleZh
,
amount
:
dollar
}
)
}
}
}
}
)
}
)
this
.
form
.
receiptAccountList
[
this
.
form
.
receiptAccountList
.
length
-
1
].
collectionAmount
=
amountList
this
.
form
.
receiptAccountList
[
this
.
form
.
receiptAccountList
.
length
-
1
].
collectionAmount
=
amountList
...
@@ -639,7 +644,7 @@ export default {
...
@@ -639,7 +644,7 @@ export default {
methods
:
{
methods
:
{
rateChange
(
row
,
index
)
{
rateChange
(
row
,
index
)
{
console
.
log
(
row
)
console
.
log
(
row
)
row
.
receivableAmount
&&
(
row
.
collectionAmount
=
NP
.
times
(
row
.
collectionRate
||
0
,
NP
.
minus
(
row
.
receivableAmount
,
row
.
discountTotal
||
0
)).
toFixed
(
6
))
row
.
receivableAmount
&&
(
row
.
collectionAmount
=
NP
.
times
(
row
.
collectionRate
||
0
,
NP
.
minus
(
row
.
receivableAmount
,
row
.
discountTotal
||
0
)).
toFixed
(
2
))
this
.
form
.
receiptAccountList
[
index
]
=
{...
row
}
this
.
form
.
receiptAccountList
[
index
]
=
{...
row
}
}
,
}
,
setWriteOffAmount
()
{
setWriteOffAmount
()
{
...
@@ -651,13 +656,35 @@ export default {
...
@@ -651,13 +656,35 @@ export default {
return
''
return
''
}
,
}
,
calculation
()
{
calculation
()
{
const
verificationList
=
this
.
detailed
.
filter
(
v
=>
v
.
status
===
1
)
// this.currencyList.forEach((item,index)=>
{
const
dollarList
=
verificationList
.
filter
(
v
=>
v
.
currencyId
===
1
)
// var verificationList = this.detailed.filter(v => v.status === 1)
const
dollar
=
dollarList
.
length
>
0
?
dollarList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
amount
||
0
),
0
)
:
0
// var dollarList = verificationList.filter(v => v.currencyId === item.id)
const
rmbList
=
verificationList
.
filter
(
v
=>
v
.
currencyId
===
3
)
// if(dollarList.length>0)
{
const
rmb
=
rmbList
.
length
>
0
?
rmbList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
amount
||
0
),
0
)
:
0
// let dollar,discountDollar
const
nairaList
=
verificationList
.
filter
(
v
=>
v
.
currencyId
===
2
)
// dollar = dollarList.reduce((total, currentValue) => NP.plus(total, currentValue.amount || 0), 0) : 0
const
naira
=
nairaList
.
length
>
0
?
nairaList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
amount
||
0
),
0
)
:
0
// discountDollar = dollarList.reduce((total, currentValue) => NP.plus(total, currentValue.discountTotal || 0), 0)
// var t = copyList.find(v => v.currencyId == item.id)
// this.form.receiptAccountList.push(
//
{
// discountTotal: discountDollar,
// currencyId: item.id,
// receivableAmount: dollar,
// writeOffRate: t?.writeOffRate || NP.divide(this.currencyList.find(v => v.id === item.id).huilv, this.currencyList.find(v => v.id === this.showCurrencyId).huilv).toFixed(6),
// platformAccountId: t?.platformAccountId || '',
// collectionCurrencyId: t?.collectionCurrencyId || item.id,
// collectionRate: t?.collectionRate || 1
//
}
// )
// this.calculationCount(NP.minus(dollar, discountDollar), item.id)
//
}
//
}
)
// const verificationList = this.detailed.filter(v => v.status === 1)
// const dollarList = verificationList.filter(v => v.currencyId === 1)
// const dollar = dollarList.length > 0 ? dollarList.reduce((total, currentValue) => NP.plus(total, currentValue.amount || 0), 0) : 0
// const rmbList = verificationList.filter(v => v.currencyId === 3)
// const rmb = rmbList.length > 0 ? rmbList.reduce((total, currentValue) => NP.plus(total, currentValue.amount || 0), 0) : 0
// const nairaList = verificationList.filter(v => v.currencyId === 2)
// const naira = nairaList.length > 0 ? nairaList.reduce((total, currentValue) => NP.plus(total, currentValue.amount || 0), 0) : 0
// const usCount = NP.plus(dollar, NP.times(this.RMBtoUS(), rmb), NP.times(this.NANtoUS(), naira))
// const usCount = NP.plus(dollar, NP.times(this.RMBtoUS(), rmb), NP.times(this.NANtoUS(), naira))
// const rmbCount = NP.plus(rmb, NP.times(this.UStoRMB(), dollar), NP.times(this.NANtoRMB(), naira))
// const rmbCount = NP.plus(rmb, NP.times(this.UStoRMB(), dollar), NP.times(this.NANtoRMB(), naira))
...
@@ -666,41 +693,41 @@ export default {
...
@@ -666,41 +693,41 @@ export default {
// this.verificationData.usCount = usCount
// this.verificationData.usCount = usCount
// this.verificationData.rmbCount = rmbCount
// this.verificationData.rmbCount = rmbCount
// this.verificationData.nairaCount = nairaCount
// this.verificationData.nairaCount = nairaCount
this
.
verificationData
.
usCount
=
dollar
//
this.verificationData.usCount = dollar
this
.
verificationData
.
rmbCount
=
rmb
//
this.verificationData.rmbCount = rmb
this
.
verificationData
.
nairaCount
=
naira
//
this.verificationData.nairaCount = naira
if
(
verificationList
.
indexOf
(
1
)
>-
1
)
{
// 美元
//
if (verificationList.indexOf(1)>-1)
{
// 美元
this
.
verificationData
.
writtenOff
=
dollar
//
this.verificationData.writtenOff = dollar
this
.
verificationData
.
WriteOffProportion
=
NP
.
times
(
NP
.
divide
(
dollar
,
this
.
form
.
receivableTotalAmount
),
100
)
//
this.verificationData.WriteOffProportion = NP.times(NP.divide(dollar, this.form.receivableTotalAmount), 100)
const
remaining
=
NP
.
minus
(
this
.
form
.
receivableTotalAmount
,
dollar
)
//
const remaining = NP.minus(this.form.receivableTotalAmount, dollar)
// this.remainingAmount =
{
// this.remainingAmount =
{
// usAmount: remaining,
// usAmount: remaining,
// rmbAmount: NP.times(this.UStoRMB(), remaining),
// rmbAmount: NP.times(this.UStoRMB(), remaining),
// nairaAmount: NP.times(this.UStoNAN(), remaining)
// nairaAmount: NP.times(this.UStoNAN(), remaining)
//
}
//
}
this
.
remainingAmount
.
usAmount
=
remaining
//
this.remainingAmount.usAmount = remaining
}
else
if
(
this
.
showCurrencyId
===
2
)
{
// 人民币
//
}
else
if
(
this
.
showCurrencyId
===
2
)
{
// 人民币
this
.
verificationData
.
writtenOff
=
rmb
//
this.verificationData.writtenOff = rmb
this
.
verificationData
.
WriteOffProportion
=
NP
.
times
(
NP
.
divide
(
rmb
,
this
.
form
.
receivableTotalAmount
),
100
)
//
this.verificationData.WriteOffProportion = NP.times(NP.divide(rmb, this.form.receivableTotalAmount), 100)
const
remaining
=
NP
.
minus
(
this
.
form
.
receivableTotalAmount
,
rmb
)
//
const remaining = NP.minus(this.form.receivableTotalAmount, rmb)
// this.remainingAmount =
{
// this.remainingAmount =
{
// usAmount: NP.times(this.RMBtoUS(), remaining),
// usAmount: NP.times(this.RMBtoUS(), remaining),
// rmbAmount: remaining,
// rmbAmount: remaining,
// nairaAmount: NP.times(this.RMBtoNAN(), remaining)
// nairaAmount: NP.times(this.RMBtoNAN(), remaining)
//
}
//
}
this
.
remainingAmount
.
rmbAmount
=
remaining
//
this.remainingAmount.rmbAmount = remaining
}
else
if
(
this
.
showCurrencyId
===
3
)
{
// 奈拉
//
}
else
if
(
this
.
showCurrencyId
===
3
)
{
// 奈拉
this
.
verificationData
.
writtenOff
=
naira
//
this.verificationData.writtenOff = naira
this
.
verificationData
.
WriteOffProportion
=
NP
.
times
(
NP
.
divide
(
naira
,
this
.
form
.
receivableTotalAmount
),
100
)
//
this.verificationData.WriteOffProportion = NP.times(NP.divide(naira, this.form.receivableTotalAmount), 100)
const
remaining
=
NP
.
minus
(
this
.
form
.
receivableTotalAmount
,
naira
)
//
const remaining = NP.minus(this.form.receivableTotalAmount, naira)
// this.remainingAmount =
{
// this.remainingAmount =
{
// usAmount: NP.times(this.NANtoUS(), remaining),
// usAmount: NP.times(this.NANtoUS(), remaining),
// rmbAmount: NP.times(this.NANtoRMB(), remaining),
// rmbAmount: NP.times(this.NANtoRMB(), remaining),
// nairaAmount: remaining
// nairaAmount: remaining
//
}
//
}
this
.
remainingAmount
.
nairaAmount
=
remaining
//
this.remainingAmount.nairaAmount = remaining
}
//
}
}
,
}
,
accountChange
(
val
){
accountChange
(
val
){
var
data
=
this
.
bankData
.
find
(
item
=>
item
.
id
==
val
)
var
data
=
this
.
bankData
.
find
(
item
=>
item
.
id
==
val
)
...
@@ -751,7 +778,7 @@ export default {
...
@@ -751,7 +778,7 @@ export default {
rate
:
parseFloat
(
v
.
rate
).
toFixed
(
6
),
rate
:
parseFloat
(
v
.
rate
).
toFixed
(
6
),
attr
:
v
.
attr
?
v
.
attr
.
split
(
'
,
'
).
map
(
t
=>
({
name
:
t
.
slice
(
t
.
lastIndexOf
(
'
/
'
)
+
1
),
url
:
t
}
))
:
[]
attr
:
v
.
attr
?
v
.
attr
.
split
(
'
,
'
).
map
(
t
=>
({
name
:
t
.
slice
(
t
.
lastIndexOf
(
'
/
'
)
+
1
),
url
:
t
}
))
:
[]
}
))
}
))
this
.
calculation
()
//
this.calculation()
}
)
}
)
}
,
}
,
saveFrom
()
{
saveFrom
()
{
...
...
src/views/ecw/order/addAssociatedOrder.vue
View file @
ea447df0
...
@@ -26,10 +26,14 @@
...
@@ -26,10 +26,14 @@
<el-table-column
:label=
"$t('唛头')"
prop=
"marks"
></el-table-column>
<el-table-column
:label=
"$t('唛头')"
prop=
"marks"
></el-table-column>
<el-table-column
:label=
"$t('货物数据')"
>
<el-table-column
:label=
"$t('货物数据')"
>
<template
v-slot=
"
{row}">
<template
v-slot=
"
{row}">
<div
v-if=
"row.costVO"
>
<div
v-if=
"row.costVO
&& row.status !== 5
"
>
箱数:
{{
row
.
costVO
.
totalNum
}}
箱数:
{{
row
.
costVO
.
totalNum
}}
{{
row
.
costVO
.
totalVolume
}}
m³
{{
row
.
costVO
.
totalVolume
}}
m³
{{
row
.
costVO
.
totalWeight
}}
kg
{{
row
.
costVO
.
totalWeight
}}
kg
</div>
<div
v-else
>
箱数:
{{
row
.
sumQuantity
}}
{{
row
.
sumVolume
}}
m³
{{
row
.
sumWeight
}}
kg
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -41,6 +45,7 @@
...
@@ -41,6 +45,7 @@
<el-table-column
:label=
"$t('状态')"
>
<el-table-column
:label=
"$t('状态')"
>
<
template
v-slot:default=
"scope"
>
<
template
v-slot:default=
"scope"
>
<dict-tag
:value=
"scope.row.status"
:type=
"DICT_TYPE.ORDER_STATUS"
></dict-tag>
<dict-tag
:value=
"scope.row.status"
:type=
"DICT_TYPE.ORDER_STATUS"
></dict-tag>
{{
scope
.
row
.
status
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('操作')"
>
<el-table-column
:label=
"$t('操作')"
>
...
...
src/views/ecw/order/detail.vue
View file @
ea447df0
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<el-descriptions-item
:label=
"$t('出货渠道')"
:span=
"2"
>
{{channelName}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('出货渠道')"
:span=
"2"
>
{{channelName}}
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
</el-card>
</el-card>
<el-card
class=
"card"
>
<el-card
class=
"card"
>
<el-descriptions
class=
"mr-10"
border
:title=
"$t('基础信息')"
:column=
"2"
>
<el-descriptions
class=
"mr-10"
border
:title=
"$t('基础信息')"
:column=
"2"
>
<el-descriptions-item
:label=
"$t('唛头')"
>
{{order.marks}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('唛头')"
>
{{order.marks}}
</el-descriptions-item>
...
@@ -148,7 +148,7 @@
...
@@ -148,7 +148,7 @@
</el-table-column>
</el-table-column>
<el-table-column
prop=
"warehouseInInfoVO.quantityAll"
:label=
"$t('数量') + '(个)'"
width=
"90px"
>
<el-table-column
prop=
"warehouseInInfoVO.quantityAll"
:label=
"$t('数量') + '(个)'"
width=
"90px"
>
<
template
slot-scope=
"{row}"
>
<
template
slot-scope=
"{row}"
>
{{
order
.
inWarehouseState
>
1
?
row
.
warehouseInInfoVO
.
quantityAll
:
row
.
quantity
}}
{{
(
order
.
inWarehouseState
>
1
&&
row
.
warehouseInInfoVO
)
?
row
.
warehouseInInfoVO
.
quantityAll
:
row
.
quantity
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
""
:label=
"$t('费用类型')"
>
<el-table-column
prop=
""
:label=
"$t('费用类型')"
>
...
...
src/views/ecw/order/warehousing/components/editDialog.vue
View file @
ea447df0
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
<el-form-item
label=
"材质"
style=
"margin-top: 20px"
>
<el-form-item
label=
"材质"
style=
"margin-top: 20px"
>
<dict-selector
:type=
"DICT_TYPE.ECW_PRODUCT_MATERIAL"
v-model=
"form.material"
></dict-selector>
<dict-selector
:type=
"DICT_TYPE.ECW_PRODUCT_MATERIAL"
v-model=
"form.material"
clearable
></dict-selector>
</el-form-item>
</el-form-item>
<el-form-item
label=
"入仓时间"
v-if=
"!edit"
>
<el-form-item
label=
"入仓时间"
v-if=
"!edit"
>
<el-date-picker
v-model=
"form.inTime"
type=
"datetime"
placeholder=
"请选择入仓时间"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
<el-date-picker
v-model=
"form.inTime"
type=
"datetime"
placeholder=
"请选择入仓时间"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
...
...
src/views/ecw/order/warehousing/index.vue
View file @
ea447df0
...
@@ -67,9 +67,15 @@
...
@@ -67,9 +67,15 @@
prop=
"diffType"
prop=
"diffType"
v-slot=
"{row}"
v-slot=
"{row}"
:label=
"$t('状态')"
>
:label=
"$t('状态')"
>
<dict-tag
v-if=
"row.warehouseInInfoVO && row.warehouseInInfoVO.diffType"
:type=
"DICT_TYPE.ORDER_WAREHOUSE_IN_STATUS"
:value=
"row.warehouseInInfoVO.diffType"
class=
"red"
:class=
"{green: row.warehouseInInfoVO.diffType === 4}"
/>
<dict-tag
<span
class=
"red"
v-else-if=
"row.warehouseInInfoVO && row.warehouseInInfoVO.cartonsNumDiff"
>
{{ row.warehouseInInfoVO.cartonsNumDiff }}{{$t('箱')}}
</span>
v-if=
"row.warehouseInInfoVO && row.warehouseInInfoVO.diffType"
:type=
"DICT_TYPE.ORDER_WAREHOUSE_IN_STATUS"
:value=
"row.warehouseInInfoVO.diffType"
class=
"red"
:class=
"{green: row.warehouseInInfoVO.diffType === 4}"
/>
<span
:class=
"{red: row.itemStatus === 3}"
v-else
>
{{ row.itemStatus === 3 ? ($t('少了') + row.num + $t('箱')) : $t('待入仓') }}
</span>
<span
:class=
"{red: row.itemStatus === 3}"
v-else
>
{{ row.itemStatus === 3 ? ($t('少了') + row.num + $t('箱')) : $t('待入仓') }}
</span>
<span
class=
"red"
v-if=
"row.warehouseInInfoVO && row.warehouseInInfoVO.cartonsNumDiff"
>
{{ row.warehouseInInfoVO.cartonsNumDiff }}{{$t('箱')}}
</span>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"address"
prop=
"address"
...
...
src/views/ecw/productBrank/Empower/index.vue
View file @
ea447df0
...
@@ -7,16 +7,16 @@
...
@@ -7,16 +7,16 @@
width=
"1080px"
width=
"1080px"
:before-close=
"handleClose()"
>
:before-close=
"handleClose()"
>
<el-tabs
v-model=
"activeName"
>
<el-tabs
v-model=
"activeName"
>
<el-tab-pane
label=
"未授权客户
"
name=
"first"
>
<el-tab-pane
:label=
"$t('未授权客户')
"
name=
"first"
>
<div
class=
"brand"
>
<div
class=
"brand"
>
<el-radio-group
v-model=
"productBrank.unauthChargingModel"
@
change=
"changeModel"
>
<el-radio-group
v-model=
"productBrank.unauthChargingModel"
@
change=
"changeModel"
>
<el-radio
label=
"0"
>
统一收费标准
</el-radio>
<el-radio
label=
"0"
>
{{
$t
(
'
统一收费标准
'
)
}}
</el-radio>
<el-radio
label=
"1"
>
针对客户收费标准
</el-radio>
<el-radio
label=
"1"
>
{{
$t
(
'
针对客户收费标准
'
)
}}
</el-radio>
</el-radio-group>
</el-radio-group>
</div>
</div>
<div
v-if=
"productBrank.unauthChargingModel==0"
class=
"brand"
>
<div
v-if=
"productBrank.unauthChargingModel==0"
class=
"brand"
>
<span>
针对所有未授权客户的收费模式
:
</span>
<span>
{{
$t
(
'
针对所有未授权客户的收费模式
'
)
}}
:
</span>
<el-select
v-model=
"productBrank.unauthDefaultFeeType"
placeholder=
"请选择
"
size=
"small"
style=
"margin-right: 10px;"
>
<el-select
v-model=
"productBrank.unauthDefaultFeeType"
:placeholder=
"$t('请选择')
"
size=
"small"
style=
"margin-right: 10px;"
>
<el-option
<el-option
v-for=
"(item,index) in feeType"
v-for=
"(item,index) in feeType"
:key=
"index"
:key=
"index"
...
@@ -24,14 +24,14 @@
...
@@ -24,14 +24,14 @@
:value=
"item.value"
>
:value=
"item.value"
>
</el-option>
</el-option>
</el-select>
</el-select>
<el-button
type=
"primary"
@
click=
"updateBrank"
>
确定修改
</el-button>
<el-button
type=
"primary"
@
click=
"updateBrank"
>
{{
$t
(
'
确定修改
'
)
}}
</el-button>
</div>
</div>
<el-form
:inline=
"true"
class=
"demo-form-inline"
>
<el-form
:inline=
"true"
class=
"demo-form-inline"
>
<el-form-item
label=
"关键字
"
>
<el-form-item
:label=
"$t('关键字')
"
>
<el-input
v-model=
"list1QueryParams.customerKey"
placeholder=
"请填入关键字
"
></el-input>
<el-input
v-model=
"list1QueryParams.customerKey"
:placeholder=
"$t('请填入关键字')
"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"filterCustomer"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"filterCustomer"
>
{{
$t
(
'
查询
'
)
}}
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -40,27 +40,27 @@
...
@@ -40,27 +40,27 @@
style=
"width: 100%"
>
style=
"width: 100%"
>
<el-table-column
<el-table-column
prop=
"customerName"
prop=
"customerName"
label=
"客户名称
"
>
:label=
"$t('客户名称')
"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"phone"
prop=
"phone"
:formatter=
"(row, column, cellValue) => '+' + cellValue"
:formatter=
"(row, column, cellValue) => '+' + cellValue"
label=
"客户号码
"
>
:label=
"$t('客户号码')
"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"feeScale"
prop=
"feeScale"
label=
"收费类型
"
>
:label=
"$t('收费类型')
"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<dict-tag
v-if=
"productBrank.unauthChargingModel==1&&scope.row.feeScale"
:type=
"DICT_TYPE.BRAND_CUSTOMER_CHARGING_MODEL"
:value=
"scope.row.feeScale"
/>
<dict-tag
v-if=
"productBrank.unauthChargingModel==1&&scope.row.feeScale"
:type=
"DICT_TYPE.BRAND_CUSTOMER_CHARGING_MODEL"
:value=
"scope.row.feeScale"
/>
<span
v-else-if=
"productBrank.unauthDefaultFeeType"
>
{{
productBrank
.
unauthDefaultFeeType
==
1
?
'
有牌价
'
:
'
中性价
'
}}
</span>
<span
v-else-if=
"productBrank.unauthDefaultFeeType"
>
{{
productBrank
.
unauthDefaultFeeType
==
1
?
$t
(
'
有牌价
'
):
$t
(
'
中性价
'
)
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
width=
"200px"
width=
"200px"
label=
"操作
"
>
:label=
"$t('操作')
"
>
<
template
v-slot=
"{row}"
>
<
template
v-slot=
"{row}"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleAdd(row)"
>
添加授权
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleAdd(row)"
>
{{
$t
(
'
添加授权
'
)
}}
</el-button>
<el-button
v-if=
"productBrank.unauthChargingModel=='1'"
type=
"primary"
size=
"mini"
@
click=
"editAdd(row)"
>
修改收费
</el-button>
<el-button
v-if=
"productBrank.unauthChargingModel=='1'"
type=
"primary"
size=
"mini"
@
click=
"editAdd(row)"
>
{{
$t
(
'
修改收费
'
)
}}
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -69,52 +69,53 @@
...
@@ -69,52 +69,53 @@
<pagination
v-show=
"total1 > 0"
:total=
"total1"
:page.sync=
"list1QueryParams.pageNo"
:limit.sync=
"list1QueryParams.pageSize"
<pagination
v-show=
"total1 > 0"
:total=
"total1"
:page.sync=
"list1QueryParams.pageNo"
:limit.sync=
"list1QueryParams.pageSize"
@
pagination=
"getList1"
style=
"height: 40px"
/>
@
pagination=
"getList1"
style=
"height: 40px"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"已授权客户
"
name=
"second"
>
<el-tab-pane
:label=
"$t('已授权客户')
"
name=
"second"
>
<el-table
<el-table
:data=
"list2"
:data=
"list2"
style=
"width: 100%"
>
style=
"width: 100%"
>
<el-table-column
<el-table-column
prop=
"customerName"
prop=
"customerName"
label=
"客户名称
"
>
:label=
"$t('客户名称')
"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"phone"
prop=
"phone"
:formatter=
"(row, column, cellValue) => '+' + cellValue"
:formatter=
"(row, column, cellValue) => '+' + cellValue"
label=
"客户号码
"
>
:label=
"$t('客户号码')
"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"fileUrl"
prop=
"fileUrl"
label=
"授权证明
"
>
:label=
"$t('授权证明')
"
>
<
template
v-slot=
"{row}"
>
<
template
v-slot=
"{row}"
>
<div
v-if=
"!!row.fileUrl && row.fileUrl.length > 0"
>
<div
v-if=
"!!row.fileUrl && row.fileUrl.length > 0"
>
<span
v-for=
"(item, index) in row.fileUrl.split(',')"
>
<span
v-for=
"(item, index) in row.fileUrl.split(',')"
>
<a
:href=
"item"
target=
"_blank"
>
附件
{{
index
+
1
}}
</a>
,
<a
:href=
"item"
target=
"_blank"
>
{{
$t
(
'
附件
'
)
}}
{{
index
+
1
}}
</a>
,
</span>
</span>
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"startTime"
prop=
"startTime"
width=
"200px"
width=
"200px"
label=
"授权时间
"
>
:label=
"$t('授权时间')
"
>
<
template
v-slot=
"{row}"
>
<
template
v-slot=
"{row}"
>
<span>
{{
row
.
startTime
?(
parseTime
(
row
.
startTime
,
'
{y
}
-{m
}
-{d
}
'
)
+
'
-
'
+
parseTime
(
row
.
endTime
,
'
{y
}
-{m
}
-{d
}
'
)):
'
永久
'
}}
<
/span
>
<span
>
{{
row
.
startTime
?(
parseTime
(
row
.
startTime
,
'
{y
}
-{m
}
-{d
}
'
)
+
'
-
'
+
parseTime
(
row
.
endTime
,
'
{y
}
-{m
}
-{d
}
'
)):
'
永久
'
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
prop
=
"
feeScale
"
prop
=
"
feeScale
"
:
formatter
=
"
(row) => getDictDataLabel(DICT_TYPE.BRAND_CUSTOMER_CHARGING_MODEL, row.feeScale)
"
:
formatter
=
"
(row) => getDictDataLabel(DICT_TYPE.BRAND_CUSTOMER_CHARGING_MODEL, row.feeScale)
"
label
=
"
收费标准
"
>
:
label
=
"
$t('收费标准')
"
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
prop
=
"
createUsername
"
prop
=
"
createUsername
"
label
=
"
添加人
"
>
:
label
=
"
$t('添加人')
"
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
width
=
"
100px
"
width
=
"
100px
"
label
=
"
操作
"
>
:
label
=
"
$t('操作')
"
>
<
template
v
-
slot
=
"
{row
}
"
>
<
template
v
-
slot
=
"
{row
}
"
>
<
el
-
button
type
=
"
danger
"
size
=
"
mini
"
@
click
=
"
handleDelete(row.id)
"
>
删除
<
/el-button
>
<
el
-
button
type
=
"
danger
"
size
=
"
mini
"
@
click
=
"
handleDelete(row.id)
"
>
{{
$t
(
'
删除
'
)
}}
<
/el-button
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
/el-table
>
<
/el-table
>
...
@@ -127,12 +128,16 @@
...
@@ -127,12 +128,16 @@
<!--
添加弹窗
-->
<!--
添加弹窗
-->
<
el
-
dialog
<
el
-
dialog
title
=
"
添加
"
:
title
=
"
$t('添加')
"
:
visible
.
sync
=
"
addDialog.dialogVisible
"
:
visible
.
sync
=
"
addDialog.dialogVisible
"
width
=
"
600px
"
>
width
=
"
600px
"
>
<
el
-
form
ref
=
"
form
"
:
model
=
"
addDialog.form
"
label
-
width
=
"
80px
"
>
<
el
-
form
ref
=
"
form
"
:
model
=
"
addDialog.form
"
label
-
width
=
"
80px
"
>
<
el
-
form
-
item
label
=
"
客户名称
"
>
{{
addDialog
.
form
.
customerName
}}
<
/el-form-item
>
<
el
-
form
-
item
:
label
=
"
$t('客户名称')
"
>
{{
addDialog
.
form
.
customerName
}}
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
授权时间
"
>
<
el
-
form
-
item
:
label
=
"
$t('收费模式')
"
>
<
dict
-
selector
v
-
model
=
"
addDialog.form.authType
"
:
type
=
"
DICT_TYPE.ECW_AUTH_TYPE
"
><
/dict-selector
>
<
/el-form-item
>
<
el
-
form
-
item
:
label
=
"
$t('授权时间')
"
v
-
if
=
"
addDialog.form.authType==1
"
>
<!--
<
el
-
date
-
picker
<!--
<
el
-
date
-
picker
v
-
model
=
"
addDialog.dateRange
"
v
-
model
=
"
addDialog.dateRange
"
@
chang
=
"
handleDatePick
"
@
chang
=
"
handleDatePick
"
...
@@ -143,31 +148,31 @@
...
@@ -143,31 +148,31 @@
end
-
placeholder
=
"
结束日期
"
>
end
-
placeholder
=
"
结束日期
"
>
<
/el-date-picker> --
>
<
/el-date-picker> --
>
<
el
-
date
-
picker
clearable
v
-
model
=
"
addDialog.form.startTime
"
value
-
format
=
"
yyyy-MM-dd HH:mm:ss
"
format
=
"
yyyy-MM-dd HH:mm:ss
"
type
=
"
datetime
"
:
placeholder
=
"
$t('请选择开始日期')
"
/>
<
el
-
date
-
picker
clearable
v
-
model
=
"
addDialog.form.startTime
"
value
-
format
=
"
yyyy-MM-dd HH:mm:ss
"
format
=
"
yyyy-MM-dd HH:mm:ss
"
type
=
"
datetime
"
:
placeholder
=
"
$t('请选择开始日期')
"
/>
<
span
style
=
"
margin: 0 8px;
"
>
到
<
/span
>
<
span
style
=
"
margin: 0 8px;
"
>
{{
$t
(
'
到
'
)
}}
<
/span
>
<
el
-
date
-
picker
clearable
v
-
model
=
"
addDialog.form.endTime
"
value
-
format
=
"
yyyy-MM-dd HH:mm:ss
"
format
=
"
yyyy-MM-dd HH:mm:ss
"
type
=
"
datetime
"
:
placeholder
=
"
$t('请选择结束日期')
"
/>
<
el
-
date
-
picker
clearable
v
-
model
=
"
addDialog.form.endTime
"
value
-
format
=
"
yyyy-MM-dd HH:mm:ss
"
format
=
"
yyyy-MM-dd HH:mm:ss
"
type
=
"
datetime
"
:
placeholder
=
"
$t('请选择结束日期')
"
/>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
收费模式
"
>
<
el
-
form
-
item
:
label
=
"
$t('收费模式')
"
>
<
dict
-
selector
v
-
model
=
"
addDialog.form.feeScale
"
:
type
=
"
DICT_TYPE.BRAND_CUSTOMER_CHARGING_MODEL
"
><
/dict-selector
>
<
dict
-
selector
v
-
model
=
"
addDialog.form.feeScale
"
:
type
=
"
DICT_TYPE.BRAND_CUSTOMER_CHARGING_MODEL
"
><
/dict-selector
>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
授权证明
"
>
<
el
-
form
-
item
:
label
=
"
$t('授权证明')
"
>
<
file
-
upload
v
-
model
=
"
addDialog.form.fileUrl
"
><
/file-upload
>
<
file
-
upload
v
-
model
=
"
addDialog.form.fileUrl
"
><
/file-upload
>
<
/el-form-item
>
<
/el-form-item
>
<
/el-form
>
<
/el-form
>
<
span
slot
=
"
footer
"
class
=
"
dialog-footer
"
>
<
span
slot
=
"
footer
"
class
=
"
dialog-footer
"
>
<
el
-
button
@
click
=
"
addDialog.dialogVisible = false
"
>
取
消
<
/el-button
>
<
el
-
button
@
click
=
"
addDialog.dialogVisible = false
"
>
{{
$t
(
'
取消
'
)
}}
<
/el-button
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
handleAddSubmit
"
>
确
定
<
/el-button
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
handleAddSubmit
"
>
{{
$t
(
'
确定
'
)
}}
<
/el-button
>
<
/span
>
<
/span
>
<
/el-dialog
>
<
/el-dialog
>
<!--
添加弹窗
-->
<!--
添加弹窗
-->
<
el
-
dialog
<
el
-
dialog
title
=
"
修改单个客户收费模式
"
:
title
=
"
$t('修改单个客户收费模式')
"
:
visible
.
sync
=
"
editDialog.dialogVisible
"
:
visible
.
sync
=
"
editDialog.dialogVisible
"
width
=
"
500px
"
>
width
=
"
500px
"
>
<
el
-
form
ref
=
"
form
"
:
model
=
"
editDialog.form
"
label
-
width
=
"
80px
"
>
<
el
-
form
ref
=
"
form
"
:
model
=
"
editDialog.form
"
label
-
width
=
"
80px
"
>
<
el
-
form
-
item
label
=
"
客户名称
"
>
{{
editDialog
.
customerName
}}
<
/el-form-item
>
<
el
-
form
-
item
:
label
=
"
$t('客户名称')
"
>
{{
editDialog
.
customerName
}}
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
收费模式
"
>
<
el
-
form
-
item
:
label
=
"
$t('收费模式')
"
>
<
el
-
select
v
-
model
=
"
editDialog.form.feeScale
"
placeholder
=
"
请选择
"
size
=
"
small
"
style
=
"
margin-right: 10px;
"
>
<
el
-
select
v
-
model
=
"
editDialog.form.feeScale
"
:
placeholder
=
"
$t('请选择')
"
size
=
"
small
"
style
=
"
margin-right: 10px;
"
>
<
el
-
option
<
el
-
option
v
-
for
=
"
item in feeType
"
v
-
for
=
"
item in feeType
"
:
key
=
"
item.value
"
:
key
=
"
item.value
"
...
@@ -179,8 +184,8 @@
...
@@ -179,8 +184,8 @@
<
/el-form-item
>
<
/el-form-item
>
<
/el-form
>
<
/el-form
>
<
span
slot
=
"
footer
"
class
=
"
dialog-footer
"
>
<
span
slot
=
"
footer
"
class
=
"
dialog-footer
"
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
handleEditSubmit
"
>
确
定
修
改
<
/el-button
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
handleEditSubmit
"
>
{{
$t
(
'
确定修改
'
)
}}
<
/el-button
>
<
el
-
button
@
click
=
"
editDialog.dialogVisible = false
"
>
关
闭
窗
口
<
/el-button
>
<
el
-
button
@
click
=
"
editDialog.dialogVisible = false
"
>
{{
$t
(
'
关闭窗口
'
)
}}
<
/el-button
>
<
/span
>
<
/span
>
<
/el-dialog
>
<
/el-dialog
>
<
/div
>
<
/div
>
...
@@ -228,10 +233,10 @@ export default {
...
@@ -228,10 +233,10 @@ export default {
list1
:
[],
list1
:
[],
list2
:
[],
list2
:
[],
feeType
:[{
feeType
:[{
label
:
'
有牌价
'
,
label
:
this
.
$t
(
'
有牌价
'
)
,
value
:
1
value
:
1
}
,{
}
,{
label
:
'
中性价
'
,
label
:
this
.
$t
(
'
中性价
'
)
,
value
:
2
value
:
2
}
],
}
],
unauthChargingModel
:
0
,
unauthChargingModel
:
0
,
...
@@ -256,7 +261,8 @@ export default {
...
@@ -256,7 +261,8 @@ export default {
"
fileUrl
"
:
""
,
"
fileUrl
"
:
""
,
"
productBrandId
"
:
null
,
"
productBrandId
"
:
null
,
"
startTime
"
:
""
,
"
startTime
"
:
""
,
"
status
"
:
0
"
status
"
:
0
,
"
authType
"
:
'
0
'
}
,
}
,
dateRange
:
[]
dateRange
:
[]
}
,
}
,
...
@@ -339,7 +345,7 @@ export default {
...
@@ -339,7 +345,7 @@ export default {
this
.
getList1
()
this
.
getList1
()
this
.
getList2
()
this
.
getList2
()
this
.
getBrank
()
this
.
getBrank
()
this
.
$modal
.
msgSuccess
(
"
修改成功
"
);
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
修改成功
"
)
);
}
)
}
)
}
,
}
,
changeModel
(){
changeModel
(){
...
@@ -361,9 +367,9 @@ export default {
...
@@ -361,9 +367,9 @@ export default {
this
.
editDialog
.
dialogVisible
=
true
this
.
editDialog
.
dialogVisible
=
true
}
,
}
,
handleDelete
(
id
)
{
handleDelete
(
id
)
{
this
.
$confirm
(
'
确认删除该用户的授权?
'
,
'
提示
'
,
{
this
.
$confirm
(
this
.
$t
(
'
确认删除该用户的授权
'
)
+
'
?
'
,
this
.
$t
(
'
提示
'
)
,
{
confirmButtonText
:
'
确定
'
,
confirmButtonText
:
this
.
$t
(
'
确定
'
)
,
cancelButtonText
:
'
取消
'
,
cancelButtonText
:
this
.
$t
(
'
取消
'
)
,
type
:
'
warning
'
type
:
'
warning
'
}
).
then
(()
=>
{
}
).
then
(()
=>
{
deleteProductBrandEmpower
(
id
).
then
(
r
=>
{
deleteProductBrandEmpower
(
id
).
then
(
r
=>
{
...
@@ -371,13 +377,13 @@ export default {
...
@@ -371,13 +377,13 @@ export default {
this
.
getList2
()
this
.
getList2
()
this
.
$message
({
this
.
$message
({
type
:
'
success
'
,
type
:
'
success
'
,
message
:
'
撤销授权成功!
'
message
:
this
.
$t
(
'
撤销授权成功
'
)
}
);
}
);
}
)
}
)
}
).
catch
(()
=>
{
}
).
catch
(()
=>
{
this
.
$message
({
this
.
$message
({
type
:
'
info
'
,
type
:
'
info
'
,
message
:
'
已取消删除
'
message
:
this
.
$t
(
'
已取消删除
'
)
}
);
}
);
}
);
}
);
}
,
}
,
...
...
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