From 754425386162ff681f78f72da8b1f991bef85377 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期四, 16 十一月 2023 10:04:35 +0800 Subject: [PATCH] modified: src/api/plan/customerorder.js modified: src/views/plan/customerorder/customerorder-form.vue --- src/api/plan/customerorder.js | 8 ++++++++ src/views/plan/customerorder/customerorder-form.vue | 12 ++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/api/plan/customerorder.js b/src/api/plan/customerorder.js index 97b45a2..b27f4e0 100644 --- a/src/api/plan/customerorder.js +++ b/src/api/plan/customerorder.js @@ -395,3 +395,11 @@ method: 'get', }) } + +export function updateCustomerOrderById(obj) { + return request({ + url: '/mes/plan/customerOrder/updateById', + method: 'put', + data: obj + }) +} \ No newline at end of file diff --git a/src/views/plan/customerorder/customerorder-form.vue b/src/views/plan/customerorder/customerorder-form.vue index 3002f0a..3beeaf4 100644 --- a/src/views/plan/customerorder/customerorder-form.vue +++ b/src/views/plan/customerorder/customerorder-form.vue @@ -972,25 +972,21 @@ this.$refs.dataForm.validate((valid) => { if (valid) { if (this.dataForm.id) { - updateCustomerOrderById(this.dataForm) - .then((data) => { + updateCustomerOrderById(this.dataForm).then((data) => { this.$message.success('淇敼鎴愬姛') this.visible = false this.buttonDisable = false this.$emit('refreshDataList', 1) - }) - .catch((error) => { + }).catch((error) => { this.buttonDisable = false }) } else { - addCustomerOrder(this.dataForm) - .then((data) => { + addCustomerOrder(this.dataForm).then((data) => { this.$message.success('娣诲姞鎴愬姛') this.visible = false this.buttonDisable = false this.$emit('refreshDataList', 1) - }) - .catch((error) => { + }).catch((error) => { this.buttonDisable = false }) } -- Gitblit v1.9.3