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
4d737607
Commit
4d737607
authored
Sep 01, 2022
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合单审核,新建订单优化
parent
325c8c1c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
85 additions
and
43 deletions
+85
-43
channel.js
src/api/ecw/channel.js
+9
-0
MergeDetail.vue
src/views/ecw/order/components/MergeDetail.vue
+55
-34
edit.vue
src/views/ecw/order/edit.vue
+21
-9
No files found.
src/api/ecw/channel.js
View file @
4d737607
...
...
@@ -61,3 +61,12 @@ export function exportChannelExcel(query) {
responseType
:
'
blob
'
})
}
//
export
function
getChannelListByIds
(
params
){
return
request
({
url
:
'
/ecw/channel/list
'
,
method
:
'
get
'
,
params
})
}
src/views/ecw/order/components/MergeDetail.vue
View file @
4d737607
<!--拆单审核中的申请信息部分-->
<
template
>
<div
v-if=
"
detail
"
>
<el-table
:data=
"
detail.unMergeList.list
"
>
<div
v-if=
"
orders
"
>
<el-table
:data=
"
orders
"
>
<el-table-column
label=
"订单编号"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
orderNo
}}
</
template
>
</el-table-column>
<el-table-column
label=
"唛头"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
marks
}}
</
template
>
</el-table-column>
<el-table-column
label=
"已到箱数/总箱数"
>
<
template
slot-scope=
"{row}"
>
/
/ TODO
/
{{
row
.
sumNum
}}
</
template
>
</el-table-column>
<
!-- <
el-table-column label="已到箱数/总箱数">
<template slot-scope="{row}">/
{{row.sumNum}}
/{{row.sumNum}}</template>
</el-table-column>
-->
<el-table-column
label=
"下单统计"
>
<
template
slot-scope=
"{row}"
>
22箱 44m³ 50
kg
{{
row
.
costVO
.
totalNum
}}
22箱
<br/>
{{
row
.
costVO
.
totalVolume
}}
m³
<br/>
{{
row
.
costVO
.
totalWeight
}}
kg
</
template
>
</el-table-column>
<el-table-column
label=
"入仓你统计"
>
<
template
slot-scope=
"{row}"
>
总箱数:1 总体积:m³ 总重量 110kg
</
template
>
<
template
slot-scope=
"{row}"
>
{{
row
.
sumNum
}}
22箱
<br/>
{{
row
.
sumVolume
}}
m³
<br/>
{{
row
.
sumWeight
}}
kg
</
template
>
</el-table-column>
<el-table-column
label=
"入仓时间"
>
<
template
slot-scope=
"{row}"
>
// TODO
{{
row
.
rucangTime
|
parseTime
}}
</
template
>
</el-table-column>
<el-table-column
label=
"运输方式"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
num
}}
</
template
>
<
template
slot-scope=
"{row}"
>
<dict-tag
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:value=
"row.transportId"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"出货渠道"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
num
}}
</
template
>
<
template
slot-scope=
"{row}"
>
{{
getChannelName
(
row
.
channelId
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"始发仓"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
num
}}
</
template
>
<
template
slot-scope=
"{row}"
>
{{
jsonParse
(
row
.
departureVO
.
departure
).
titleZh
}}
</
template
>
</el-table-column>
<el-table-column
label=
"目的仓"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
num
}}
</
template
>
<
template
slot-scope=
"{row}"
>
{{
jsonParse
(
row
.
objectiveVO
.
objective
).
titleZh
}}
</
template
>
</el-table-column>
<el-table-column
label=
"发货人"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
num
}}
</
template
>
<
template
slot-scope=
"{row}"
>
{{
row
.
consignorVO
.
name
}}
</
template
>
</el-table-column>
<el-table-column
label=
"收货人"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
num
}}
</
template
>
<
template
slot-scope=
"{row}"
>
{{
row
.
consigneeVO
.
name
}}
</
template
>
</el-table-column>
</el-table>
</div>
...
...
@@ -48,31 +60,37 @@
<
script
>
import
{
getApproval
,
getOrder
}
from
'
@/api/ecw/order
'
import
{
getMergeListByMergeId
}
from
'
@/api/ecw/orderHandle
'
import
{
getChannel
}
from
'
@/api/ecw/channel
'
import
{
getChannelListByIds
}
from
'
@/api/ecw/channel
'
import
{
parseTime
}
from
'
@/utils/ruoyi
'
export
default
{
name
:
'
MergeDetail
'
,
filters
:
{
parseTime
},
props
:{
id
:
[
String
,
Number
]
},
data
(){
return
{
detail
:
null
,
order
:
null
,
channel
:
null
orders
:
null
,
channels
:
[]
}
},
watch
:{
id
(){
this
.
getData
()
}
},
computed
:{
jsonParse
(){
return
d
=>
{
return
JSON
.
parse
(
d
)
}
},
/* detail(){
this.getOrder()
}, */
/* order(){
if(this.order.channelId){
this.getChannel()
getChannelName
(){
return
id
=>
{
let
channel
=
this
.
channels
.
find
(
item
=>
item
.
channelId
==
id
)
return
channel
?
channel
.
nameZh
:
'
/
'
}
}
*/
}
},
created
(){
if
(
this
.
id
){
...
...
@@ -82,19 +100,22 @@ export default {
methods
:{
getData
(){
getMergeListByMergeId
({
id
:
this
.
id
}).
then
(
res
=>
{
this
.
detail
=
res
.
data
this
.
orders
=
res
.
data
this
.
getChannels
()
})
},
/* getOrder(){
getOrder(this.detail.orderId).then(res => {
this.order = res.data
getChannels
(){
let
ids
=
[]
this
.
orders
.
forEach
(
order
=>
{
if
(
order
.
channelId
){
ids
.
push
(
order
.
channelId
)
}
})
},
getChannel(){
getChannel(this.order.channelId).then(res => {
this.channel = res.data
if
(
!
ids
.
length
)
return
false
getChannelListByIds
({
ids
:
ids
.
join
(
'
,
'
)}).
then
(
res
=>
{
this
.
channels
=
res
.
data
})
}
*/
}
}
}
</
script
>
...
...
src/views/ecw/order/edit.vue
View file @
4d737607
...
...
@@ -14,7 +14,7 @@
<el-descriptions
:column=
"3"
border
v-if=
"form.type.indexOf(1)
<
0
"
>
<el-descriptions-item
label=
"*发货人"
:labelStyle=
"labelStyle"
>
<el-form-item
label=
""
label-width=
"0"
style=
"margin-bottom: 0"
prop=
"consignorContactsId"
required
error=
"发货人不能为空"
>
<el-form-item
label=
""
label-width=
"0"
style=
"margin-bottom: 0"
prop=
"consignorContactsId"
>
<customer-contact-selector
v-model=
"form.consignorContactsId"
@
change=
"consignorContact = $event"
type=
"1"
/>
</el-form-item>
</el-descriptions-item>
...
...
@@ -30,7 +30,7 @@
</el-descriptions>
<el-descriptions
:column=
"3"
border
>
<el-descriptions-item
label=
"*收货人"
:labelStyle=
"labelStyle"
>
<el-form-item
label=
""
label-width=
"0"
style=
"margin-bottom: 0"
prop=
"consigneeContactsId"
required
error=
"收货人不能为空"
>
<el-form-item
label=
""
label-width=
"0"
style=
"margin-bottom: 0"
prop=
"consigneeContactsId"
>
<customer-contact-selector
v-model=
"form.consigneeContactsId"
@
change=
"consigneeContact = $event"
type=
"2"
/>
</el-form-item>
</el-descriptions-item>
...
...
@@ -46,7 +46,7 @@
</el-descriptions>
<el-descriptions
:column=
"3"
border
>
<el-descriptions-item
label=
"*运输方式"
:labelStyle=
"labelStyle"
>
<el-form-item
label=
""
label-width=
"0"
style=
"margin-bottom: 0"
prop=
"transportId"
required
error=
"请选择运输方式"
>
<el-form-item
label=
""
label-width=
"0"
style=
"margin-bottom: 0"
prop=
"transportId"
>
<dict-selector
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
v-model=
"form.transportId"
/>
</el-form-item>
</el-descriptions-item>
...
...
@@ -64,14 +64,14 @@
</el-descriptions>
<el-descriptions
:column=
"2"
border
>
<el-descriptions-item
label=
"*始发城市"
:labelStyle=
"labelStyle"
>
<el-form-item
label=
""
label-width=
"0"
style=
"margin-bottom: 0"
prop=
"departureId"
required
error=
"始发地必选"
>
<el-form-item
label=
""
label-width=
"0"
style=
"margin-bottom: 0"
prop=
"departureId"
>
<el-select
v-model=
"form.departureId"
placeholder=
"请选择始发地"
>
<el-option
v-for=
"item in exportCityList"
:label=
"item.titleZh"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
</el-descriptions-item>
<el-descriptions-item
label=
"*目的城市"
:labelStyle=
"labelStyle"
>
<el-form-item
label=
""
label-width=
"0"
style=
"margin-bottom: 0"
prop=
"objectiveId"
required
error=
"目的城市必选"
>
<el-form-item
label=
""
label-width=
"0"
style=
"margin-bottom: 0"
prop=
"objectiveId"
>
<el-select
v-model=
"form.objectiveId"
placeholder=
"请选择目的地"
>
<el-option
v-for=
"item in importCityList"
:label=
"item.titleZh"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
...
...
@@ -80,7 +80,9 @@
<el-descriptions-item
label=
"*请选择线路"
:span=
"2"
:labelStyle=
"labelStyle"
>
<el-row
:gutter=
"10"
>
<el-col
:span=
"12"
>
<el-input
:value=
"selectedRouter ? selectedRouter.startTitleZh + ' > ' + selectedRouter.destTitleZh : ''"
readonly
placeholder=
"请在右侧选择线路"
></el-input>
<el-form-item
label=
""
label-width=
"0"
style=
"margin-bottom: 0"
prop=
"lineId"
>
<el-input
:value=
"selectedRouter ? selectedRouter.startTitleZh + ' > ' + selectedRouter.destTitleZh : ''"
readonly
placeholder=
"请在右侧选择线路"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<select
size=
"5"
v-model=
"form.lineId"
style=
"min-width: 300px"
>
...
...
@@ -287,7 +289,9 @@
<el-descriptions
:column=
"2"
border
>
<el-descriptions-item
label=
"唛头"
>
<el-input
v-model=
"form.marks"
placeholder=
""
></el-input>
<el-form-item
label=
""
prop=
"marks"
label-width=
"0"
style=
"margin-bottom: 0"
>
<el-input
v-model=
"form.marks"
placeholder=
""
></el-input>
</el-form-item>
</el-descriptions-item>
<el-descriptions-item
label=
"是否控货"
>
<dict-selector
:type=
"DICT_TYPE.INFRA_BOOLEAN_STRING"
formatter=
"bool"
v-model=
"form.isCargoControl"
form-type=
"radio"
/>
...
...
@@ -309,7 +313,7 @@
<dict-selector
:type=
"DICT_TYPE.ECW_SUING_METHOD"
v-model=
"form.issuingMethod"
form-type=
"radio"
defaultable
/>
</el-descriptions-item>
<el-descriptions-item
label=
"送货日期"
>
<el-form-item
label=
""
label-width=
"0"
style=
"margin-bottom: 0"
prop=
"deliveryDate"
required
error=
"送货日期不能为空"
>
<el-form-item
label=
""
label-width=
"0"
style=
"margin-bottom: 0"
prop=
"deliveryDate"
>
<el-date-picker
v-model=
"form.deliveryDate"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
</el-form-item>
</el-descriptions-item>
...
...
@@ -486,7 +490,15 @@ export default {
},
// 表单校验
rules
:
{
marks
:
[{
required
:
true
,
message
:
'
请填写唛头
'
}]
marks
:
[{
required
:
true
,
message
:
'
请填写唛头
'
}],
consignorContactsId
:
[{
required
:
true
,
message
:
'
发货人不能为空
'
}],
consigneeContactsId
:
[{
required
:
true
,
message
:
'
收货人不能为空
'
}],
transportId
:
[{
required
:
true
,
message
:
'
请选择运输方式
'
}],
departureId
:
[{
required
:
true
,
message
:
'
请选择始发城市
'
}],
objectiveId
:
[{
required
:
true
,
message
:
'
请选择目的城市
'
}],
lineId
:
[{
required
:
true
,
message
:
'
请选择路线
'
}],
channelId
:
[{
required
:
true
,
message
:
'
请选择出货渠道
'
}],
deliveryDate
:
[{
required
:
true
,
message
:
'
请选择送货日期
'
}],
},
labelStyle
:
'
width:120px
'
,
showBatchImportDialog
:
false
,
// 显示批量导入弹窗
...
...
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