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
8c4a0ea3
Commit
8c4a0ea3
authored
Jun 22, 2022
by
Marcus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户字段调整
parent
1289f45d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
32 deletions
+61
-32
edit.vue
src/views/ecw/customer/edit.vue
+57
-28
query.vue
src/views/ecw/customer/query.vue
+4
-4
No files found.
src/views/ecw/customer/edit.vue
View file @
8c4a0ea3
...
...
@@ -20,7 +20,7 @@
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"客户等级"
prop=
"level"
>
<el-select
v-model=
"form.level"
placeholder=
"请选择客户等级"
>
<el-select
v-model=
"form.level"
placeholder=
"请选择客户等级"
disabled
>
<el-option
v-for=
"dict in getDictDatas(DICT_TYPE.CUSTOMER_LEVEL)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"parseInt(dict.value)"
/>
</el-select>
...
...
@@ -33,20 +33,13 @@
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"客户类别"
prop=
"type"
>
<el-select
v-model=
"form.type"
placeholder=
"请选择客户类别"
>
<el-option
v-for=
"dict in getDictDatas(DICT_TYPE.CUSTOMER_TYPE)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
<dict-selector
:type=
"DICT_TYPE.CUSTOMER_TYPE"
form-type=
"select"
multiple
v-model=
"form.type"
></dict-selector>
<!--
<el-select
v-model=
"form.type"
placeholder=
"请选择客户类别"
>
-->
<!--
<el-option
v-for=
"dict in getDictDatas(DICT_TYPE.CUSTOMER_TYPE)"
--
>
<!-- :key="dict.value" :label="dict.label" :value="dict.value" />-->
<!--
</el-select>
-->
</el-form-item>
</el-col>
<!--
<el-col
:span=
"12"
>
-->
<!--
<el-form-item
label=
"所属代理"
prop=
"agentId"
>
-->
<!--
<el-select
v-model=
"form.agentId"
placeholder=
"请选择所属代理"
>
-->
<!--
<el-option
v-for=
"dict in getDictDatas(DICT_TYPE.COMMON_STATUS)"
--
>
<!-- :key="dict.value" :label="dict.label" :value="parseInt(dict.value)" />-->
<!--
</el-select>
-->
<!--
</el-form-item>
-->
<!--
</el-col>
-->
<el-col
:span=
"12"
>
<el-form-item
label=
"常用提货网点"
prop=
"pickupPoint"
>
<el-select
v-model=
"form.pickupPoint"
placeholder=
"请输入常用提货网点"
>
...
...
@@ -55,6 +48,14 @@
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"13"
v-show=
"form.type && form.type.indexOf('3') !== -1"
>
<el-form-item
label=
"所属代理"
prop=
"agentId"
>
<el-select
v-model=
"form.agentId"
placeholder=
"请选择所属代理"
>
<el-option
v-for=
"dict in getDictDatas(DICT_TYPE.COMMON_STATUS)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"parseInt(dict.value)"
/>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"公司名称"
prop=
"company"
>
...
...
@@ -129,16 +130,30 @@
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"推介人"
prop=
"promoter"
>
<el-input
v-model=
"form.promoter"
placeholder=
"请输入推介人"
/>
<el-select
v-model=
"form.promoter"
placeholder=
"请输入推介人"
filterable
>
<el-option
v-for=
"item in customerSelect"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"创建人"
prop=
"founder"
>
<el-input
v-model=
"form.founder"
placeholder=
"请输入创建人"
/>
<el-select
v-model=
"form.founder"
disabled
>
<el-option
v-for=
"item in serviceUserList"
:key=
"item.id"
:label=
"item.nickname"
:value=
"item.id"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"创建时间"
prop=
"
founder
"
>
<el-form-item
label=
"创建时间"
prop=
"
createTime
"
>
<el-date-picker
v-model=
"form.createTime"
type=
"datetime"
...
...
@@ -157,30 +172,32 @@
<el-switch
v-model=
"form.arrivalConfirm"
:active-value=
"0"
:inactive-value=
"1"
/>
</el-form-item>
</el-col>
<el-col
:span=
"1
2
"
>
<el-col
:span=
"1
3
"
>
<el-form-item
label=
"重货标准"
prop=
"weightUnit"
>
<el-input
v-model=
"form.weightUnit"
placeholder=
"请输入重货标准"
>
<el-switch
v-model=
"showZhong"
/>
<el-input
v-model=
"form.weightUnit"
placeholder=
"请输入重货标准"
v-show=
"showZhong"
>
<template
slot=
"append"
>
kg/cbm
</
template
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
v-show=
"showZhong"
>
<el-form-item
label=
"指定线路"
prop=
"line"
>
<el-switch
v-model=
"showZhong"
></el-switch>
<customer-line-table
v-show=
"showZhong"
:warehouse-list=
"warehouseList"
:import-city-list=
"importCityList"
v-model=
"zhongLines"
:zhong-pao-type=
"0"
></customer-line-table>
<el-switch
v-model=
"showZhong
1
"
></el-switch>
<customer-line-table
v-show=
"showZhong
1
"
:warehouse-list=
"warehouseList"
:import-city-list=
"importCityList"
v-model=
"zhongLines"
:zhong-pao-type=
"0"
></customer-line-table>
</el-form-item>
</el-col>
<el-col
:span=
"1
2
"
>
<el-col
:span=
"1
3
"
>
<el-form-item
label=
"泡货标准"
prop=
"weightUnit"
>
<el-input
v-model=
"form.lightUnit"
placeholder=
"请输入泡货标准"
>
<el-switch
v-model=
"showPao"
/>
<el-input
v-model=
"form.lightUnit"
placeholder=
"请输入泡货标准"
v-show=
"showPao"
>
<
template
slot=
"append"
>
kg/cbm
</
template
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
v-show=
"showPao"
>
<el-form-item
label=
"指定线路"
prop=
"line"
>
<el-switch
v-model=
"showPao"
></el-switch>
<customer-line-table
v-show=
"showPao"
:warehouse-list=
"warehouseList"
:import-city-list=
"importCityList"
v-model=
"paoLines"
:zhong-pao-type=
"1"
></customer-line-table>
<el-switch
v-model=
"showPao
1
"
></el-switch>
<customer-line-table
v-show=
"showPao
1
"
:warehouse-list=
"warehouseList"
:import-city-list=
"importCityList"
v-model=
"paoLines"
:zhong-pao-type=
"1"
></customer-line-table>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -365,6 +382,8 @@ import { getProductList } from '@/api/ecw/product'
import
{
getTradeCityList
}
from
"
@/api/ecw/region
"
import
{
getWarehouseList
}
from
"
@/api/ecw/warehouse
"
import
CustomerLineTable
from
'
@/components/CustomerLineTable
'
import
{
getCustomerSelect
}
from
"
@/api/ecw/customer
"
import
{
listServiceUser
}
from
"
@/api/system/user
"
export
default
{
name
:
"
edit
"
,
...
...
@@ -395,6 +414,12 @@ export default {
getWarehouseList
().
then
(
r
=>
{
this
.
warehouseList
=
r
.
data
})
getCustomerSelect
().
then
(
r
=>
{
this
.
customerSelect
=
r
.
data
})
listServiceUser
().
then
(
r
=>
{
this
.
serviceUserList
=
r
.
data
})
},
data
(){
return
{
...
...
@@ -420,9 +445,13 @@ export default {
productTypeList
:
[],
productList
:
[],
showZhong
:
false
,
showZhong1
:
false
,
showPao
:
false
,
showPao1
:
false
,
warehouseList
:
[],
// 仓库列表
importCityList
:
[],
// 进口地址
customerSelect
:
[],
serviceUserList
:
[],
zhongLines
:
[],
// 重货线路
paoLines
:
[],
// 泡货线路
...
...
@@ -463,7 +492,7 @@ export default {
id
:
undefined
,
number
:
undefined
,
name
:
undefined
,
level
:
undefined
,
level
:
1
,
country
:
undefined
,
type
:
undefined
,
agentId
:
undefined
,
...
...
@@ -483,7 +512,7 @@ export default {
lightUnit
:
undefined
,
promoter
:
undefined
,
status
:
undefined
,
founder
:
undefine
d
,
founder
:
this
.
$store
.
getters
.
userI
d
,
department
:
undefined
,
invoiceTitle
:
undefined
,
licenseNumber
:
undefined
,
...
...
src/views/ecw/customer/query.vue
View file @
8c4a0ea3
...
...
@@ -357,10 +357,10 @@ import { getCustomer } from '@/api/ecw/customer'
import
{
DICT_TYPE
,
getDictDataLabel
}
from
'
@/utils/dict
'
import
{
getProductTypeList
}
from
'
@/api/ecw/productType
'
import
{
getNodeList
}
from
'
@/api/ecw/node
'
import
DictSelector
from
"
../../..
/components/DictSelector
"
import
{
getCustomerContactsList
}
from
"
../../..
/api/ecw/customerContacts
"
import
{
listServiceUser
}
from
"
../../..
/api/system/user
"
import
{
createCustomerFollow
,
getCustomerFollowPage
}
from
"
../../..
/api/ecw/customerFollow
"
import
DictSelector
from
"
@
/components/DictSelector
"
import
{
getCustomerContactsList
}
from
"
@
/api/ecw/customerContacts
"
import
{
listServiceUser
}
from
"
@
/api/system/user
"
import
{
createCustomerFollow
,
getCustomerFollowPage
}
from
"
@
/api/ecw/customerFollow
"
export
default
{
name
:
'
query
'
,
...
...
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