From cbe4a2af4521be2f3897f1d01a04ec3eca2db822 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com>
Date: Mon, 4 Mar 2024 16:56:25 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/manage/signRecord/index.vue | 25 ++++++++++++++++---------
1 file changed, 16 insertions(+), 9 deletions(-)
diff --git a/src/views/manage/signRecord/index.vue b/src/views/manage/signRecord/index.vue
index d980203..7287040 100644
--- a/src/views/manage/signRecord/index.vue
+++ b/src/views/manage/signRecord/index.vue
@@ -166,8 +166,7 @@
v-if="queryParams.serviceStatus == 'INTENTIONAL_SIGNING'">签约
详情
- 解约
+ 取消签约
续约
@@ -365,13 +364,21 @@ export default {
},
/** 解约按钮操作 */
handleDelete(row) {
- const ids = row.id || this.ids;
- this.$modal.confirm('是否确认解约?').then(function () {
- return delSignRecord(ids);
- }).then(() => {
- this.getList();
- this.$modal.msgSuccess("解约成功");
- }).catch(() => { });
+ // const ids = row.id || this.ids;
+ this.$prompt('原因', '取消签约', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ }).then(({ value }) => {
+ const query = {
+ id: row.id,
+ signStatus: 'SEPARATE_SIGN',
+ separateReason: value,
+ }
+ updateSignStatus(query).then(res => {
+ this.getList();
+ this.$modal.msgSuccess("取消签约成功");
+ })
+ })
},
/** 导出按钮操作 */
handleExport() {