|
|
@@ -18,11 +18,13 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, PropType, ref, watchEffect } from 'vue';
|
|
|
+import { defineComponent, PropType, watchEffect } from 'vue';
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
import { Des, handleDesList } from '@/common/components/commonDes';
|
|
|
import { QhjAgreementConfig } from '@/services/go/ermcp/qhj/interface';
|
|
|
import { formatValue } from '@/common/methods';
|
|
|
+import { getAgreementTypeName } from '@/common/constants/enumsName';
|
|
|
+import { handleArgreementType } from '../../setup';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'custom-detail',
|
|
|
@@ -36,6 +38,7 @@ export default defineComponent({
|
|
|
setup(props, context) {
|
|
|
const { visible, cancel } = closeModal('detail');
|
|
|
const { desList, getDesList } = handleDesList();
|
|
|
+ const { getRateEnumName } = handleArgreementType();
|
|
|
watchEffect(() => {
|
|
|
if (visible.value) {
|
|
|
const data = props.selectedRow;
|
|
|
@@ -43,8 +46,8 @@ export default defineComponent({
|
|
|
const list = [
|
|
|
{ label: '协议编号', value: formatValue(data.agreementno) },
|
|
|
{ label: '协议名称', value: formatValue(data.agreementname) },
|
|
|
- { label: '协议类型', value: formatValue(data.agreementtype) },
|
|
|
- { label: '签署频率', value: formatValue(data.agreementfrequency) },
|
|
|
+ { label: '协议类型', value: getAgreementTypeName(data.agreementtype) },
|
|
|
+ { label: '签署频率', value: getRateEnumName(data.agreementfrequency) },
|
|
|
{ label: '内容', value: formatValue(data.agreementcontent), className: 'blue' },
|
|
|
];
|
|
|
getDesList(list);
|