Lijy 1 рік тому
батько
коміт
56770b8c3b

+ 1 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/business/api.ts

@@ -10,6 +10,7 @@ export const BUSINESSDETELE = `/business-opportunity/delete`
 export const BATCHTRANSFER = `/business-opportunity/claim`
 export const BUSIESS_DETELELIST = `/business-opportunity/deleterList`
 export const BUSIESS_ROWBACK = `/business-opportunity/rollBack`
+export const BUSIESS_PERDETELE = `/business-opportunity/deleterDelete`
 
 
 export const stageStatus = [

+ 2 - 2
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/business/component/deteleTables.vue

@@ -45,7 +45,7 @@
 <script lang="ts" setup>
 import { post } from '@/utils/request';
 import { ref, reactive, onMounted, watchEffect, watch, inject } from 'vue'
-import { BUSIESS_DETELELIST, BUSIESS_ROWBACK, tableColumn } from '../api';
+import { BUSIESS_DETELELIST, BUSIESS_PERDETELE, BUSIESS_ROWBACK, tableColumn } from '../api';
 import { ElTable } from 'element-plus';
 import { confirmAction } from '@/utils/tools';
 import { formatDate } from '@/utils/times';
@@ -90,7 +90,7 @@ function batchOperation(type: operationType) {
 
 function businessOperationItem(value: string | number, label: string, type: operationType, batch: boolean = false) {
     confirmAction(`确定${batch ? '批量' : ''}${type}【${label}】商机吗?`).then(() => {
-        let url = type == '恢复' ? BUSIESS_ROWBACK : ''
+        let url = type == '恢复' ? BUSIESS_ROWBACK : BUSIESS_PERDETELE
         post(url, { ids: value }).then(res => {
             if (res.code != 'ok') {
                 globalPopup?.showError(res.msg)