| | |
| | | searchSel: {}, |
| | | keyword: "", |
| | | keywordType: "", |
| | | showProductCol: ["产品名称", "产品编号", "销售单价", "单位", "产品规格", "型号"], |
| | | showProductCol: ["产品名称", "产品编号", "供应商", "采购单价", "单位", "产品规格", "型号"], |
| | | tableProductColumn: [ |
| | | { label: "产品名称", prop: "name", isClick: true }, |
| | | { label: "产品编号", prop: "number" }, |
| | | { label: "销售单价", prop: "purchasePrice" }, |
| | | { label: "供应商", prop: "supplierName" }, |
| | | { label: "采购单价", prop: "purchasePrice" }, |
| | | { label: "单位", prop: "unit" }, |
| | | { label: "产品规格", prop: "specifications" }, |
| | | { label: "型号", prop: "modelNumber" } |
| | |
| | | if (res.data.list && res.data.list.length > 0) { |
| | | const list = res.data.list.map((item) => { |
| | | return { |
| | | ...item |
| | | ...item, |
| | | supplierName: item.supplier.name |
| | | } |
| | | }) |
| | | this.tableList.tableInfomation = list |