| | |
| | | @emptyProductClick="emptyProductClick" |
| | | @clearupProduct="clearupProduct" |
| | | @selCommonName="selCommonName" |
| | | @handleProduct="handleProduct" |
| | | /> |
| | | </div> |
| | | </div> |
| | |
| | | let data = this.editConfig.infomation |
| | | let params = { |
| | | deliveryTime: this.deliveryTime || 0, |
| | | id: data.ID || 0, |
| | | id: data.id || 0, |
| | | maximumStock: data.maximumStock || 0, |
| | | minimumStock: data.minimumStock || 0, |
| | | modelNumber: data.modelNumber || "", |
| | |
| | | } |
| | | return params |
| | | }, |
| | | handleProduct(item,row){ |
| | | this.editConfig.infomation.id=row.id |
| | | }, |
| | | setTableForm() { |
| | | if (this.editConfig.title === "添加") { |
| | | this.detailEnter = false |
| | |
| | | number: "", |
| | | price: 0, |
| | | total: 0, |
| | | supplierId: this.supplierId |
| | | supplierId:this.supplierId |
| | | } |
| | | ] |
| | | } else { |
| | | this.tableData = [{ ...this.editConfig.infomation }] |
| | | this.tableData = [{ ...this.editConfig.infomation}] |
| | | this.detailEnter = true |
| | | } |
| | | this.productTableList = { |
| | |
| | | this.tableData.map((item) => { |
| | | if (item.productId === row.productId) { |
| | | item[prop] = val |
| | | item.supplierId = this.supplierId |
| | | item.supplierId =Number(this.supplierId) |
| | | item.deliveryTime = this.deliveryTime |
| | | item.shippingDuration = this.shippingDuration |
| | | item.purchasePrice = this.purchasePrice |