| | |
| | | this.editConfig.detailEnter = false |
| | | this.editConfig.isDisabled = false |
| | | this.tableLoading = true |
| | | getPurchaseInfo({ id: row.id }).then((res) => { |
| | | getPurchaseInfo({ id: Number(row.id) }).then((res) => { |
| | | if (res.code == 200) { |
| | | this.tableLoading = false |
| | | this.editConfig.visible = true |
| | |
| | | if (!row.supplierName) { |
| | | this.btnEdit(row) |
| | | } else { |
| | | submitPurchase({ id: row.ID, status: 2 }).then((response) => { |
| | | submitPurchase({ id: Number(row.id), status: 2 }).then((response) => { |
| | | if (response.code === 200) { |
| | | this.$message.success("提交成功") |
| | | this.getData() |
| | |
| | | type: "warning" |
| | | }).then( |
| | | () => { |
| | | submitPurchase({ id: row.ID, status: 5 }).then((response) => { |
| | | submitPurchase({ id: Number(row.id), status: 5 }).then((response) => { |
| | | if (response.code === 200) { |
| | | this.$message.success("已取消") |
| | | this.getData() |
| | |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | deletePurchase({ id: row.ID }).then((response) => { |
| | | deletePurchase({ id: Number(row.id) }).then((response) => { |
| | | if (response.code === 200) { |
| | | this.$message.success("删除成功") |
| | | this.getData() |