zuozhengqing
2023-10-31 0358c535963edb19780cd53c8e133bf298da6419
src/components/makepager/CommonFormTableView.vue
@@ -216,7 +216,10 @@
                      v-for="item in productTypeNameOptions"
                      :key="item.id"
                      :label="item.name"
                      :value="item.name"
                      :value="{
                        value: item.id,
                        label: item.name,
                      }"
                    >
                    </el-option>
                  </el-select>
@@ -463,7 +466,6 @@
    },
    // 选择产品
    selProductClick(item) {
      console.log(item)
      this.tableList.tableData.map((ite) => {
        if (ite.productName.label === item.label) {
          ite.productId = item.value
@@ -491,6 +493,12 @@
    },
    // 选择产品类型
    selProductTypeClick(item) {
      this.tableList.tableData.map((ite) => {
        if (ite.productCategory.label === item.label) {
          ite.productCategoryId = item.value
          ite.productCategory = item.label
        }
      })
      if (this.isinventory) {
        this.getProductCategoryList()
      }