spring
2025-03-24 ebb1c1c5b62ed13e5740dfd1e9f5db08c2640a9b
src/views/structural/capabilityAndLaboratory/capability/index.vue
@@ -290,7 +290,7 @@
                this.bindWokshop1(row);
              },
              disabled: (row) => {
                return row.objectType != '原材料'
                return row.objectType != '原辅料' && row.objectType != '包材'
              }
            },
          ]
@@ -341,20 +341,20 @@
                this.bindPartSecond(row);
              },
            },
            {
              name: '车间绑定',
              type: 'text',
              clickFun: (row) => {
                this.bindWokshop(row);
              },
              showHide: (row) => {
                if (this.currentObj.objectType != '原材料') {
                  return false
                } else {
                  return true
                }
              }
            },
            // {
            //   name: '车间绑定',
            //   type: 'text',
            //   clickFun: (row) => {
            //     this.bindWokshop(row);
            //   },
            //   showHide: (row) => {
            //     if (this.currentObj.objectType != '原辅料' && row.objectType != '包材') {
            //       return false
            //     } else {
            //       return true
            //     }
            //   }
            // },
            // {
            //   name: '厂家密度绑定',
            //   type: 'text',
@@ -586,7 +586,7 @@
    // 产品维护
    upProduct(row) {
      this.currentObj = row;
      if (this.currentObj.objectType == '原材料') {
      if (this.currentObj.objectType == '原辅料') {
        if (this.productColumn.length < 4) {
          this.productColumn.splice(2, 0, { label: '车间名称', prop: 'workShopName' })
        }