Commit 42dab25f authored by zhoutong's avatar zhoutong

海运支持分批更新卸柜,跟空运一样,批量输入订单号,更新订单状态会已卸柜和卸柜时间

parent d566547c
<template>
<div class="app-startUnloading">
<el-row class="number-area">
<p class="label-font"><span style="color:red">*</span>{{$t('卸柜时间')}}</p>
<el-date-picker type="datetime" :placeholder="$t('请选择日期')" v-model="ulWarehouseTime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
</el-row>
<!-- 自编号 -->
<el-row class="number-area">
<p class="label-font">{{$t('自编号')}}</p>
......@@ -61,7 +64,7 @@
<el-table-column :label="$t('重量')" align="center" prop="weight" />
<el-table-column :label="$t('订单状态')" align="center" prop="">
<template slot-scope="scope">
{{getOrderError(scope.row, 'orderStatus')}}
{{scope.row.statusMsg}}
</template>
</el-table-column>
<el-table-column :label="$t('异常状态')" align="center" prop="">
......@@ -172,6 +175,7 @@ export default {
totalStatistics: {},
},
selectedUsers: [],
ulWarehouseTime: null
};
},
created() {
......@@ -223,9 +227,14 @@ export default {
this.$message.error(this.$t("请输入订单号"));
return;
}
if (!this.ulWarehouseTime) {
this.$message.error(this.$t("请选择卸柜时间"));
return;
}
batchUnload({
orderNo: this.labelNo,
shipmentId: this.$attrs.shipmentObj.id,
unloadTime: this.ulWarehouseTime
}).then((res) => {
serviceMsg(res, this).then((res) => {
this.labelNo = "";
......@@ -235,11 +244,15 @@ export default {
},
/* 一键卸柜 */
modifyAllUnload() {
if (!this.ulWarehouseTime) {
this.$message.error(this.$t("请选择卸柜时间"));
return;
}
this.$confirm(this.$t("确认卸柜?"), this.$t("提示"), {
type: "warning",
})
.then((_) => {
allUnload({ shipmentId: this.$attrs.shipmentObj.id }).then((res) => {
allUnload({ shipmentId: this.$attrs.shipmentObj.id, unloadTime: this.ulWarehouseTime }).then((res) => {
serviceMsg(res, this).then((res) => {
this.getLoadGoodsList();
});
......
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