Commit 1bf66983 authored by dragondean@qq.com's avatar dragondean@qq.com

订单可出操作

parent e7493a3e
...@@ -748,4 +748,10 @@ export function splitItemUpdate(data){ ...@@ -748,4 +748,10 @@ export function splitItemUpdate(data){
data data
}) })
} }
// 确认订单可出
export function setCanShipment(orderId){
return request({
url: '/air/order/can/shipment/' + orderId,
method: 'put',
})
}
...@@ -346,6 +346,12 @@ ...@@ -346,6 +346,12 @@
)"> )">
<el-dropdown-item @click.native="handleUpdate(scope.row, true)" v-hasPermi="['ecw:order:update_channel']">{{$t('变更出货渠道')}}</el-dropdown-item> <el-dropdown-item @click.native="handleUpdate(scope.row, true)" v-hasPermi="['ecw:order:update_channel']">{{$t('变更出货渠道')}}</el-dropdown-item>
</template> </template>
<!--可出,待出的时候显示-->
<template v-if="(
scope.row.airShipment == 1
)">
<el-dropdown-item @click.native="setCanShipment(scope.row)" v-hasPermi="['ecw:order:can_shipment']">{{$t('可出')}}</el-dropdown-item>
</template>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
...@@ -511,7 +517,7 @@ import { ...@@ -511,7 +517,7 @@ import {
exportCustomsDatas, exportCustomsDatas,
exportShippingDatas, exportShippingDatas,
exportShipFee, exportShipFee,
exportUnload, splitCancelApply, orderSplitRevoke exportUnload, splitCancelApply, orderSplitRevoke, setCanShipment
} 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'
...@@ -899,6 +905,15 @@ export default { ...@@ -899,6 +905,15 @@ export default {
onBatchClose(){ onBatchClose(){
this.showBatchPickup = false this.showBatchPickup = false
this.handleQuery() this.handleQuery()
},
// 设置可出
setCanShipment(row){
this.$confirm(this.$t(`您确定要将订单${row.orderNo}设置为可出吗?`)).then(() =>{
setCanShipment(row.orderId)
}).then(res =>{
this.$message.success(res.message || this.$t('操作成功'))
this.getList()
})
} }
} }
}; };
......
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