| | |
| | | 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.toLabel = "客户位置" |
| | | this.numberLabel = "出库单号" |
| | | } else { |
| | | this.showcol=["仓库位置", "调出位置", "调入位置", "联系人","日期", "销售明细单", "状态","主管","会计","保管员",], |
| | | this.formLabel = "调出位置" |
| | | this.toLabel = "调入位置" |
| | | this.numberLabel = "调拨单号" |
| | |
| | | } |
| | | } |
| | | this.tableList.allcol = allcol |
| | | this.tableBottomColumn = this.workType == 3 ? this.allotProductColumn : this.productColumn |
| | | this.setBottomList() |
| | | }, |
| | | setTableColumn(showcol) { |
| | |
| | | prop: "number", |
| | | isShowColumn: true, |
| | | default: true |
| | | }, |
| | | { |
| | | label: "来源", |
| | | prop: "operationSource", |
| | | isShowColumn: showcol.includes("来源"), |
| | | default: false, |
| | | // status: true, |
| | | isCallMethod: true, |
| | | getCallMethod: this.getSourceStatus |
| | | }, |
| | | { |
| | | label: "来源单据", |
| | | prop: "sourceNumber", |
| | | isShowColumn: showcol.includes("来源单据"), |
| | | default: false |
| | | }, |
| | | { |
| | | label: this.formLabel, |
| | |
| | | date: true |
| | | }, |
| | | // { |
| | | // label: "产品可用性", |
| | | // prop: "status", |
| | | // isShowColumn: showcol.includes("产品可用性"), |
| | | // default: false |
| | | // }, |
| | | // { |
| | | // label: "截止日期", |
| | | // prop: "faultTime", |
| | | // isShowColumn: showcol.includes("截止日期"), |
| | |
| | | // default: false |
| | | // }, |
| | | { |
| | | label: "来源单据", |
| | | prop: "sourceNumber", |
| | | isShowColumn: showcol.includes("来源单据"), |
| | | label: "销售明细单", |
| | | prop: "salesDetailsNumber", |
| | | isShowColumn: showcol.includes("销售明细单"), |
| | | default: false |
| | | }, |
| | | // { |
| | | // label: "欠单", |
| | | // prop: "status", |
| | | // isShowColumn: showcol.includes("欠单"), |
| | | // default: false |
| | | // }, |
| | | { |
| | | label: "入库类型", |
| | | prop: "operationTypeName", |
| | |
| | | status: true, |
| | | isCallMethod: true, |
| | | getCallMethod: this.getStatus |
| | | } |
| | | }, |
| | | { |
| | | label: "主管", |
| | | prop: "manager", |
| | | isShowColumn: showcol.includes("主管"), |
| | | default: false |
| | | }, |
| | | { |
| | | label: "会计", |
| | | prop: "accountant", |
| | | isShowColumn: showcol.includes("会计"), |
| | | default: false |
| | | }, |
| | | { |
| | | label: "保管员", |
| | | prop: "custodian", |
| | | isShowColumn: showcol.includes("保管员"), |
| | | default: false |
| | | }, |
| | | ] |
| | | return tableColumn |
| | | }, |
| | |
| | | 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 |
| | |
| | | } |
| | | row.locationID = row.location.jointName |
| | | row.locationId = row.location.value |
| | | |
| | | row.managerObj={ |
| | | label:row.manager, |
| | | value:row.managerId |
| | | } |
| | | row.accountantObj={ |
| | | label:row.accountant, |
| | | value:row.accountantId |
| | | } |
| | | row.custodianObj={ |
| | | label:row.custodian, |
| | | value:row.custodianId |
| | | } |
| | | // row.tolocationId=row.tolocation.value |
| | | this.editConfig.infomation = { ...row } |
| | | }, |
| | |
| | | getStatus(val) { |
| | | return val === 1 ? "草稿" : val === 3 ? "就绪" : val === 4 ? "完成" : val === 5 ? "取消" : "" |
| | | }, |
| | | // 来源 |
| | | getSourceStatus(val){ |
| | | return val===0 ? '--':val === 1 ? "采购入库" : val === 2 ? "生产入库" : val === 3 ? "委外入库" : val === 4 ? "生产领料" : val=== 5 ? "委外领料": val === 6?"销售发货": "--" |
| | | }, |
| | | // 删除搜索状态 |
| | | delSelectClick() { |
| | | this.params.status = 0 |