Bladeren bron

Merge branch 'master' of http://47.101.159.18:3000/Muchinfo/MTP2.0_WEB

huangbin 4 jaren geleden
bovenliggende
commit
46acb86211

+ 19 - 0
src/views/platinum/platinum_agreement/compoments/delete/index.vue

@@ -8,6 +8,11 @@
            @cancel="cancel"
            width="890px">
     <template #footer>
+        <a-button key="submit"
+                  type="primary"
+                  :loading="loading"
+                  @click="submit">注销</a-button>
+
       <a-button key="submit"
                 type="primary"
                 :loading="loading"
@@ -66,6 +71,9 @@ import { getAgreementTypeName } from '@/common/constants/enumsName';
 import { handleArgreementType } from '../../setup';
 import { queryTableList } from '@/common/setup/table';
 import { queryAgreementChangeLog } from '@/services/go/ermcp/qhj';
+import {requestResultLoadingAndInfo} from "@/common/methods/request/resultInfo";
+import {agreementConfigOperate} from "@/services/proto/manager";
+import {QHJAgreementConfigOperateReq} from "@/services/proto/manager/interface";
 
 const columns = [
     {
@@ -123,6 +131,16 @@ export default defineComponent({
             }
         });
 
+        function submit() {
+            const reqParam: QHJAgreementConfigOperateReq = {
+                operatetype: 5 ,// uint32  操作类型-1:新增 2:修改 3:停用 4:恢复 5:注销
+                agreementid: props.selectedRow.agreementid // uint64 协议ID(操作类型为2,3,4,5时必填)
+            }
+            requestResultLoadingAndInfo(agreementConfigOperate, reqParam, loading, ['注销协议成功', '注销协议失败:']).then(() => {
+                context.emit('refresh');
+            });
+        }
+
         return {
             visibleContent,
             content,
@@ -132,6 +150,7 @@ export default defineComponent({
             desList,
             visible,
             tableList,
+            submit,
         };
     },
 });

+ 18 - 0
src/views/platinum/platinum_agreement/compoments/resume/index.vue

@@ -8,6 +8,10 @@
            @cancel="cancel"
            width="890px">
     <template #footer>
+        <a-button key="submit"
+                  type="primary"
+                  :loading="loading"
+                  @click="submit">恢复</a-button>
       <a-button key="submit"
                 type="primary"
                 :loading="loading"
@@ -66,6 +70,9 @@ import { getAgreementTypeName } from '@/common/constants/enumsName';
 import { handleArgreementType } from '../../setup';
 import { queryTableList } from '@/common/setup/table';
 import { queryAgreementChangeLog } from '@/services/go/ermcp/qhj';
+import {QHJAgreementConfigOperateReq} from "@/services/proto/manager/interface";
+import {requestResultLoadingAndInfo} from "@/common/methods/request/resultInfo";
+import {agreementConfigOperate} from "@/services/proto/manager";
 
 const columns = [
     {
@@ -123,6 +130,16 @@ export default defineComponent({
             }
         });
 
+        function submit() {
+            const reqParam: QHJAgreementConfigOperateReq = {
+                operatetype: 4 ,// uint32  操作类型-1:新增 2:修改 3:停用 4:恢复 5:注销
+                agreementid: props.selectedRow.agreementid // uint64 协议ID(操作类型为2,3,4,5时必填)
+            }
+            requestResultLoadingAndInfo(agreementConfigOperate, reqParam, loading, ['注销协议成功', '注销协议失败:']).then(() => {
+                context.emit('refresh');
+            });
+        }
+
         return {
             visibleContent,
             content,
@@ -132,6 +149,7 @@ export default defineComponent({
             desList,
             visible,
             tableList,
+            submit,
         };
     },
 });

+ 19 - 0
src/views/platinum/platinum_agreement/compoments/stop/index.vue

@@ -8,6 +8,10 @@
            @cancel="cancel"
            width="890px">
     <template #footer>
+        <a-button key="submit"
+                  type="primary"
+                  :loading="loading"
+                  @click="submit">停用</a-button>
       <a-button key="submit"
                 type="primary"
                 :loading="loading"
@@ -66,6 +70,9 @@ import { getAgreementTypeName } from '@/common/constants/enumsName';
 import { handleArgreementType } from '../../setup';
 import { queryTableList } from '@/common/setup/table';
 import { queryAgreementChangeLog } from '@/services/go/ermcp/qhj';
+import {QHJAgreementConfigOperateReq} from "@/services/proto/manager/interface";
+import {requestResultLoadingAndInfo} from "@/common/methods/request/resultInfo";
+import {agreementConfigOperate} from "@/services/proto/manager";
 
 const columns = [
     {
@@ -123,6 +130,17 @@ export default defineComponent({
             }
         });
 
+        function submit() {
+            const reqParam: QHJAgreementConfigOperateReq = {
+                operatetype: 3 ,// uint32  操作类型-1:新增 2:修改 3:停用 4:恢复 5:注销
+                agreementid: props.selectedRow.agreementid // uint64 协议ID(操作类型为2,3,4,5时必填)
+            }
+            requestResultLoadingAndInfo(agreementConfigOperate, reqParam, loading, ['注销协议成功', '注销协议失败:']).then(() => {
+                context.emit('refresh');
+            });
+        }
+
+
         return {
             visibleContent,
             content,
@@ -132,6 +150,7 @@ export default defineComponent({
             desList,
             visible,
             tableList,
+            submit,
         };
     },
 });