代码更新
This commit is contained in:
@@ -741,7 +741,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
}
|
}
|
||||||
JSONObject jsonMap = new JSONObject();
|
JSONObject jsonMap = new JSONObject();
|
||||||
// 已分配重量
|
// 已分配重量
|
||||||
double assign_qty = 0;
|
double assign_qty = dtl.getDoubleValue("assign_qty");
|
||||||
|
|
||||||
if (ObjectUtil.isNotEmpty(dtl.getString("source_bill_code")) || is_top3) {
|
if (ObjectUtil.isNotEmpty(dtl.getString("source_bill_code")) || is_top3) {
|
||||||
while (unassign_qty > 0) {
|
while (unassign_qty > 0) {
|
||||||
@@ -919,7 +919,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
//出库主表
|
//出库主表
|
||||||
WQLObject wo_mst = WQLObject.getWQLObject("ST_IVT_IOStorInv");
|
WQLObject wo_mst = WQLObject.getWQLObject("ST_IVT_IOStorInv");
|
||||||
//库区表
|
//库区表
|
||||||
WQLObject wo_sect = WQLObject.getWQLObject("ST_IVT_IOStorInv");
|
WQLObject wo_sect = WQLObject.getWQLObject("st_ivt_sectattr");
|
||||||
|
|
||||||
//定义需要更新的仓位集合
|
//定义需要更新的仓位集合
|
||||||
HashMap<String, JSONObject> Struct_map = new HashMap<String, JSONObject>();
|
HashMap<String, JSONObject> Struct_map = new HashMap<String, JSONObject>();
|
||||||
@@ -959,7 +959,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
}
|
}
|
||||||
JSONObject jsonMap = new JSONObject();
|
JSONObject jsonMap = new JSONObject();
|
||||||
// 已分配数量
|
// 已分配数量
|
||||||
double assign_qty = 0;
|
double assign_qty = dtl.getDoubleValue("assign_qty");
|
||||||
if (ObjectUtil.isNotEmpty(dtl.getString("source_bill_code")) || is_top3) {
|
if (ObjectUtil.isNotEmpty(dtl.getString("source_bill_code")) || is_top3) {
|
||||||
while (unassign_qty > 0) {
|
while (unassign_qty > 0) {
|
||||||
// 1.有销售订单号
|
// 1.有销售订单号
|
||||||
@@ -1173,7 +1173,6 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void allCancel(JSONObject whereJson) {
|
public void allCancel(JSONObject whereJson) {
|
||||||
@@ -1307,7 +1306,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
//查询主表信息
|
//查询主表信息
|
||||||
JSONObject jo_mst = wo_mst.query("iostorinv_id = '" + iostorinv_id + "'").uniqueResult(0);
|
JSONObject jo_mst = wo_mst.query("iostorinv_id = '" + iostorinv_id + "'").uniqueResult(0);
|
||||||
// 查询此分配明细下的所有相同箱号的分配明细
|
// 查询此分配明细下的所有相同箱号的分配明细
|
||||||
JSONArray diss = wo_dis.query("box_no = '" + whereJson.getString("storagevehicle_code") + "'").getResultJSONArray(0);
|
JSONArray diss = wo_dis.query("box_no = '" + whereJson.getString("storagevehicle_code") + "' and iostorinv_id = '"+iostorinv_id+"'").getResultJSONArray(0);
|
||||||
|
|
||||||
for (int i = 0; i < diss.size(); i++) {
|
for (int i = 0; i < diss.size(); i++) {
|
||||||
JSONObject dis = diss.getJSONObject(i);
|
JSONObject dis = diss.getJSONObject(i);
|
||||||
|
|||||||
@@ -100,6 +100,7 @@
|
|||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
max-height="300"
|
max-height="300"
|
||||||
border
|
border
|
||||||
|
:cell-style="cellStyle"
|
||||||
:highlight-current-row="true"
|
:highlight-current-row="true"
|
||||||
:header-cell-style="{background:'#f5f7fa',color:'#606266'}"
|
:header-cell-style="{background:'#f5f7fa',color:'#606266'}"
|
||||||
@current-change="handleDtlCurrentChange"
|
@current-change="handleDtlCurrentChange"
|
||||||
@@ -180,7 +181,7 @@
|
|||||||
ref="table2"
|
ref="table2"
|
||||||
:data="tabledis"
|
:data="tabledis"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
max-height="300"
|
max-height="400"
|
||||||
border
|
border
|
||||||
:highlight-current-row="true"
|
:highlight-current-row="true"
|
||||||
:header-cell-style="{background:'#f5f7fa',color:'#606266'}"
|
:header-cell-style="{background:'#f5f7fa',color:'#606266'}"
|
||||||
@@ -202,9 +203,10 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column show-overflow-tooltip prop="material_code" label="物料编码" align="center" />
|
<el-table-column prop="material_code" label="物料编码" :min-width="flexWidth('material_code',crud.data,'物料编码')"/>
|
||||||
<el-table-column show-overflow-tooltip prop="material_name" label="物料名称" align="center" />
|
<el-table-column prop="material_name" label="物料名称" :min-width="flexWidth('material_name',crud.data,'物料名称')"/>
|
||||||
<el-table-column show-overflow-tooltip prop="pcsn" label="子卷批次号" align="center" />
|
<el-table-column prop="box_no" label="木箱号" :min-width="flexWidth('box_no',crud.data,'木箱号')"/>
|
||||||
|
<el-table-column prop="pcsn" label="子卷批次号" :min-width="flexWidth('pcsn',crud.data,'子卷批次号')"/>
|
||||||
<el-table-column show-overflow-tooltip prop="plan_qty" label="出库重量" :formatter="crud.formatNum3" align="center" />
|
<el-table-column show-overflow-tooltip prop="plan_qty" label="出库重量" :formatter="crud.formatNum3" align="center" />
|
||||||
<el-table-column show-overflow-tooltip prop="struct_code" label="仓位编码" align="center" />
|
<el-table-column show-overflow-tooltip prop="struct_code" label="仓位编码" align="center" />
|
||||||
<el-table-column show-overflow-tooltip prop="struct_name" label="仓位名称" align="center" />
|
<el-table-column show-overflow-tooltip prop="struct_name" label="仓位名称" align="center" />
|
||||||
@@ -504,6 +506,16 @@ export default {
|
|||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.tabledis = []
|
this.tabledis = []
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
cellStyle({ row, column, rowIndex, columnIndex }) {
|
||||||
|
const assign_qty = parseInt(row.assign_qty)
|
||||||
|
const plan_qty = parseInt(row.plan_qty)
|
||||||
|
|
||||||
|
if (column.property === 'assign_qty') {
|
||||||
|
if (assign_qty > plan_qty) {
|
||||||
|
return 'background: yellow'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user