| | |
| | | :show-download="false" |
| | | :amount-view="false" |
| | | :show-action-btn="false" |
| | | :placeholder="'请输入供应商名称/物料名称/采购单名称'" |
| | | :placeholder="'请输入供应商名称/物料名称/采购单名称/采购单号等..'" |
| | | @searchClick="onFilterSearch" |
| | | /> |
| | | </div> |
| | |
| | | { label: "规格", prop: "specifications" }, |
| | | { label: "型号", prop: "modelNumber" }, |
| | | { label: "采购数量", prop: "amount" }, |
| | | { label: "已发货数量", prop: "sendAmount" }, |
| | | { label: "已收货数量", prop: "sendAmount" }, |
| | | { label: "已入库数量", prop: "overAmount" }, |
| | | { label: "单位", prop: "unit" }, |
| | | { label: "采购单价", prop: "purchasePrice", price: true }, |
| | |
| | | tableColumn: [ |
| | | { label: "单据类型", prop: "orderType", min: 130 }, |
| | | { label: "采购单号", prop: "number", min: 150, isCommonClick: true, default: true }, |
| | | { label: "销售明细单", prop: "sourceOrder", min: 130 }, |
| | | { label: "采购单名称", prop: "name", min: 130, isCommonClick: true }, |
| | | { label: "供应商名称", prop: "supplierName", min: 130 }, |
| | | { label: "采购数量", prop: "quantity", min: 130 }, |
| | |
| | | { label: "经办人", prop: "handledBy", min: 130 }, |
| | | { label: "制单人", prop: "creator", min: 130 } |
| | | ], |
| | | showCol: ["采购单号", "采购单名称", "单据类型", "供应商名称", "采购数量", "收货仓库", "经办人", "制单人"], |
| | | showCol: ["采购单号","销售明细单", "采购单名称", "单据类型", "供应商名称", "采购数量", "收货仓库", "经办人", "制单人"], |
| | | tableBottomColumn: [], |
| | | showBottomCol: [], |
| | | TabsIndex: 0, |
| | |
| | | "规格", |
| | | "型号", |
| | | "采购数量", |
| | | "已发货数量", |
| | | "已收货数量", |
| | | "已入库数量", |
| | | "单位", |
| | | "采购单价", |
| | |
| | | tableRowClick(row) { |
| | | this.selectRow = row |
| | | if (this.TabsIndex == 0) { |
| | | getPurchaseInfo({ id: row.id }).then((res) => { |
| | | getOperationInfo({ id: row.id }).then((res) => { |
| | | if (res.code == 200) { |
| | | this.productTableList.tableInfomation = res.data.productList |
| | | this.productTableList.tableInfomation = res.data.productInfos |
| | | } else { |
| | | this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!") |
| | | } |
| | |
| | | ) { |
| | | getOperationInfo({ id: row.id }).then((res) => { |
| | | if (res.code == 200) { |
| | | this.productTableList.tableInfomation = res.data |
| | | this.productTableList.tableInfomation = res.data.inWarehouseInfos |
| | | } else { |
| | | this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!") |
| | | } |
| | |
| | | // this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!") |
| | | // } |
| | | // }) |
| | | // } else |
| | | // } else |
| | | if (this.TabsIndex == 1 && row.status == 1) { |
| | | this.productTableList.tableInfomation = [] |
| | | } else if ( |
| | |
| | | this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!") |
| | | } |
| | | }) |
| | | } else if (this.TabsIndex == 0|| |
| | | } else if ( |
| | | this.TabsIndex == 0 || |
| | | (this.TabsIndex == 2 && row.status == 8) || |
| | | (this.TabsIndex == 2 && row.status == 2) || |
| | | (this.TabsIndex == 2 && row.status == 3) |
| | | ) { |
| | | getOperationInfo({ id: row.id }).then((res) => { |
| | | if (res.code == 200) { |
| | | this.productTableList.tableInfomation = res.data |
| | | if(this.TabsIndex == 0){ |
| | | this.productTableList.tableInfomation = res.data.productInfos |
| | | }else if(this.TabsIndex == 2){ |
| | | this.productTableList.tableInfomation = res.data.inWarehouseInfos |
| | | } |
| | | } else { |
| | | this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!") |
| | | } |