ztxkui 10.0.82 → 10.0.84
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/components/business/Signatures/components/DetailTable.js +4 -1
- package/dist/components/business/Signatures/hooks.d.ts +1 -1
- package/dist/components/business/Signatures/hooks.js +1 -1
- package/dist/components/utils/ZtxkContext.d.ts +2 -0
- package/dist/components/utils/ZtxkContext.js +1 -0
- package/package.json +1 -1
|
@@ -25,17 +25,20 @@ import { Switch } from 'antd';
|
|
|
25
25
|
import AttachOperation from './AttachOperation';
|
|
26
26
|
import CompareResult from './CompareResult';
|
|
27
27
|
import { fileBatchDownload, preCanDownload, nextDownload, sealFileBatchDownload, } from '../../../Upload/utils';
|
|
28
|
+
import ZtxkContext from '../../../utils/ZtxkContext';
|
|
28
29
|
var DetailTable = function (_a) {
|
|
29
30
|
var _b;
|
|
30
31
|
var needQj = _a.needQj, needQys = _a.needQys, records = _a.records, qunjSeal = _a.qunjSeal, electronicSeal = _a.electronicSealIdList, ZT_API_BASEURL = _a.ZT_API_BASEURL, ZT_FILE_BASEURL = _a.ZT_FILE_BASEURL, token = _a.token, viewSealPageFn = _a.viewSealPageFn, contractId = _a.contractId, electronicList = _a.electronicList, sealList = _a.sealList, querySealStatus = _a.querySealStatus, showContranctNum = _a.showContranctNum, request = _a.request, needSaveTemplate = _a.needSaveTemplate, batchDownloadZipName = _a.batchDownloadZipName, docAttachMap = _a.docAttachMap, isNotFileType = _a.isNotFileType, openContractTemplateModalHandle = _a.openContractTemplateModalHandle, refreshCode = _a.refreshCode, _c = _a.otherColumns, otherColumns = _c === void 0 ? [] : _c, organizationId = _a.organizationId;
|
|
31
32
|
var authToken = token || '';
|
|
32
33
|
var isOnlyQj = "" + ((_b = records === null || records === void 0 ? void 0 : records[0]) === null || _b === void 0 ? void 0 : _b.attachId) === '123456789';
|
|
33
34
|
var selectRows = useRef(null);
|
|
35
|
+
var downWaterApiUrl = React.useContext(ZtxkContext).downWaterApiUrl;
|
|
34
36
|
/** 下载水印附件 */
|
|
35
37
|
var downFileFn = function (_record) {
|
|
36
38
|
try {
|
|
37
39
|
var xhr_1 = new XMLHttpRequest();
|
|
38
|
-
|
|
40
|
+
var apiUrl = downWaterApiUrl || '/zmdms-scm-system/seal/download-watermark-attach';
|
|
41
|
+
xhr_1.open('GET', "" + ZT_API_BASEURL + apiUrl + "/api" + (_record === null || _record === void 0 ? void 0 : _record.attachId) + "?watermarkOrganizationType=12&watermarkOrganizationId=" + organizationId + "&Zmdms-Auth=bearer " + token, true);
|
|
39
42
|
xhr_1.responseType = 'blob';
|
|
40
43
|
xhr_1.onload = function () {
|
|
41
44
|
var _a;
|
|
@@ -15,5 +15,5 @@ export declare function useElectronicData(data: any): {
|
|
|
15
15
|
setElectronicSeal: import("react").Dispatch<any>;
|
|
16
16
|
};
|
|
17
17
|
export declare function useCheckedSealInfoList(request: any): {
|
|
18
|
-
getDeptInfo: any
|
|
18
|
+
getDeptInfo: (this: any, params: any) => Promise<unknown>;
|
|
19
19
|
};
|
|
@@ -14,6 +14,8 @@ export interface IZtxkConfig {
|
|
|
14
14
|
price: number;
|
|
15
15
|
amount: number;
|
|
16
16
|
};
|
|
17
|
+
/** 下载水印版接口地址 /zmdms-scm-system/seal/download-watermark-attach */
|
|
18
|
+
downWaterApiUrl?: string;
|
|
17
19
|
}
|
|
18
20
|
declare const ZtxkContext: React.Context<IZtxkConfig>;
|
|
19
21
|
export default ZtxkContext;
|