zmdms-webui 1.3.7 → 1.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/electronsignatures/dgcomponents/contract-comparison.js +50 -0
- package/dist/es/electronsignatures/dgcomponents/useContractColumns.js +53 -0
- package/dist/es/electronsignatures/dgcomponents/useDg.js +57 -0
- package/dist/es/electronsignatures/electron-signatures-fragment.js +322 -0
- package/dist/es/electronsignatures/electroncomponents/electron-seal-batch-download.js +370 -0
- package/dist/es/electronsignatures/electroncomponents/electron-seal-detail.js +35 -0
- package/dist/es/electronsignatures/electroncomponents/electron-seal-download.js +74 -0
- package/dist/es/electronsignatures/electroncomponents/electron-seal-firstLevelPerson.js +17 -0
- package/dist/es/electronsignatures/electroncomponents/electron-seal-item.js +21 -0
- package/dist/es/electronsignatures/electroncomponents/electron-seal-list.js +42 -0
- package/dist/es/electronsignatures/electroncomponents/electron-seal-setting.js +12 -0
- package/dist/es/electronsignatures/electroncomponents/last-qys-modal.js +44 -0
- package/dist/es/electronsignatures/electroncomponents/useCheckedSealInfoList.js +43 -0
- package/dist/es/electronsignatures/electroncomponents/useElectronColumns.js +181 -0
- package/dist/es/electronsignatures/electroncomponents/useFetchElectronData.js +118 -0
- package/dist/es/electronsignatures/electroncomponents/useGetDeptInfo.js +37 -0
- package/dist/es/electronsignatures/electroncomponents/utils.js +266 -0
- package/dist/es/electronsignatures/filecomponents/file-operation.js +55 -0
- package/dist/es/electronsignatures/filecomponents/file-type-select.js +11 -0
- package/dist/es/electronsignatures/filecomponents/file-upload.js +130 -0
- package/dist/es/electronsignatures/filecomponents/fileUtils.js +38 -0
- package/dist/es/electronsignatures/filecomponents/useFetchFileTypeData.js +46 -0
- package/dist/es/electronsignatures/filecomponents/useFileColumns.js +178 -0
- package/dist/es/electronsignatures/filecomponents/useFileTypeColumns.js +76 -0
- package/dist/es/electronsignatures/hooks/useMergeRecords.js +51 -0
- package/dist/es/electronsignatures/hooks/useParseElectronListData.js +113 -0
- package/dist/es/electronsignatures/hooks/useParseElectronSetting.js +327 -0
- package/dist/es/electronsignatures/hooks/useParseIsNeedElectronData.js +111 -0
- package/dist/es/electronsignatures/hooks/useParseIsNeedQunjData.js +50 -0
- package/dist/es/electronsignatures/hooks/useParseQunjListData.js +182 -0
- package/dist/es/electronsignatures/hooks/useParseQunjSingleData.js +96 -0
- package/dist/es/electronsignatures/hooks/useParseRecords.js +141 -0
- package/dist/es/electronsignatures/index.css +1 -0
- package/dist/es/electronsignatures/index.d.ts +6 -0
- package/dist/es/electronsignatures/index.js +836 -0
- package/dist/es/electronsignatures/interface.d.ts +500 -0
- package/dist/es/electronsignatures/interface.js +53 -0
- package/dist/es/electronsignatures/qunjcomponents/code-modal.js +111 -0
- package/dist/es/electronsignatures/qunjcomponents/qunj-check.js +15 -0
- package/dist/es/electronsignatures/qunjcomponents/qunj-detail.js +65 -0
- package/dist/es/electronsignatures/qunjcomponents/qunj-list.js +121 -0
- package/dist/es/electronsignatures/qunjcomponents/useFetchQunjData.js +58 -0
- package/dist/es/electronsignatures/qunjcomponents/useQunjColumns.js +251 -0
- package/dist/es/electronsignatures/utils.js +55 -0
- package/dist/index.build.d.ts +1 -0
- package/dist/index.dark.css +1 -1
- package/dist/index.default.css +1 -1
- package/dist/index.es.js +1 -0
- package/package.json +4 -3
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { __assign } from '../../_virtual/_tslib.js';
|
|
2
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { memo, useState } from 'react';
|
|
4
|
+
import ButtonCom from '../../button/button.js';
|
|
5
|
+
import { Checkbox } from 'antd';
|
|
6
|
+
|
|
7
|
+
var ContractComparison = function (props) {
|
|
8
|
+
var isNeedComparison = props.isNeedComparison, isEdit = props.isEdit, taskId = props.taskId, templateAttachName = props.templateAttachName, templateAttachId = props.templateAttachId, attachId = props.attachId, isCustomerReference = props.isCustomerReference, onIsCustomerReferenceChange = props.onIsCustomerReferenceChange, onCheckedComparison = props.onCheckedComparison, realIndex = props.realIndex, setRecords = props.setRecords, lookCompareHandle = props.lookCompareHandle, dgInfoRef = props.dgInfoRef, myCompareHandle = props.myCompareHandle, record = props.record, isShowChioseTemplate = props.isShowChioseTemplate, isShowSaveTemplate = props.isShowSaveTemplate;
|
|
9
|
+
var _a = useState(false), loading = _a[0], setLoading = _a[1];
|
|
10
|
+
return isEdit ? (jsxs("div", __assign({ className: "contract-comparison--wrap" }, { children: [isNeedComparison ? (jsxs(Fragment, { children: [jsx("div", { children: templateAttachName }), !record.isHideChoiseChangeTemplate && isShowChioseTemplate ? (jsx(ButtonCom, __assign({ type: "link", onClick: function () {
|
|
11
|
+
// 记录当前点击产生的一些参数
|
|
12
|
+
dgInfoRef.current = {
|
|
13
|
+
realIndex: realIndex,
|
|
14
|
+
attachId: attachId,
|
|
15
|
+
setRecords: setRecords,
|
|
16
|
+
};
|
|
17
|
+
onCheckedComparison &&
|
|
18
|
+
onCheckedComparison({
|
|
19
|
+
realIndex: realIndex,
|
|
20
|
+
attachId: attachId,
|
|
21
|
+
setRecords: setRecords,
|
|
22
|
+
record: record,
|
|
23
|
+
});
|
|
24
|
+
} }, { children: "\u9009\u62E9\u6BD4\u5BF9\u6A21\u677F" }))) : null, taskId ? (jsx(ButtonCom, __assign({ type: "link", onClick: function () {
|
|
25
|
+
lookCompareHandle(taskId);
|
|
26
|
+
} }, { children: "\u67E5\u770B\u6BD4\u5BF9\u7ED3\u679C" }))) : templateAttachId && attachId ? (jsx(ButtonCom, __assign({ type: "link", style: { color: 'rgb(255, 77, 79)' }, loading: loading, onClick: function () {
|
|
27
|
+
// 记录当前点击产生的一些参数
|
|
28
|
+
dgInfoRef.current = {
|
|
29
|
+
realIndex: realIndex,
|
|
30
|
+
attachId: attachId,
|
|
31
|
+
setRecords: setRecords,
|
|
32
|
+
};
|
|
33
|
+
setLoading(true);
|
|
34
|
+
myCompareHandle(templateAttachId)
|
|
35
|
+
.then(function () {
|
|
36
|
+
setLoading(false);
|
|
37
|
+
})
|
|
38
|
+
.catch(function () {
|
|
39
|
+
setLoading(false);
|
|
40
|
+
});
|
|
41
|
+
} }, { children: "\u65E0\u4EFB\u52A1ID\uFF0C\u5F00\u59CB\u6BD4\u5BF9" }))) : null] })) : null, !record.isHideSaveCustomerReference && isShowSaveTemplate ? (jsx(Checkbox, __assign({ checked: isCustomerReference, onChange: function (e) {
|
|
42
|
+
onIsCustomerReferenceChange &&
|
|
43
|
+
onIsCustomerReferenceChange(e.target.checked);
|
|
44
|
+
} }, { children: "\u5B58\u5165\u6837\u677F" }))) : null] }))) : (jsxs("div", __assign({ className: "contract-comparison--wrap" }, { children: [jsx("div", { children: templateAttachName }), taskId && isNeedComparison ? (jsx(ButtonCom, __assign({ type: "link", onClick: function () {
|
|
45
|
+
lookCompareHandle(taskId);
|
|
46
|
+
} }, { children: "\u67E5\u770B\u6BD4\u5BF9\u7ED3\u679C" }))) : null] })));
|
|
47
|
+
};
|
|
48
|
+
var ContractComparison$1 = memo(ContractComparison);
|
|
49
|
+
|
|
50
|
+
export { ContractComparison$1 as default };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { __assign } from '../../_virtual/_tslib.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { getColumnMergeProp, DATA_TYPE_KEY } from '../hooks/useParseRecords.js';
|
|
4
|
+
import ContractComparison from './contract-comparison.js';
|
|
5
|
+
import { currentRecordIsOnlyQunj } from '../utils.js';
|
|
6
|
+
|
|
7
|
+
// 合同比对的clomuns
|
|
8
|
+
function useContractColumns(options) {
|
|
9
|
+
var records = options.records, dataTypeSort = options.dataTypeSort, allData = options.allData, lookCompareHandle = options.lookCompareHandle, dgInfoRef = options.dgInfoRef, myCompareHandle = options.myCompareHandle, onCheckedComparison = options.onCheckedComparison;
|
|
10
|
+
var contractColumns = [
|
|
11
|
+
{
|
|
12
|
+
// title: '智能合同比对模板',
|
|
13
|
+
title: "比对模板附件名称",
|
|
14
|
+
dataIndex: "contractComparison",
|
|
15
|
+
key: "contractComparison",
|
|
16
|
+
width: 180,
|
|
17
|
+
align: "center",
|
|
18
|
+
render: function (text, record, index) {
|
|
19
|
+
var currentOnlyQunj = currentRecordIsOnlyQunj(record);
|
|
20
|
+
if (currentOnlyQunj) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
var _a = getColumnMergeProp({
|
|
24
|
+
record: record,
|
|
25
|
+
index: index,
|
|
26
|
+
records: records,
|
|
27
|
+
dataTypeSort: dataTypeSort,
|
|
28
|
+
}), currentDataType = _a.currentDataType, preDataTypeRecordsLength = _a.preDataTypeRecordsLength;
|
|
29
|
+
var _b = allData[currentDataType] || {}, isEdit = _b.isEdit, isShowContractComparsionHandle = _b.isShowContractComparsionHandle, setSameTypeRecords = _b.setRecords, isShowChioseTemplate = _b.isShowChioseTemplate, isShowSaveTemplate = _b.isShowSaveTemplate;
|
|
30
|
+
// 是否需要合同比对功能
|
|
31
|
+
var isNeedComparison = isShowContractComparsionHandle === null || isShowContractComparsionHandle === void 0 ? void 0 : isShowContractComparsionHandle(record, records);
|
|
32
|
+
// 是否存模板
|
|
33
|
+
var isCustomerReference = (record === null || record === void 0 ? void 0 : record.isCustomerReference) + "" === "1" ? true : false;
|
|
34
|
+
var dataTypeIndex = index - preDataTypeRecordsLength;
|
|
35
|
+
return (jsx(ContractComparison, { isEdit: isEdit, isNeedComparison: isNeedComparison, taskId: record === null || record === void 0 ? void 0 : record.taskId, templateAttachId: record === null || record === void 0 ? void 0 : record.templateAttachId, templateAttachName: record === null || record === void 0 ? void 0 : record.templateAttachName, isShowChioseTemplate: isShowChioseTemplate, isShowSaveTemplate: isShowSaveTemplate, attachId: record === null || record === void 0 ? void 0 : record.attachId, isCustomerReference: isCustomerReference, lookCompareHandle: lookCompareHandle, realIndex: dataTypeIndex, setRecords: setSameTypeRecords, dgInfoRef: dgInfoRef, myCompareHandle: myCompareHandle, record: record, onCheckedComparison: onCheckedComparison, onIsCustomerReferenceChange: function (checked) {
|
|
36
|
+
// 因为数据是按照类型来归类了,那么这个索引的长度 实际应该减去之前的所有数据类型的长度
|
|
37
|
+
setSameTypeRecords(function (preRecords) {
|
|
38
|
+
var _a;
|
|
39
|
+
var copyRecords = preRecords.slice();
|
|
40
|
+
var item = copyRecords[dataTypeIndex];
|
|
41
|
+
copyRecords.splice(dataTypeIndex, 1, __assign(__assign({}, item), (_a = { isCustomerReference: checked ? 1 : 0 }, _a[DATA_TYPE_KEY] = currentDataType, _a)));
|
|
42
|
+
return copyRecords;
|
|
43
|
+
});
|
|
44
|
+
} }));
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
];
|
|
48
|
+
return {
|
|
49
|
+
contractColumns: contractColumns,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { useContractColumns as default };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { useCallback } from 'react';
|
|
2
|
+
import { message } from 'antd';
|
|
3
|
+
|
|
4
|
+
function useDg(request) {
|
|
5
|
+
// 开始比对
|
|
6
|
+
var compareHandle = useCallback(function (templateId, fileId) {
|
|
7
|
+
return request === null || request === void 0 ? void 0 : request({
|
|
8
|
+
url: "/api/zmdms-resource/seal/create-compare-task/".concat(templateId, "/").concat(fileId),
|
|
9
|
+
method: "GET",
|
|
10
|
+
}).then(function (res) {
|
|
11
|
+
if (res.status === 200 && res.data.code === 200) {
|
|
12
|
+
message.success("操作成功");
|
|
13
|
+
return res;
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
message.error(res.data.msg || "出错了");
|
|
17
|
+
return Promise.reject(res.data.msg || "出错了");
|
|
18
|
+
}
|
|
19
|
+
}).catch(function (error) {
|
|
20
|
+
var _a, _b, _c, _d;
|
|
21
|
+
message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || "请求失败!");
|
|
22
|
+
return Promise.reject(((_d = (_c = error === null || error === void 0 ? void 0 : error.response) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.msg) || "请求失败!");
|
|
23
|
+
});
|
|
24
|
+
}, [request]);
|
|
25
|
+
// 查看比对结果
|
|
26
|
+
var lookCompareHandle = useCallback(function (taskId) {
|
|
27
|
+
return request === null || request === void 0 ? void 0 : request({
|
|
28
|
+
url: "/api/zmdms-resource/seal/query-compare-task/".concat(taskId),
|
|
29
|
+
method: "GET",
|
|
30
|
+
}).then(function (res) {
|
|
31
|
+
var _a;
|
|
32
|
+
if (res.status === 200 && res.data.code === 200) {
|
|
33
|
+
if ((_a = res.data.data[0]) === null || _a === void 0 ? void 0 : _a.url) {
|
|
34
|
+
// 比对文件预览
|
|
35
|
+
window.open(res.data.data[0].url);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
message.info("文件比对中,请稍后再试!");
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
message.error(res.data.msg || "出错了");
|
|
43
|
+
}
|
|
44
|
+
}).catch(function (error) {
|
|
45
|
+
var _a, _b;
|
|
46
|
+
message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || "请求失败!");
|
|
47
|
+
});
|
|
48
|
+
}, [request]);
|
|
49
|
+
return {
|
|
50
|
+
/** 开始比对 */
|
|
51
|
+
compareHandle: compareHandle,
|
|
52
|
+
/** 查看比对结果 */
|
|
53
|
+
lookCompareHandle: lookCompareHandle,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { useDg as default };
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
import { __assign } from '../_virtual/_tslib.js';
|
|
2
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
3
|
+
import { memo, useRef, useEffect } from 'react';
|
|
4
|
+
import { FILE_FIELDS_NAME } from './interface.js';
|
|
5
|
+
import { useMemoizedFn } from 'ahooks';
|
|
6
|
+
import useParseRecords from './hooks/useParseRecords.js';
|
|
7
|
+
import useFetchFileTypeData from './filecomponents/useFetchFileTypeData.js';
|
|
8
|
+
import useFetchElectronData from './electroncomponents/useFetchElectronData.js';
|
|
9
|
+
import useParseIsNeedElectronData from './hooks/useParseIsNeedElectronData.js';
|
|
10
|
+
import useParseElectronListData from './hooks/useParseElectronListData.js';
|
|
11
|
+
import useParseElectronSetting from './hooks/useParseElectronSetting.js';
|
|
12
|
+
import useFetchQunjData from './qunjcomponents/useFetchQunjData.js';
|
|
13
|
+
import useParseQunjListData from './hooks/useParseQunjListData.js';
|
|
14
|
+
import useParseIsNeedQunjData from './hooks/useParseIsNeedQunjData.js';
|
|
15
|
+
import useParseQunjSingleData from './hooks/useParseQunjSingleData.js';
|
|
16
|
+
|
|
17
|
+
var ElectronSignaturesFragment = function (props) {
|
|
18
|
+
var request = props.request, isUnControlled = props.isUnControlled, contractNumFlowIds = props.contractNumFlowIds, isAllowedPatchFileType = props.isAllowedPatchFileType, fileTypeKey = props.fileTypeKey, fileTypeList = props.fileTypeList, fileTypeFilterList = props.fileTypeFilterList, useOutsideFileTypeList = props.useOutsideFileTypeList, needQys = props.needQys, needQj = props.needQj, needDg = props.needDg, isShowContractComparsion = props.isShowContractComparsion, isDefaultQunj = props.isDefaultQunj, qunjAddressList = props.qunjAddressList, qunjAddress = props.qunjAddress, _a = props.isQunjAddress, isQunjAddress = _a === void 0 ? true : _a, deptId = props.deptId, flowId = props.flowId, electronicSealIdList = props.electronicSealIdList, qunjSeal = props.qunjSeal, _b = props.isCheckedEconomic, isCheckedEconomic = _b === void 0 ? 1 : _b, docAttachMap = props.docAttachMap, contractId = props.contractId, documentIdList = props.documentIdList, onValueChange = props.onValueChange, fileList = props.fileList, _c = props.dataType, dataType = _c === void 0 ? "" : _c, dataTypeName = props.dataTypeName, isBgColor = props.isBgColor, canEdit = props.canEdit, flowStatus = props.flowStatus, onTrackChange = props.onTrackChange, setLoading = props.setLoading, apiBaseUrl = props.apiBaseUrl, fileBaseUrl = props.fileBaseUrl, fileFieldsName = props.fileFieldsName, fileSplitRules = props.fileSplitRules, fileSplitStringRules = props.fileSplitStringRules, parseCurrentUploadFile = props.parseCurrentUploadFile, isShowSaveTemplate = props.isShowSaveTemplate, isShowChioseTemplate = props.isShowChioseTemplate, companyTypes = props.companyTypes, isSingleQj = props.isSingleQj;
|
|
19
|
+
var fileFieldsNameRef = useRef(FILE_FIELDS_NAME);
|
|
20
|
+
fileFieldsNameRef.current = __assign(__assign({}, FILE_FIELDS_NAME), fileFieldsName);
|
|
21
|
+
// 代理函数
|
|
22
|
+
var isShowContractComparsionHandle = useMemoizedFn(function (record, records) {
|
|
23
|
+
// 如果需要自定义的话 那就交给用户自定义
|
|
24
|
+
if (isShowContractComparsion) {
|
|
25
|
+
return isShowContractComparsion(record, records);
|
|
26
|
+
}
|
|
27
|
+
return record.attachType === "001" ? true : false;
|
|
28
|
+
});
|
|
29
|
+
// 解析附件数据
|
|
30
|
+
var _d = useParseRecords({
|
|
31
|
+
isUnControlled: isUnControlled,
|
|
32
|
+
onValueChange: onValueChange,
|
|
33
|
+
dataType: dataType,
|
|
34
|
+
fileList: fileList,
|
|
35
|
+
fileSplitRules: fileSplitRules,
|
|
36
|
+
fileSplitStringRules: fileSplitStringRules,
|
|
37
|
+
isSingleQj: isSingleQj,
|
|
38
|
+
}), records = _d.records, setRecords = _d.setRecords, innerSetRecords = _d.innerSetRecords;
|
|
39
|
+
// 电子印章列表相关数据
|
|
40
|
+
var _e = useFetchElectronData({
|
|
41
|
+
request: request,
|
|
42
|
+
needQys: needQys,
|
|
43
|
+
deptId: deptId,
|
|
44
|
+
flowId: flowId,
|
|
45
|
+
records: records,
|
|
46
|
+
canEdit: canEdit,
|
|
47
|
+
}), electronList = _e.electronList, firstLevelPersonName = _e.firstLevelPersonName;
|
|
48
|
+
// 群杰物理章列表相关数据
|
|
49
|
+
var qunjList = useFetchQunjData({
|
|
50
|
+
request: request,
|
|
51
|
+
needQj: needQj,
|
|
52
|
+
flowId: flowId,
|
|
53
|
+
companyTypes: companyTypes,
|
|
54
|
+
}).qunjList;
|
|
55
|
+
// 附件类型列表相关数据
|
|
56
|
+
var fileTypeFetchList = useFetchFileTypeData({
|
|
57
|
+
request: request,
|
|
58
|
+
fileTypeKey: fileTypeKey,
|
|
59
|
+
fileTypeList: fileTypeList,
|
|
60
|
+
fileTypeFilterList: fileTypeFilterList,
|
|
61
|
+
useOutsideFileTypeList: useOutsideFileTypeList,
|
|
62
|
+
isAllowedPatchFileType: isAllowedPatchFileType,
|
|
63
|
+
}).fileTypeFetchList;
|
|
64
|
+
// 选择电子印章相关逻辑
|
|
65
|
+
var _f = useParseElectronListData({
|
|
66
|
+
isUnControlled: isUnControlled,
|
|
67
|
+
onValueChange: onValueChange,
|
|
68
|
+
dataType: dataType,
|
|
69
|
+
electronicSealIdList: electronicSealIdList,
|
|
70
|
+
isCheckedEconomic: isCheckedEconomic,
|
|
71
|
+
docAttachMap: docAttachMap,
|
|
72
|
+
}), currentCheckedElectronicSealIdList = _f.currentCheckedElectronicSealIdList, onElectronicSealIdChange = _f.onElectronicSealIdChange, currentIsCheckedEconomic = _f.currentIsCheckedEconomic, setCurrentIsCheckedEconomic = _f.setCurrentIsCheckedEconomic, onCheckedEconomicChange = _f.onCheckedEconomicChange, onClearElectronListData = _f.onClearElectronListData;
|
|
73
|
+
// 电子印章设置相关逻辑
|
|
74
|
+
var _g = useParseElectronSetting({
|
|
75
|
+
isUnControlled: isUnControlled,
|
|
76
|
+
onValueChange: onValueChange,
|
|
77
|
+
request: request,
|
|
78
|
+
setLoading: setLoading,
|
|
79
|
+
records: records,
|
|
80
|
+
dataType: dataType,
|
|
81
|
+
contractId: contractId,
|
|
82
|
+
docAttachMap: docAttachMap,
|
|
83
|
+
documentIdList: documentIdList,
|
|
84
|
+
electronicSealIdList: currentCheckedElectronicSealIdList,
|
|
85
|
+
isCheckedEconomic: currentIsCheckedEconomic,
|
|
86
|
+
setCurrentIsCheckedEconomic: setCurrentIsCheckedEconomic,
|
|
87
|
+
canEdit: canEdit,
|
|
88
|
+
flowStatus: flowStatus,
|
|
89
|
+
deptId: deptId,
|
|
90
|
+
onElectronicSealIdChange: onElectronicSealIdChange,
|
|
91
|
+
}), currentContractId = _g.currentContractId, currentDocAttachMap = _g.currentDocAttachMap, currentDocumentIdList = _g.currentDocumentIdList, appointSignLocation = _g.appointSignLocation, viewSignPage = _g.viewSignPage, checkUnStampedSealList = _g.checkUnStampedSealList, unElectronicSealList = _g.unElectronicSealList, unElectronicSealIdList = _g.unElectronicSealIdList, onClearElectronSetting = _g.onClearElectronSetting, clickElectronicSealIdList = _g.clickElectronicSealIdList;
|
|
92
|
+
// 盖电子印章相关逻辑
|
|
93
|
+
var _h = useParseIsNeedElectronData({
|
|
94
|
+
isUnControlled: isUnControlled,
|
|
95
|
+
onValueChange: onValueChange,
|
|
96
|
+
dataType: dataType,
|
|
97
|
+
records: records,
|
|
98
|
+
setRecords: innerSetRecords,
|
|
99
|
+
onClearElectronListData: onClearElectronListData,
|
|
100
|
+
onClearElectronSetting: onClearElectronSetting,
|
|
101
|
+
deptId: deptId,
|
|
102
|
+
electronicSealIdList: electronicSealIdList,
|
|
103
|
+
}), onIsStampElectronChange = _h.onIsStampElectronChange, isStampElectron = _h.isStampElectron, clearAllElectronDataHandler = _h.clearAllElectronDataHandler;
|
|
104
|
+
// 这个是整体逻辑。如果每个附件都需要选择是否盖群杰印章,走其他逻辑
|
|
105
|
+
// 群杰物理章切换数据相关逻辑
|
|
106
|
+
var _j = useParseQunjListData({
|
|
107
|
+
isUnControlled: isUnControlled,
|
|
108
|
+
onValueChange: onValueChange,
|
|
109
|
+
dataType: dataType,
|
|
110
|
+
qunjSeal: qunjSeal,
|
|
111
|
+
contractNumFlowIds: contractNumFlowIds,
|
|
112
|
+
deptId: deptId,
|
|
113
|
+
flowId: flowId,
|
|
114
|
+
isDefaultQunj: isDefaultQunj,
|
|
115
|
+
qunjAddress: qunjAddress,
|
|
116
|
+
isSingleQj: isSingleQj,
|
|
117
|
+
}), currentQunjSeal = _j.currentQunjSeal, onQunjSealChange = _j.onQunjSealChange, isContranctNum = _j.isContranctNum, qunjChecked = _j.qunjChecked, setQunjChecked = _j.setQunjChecked, currentQunjAddress = _j.currentQunjAddress, onQunjAddressChange = _j.onQunjAddressChange;
|
|
118
|
+
// 是否盖群杰章相关逻辑
|
|
119
|
+
var onIsStampQunjChange = useParseIsNeedQunjData({
|
|
120
|
+
isUnControlled: isUnControlled,
|
|
121
|
+
onValueChange: onValueChange,
|
|
122
|
+
dataType: dataType,
|
|
123
|
+
records: records,
|
|
124
|
+
setRecords: innerSetRecords,
|
|
125
|
+
fileFieldsNameRef: fileFieldsNameRef,
|
|
126
|
+
}).onIsStampQunjChange;
|
|
127
|
+
// 针对每个附件加盖群杰章的逻辑
|
|
128
|
+
var _k = useParseQunjSingleData({
|
|
129
|
+
onValueChange: onValueChange,
|
|
130
|
+
dataType: dataType,
|
|
131
|
+
records: records,
|
|
132
|
+
setRecords: innerSetRecords,
|
|
133
|
+
fileFieldsNameRef: fileFieldsNameRef,
|
|
134
|
+
isContranctNum: isContranctNum,
|
|
135
|
+
isSingleQj: isSingleQj,
|
|
136
|
+
flowId: flowId,
|
|
137
|
+
}), onQunjAddressSingleChange = _k.onQunjAddressSingleChange, onQunjSealSingleChange = _k.onQunjSealSingleChange;
|
|
138
|
+
// 触发收集状态
|
|
139
|
+
useEffect(function () {
|
|
140
|
+
onTrackChange &&
|
|
141
|
+
onTrackChange(dataType, {
|
|
142
|
+
electronList: electronList,
|
|
143
|
+
firstLevelPersonName: firstLevelPersonName,
|
|
144
|
+
});
|
|
145
|
+
}, [dataType, onTrackChange, electronList, firstLevelPersonName]);
|
|
146
|
+
useEffect(function () {
|
|
147
|
+
onTrackChange &&
|
|
148
|
+
onTrackChange(dataType, {
|
|
149
|
+
qunjList: qunjList,
|
|
150
|
+
});
|
|
151
|
+
}, [dataType, onTrackChange, qunjList]);
|
|
152
|
+
useEffect(function () {
|
|
153
|
+
onTrackChange &&
|
|
154
|
+
onTrackChange(dataType, {
|
|
155
|
+
fileTypeFetchList: fileTypeFetchList,
|
|
156
|
+
});
|
|
157
|
+
}, [dataType, onTrackChange, fileTypeFetchList]);
|
|
158
|
+
// 电子印章列表相关操作 收集状态
|
|
159
|
+
useEffect(function () {
|
|
160
|
+
onTrackChange &&
|
|
161
|
+
onTrackChange(dataType, {
|
|
162
|
+
currentCheckedElectronicSealIdList: currentCheckedElectronicSealIdList,
|
|
163
|
+
onElectronicSealIdChange: onElectronicSealIdChange,
|
|
164
|
+
currentIsCheckedEconomic: currentIsCheckedEconomic,
|
|
165
|
+
onCheckedEconomicChange: onCheckedEconomicChange,
|
|
166
|
+
onClearElectronListData: onClearElectronListData,
|
|
167
|
+
onClearElectronSetting: onClearElectronSetting,
|
|
168
|
+
});
|
|
169
|
+
}, [
|
|
170
|
+
dataType,
|
|
171
|
+
onTrackChange,
|
|
172
|
+
currentCheckedElectronicSealIdList,
|
|
173
|
+
onElectronicSealIdChange,
|
|
174
|
+
currentIsCheckedEconomic,
|
|
175
|
+
onCheckedEconomicChange,
|
|
176
|
+
onClearElectronListData,
|
|
177
|
+
onClearElectronSetting,
|
|
178
|
+
]);
|
|
179
|
+
// 附件相关数据 收集状态
|
|
180
|
+
useEffect(function () {
|
|
181
|
+
onTrackChange &&
|
|
182
|
+
onTrackChange(dataType, {
|
|
183
|
+
records: records,
|
|
184
|
+
setRecords: setRecords,
|
|
185
|
+
fileFieldsNameRef: fileFieldsNameRef,
|
|
186
|
+
fileSplitRules: fileSplitRules,
|
|
187
|
+
fileSplitStringRules: fileSplitStringRules,
|
|
188
|
+
parseCurrentUploadFile: parseCurrentUploadFile,
|
|
189
|
+
});
|
|
190
|
+
}, [
|
|
191
|
+
dataType,
|
|
192
|
+
onTrackChange,
|
|
193
|
+
records,
|
|
194
|
+
setRecords,
|
|
195
|
+
fileSplitRules,
|
|
196
|
+
fileSplitStringRules,
|
|
197
|
+
parseCurrentUploadFile,
|
|
198
|
+
]);
|
|
199
|
+
// 选择是否加盖电子印章 收集状态
|
|
200
|
+
useEffect(function () {
|
|
201
|
+
onTrackChange &&
|
|
202
|
+
onTrackChange(dataType, {
|
|
203
|
+
onIsStampElectronChange: onIsStampElectronChange,
|
|
204
|
+
isStampElectron: isStampElectron,
|
|
205
|
+
clearAllElectronDataHandler: clearAllElectronDataHandler,
|
|
206
|
+
});
|
|
207
|
+
}, [
|
|
208
|
+
dataType,
|
|
209
|
+
onTrackChange,
|
|
210
|
+
onIsStampElectronChange,
|
|
211
|
+
isStampElectron,
|
|
212
|
+
clearAllElectronDataHandler,
|
|
213
|
+
]);
|
|
214
|
+
// 电子印章相关设置 收集状态
|
|
215
|
+
useEffect(function () {
|
|
216
|
+
onTrackChange &&
|
|
217
|
+
onTrackChange(dataType, {
|
|
218
|
+
currentContractId: currentContractId,
|
|
219
|
+
currentDocAttachMap: currentDocAttachMap,
|
|
220
|
+
currentDocumentIdList: currentDocumentIdList,
|
|
221
|
+
appointSignLocation: appointSignLocation,
|
|
222
|
+
viewSignPage: viewSignPage,
|
|
223
|
+
checkUnStampedSealList: checkUnStampedSealList,
|
|
224
|
+
unElectronicSealList: unElectronicSealList,
|
|
225
|
+
unElectronicSealIdList: unElectronicSealIdList,
|
|
226
|
+
clickElectronicSealIdList: clickElectronicSealIdList,
|
|
227
|
+
});
|
|
228
|
+
}, [
|
|
229
|
+
dataType,
|
|
230
|
+
onTrackChange,
|
|
231
|
+
currentContractId,
|
|
232
|
+
currentDocAttachMap,
|
|
233
|
+
currentDocumentIdList,
|
|
234
|
+
appointSignLocation,
|
|
235
|
+
viewSignPage,
|
|
236
|
+
checkUnStampedSealList,
|
|
237
|
+
unElectronicSealList,
|
|
238
|
+
unElectronicSealIdList,
|
|
239
|
+
clickElectronicSealIdList,
|
|
240
|
+
]);
|
|
241
|
+
// 群杰物理章相关配置
|
|
242
|
+
useEffect(function () {
|
|
243
|
+
onTrackChange &&
|
|
244
|
+
onTrackChange(dataType, {
|
|
245
|
+
currentQunjSeal: currentQunjSeal,
|
|
246
|
+
onQunjSealChange: onQunjSealChange,
|
|
247
|
+
isContranctNum: isContranctNum,
|
|
248
|
+
qunjChecked: qunjChecked,
|
|
249
|
+
setQunjChecked: setQunjChecked,
|
|
250
|
+
currentQunjAddress: currentQunjAddress,
|
|
251
|
+
onQunjAddressChange: onQunjAddressChange,
|
|
252
|
+
isShowContractComparsionHandle: isShowContractComparsionHandle,
|
|
253
|
+
isShowSaveTemplate: isShowSaveTemplate,
|
|
254
|
+
isShowChioseTemplate: isShowChioseTemplate,
|
|
255
|
+
});
|
|
256
|
+
}, [
|
|
257
|
+
dataType,
|
|
258
|
+
onTrackChange,
|
|
259
|
+
currentQunjSeal,
|
|
260
|
+
onQunjSealChange,
|
|
261
|
+
isContranctNum,
|
|
262
|
+
qunjChecked,
|
|
263
|
+
setQunjChecked,
|
|
264
|
+
currentQunjAddress,
|
|
265
|
+
onQunjAddressChange,
|
|
266
|
+
isShowContractComparsionHandle,
|
|
267
|
+
isShowSaveTemplate,
|
|
268
|
+
isShowChioseTemplate,
|
|
269
|
+
]);
|
|
270
|
+
// 选择是否加盖物理章 收集状态
|
|
271
|
+
useEffect(function () {
|
|
272
|
+
onTrackChange &&
|
|
273
|
+
onTrackChange(dataType, {
|
|
274
|
+
onIsStampQunjChange: onIsStampQunjChange,
|
|
275
|
+
onQunjAddressSingleChange: onQunjAddressSingleChange,
|
|
276
|
+
onQunjSealSingleChange: onQunjSealSingleChange,
|
|
277
|
+
});
|
|
278
|
+
}, [
|
|
279
|
+
dataType,
|
|
280
|
+
onTrackChange,
|
|
281
|
+
onIsStampQunjChange,
|
|
282
|
+
onQunjAddressSingleChange,
|
|
283
|
+
onQunjSealSingleChange,
|
|
284
|
+
]);
|
|
285
|
+
// 一些基本数据 收集状态
|
|
286
|
+
useEffect(function () {
|
|
287
|
+
onTrackChange &&
|
|
288
|
+
onTrackChange(dataType, {
|
|
289
|
+
isEdit: canEdit + "" === "1",
|
|
290
|
+
needQys: needQys + "" === "1",
|
|
291
|
+
needQj: needQj + "" === "1",
|
|
292
|
+
needDg: needDg + "" === "1",
|
|
293
|
+
qunjAddressList: qunjAddressList,
|
|
294
|
+
isQunjAddress: isQunjAddress,
|
|
295
|
+
dataTypeName: dataTypeName,
|
|
296
|
+
isBgColor: isBgColor,
|
|
297
|
+
isAllowedPatchFileType: isAllowedPatchFileType,
|
|
298
|
+
apiBaseUrl: apiBaseUrl,
|
|
299
|
+
fileBaseUrl: fileBaseUrl,
|
|
300
|
+
flowStatus: flowStatus,
|
|
301
|
+
});
|
|
302
|
+
}, [
|
|
303
|
+
dataType,
|
|
304
|
+
onTrackChange,
|
|
305
|
+
canEdit,
|
|
306
|
+
needQys,
|
|
307
|
+
needQj,
|
|
308
|
+
needDg,
|
|
309
|
+
qunjAddressList,
|
|
310
|
+
isQunjAddress,
|
|
311
|
+
dataTypeName,
|
|
312
|
+
isBgColor,
|
|
313
|
+
isAllowedPatchFileType,
|
|
314
|
+
apiBaseUrl,
|
|
315
|
+
fileBaseUrl,
|
|
316
|
+
flowStatus,
|
|
317
|
+
]);
|
|
318
|
+
return jsx(Fragment, {});
|
|
319
|
+
};
|
|
320
|
+
var ElectronSignaturesFragment$1 = memo(ElectronSignaturesFragment);
|
|
321
|
+
|
|
322
|
+
export { ElectronSignaturesFragment$1 as default };
|