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
558ab0af
Commit
558ab0af
authored
Oct 26, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不可出
parent
a4571c92
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
4 deletions
+35
-4
order.js
src/api/ecw/order.js
+8
-0
index.vue
src/views/ecw/order/index.vue
+16
-2
stockingList.vue
src/views/ecw/order/stockingList.vue
+11
-2
No files found.
src/api/ecw/order.js
View file @
558ab0af
...
...
@@ -1007,3 +1007,11 @@ export function getWaitingShipmentCount(){
method
:
'
get
'
})
}
// 空运订单不可出
export
function
setCanNotShipment
(
orderId
){
return
request
({
url
:
'
/air/order/not/can/shipment/
'
+
orderId
,
method
:
'
put
'
,
})
}
src/views/ecw/order/index.vue
View file @
558ab0af
...
...
@@ -268,7 +268,8 @@
'ecw:order:reduce',
'ecw:order:commission',
'ecw:order:heavy',
'ecw:order:bulky'
'ecw:order:bulky',
'ecw:order:setCanNotShipment'
]"
>
<el-button
type=
"text"
>
{{
$t
(
'
操作
'
)
}}
</el-button>
<el-dropdown-menu
slot=
"dropdown"
>
...
...
@@ -370,6 +371,11 @@
)"
>
<el-dropdown-item
@
click.native=
"handleUpdate(scope.row, true)"
v-hasPermi=
"['ecw:order:update_channel']"
>
{{
$t
(
'
变更出货渠道
'
)
}}
</el-dropdown-item>
</
template
>
<!--不可出-->
<
template
v-if=
"include(scope.row.airShipment, [2,3,4])"
>
<el-dropdown-item
@
click.native=
"setCanNotShipment(scope.row)"
v-hasPermi=
"['ecw:order:setCanNotShipment']"
>
{{
$t
(
'
不可出
'
)
}}
</el-dropdown-item>
</
template
>
</el-dropdown-menu>
</el-dropdown>
...
...
@@ -550,7 +556,7 @@ import {
exportCustomsDatas
,
exportShippingDatas
,
exportShipFee
,
exportUnload
,
splitCancelApply
,
orderSplitRevoke
,
setCanShipment
exportUnload
,
splitCancelApply
,
orderSplitRevoke
,
setCanShipment
,
setCanNotShipment
}
from
"
@/api/ecw/order
"
;
/* import { getDictDatas, DICT_TYPE } from '@/utils/dict'; */
import
PrintTag
from
'
./components/PrintTag
'
...
...
@@ -992,6 +998,14 @@ export default {
return
false
}
return
true
},
// 设置空运订单不可出
async
setCanNotShipment
(
order
){
await
this
.
$confirm
(
this
.
$t
(
"
确定设置订单{orderNo}不可出么?
"
,
{
orderNo
:
order
.
orderNo
}))
setCanNotShipment
(
order
.
orderId
).
then
(
res
=>
{
this
.
$message
(
this
.
$t
(
'
操作成功
'
))
this
.
getList
()
})
}
}
};
...
...
src/views/ecw/order/stockingList.vue
View file @
558ab0af
...
...
@@ -179,7 +179,8 @@
<el-table-column
:label=
"$t('操作')"
align=
"center"
class-name=
"small-padding fixed-width actions"
width=
"150px"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"$router.push('stocking?id=' + scope.row.orderId)"
v-hasPermi=
"['ecw:order:stockingList:stocking']"
>
{{
$t
(
'
备货
'
)
}}
</el-button>
<el-button
type=
"text"
@
click=
"setCanNotShipment(scope.row)"
v-hasPermi=
"['ecw:order:setCanNotShipment']"
>
{{
$t
(
'
不可出
'
)
}}
</el-button>
<el-button
type=
"text"
@
click=
"$router.push('stocking?id=' + scope.row.orderId)"
v-hasPermi=
"['ecw:order:stockingList:stocking']"
>
{{
$t
(
'
备货
'
)
}}
</el-button>
<el-button
type=
"text"
@
click=
"printTagOrderId=scope.row.orderId"
v-hasPermi=
"['ecw:order:stockingList:print_tag']"
>
{{
$t
(
'
打印标签
'
)
}}
</el-button>
</
template
>
</el-table-column>
...
...
@@ -204,7 +205,7 @@ import {
exportReadyStock
,
canShipmentPage
,
orderSpecialNeed
,
exportCanShipment
exportCanShipment
,
setNotCanShipment
,
setCanNotShipment
}
from
"
@/api/ecw/order
"
;
import
PrintTag
from
'
./components/PrintTag
'
import
PrintWarehouseReceipt
from
'
./components/PrintWarehouseReceipt
'
...
...
@@ -391,6 +392,14 @@ export default {
this
.
getList
()
})
},
// 设置空运订单不可出
async
setCanNotShipment
(
order
){
await
this
.
$confirm
(
this
.
$t
(
"
确定设置订单{orderNo}不可出么?
"
,
{
orderNo
:
order
.
orderNo
}))
setCanNotShipment
(
order
.
orderId
).
then
(
res
=>
{
this
.
$message
(
this
.
$t
(
'
操作成功
'
))
this
.
getList
()
})
}
}
};
</
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