|
|
@@ -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,
|
|
|
};
|
|
|
},
|
|
|
});
|