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
cf10e689
Commit
cf10e689
authored
Jul 21, 2022
by
dcy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
特殊,订单关联,
parent
6d699641
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
80 additions
and
10 deletions
+80
-10
associatedOrder.js
src/api/ecw/associatedOrder.js
+10
-0
dict.js
src/utils/dict.js
+2
-1
addAssociatedOrder.vue
src/views/ecw/order/addAssociatedOrder.vue
+16
-2
associatedOrder.vue
src/views/ecw/order/associatedOrder.vue
+17
-3
ordeDetailsForm.vue
src/views/ecw/order/components/ordeDetailsForm.vue
+31
-3
specialNeeds.vue
src/views/ecw/order/components/specialNeeds.vue
+2
-0
index.vue
src/views/ecw/order/index.vue
+2
-1
No files found.
src/api/ecw/associatedOrder.js
0 → 100644
View file @
cf10e689
// export function
import
request
from
'
@/utils/request
'
export
function
orderGuanlian
(
params
){
return
request
({
url
:
'
order/guanlian/page
'
,
method
:
'
get
'
,
params
:
params
,
})
};
src/utils/dict.js
View file @
cf10e689
...
@@ -147,7 +147,8 @@ export const DICT_TYPE = {
...
@@ -147,7 +147,8 @@ export const DICT_TYPE = {
PAY_TYPE
:
'
pay_type
'
,
PAY_TYPE
:
'
pay_type
'
,
RECEIVE_FLAG
:
'
receive_flag
'
,
RECEIVE_FLAG
:
'
receive_flag
'
,
COMDINED_VALUE_ADDED_FEE
:
'
combined_value_added_fee
'
,
COMDINED_VALUE_ADDED_FEE
:
'
combined_value_added_fee
'
,
ORDER_SPECIAL_NEEDS
:
'
order_special_needs
'
ORDER_SPECIAL_NEEDS
:
'
order_special_needs
'
,
ORDER_ABNORMAL_STATE
:
'
order_abnormal_state
'
}
}
/**
/**
...
...
src/views/ecw/order/addAssociatedOrder.vue
View file @
cf10e689
<
template
>
<
template
>
<div
class=
"add-associated-order"
>
<div
class=
"add-associated-order"
>
<h1
class=
"title"
>
订单号:
ECP0013123N
选择订单
</h1>
<h1
class=
"title"
>
订单号:
{{
orderDetails
.
orderNo
}}
选择订单
</h1>
<el-divider></el-divider>
<el-divider></el-divider>
<el-form
inline
label-width=
"85px"
label-position=
"left"
>
<el-form
inline
label-width=
"85px"
label-position=
"left"
>
<el-form-item
label=
"订单号"
>
<el-form-item
label=
"订单号"
>
...
@@ -72,8 +72,22 @@
...
@@ -72,8 +72,22 @@
<
script
>
<
script
>
//添加关联订单
//添加关联订单
import
{
getOrder
}
from
"
@/api/ecw/order
"
;
export
default
{
export
default
{
name
:
"
addAssociatedOrder
"
name
:
"
addAssociatedOrder
"
,
data
(){
return
{
orderDetails
:{}
}
},
created
()
{
getOrder
(
this
.
orderId
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
this
.
orderDetails
=
r
.
data
;
}
})
},
}
}
</
script
>
</
script
>
...
...
src/views/ecw/order/associatedOrder.vue
View file @
cf10e689
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
<el-button
type=
"primary"
>
批量移出
</el-button>
<el-button
type=
"primary"
>
批量移出
</el-button>
</div>
</div>
<div>
<div>
<el-button
type=
"primary
"
>
添加关联订单
</el-button>
<el-button
type=
"primary"
@
click=
"$router.push(`/order/add-associated-order/$
{orderId}`)
">添加关联订单
</el-button>
</div>
</div>
</div>
</div>
<el-table>
<el-table>
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
//关联订单
//关联订单
import
ordeDetailsForm
from
"
@/views/ecw/order/components/ordeDetailsForm
"
;
import
ordeDetailsForm
from
"
@/views/ecw/order/components/ordeDetailsForm
"
;
import
{
getOrder
}
from
"
@/api/ecw/order
"
;
import
{
getOrder
}
from
"
@/api/ecw/order
"
;
import
{
orderGuanlian
}
from
"
@/api/ecw/associatedOrder
"
;
export
default
{
export
default
{
name
:
"
associatedOrder
"
,
name
:
"
associatedOrder
"
,
props
:{
props
:{
...
@@ -87,16 +87,30 @@ export default {
...
@@ -87,16 +87,30 @@ export default {
},
},
data
(){
data
(){
return
{
return
{
orderDetails
:{}
orderDetails
:{},
params
:{
orderId
:
undefined
,
page
:
1
,
rows
:
10
}
}
}
},
},
created
()
{
created
()
{
this
.
params
.
orderId
=
this
.
orderId
;
this
.
getList
();
getOrder
(
this
.
orderId
).
then
(
r
=>
{
getOrder
(
this
.
orderId
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
if
(
r
.
code
===
0
){
this
.
orderDetails
=
r
.
data
;
this
.
orderDetails
=
r
.
data
;
}
}
})
})
},
},
methods
:{
getList
(){
orderGuanlian
(
this
.
params
).
then
(
r
=>
{
console
.
log
(
r
)
})
}
}
}
}
</
script
>
</
script
>
...
...
src/views/ecw/order/components/ordeDetailsForm.vue
View file @
cf10e689
...
@@ -3,10 +3,16 @@
...
@@ -3,10 +3,16 @@
<el-descriptions
class=
"margin-top"
border
:column=
"4"
>
<el-descriptions
class=
"margin-top"
border
:column=
"4"
>
<el-descriptions-item
label=
"唛头"
>
{{
details
.
marks
}}
</el-descriptions-item>
<el-descriptions-item
label=
"唛头"
>
{{
details
.
marks
}}
</el-descriptions-item>
<el-descriptions-item
label=
"已到箱数/总箱数"
>
{{
details
.
sumQuantity
}}
/
{{
details
.
sumNum
}}
</el-descriptions-item>
<el-descriptions-item
label=
"已到箱数/总箱数"
>
{{
details
.
sumQuantity
}}
/
{{
details
.
sumNum
}}
</el-descriptions-item>
<el-descriptions-item
label=
"订单状态"
>
{{
details
.
status
}}
</el-descriptions-item>
<el-descriptions-item
label=
"订单状态"
>
<dict-tag
:type=
"DICT_TYPE.ORDER_ABNORMAL_STATE"
:value=
"details.status"
/>
</el-descriptions-item>
<el-descriptions-item
label=
"送货日期"
>
{{}}
</el-descriptions-item>
<el-descriptions-item
label=
"送货日期"
>
{{}}
</el-descriptions-item>
<el-descriptions-item
label=
"运输方式"
>
{{
details
.
transportId
}}
</el-descriptions-item>
<el-descriptions-item
label=
"运输方式"
>
<el-descriptions-item
label=
"出货渠道"
>
{{
details
.
channelId
}}
</el-descriptions-item>
<dict-tag
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:value=
"details.transportId"
></dict-tag>
</el-descriptions-item>
<el-descriptions-item
label=
"出货渠道"
>
<dict-tag
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:value=
"details.channelId"
></dict-tag>
</el-descriptions-item>
<el-descriptions-item
label=
"始发地"
>
{{
details
.
logisticsInfoDto
.
startWarehouseId
}}
</el-descriptions-item>
<el-descriptions-item
label=
"始发地"
>
{{
details
.
logisticsInfoDto
.
startWarehouseId
}}
</el-descriptions-item>
<el-descriptions-item
label=
"目的地"
>
{{
details
.
logisticsInfoDto
.
destWarehouseId
}}
</el-descriptions-item>
<el-descriptions-item
label=
"目的地"
>
{{
details
.
logisticsInfoDto
.
destWarehouseId
}}
</el-descriptions-item>
<el-descriptions-item
label=
"发货人姓名"
>
{{
details
.
consignorVO
.
customerId
}}
</el-descriptions-item>
<el-descriptions-item
label=
"发货人姓名"
>
{{
details
.
consignorVO
.
customerId
}}
</el-descriptions-item>
...
@@ -22,6 +28,8 @@
...
@@ -22,6 +28,8 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
{
getTradeCityList
}
from
"
@/api/ecw/region
"
;
export
default
{
export
default
{
props
:{
props
:{
details
:{
details
:{
...
@@ -36,6 +44,26 @@ export default {
...
@@ -36,6 +44,26 @@ export default {
},
},
},
},
name
:
"
ordeDetailsForm
"
,
name
:
"
ordeDetailsForm
"
,
created
()
{
getTradeCityList
().
then
(
res
=>
{
this
.
tradeCityList
=
res
.
data
})
},
components
:{
//目的地
importCityList
(){
return
this
.
tradeCityList
.
filter
(
item
=>
item
.
type
==
1
)
},
//始发地
exportCityList
(){
return
this
.
tradeCityList
.
filter
(
item
=>
item
.
type
==
2
)
},
},
data
(){
return
{
DICT_TYPE
,
}
}
}
}
</
script
>
</
script
>
src/views/ecw/order/components/specialNeeds.vue
View file @
cf10e689
...
@@ -69,6 +69,8 @@ export default {
...
@@ -69,6 +69,8 @@ export default {
if
(
r
.
code
===
0
){
if
(
r
.
code
===
0
){
this
.
clearFrom
();
this
.
clearFrom
();
this
.
$emit
(
'
update:show
'
,
false
)
this
.
$emit
(
'
update:show
'
,
false
)
this
.
$emit
(
'
determine
'
)
this
.
$message
.
success
(
'
提交成功
'
);
}
}
})
})
},
},
...
...
src/views/ecw/order/index.vue
View file @
cf10e689
...
@@ -119,6 +119,7 @@
...
@@ -119,6 +119,7 @@
<router-link
:to=
"
{path: '/order/detail',query: {orderId: scope.row.orderId}}" class="link-type">
<router-link
:to=
"
{path: '/order/detail',query: {orderId: scope.row.orderId}}" class="link-type">
<span>
{{
scope
.
row
.
orderNo
}}
</span>
<span>
{{
scope
.
row
.
orderNo
}}
</span>
</router-link>
</router-link>
{{
scope
.
row
.
advanceType
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"唛头"
align=
"center"
prop=
"marks"
/>
<el-table-column
label=
"唛头"
align=
"center"
prop=
"marks"
/>
...
@@ -188,7 +189,7 @@
...
@@ -188,7 +189,7 @@
<el-button
@
click=
"cancel"
>
取 消
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
<special-needs
:show.sync=
"isShow"
:order-id=
"orderId"
></special-needs>
<special-needs
:show.sync=
"isShow"
:order-id=
"orderId"
@
determine=
"getList"
></special-needs>
</div>
</div>
</template>
</template>
...
...
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