diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/pda/st/out/service/impl/HandPFOutIvtServiceImpl.java b/mes/hd/nladmin-system/src/main/java/org/nl/pda/st/out/service/impl/HandPFOutIvtServiceImpl.java index e8ac7ea5..a164736a 100644 --- a/mes/hd/nladmin-system/src/main/java/org/nl/pda/st/out/service/impl/HandPFOutIvtServiceImpl.java +++ b/mes/hd/nladmin-system/src/main/java/org/nl/pda/st/out/service/impl/HandPFOutIvtServiceImpl.java @@ -460,7 +460,7 @@ public class HandPFOutIvtServiceImpl implements HandPFOutIvtService { } String area_type = pointObj.getString("area_type"); String bucketunique = jsonObject.get("bucketunique"); - String out_qty = jsonObject.get("out_qty"); + String out_qty = NumberUtil.round(MapUtil.getStr(jsonObject,"out_qty"), 2).toString(); //根据桶查询物料批次信息 JSONObject bucketObj = WQLObject.getWQLObject("md_pb_bucketrecord").query("bucketunique='" + bucketunique + "'").uniqueResult(0); String material_id = bucketObj.getString("material_id"); diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/FlourworkServiceImpl.java b/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/FlourworkServiceImpl.java index 0d7cfd39..801e7d4a 100644 --- a/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/FlourworkServiceImpl.java +++ b/mes/hd/nladmin-system/src/main/java/org/nl/wms/pf/service/impl/FlourworkServiceImpl.java @@ -180,7 +180,8 @@ public class FlourworkServiceImpl implements FlourworkService { WQLObject devicePointTab = WQLObject.getWQLObject("SCH_BASE_DevicePointPara"); // 设备点位参数表 WQLObject strucTab = WQLObject.getWQLObject("st_ivt_structattr"); // 仓位表 - JSONObject jsonFormMst = formTabMst.query("formula_id = '" + formula_id + "'").uniqueResult(0); + JSONObject jsonFormMst = formTabMst.query("formula_id = '" + formula_id + "' and status <> '99'").uniqueResult(0); + if (ObjectUtil.isEmpty(jsonFormMst)) throw new BadRequestException("配方已完成"); /* * 查询需要移库的物料(配方明细表)条件: * 1.状态等于10生成、20生产中 diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/wms/sb/repair/rest/DevicerepairrequestController.java b/mes/hd/nladmin-system/src/main/java/org/nl/wms/sb/repair/rest/DevicerepairrequestController.java index 5a3b0590..1eb11e5d 100644 --- a/mes/hd/nladmin-system/src/main/java/org/nl/wms/sb/repair/rest/DevicerepairrequestController.java +++ b/mes/hd/nladmin-system/src/main/java/org/nl/wms/sb/repair/rest/DevicerepairrequestController.java @@ -82,4 +82,11 @@ public class DevicerepairrequestController { devicerepairrequestService.notRepair(whereJson); return new ResponseEntity<>(HttpStatus.OK); } + + @GetMapping("/localStorage") + @Log("查看图片") + @ApiOperation("查看图片") + public ResponseEntity localStorage(@RequestParam Map whereJson, Pageable page) { + return new ResponseEntity<>(devicerepairrequestService.localStorage(whereJson, page), HttpStatus.OK); + } } diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/wms/sb/repair/service/DevicerepairrequestService.java b/mes/hd/nladmin-system/src/main/java/org/nl/wms/sb/repair/service/DevicerepairrequestService.java index 22d0eef6..698b2941 100644 --- a/mes/hd/nladmin-system/src/main/java/org/nl/wms/sb/repair/service/DevicerepairrequestService.java +++ b/mes/hd/nladmin-system/src/main/java/org/nl/wms/sb/repair/service/DevicerepairrequestService.java @@ -85,4 +85,7 @@ public interface DevicerepairrequestService { * @param whereJson / */ void notRepair(JSONObject whereJson); + + Map localStorage(Map whereJson, Pageable page); + } diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/wms/sb/repair/service/impl/DevicerepairrequestServiceImpl.java b/mes/hd/nladmin-system/src/main/java/org/nl/wms/sb/repair/service/impl/DevicerepairrequestServiceImpl.java index 70922453..eb76a5b3 100644 --- a/mes/hd/nladmin-system/src/main/java/org/nl/wms/sb/repair/service/impl/DevicerepairrequestServiceImpl.java +++ b/mes/hd/nladmin-system/src/main/java/org/nl/wms/sb/repair/service/impl/DevicerepairrequestServiceImpl.java @@ -221,4 +221,18 @@ public class DevicerepairrequestServiceImpl implements DevicerepairrequestServic requestTab.update(jsonRequest); } + @Override + @Transactional(rollbackFor = Exception.class) + public Map localStorage(Map whereJson, Pageable page) { + HashMap map = new HashMap<>(whereJson); + map.put("flag", "2"); + String request_code = MapUtil.getStr(whereJson, "request_code"); + if (ObjectUtil.isNotEmpty(request_code)) { + map.put("inspection_code","%"+request_code+"%" ); + } + JSONObject json = WQL.getWO("EM_BI_DEVICEREPAIRREQUEST001").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), ""); + return json; + + } + } diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/wms/sb/repair/wql/EM_BI_DEVICEREPAIRREQUEST001.wql b/mes/hd/nladmin-system/src/main/java/org/nl/wms/sb/repair/wql/EM_BI_DEVICEREPAIRREQUEST001.wql index 26a465f1..6faa5013 100644 --- a/mes/hd/nladmin-system/src/main/java/org/nl/wms/sb/repair/wql/EM_BI_DEVICEREPAIRREQUEST001.wql +++ b/mes/hd/nladmin-system/src/main/java/org/nl/wms/sb/repair/wql/EM_BI_DEVICEREPAIRREQUEST001.wql @@ -91,5 +91,20 @@ ENDPAGEQUERY ENDIF + IF 输入.flag = "2" + PAGEQUERY + SELECT + mst.* + FROM + tool_local_storage mst + WHERE + 1=1 + OPTION 输入.request_code <> "" + mst.source_bill_code like 输入.request_code + ENDOPTION + ENDSELECT + ENDPAGEQUERY + ENDIF + diff --git a/mes/qd/src/views/wms/pf/flourwork/WorkDialog.vue b/mes/qd/src/views/wms/pf/flourwork/WorkDialog.vue index e2400792..f9d98067 100644 --- a/mes/qd/src/views/wms/pf/flourwork/WorkDialog.vue +++ b/mes/qd/src/views/wms/pf/flourwork/WorkDialog.vue @@ -365,9 +365,6 @@ export default { 'device_id': this.form.device_id, 'formula_id': this.form.formula_id } - if (this.form.status !== '30') { - return this.crud.notify('配方状态必须为生产中', CRUD.NOTIFICATION_TYPE.INFO) - } this.fla = true crudFlourwork.autoCalledMater(data).then(res => { const num = res.task diff --git a/mes/qd/src/views/wms/sb/repair/devicerepairrequest/PicDialog.vue b/mes/qd/src/views/wms/sb/repair/devicerepairrequest/PicDialog.vue new file mode 100644 index 00000000..146241f4 --- /dev/null +++ b/mes/qd/src/views/wms/sb/repair/devicerepairrequest/PicDialog.vue @@ -0,0 +1,177 @@ + + + + + diff --git a/mes/qd/src/views/wms/sb/repair/devicerepairrequest/index.vue b/mes/qd/src/views/wms/sb/repair/devicerepairrequest/index.vue index d1157f6e..8d627728 100644 --- a/mes/qd/src/views/wms/sb/repair/devicerepairrequest/index.vue +++ b/mes/qd/src/views/wms/sb/repair/devicerepairrequest/index.vue @@ -90,6 +90,11 @@ + + + @@ -107,6 +112,7 @@ + @@ -122,11 +128,12 @@ import crudClassstandard from '@/api/wms/basedata/master/classstandard' import Treeselect, { LOAD_CHILDREN_OPTIONS } from '@riophae/vue-treeselect' import '@riophae/vue-treeselect/dist/vue-treeselect.css' import crudMaterialbase from '@/api/wms/basedata/master/materialbase' +import PicDialog from '@/views/wms/sb/repair/devicerepairrequest/PicDialog' const defaultForm = { request_id: null, request_code: null, devicerecord_id: null, fault_time: null, device_faultclass_id: null, fault_desc: null, fault_level: null, remark: null, status: null, create_id: null, create_name: null, create_time: null, is_passed: null, process_id: null, process_name: null, process_time: null, finish_id: null, finish_name: null, finish_time: null, is_delete: null, sysdeptid: null, syscompanyid: null } export default { name: 'Devicerepairrequest', - components: { pagination, crudOperation, rrOperation, udOperation, DateRangePicker, Treeselect }, + components: { pagination, crudOperation, rrOperation, udOperation, DateRangePicker, Treeselect, PicDialog }, mixins: [presenter(), header(), form(defaultForm), crud()], cruds() { return CRUD({ @@ -154,6 +161,7 @@ export default { { 'label': '维修中', 'value': '02' }, { 'label': '完毕', 'value': '03' } ], + PicDialog: false, permission: { } } @@ -251,6 +259,11 @@ export default { this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS) this.crud.toQuery() }) + }, + Picconfirm(index, row) { + debugger + this.$refs.child.setForm(row.request_code) + this.PicDialog = true } } } diff --git a/mes/qd/src/views/wms/sb/repair/devicerepairudit/ReceiveDialog.vue b/mes/qd/src/views/wms/sb/repair/devicerepairudit/ReceiveDialog.vue new file mode 100644 index 00000000..7e6bdff4 --- /dev/null +++ b/mes/qd/src/views/wms/sb/repair/devicerepairudit/ReceiveDialog.vue @@ -0,0 +1,289 @@ + + + + + diff --git a/mes/qd/src/views/wms/sb/repair/devicerepairudit/index.vue b/mes/qd/src/views/wms/sb/repair/devicerepairudit/index.vue index 9f3cba66..2e905e24 100644 --- a/mes/qd/src/views/wms/sb/repair/devicerepairudit/index.vue +++ b/mes/qd/src/views/wms/sb/repair/devicerepairudit/index.vue @@ -105,7 +105,11 @@ - + + + @@ -130,6 +134,7 @@ + @@ -146,11 +151,12 @@ import Treeselect, { LOAD_CHILDREN_OPTIONS } from '@riophae/vue-treeselect' import '@riophae/vue-treeselect/dist/vue-treeselect.css' import crudMaterialbase from '@/api/wms/basedata/master/materialbase' import resuftDialog from '@/views/wms/sb/repair/devicerepairudit/resuftDialog' +import ReceiveDialog from '@/views/wms/sb/repair/devicerepairudit/ReceiveDialog' export default { name: 'Devicerepairudit', dicts: ['EM_DEVICE_WX_INVTYPE', 'EM_DEVICE_WX_INVSTATUS', 'EM_FAULT_LEVEL'], - components: { pagination, crudOperation, rrOperation, udOperation, DateRangePicker, Treeselect, resuftDialog }, + components: { pagination, crudOperation, rrOperation, udOperation, DateRangePicker, Treeselect, resuftDialog, ReceiveDialog }, mixins: [presenter(), header(), crud()], cruds() { return CRUD({ @@ -175,6 +181,7 @@ export default { materOpt_code: '23', openParam: null, resuftDialog: false, + receiveDialog: false, permission: { } } @@ -253,6 +260,16 @@ export default { this.openParam = res this.resuftDialog = true }) + }, + openReceive(row) { + const data = row + crudDevicerepairmst.getDtl(data).then(res => { + this.openParam = { + 'form3': data, + 'itemData': res + } + this.receiveDialog = true + }) } } }