From a80d418d5d985af44565058c56c061b2b4c4fa43 Mon Sep 17 00:00:00 2001 From: cuijian <cuijian@xalxzn.com> Date: 星期三, 03 九月 2025 16:51:24 +0800 Subject: [PATCH] 参数录入增加数据字典选择,查询列表增加字典翻译 --- src/views/tms/modules/toolLedger/ToolLedgerListRight.vue | 98 ++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 77 insertions(+), 21 deletions(-) diff --git a/src/views/tms/modules/toolLedger/ToolLedgerListRight.vue b/src/views/tms/modules/toolLedger/ToolLedgerListRight.vue index fb9e03e..518c812 100644 --- a/src/views/tms/modules/toolLedger/ToolLedgerListRight.vue +++ b/src/views/tms/modules/toolLedger/ToolLedgerListRight.vue @@ -131,7 +131,7 @@ forceRender > <span slot="tab"> - <a-badge>鎶婂彿 </a-badge> + <a-badge>宸ュ叿缂栧彿 </a-badge> </span> <tool-ledger-detail-list ref="toolLedgerDetailList"></tool-ledger-detail-list> </a-tab-pane> @@ -453,10 +453,8 @@ this.selectedRowKeys = selectedRowKeys; this.selectionRows = selectionRows //閫氳繃id鏌ヨ绠$悊鍙傛暟鍜屽弬鏁版暟鎹� - getAction(this.url.queryParaByToolCode, { toolCode: this.selectionRows[0].toolCodeId,paraTypeFlag:this.selectionRows[0].paraTypeFlag}).then((res) => { - if (res.success) { - if(this.selectionRows[0].paraTypeFlag === "1"){ - this.$refs.paraCommonToolList.getPara(res.result); + if(this.selectionRows[0].paraTypeFlag === "1"){ + this.$refs.paraCommonToolList.getPara(this.selectionRows[0]); //闅愯棌鍏朵粬绫诲瀷鍙傛暟 this.$refs.paraHoleToolsList.visable =false this.$refs.paraThreadingToolList.visable = false @@ -464,35 +462,35 @@ this.$refs.paraTurningToolsList.visable = false this.$refs.paraBladeList.visable = false }else if(this.selectionRows[0].paraTypeFlag === "2"){ - this.$refs.paraHoleToolsList.getPara(res.result); + this.$refs.paraHoleToolsList.getPara(this.selectionRows[0]); this.$refs.paraCommonToolList.visable = false this.$refs.paraThreadingToolList.visable = false this.$refs.paraMillToolList.visable = false this.$refs.paraTurningToolsList.visable = false this.$refs.paraBladeList.visable = false }else if(this.selectionRows[0].paraTypeFlag === "3"){ - this.$refs.paraThreadingToolList.getPara(res.result); + this.$refs.paraThreadingToolList.getPara(this.selectionRows[0]); this.$refs.paraCommonToolList.visable = false this.$refs.paraHoleToolsList.visable =false this.$refs.paraMillToolList.visable = false this.$refs.paraTurningToolsList.visable = false this.$refs.paraBladeList.visable = false }else if(this.selectionRows[0].paraTypeFlag === "4"){ - this.$refs.paraMillToolList.getPara(res.result); + this.$refs.paraMillToolList.getPara(this.selectionRows[0]); this.$refs.paraCommonToolList.visable = false this.$refs.paraHoleToolsList.visable =false this.$refs.paraThreadingToolList.visable = false this.$refs.paraTurningToolsList.visable = false this.$refs.paraBladeList.visable = false }else if(this.selectionRows[0].paraTypeFlag === "5"){ - this.$refs.paraTurningToolsList.getPara(res.result); + this.$refs.paraTurningToolsList.getPara(this.selectionRows[0]); this.$refs.paraCommonToolList.visable = false this.$refs.paraHoleToolsList.visable =false this.$refs.paraThreadingToolList.visable = false this.$refs.paraMillToolList.visable = false this.$refs.paraBladeList.visable = false }else if(this.selectionRows[0].paraTypeFlag === "6"){ - this.$refs.paraBladeList.getPara(res.result); + this.$refs.paraBladeList.getPara(this.selectionRows[0]); this.$refs.paraCommonToolList.visable = false this.$refs.paraHoleToolsList.visable =false this.$refs.paraThreadingToolList.visable = false @@ -500,17 +498,65 @@ this.$refs.paraTurningToolsList.visable = false this.$refs.paraBladeList.visable = false } - } else { - this.$message.warning(res.message); - } - }) - getAction(this.url.queryByToolCode, { toolCode: this.selectionRows[0].toolCodeId}).then((res) => { - if (res.success) { - this.$refs.toolsConfigPropertyList.getPara(res.result); - } else { - this.$message.warning(res.message); - } - }) + this.$refs.toolsConfigPropertyList.getPara(this.selectionRows[0]); + // getAction(this.url.queryParaByToolCode, { toolCode: this.selectionRows[0].toolCodeId,paraTypeFlag:this.selectionRows[0].paraTypeFlag}).then((res) => { + // if (res.success) { + // if(this.selectionRows[0].paraTypeFlag === "1"){ + // this.$refs.paraCommonToolList.getPara(res.result); + // //闅愯棌鍏朵粬绫诲瀷鍙傛暟 + // this.$refs.paraHoleToolsList.visable =false + // this.$refs.paraThreadingToolList.visable = false + // this.$refs.paraMillToolList.visable = false + // this.$refs.paraTurningToolsList.visable = false + // this.$refs.paraBladeList.visable = false + // }else if(this.selectionRows[0].paraTypeFlag === "2"){ + // this.$refs.paraHoleToolsList.getPara(res.result); + // this.$refs.paraCommonToolList.visable = false + // this.$refs.paraThreadingToolList.visable = false + // this.$refs.paraMillToolList.visable = false + // this.$refs.paraTurningToolsList.visable = false + // this.$refs.paraBladeList.visable = false + // }else if(this.selectionRows[0].paraTypeFlag === "3"){ + // this.$refs.paraThreadingToolList.getPara(res.result); + // this.$refs.paraCommonToolList.visable = false + // this.$refs.paraHoleToolsList.visable =false + // this.$refs.paraMillToolList.visable = false + // this.$refs.paraTurningToolsList.visable = false + // this.$refs.paraBladeList.visable = false + // }else if(this.selectionRows[0].paraTypeFlag === "4"){ + // this.$refs.paraMillToolList.getPara(res.result); + // this.$refs.paraCommonToolList.visable = false + // this.$refs.paraHoleToolsList.visable =false + // this.$refs.paraThreadingToolList.visable = false + // this.$refs.paraTurningToolsList.visable = false + // this.$refs.paraBladeList.visable = false + // }else if(this.selectionRows[0].paraTypeFlag === "5"){ + // this.$refs.paraTurningToolsList.getPara(res.result); + // this.$refs.paraCommonToolList.visable = false + // this.$refs.paraHoleToolsList.visable =false + // this.$refs.paraThreadingToolList.visable = false + // this.$refs.paraMillToolList.visable = false + // this.$refs.paraBladeList.visable = false + // }else if(this.selectionRows[0].paraTypeFlag === "6"){ + // this.$refs.paraBladeList.getPara(res.result); + // this.$refs.paraCommonToolList.visable = false + // this.$refs.paraHoleToolsList.visable =false + // this.$refs.paraThreadingToolList.visable = false + // this.$refs.paraMillToolList.visable = false + // this.$refs.paraTurningToolsList.visable = false + // this.$refs.paraBladeList.visable = false + // } + // } else { + // this.$message.warning(res.message); + // } + // }) + // getAction(this.url.queryByToolCode, { toolCode: this.selectionRows[0].toolCodeId}).then((res) => { + // if (res.success) { + // this.$refs.toolsConfigPropertyList.getPara(res.result); + // } else { + // this.$message.warning(res.message); + // } + // }) this.$bus.$emit('getToolLedgerData', this.selectionRows[0]) }, //绂佺敤鐘舵�佹牱寮� @@ -615,6 +661,8 @@ this.queryParam.technicalConditions = data.technicalConditions this.queryParam.conditionsInfo = data.conditionsInfo this.queryParam.toolModel = data.toolModel + this.queryParam.shortCalled = data.shortCalled + this.queryParam.groupCompanyCode = data.groupCompanyCode this.loadData(1) }, paraBladeOk(data) { @@ -634,6 +682,8 @@ this.queryParam.technicalConditions = data.technicalConditions this.queryParam.conditionsInfo = data.conditionsInfo this.queryParam.toolModel = data.toolModel + this.queryParam.shortCalled = data.shortCalled + this.queryParam.groupCompanyCode = data.groupCompanyCode this.loadData(1) }, paraThreadingToolOk(data) { @@ -653,6 +703,8 @@ this.queryParam.technicalConditions = data.technicalConditions this.queryParam.conditionsInfo = data.conditionsInfo this.queryParam.toolModel = data.toolModel + this.queryParam.shortCalled = data.shortCalled + this.queryParam.groupCompanyCode = data.groupCompanyCode this.loadData(1) }, paraMillToolOk(data) { @@ -674,6 +726,8 @@ this.queryParam.technicalConditions = data.technicalConditions this.queryParam.conditionsInfo = data.conditionsInfo this.queryParam.toolModel = data.toolModel + this.queryParam.shortCalled = data.shortCalled + this.queryParam.groupCompanyCode = data.groupCompanyCode this.loadData(1) }, paraTurningToolsOk(data) { @@ -695,6 +749,8 @@ this.queryParam.technicalConditions = data.technicalConditions this.queryParam.conditionsInfo = data.conditionsInfo this.queryParam.toolModel = data.toolModel + this.queryParam.shortCalled = data.shortCalled + this.queryParam.groupCompanyCode = data.groupCompanyCode this.loadData(1) }, }, -- Gitblit v1.9.3