Commit 42dab25f authored by zhoutong's avatar zhoutong

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

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