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
ae0340a5
Commit
ae0340a5
authored
Oct 27, 2022
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev'
parents
29b11861
8c2f75c2
Changes
22
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
281 additions
and
110 deletions
+281
-110
index.vue
src/components/AreaSelector/index.vue
+2
-10
index.vue
src/components/ProductsSelector/index.vue
+26
-4
index.vue
src/components/customerComplaints/index.vue
+0
-4
preinstall.vue
src/views/ecw/box/shippingSea/nodePage/preinstall.vue
+5
-1
index.vue
src/views/ecw/customer/index.vue
+5
-1
index.vue
src/views/ecw/customerConfirm/index.vue
+3
-1
index.vue
src/views/ecw/customerToBeAssigned/index.vue
+5
-1
creatPayment.vue
src/views/ecw/financial/creatPayment.vue
+5
-1
payable.vue
src/views/ecw/financial/payable.vue
+3
-3
receiptDetail.vue
src/views/ecw/financial/receiptDetail.vue
+11
-7
receivable.vue
src/views/ecw/financial/receivable.vue
+3
-1
voucher.vue
src/views/ecw/financial/voucher.vue
+15
-13
index.vue
src/views/ecw/myCustomerService/index.vue
+5
-1
index.vue
src/views/ecw/node/index.vue
+1
-1
index.vue
src/views/ecw/oceanCustomer/index.vue
+5
-1
detail.vue
src/views/ecw/offer/detail.vue
+125
-37
edit.vue
src/views/ecw/order/edit.vue
+15
-4
feeApplication.vue
src/views/ecw/order/feeApplication.vue
+3
-0
release.vue
src/views/ecw/order/release.vue
+8
-2
weightDeal.vue
src/views/ecw/order/weightDeal.vue
+16
-10
edit.vue
src/views/ecw/productAttr/edit.vue
+15
-6
edit.vue
src/views/ecw/supplier/edit.vue
+5
-1
No files found.
src/components/AreaSelector/index.vue
View file @
ae0340a5
...
@@ -48,19 +48,11 @@ export default {
...
@@ -48,19 +48,11 @@ export default {
},
},
'
formData.country
'
(
country
){
'
formData.country
'
(
country
){
this
.
$emit
(
'
countryChange
'
,
country
)
this
.
$emit
(
'
countryChange
'
,
country
)
/* this.treeList.forEach(item => {
this
.
$set
(
this
.
formData
,
'
province
'
,
undefined
)
if(item.id == country){
this.provinceList = item.children || []
}
}) */
},
},
'
formData.province
'
(
province
){
'
formData.province
'
(
province
){
this
.
$emit
(
'
provinceChange
'
,
province
)
this
.
$emit
(
'
provinceChange
'
,
province
)
/* this.provinceList.forEach(item => {
this
.
$set
(
this
.
formData
,
'
city
'
,
''
)
if(item.id == province){
this.cityList = item.children || []
}
}) */
}
}
},
},
computed
:{
computed
:{
...
...
src/components/ProductsSelector/index.vue
View file @
ae0340a5
...
@@ -11,6 +11,11 @@
...
@@ -11,6 +11,11 @@
</el-select>
</el-select>
<el-input
v-model=
"queryParams.titleZh"
:placeholder=
"$t('产品关键字')"
style=
"width:120px"
clearable
/>
<el-input
v-model=
"queryParams.titleZh"
:placeholder=
"$t('产品关键字')"
style=
"width:120px"
clearable
/>
<el-button
type=
"primary"
@
click=
"reLoad"
>
{{
$t
(
'
搜索
'
)
}}
</el-button>
<el-button
type=
"primary"
@
click=
"reLoad"
>
{{
$t
(
'
搜索
'
)
}}
</el-button>
<div
v-if=
"showAll"
>
<el-checkbox
:label=
"$t('全选(最多500)')"
@
change=
"toggleAll"
></el-checkbox>
<el-checkbox
:label=
"$t('全选库内商品(共
{cnt}个)', {cnt: total})" v-model="isAllProduct">
</el-checkbox>
</div>
</div>
</div>
<div
class=
"list"
>
<div
class=
"list"
>
<div
class=
"item"
v-for=
"item in list"
:key=
"item.id"
>
<div
class=
"item"
v-for=
"item in list"
:key=
"item.id"
>
...
@@ -23,7 +28,7 @@
...
@@ -23,7 +28,7 @@
<div
class=
"flex-1 ml-10"
>
<div
class=
"flex-1 ml-10"
>
<el-card
style=
"height:100%"
>
<el-card
style=
"height:100%"
>
<div
slot=
"header"
class=
"header"
>
<div
slot=
"header"
class=
"header"
>
{{
$t
(
'
已选
产品
'
)
}}
{{
$t
(
'
已选
{cnt
}
个产品
'
,
{
cnt
:
isAllProduct
?
total
:
choosedList
.
length
}
)
}}
<
/div
>
<
/div
>
<
div
class
=
"
list
"
>
<
div
class
=
"
list
"
>
<
div
class
=
"
item
"
v
-
for
=
"
(choosed) in choosedList
"
:
key
=
"
choosed.id
"
:
data
-
data
=
"
JSON.stringify(choosed)
"
>
<
div
class
=
"
item
"
v
-
for
=
"
(choosed) in choosedList
"
:
key
=
"
choosed.id
"
:
data
-
data
=
"
JSON.stringify(choosed)
"
>
...
@@ -47,13 +52,15 @@ export default {
...
@@ -47,13 +52,15 @@ export default {
default
:
()
=>
{
default
:
()
=>
{
return
[]
return
[]
}
}
}
}
,
showAll
:
Boolean
}
,
}
,
data
()
{
data
()
{
return
{
return
{
list
:
[],
list
:
[],
page
:
1
,
page
:
1
,
pages
:
1
,
pages
:
1
,
total
:
0
,
// 商品总数
queryParams
:
{
queryParams
:
{
pageNo
:
1
,
pageNo
:
1
,
pageSize
:
500
,
pageSize
:
500
,
...
@@ -63,7 +70,8 @@ export default {
...
@@ -63,7 +70,8 @@ export default {
}
,
}
,
choosedList
:
[],
choosedList
:
[],
typeList
:
[],
typeList
:
[],
attrList
:
[]
attrList
:
[],
isAllProduct
:
false
}
}
}
,
}
,
computed
:
{
computed
:
{
...
@@ -83,6 +91,9 @@ export default {
...
@@ -83,6 +91,9 @@ export default {
watch
:
{
watch
:
{
ids
(
val
)
{
ids
(
val
)
{
this
.
$emit
(
'
input
'
,
val
)
this
.
$emit
(
'
input
'
,
val
)
}
,
isAllProduct
(
isAllProduct
){
this
.
$emit
(
'
setall
'
,
isAllProduct
)
}
}
}
,
}
,
created
()
{
created
()
{
...
@@ -92,6 +103,14 @@ export default {
...
@@ -92,6 +103,14 @@ export default {
this
.
ids
=
this
.
defaultIds
//数据回显
this
.
ids
=
this
.
defaultIds
//数据回显
}
,
}
,
methods
:
{
methods
:
{
/* setAllProduct(status){
this.isAllProduct = true
}
, */
toggleAll
(
status
){
this
.
list
.
forEach
(
item
=>
{
this
.
toggleCheck
(
item
,
status
)
}
)
}
,
reLoad
()
{
reLoad
()
{
this
.
queryParams
.
page
=
1
this
.
queryParams
.
page
=
1
this
.
list
=
[]
this
.
list
=
[]
...
@@ -109,6 +128,7 @@ export default {
...
@@ -109,6 +128,7 @@ export default {
this
.
list
=
res
.
data
.
list
//.concat(res.data.list || [])
this
.
list
=
res
.
data
.
list
//.concat(res.data.list || [])
this
.
page
=
res
.
data
.
page
this
.
page
=
res
.
data
.
page
this
.
pages
=
res
.
data
.
pages
this
.
pages
=
res
.
data
.
pages
this
.
total
=
res
.
data
.
total
this
.
choosedList
=
[]
//搜搜重置,数据回显
this
.
choosedList
=
[]
//搜搜重置,数据回显
if
(
this
.
defaultIds
.
length
>
0
)
{
if
(
this
.
defaultIds
.
length
>
0
)
{
this
.
defaultIds
.
map
(
item
=>
{
this
.
defaultIds
.
map
(
item
=>
{
...
@@ -129,7 +149,9 @@ export default {
...
@@ -129,7 +149,9 @@ export default {
}
}
}
,
}
,
choose
(
item
)
{
choose
(
item
)
{
this
.
choosedList
.
push
(
item
)
if
(
!
this
.
choosedList
.
find
(
it
=>
it
.
id
==
item
.
id
)){
this
.
choosedList
.
push
(
item
)
}
}
,
}
,
remove
(
item
)
{
remove
(
item
)
{
this
.
choosedList
.
forEach
((
choosed
,
index
)
=>
{
this
.
choosedList
.
forEach
((
choosed
,
index
)
=>
{
...
...
src/components/customerComplaints/index.vue
View file @
ae0340a5
...
@@ -163,7 +163,6 @@ export default {
...
@@ -163,7 +163,6 @@ export default {
myFollowCustomerList
:
[],
myFollowCustomerList
:
[],
customerSelect
:
[],
// 处理
// 处理
handle
:
{
handle
:
{
...
@@ -175,9 +174,6 @@ export default {
...
@@ -175,9 +174,6 @@ export default {
};
};
},
},
created
()
{
created
()
{
getCustomerSelect
().
then
(
r
=>
{
this
.
customerSelect
=
r
.
data
})
},
},
methods
:
{
methods
:
{
getBillList
(
key
){
getBillList
(
key
){
...
...
src/views/ecw/box/shippingSea/nodePage/preinstall.vue
View file @
ae0340a5
...
@@ -385,6 +385,8 @@ export default {
...
@@ -385,6 +385,8 @@ export default {
shipmentObj
:
this
.
$attrs
.
shipmentObj
,
shipmentObj
:
this
.
$attrs
.
shipmentObj
,
// 抄送人数组
// 抄送人数组
selectedUsers
:
[],
selectedUsers
:
[],
// 智慧预装
smartInstall
:
1
,
}
;
}
;
}
,
}
,
computed
:
{
computed
:
{
...
@@ -415,6 +417,7 @@ export default {
...
@@ -415,6 +417,7 @@ export default {
// 查询待预装
// 查询待预装
this
.
handleQuery
(
"
toBePre
"
);
this
.
handleQuery
(
"
toBePre
"
);
this
.
handleQuery
(
"
pre
"
);
this
.
handleQuery
(
"
pre
"
);
this
.
smartInstall
=
0
;
}
,
}
,
methods
:
{
methods
:
{
formatDate
,
formatDate
,
...
@@ -436,10 +439,10 @@ export default {
...
@@ -436,10 +439,10 @@ export default {
// 已预装单号
// 已预装单号
params
.
orderNo
=
params
.
preOrderNo
;
params
.
orderNo
=
params
.
preOrderNo
;
params
.
shipmentId
=
this
.
shipmentObj
.
id
;
params
.
shipmentId
=
this
.
shipmentObj
.
id
;
params
.
smartInstall
=
this
.
smartInstall
;
secGoodsList
(
params
).
then
((
res
)
=>
{
secGoodsList
(
params
).
then
((
res
)
=>
{
this
.
preList
=
res
.
data
;
this
.
preList
=
res
.
data
;
this
.
preLoading
=
false
;
this
.
preLoading
=
false
;
this
.
getPreLoad
();
}
);
}
);
}
,
}
,
/* 查询待预装 */
/* 查询待预装 */
...
@@ -638,6 +641,7 @@ export default {
...
@@ -638,6 +641,7 @@ export default {
queryAllData
()
{
queryAllData
()
{
this
.
pageParam
.
pageNo
=
1
;
this
.
pageParam
.
pageNo
=
1
;
this
.
getSecGoods
();
this
.
getSecGoods
();
this
.
getPreLoad
();
}
,
}
,
/* 获取参数 */
/* 获取参数 */
getParams
()
{
getParams
()
{
...
...
src/views/ecw/customer/index.vue
View file @
ae0340a5
...
@@ -97,7 +97,11 @@
...
@@ -97,7 +97,11 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('主联系人')"
prop=
"defaultContactName"
></el-table-column>
<el-table-column
:label=
"$t('主联系人')"
prop=
"defaultContactName"
></el-table-column>
<el-table-column
:label=
"$t('主联系方式')"
prop=
"defaultContactPhone"
></el-table-column>
<el-table-column
:label=
"$t('主联系方式')"
prop=
"defaultContactPhone"
>
<
template
v-slot=
"{row}"
>
+
{{
row
.
defaultContactPhone
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('创建时间')"
align=
"center"
prop=
"createTime"
width=
"180"
>
<el-table-column
:label=
"$t('创建时间')"
align=
"center"
prop=
"createTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
...
...
src/views/ecw/customerConfirm/index.vue
View file @
ae0340a5
...
@@ -90,7 +90,9 @@
...
@@ -90,7 +90,9 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('主联系人')"
prop=
"defaultContactName"
></el-table-column>
<el-table-column
:label=
"$t('主联系人')"
prop=
"defaultContactName"
></el-table-column>
<el-table-column
:label=
"$t('主联系方式')"
prop=
"defaultContactPhone"
></el-table-column>
<el-table-column
:label=
"$t('主联系方式')"
prop=
"defaultContactPhone"
>
<
template
v-slot=
"{row}"
>
{{
row
.
defaultContactPhone
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('创建时间')"
align=
"center"
prop=
"createTime"
width=
"180"
>
<el-table-column
:label=
"$t('创建时间')"
align=
"center"
prop=
"createTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
...
...
src/views/ecw/customerToBeAssigned/index.vue
View file @
ae0340a5
...
@@ -100,7 +100,11 @@
...
@@ -100,7 +100,11 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('主联系人')"
prop=
"defaultContactName"
></el-table-column>
<el-table-column
:label=
"$t('主联系人')"
prop=
"defaultContactName"
></el-table-column>
<el-table-column
:label=
"$t('主联系方式')"
prop=
"defaultContactPhone"
></el-table-column>
<el-table-column
:label=
"$t('主联系方式')"
prop=
"defaultContactPhone"
>
<
template
v-slot=
"{row}"
>
+
{{
row
.
defaultContactPhone
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('创建时间')"
align=
"center"
prop=
"createTime"
width=
"180"
>
<el-table-column
:label=
"$t('创建时间')"
align=
"center"
prop=
"createTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
...
...
src/views/ecw/financial/creatPayment.vue
View file @
ae0340a5
...
@@ -214,9 +214,11 @@
...
@@ -214,9 +214,11 @@
label=
""
label=
""
label-width=
"0"
label-width=
"0"
style=
"margin-bottom: 0"
style=
"margin-bottom: 0"
required
:error=
"$t('账单号不能为空')"
:error=
"$t('账单号不能为空')"
prop=
"accountNumber"
prop=
"accountNumber"
:rules=
"[
{ required: true, message: '账单号不能为空', trigger: 'blur' },
]"
>
>
<el-input
<el-input
v-model=
"form.accountNumber"
v-model=
"form.accountNumber"
...
@@ -463,6 +465,7 @@ export default {
...
@@ -463,6 +465,7 @@ export default {
this
.
handleSelectionChange
([
res
.
data
])
this
.
handleSelectionChange
([
res
.
data
])
this
.
list
=
this
.
multipleSelection
this
.
list
=
this
.
multipleSelection
this
.
$set
(
this
.
form
,
'
supplierId
'
,
res
.
data
.
supplierId
)
this
.
$set
(
this
.
form
,
'
supplierId
'
,
res
.
data
.
supplierId
)
this
.
selectChange
(
this
.
form
.
supplierId
)
})
})
}
}
if
(
that
.
$route
.
query
.
id
&&
that
.
$route
.
query
.
id
!==
'
0
'
)
{
if
(
that
.
$route
.
query
.
id
&&
that
.
$route
.
query
.
id
!==
'
0
'
)
{
...
@@ -474,6 +477,7 @@ export default {
...
@@ -474,6 +477,7 @@ export default {
applicationAt
:
this
.
parseTime
(
res
.
data
.
applicationAt
,
'
{y}-{m}-{d}
'
),
applicationAt
:
this
.
parseTime
(
res
.
data
.
applicationAt
,
'
{y}-{m}-{d}
'
),
invoiceStatus
:
String
(
res
.
data
.
invoiceStatus
),
invoiceStatus
:
String
(
res
.
data
.
invoiceStatus
),
}
}
this
.
$set
(
this
.
form
,
'
supplierBankAccount
'
,
res
.
data
.
supplierBankAccount
)
this
.
$set
(
this
.
form
,
'
supplierBankAccount
'
,
res
.
data
.
supplierBankAccount
)
console
.
log
(
this
.
form
)
console
.
log
(
this
.
form
)
})
})
...
...
src/views/ecw/financial/payable.vue
View file @
ae0340a5
...
@@ -181,13 +181,13 @@
...
@@ -181,13 +181,13 @@
<el-form-item
:label=
"$t('操作步骤')"
>
<el-form-item
:label=
"$t('操作步骤')"
>
<el-select
v-model=
"costObj.stepsId"
:placeholder=
"$t('请选择操作步骤')"
>
<el-select
v-model=
"costObj.stepsId"
:placeholder=
"$t('请选择操作步骤')"
>
<el-option
v-for=
"
type in this.getDictDatas(DICT_TYPE.BOX_SHIPPING_PROCESS)"
:key=
"type.value"
:label=
"type.label"
:value=
"type
.value"
></el-option>
<el-option
v-for=
"
item in this.getDictDatas(DICT_TYPE.BOX_SHIPPING_PROCESS)"
:key=
"item.value"
:label=
"item.label"
:value=
"item
.value"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('费用类型')"
>
<el-form-item
:label=
"$t('费用类型')"
>
<el-select
v-model=
"costObj.feeType"
:placeholder=
"$t('请选择费用类型')"
>
<el-select
v-model=
"costObj.feeType"
:placeholder=
"$t('请选择费用类型')"
>
<el-option
v-for=
"
type in this.getDictDatas(DICT_TYPE.FEE_TYPE)"
:key=
"type.value"
:label=
"type.label"
:value=
"type
.value"
></el-option>
<el-option
v-for=
"
item in this.getDictDatas(DICT_TYPE.FEE_TYPE)"
:key=
"item.value"
:label=
"item.label"
:value=
"item
.value"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -203,7 +203,7 @@
...
@@ -203,7 +203,7 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
""
label-width=
"0px"
>
<el-form-item
label=
""
label-width=
"0px"
>
<el-select
v-model=
"costObj.currencyId"
:placeholder=
"$t('请选择单位')"
>
<el-select
v-model=
"costObj.currencyId"
:placeholder=
"$t('请选择单位')"
>
<el-option
v-for=
"
type in this.getDictDatas(DICT_TYPE.BOX_SHIPPING_PRICE_UNIT)"
:key=
"type.value"
:label=
"type.label"
:value=
"type
.value"
></el-option>
<el-option
v-for=
"
item in this.getDictDatas(DICT_TYPE.BOX_SHIPPING_PRICE_UNIT)"
:key=
"item.value"
:label=
"item.label"
:value=
"item
.value"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
...
...
src/views/ecw/financial/receiptDetail.vue
View file @
ae0340a5
...
@@ -21,13 +21,13 @@
...
@@ -21,13 +21,13 @@
<el-table-column
:label=
"$t('唛头')"
align=
"center"
prop=
"marks"
/>
<el-table-column
:label=
"$t('唛头')"
align=
"center"
prop=
"marks"
/>
<el-table-column
:label=
"$t('品名')"
align=
"center"
prop=
"title"
>
<el-table-column
:label=
"$t('品名')"
align=
"center"
prop=
"title"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
titleZh
+
"
(
"
+
scope
.
row
.
titleEn
+
"
)
"
}}
<span
v-if=
"scope.row.feeType!=5"
>
{{
scope
.
row
.
titleZh
+
"
(
"
+
scope
.
row
.
titleEn
+
"
)
"
}}
</span>
</
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"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
volume
+
"
/
"
+
scope
.
row
.
weight
}}
<span
v-if=
"scope.row.feeType!=5"
>
{{
scope
.
row
.
volume
+
"
/
"
+
scope
.
row
.
weight
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('收入类型')"
align=
"center"
prop=
"feeType"
>
<el-table-column
:label=
"$t('收入类型')"
align=
"center"
prop=
"feeType"
>
...
@@ -512,11 +512,15 @@ export default {
...
@@ -512,11 +512,15 @@ export default {
return
total
.
toFixed
(
6
)
return
total
.
toFixed
(
6
)
}
,
}
,
WriteOffProportion
(){
WriteOffProportion
(){
let
total
=
0
let
total
=
0
this
.
detailed
.
forEach
(
item
=>
{
let
amountTotal
=
0
total
=
NP
.
plus
(
total
,
item
.
writeOffAmount
)
this
.
detailed
.
forEach
(
item
=>
{
}
)
if
(
item
.
status
){
let
portion
=
NP
.
divide
(
total
,
this
.
form
.
receiptAccountList
.
find
(
item
=>
item
.
type
==
'
total
'
).
writeOffAmount
)
amountTotal
=
NP
.
plus
(
amountTotal
,
item
.
writeOffAmount
)
}
total
=
NP
.
plus
(
total
,
item
.
writeOffAmount
)
}
)
let
portion
=
NP
.
divide
(
amountTotal
,
total
)
return
(
portion
*
100
).
toFixed
(
2
)
return
(
portion
*
100
).
toFixed
(
2
)
}
}
}
,
}
,
...
...
src/views/ecw/financial/receivable.vue
View file @
ae0340a5
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<div
slot=
"header"
class=
"card-title"
>
{{
$t
(
'
待收款
'
)
}}
</div>
<!-- 操作工具栏 -->
<!-- 操作工具栏 -->
<el-row
:gutter=
"10"
class=
"mb8"
style=
"margin-right: 60px"
>
<el-row
:gutter=
"10"
class=
"mb8"
style=
"margin-right: 60px"
>
<div
class=
"card-title"
>
{{
$t
(
'
待收款
'
)
}}
</div>
<el-button
<el-button
style=
"float: right; margin-left: 10px"
style=
"float: right; margin-left: 10px"
type=
"primary"
type=
"primary"
...
@@ -333,5 +334,6 @@ export default {
...
@@ -333,5 +334,6 @@ export default {
.card-title
{
.card-title
{
font-size
:
18px
;
font-size
:
18px
;
font-weight
:
bold
;
font-weight
:
bold
;
display
:
inline-block
;
}
}
</
style
>
</
style
>
src/views/ecw/financial/voucher.vue
View file @
ae0340a5
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-form-item
:label=
"$t('自编号')"
>
<!--
<el-form-item
:label=
"$t('自编号')"
>
<el-input
<el-input
style=
"max-width: 188px"
style=
"max-width: 188px"
v-model=
"queryParams.orderNo"
v-model=
"queryParams.orderNo"
...
@@ -68,8 +68,8 @@
...
@@ -68,8 +68,8 @@
clearable
clearable
@
keyup.enter.native=
"handleQuery"
@
keyup.enter.native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
-->
<el-form-item
:label=
"$t('订单号')"
>
<!--
<el-form-item
:label=
"$t('订单号')"
>
<el-input
<el-input
style=
"max-width: 188px"
style=
"max-width: 188px"
v-model=
"queryParams.orderNo"
v-model=
"queryParams.orderNo"
...
@@ -77,10 +77,13 @@
...
@@ -77,10 +77,13 @@
clearable
clearable
@
keyup.enter.native=
"handleQuery"
@
keyup.enter.native=
"handleQuery"
/>
/>
</el-form-item>
-->
<el-form-item>
<el-button
type=
"primary"
@
click=
"handleQuery"
>
{{
$t
(
'
查找
'
)
}}
</el-button>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
<
el-row
:span=
"24"
>
<
!--
<el-row
:span=
"24"
>
--
>
<el-form-item
:label=
"$t('商品名称')"
>
<!--
<el-form-item
:label=
"$t('商品名称')"
>
<el-input
<el-input
style=
"max-width: 188px"
style=
"max-width: 188px"
v-model=
"queryParams.orderNo"
v-model=
"queryParams.orderNo"
...
@@ -88,8 +91,8 @@
...
@@ -88,8 +91,8 @@
clearable
clearable
@
keyup.enter.native=
"handleQuery"
@
keyup.enter.native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
-->
<el-form-item
:label=
"$t('费用类型')"
>
<!--
<el-form-item
:label=
"$t('费用类型')"
>
<dict-selector
<dict-selector
:type=
"DICT_TYPE.FEE_TYPE"
:type=
"DICT_TYPE.FEE_TYPE"
v-model=
"queryParams.feeType"
v-model=
"queryParams.feeType"
...
@@ -100,11 +103,9 @@
...
@@ -100,11 +103,9 @@
:type=
"DICT_TYPE.PAYMENT_TYPE"
:type=
"DICT_TYPE.PAYMENT_TYPE"
v-model=
"queryParams.paymentType"
v-model=
"queryParams.paymentType"
></dict-selector>
></dict-selector>
</el-form-item>
</el-form-item>
-->
<el-form-item>
<el-button
type=
"primary"
@
click=
"handleQuery"
>
{{
$t
(
'
查找
'
)
}}
</el-button>
<!--
</el-row>
-->
</el-form-item>
</el-row>
</el-form>
</el-form>
</el-card>
</el-card>
<el-table
v-loading=
"loadings"
:data=
"list"
border
class=
"card"
>
<el-table
v-loading=
"loadings"
:data=
"list"
border
class=
"card"
>
...
@@ -359,8 +360,9 @@ export default {
...
@@ -359,8 +360,9 @@ export default {
}
,
}
,
/** 搜索按钮操作 */
/** 搜索按钮操作 */
handleQuery
()
{
handleQuery
()
{
console
.
log
(
11
)
this
.
queryParams
.
pageNo
=
1
;
this
.
queryParams
.
pageNo
=
1
;
//
this.getList();
this
.
getList
();
}
,
}
,
/** 新增按钮操作 */
/** 新增按钮操作 */
handleAdd
(
id
)
{
handleAdd
(
id
)
{
...
...
src/views/ecw/myCustomerService/index.vue
View file @
ae0340a5
...
@@ -88,7 +88,11 @@
...
@@ -88,7 +88,11 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('主联系人')"
prop=
"defaultContactName"
></el-table-column>
<el-table-column
:label=
"$t('主联系人')"
prop=
"defaultContactName"
></el-table-column>
<el-table-column
:label=
"$t('主联系方式')"
prop=
"defaultContactPhone"
></el-table-column>
<el-table-column
:label=
"$t('主联系方式')"
prop=
"defaultContactPhone"
>
<
template
v-slot=
"{row}"
>
+
{{
row
.
defaultContactPhone
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('创建时间')"
align=
"center"
prop=
"createTime"
width=
"180"
>
<el-table-column
:label=
"$t('创建时间')"
align=
"center"
prop=
"createTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
...
...
src/views/ecw/node/index.vue
View file @
ae0340a5
...
@@ -422,7 +422,7 @@ export default {
...
@@ -422,7 +422,7 @@ export default {
handleStatusChange
(
row
)
{
handleStatusChange
(
row
)
{
let
text
=
row
.
status
===
CommonStatusEnum
.
ENABLE
?
this
.
$t
(
"
启用
"
)
:
this
.
$t
(
"
停用
"
);
let
text
=
row
.
status
===
CommonStatusEnum
.
ENABLE
?
this
.
$t
(
"
启用
"
)
:
this
.
$t
(
"
停用
"
);
this
.
$modal
.
confirm
(
this
.
$t
(
'
确认要{action}编号为{id}的数据吗?
'
,
{
action
:
text
,
id
})).
then
(
function
()
{
this
.
$modal
.
confirm
(
this
.
$t
(
'
确认要{action}编号为{id}的数据吗?
'
,
{
action
:
text
,
id
:
row
.
id
})).
then
(
function
()
{
return
updateNode
(
row
);
return
updateNode
(
row
);
}).
then
(()
=>
{
}).
then
(()
=>
{
...
...
src/views/ecw/oceanCustomer/index.vue
View file @
ae0340a5
...
@@ -94,7 +94,11 @@
...
@@ -94,7 +94,11 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('主联系人')"
prop=
"defaultContactName"
></el-table-column>
<el-table-column
:label=
"$t('主联系人')"
prop=
"defaultContactName"
></el-table-column>
<el-table-column
:label=
"$t('主联系方式')"
prop=
"defaultContactPhone"
></el-table-column>
<el-table-column
:label=
"$t('主联系方式')"
prop=
"defaultContactPhone"
>
<
template
v-slot=
"{row}"
>
+
{{
row
.
defaultContactPhone
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('创建时间')"
align=
"center"
prop=
"createTime"
width=
"180"
>
<el-table-column
:label=
"$t('创建时间')"
align=
"center"
prop=
"createTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
...
...
src/views/ecw/offer/detail.vue
View file @
ae0340a5
This diff is collapsed.
Click to expand it.
src/views/ecw/order/edit.vue
View file @
ae0340a5
...
@@ -176,7 +176,7 @@
...
@@ -176,7 +176,7 @@
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('数量') + '(个)'"
width=
"120px"
>
<el-table-column
:label=
"$t('数量') + '(个)'"
width=
"120px"
>
<
template
slot-scope=
"{row}"
>
<
template
slot-scope=
"{row}"
>
<el-input
v-model=
"row.quantity"
type=
"number"
:disabled=
"!canAddProduct || !productEditable"
/>
<el-input
v-model=
"row.quantity"
type=
"number"
@
keyup.native=
"checkQuantity(row)"
:disabled=
"!canAddProduct || !productEditable"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('总体积') + '(m³)'"
width=
"100px"
>
<el-table-column
:label=
"$t('总体积') + '(m³)'"
width=
"100px"
>
...
@@ -588,6 +588,7 @@ export default {
...
@@ -588,6 +588,7 @@ export default {
contactChooseType
:
null
,
// 联系人选择对象consignor(发货人) 或者 consignee(收货人)
contactChooseType
:
null
,
// 联系人选择对象consignor(发货人) 或者 consignee(收货人)
quickCreateType
:
null
,
// 快速新建客户类型,1发货人,2收货人
quickCreateType
:
null
,
// 快速新建客户类型,1发货人,2收货人
showWorkFlow
:
false
,
// 是否显示工作流表单
showWorkFlow
:
false
,
// 是否显示工作流表单
calculating
:
false
,
// 是否正在计算费用,防止频繁重新请求
};
};
},
},
computed
:{
computed
:{
...
@@ -740,9 +741,15 @@ export default {
...
@@ -740,9 +741,15 @@ export default {
this
.
$set
(
this
.
form
,
'
lineId
'
,
undefined
)
this
.
$set
(
this
.
form
,
'
lineId
'
,
undefined
)
this
.
getOpenedRouterList
()
this
.
getOpenedRouterList
()
},
},
'
form.channelId
'
(){
this
.
calculationPrice
()
},
'
form.lineId
'
(
lineId
){
'
form.lineId
'
(
lineId
){
let
router
=
this
.
routerList
.
find
(
item
=>
item
.
id
==
lineId
)
let
router
=
this
.
routerList
.
find
(
item
=>
item
.
id
==
lineId
)
if
(
!
router
)
return
if
(
!
router
){
console
.
log
(
'
未选择路线
'
,
router
,
lineId
,
JSON
.
stringify
(
this
.
routerList
))
return
}
this
.
$set
(
this
.
form
,
'
departureId
'
,
router
.
startCityId
)
this
.
$set
(
this
.
form
,
'
departureId
'
,
router
.
startCityId
)
this
.
$set
(
this
.
form
,
'
objectiveId
'
,
router
.
destCityId
)
this
.
$set
(
this
.
form
,
'
objectiveId
'
,
router
.
destCityId
)
...
@@ -911,10 +918,12 @@ export default {
...
@@ -911,10 +918,12 @@ export default {
},
},
setLink
(
row
){
setLink
(
row
){
this
.
$prompt
(
this
.
$t
(
'
请输入商品链接
'
),
{
inputValue
:
row
.
link
}).
then
(({
value
})
=>
{
this
.
$prompt
(
this
.
$t
(
'
请输入商品链接
'
),
{
inputValue
:
row
.
link
}).
then
(({
value
})
=>
{
console
.
log
(
'
value
'
,
value
)
this
.
$set
(
row
,
'
link
'
,
value
)
this
.
$set
(
row
,
'
link
'
,
value
)
})
})
},
},
checkQuantity
(
row
){
row
.
quantity
=
row
.
quantity
.
replace
(
/
[^\d]
/g
,
''
)
},
/* onFileChoosed(e){
/* onFileChoosed(e){
window.choosed = e
window.choosed = e
console.log('onFileChoosed', e)
console.log('onFileChoosed', e)
...
@@ -1070,12 +1079,14 @@ export default {
...
@@ -1070,12 +1079,14 @@ export default {
calcable
=
false
calcable
=
false
}
}
})
})
console
.
log
(
'
calculationPrice
'
,
calcable
)
if
(
this
.
calculating
||
!
calcable
)
return
false
if
(
this
.
calculating
||
!
calcable
)
return
false
this
.
calculating
=
true
this
.
calculating
=
true
console
.
log
(
'
calculating --->
'
)
calculationPrice
({
calculationPrice
({
lineId
:
this
.
form
.
lineId
,
lineId
:
this
.
form
.
lineId
,
transportId
:
this
.
form
.
transportId
,
transportId
:
this
.
form
.
transportId
,
channelId
:
this
.
form
.
channelI
d
,
channelId
:
[
3
,
4
].
indexOf
(
this
.
form
.
transportId
)
>
-
1
?
this
.
form
.
channelId
:
undefine
d
,
prodConditionParamList
:
this
.
getProductListWithDefaultValue
()
prodConditionParamList
:
this
.
getProductListWithDefaultValue
()
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
$set
(
this
,
'
fee
'
,
res
.
data
.
costDto
)
this
.
$set
(
this
,
'
fee
'
,
res
.
data
.
costDto
)
...
...
src/views/ecw/order/feeApplication.vue
View file @
ae0340a5
...
@@ -175,6 +175,9 @@ export default {
...
@@ -175,6 +175,9 @@ export default {
modify
(
row
){
modify
(
row
){
if
(
this
.
list
.
some
(
i
=>
i
.
status
===
0
||
i
.
status
===
1
))
return
this
.
$message
.
warning
(
this
.
$t
(
'
当前有未提交的数据或审核中的数据不能修改
'
))
if
(
this
.
list
.
some
(
i
=>
i
.
status
===
0
||
i
.
status
===
1
))
return
this
.
$message
.
warning
(
this
.
$t
(
'
当前有未提交的数据或审核中的数据不能修改
'
))
this
.
isModifyIf
=
true
;
this
.
isModifyIf
=
true
;
this
.
isModify
.
forEach
((
item
,
index
)
=>
{
this
.
$set
(
this
.
isModify
,
index
,
true
)
})
this
.
$set
(
this
.
isModify
,
this
.
list
.
findIndex
(
e
=>
e
.
id
===
row
.
id
),
false
)
this
.
$set
(
this
.
isModify
,
this
.
list
.
findIndex
(
e
=>
e
.
id
===
row
.
id
),
false
)
},
},
examineFn
(){
examineFn
(){
...
...
src/views/ecw/order/release.vue
View file @
ae0340a5
...
@@ -33,8 +33,7 @@
...
@@ -33,8 +33,7 @@
+
{{
order
.
consigneeVO
.
countryCode
}}
{{
order
.
consigneeVO
.
phone
}}
+
{{
order
.
consigneeVO
.
countryCode
}}
{{
order
.
consigneeVO
.
phone
}}
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('收货地址')"
>
<el-form-item
:label=
"$t('收货地址')"
>
<!--缺少国城名字-->
<el-input
v-model=
"form.deliverAddress"
placeholder=
""
></el-input>
{{
order
.
consigneeVO
.
address
}}
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('快递单号')"
>
<el-form-item
:label=
"$t('快递单号')"
>
<el-input
v-model=
"form.trackingNumber"
placeholder=
""
></el-input>
<el-input
v-model=
"form.trackingNumber"
placeholder=
""
></el-input>
...
@@ -73,6 +72,13 @@ export default {
...
@@ -73,6 +72,13 @@ export default {
form
:
{}
form
:
{}
}
}
},
},
watch
:{
'
form.pickType
'
(
type
){
if
(
type
==
1
&&
this
.
order
.
consigneeVO
.
address
){
this
.
$set
(
this
.
form
,
'
deliverAddress
'
,
this
.
order
.
consigneeVO
.
address
)
}
}
},
created
(){
created
(){
this
.
loadOrderData
()
this
.
loadOrderData
()
},
},
...
...
src/views/ecw/order/weightDeal.vue
View file @
ae0340a5
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
<span>
{{
scope
.
$index
+
1
}}
</span>
<span>
{{
scope
.
$index
+
1
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('品名')"
align=
"center"
>
<el-table-column
:label=
"$t('品名')"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<p>
{{
scope
.
row
.
prodTitleEn
||
''
}}
</p>
<p>
{{
scope
.
row
.
prodTitleEn
||
''
}}
</p>
<p>
{{
scope
.
row
.
prodTitleZh
||
''
}}
</p>
<p>
{{
scope
.
row
.
prodTitleZh
||
''
}}
</p>
...
@@ -72,23 +72,22 @@
...
@@ -72,23 +72,22 @@
<p>
{{
$t
(
'
重量
'
)
}}
:
{{
scope
.
row
.
weight
||
0
}}
KG
</p>
<p>
{{
$t
(
'
重量
'
)
}}
:
{{
scope
.
row
.
weight
||
0
}}
KG
</p>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('入库货物属性')"
align=
"center"
>
<el-table-column
:label=
"$t('入库货物属性')"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
$t
(
'
箱规
'
)
}}
:
{{
scope
.
row
.
warehouseInInfoVO
?
scope
.
row
.
warehouseInInfoVO
.
boxGauge
:
0
}}
</span>
<p>
{{
$t
(
'
箱规
'
)
}}
:
{{
scope
.
row
.
warehouseInInfoVO
?
scope
.
row
.
warehouseInInfoVO
.
boxGauge
:
0
}}
</p>
<p>
<p>
{{
$t
(
'
品牌
'
)
}}
:
<dict-tag
:type=
"DICT_TYPE.ECW_IS_BRAND"
:value=
"scope.row.brandType"
/></p>
<span>
{{
$t
(
'
品牌
'
)
}}
:
<dict-tag
:type=
"DICT_TYPE.ECW_IS_BRAND"
:value=
"scope.row.brandType"
/></span>
<p>
{{
$t
(
'
箱数
'
)
}}
:
{{
scope
.
row
.
warehouseInInfoVO
?
scope
.
row
.
warehouseInInfoVO
.
cartonsNum
:
0
}}
</p>
<span>
{{
$t
(
'
箱数
'
)
}}
:
{{
scope
.
row
.
warehouseInInfoVO
?
scope
.
row
.
warehouseInInfoVO
.
cartonsNum
:
0
}}
</span>
<p>
{{
$t
(
'
体积
'
)
}}
:
{{
scope
.
row
.
warehouseInInfoVO
?
scope
.
row
.
warehouseInInfoVO
.
volume
:
0
}}
CBM
</p>
<span>
{{
$t
(
'
体积
'
)
}}
:
{{
scope
.
row
.
warehouseInInfoVO
?
scope
.
row
.
warehouseInInfoVO
.
volume
:
0
}}
CBM
</span>
<p>
{{
$t
(
'
重量
'
)
}}
:
{{
scope
.
row
.
warehouseInInfoVO
?
scope
.
row
.
warehouseInInfoVO
.
weight
:
0
}}
KG
<span>
{{
$t
(
'
重量
'
)
}}
:
{{
scope
.
row
.
warehouseInInfoVO
?
scope
.
row
.
warehouseInInfoVO
.
weight
:
0
}}
KG
</span>
</p>
</p>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('重货方数')"
align=
"center"
v-if=
"type=='order_heavy_cargo_exception'"
>
<el-table-column
:label=
"$t('重货方数')"
v-if=
"type=='order_heavy_cargo_exception'"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
wvolume
||
0
}}
CBM
</span>
<span>
{{
scope
.
row
.
wvolume
||
0
}}
CBM
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('泡货方数')"
align=
"center"
v-else
>
<el-table-column
:label=
"$t('泡货方数')"
v-else
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
vweight
||
0
}}
CBM
</span>
<span>
{{
scope
.
row
.
vweight
||
0
}}
CBM
</span>
</
template
>
</
template
>
...
@@ -204,6 +203,9 @@ export default {
...
@@ -204,6 +203,9 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.dialog-footer
{
margin-top
:
10px
;
}
.filelist
{
.filelist
{
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
...
@@ -222,4 +224,8 @@ export default {
...
@@ -222,4 +224,8 @@ export default {
.card
{
.card
{
margin-top
:
20px
;
margin-top
:
20px
;
}
}
p
{
text-align
:
left
;
margin
:
0
!important
;
}
</
style
>
</
style
>
src/views/ecw/productAttr/edit.vue
View file @
ae0340a5
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-form-item
:label=
"$t('适用商品')"
prop=
"idList"
>
<el-form-item
:label=
"$t('适用商品')"
prop=
"idList"
>
<products-selector
:defaultIds=
"form.idList"
v-model=
"form.idList"
/>
<products-selector
:defaultIds=
"form.idList"
v-model=
"form.idList"
show-all
@
setall=
"toggleAll"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('货柜位置')"
prop=
"containerLocation"
>
<el-form-item
:label=
"$t('货柜位置')"
prop=
"containerLocation"
>
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
</el-checkbox-group>
</el-checkbox-group>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('商品材质')"
prop=
"materialType"
>
<el-form-item
:label=
"$t('商品材质')"
prop=
"materialType"
>
<dict-selector
form-type=
"checkbox"
:type=
"DICT_TYPE.ECW_PRODUCT_MATERIAL"
v-model=
"form.materialType"
multiple
/>
<dict-selector
form-type=
"checkbox"
:type=
"DICT_TYPE.ECW_PRODUCT_MATERIAL"
v-model=
"form.materialType
Arr
"
multiple
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
...
@@ -68,7 +68,7 @@ export default {
...
@@ -68,7 +68,7 @@ export default {
"
containerLocation
"
:
undefined
,
"
containerLocation
"
:
undefined
,
"
dayLimit
"
:
undefined
,
"
dayLimit
"
:
undefined
,
"
idList
"
:
[],
"
idList
"
:
[],
"
isAllProduct
"
:
undefined
,
"
isAllProduct
"
:
0
,
"
needBook
"
:
false
,
"
needBook
"
:
false
,
"
packaging
"
:
undefined
,
"
packaging
"
:
undefined
,
"
requirements
"
:
undefined
,
"
requirements
"
:
undefined
,
...
@@ -84,12 +84,15 @@ export default {
...
@@ -84,12 +84,15 @@ export default {
},
},
watch
:
{
watch
:
{
'
form.idList
'
(
val
)
{
/*
'form.idList'(val) {
if (val.length > 0) {
if (val.length > 0) {
this.form.isAllProduct = 0
this.form.isAllProduct = 0
} else {
} else {
this.form.isAllProduct = 1
this.form.isAllProduct = 1
}
}
}, */
'
form.materialTypeArr
'
(
typeArr
){
this
.
$set
(
this
.
form
,
'
form.materialTyp
'
,
typeArr
.
join
(
'
,
'
))
},
},
attrIds
(
val
){
attrIds
(
val
){
this
.
form
.
attrId
=
val
.
join
(
'
,
'
)
this
.
form
.
attrId
=
val
.
join
(
'
,
'
)
...
@@ -103,6 +106,9 @@ export default {
...
@@ -103,6 +106,9 @@ export default {
})
})
},
},
methods
:
{
methods
:
{
toggleAll
(
e
){
this
.
$set
(
this
.
form
,
'
isAllProduct
'
,
e
?
1
:
0
)
},
/** 表单重置 */
/** 表单重置 */
reset
()
{
reset
()
{
this
.
form
=
{
this
.
form
=
{
...
@@ -110,7 +116,7 @@ export default {
...
@@ -110,7 +116,7 @@ export default {
"
containerLocation
"
:
undefined
,
"
containerLocation
"
:
undefined
,
"
dayLimit
"
:
undefined
,
"
dayLimit
"
:
undefined
,
"
idList
"
:
[],
"
idList
"
:
[],
"
isAllProduct
"
:
undefined
,
"
isAllProduct
"
:
0
,
"
needBook
"
:
undefined
,
"
needBook
"
:
undefined
,
"
packaging
"
:
undefined
,
"
packaging
"
:
undefined
,
"
requirements
"
:
undefined
,
"
requirements
"
:
undefined
,
...
@@ -127,9 +133,12 @@ export default {
...
@@ -127,9 +133,12 @@ export default {
return
;
return
;
}
}
let
data
=
Object
.
assign
({},
this
.
form
)
let
data
=
Object
.
assign
({},
this
.
form
)
if
(
!
data
.
isAllProduct
&&
!
data
.
idList
.
length
){
return
this
.
$message
(
this
.
$t
(
'
请选择商品或勾选全部
'
))
}
batchUpdateProduct
(
data
).
then
((
response
)
=>
{
batchUpdateProduct
(
data
).
then
((
response
)
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
修改成功
"
));
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
修改成功
"
));
this
.
$
router
.
back
();
this
.
$
store
.
dispatch
(
'
tagsView/delCurrentView
'
)
});
});
});
});
},
},
...
...
src/views/ecw/supplier/edit.vue
View file @
ae0340a5
...
@@ -315,7 +315,11 @@ export default {
...
@@ -315,7 +315,11 @@ export default {
if
(
this
.
$route
.
query
.
id
){
if
(
this
.
$route
.
query
.
id
){
getSupplier
(
this
.
$route
.
query
.
id
).
then
(
response
=>
{
getSupplier
(
this
.
$route
.
query
.
id
).
then
(
response
=>
{
/* response.data.companyType = response.data.companyType.split(",") || [] */
/* response.data.companyType = response.data.companyType.split(",") || [] */
this
.
formData
=
response
.
data
;
this
.
formData
=
response
.
data
this
.
$set
(
this
.
formData
,
'
companyTypeArr
'
,
response
.
data
.
companyType
?.
split
(
"
,
"
)
||
[])
this
.
formData
.
bankList
.
forEach
(
item
=>
{
item
.
currency
=
+
item
.
currency
})
});
});
}
}
})
})
...
...
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