| | |
| | | mixins: [pageMixin], |
| | | computed: {}, |
| | | data() { |
| | | // 产品信息 |
| | | const productColumn = [ |
| | | { label: "产品编号", prop: "id", default: true }, |
| | | { label: "产品名称", prop: "productName" }, |
| | | { label: "产品规格", prop: "specs" }, |
| | | { label: "产品型号", prop: "model" }, |
| | | { label: "计量单位", prop: "unit" }, |
| | | { label: "数量", prop: "amount" } |
| | | ] |
| | | return { |
| | | tableList: {}, |
| | | showcol: ["仓库位置", "调出位置", "调入位置", "联系人", "日期", "来源单据", "状态"], |
| | |
| | | numberLabel: "单号", |
| | | TabsIndex: "0", |
| | | productTableList: {}, |
| | | showBottomCol: ["产品编号", "产品名称", "产品规格", "产品型号", "计量单位", "数量"], |
| | | tableBottomColumn: productColumn, |
| | | selectRow: {} |
| | | showBottomCol: ["产品编号", "产品名称", "产品规格", "产品型号", "计量单位", "调出位置", "调入位置", "数量"], |
| | | tableBottomColumn: [], |
| | | selectRow: {}, |
| | | productColumn: [ |
| | | { label: "产品编号", prop: "id", default: true }, |
| | | { label: "产品名称", prop: "productName" }, |
| | | { label: "产品规格", prop: "specs" }, |
| | | { label: "产品型号", prop: "model" }, |
| | | { label: "计量单位", prop: "unit" }, |
| | | { label: "数量", prop: "amount" } |
| | | ], |
| | | allotProductColumn: [ |
| | | { label: "产品编号", prop: "id", default: true }, |
| | | { label: "产品名称", prop: "productName" }, |
| | | { label: "产品规格", prop: "specs" }, |
| | | { label: "产品型号", prop: "model" }, |
| | | { label: "计量单位", prop: "unit" }, |
| | | { label: "调出位置", prop: "location" }, |
| | | { label: "调入位置", prop: "toLocation" }, |
| | | { label: "数量", prop: "amount" } |
| | | ] |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | } |
| | | } |
| | | this.tableList.allcol = allcol |
| | | this.tableBottomColumn = this.workType == 3 ? this.allotProductColumn : this.productColumn |
| | | this.setBottomList() |
| | | }, |
| | | setTableColumn(showcol) { |
| | |
| | | return { |
| | | ...item, |
| | | productName: item.product.name, |
| | | unit: item.product.unit |
| | | unit: item.product.unit, |
| | | location: arr.location.name, |
| | | toLocation: arr.toLocation.name |
| | | } |
| | | }) |
| | | this.productTableList.tableInfomation = list |