Commit 70d1eac1 authored by zhoutong's avatar zhoutong

【空运2.0】到仓数为0,仍可以完成到仓

parent ba341286
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('实装箱数')" align="center" prop="installNum" /> <el-table-column :label="$t('实装箱数')" align="center" prop="installNum" />
<el-table-column :label="$t('卸柜箱数')" align="center" prop="unloadNum" /> <el-table-column :label="$t('到仓箱数')" align="center" prop="unloadNum" />
<el-table-column :label="$t('清关状态')" align="center" prop=""> <el-table-column :label="$t('清关状态')" align="center" prop="">
<template slot-scope="scope">{{clearStatus(scope.row)}}</template> <template slot-scope="scope">{{clearStatus(scope.row)}}</template>
</el-table-column> </el-table-column>
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
</div> </div>
<div class="label-font"> <div class="label-font">
<p> <p>
<span>{{$t('已卸')}}:</span> <span>{{$t('到仓')}}:</span>
<span>{{getUnLoadNumCount}}</span> <span>{{getUnLoadNumCount}}</span>
</p> </p>
</div> </div>
...@@ -263,16 +263,21 @@ export default { ...@@ -263,16 +263,21 @@ export default {
}, },
/** 提交 */ /** 提交 */
onSubmit() { onSubmit() {
approvalCreate({ if(this.getUnLoadNumCount>0){
shipmentId: this.$attrs.shipmentObj.id, approvalCreate({
approvalStatus: 0, shipmentId: this.$attrs.shipmentObj.id,
approvalType: 3, // 卸柜 approvalStatus: 0,
copyUserId: this.selectedUsers, approvalType: 3, // 卸柜
}).then((res) => { copyUserId: this.selectedUsers,
serviceMsg(res, this).then(() => { }).then((res) => {
this.cancel(); serviceMsg(res, this).then(() => {
this.cancel();
});
}); });
}); }else{
this.$message.error(this.$t("货物到仓数小于实装数,请确认"));
}
}, },
/** 取消 */ /** 取消 */
cancel() { cancel() {
......
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