From faa630290408a4ee505acb2f62620558a00a4542 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期三, 15 十一月 2023 17:15:05 +0800
Subject: [PATCH] modified: src/api/plan/customerorder.js modified: src/views/plan/customerorder/index.vue modified: src/api/plan/customerorder.js modified: src/const/crud/customerOrder/customerOrderForm.js modified: src/views/plan/customerorder/sample-customerorder-form.vue
---
src/views/plan/customerorder/index.vue | 21 +++------------------
src/api/plan/customerorder.js | 5 +++--
2 files changed, 6 insertions(+), 20 deletions(-)
diff --git a/src/api/plan/customerorder.js b/src/api/plan/customerorder.js
index a88f999..f54ebd9 100644
--- a/src/api/plan/customerorder.js
+++ b/src/api/plan/customerorder.js
@@ -383,7 +383,8 @@
// 浣滃簾
export function dropByContractNo(contractNo) {
return request({
- url: '/mes/plan/customerOrder/dropByContractNo/' + contractNo,
- method: 'get'
+ url: '/mes/plan/customerOrder/dropByContractNo',
+ method: 'get',
+ params: contractNo
})
}
diff --git a/src/views/plan/customerorder/index.vue b/src/views/plan/customerorder/index.vue
index 9cfba54..1fa783a 100644
--- a/src/views/plan/customerorder/index.vue
+++ b/src/views/plan/customerorder/index.vue
@@ -1113,13 +1113,13 @@
},
// 浣滃簾
cancelHandle(row) {
- this.$confirm('鏄惁纭浣滃簾閿�鍞鍗曞彿涓�' + row.customerOrderNo + '鎻愮ず', {
+ this.$confirm('纭浣滃簾閿�鍞鍗曞彿涓恒��' + row.contractNo + '銆戠殑鏁版嵁?','鎻愮ず' , {
confirmButtonText: '纭畾',
cancelButtonText: '鍙栨秷',
closeOnClickModal: false,
type: 'warning'
}).then(() => {
- dropByContractNo(row.customerOrderNo).then((res) => {
+ dropByContractNo({contractNo:row.contractNo}).then((res) => {
if (res.data.code === 0) {
this.$message.success('浣滃簾鎴愬姛')
this.getData()
@@ -1127,22 +1127,7 @@
this.$message.error('浣滃簾澶辫触')
}
})
- })
- // .then(() => {
- // markPlanned([row.id], '05cancel').then((response) => {
- // var data = response.data
- // if (data.code === 0) {
- // this.$message.success('浣滃簾鎴愬姛')
- // this.getData()
- // } else {
- // this.$message.error('浣滃簾澶辫触')
- // }
- // })
- // })
- // .then((data) => {
- // this.$message.success('浣滃簾鎴愬姛')
- // this.getData()
- // })
+ }).catch(()=>{ })
},
// 鍒犻櫎
deleteHandle(row) {
--
Gitblit v1.9.3