cuijian
2 天以前 a80d418d5d985af44565058c56c061b2b4c4fa43
src/views/tms/modules/toolLedger/ToolLedgerListRight.vue
@@ -131,7 +131,7 @@
        forceRender
      >
        <span slot="tab">
          <a-badge>把号&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a-badge>
          <a-badge>工具编号&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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)
    },
    },