Commit bff22b40 authored by Marcus's avatar Marcus

退仓 不审批

parent 51b38efc
...@@ -197,6 +197,15 @@ export function rollbackApply(data){ ...@@ -197,6 +197,15 @@ export function rollbackApply(data){
}) })
} }
// 退仓-订单项退仓(不审批)
export function rollbackDelete(data){
return request({
url: '/order/order-warehouse-in/rollback-order-item',
method: 'put',
data
})
}
//取消订单 //取消订单
export function cancelOrder(orderId){ export function cancelOrder(orderId){
return request({ return request({
......
...@@ -170,7 +170,7 @@ import { ...@@ -170,7 +170,7 @@ import {
getOrderWarehouseIn, getOrderWarehouseIn,
getSpecialListByOrderId, listByOrderId, getSpecialListByOrderId, listByOrderId,
orderWarehouseInFinish, orderWarehouseInFinish,
rollbackApply rollbackDelete
} from '@/api/ecw/order' } from '@/api/ecw/order'
import orderBaseInfo from "@/components/OrderBaseInfo" import orderBaseInfo from "@/components/OrderBaseInfo"
import WarehouseAreaDialog from '@/components/WarehouseAreaDialog' import WarehouseAreaDialog from '@/components/WarehouseAreaDialog'
...@@ -274,15 +274,17 @@ export default { ...@@ -274,15 +274,17 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
rollbackApply({ rollbackDelete({
"orderId": item.orderId, "orderId": item.orderId,
"orderNo": item.orderNo, "orderItemId": item.orderItemId
"reason": ""
}).then(() => { }).then(() => {
this.$message({ this.$message({
type: 'success', type: 'success',
message: '申请退仓成功!' message: '申请退仓成功!'
}); });
getOrderWarehouseIn(this.orderId).then(r => this.orderItemList = r.data.reverse())
getOrder(this.orderId).then(r => this.order = r.data)
}) })
}).catch(() => { }).catch(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment