diff --git a/mes/hd/nladmin-system/src/main/java/org/nl/wms/st/core/service/impl/CheckOutBillServiceImpl.java b/mes/hd/nladmin-system/src/main/java/org/nl/wms/st/core/service/impl/CheckOutBillServiceImpl.java index 8b67a63f..bc81f00a 100644 --- a/mes/hd/nladmin-system/src/main/java/org/nl/wms/st/core/service/impl/CheckOutBillServiceImpl.java +++ b/mes/hd/nladmin-system/src/main/java/org/nl/wms/st/core/service/impl/CheckOutBillServiceImpl.java @@ -89,6 +89,9 @@ public class CheckOutBillServiceImpl implements CheckOutBillService { if (StrUtil.isNotEmpty(map.get("material_code"))) { map.put("material_code", "%" + map.get("material_code") + "%"); } + if (StrUtil.isNotEmpty(map.get("username"))) { + map.put("username", "%" + map.get("username") + "%"); + } if (StrUtil.isNotEmpty(map.get("pcsn"))) { map.put("pcsn", "%" + map.get("pcsn") + "%"); } @@ -100,6 +103,17 @@ public class CheckOutBillServiceImpl implements CheckOutBillService { if (StrUtil.isNotEmpty(end_time)) { map.put("end_time", end_time.substring(0,10)+" 23:59:59"); } + String source_bill_code = map.get("source_bill_code"); + if (StrUtil.isNotEmpty(source_bill_code)) { + StringBuilder sb = new StringBuilder(); + String[] strs = source_bill_code.split(","); + for(int i=0;i "" - (mb.material_code like 输入.remark or mb.material_name like 输入.remark) + OPTION 输入.material_code <> "" + (mb.material_code like 输入.material_code or mb.material_name like 输入.material_code) ENDOPTION OPTION 输入.username <> "" - (ios.input_optid = 输入.username or ios.input_optname = 输入.username) + (user.username like 输入.username or ios.input_optname like 输入.username) ENDOPTION OPTION 输入.pcsn <> "" iosdtl.pcsn like 输入.pcsn ENDOPTION OPTION 输入.source_bill_code <> "" - iosdtl.source_bill_code = 输入.source_bill_code + iosdtl.source_bill_code in 输入.source_bill_code ENDOPTION OPTION 输入.begin_time <> "" ios.biz_date >= 输入.begin_time diff --git a/mes/qd/src/views/wms/statistics/outStorQuery/StructIvt.vue b/mes/qd/src/views/wms/statistics/outStorQuery/StructIvt.vue new file mode 100644 index 00000000..eb093215 --- /dev/null +++ b/mes/qd/src/views/wms/statistics/outStorQuery/StructIvt.vue @@ -0,0 +1,269 @@ + + + diff --git a/mes/qd/src/views/wms/statistics/outStorQuery/index.vue b/mes/qd/src/views/wms/statistics/outStorQuery/index.vue index 1621d313..6f872539 100644 --- a/mes/qd/src/views/wms/statistics/outStorQuery/index.vue +++ b/mes/qd/src/views/wms/statistics/outStorQuery/index.vue @@ -58,15 +58,6 @@ @change="crud.toQuery" /> - - - + + + + + @@ -127,6 +120,7 @@ + @@ -138,11 +132,12 @@ import crudOperation from '@crud/CRUD.operation' import pagination from '@crud/Pagination' import crudStorattr from '@/api/wms/basedata/st/storattr' import Date from '@/utils/datetime' +import StructIvt from '@/views/wms/statistics/outStorQuery/StructIvt' import crudRawAssist from '@/api/wms/st/core/inbill/rawassist' export default { name: 'outStorQuery', - components: { crudOperation, rrOperation, pagination }, + components: { StructIvt, crudOperation, rrOperation, pagination }, cruds() { return CRUD({ title: '生产配粉领料', idField: 'iostorinv_id', url: 'api/checkoutbill/queryDtl', crudMethod: { ...checkoutbill }, optShow: { @@ -161,11 +156,8 @@ export default { height: document.documentElement.clientHeight - 180 + 'px;', permission: { }, - divShow: false, - openParam: [], - mstrow: {}, + structshow: false, currentRow: null, - checkrows: [], storlist: [], billtypelist: [] } @@ -187,31 +179,11 @@ export default { this.crud.toQuery() }, methods: { - [CRUD.HOOK.beforeRefresh]() { - this.handleCurrentChange(null) - }, onInput() { this.$forceUpdate() }, - handleSelectionChange(val, row) { - if (val.length > 1) { - this.$refs.table.clearSelection() - this.$refs.table.toggleRowSelection(val.pop()) - this.buttonChange(row) - } else if (val.length === 1) { - this.buttonChange(row) - } else { - this.handleCurrentChange(null) - } - }, - onSelectAll() { - this.$refs.table.clearSelection() - this.handleCurrentChange(null) - }, - buttonChange(current) { - if (current !== null) { - this.currentRow = current - } + async queryMater() { + this.structshow = true }, quality_scodeFormat(row, column) { return this.dict.label.ST_QUALITY_SCODE[row.quality_scode] @@ -222,14 +194,19 @@ export default { is_activeFormat(row, column) { return this.dict.label.is_usable[row.is_active] }, - handleCurrentChange(current) { - if (current === null) { - this.currentRow = {} + queryTableDtl(rows) { + let devices = '' + for (let i = 0; i < rows.length; i++) { + if ( i === 0 ) { + devices = rows[i].workorder_code + }else{ + devices = devices + ',' + rows[i].workorder_code + } + } + if(rows.length > 0){ + this.crud.query.source_bill_code = devices + this.crud.toQuery() } - }, - querytable() { - this.crud.toQuery() - this.handleCurrentChange(null) } } }