| | |
| | | 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" |
| | |
| | | title: "添加", |
| | | infomation: {} |
| | | } |
| | | } |
| | | }, |
| | | disabledList:{ |
| | | type:[Array], |
| | | default: () => { |
| | | return [] |
| | | } |
| | | } |
| | | }, |
| | |
| | | let params = { |
| | | deliveryTime: this.deliveryTime || 0, |
| | | id: data.id || 0, |
| | | maximumStock: data.maximumStock || 0, |
| | | minimumStock: data.minimumStock || 0, |
| | | modelNumber: data.modelNumber || "", |
| | | name: data.name || "", |
| | | number: data.number || "", |
| | | productType: data.productType || "", |
| | | // maximumStock: data.maximumStock || 0, |
| | | // minimumStock: data.minimumStock || 0, |
| | | // modelNumber: data.modelNumber || "", |
| | | // name: data.name || "", |
| | | // number: data.number || "", |
| | | // productType: data.productType || "", |
| | | purchasePrice: this.purchasePrice || 0, |
| | | remark: data.remark || "", |
| | | // remark: data.remark || "", |
| | | shippingDuration: this.shippingDuration || 0, |
| | | specifications: data.specifications || "", |
| | | // specifications: data.specifications || "", |
| | | supplierId: this.supplierId || 0, |
| | | unit: data.unit || "" |
| | | // unit: data.unit || "" |
| | | ...this.tableData[0] |
| | | } |
| | | return params |
| | | }, |
| | |
| | | // 产品列表输入 |
| | | inputContent(val, prop, row) { |
| | | this.tableData.map((item) => { |
| | | if (item.number === row.number) { |
| | | if (item.number == row.number) { |
| | | item[prop] = val |
| | | item.supplierId = Number(this.supplierId) |
| | | } |
| | |
| | | <!-- 相关供应商 --> |
| | | <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> |