| | |
| | | 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) |
| | | } |