| | |
| | | <el-button type="text" size="small" @click="btnLook(scope.row)" style="margin-right: 5px" |
| | | >查看</el-button |
| | | > |
| | | <!-- <el-button type="text" size="small" @click="btnLook(scope.row)" style="margin-right: 5px" |
| | | >到货确认</el-button |
| | | > |
| | | <el-button type="text" size="small" @click="btnLook(scope.row)" style="margin-right: 5px" |
| | | >去质检</el-button |
| | | > --> |
| | | <el-button |
| | | v-if="scope.row.status === 1" |
| | | type="text" |
| | |
| | | { label: "数量", prop: "amount" }, |
| | | { label: "入库时间", prop: "overTime" }, |
| | | { label: "收货人", prop: "principal" }, |
| | | { label: "状态", prop: "status", isCallMethod: true, getCallMethod: this.getpurchaseStatus } |
| | | { label: "状态", prop: "status", isCallMethod: true, getCallMethod: this.getreceiveStatusStatus } |
| | | ] |
| | | return { |
| | | purchaseStatusList: getDataByType("purchaseStatus"), |
| | | receiveStatusList: getDataByType("receiveStatus"), |
| | | tableLoading: false, |
| | | tableList: {}, // 列表 |
| | | selValueList: [], |
| | |
| | | for (let i in this.purchaseStatusList) { |
| | | if (this.purchaseStatusList[i].id == val) { |
| | | return this.purchaseStatusList[i].name |
| | | } |
| | | } |
| | | } else { |
| | | return "--" |
| | | } |
| | | }, |
| | | getreceiveStatusStatus(val) { |
| | | if (val) { |
| | | for (let i in this.receiveStatusList) { |
| | | if (this.receiveStatusList[i].id == val) { |
| | | return this.receiveStatusList[i].name |
| | | } |
| | | } |
| | | } else { |
| | |
| | | this.editConfig.infomation = { |
| | | productList: res.data.productList, |
| | | supplierName: res.data.purchase.supplier.name, |
| | | ...res.data.purchase, |
| | | purchaseTypeId: res.data.purchase.purchaseTypeId == "0" ? "" : res.data.purchase.purchaseTypeId |
| | | ...res.data.purchase |
| | | } |
| | | } else { |
| | | this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!") |
| | |
| | | setTimeout(() => { |
| | | this.tableLoading = false |
| | | }, 3000) |
| | | // this.editRow = row; |
| | | // this.$refs.add.islook = true; |
| | | }, |
| | | |
| | | // 确认发货 |
| | | btnConfirm(row) { |
| | | let string = "是否提交?" |
| | |
| | | this.editConfig.infomation = { |
| | | productList: res.data.productList, |
| | | supplierName: res.data.purchase.supplier.name, |
| | | ...res.data.purchase, |
| | | purchaseTypeId: res.data.purchase.purchaseTypeId == "0" ? "" : res.data.purchase.purchaseTypeId |
| | | ...res.data.purchase |
| | | } |
| | | } else { |
| | | this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!") |