diff --git a/src/views/modules/tooling/components/com_tool_info_add_update.vue b/src/views/modules/tooling/components/com_tool_info_add_update.vue index 862f960..6275c4d 100644 --- a/src/views/modules/tooling/components/com_tool_info_add_update.vue +++ b/src/views/modules/tooling/components/com_tool_info_add_update.vue @@ -165,6 +165,7 @@ export default { propertyNo: '', ifsRowId: 0, ifsRowVersion: '', + addFlag: true, }, dataListLoading: false, labels: { @@ -348,6 +349,7 @@ export default { this.pageData = JSON.parse(JSON.stringify(toolInfo)); this.pageData.username = this.$store.state.user.name; } + this.pageData.addFlag = addFlag; this.addFlag = addFlag; }, diff --git a/src/views/modules/tooling/manuf_tool.vue b/src/views/modules/tooling/manuf_tool.vue index 83f7e37..0866445 100644 --- a/src/views/modules/tooling/manuf_tool.vue +++ b/src/views/modules/tooling/manuf_tool.vue @@ -542,7 +542,7 @@ export default { sortLv: 0, status: true, fixed: '', - columnWidth: 40 + columnWidth: 90 }, { userId: this.$store.state.user.name, @@ -803,7 +803,6 @@ export default { // columnList: { // deep: true, // handler: function (newV, oldV) { - // debugger // // } // } @@ -1095,8 +1094,17 @@ export default { /*调整等待派工单的等待时间*/ changeCurrentToolInfo(tempData) { - //重置选择行 - this.currentRow = JSON.parse(JSON.stringify(tempData)); + //判断是否是新增的数据 + if(tempData.addFlag){ + //重置查询的条件 + this.searchData.site = tempData.site; + this.searchData.toolId = tempData.toolId; + //调用传的方法 + this.refreshTooInfoData(); + }else { + //重置选择行 + this.currentRow = JSON.parse(JSON.stringify(tempData)); + } }, /*调整等待派工单的等待时间*/