供应商管理模块 添加新产品的时候供应商对应的产品和已增加的产品都不可选的逻辑处理
| | |
| | | v-if="editSelCommonConfig.editVisible" |
| | | :edit-common-config="editSelCommonConfig" |
| | | :sign="sign" |
| | | :selectBoxList="tableList.tableData" |
| | | :selectBoxList="arrDisabledList" |
| | | :quotationNumber="quotationNumber" |
| | | @selClient="selClient" |
| | | @getSelectArray="getSelectArray" |
| | |
| | | mergeNumber: 1 |
| | | } |
| | | } |
| | | }, |
| | | disabledList:{ |
| | | type:[Array], |
| | | default: () => { |
| | | return [] |
| | | } |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | total: 0, |
| | | productList: [], |
| | | tableList: [], |
| | | tableList: { |
| | | tableData:[] |
| | | }, |
| | | editSelCommonConfig: { |
| | | editVisible: false, |
| | | isSelectBox: false, |
| | |
| | | }, |
| | | productIndex: 0, |
| | | supplierId:null, |
| | | arrDisabledList:[] |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | supplierId(n,o) { |
| | | this.editSelCommonConfig.supplierId=n |
| | | console.log(n,o,"看看那") |
| | | } |
| | | } , |
| | | 'tableList.tableData':function () { |
| | | this.arrDisabledList=this.disabledList.concat(this.tableList.tableData) |
| | | } |
| | | }, |
| | | computed: {}, |
| | | methods: { |
| | |
| | | }, |
| | | getTableInfo() { |
| | | this.tableList = this.productTableList |
| | | this.arrDisabledList=this.disabledList.concat(this.tableList.tableData) |
| | | }, |
| | | // 产品名称 |
| | | async getProductList() { |
| | |
| | | <CommonFormTableView |
| | | ref="productTable" |
| | | :addTypeIdMultiple="true" |
| | | :disabledList="disabledList" |
| | | :product-table-list="productTableList" |
| | | :detail-enter="detailEnter" |
| | | :isOperate="isOperate" |
| | |
| | | infomation: {} |
| | | } |
| | | } |
| | | }, |
| | | disabledList:{ |
| | | type:[Array], |
| | | default: () => { |
| | | return [] |
| | | } |
| | | } |
| | | }, |
| | | components: { CommonFormTableView }, |
| | |
| | | <!-- 相关供应商 --> |
| | | <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> |