代码更新
This commit is contained in:
@@ -1401,12 +1401,12 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
for (int j = 0; j < rows.size(); j++) {
|
||||
JSONObject ivt = rows.getJSONObject(j);
|
||||
|
||||
double canuse_qty = ivt.getDoubleValue("plan_qty");
|
||||
double canuse_qty = ivt.getDoubleValue("ivt_qty");
|
||||
if (unassign_qty >= canuse_qty) {
|
||||
unassign_qty = unassign_qty - canuse_qty;
|
||||
ivt.put("change_qty", canuse_qty + "");
|
||||
} else {
|
||||
ivt.put("change_qty", unassign_qty + "");
|
||||
ivt.put("change_qty", canuse_qty + "");
|
||||
unassign_qty = 0;
|
||||
}
|
||||
//更新库存
|
||||
@@ -1634,6 +1634,12 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
from_start.put("lock_type", "1");
|
||||
from_start.put("storagevehicle_code", "");
|
||||
storPublicService.updateStructAndPoint(from_start);
|
||||
|
||||
// 更新子卷包装关系表 状态 - 3
|
||||
JSONObject jsonSub = subTab.query("container_name = '" + dis.getString("pcsn") + "' and status = '2'").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(jsonSub)) throw new BadRequestException("此子卷不存在或不为入库状态:"+dis.getString("pcsn"));
|
||||
jsonSub.put("status", "3");
|
||||
subTab.update(jsonSub);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -179,16 +179,15 @@ export default {
|
||||
}
|
||||
},
|
||||
handleEdit(index, row) {
|
||||
debugger
|
||||
// 判断是否可以关闭编辑状态
|
||||
if (row.edit === undefined) {
|
||||
this.$set(row, 'edit', false)
|
||||
}
|
||||
if (!row.edit) {
|
||||
if (row.plan_qty > this.queryrow.unassign_qty) {
|
||||
/* if (row.plan_qty > this.queryrow.unassign_qty) {
|
||||
this.crud.notify('出库重量不能超过未分配数', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return false
|
||||
}
|
||||
}*/
|
||||
if (row.plan_qty > row.canuse_qty) {
|
||||
this.crud.notify('出库重量不能超过库存可出重量', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return false
|
||||
|
||||
@@ -158,13 +158,14 @@
|
||||
<el-table-column
|
||||
v-permission="['admin','checkoutbill:del','checkoutbill:edit']"
|
||||
label="操作"
|
||||
width="200"
|
||||
width="250"
|
||||
align="center"
|
||||
fixed="right"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<udOperation
|
||||
:data="scope.row"
|
||||
style="display: inline"
|
||||
:permission="permission"
|
||||
:disabled-edit="canUd(scope.row)"
|
||||
:disabled-dle="canUd(scope.row)"
|
||||
@@ -178,7 +179,7 @@
|
||||
</el-button>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-upload"
|
||||
icon="el-icon-printer"
|
||||
@click="print(scope.row)"
|
||||
>
|
||||
打印
|
||||
|
||||
Reference in New Issue
Block a user