|
@@ -8,10 +8,10 @@
|
|
|
@cancel="cancel"
|
|
@cancel="cancel"
|
|
|
width="890px">
|
|
width="890px">
|
|
|
<template #footer>
|
|
<template #footer>
|
|
|
- <a-button key="submit"
|
|
|
|
|
- type="primary"
|
|
|
|
|
- :loading="loading"
|
|
|
|
|
- @click="submit">恢复</a-button>
|
|
|
|
|
|
|
+ <a-button key="submit"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :loading="loading"
|
|
|
|
|
+ @click="submit">恢复</a-button>
|
|
|
<a-button key="submit"
|
|
<a-button key="submit"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
:loading="loading"
|
|
:loading="loading"
|
|
@@ -61,8 +61,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
-import { defineComponent, PropType, ref, watchEffect } from 'vue';
|
|
|
|
|
-import { closeModal } from '@/common/setup/modal/index';
|
|
|
|
|
|
|
+import { defineComponent, PropType, ref } from 'vue';
|
|
|
import { Des, handleDesList } from '@/common/components/commonDes';
|
|
import { Des, handleDesList } from '@/common/components/commonDes';
|
|
|
import { QhjAgreementChangeLog, QhjAgreementConfig } from '@/services/go/ermcp/qhj/interface';
|
|
import { QhjAgreementChangeLog, QhjAgreementConfig } from '@/services/go/ermcp/qhj/interface';
|
|
|
import { formatValue } from '@/common/methods';
|
|
import { formatValue } from '@/common/methods';
|
|
@@ -70,28 +69,11 @@ import { getAgreementTypeName } from '@/common/constants/enumsName';
|
|
|
import { handleArgreementType } from '../../setup';
|
|
import { handleArgreementType } from '../../setup';
|
|
|
import { queryTableList } from '@/common/setup/table';
|
|
import { queryTableList } from '@/common/setup/table';
|
|
|
import { queryAgreementChangeLog } from '@/services/go/ermcp/qhj';
|
|
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 = [
|
|
|
|
|
- {
|
|
|
|
|
- title: '时间',
|
|
|
|
|
- dataIndex: 'updatetime',
|
|
|
|
|
- key: 'updatetime',
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- title: '协议名称',
|
|
|
|
|
- dataIndex: 'agreementname',
|
|
|
|
|
- key: 'agreementname',
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- title: '内容',
|
|
|
|
|
- dataIndex: 'agreementcontent',
|
|
|
|
|
- key: 'agreementcontent',
|
|
|
|
|
- slots: { customRender: 'agreementcontent' },
|
|
|
|
|
- },
|
|
|
|
|
-];
|
|
|
|
|
|
|
+import { QHJAgreementConfigOperateReq } from '@/services/proto/manager/interface';
|
|
|
|
|
+import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
|
|
+import { agreementConfigOperate } from '@/services/proto/manager';
|
|
|
|
|
+import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
|
|
+import { handleAgreementLog } from '../setup';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'custom-detail',
|
|
name: 'custom-detail',
|
|
@@ -103,38 +85,21 @@ export default defineComponent({
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
setup(props, context) {
|
|
setup(props, context) {
|
|
|
- const { visible, cancel } = closeModal('platinum_agreement_resume');
|
|
|
|
|
|
|
+ const { visible, cancel } = _closeModal(context);
|
|
|
const { desList, getDesList } = handleDesList();
|
|
const { desList, getDesList } = handleDesList();
|
|
|
- const { getRateEnumName } = handleArgreementType();
|
|
|
|
|
|
|
+ const { columns, visibleContent, content, getContent, list } = handleAgreementLog(props.selectedRow);
|
|
|
|
|
+
|
|
|
const { loading, tableList, queryTable } = queryTableList<QhjAgreementChangeLog>();
|
|
const { loading, tableList, queryTable } = queryTableList<QhjAgreementChangeLog>();
|
|
|
- // 协议内容
|
|
|
|
|
- const visibleContent = ref<boolean>(false);
|
|
|
|
|
- const content = ref<string>('');
|
|
|
|
|
- function getContent(value: string) {
|
|
|
|
|
- visibleContent.value = true;
|
|
|
|
|
- content.value = value;
|
|
|
|
|
- }
|
|
|
|
|
- watchEffect(() => {
|
|
|
|
|
- if (visible.value) {
|
|
|
|
|
- const data = props.selectedRow;
|
|
|
|
|
- queryTable(queryAgreementChangeLog, { agreementid: data.agreementid });
|
|
|
|
|
|
|
|
|
|
- const list = [
|
|
|
|
|
- { label: '协议编号', value: formatValue(data.agreementno) },
|
|
|
|
|
- { label: '协议名称', value: formatValue(data.agreementname) },
|
|
|
|
|
- { label: '协议类型', value: getAgreementTypeName(data.agreementtype) },
|
|
|
|
|
- { label: '签署频率', value: getRateEnumName(data.agreementfrequency) },
|
|
|
|
|
- { label: '内容', value: '查看', className: 'blue' },
|
|
|
|
|
- ];
|
|
|
|
|
- getDesList(list);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ queryTable(queryAgreementChangeLog, { agreementid: props.selectedRow.agreementid });
|
|
|
|
|
+
|
|
|
|
|
+ getDesList(list);
|
|
|
|
|
|
|
|
function submit() {
|
|
function submit() {
|
|
|
const reqParam: QHJAgreementConfigOperateReq = {
|
|
const reqParam: QHJAgreementConfigOperateReq = {
|
|
|
- operatetype: 4 ,// uint32 操作类型-1:新增 2:修改 3:停用 4:恢复 5:注销
|
|
|
|
|
- agreementid: props.selectedRow.agreementid // uint64 协议ID(操作类型为2,3,4,5时必填)
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ operatetype: 4, // uint32 操作类型-1:新增 2:修改 3:停用 4:恢复 5:注销
|
|
|
|
|
+ agreementid: props.selectedRow.agreementid, // uint64 协议ID(操作类型为2,3,4,5时必填)
|
|
|
|
|
+ };
|
|
|
requestResultLoadingAndInfo(agreementConfigOperate, reqParam, loading, ['注销协议成功', '注销协议失败:']).then(() => {
|
|
requestResultLoadingAndInfo(agreementConfigOperate, reqParam, loading, ['注销协议成功', '注销协议失败:']).then(() => {
|
|
|
context.emit('refresh');
|
|
context.emit('refresh');
|
|
|
});
|
|
});
|