Browse Source

工具的默认选项修改 代码

master
DouDou 1 year ago
parent
commit
12227728f7
  1. 2
      src/views/modules/tooling/components/com_tool_info_add_update.vue
  2. 16
      src/views/modules/tooling/manuf_tool.vue

2
src/views/modules/tooling/components/com_tool_info_add_update.vue

@ -165,6 +165,7 @@ export default {
propertyNo: '', propertyNo: '',
ifsRowId: 0, ifsRowId: 0,
ifsRowVersion: '', ifsRowVersion: '',
addFlag: true,
}, },
dataListLoading: false, dataListLoading: false,
labels: { labels: {
@ -348,6 +349,7 @@ export default {
this.pageData = JSON.parse(JSON.stringify(toolInfo)); this.pageData = JSON.parse(JSON.stringify(toolInfo));
this.pageData.username = this.$store.state.user.name; this.pageData.username = this.$store.state.user.name;
} }
this.pageData.addFlag = addFlag;
this.addFlag = addFlag; this.addFlag = addFlag;
}, },

16
src/views/modules/tooling/manuf_tool.vue

@ -542,7 +542,7 @@ export default {
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 40
columnWidth: 90
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
@ -803,7 +803,6 @@ export default {
// columnList: { // columnList: {
// deep: true, // deep: true,
// handler: function (newV, oldV) { // handler: function (newV, oldV) {
// debugger
// //
// } // }
// } // }
@ -1095,8 +1094,17 @@ export default {
/*调整等待派工单的等待时间*/ /*调整等待派工单的等待时间*/
changeCurrentToolInfo(tempData) { 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));
}
}, },
/*调整等待派工单的等待时间*/ /*调整等待派工单的等待时间*/

Loading…
Cancel
Save