diff --git a/admin/src/views/organization/manage/components/edit.vue b/admin/src/views/organization/manage/components/edit.vue index 3719216..2895b28 100644 --- a/admin/src/views/organization/manage/components/edit.vue +++ b/admin/src/views/organization/manage/components/edit.vue @@ -34,6 +34,9 @@ + + + {{ form.cTime }} + + {{ form.reason }} + @@ -194,7 +210,9 @@ } } ] - } + }, + reasonVisible: false, + reason: '' }; }, created() {}, @@ -226,11 +244,6 @@ goDetail(row) { this.current = row; this.showEdit = true; - // const path = '/receiver/customer/detail'; - // this.$router.push({ - // path, - // query: row ? { id: row.id, title: row.title } : undefined - // }); }, /* 表格数据源 */ datasource({ page, limit, where, order }) { @@ -244,16 +257,8 @@ reset() { this.where = {}; }, - check(row, status = false) { - console.log(row); - console.log(status); - let msg; - if (status) { - msg = '确定审核通过【' + row.sid + '】订单吗?'; - } else { - msg = '确定审核不通过【' + row.sid + '】订单吗?'; - } - this.$confirm(msg, '提示', { + checkPass(row) { + this.$confirm('确定审核通过【' + row.sid + '】订单吗?', '提示', { type: 'warning' }) .then(() => { @@ -270,6 +275,28 @@ }); }) .catch(() => {}); + }, + showCheckFail(row) { + this.reasonVisible = true; + this.current = row; + }, + saveCheckFail() { + const loading = this.$loading({ lock: true }); + checkSubsidy({ + id: this.current.id, + status: status, + reason: this.reason + }) + .then((msg) => { + this.reasonVisible = false; + loading.close(); + this.$message.success(msg); + this.reload(); + }) + .catch((e) => { + loading.close(); + this.$message.error(e.message); + }); } } }; diff --git a/pingan/src/api/receiver/clues/index.js b/pingan/src/api/receiver/clues/index.js index 48e977d..c5f4d1e 100644 --- a/pingan/src/api/receiver/clues/index.js +++ b/pingan/src/api/receiver/clues/index.js @@ -33,3 +33,11 @@ export async function pageCluesOptLog(params) { } return Promise.reject(new Error(res.data.message)); } + +export async function addCluesOptLog(data) { + const res = await request.post('/receiver/clues/addLog', data); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/pingan/src/views/receiver/clues/detail.vue b/pingan/src/views/receiver/clues/detail.vue index 6f20a10..61a560f 100644 --- a/pingan/src/views/receiver/clues/detail.vue +++ b/pingan/src/views/receiver/clues/detail.vue @@ -71,7 +71,10 @@ cache-key="receiverCustomerOptTables" > - +