ztxkui 4.2.23-421 → 4.2.23-422
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.
|
@@ -102,15 +102,15 @@ export var ElectronSignaturesContext = createContext({
|
|
|
102
102
|
*/
|
|
103
103
|
var ElectronSignatures = function (props) {
|
|
104
104
|
var _a, _b, _c;
|
|
105
|
-
var request = props.request, isTranslation = props.isTranslation, previewUrl = props.previewUrl, _d = props.isUnControlled, isUnControlled = _d === void 0 ? true : _d, _e = props.contractNumFlowIds, contractNumFlowIds = _e === void 0 ? FLOW_IDS : _e, fileUploadProps = props.fileUploadProps, isShowFileUpload = props.isShowFileUpload, otherOptions = props.otherOptions, _fileBaseUrl = props.fileBaseUrl, _apiBaseUrl = props.apiBaseUrl, electronHandleRef = props.electronHandleRef, _onValueChange = props.onValueChange, isValidateSuccess = props.isValidateSuccess, refreshCode = props.refreshCode, onCheckedComparison = props.onCheckedComparison, _onFileTypeChangeGetItem = props.onFileTypeChangeGetItem, tableScroll = props.tableScroll, _getCreateTimeHand = props.getCreateTimeHand, isShowElectronBatchBtn = props.isShowElectronBatchBtn, isShowDownloadBatchBtn = props.isShowDownloadBatchBtn, isShowBatchDeleteBtn = props.isShowBatchDeleteBtn, isShowBatchPreviewBtn = props.isShowBatchPreviewBtn,
|
|
105
|
+
var request = props.request, isTranslation = props.isTranslation, previewUrl = props.previewUrl, _d = props.isUnControlled, isUnControlled = _d === void 0 ? true : _d, _e = props.contractNumFlowIds, contractNumFlowIds = _e === void 0 ? FLOW_IDS : _e, fileUploadProps = props.fileUploadProps, isShowFileUpload = props.isShowFileUpload, otherOptions = props.otherOptions, _fileBaseUrl = props.fileBaseUrl, _apiBaseUrl = props.apiBaseUrl, electronHandleRef = props.electronHandleRef, _onValueChange = props.onValueChange, isValidateSuccess = props.isValidateSuccess, refreshCode = props.refreshCode, onCheckedComparison = props.onCheckedComparison, _onFileTypeChangeGetItem = props.onFileTypeChangeGetItem, tableScroll = props.tableScroll, _getCreateTimeHand = props.getCreateTimeHand, isShowElectronBatchBtn = props.isShowElectronBatchBtn, isShowDownloadBatchBtn = props.isShowDownloadBatchBtn, isShowBatchDeleteBtn = props.isShowBatchDeleteBtn, isShowBatchPreviewBtn = props.isShowBatchPreviewBtn, isShowFileComparisonBtn = props.isShowFileComparisonBtn, batchDownloadZipName = props.batchDownloadZipName, isShowDoubleSignedBatchBtn = props.isShowDoubleSignedBatchBtn, _f = props.isShowFileType, isShowFileType = _f === void 0 ? true : _f, _g = props.isShowFileTypeMerge, isShowFileTypeMerge = _g === void 0 ? true : _g,
|
|
106
106
|
// fmsIsElectronicSealLabel = '产业链综合服务平台-客户电子签章',
|
|
107
|
-
|
|
107
|
+
_h = props.fmsIsElectronicSealLabel,
|
|
108
108
|
// fmsIsElectronicSealLabel = '产业链综合服务平台-客户电子签章',
|
|
109
|
-
fmsIsElectronicSealLabel =
|
|
109
|
+
fmsIsElectronicSealLabel = _h === void 0 ? '加盖产融章' : _h,
|
|
110
110
|
// fmsIsElectronicSealPushLabel = '推送银行',
|
|
111
|
-
|
|
111
|
+
_j = props.fmsIsElectronicSealPushLabel,
|
|
112
112
|
// fmsIsElectronicSealPushLabel = '推送银行',
|
|
113
|
-
fmsIsElectronicSealPushLabel =
|
|
113
|
+
fmsIsElectronicSealPushLabel = _j === void 0 ? '加盖银行签章' : _j, _k = props.openingContractSealLabel, openingContractSealLabel = _k === void 0 ? '盖户用合同章' : _k, isSingleQj = props.isSingleQj, _l = props.isQjUseModal, isQjUseModal = _l === void 0 ? true : _l, defaultJustNeedQj = props.defaultJustNeedQj, isDeleteAllFileWhenJustUseQj = props.isDeleteAllFileWhenJustUseQj, _m = props.isShowQysWhenNeedNotQys, isShowQysWhenNeedNotQys = _m === void 0 ? true : _m, _o = props.isControlNeedQys, isControlNeedQys = _o === void 0 ? true : _o, isDeletePlaceholderFileData = props.isDeletePlaceholderFileData, caseId = props.caseId, _p = props.isChoiseChangeTemplateValid, isChoiseChangeTemplateValid = _p === void 0 ? true : _p, _q = props.isToggleQys, isToggleQys = _q === void 0 ? false : _q, _r = props.isQjVerifyCode, isQjVerifyCode = _r === void 0 ? false : _r, _s = props.isNewQys, isNewQys = _s === void 0 ? false : _s, isShowOpeningContractSeal = props.isShowOpeningContractSeal, customButtons = props.customButtons, resetProps = __rest(props, ["request", "isTranslation", "previewUrl", "isUnControlled", "contractNumFlowIds", "fileUploadProps", "isShowFileUpload", "otherOptions", "fileBaseUrl", "apiBaseUrl", "electronHandleRef", "onValueChange", "isValidateSuccess", "refreshCode", "onCheckedComparison", "onFileTypeChangeGetItem", "tableScroll", "getCreateTimeHand", "isShowElectronBatchBtn", "isShowDownloadBatchBtn", "isShowBatchDeleteBtn", "isShowBatchPreviewBtn", "isShowFileComparisonBtn", "batchDownloadZipName", "isShowDoubleSignedBatchBtn", "isShowFileType", "isShowFileTypeMerge", "fmsIsElectronicSealLabel", "fmsIsElectronicSealPushLabel", "openingContractSealLabel", "isSingleQj", "isQjUseModal", "defaultJustNeedQj", "isDeleteAllFileWhenJustUseQj", "isShowQysWhenNeedNotQys", "isControlNeedQys", "isDeletePlaceholderFileData", "caseId", "isChoiseChangeTemplateValid", "isToggleQys", "isQjVerifyCode", "isNewQys", "isShowOpeningContractSeal", "customButtons"]);
|
|
114
114
|
var selectRows = useRef(null);
|
|
115
115
|
var onValueChange = useMemoizedFn(function (info) {
|
|
116
116
|
_onValueChange && _onValueChange(info);
|
|
@@ -133,7 +133,7 @@ var ElectronSignatures = function (props) {
|
|
|
133
133
|
// 获得部门信息
|
|
134
134
|
var getDeptInfo = useGetDeptInfo(request).getDeptInfo;
|
|
135
135
|
// 达观操作
|
|
136
|
-
var
|
|
136
|
+
var _t = useDg(request), compareHandle = _t.compareHandle, lookCompareHandle = _t.lookCompareHandle;
|
|
137
137
|
// 存储当前点击的选择比对模板的一些参数
|
|
138
138
|
var dgInfoRef = useRef({});
|
|
139
139
|
var myCompareHandle = useMemoizedFn(function (templateId) {
|
|
@@ -164,7 +164,7 @@ var ElectronSignatures = function (props) {
|
|
|
164
164
|
});
|
|
165
165
|
});
|
|
166
166
|
// 基础地址
|
|
167
|
-
var
|
|
167
|
+
var _u = useBaseContext(), API_BASE_URL = _u.apiBaseUrl, FILE_BASE_URL = _u.fileBaseUrl;
|
|
168
168
|
var apiBaseUrl = _apiBaseUrl || API_BASE_URL;
|
|
169
169
|
var fileBaseUrl = _fileBaseUrl || FILE_BASE_URL;
|
|
170
170
|
// 将配置分级处理
|
|
@@ -186,11 +186,11 @@ var ElectronSignatures = function (props) {
|
|
|
186
186
|
allOptions = [resetProps];
|
|
187
187
|
}
|
|
188
188
|
// 根据收集到的流程id、权限人id列表,来判断是否请求群杰验证码数据
|
|
189
|
-
var
|
|
189
|
+
var _v = useGetQjVerifyCode({
|
|
190
190
|
allOptions: allOptions,
|
|
191
191
|
request: request,
|
|
192
192
|
isNewQys: isNewQys,
|
|
193
|
-
}), qjVerifyCodeData =
|
|
193
|
+
}), qjVerifyCodeData = _v.qjVerifyCodeData, getQjVerifyCodeHandle = _v.getQjVerifyCodeHandle;
|
|
194
194
|
/**
|
|
195
195
|
* 当前是否是编辑状态
|
|
196
196
|
*/
|
|
@@ -198,10 +198,10 @@ var ElectronSignatures = function (props) {
|
|
|
198
198
|
return ((resetProps === null || resetProps === void 0 ? void 0 : resetProps.canEdit) + '' === '1' || (resetProps === null || resetProps === void 0 ? void 0 : resetProps.canEdit) === true);
|
|
199
199
|
}, [resetProps.canEdit]);
|
|
200
200
|
// 表格是否处于loading中
|
|
201
|
-
var
|
|
201
|
+
var _w = useState(), loading = _w[0], setLoading = _w[1];
|
|
202
202
|
// 当前是否处于仅需要群杰印章的状态
|
|
203
|
-
var
|
|
204
|
-
var
|
|
203
|
+
var _x = useState(defaultJustNeedQj || false), justNeedQj = _x[0], setJustNeedQj = _x[1];
|
|
204
|
+
var _y = useState(''), organizationId = _y[0], setOrganizationId = _y[1];
|
|
205
205
|
/**
|
|
206
206
|
* 通过部门Id获得公司id
|
|
207
207
|
*/
|
|
@@ -243,7 +243,7 @@ var ElectronSignatures = function (props) {
|
|
|
243
243
|
var firstDataType = resetProps.dataType || dataTypeSort[0];
|
|
244
244
|
// 记录下需要处理的所有数据
|
|
245
245
|
// TODO: 定义allData 类型
|
|
246
|
-
var
|
|
246
|
+
var _z = useState({}), allData = _z[0], setAllData = _z[1];
|
|
247
247
|
// 收集修改数据
|
|
248
248
|
var onTrackChange = useMemoizedFn(function (dataType, data) {
|
|
249
249
|
setAllData(function (preAllData) {
|
|
@@ -256,12 +256,12 @@ var ElectronSignatures = function (props) {
|
|
|
256
256
|
});
|
|
257
257
|
});
|
|
258
258
|
// 合并数据(数据最终还是要在一个表格中显示)
|
|
259
|
-
var
|
|
259
|
+
var _0 = useMergeRecords({
|
|
260
260
|
allData: allData,
|
|
261
261
|
dataTypeSort: dataTypeSort,
|
|
262
262
|
isDeleteAllFileWhenJustUseQj: isDeleteAllFileWhenJustUseQj,
|
|
263
263
|
isDeletePlaceholderFileData: isDeletePlaceholderFileData,
|
|
264
|
-
}), mergeRecords =
|
|
264
|
+
}), mergeRecords = _0.mergeRecords, isHiddenColumns = _0.isHiddenColumns;
|
|
265
265
|
// 附件归属
|
|
266
266
|
var fileTypeColumns = useFileTypeColumns({
|
|
267
267
|
records: mergeRecords,
|
|
@@ -806,7 +806,7 @@ var ElectronSignatures = function (props) {
|
|
|
806
806
|
});
|
|
807
807
|
},
|
|
808
808
|
}); }, []);
|
|
809
|
-
var
|
|
809
|
+
var _1 = allData[firstDataType] || {}, sameTypeRecords = _1.records, setSameTypeRecords = _1.setRecords, parseCurrentUploadFile = _1.parseCurrentUploadFile;
|
|
810
810
|
function addFile(info, callback) {
|
|
811
811
|
var _a;
|
|
812
812
|
var file = info.file;
|