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
bf6eec70
Commit
bf6eec70
authored
Mar 01, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑客户页面修改,新增常用提货点,去掉资源类型,出货渠道空运禁止选择,添加输入身份证信息
parent
cd3ec77c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
16 deletions
+41
-16
index.js
src/router/index.js
+7
-6
edit.vue
src/views/ecw/customer/edit.vue
+34
-10
No files found.
src/router/index.js
View file @
bf6eec70
...
@@ -258,13 +258,14 @@ export const constantRoutes = [
...
@@ -258,13 +258,14 @@ export const constantRoutes = [
meta
:
{
title
:
'
佣金设置
'
,
titleEn
:
'
Commission settings
'
,
icon
:
''
,
activeMenu
:
'
/customer/customerCommissionInfo
'
},
meta
:
{
title
:
'
佣金设置
'
,
titleEn
:
'
Commission settings
'
,
icon
:
''
,
activeMenu
:
'
/customer/customerCommissionInfo
'
},
props
:
true
,
props
:
true
,
},
},
// {
// path: 'edit/:customerId(\\d+)',
// component: (resolve) => import('@/views/ecw/customer/edit'),
// props: true,
// name: 'customerEdit',
// meta: {title:'编辑客户',titleEn:'Edit Customer', icon: ''}
// },
{
{
path
:
'
edit/:customerId(
\\
d+)
'
,
component
:
(
resolve
)
=>
import
(
'
@/views/ecw/customer/edit
'
),
props
:
true
,
name
:
'
customerEdit
'
,
meta
:
{
title
:
'
编辑客户
'
,
titleEn
:
'
Edit Customer
'
,
icon
:
''
}
},{
path
:
'
edit-distribution/:customerId(
\\
d+)
'
,
path
:
'
edit-distribution/:customerId(
\\
d+)
'
,
component
:
(
resolve
)
=>
import
(
'
@/views/ecw/customer/edit
'
),
component
:
(
resolve
)
=>
import
(
'
@/views/ecw/customer/edit
'
),
props
:
true
,
props
:
true
,
...
...
src/views/ecw/customer/edit.vue
View file @
bf6eec70
...
@@ -33,7 +33,10 @@
...
@@ -33,7 +33,10 @@
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('出货渠道')"
prop=
"transportType"
>
<el-form-item
:label=
"$t('出货渠道')"
prop=
"transportType"
>
<dict-selector
:type=
"DICT_TYPE.ECW_CUSTOMER_TRANSPORT_TYPE"
form-type=
"checkbox"
multiple
v-model=
"form.transportType"
></dict-selector>
<!--
<dict-selector
:type=
"DICT_TYPE.ECW_CUSTOMER_TRANSPORT_TYPE"
form-type=
"checkbox"
multiple
v-model=
"form.transportType"
></dict-selector>
-->
<el-checkbox-group
v-model=
"form.transportType"
>
<el-checkbox
v-for=
"item in getDictDatas(DICT_TYPE.ECW_CUSTOMER_TRANSPORT_TYPE)"
:key=
"item.value"
:label=
"item.value"
:disabled=
"item.value == 4"
>
{{
item
.
label
}}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -42,8 +45,13 @@
...
@@ -42,8 +45,13 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('资源类型')"
prop=
"remarks"
>
<!--
<el-form-item
:label=
"$t('资源类型')"
prop=
"remarks"
>
-->
<dict-selector
:type=
"DICT_TYPE.ECW_CUSTOMER_RESOURCE_TYPE"
v-model=
"form.resourceType"
formatter=
"number"
></dict-selector>
<!--
<dict-selector
:type=
"DICT_TYPE.ECW_CUSTOMER_RESOURCE_TYPE"
v-model=
"form.resourceType"
formatter=
"number"
></dict-selector>
-->
<!--
</el-form-item>
-->
<el-form-item
:label=
"$t('常用提货网点')"
prop=
"remarks"
>
<el-select
v-model=
"form.pickupPoint"
>
<el-option
v-for=
"item in serviceNetworkList "
:value=
"item.id"
:label=
"isChinese ? item.titleZh : item.titleEn "
></el-option>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -206,6 +214,14 @@
...
@@ -206,6 +214,14 @@
<customer-line-table
v-if=
"showPao1"
:warehouse-list=
"warehouseList"
:import-city-list=
"importCityList"
v-model=
"paoLines"
:zhong-pao-type=
"2"
></customer-line-table>
<customer-line-table
v-if=
"showPao1"
:warehouse-list=
"warehouseList"
:import-city-list=
"importCityList"
v-model=
"paoLines"
:zhong-pao-type=
"2"
></customer-line-table>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
v-hasPermi=
"['ecw:customer:query-card']"
:label=
"$t('身份证姓名')"
>
<el-input
v-model=
"form.carName"
></el-input>
</el-form-item>
<el-form-item
v-hasPermi=
"['ecw:customer:query-card']"
:label=
"$t('身份证号码')"
>
<el-input
v-model=
"form.carNo"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-row>
<el-card
class=
"box-card"
>
<el-card
class=
"box-card"
>
...
@@ -418,7 +434,7 @@ import {
...
@@ -418,7 +434,7 @@ import {
getCustomerPage
,
memberUserList
,
getCustomerPage
,
memberUserList
,
updateCustomer
,
updateCustomer
,
userMemberUserList
,
userMemberUserList
,
getCustomerLines
,
fillupCustomeInfo
getCustomerLines
,
fillupCustomeInfo
,
getServiceNetwork
}
from
'
@/api/ecw/customer
'
}
from
'
@/api/ecw/customer
'
import
{
getNodeList
}
from
"
@/api/ecw/node
"
import
{
getNodeList
}
from
"
@/api/ecw/node
"
import
{
getProductTypeList
}
from
'
@/api/ecw/productType
'
import
{
getProductTypeList
}
from
'
@/api/ecw/productType
'
...
@@ -438,9 +454,7 @@ import MemberSelector from '@/components/MemberSelector'
...
@@ -438,9 +454,7 @@ import MemberSelector from '@/components/MemberSelector'
export
default
{
export
default
{
name
:
"
edit
"
,
name
:
"
edit
"
,
props
:
{
customerId
:
String
,
},
components
:
{
components
:
{
Template
,
Template
,
upload
,
upload
,
...
@@ -518,6 +532,10 @@ export default {
...
@@ -518,6 +532,10 @@ export default {
getCountryListAll
().
then
(
r
=>
{
getCountryListAll
().
then
(
r
=>
{
this
.
countryList
=
r
.
data
this
.
countryList
=
r
.
data
})
})
// 获取服务网点
getServiceNetwork
().
then
(
r
=>
{
this
.
serviceNetworkList
=
r
.
data
})
},
},
data
(){
data
(){
return
{
return
{
...
@@ -567,7 +585,8 @@ export default {
...
@@ -567,7 +585,8 @@ export default {
zhongLines
:
[],
// 重货线路
zhongLines
:
[],
// 重货线路
paoLines
:
[],
// 泡货线路
paoLines
:
[],
// 泡货线路
memberList
:[],
//会员列表
memberList
:[],
//会员列表
selectMemberList
:[]
//选中会员列表
selectMemberList
:[],
//选中会员列表
serviceNetworkList
:[]
//网点列表
}
}
},
},
...
@@ -752,13 +771,15 @@ export default {
...
@@ -752,13 +771,15 @@ export default {
weightUnit
:
undefined
,
weightUnit
:
undefined
,
createTime
:
undefined
,
createTime
:
undefined
,
isShowTidanPrice
:
true
,
isShowTidanPrice
:
true
,
carName
:
undefined
,
carNo
:
undefined
,
};
};
this
.
form
.
createTime
=
(
new
Date
()).
getTime
()
this
.
form
.
createTime
=
(
new
Date
()).
getTime
()
this
.
resetForm
(
"
form
"
);
this
.
resetForm
(
"
form
"
);
},
},
getCustomer
(
id
)
{
getCustomer
(
id
)
{
return
getCustomer
(
id
).
then
(
response
=>
{
return
getCustomer
(
id
).
then
(
response
=>
{
this
.
form
=
{
...
this
.
form
,
...
response
.
data
,
id
:
this
.
customerId
};
this
.
form
=
{
...
this
.
form
,
...
response
.
data
,
id
:
this
.
customerId
,
transportType
:
response
.
data
.
transportType
.
split
(
'
,
'
)
};
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
this
.
$t
(
'
修改客户
'
);
this
.
title
=
this
.
$t
(
'
修改客户
'
);
this
.
getZhongPao
()
this
.
getZhongPao
()
...
@@ -777,7 +798,7 @@ export default {
...
@@ -777,7 +798,7 @@ export default {
handleAddContact
()
{
handleAddContact
()
{
this
.
form
.
customerContacts
.
push
({
this
.
form
.
customerContacts
.
push
({
"
areaCode
"
:
""
,
"
areaCode
"
:
""
,
// "customerId": 0,
// "customerId": 0,
q
"
department
"
:
""
,
"
department
"
:
""
,
"
email
"
:
""
,
"
email
"
:
""
,
"
isDefault
"
:
this
.
form
.
customerContacts
.
length
===
0
?
1
:
0
,
"
isDefault
"
:
this
.
form
.
customerContacts
.
length
===
0
?
1
:
0
,
...
@@ -818,6 +839,9 @@ export default {
...
@@ -818,6 +839,9 @@ export default {
userId
(){
userId
(){
return
this
.
$store
.
state
.
user
.
id
return
this
.
$store
.
state
.
user
.
id
},
},
customerId
(){
return
this
.
$route
.
params
.
customerId
;
},
/* userMemberUser(){
/* userMemberUser(){
let list = this.memberList.filter(item => {
let list = this.memberList.filter(item => {
return this.selectMemberList.findIndex(i => i.id === item.id) < 0
return this.selectMemberList.findIndex(i => i.id === item.id) < 0
...
...
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