供应商管理模块 添加新产品的时候供应商对应的产品和已增加的产品都不可选的逻辑处理
3个文件已修改
28 ■■■■ 已修改文件
src/components/makepager/CommonFormTableView.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/supplierManage/supplier/AddNewProduct.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/supplierManage/supplier/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/makepager/CommonFormTableView.vue
@@ -223,7 +223,7 @@
      v-if="editSelCommonConfig.editVisible"
      :edit-common-config="editSelCommonConfig"
      :sign="sign"
      :selectBoxList="tableList.tableData"
      :selectBoxList="arrDisabledList"
      :quotationNumber="quotationNumber"
      @selClient="selClient"
      @getSelectArray="getSelectArray"
@@ -304,13 +304,21 @@
          mergeNumber: 1
        }
      }
    },
    disabledList:{
      type:[Array],
      default: () => {
        return []
      }
    }
  },
  data() {
    return {
      total: 0,
      productList: [],
      tableList: [],
      tableList: {
        tableData:[]
      },
      editSelCommonConfig: {
        editVisible: false,
        isSelectBox: false,
@@ -320,6 +328,7 @@
      },
      productIndex: 0,
      supplierId:null,
      arrDisabledList:[]
    }
  },
  created() {
@@ -338,7 +347,10 @@
    supplierId(n,o) {  
      this.editSelCommonConfig.supplierId=n
      console.log(n,o,"看看那") 
    }
    } ,
    'tableList.tableData':function () {
      this.arrDisabledList=this.disabledList.concat(this.tableList.tableData)
    }
  },
  computed: {},
  methods: {
@@ -372,6 +384,7 @@
    },
    getTableInfo() {
      this.tableList = this.productTableList
      this.arrDisabledList=this.disabledList.concat(this.tableList.tableData)
    },
    // 产品名称
    async getProductList() {
src/views/supplierManage/supplier/AddNewProduct.vue
@@ -16,6 +16,7 @@
          <CommonFormTableView
            ref="productTable"
            :addTypeIdMultiple="true"
            :disabledList="disabledList"
            :product-table-list="productTableList"
            :detail-enter="detailEnter"
            :isOperate="isOperate"
@@ -52,6 +53,12 @@
          infomation: {}
        }
      }
    },
    disabledList:{
      type:[Array],
      default: () => {
        return []
      }
    }
  },
  components: { CommonFormTableView },
src/views/supplierManage/supplier/index.vue
@@ -110,7 +110,7 @@
    <!-- 相关供应商 -->
    <RaleteSupplierList v-if="raleteSupplierConfig.visible" :common-config="raleteSupplierConfig" />
    <!-- 添加新产品 -->
    <AddNewProduct v-if="newProductConfig.visible" :add-common-config="newProductConfig" />
    <AddNewProduct v-if="newProductConfig.visible" :disabledList="productTableList.tableInfomation" :add-common-config="newProductConfig" />
    <!-- 新建/编辑 -->
    <AddPurchase v-if="editPurchaseConfig.visible" :edit-common-config="editPurchaseConfig" />
  </div>