| | |
| | | getPurchaseInfo, |
| | | newSubmitPurchase, |
| | | deletePurchase, |
| | | getPurchaseQualityInspectionInfo, |
| | | getOperationInfo |
| | | } from "@/api/purchaseManage/purchase" |
| | | import DetailSupplier from "@/views/purchaseManage/purchase/DetailSupplier" |
| | |
| | | ] |
| | | // 收货信息 |
| | | const recriveColumn = [ |
| | | { label: "收货时间", prop: "operationNumber", default: true }, |
| | | { label: "收货时间", prop: "createTime", default: true }, |
| | | { label: "收货人", prop: "principal" }, |
| | | { label: "产品名称", prop: "name" }, |
| | | { label: "产品编码", prop: "number" }, |
| | | { label: "规格", prop: "warehouseName" }, |
| | | { label: "产品名称", prop: "productName" }, |
| | | { label: "产品编码", prop: "productId" }, |
| | | { label: "规格", prop: "specs" }, |
| | | { label: "数量", prop: "amount" }, |
| | | { label: "单位", prop: "overTime" }, |
| | | { label: "单位", prop: "unit" }, |
| | | { label: "状态", prop: "status", isCallMethod: true, getCallMethod: this.getreceiveStatusStatus } |
| | | ] |
| | | // 入库信息 |
| | |
| | | }, |
| | | // 获取产品/收货信息 |
| | | async getProductInventoryInfo(row) { |
| | | console.log(row) |
| | | if (this.TabsIndex == 0 && row.status == 1) { |
| | | getPurchaseInfo({ id: row.id }).then((res) => { |
| | | if (res.code == 200) { |
| | |
| | | }) |
| | | } else if (this.TabsIndex == 1 && row.status == 1) { |
| | | this.productTableList.tableInfomation = [] |
| | | } else { |
| | | } else if(this.TabsIndex==1 && row.status==7||row.status==8){ |
| | | getPurchaseQualityInspectionInfo({ |
| | | purchaseNumber: row.number, |
| | | }).then((res)=>{ |
| | | if (res.code == 200) { |
| | | this.productTableList.tableInfomation = res.data |
| | | } else { |
| | | this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!") |
| | | }"" |
| | | }) |
| | | }else if(this.TabsIndex==2){ |
| | | getOperationInfo({ id: row.id }).then((res) => { |
| | | if (res.code == 200) { |
| | | this.productTableList.tableInfomation = res.data |
| | |
| | | this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!") |
| | | } |
| | | }) |
| | | }else{ |
| | | this.productTableList.tableInfomation =[] |
| | | } |
| | | } |
| | | } |