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
5b7d46b4
Commit
5b7d46b4
authored
Sep 03, 2024
by
yujinyao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户信息添加主要竞争对象下拉框
parent
cc649a65
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
81 additions
and
9 deletions
+81
-9
customer.js
src/api/ecw/customer.js
+15
-0
en_US.json
src/i18n/languages/en_US.json
+2
-0
zh_CN.json
src/i18n/languages/zh_CN.json
+5
-1
edit.vue
src/views/ecw/customer/edit.vue
+58
-7
query.vue
src/views/ecw/customer/query.vue
+1
-1
No files found.
src/api/ecw/customer.js
View file @
5b7d46b4
...
...
@@ -519,3 +519,18 @@ export function changeCustomerNoConsignee(data){
data
})
}
export
function
addCompetitor
(
data
){
return
request
({
url
:
'
customer/competitor/create
'
,
method
:
'
post
'
,
data
})
}
export
function
competitorListAll
(){
return
request
({
url
:
'
customer/competitor/listAll
'
,
method
:
'
get
'
})
}
\ No newline at end of file
src/i18n/languages/en_US.json
View file @
5b7d46b4
...
...
@@ -4681,6 +4681,8 @@
"默认付款"
:
"Default payment"
,
"默认开票"
:
"Default Billing"
,
"请选择业务国家"
:
"Please select customer operating country"
,
"请选择主要竞争对手"
:
"Please select customer major competitors"
,
"请重新选择主要竞争对手"
:
"Please again select customer major competitors"
,
"装柜/出仓时间"
:
"Loading/Exit Time"
,
"卸柜/到仓时间"
:
"Unloading/Arrival Time"
,
"提货率"
:
"Delivery rate"
,
...
...
src/i18n/languages/zh_CN.json
View file @
5b7d46b4
...
...
@@ -313,6 +313,8 @@
"默认付款"
:
"默认付款"
,
"默认开票"
:
"默认开票"
,
"请选择业务国家"
:
"请选择业务国家"
,
"请选择主要竞争对手"
:
"请选择主要竞争对手"
,
"请重新选择主要竞争对手"
:
"请重新选择主要竞争对手"
,
"装柜/出仓时间"
:
"装柜/出仓时间"
,
"卸柜/到仓时间"
:
"卸柜/到仓时间"
,
"提货率"
:
"提货率"
,
...
...
@@ -320,5 +322,7 @@
"发货评估"
:
"发货评估"
,
"财务资料"
:
"财务资料"
,
"特殊设置"
:
"特殊设置"
,
"已卸柜/已到仓时间"
:
"已卸柜/已到仓时间"
"已卸柜/已到仓时间"
:
"已卸柜/已到仓时间"
,
"动态"
:
"动态"
,
"增值服务"
:
"增值服务"
}
src/views/ecw/customer/edit.vue
View file @
5b7d46b4
...
...
@@ -480,10 +480,24 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('主要竞争对手')"
prop=
"competitorId"
>
<el-input
v-model=
"form.competitorId"
/>
<el-form-item
:label=
"$t('主要竞争对手')"
prop=
"competitorIds"
>
<el-select
clearable
v-model=
"form.competitorIds"
:placeholder=
"$t('请选择')"
@
change=
"changeCompetitor"
>
<el-option
v-for=
"item in competitorList"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
/>
<el-option
:label=
"$t('其他')"
:value=
"0"
/>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -1110,6 +1124,8 @@ import {
getCustomerLines
,
fillupCustomeInfo
,
getServiceNetwork
,
addCompetitor
,
competitorListAll
}
from
"
@/api/ecw/customer
"
;
import
{
getNodeList
}
from
"
@/api/ecw/node
"
;
import
{
getProductTypeList
}
from
"
@/api/ecw/productType
"
;
...
...
@@ -1226,6 +1242,7 @@ export default {
getCountryListAll
().
then
((
r
)
=>
{
this
.
countryList
=
r
.
data
;
});
this
.
getCompetitorList
()
},
data
()
{
return
{
...
...
@@ -1297,6 +1314,13 @@ export default {
trigger
:
"
change
"
,
},
],
competitorIds
:
[
{
required
:
true
,
message
:
this
.
$t
(
"
请选择主要竞争对手
"
),
trigger
:
"
change
"
,
},
],
},
contactRules
:
{
name
:
[
...
...
@@ -1345,6 +1369,7 @@ export default {
showShippingFlag
:
true
,
showSettingFlag
:
true
,
showFinanceFlag
:
true
,
competitorList
:
[],
};
},
...
...
@@ -1505,6 +1530,10 @@ export default {
this
.
$modal
.
msgError
(
this
.
$t
(
"
至少填写一个联系人信息
"
));
return
;
}
if
(
this
.
form
.
competitorIds
==
0
)
{
this
.
$modal
.
msgError
(
this
.
$t
(
"
请重新选择主要竞争对手
"
));
return
;
}
// 重货标准和泡货标准,未打开就不传,提交前清空一下
if
(
!
this
.
showZhong
)
{
...
...
@@ -1654,8 +1683,8 @@ export default {
updater
:
this
.
$store
.
getters
.
userId
,
// 更新人
updateTime
:
undefined
,
// 更新时间
roles
:
undefined
,
// 客户角色
busiCountryIds
:
[]
,
// 业务国家
competitorId
:
undefined
,
// 主要竞争对手
busiCountryIds
:
undefined
,
// 业务国家
competitorId
s
:
undefined
,
// 主要竞争对手
weightYearly
:
undefined
,
// 年度发货量
numYearly
:
undefined
,
// 年度发货次数
noConsignee
:
false
,
// 控制无收货人
...
...
@@ -1681,7 +1710,8 @@ export default {
roles
:
response
.
data
.
roles
?
response
.
data
.
roles
.
split
(
"
,
"
)
:
[],
pickupPoints
:
this
.
stringArrToNumberArr
(
response
.
data
.
pickupPoints
),
productIds
:
this
.
stringArrToNumberArr
(
response
.
data
.
productIds
),
busiCountryIds
:
this
.
stringArrToNumberArr
(
response
.
data
.
busiCountryIds
)
busiCountryIds
:
this
.
stringArrToNumberArr
(
response
.
data
.
busiCountryIds
),
competitorIds
:
Number
(
response
.
data
.
competitorIds
)
};
if
(
this
.
form
.
productType
)
{
console
.
log
(
"
1231
"
,
this
.
form
.
productType
);
...
...
@@ -1753,6 +1783,27 @@ export default {
if
(
!
this
.
form
.
lightUnit
)
this
.
form
.
lightUnit
=
r
.
data
.
paoEdge
;
});
},
getCompetitorList
()
{
competitorListAll
().
then
((
r
)
=>
{
this
.
competitorList
=
r
.
data
;
})
},
changeCompetitor
(
val
)
{
if
(
val
==
0
)
{
this
.
$prompt
(
"
请输入主要竞争对手
"
,
"
提示
"
,
{
confirmButtonText
:
"
确定
"
,
cancelButtonText
:
"
取消
"
,
}).
then
((
data
)
=>
{
console
.
log
(
data
)
addCompetitor
({
name
:
data
.
value
}).
then
(
_
=>
{
this
.
$message
.
success
(
'
添加成功!
'
)
this
.
getCompetitorList
()
})
})
}
}
},
computed
:
{
isChinese
()
{
...
...
src/views/ecw/customer/query.vue
View file @
5b7d46b4
...
...
@@ -472,7 +472,7 @@
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('主营类别')
"
>
{{
$l
(
customer
,
'
productTypeName
'
)
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('年度发货量')
"
>
{{
customer
.
weightYearly
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('主要竞争对手')
"
>
{{
customer
.
competitor
Id
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('主要竞争对手')
"
>
{{
customer
.
competitor
Names
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('年度发货次数')
"
>
{{
customer
.
numYearly
}}
<
/el-descriptions-item
>
<
/el-descriptions
>
<
/el-tab-pane
>
...
...
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