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
6f0114a9
Commit
6f0114a9
authored
Sep 06, 2024
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/order_edit' into pre-release
# Conflicts: # src/views/ecw/order/index.vue
parents
8b866576
240853aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
14 deletions
+89
-14
order.js
src/api/ecw/order.js
+10
-2
index.vue
src/views/ecw/order/index.vue
+79
-12
No files found.
src/api/ecw/order.js
View file @
6f0114a9
...
@@ -1061,6 +1061,14 @@ export function getRegionList(type,regionId){
...
@@ -1061,6 +1061,14 @@ export function getRegionList(type,regionId){
return
request
({
return
request
({
url
:
'
/ecw/warehouse/getRegionList?type=
'
+
type
+
'
®ionId=
'
+
regionId
,
url
:
'
/ecw/warehouse/getRegionList?type=
'
+
type
+
'
®ionId=
'
+
regionId
,
method
:
'
get
'
,
method
:
'
get
'
,
})
}
// 复制订单
export
function
copyOrder
(
orderId
){
return
request
({
url
:
'
/ecw/order/copy/
'
+
orderId
,
method
:
'
post
'
})
})
}
}
\ No newline at end of file
src/views/ecw/order/index.vue
View file @
6f0114a9
...
@@ -498,7 +498,8 @@
...
@@ -498,7 +498,8 @@
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('唛头')"
align=
"center"
prop=
"marks"
/>
<el-table-column
:label=
"$t('发货人编号')"
align=
"center"
prop=
"consignorCustomerNumber"
/>
<el-table-column
:label=
"$t('收货人编号')"
align=
"center"
prop=
"consigneeCustomerNumber"
/>
<el-table-column
<el-table-column
:label=
"$t('总箱数/入仓箱数')"
:label=
"$t('总箱数/入仓箱数')"
align=
"center"
align=
"center"
...
@@ -537,12 +538,10 @@
...
@@ -537,12 +538,10 @@
<div
v-else
>
{{
row
.
costVO
.
totalVolume
}}
m³ /
{{
row
.
costVO
.
totalWeight
}}
Kg
</div>
-->
<div
v-else
>
{{
row
.
costVO
.
totalVolume
}}
m³ /
{{
row
.
costVO
.
totalWeight
}}
Kg
</div>
-->
<div>
{{
row
.
sumVolume
}}
m³ /
{{
row
.
sumWeight
}}
Kg
</div>
<div>
{{
row
.
sumVolume
}}
m³ /
{{
row
.
sumWeight
}}
Kg
</div>
</component>
</component>
<!--
<el-tooltip
v-if=
"scope.row.orderExceptionType=='order_heavy_cargo_exception'"
class=
"item"
effect=
"dark"
:content=
"(scope.row.wvolume||0)+'m³'"
placement=
"bottom"
>
<span
style=
"color:#ff4949"
v-if=
"scope.row.orderStatus >= 5 "
>
{{
scope
.
row
.
volume
+
"
m³/
"
+
scope
.
row
.
weight
+
"
kg
"
}}
</span>
<span
style=
"color:#ff4949"
v-else
>
{{
scope
.
row
.
totalVolume
+
"
m³/
"
+
scope
.
row
.
totalWeight
+
"
kg
"
}}
</span>
</el-tooltip>
-->
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
:label=
"$t('始发仓')"
:label=
"$t('始发仓')"
align=
"center"
align=
"center"
...
@@ -556,7 +555,7 @@
...
@@ -556,7 +555,7 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
:label=
"$t('运输方式/目的地')"
:label=
"$t('运输方式
-渠道
/目的地')"
align=
"center"
align=
"center"
prop=
"transportId"
prop=
"transportId"
>
>
...
@@ -565,6 +564,9 @@
...
@@ -565,6 +564,9 @@
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:value=
"row.transportId"
:value=
"row.transportId"
/>
/>
<template
v-if=
"row.channelName"
>
-
{{
row
.
channelName
}}
</
template
>
/ {{ row.dstWarehouseName }}
/ {{ row.dstWarehouseName }}
</template>
</template>
</el-table-column>
</el-table-column>
...
@@ -576,18 +578,34 @@
...
@@ -576,18 +578,34 @@
/>
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('订单状态')"
align=
"center"
prop=
"status"
>
<el-table-column
:label=
"$t('增值服务')"
align=
"center"
prop=
"status"
>
<
template
slot-scope=
"{row}"
>
{{
getTypeText
(
row
.
type
)
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('状态')"
align=
"center"
prop=
"status"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<!--
<dict-tag
:type=
"DICT_TYPE.ORDER_STATUS"
:value=
"scope.row.status"
/>
-->
<!--
<dict-tag
:type=
"DICT_TYPE.ORDER_STATUS"
:value=
"scope.row.status"
/>
-->
{{
scope
.
row
.
status
Msg
}}
{{
scope
.
row
.
status
Text
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('唛头')"
align=
"center"
prop=
"marks"
/>
<el-table-column
v-if=
"dept"
:label=
"$t('客户经理')"
align=
"center"
prop=
"salesmanName"
/>
<el-table-column
:label=
"$t('发货人客服')"
align=
"center"
prop=
"consignorFollowCustomerService"
/>
<el-table-column
:label=
"$t('收货人客服')"
align=
"center"
prop=
"consigneeFollowCustomerService"
/>
<el-table-column
:label=
"$t('到仓箱数/方数重量')"
align=
"center"
prop=
"status"
>
<
template
slot-scope=
"scope"
>
暂无数据
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('提货率')"
align=
"center"
prop=
"pickRatio"
/>
<el-table-column
:label=
"$t('动态')"
align=
"center"
prop=
"statusMsg"
/>
<el-table-column
<el-table-column
:label=
"$t('操作')"
:label=
"$t('操作')"
align=
"center"
align=
"center"
class-name=
"small-padding fixed-width actions"
class-name=
"small-padding fixed-width actions"
width=
"1
5
0px"
width=
"1
8
0px"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<!-- 已删除的订单只需要删除和查看 https://zentao.jdshangmen.com/bug-view-684.html -->
<!-- 已删除的订单只需要删除和查看 https://zentao.jdshangmen.com/bug-view-684.html -->
...
@@ -868,6 +886,21 @@
...
@@ -868,6 +886,21 @@
v-hasPermi=
"['ecw:order:turnException']"
v-hasPermi=
"['ecw:order:turnException']"
>
{{ $t("转异") }}
</el-dropdown-item
>
{{ $t("转异") }}
</el-dropdown-item
>
>
<
template
v-if=
"scope.row.abnormalState != 0"
>
<el-dropdown-item
@
click.native=
"openException(scope.row)"
>
{{
$t
(
"
查看异常
"
)
}}
</el-dropdown-item
>
<el-dropdown-item
v-if=
"canHandleException(scope.row)"
@
click.native=
"openException(scope.row)"
>
{{
$t
(
"
处理异常
"
)
}}
</el-dropdown-item
>
</
template
>
</el-dropdown-menu>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
...
@@ -1136,6 +1169,8 @@
...
@@ -1136,6 +1169,8 @@
>
>
</el-dropdown-menu>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
<el-button
type=
"text"
@
click=
"handleCopyOrder(scope.row.orderId)"
>
{{$t('复制')}}
</el-button>
</template>
</template>
</template>
</template>
</el-table-column>
</el-table-column>
...
@@ -1261,8 +1296,8 @@ import {
...
@@ -1261,8 +1296,8 @@ import {
setCanShipment
,
setCanShipment
,
setCanNotShipment
,
setCanNotShipment
,
getParentOrder
,
getParentOrder
,
getRegionList
,
getRegionList
,
copyOrder
}
from
"
@/api/ecw/order
"
;
}
from
'
@/api/ecw/order
'
/* import { getDictDatas, DICT_TYPE } from '@/utils/dict'; */
/* import { getDictDatas, DICT_TYPE } from '@/utils/dict'; */
import
PrintTag
from
"
./components/PrintTag
"
;
import
PrintTag
from
"
./components/PrintTag
"
;
import
PrintWarehouseReceipt
from
"
./components/PrintWarehouseReceipt
"
;
import
PrintWarehouseReceipt
from
"
./components/PrintWarehouseReceipt
"
;
...
@@ -1655,6 +1690,26 @@ export default {
...
@@ -1655,6 +1690,26 @@ export default {
return
arr
.
indexOf
(
state
)
==
-
1
;
return
arr
.
indexOf
(
state
)
==
-
1
;
};
};
},
},
// 根据异常类型和用户权限校验是否可以处理异常
canHandleException
(){
return
(
order
)
=>
{
// TODO 需要等接口返回异常类型
return
true
}
},
// 增值服务文本
getTypeText
(){
return
type
=>
{
const
arr
=
[]
if
(
type
.
indexOf
(
'
1
'
)
>
-
1
){
arr
.
push
(
this
.
$t
(
'
集运
'
))
}
if
(
type
.
indexOf
(
'
4
'
)
>
-
1
){
arr
.
push
(
this
.
$t
(
'
海外仓
'
))
}
return
arr
.
join
(
"
、
"
)
}
}
},
},
activated
()
{
activated
()
{
this
.
getList
();
this
.
getList
();
...
@@ -2089,6 +2144,18 @@ export default {
...
@@ -2089,6 +2144,18 @@ export default {
handleExceptionClose
()
{
handleExceptionClose
()
{
this
.
tureExceptionOrder
=
null
;
this
.
tureExceptionOrder
=
null
;
},
},
// 复制订单
handleCopyOrder
(
orderId
){
copyOrder
(
orderId
).
then
(
res
=>
{
this
.
$router
.
push
({
path
:
'
/order/edit
'
,
query
:
{
id
:
res
.
data
}
});
});
},
// 查看异常
openException
(
order
){
this
.
$router
.
push
({
path
:
"
./pending?id=
"
+
order
.
orderId
,
});
}
},
},
};
};
</
script
>
</
script
>
...
...
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