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
df8ed235
Commit
df8ed235
authored
Jan 29, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
国家化,bug修复,间接客户,信用日志
parent
55e344e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
13 deletions
+20
-13
editIndirect.vue
src/views/ecw/customer/editIndirect.vue
+14
-11
query.vue
src/views/ecw/customer/query.vue
+6
-2
No files found.
src/views/ecw/customer/editIndirect.vue
View file @
df8ed235
...
...
@@ -13,7 +13,7 @@
<el-form-item
:label=
"$t('国家')"
prop=
"country"
>
<el-select
filterable
clearable
v-model=
"form.country"
:placeholder=
"$t('请选择国家')"
>
<el-option
v-for=
"dict in countryList"
:key=
"dict.id"
:label=
"
dict.nameZh
"
:value=
"parseInt(dict.id)"
/>
:key=
"dict.id"
:label=
"
isChinese ? dict.nameZh : dict.nameEn
"
:value=
"parseInt(dict.id)"
/>
</el-select>
</el-form-item>
</el-col>
...
...
@@ -21,7 +21,7 @@
<el-form-item
:label=
"$t('客户等级')"
prop=
"level"
>
<el-select
v-model=
"form.level"
:placeholder=
"$t('请选择客户等级')"
disabled
>
<el-option
v-for=
"dict in getDictDatas(DICT_TYPE.CUSTOMER_LEVEL)"
:key=
"dict.value"
:label=
"
dict.label
"
:value=
"parseInt(dict.value)"
/>
:key=
"dict.value"
:label=
"
isChinese ? dict.label : dict.labelEn
"
:value=
"parseInt(dict.value)"
/>
</el-select>
</el-form-item>
</el-col>
...
...
@@ -39,7 +39,7 @@
<el-form-item
:label=
"$t('常用提货网点')"
prop=
"pickupPoint"
>
<el-select
v-model=
"form.pickupPoint"
:placeholder=
"$t('请输入常用提货网点')"
>
<el-option
v-for=
"node in nodeList"
:key=
"node.id"
:label=
"
node.titleZh
"
:value=
"node.id"
/>
:key=
"node.id"
:label=
"
isChinese ? node.titleZh : node.titleEn
"
:value=
"node.id"
/>
</el-select>
</el-form-item>
</el-col>
...
...
@@ -73,12 +73,12 @@
<el-row
:gutter=
"10"
>
<el-col
:span=
"11"
>
<el-select
v-model=
"form.productType"
:placeholder=
"$t('请选择产品类别')"
@
change=
"form.productId = ''"
>
<el-option
:label=
"
item.titleZh
"
:value=
"item.id"
v-for=
"(item) in productTypeList"
:key=
"item.id"
/>
<el-option
:label=
"
isChinese ? item.titleZh : item.titleEn
"
:value=
"item.id"
v-for=
"(item) in productTypeList"
:key=
"item.id"
/>
</el-select>
</el-col>
<el-col
:span=
"11"
>
<el-select
v-model=
"form.productId"
:placeholder=
"$t('请选择')"
>
<el-option
:label=
"
item.titleZh
"
:value=
"parseInt(item.id)"
v-for=
"(item) in productListFilter"
:key=
"item.id"
/>
<el-option
:label=
"
isChinese ?item.titleZh : item.titleEn
"
:value=
"parseInt(item.id)"
v-for=
"(item) in productListFilter"
:key=
"item.id"
/>
</el-select>
</el-col>
</el-row>
...
...
@@ -88,7 +88,7 @@
<el-form-item
:label=
"$t('客户来源')"
prop=
"source"
>
<el-select
v-model=
"form.source"
:placeholder=
"$t('请选择客户来源')"
>
<el-option
v-for=
"dict in getDictDatas(DICT_TYPE.CUSTOMER_SOURCE)"
:key=
"dict.value"
:label=
"
dict.label
"
:value=
"parseInt(dict.value)"
/>
:key=
"dict.value"
:label=
"
isChinese ? dict.label : dict.labelEn
"
:value=
"parseInt(dict.value)"
/>
</el-select>
</el-form-item>
</el-col>
...
...
@@ -96,7 +96,7 @@
<el-form-item
:label=
"$t('结算方式')"
prop=
"balance"
>
<el-select
v-model=
"form.balance"
:placeholder=
"$t('请选择结算方式')"
>
<el-option
v-for=
"dict in getDictDatas(DICT_TYPE.CUSTOMER_BALANCE)"
:key=
"dict.value"
:label=
"
dict.label
"
:value=
"parseInt(dict.value)"
/>
:key=
"dict.value"
:label=
"
isChinese ? dict.label:dict.labelEn
"
:value=
"parseInt(dict.value)"
/>
</el-select>
</el-form-item>
</el-col>
...
...
@@ -118,7 +118,7 @@
<el-form-item
:label=
"$t('客户状态')"
prop=
"status"
>
<el-select
v-model=
"form.status"
:placeholder=
"$t('请选择客户状态')"
disabled
>
<el-option
v-for=
"dict in getDictDatas(DICT_TYPE.CUSTOMER_STATUS)"
:key=
"dict.value"
:label=
"
dict.label
"
:value=
"parseInt(dict.value)"
/>
:key=
"dict.value"
:label=
"
isChinese ? dict.label : dict.labelEn
"
:value=
"parseInt(dict.value)"
/>
</el-select>
</el-form-item>
</el-col>
...
...
@@ -258,7 +258,7 @@
<el-form-item
:rules=
"contactRules.areaCode"
:prop=
"'customerContacts.' + $index + '.areaCode'"
label=
""
>
<el-select
v-model=
"row.areaCode"
:placeholder=
"$t('请选择区号')"
filterable
size=
"mini"
>
<el-option
v-for=
"(item, index) in countryList"
:key=
"index"
:label=
"item.nameShort +
item.nameZh
+ '(' + item.tel + ')'"
:value=
"item.tel"
/>
:key=
"index"
:label=
"item.nameShort +
(isChinese ? item.nameZh : item.nameEn)
+ '(' + item.tel + ')'"
:value=
"item.tel"
/>
</el-select>
</el-form-item>
</
template
>
...
...
@@ -297,7 +297,7 @@
<el-form-item
label=
""
>
<el-select
v-model=
"row.social"
:placeholder=
"$t('请选择社交软件')"
size=
"mini"
>
<el-option
v-for=
"dict in getDictDatas(DICT_TYPE.SOCIAL)"
:key=
"dict.value"
:label=
"
dict.label
"
:value=
"parseInt(dict.value)"
/>
:key=
"dict.value"
:label=
"
isChinese ? dict.label : dict.labelEn
"
:value=
"parseInt(dict.value)"
/>
</el-select>
</el-form-item>
</
template
>
...
...
@@ -330,7 +330,7 @@
<el-form-item
label=
""
>
<el-select
v-model=
"row.isDefault"
:placeholder=
"$t('设为默认')"
@
change=
"handleDefaultChange($index)"
size=
"mini"
>
<el-option
v-for=
"dict in getDictDatas(DICT_TYPE.IS_DEFAULT)"
:key=
"dict.value"
:label=
"
dict.label
"
:value=
"Number(dict.value)"
/>
:key=
"dict.value"
:label=
"
isChinese ? dict.label :dict.labelEn
"
:value=
"Number(dict.value)"
/>
</el-select>
</el-form-item>
</
template
>
...
...
@@ -811,6 +811,9 @@ export default {
userId
(){
return
this
.
$store
.
state
.
user
.
id
},
isChinese
(){
return
this
.
$i18n
.
locale
===
'
zh_CN
'
},
/* userMemberUser(){
let list = this.memberList.filter(item => {
return this.selectMemberList.findIndex(i => i.id === item.id) < 0
...
...
src/views/ecw/customer/query.vue
View file @
df8ed235
...
...
@@ -345,7 +345,11 @@
<
/div
>
<
el
-
table
:
data
=
"
customerCreditLogList
"
>
<
el
-
table
-
column
:
label
=
"
$t('序号')
"
type
=
"
index
"
><
/el-table-column
>
<
el
-
table
-
column
prop
=
"
name
"
:
label
=
"
$t('规则名称')
"
><
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('规则名称')
"
>
<
template
v
-
slot
=
"
{row
}
"
>
{{
isChinese
?
row
.
name
:
row
.
nameEn
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"
type
"
:
label
=
"
$t('规则分类')
"
>
<
template
v
-
slot
=
"
{row
}
"
>
<
dict
-
tag
:
type
=
"
DICT_TYPE.CUSTOMER_CREDIT_RULE_TYPE
"
:
value
=
"
row.type
"
/>
...
...
@@ -396,7 +400,7 @@
<
el
-
form
-
item
:
label
=
"
$t('客户编号:')
"
>
{{
customer
.
number
}}
<
/el-form-item
>
<
el
-
form
-
item
:
label
=
"
$t('信用类别')
"
>
<
el
-
select
v
-
model
=
"
creditFrom.ruleId
"
>
<
el
-
option
v
-
for
=
"
(item,index) in creditTypeList
"
:
key
=
"
index
"
:
value
=
"
item.id
"
:
label
=
"
i
tem.name
"
><
/el-option
>
<
el
-
option
v
-
for
=
"
(item,index) in creditTypeList
"
:
key
=
"
index
"
:
value
=
"
item.id
"
:
label
=
"
i
sChinese ? item.name : item.nameEn
"
><
/el-option
>
<
/el-select
>
<
/el-form-item
>
<
el
-
form
-
item
v
-
if
=
"
creditTypeList.length > 0
"
:
label
=
"
$t('信用分')
"
>
{{(
creditTypeList
.
find
(
r
=>
creditFrom
.
ruleId
===
r
.
id
)
||
{
}
).
score
}}
{{
$t
(
'
分
'
)
}}
<
/el-form-item
>
...
...
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