| | |
| | | method: "get" |
| | | }) |
| | | } |
| | | // 创建产品出库信息 |
| | | export function createOperation(data) { |
| | | return request({ |
| | | url: "/api/salesDetails/createOperation", |
| | | method: "post", |
| | | data |
| | | }) |
| | | } |
| | |
| | | getDelSalesDetails, |
| | | getProductInventoryInfo, |
| | | getProductOrderInfo, |
| | | updateStatus |
| | | updateStatus, |
| | | createOperation |
| | | } from "@/api/sales/salesDetails" |
| | | import pageMixin from "@/components/makepager/pager/mixin/pageMixin" |
| | | import DetailSpecification from "@/views/sales/salesDetails/DetailSpecification" |
| | |
| | | // 确认提交 |
| | | async submitClick(row) { |
| | | console.log(row, "确认提交") |
| | | this.updateStatus(row.id, 2) |
| | | let params = { |
| | | ...row, |
| | | status: 2 |
| | | } |
| | | await createOperation(params).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$message.success("确认提交成功") |
| | | this.getData() |
| | | } |
| | | }) |
| | | }, |
| | | // 关闭 |
| | | closeClick(row) { |
| | |
| | | }).then((res) => { |
| | | console.log(res) |
| | | if (res.code == 200) { |
| | | this.$message.success("修改成功") |
| | | this.$message.success("关闭成功") |
| | | this.getData() |
| | | } |
| | | }) |