diff --git a/src/views/mes/reportWork/index.vue b/src/views/mes/reportWork/index.vue index e44e4af9..f5ed8f8e 100644 --- a/src/views/mes/reportWork/index.vue +++ b/src/views/mes/reportWork/index.vue @@ -1574,7 +1574,7 @@ export default { } this.$refs.itemSelectNewPrepare.showFlag = true; - this.$refs.itemSelectNewPrepare.init(rows[0].workorderCode); + this.$refs.itemSelectNewPrepare.init(rows[0].workorderCode,this.selectRow[0].workorderCode); }, //物料损耗表格--新增确认 onSelectNewPrepare(obj) { diff --git a/src/views/mes/reportWork/selectMaterial.vue b/src/views/mes/reportWork/selectMaterial.vue index 67e5fe1e..0b46c52f 100644 --- a/src/views/mes/reportWork/selectMaterial.vue +++ b/src/views/mes/reportWork/selectMaterial.vue @@ -111,7 +111,8 @@ export default { component : '', componentName : '', productGroupName:'', - workorderCode:'' + workorderCode:'', + parentOrder:'' }, selectionRows:[] }; @@ -127,9 +128,10 @@ export default { return cellValue.slice(7,18); //返回值 } }, - init(workorderCode){ + init(workorderCode,parentOrder){ this.workorderCode = workorderCode; this.queryParams.workorderCode = this.workorderCode; + this.queryParams.parentOrder = parentOrder; this.getList(); }, /** 查询表格列表*/