diff --git a/src/views/marketing/rechargeCard/addRechargeCard.vue b/src/views/marketing/rechargeCard/addRechargeCard.vue index 0241c92..e80b5bc 100644 --- a/src/views/marketing/rechargeCard/addRechargeCard.vue +++ b/src/views/marketing/rechargeCard/addRechargeCard.vue @@ -411,6 +411,7 @@ import * as apis from '@/api/product.js' import * as api_s from '@/api/financial.js' import topBar from '@/components/topBar' import { pickDetail } from '@/api/manage' +import * as man from '@/api/manage' export default { components: { topBar @@ -663,11 +664,21 @@ export default { type: 'warning' }) } else { - this.$router.push({ - path: 'rechargeQc', - query: { - data: JSON.stringify(dataList), - approvalBusiness: 700 + const params = { + detailList: dataList, + signType: 0, // 普通件,急件,密件 + remark: '', // 备注 + fileList: [], // 附件[] + userIdList: [], // 审批流程[] + sendIdList: [] // 审批流程[] + } + man.rechargeConfirm(params).then((res) => { + if (res.code === 200) { + this.$message({ + message: res.msg, + type: 'success' + }) + this.$router.go(-1) } }) } @@ -685,14 +696,26 @@ export default { } ) }) - this.$router.push({ - path: 'rechargeQc', - query: { - data: JSON.stringify(dataList), - approvalBusiness: 701, - type: this.deled + const params = { + detailList: dataList + } + man.rechargeDel(params).then((res) => { + if (res.code === 200) { + this.$message({ + message: res.msg, + type: 'success' + }) + this.$router.go(-1) } }) + // this.$router.push({ + // path: 'rechargeQc', + // query: { + // data: JSON.stringify(dataList), + // approvalBusiness: 701, + // type: this.deled + // } + // }) }, getPage(allData) { this.allData = allData