yangfeng
2023-11-09 3056171e7d41d0521145331a1a69b9cd7619be78
src/views/sales/salesDetails/index.vue
@@ -124,7 +124,8 @@
  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"
@@ -441,7 +442,16 @@
    // 确认提交
    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) {
@@ -456,7 +466,7 @@
      }).then((res) => {
        console.log(res)
        if (res.code == 200) {
          this.$message.success("修改成功")
          this.$message.success("关闭成功")
          this.getData()
        }
      })