| | |
| | | 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: ["仓库位置", "调出位置", "调入位置", "联系人", "日期", "来源单据", "状态"], |
| | | showcol: ["仓库位置", "调出位置", "调入位置", "联系人", "日期", "来源", "来源单据", "销售明细单", "状态"], |
| | | searchOptions: [], |
| | | commonDetail: { |
| | | visible: false, |
| | |
| | | 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) { |
| | |
| | | default: false, |
| | | date: true |
| | | }, |
| | | // { |
| | | // label: "产品可用性", |
| | | // prop: "status", |
| | | // isShowColumn: showcol.includes("产品可用性"), |
| | | // default: false |
| | | // }, |
| | | { |
| | | label: "来源", |
| | | prop: "sourceType", |
| | | isShowColumn: showcol.includes("来源"), |
| | | default: false |
| | | }, |
| | | // { |
| | | // label: "截止日期", |
| | | // prop: "faultTime", |
| | |
| | | isShowColumn: showcol.includes("来源单据"), |
| | | default: false |
| | | }, |
| | | // { |
| | | // label: "欠单", |
| | | // prop: "status", |
| | | // isShowColumn: showcol.includes("欠单"), |
| | | // default: false |
| | | // }, |
| | | { |
| | | label: "销售明细单", |
| | | prop: "salesDetailsNumber", |
| | | isShowColumn: showcol.includes("销售明细单"), |
| | | default: false |
| | | }, |
| | | { |
| | | label: "入库类型", |
| | | prop: "operationTypeName", |
| | |
| | | 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 |