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
374e78b9
Commit
374e78b9
authored
Dec 04, 2024
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单优化
parent
ce5a6d25
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
25 deletions
+17
-25
edit.vue
src/views/ecw/order/edit.vue
+5
-18
index.vue
src/views/ecw/order/index.vue
+12
-7
No files found.
src/views/ecw/order/edit.vue
View file @
374e78b9
...
@@ -1526,26 +1526,12 @@ export default {
...
@@ -1526,26 +1526,12 @@ export default {
this
.
$set
(
this
.
form
,
this
.
contactChooseType
+
'
Name
'
,
contact
.
contactsName
)
this
.
$set
(
this
.
form
,
this
.
contactChooseType
+
'
Name
'
,
contact
.
contactsName
)
this
.
$set
(
this
.
form
,
this
.
contactChooseType
+
'
NameEn
'
,
contact
.
contactsNameEn
||
''
)
this
.
$set
(
this
.
form
,
this
.
contactChooseType
+
'
NameEn
'
,
contact
.
contactsNameEn
||
''
)
this
.
$set
(
this
.
form
,
this
.
contactChooseType
+
'
Phone
'
,
contact
.
phoneNew
)
this
.
$set
(
this
.
form
,
this
.
contactChooseType
+
'
Phone
'
,
contact
.
phoneNew
)
this
.
$set
(
this
.
form
,
this
.
contactChooseType
+
'
DefaultPay
'
,
contact
.
defaultPay
)
if
(
this
.
contactChooseType
==
'
consignor
'
)
{
if
(
this
.
contactChooseType
==
'
consignor
'
)
{
this
.
noConsignee
=
contact
.
noConsignee
this
.
noConsignee
=
contact
.
noConsignee
// 如果允许无收货人,则默认无收货人、控货
// 241023 根据最新的原型,默认有收货人
/*if(this.noConsignee){
this.hasConsignee = false
}*/
// 如果发货人不允许无收货人,则重置为有收货人
// if (!this.noConsignee && !this.hasConsignee) {
// this.$set(this, 'hasConsignee', true)
// }
// 如果默认付款则设置为发货人付款
this
.
defaultPay
=
contact
.
defaultPay
if
(
contact
.
defaultPay
)
{
this
.
$set
(
this
.
form
,
'
drawee
'
,
1
)
}
}
}
this
.
setDefaultDrawee
()
this
.
contactChooseType
=
null
this
.
contactChooseType
=
null
this
.
quickCreateType
=
null
this
.
quickCreateType
=
null
if
(
this
.
form
.
lineId
)
this
.
getOfferData
()
if
(
this
.
form
.
lineId
)
this
.
getOfferData
()
...
@@ -2053,11 +2039,12 @@ export default {
...
@@ -2053,11 +2039,12 @@ export default {
// 更新默认付款人
// 更新默认付款人
// 1发货人,2收货人,3自定义
// 1发货人,2收货人,3自定义
setDefaultDrawee
(){
setDefaultDrawee
(){
if
(
this
.
defaultPay
){
// 优先级为:发货人默认付款,发货人付款>收货人默认付款,收货人付款>订单控货,收货人付款
if
(
this
.
form
.
consignorDefaultPay
){
this
.
form
.
drawee
=
1
this
.
form
.
drawee
=
1
return
return
}
}
if
(
!
this
.
hasConsignee
){
if
(
this
.
form
.
consigneeDefaultPay
){
this
.
form
.
drawee
=
2
this
.
form
.
drawee
=
2
return
return
}
}
...
...
src/views/ecw/order/index.vue
View file @
374e78b9
...
@@ -18,13 +18,6 @@
...
@@ -18,13 +18,6 @@
<el-input v-model="queryParams.marks" :placeholder="$t('唛头')" clearable @keyup.enter.native="handleQuery" />
<el-input v-model="queryParams.marks" :placeholder="$t('唛头')" clearable @keyup.enter.native="handleQuery" />
</el-form-item> -->
</el-form-item> -->
<el-form-item
:label=
"$t('发货人')"
prop=
"consignorKey"
>
<el-input
v-model.trim=
"queryParams.consignorKey"
:placeholder=
"$t('发货人')"
clearable
@
keyup.enter.native=
"handleQuery"
class=
"w-200"
/>
</el-form-item>
<el-form-item
:label=
"$t('收货人')"
prop=
"consigneeKey"
>
<el-input
v-model.trim=
"queryParams.consigneeKey"
:placeholder=
"$t('收货人')"
clearable
@
keyup.enter.native=
"handleQuery"
class=
"w-200"
/>
</el-form-item>
<el-form-item
:label=
"$t('控货')"
prop=
"isCargoControl"
v-show=
"showSearch"
>
<el-form-item
:label=
"$t('控货')"
prop=
"isCargoControl"
v-show=
"showSearch"
>
<dict-selector
v-model=
"queryParams.isCargoControl"
:type=
"DICT_TYPE.INFRA_BOOLEAN_STRING"
fomatter=
"bool"
clearable
@
change=
"handleQuery"
class=
"w-200"
/>
<dict-selector
v-model=
"queryParams.isCargoControl"
:type=
"DICT_TYPE.INFRA_BOOLEAN_STRING"
fomatter=
"bool"
clearable
@
change=
"handleQuery"
class=
"w-200"
/>
</el-form-item>
</el-form-item>
...
@@ -150,6 +143,18 @@
...
@@ -150,6 +143,18 @@
</
template
>
</
template
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('发货人')"
prop=
"consignorKey"
v-show=
"showSearch"
>
<el-input
v-model.trim=
"queryParams.consignorKey"
:placeholder=
"$t('发货人')"
clearable
@
keyup.enter.native=
"handleQuery"
class=
"w-200"
/>
</el-form-item>
<el-form-item
:label=
"$t('收货人')"
prop=
"consigneeKey"
v-show=
"showSearch"
>
<el-input
v-model.trim=
"queryParams.consigneeKey"
:placeholder=
"$t('收货人')"
clearable
@
keyup.enter.native=
"handleQuery"
class=
"w-200"
/>
</el-form-item>
<el-form-item
:label=
"$t('发货人电话')"
prop=
"consigneeKey"
v-show=
"showSearch"
>
<el-input
v-model.trim=
"queryParams.consignorPhone"
:placeholder=
"$t('发货人电话')"
clearable
@
keyup.enter.native=
"handleQuery"
class=
"w-200"
/>
</el-form-item>
<el-form-item
:label=
"$t('收货人电话')"
prop=
"consigneeKey"
v-show=
"showSearch"
>
<el-input
v-model.trim=
"queryParams.consigneePhone"
:placeholder=
"$t('收货人电话')"
clearable
@
keyup.enter.native=
"handleQuery"
class=
"w-200"
/>
</el-form-item>
<div
class=
"flex pb-20"
>
<div
class=
"flex pb-20"
>
<dict-selector
:type=
"DICT_TYPE.ECW_BEGINTIME_TYPE_ENDTIME"
:filter=
"(item) => item.value != 'PickTime'"
v-model=
"dateFilterType"
defaultable
class=
"w-200 mr-5"
/>
<dict-selector
:type=
"DICT_TYPE.ECW_BEGINTIME_TYPE_ENDTIME"
:filter=
"(item) => item.value != 'PickTime'"
v-model=
"dateFilterType"
defaultable
class=
"w-200 mr-5"
/>
<el-date-picker
v-model=
"dateFilter"
type=
"datetimerange"
range-separator=
"-"
:start-placeholder=
"$t('开始日期')"
:end-placeholder=
"$t('结束日期')"
value-format=
"yyyy-MM-dd HH:mm:ss"
@
change=
"handleQuery"
>
</el-date-picker>
<el-date-picker
v-model=
"dateFilter"
type=
"datetimerange"
range-separator=
"-"
:start-placeholder=
"$t('开始日期')"
:end-placeholder=
"$t('结束日期')"
value-format=
"yyyy-MM-dd HH:mm:ss"
@
change=
"handleQuery"
>
</el-date-picker>
...
...
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