spring
2025-03-25 af62acf44d4424689378b1f0c6bb99b98d47565f
src/views/structural/capabilityAndLaboratory/capability/index.vue
@@ -283,16 +283,16 @@
                this.bindPartFirst(row);
              },
            },
            {
              name: '车间绑定',
              type: 'text',
              clickFun: (row) => {
                this.bindWokshop1(row);
              },
              disabled: (row) => {
                return row.objectType != '原辅料' && row.objectType != '包材'
              }
            },
            // {
            //   name: '车间绑定',
            //   type: 'text',
            //   clickFun: (row) => {
            //     this.bindWokshop1(row);
            //   },
            //   disabled: (row) => {
            //     return row.objectType != '原辅料' && row.objectType != '包材'
            //   }
            // },
          ]
        }
      ],
@@ -315,7 +315,7 @@
      productColumn: [
        { label: '产品名称', prop: 'name' },
        { label: '产品名称EN', prop: 'nameEn' },
        { label: '车间名称', prop: 'workShopName' },
        // { label: '车间名称', prop: 'workShopName' },
        {
          dataType: 'action',
          label: '操作',
@@ -413,7 +413,7 @@
    this.getDicts("product_classification").then((response) => {
      this.productClassification = this.dictToValue(response.data);
    });
    this.selectWorkShop()
    // this.selectWorkShop()
  },
  computed: {
    title() {
@@ -586,15 +586,15 @@
    // 产品维护
    upProduct(row) {
      this.currentObj = row;
      if (this.currentObj.objectType == '原辅料') {
        if (this.productColumn.length < 4) {
          this.productColumn.splice(2, 0, { label: '车间名称', prop: 'workShopName' })
        }
      } else {
        if (this.productColumn.length == 4) {
          this.productColumn.splice(2, 1)
        }
      }
      // if (this.currentObj.objectType == '原辅料') {
      //   if (this.productColumn.length < 4) {
      //     this.productColumn.splice(2, 0, { label: '车间名称', prop: 'workShopName' })
      //   }
      // } else {
      //   if (this.productColumn.length == 4) {
      //     this.productColumn.splice(2, 1)
      //   }
      // }
      this.diaProduct = true
      this.objectId = row.id
      this.productPage.current = 1