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
38b9b4e2
Commit
38b9b4e2
authored
Sep 20, 2024
by
yujinyao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改新建报价单页面布局
parent
83244a85
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
150 additions
and
103 deletions
+150
-103
en_US.json
src/i18n/languages/en_US.json
+2
-1
edit.vue
src/views/ecw/offer/edit.vue
+148
-102
No files found.
src/i18n/languages/en_US.json
View file @
38b9b4e2
...
@@ -4713,5 +4713,6 @@
...
@@ -4713,5 +4713,6 @@
"保留客户"
:
"Retained customer"
,
"保留客户"
:
"Retained customer"
,
"被合并客户-非主客户"
:
"Consolidated customer - Non-principal customer"
,
"被合并客户-非主客户"
:
"Consolidated customer - Non-principal customer"
,
"注意事项"
:
"Matters need attention"
,
"注意事项"
:
"Matters need attention"
,
"选择客户"
:
"Select a customer"
"选择客户"
:
"Select a customer"
,
"运输"
:
"Transportation"
}
}
src/views/ecw/offer/edit.vue
View file @
38b9b4e2
...
@@ -23,28 +23,6 @@
...
@@ -23,28 +23,6 @@
<el-radio
:label=
"2"
>
{{
$t
(
"
收件人
"
)
}}
</el-radio>
<el-radio
:label=
"2"
>
{{
$t
(
"
收件人
"
)
}}
</el-radio>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<br
/>
<el-form-item
:label=
"$t('订单类型')"
v-if=
"
routeOtherServices.indexOf('1') > -1 ||
routeOtherServices.indexOf('4') > -1
"
>
<el-checkbox-group
v-model=
"form.type"
>
<el-checkbox
label=
"1"
v-if=
"routeOtherServices.indexOf('1') > -1"
>
{{
$t
(
"
集运服务
"
)
}}
</el-checkbox
>
<el-checkbox
label=
"2"
v-if=
"routeOtherServices.indexOf('4') > -1"
>
{{
$t
(
"
海外仓
"
)
}}
</el-checkbox
>
</el-checkbox-group>
</el-form-item>
<div
class=
"form-section"
>
<div
class=
"form-section"
>
<el-form-item
:label=
"$t('发货人')"
prop=
"consignorId"
>
<el-form-item
:label=
"$t('发货人')"
prop=
"consignorId"
>
<div
class=
"contact"
>
<div
class=
"contact"
>
...
@@ -195,7 +173,9 @@
...
@@ -195,7 +173,9 @@
{{
consignee
.
email
||
this
.
$t
(
'
无
'
)
}}
{{
consignee
.
email
||
this
.
$t
(
'
无
'
)
}}
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
-->
</el-descriptions>
-->
</el-card>
<el-card
class=
"mt-10"
>
<div
slot=
"header"
class=
"card-title"
>
{{
$t
(
"
运输
"
)
}}
</div>
<div
class=
"form-section"
>
<div
class=
"form-section"
>
<el-form-item
:label=
"$t('运输方式')"
prop=
"transportId"
>
<el-form-item
:label=
"$t('运输方式')"
prop=
"transportId"
>
<dict-selector
<dict-selector
...
@@ -204,28 +184,7 @@
...
@@ -204,28 +184,7 @@
class=
"w-200"
class=
"w-200"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('出货渠道')"
v-if=
"
getDictData(DICT_TYPE.ECW_TRANSPORT_TYPE, form.transportId)
.cssClass == 'channel'
"
prop=
"channelId"
>
<selector
:disabled=
"
getDictData(DICT_TYPE.ECW_TRANSPORT_TYPE, form.transportId)
.cssClass != 'channel'
"
v-model=
"form.channelId"
:options=
"channelList"
value-field=
"channelId"
:label-field=
"$l('name')"
class=
"w-200"
></selector>
</el-form-item>
</div>
</div>
<div
class=
"form-section"
>
<div
class=
"form-section"
>
<el-form-item
:label=
"$t('始发城市')"
prop=
"departureId"
>
<el-form-item
:label=
"$t('始发城市')"
prop=
"departureId"
>
<el-select
<el-select
...
@@ -241,6 +200,20 @@
...
@@ -241,6 +200,20 @@
></el-option>
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('目的国')"
prop=
"destCountryId"
>
<el-select
v-model=
"form.destCountryId"
:placeholder=
"$t('请选择目的国')"
class=
"w-200"
>
<el-option
v-for=
"item in AddressProvince"
:key=
"item.guojia"
:label=
"item.guojiaName"
:value=
"item.guojia"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('目的城市')"
prop=
"objectiveId"
>
<el-form-item
:label=
"$t('目的城市')"
prop=
"objectiveId"
>
<el-select
<el-select
v-model=
"form.objectiveId"
v-model=
"form.objectiveId"
...
@@ -248,11 +221,11 @@
...
@@ -248,11 +221,11 @@
class=
"w-200"
class=
"w-200"
>
>
<el-option
<el-option
v-for=
"item in importCityList
"
v-for=
"item in AddressCity
"
:label=
"$l(item, 'title')
"
:key=
"item.shi
"
:value=
"item.id
"
:label=
"item.shiName
"
:key=
"item.id
"
:value=
"item.shi
"
></el-option
>
/
>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</div>
</div>
...
@@ -288,10 +261,54 @@
...
@@ -288,10 +261,54 @@
</
template
>
</
template
>
</select>
</select>
</div>
</div>
<div
class=
"form-section"
>
<el-form-item
:label=
"$t('出货渠道')"
v-if=
"
getDictData(DICT_TYPE.ECW_TRANSPORT_TYPE, form.transportId)
.cssClass == 'channel'
"
prop=
"channelId"
>
<selector
:disabled=
"
getDictData(DICT_TYPE.ECW_TRANSPORT_TYPE, form.transportId)
.cssClass != 'channel'
"
v-model=
"form.channelId"
:options=
"channelList"
value-field=
"channelId"
:label-field=
"$l('name')"
class=
"w-200"
></selector>
</el-form-item>
</div>
<div
class=
"form-section"
>
<el-form-item
:label=
"$t('增值服务')"
v-if=
"
routeOtherServices.indexOf('1') > -1 ||
routeOtherServices.indexOf('4') > -1
"
>
<el-checkbox-group
v-model=
"form.type"
>
<el-checkbox
label=
"1"
v-if=
"routeOtherServices.indexOf('1') > -1"
>
{{ $t("集运服务") }}
</el-checkbox
>
<el-checkbox
label=
"2"
v-if=
"routeOtherServices.indexOf('4') > -1"
>
{{ $t("海外仓") }}
</el-checkbox
>
</el-checkbox-group>
</el-form-item>
</div>
</el-card>
</el-card>
<el-card
class=
"mt-10"
>
<el-card
class=
"mt-10"
>
<div
slot=
"header"
class=
"card-title"
>
<div
slot=
"header"
class=
"card-title"
>
<div
class=
"card-name"
>
{{ $t("商品
信息
") }}
</div>
<div
class=
"card-name"
>
{{ $t("商品") }}
</div>
<el-button
<el-button
type=
"primary"
type=
"primary"
size=
"mini"
size=
"mini"
...
@@ -686,8 +703,6 @@
...
@@ -686,8 +703,6 @@
class=
"w-200"
class=
"w-200"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
</div>
<div
class=
"form-section"
>
<el-form-item
:label=
"$t('报关方式')"
prop=
"customsType"
>
<el-form-item
:label=
"$t('报关方式')"
prop=
"customsType"
>
<dict-selector
<dict-selector
:type=
"DICT_TYPE.ECW_CUSTOMS_TYPE"
:type=
"DICT_TYPE.ECW_CUSTOMS_TYPE"
...
@@ -718,11 +733,19 @@
...
@@ -718,11 +733,19 @@
</div>
</div>
<div
class=
"form-section"
>
<div
class=
"form-section"
>
<el-form-item
:label=
"$t('竞争对手')"
prop=
"competitor"
>
<el-form-item
:label=
"$t('竞争对手')"
prop=
"competitor"
>
<el-input
<el-select
clearable
v-model=
"form.competitor"
v-model=
"form.competitor"
placeholder=
"
"
:placeholder=
"$t('请选择')
"
class=
"w-200"
class=
"w-200"
></el-input>
>
<el-option
v-for=
"item in competitorList"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
/>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('重要程度')"
prop=
"importance"
>
<el-form-item
:label=
"$t('重要程度')"
prop=
"importance"
>
<el-rate
v-model=
"form.importance"
></el-rate>
<el-rate
v-model=
"form.importance"
></el-rate>
...
@@ -749,9 +772,6 @@
...
@@ -749,9 +772,6 @@
:picker-options=
"endDate"
:picker-options=
"endDate"
></el-date-picker>
></el-date-picker>
</el-form-item>
</el-form-item>
</div>
<div
class=
"form-section"
>
<el-form-item
:label=
"$t('交货方式')"
>
<el-form-item
:label=
"$t('交货方式')"
>
<!--
<!--
接口要求数据为整数,所以增加trade_type类型的字典,用1234代码以下不同类型
接口要求数据为整数,所以增加trade_type类型的字典,用1234代码以下不同类型
...
@@ -784,10 +804,23 @@
...
@@ -784,10 +804,23 @@
</el-card>
</el-card>
<el-card
class=
"mt-10"
v-if=
"transport"
>
<el-card
class=
"mt-10"
v-if=
"transport"
>
<div
class=
"card-title"
slot=
"header"
>
{{ $
l(transport, "label"
) }}
</div>
<div
class=
"card-title"
slot=
"header"
>
{{ $
t('其他'
) }}
</div>
<!-- <el-form-item :label="$t('快递单号')">
<!-- <el-form-item :label="$t('快递单号')">
<el-input v-model="form.number" :placeholder="$t('请输入购买商品的快递单号')"></el-input>
<el-input v-model="form.number" :placeholder="$t('请输入购买商品的快递单号')"></el-input>
</el-form-item> -->
</el-form-item> -->
<el-form-item
:label=
"$t('特殊要求')"
>
<dict-selector
v-model=
"form.transportVO.packageTypeArr"
form-type=
"checkbox"
:type=
"DICT_TYPE.ORDER_SPECIAL_NEEDS"
multiple
/>
</el-form-item>
<br
/>
<el-form-item
:label=
"$t('特殊要求备注')"
>
<el-input
v-model=
"form.transportVO.packageRemarks"
></el-input>
</el-form-item>
<br
/>
<el-form-item
<el-form-item
:label=
"$t('是否双清')"
:label=
"$t('是否双清')"
v-if=
"[2, 3, 4].indexOf(+form.transportId) > -1"
v-if=
"[2, 3, 4].indexOf(+form.transportId) > -1"
...
@@ -822,7 +855,8 @@
...
@@ -822,7 +855,8 @@
companyType=
"9"
companyType=
"9"
/>
/>
</el-form-item>
</el-form-item>
<!--
<div class="form-section">
<el-form-item
<el-form-item
:label="$t('清关证书')"
:label="$t('清关证书')"
v-if="[2, 3, 4].indexOf(+form.transportId) > -1"
v-if="[2, 3, 4].indexOf(+form.transportId) > -1"
...
@@ -840,6 +874,7 @@
...
@@ -840,6 +874,7 @@
>
>
<el-input v-model="form.transportVO.remarks"></el-input>
<el-input v-model="form.transportVO.remarks"></el-input>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
:label="$t('是否拆包')"
:label="$t('是否拆包')"
v-if="[3, 4].indexOf(+form.transportId) > -1"
v-if="[3, 4].indexOf(+form.transportId) > -1"
...
@@ -851,6 +886,7 @@
...
@@ -851,6 +886,7 @@
formatter="bool"
formatter="bool"
/>
/>
</el-form-item>
</el-form-item>
</div>
<el-form-item
<el-form-item
:label="$t('单票立刻转运')"
:label="$t('单票立刻转运')"
v-if="[3, 4].indexOf(+form.transportId) > -1"
v-if="[3, 4].indexOf(+form.transportId) > -1"
...
@@ -867,19 +903,8 @@
...
@@ -867,19 +903,8 @@
)
)
}}</span>
}}</span>
</el-form-item>
</el-form-item>
<br
/>
-->
<el-form-item
:label=
"$t('特殊要求')"
>
<dict-selector
v-model=
"form.transportVO.packageTypeArr"
form-type=
"checkbox"
:type=
"DICT_TYPE.ORDER_SPECIAL_NEEDS"
multiple
/>
</el-form-item>
<br
/>
<el-form-item
:label=
"$t('特殊要求备注')"
>
<el-input
v-model=
"form.transportVO.packageRemarks"
></el-input>
</el-form-item>
</el-card>
</el-card>
<el-form-item
label=
""
class=
"mt-20"
>
<el-form-item
label=
""
class=
"mt-20"
>
...
@@ -940,6 +965,9 @@ import QuickCreateCustomer from "@/components/QuickCreateCustomer";
...
@@ -940,6 +965,9 @@ import QuickCreateCustomer from "@/components/QuickCreateCustomer";
import
{
getCustomerContactsSelect
}
from
"
@/api/ecw/customerContacts
"
;
import
{
getCustomerContactsSelect
}
from
"
@/api/ecw/customerContacts
"
;
import
Decimal
from
"
decimal.js
"
;
import
Decimal
from
"
decimal.js
"
;
import
getQuote
from
"
@/views/ecw/customer/index.vue
"
;
import
getQuote
from
"
@/views/ecw/customer/index.vue
"
;
import
{
getRegionList
}
from
'
@/api/ecw/order
'
;
import
{
competitorListAll
}
from
"
@/api/ecw/customer
"
;
window
.
Decimal
=
Decimal
;
window
.
Decimal
=
Decimal
;
const
createDefaultForm
=
()
=>
{
const
createDefaultForm
=
()
=>
{
return
{
return
{
...
@@ -1024,6 +1052,9 @@ export default {
...
@@ -1024,6 +1052,9 @@ export default {
}
}
},
},
},
},
AddressProvince
:
[],
AddressCity
:
[],
competitorList
:
[]
};
};
},
},
computed
:
{
computed
:
{
...
@@ -1361,6 +1392,17 @@ export default {
...
@@ -1361,6 +1392,17 @@ export default {
"
form.departureId
"
()
{
"
form.departureId
"
()
{
this
.
getOpenedRouterList
();
this
.
getOpenedRouterList
();
},
},
"
form.destCountryId
"
(
destCountryId
)
{
if
(
destCountryId
!=
null
)
{
getRegionList
(
2
,
destCountryId
).
then
(({
data
})
=>
{
this
.
AddressCity
=
data
})
}
else
{
getRegionList
(
4
,
4
).
then
(({
data
})
=>
{
this
.
AddressCity
=
data
})
}
},
// 目的地
// 目的地
async
"
form.objectiveId
"
()
{
async
"
form.objectiveId
"
()
{
await
this
.
$nextTick
();
await
this
.
$nextTick
();
...
@@ -1408,6 +1450,7 @@ export default {
...
@@ -1408,6 +1450,7 @@ export default {
let
router
=
this
.
routerList
.
find
((
item
)
=>
item
.
id
==
lineId
);
let
router
=
this
.
routerList
.
find
((
item
)
=>
item
.
id
==
lineId
);
if
(
router
)
{
if
(
router
)
{
this
.
$set
(
this
.
form
,
"
departureId
"
,
router
.
startCityId
);
this
.
$set
(
this
.
form
,
"
departureId
"
,
router
.
startCityId
);
this
.
$set
(
this
.
form
,
"
destCountryId
"
,
router
.
destCountryId
);
this
.
$set
(
this
.
form
,
"
objectiveId
"
,
router
.
destCityId
);
this
.
$set
(
this
.
form
,
"
objectiveId
"
,
router
.
destCityId
);
}
}
...
@@ -1448,6 +1491,9 @@ export default {
...
@@ -1448,6 +1491,9 @@ export default {
getCurrencyList
().
then
((
res
)
=>
(
this
.
currencyList
=
res
.
data
));
getCurrencyList
().
then
((
res
)
=>
(
this
.
currencyList
=
res
.
data
));
getUnitList
().
then
((
res
)
=>
(
this
.
unitList
=
res
.
data
));
getUnitList
().
then
((
res
)
=>
(
this
.
unitList
=
res
.
data
));
this
.
transportList
=
this
.
getDictDatas
(
this
.
DICT_TYPE
.
ECW_TRANSPORT_TYPE
);
this
.
transportList
=
this
.
getDictDatas
(
this
.
DICT_TYPE
.
ECW_TRANSPORT_TYPE
);
getRegionList
(
1
,
1
).
then
((
res
)
=>
(
this
.
AddressProvince
=
res
.
data
))
getRegionList
(
4
,
4
).
then
((
res
)
=>
(
this
.
AddressCity
=
res
.
data
))
competitorListAll
().
then
((
res
)
=>
(
this
.
competitorList
=
res
.
data
))
if
(
this
.
$route
.
query
.
id
)
{
if
(
this
.
$route
.
query
.
id
)
{
this
.
getOffer
();
this
.
getOffer
();
...
...
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