@gct-paas/excel 0.1.19 → 0.1.21
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/{VueVideoPlayer-Bt1Le9qP.js → VueVideoPlayer-Bf0x69CJ.js} +2 -2
- package/dist/{agg-design-B_5evAJ0.js → agg-design-CLSOm6QJ.js} +1 -1
- package/dist/{agg-props-C62Ecenu.js → agg-props-4nnDqWtf.js} +1 -1
- package/dist/{agg-style-Q0xSL8Ye.js → agg-style-FHSkeH5u.js} +1 -1
- package/dist/{align-editor-D_LtYlh3.js → align-editor-Bf391dfO.js} +1 -1
- package/dist/{attach-fields-editor-3v3VNOfe.js → attach-fields-editor-U0Vg4ar8.js} +3 -2
- package/dist/{barcode-design-lusKmMnv.js → barcode-design-XLuURxqD.js} +2 -2
- package/dist/base/index.es.js +352 -177
- package/dist/{base-font-editor-DmasOst9.js → base-font-editor-adnb7ShQ.js} +3 -2
- package/dist/{boolean-design-BqGJVhKn.js → boolean-design-Bk3jIc2m.js} +2 -2
- package/dist/{boolean-props-DS7J4GHS.js → boolean-props-D1C7P7oX.js} +3 -3
- package/dist/{boolean-style-C9FslVV7.js → boolean-style-CWmep9-Y.js} +4 -4
- package/dist/{cell-upload-BFw5Yg_j.js → cell-upload-wzPF8ovv.js} +3 -2
- package/dist/{date-range-editor-PmJBHc8i.js → date-range-editor-CGCLkDFp.js} +3 -2
- package/dist/{date-time-design-DQ_Z-xUx.js → date-time-design-CG6fhsBd.js} +1 -1
- package/dist/{date-time-props-DfZoJukN.js → date-time-props-DGa4XIFD.js} +3 -3
- package/dist/{date-time-style-Doye-MHk.js → date-time-style-C5xs_HQX.js} +1 -1
- package/dist/{decimal-design-Bg-tdrtL.js → decimal-design-Dg2PWB7J.js} +1 -1
- package/dist/{decimal-display-mode-D_K6_XX1.js → decimal-display-mode-B5nxWZnK.js} +2 -2
- package/dist/{decimal-props-4QveEdf3.js → decimal-props-BUduwEu5.js} +4 -4
- package/dist/{decimal-style-B-n8SfAy.js → decimal-style-CW6QyMh0.js} +1 -1
- package/dist/{default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-B3GvGAje.js → default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-BlQSjkvP.js} +3 -2
- package/dist/{diagonal-design-B_l3lV5s.js → diagonal-design-xlveiCza.js} +2 -2
- package/dist/{double-design-BaWZXLjK.js → double-design-Dkzgoo0g.js} +1 -1
- package/dist/{double-props-sDsBpAER.js → double-props-DwI5z-Mz.js} +4 -4
- package/dist/{double-style--oSjQw07.js → double-style-B09n2Oup.js} +1 -1
- package/dist/{dynamic-table-action-zLjamAaN.js → dynamic-table-action-KwzaoPBC.js} +130 -271
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_94e9d614_lang-UooIxEeL.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-ByU7Owiw.js} +436 -306
- package/dist/{edit.utils-CXmmCnxE-BrwRVXLT.js → edit.utils-CXmmCnxE-Do4weQUL.js} +1 -1
- package/dist/{enum-design-BgVuHvvu.js → enum-design-D_hYB8q2.js} +2 -2
- package/dist/{enum-props-DYN6LsLg.js → enum-props-SHpVl7is.js} +4 -4
- package/dist/{enum-style-D56_-gMw.js → enum-style-zTZKj6Li.js} +3 -3
- package/dist/excel.css +10119 -10237
- package/dist/{exceljs.min-DQkwXbni.js → exceljs.min-Dy4OavkS.js} +2 -2
- package/dist/{expression-design-CIMwIArR.js → expression-design-DH37JCnd.js} +1 -1
- package/dist/{expression-props--l3LwKAM.js → expression-props-D4aZ2FzY.js} +1 -1
- package/dist/{expression-style-CjM5oro9.js → expression-style-Bj0tEmqJ.js} +1 -1
- package/dist/{file-design-BYcXA55B.js → file-design-hV82bwcT.js} +1 -1
- package/dist/{file-props-DvsQZUcL.js → file-props-BR0xOn8f.js} +2 -2
- package/dist/{file-style-BiWmCsMZ.js → file-style-CPXRGFCR.js} +1 -1
- package/dist/{font-editor-BaRVmXey.js → font-editor-QrOFLcNA.js} +3 -3
- package/dist/{image-design-Bad-BXel.js → image-design-B3FASJvR.js} +2 -2
- package/dist/{image-design-Dr_w89Hq.js → image-design-WqYFe8Hz.js} +2 -2
- package/dist/{image-props-4lKEAwDq.js → image-props-DZ0lHvNN.js} +1 -1
- package/dist/{image-style-LoHD1zvr.js → image-style-D3jSU46p.js} +1 -1
- package/dist/{index--Bxx_VqV.js → index-4aWfyi4S.js} +2 -2
- package/dist/{index-pPTh0-mL.js → index-B2JfWmQ5.js} +1 -1
- package/dist/{index-D4Yb4Urx.js → index-BCRANZ6N.js} +1 -1
- package/dist/index-BYFfjfXo.js +4198 -0
- package/dist/{index-Bsjegt_0.js → index-BYnhPyxm.js} +1 -1
- package/dist/{index-Vx5npC-J.js → index-B_bGf5j3.js} +2 -2
- package/dist/{index-DRYxbbtG.js → index-BgJenclY.js} +1 -1
- package/dist/{index-CH--dgZ4.js → index-BocrGDq2.js} +1 -1
- package/dist/{index-3qfB5NN-.js → index-BpacgAuY.js} +1 -1
- package/dist/{index-DDnUeBCP.js → index-C9uva5U9.js} +1 -1
- package/dist/{index-D-mFMP7t.js → index-CAp9OIUg.js} +2 -2
- package/dist/{index-COiTpNXf.js → index-CVsM5Bam.js} +1 -1
- package/dist/{index-Ce0SltjH.js → index-Cblyq6yH.js} +1 -1
- package/dist/{index-ByXwQO9g.js → index-ChFaMPeg.js} +2 -2
- package/dist/{index-CqjhgxKH.js → index-Cqh9EW_d.js} +9 -3
- package/dist/{index-B-2N8GeG.js → index-CquVE9ii.js} +1 -1
- package/dist/{index-Dk-CUvB9.js → index-CsLZerBY.js} +42714 -4640
- package/dist/{index-CQ7Hcly4.js → index-D8uy8whi.js} +1 -1
- package/dist/{index-CEufXc_2.js → index-DKR79OBc.js} +1 -1
- package/dist/{index-C7KdVTwU.js → index-DNHA-joo.js} +1 -1
- package/dist/{index-Bki98NXv.js → index-DU3SF4eg.js} +1 -1
- package/dist/{index-CcLTIQGc.js → index-DVaUctcz.js} +1 -1
- package/dist/{index-B9IMST50.js → index-DegtNz07.js} +1 -1
- package/dist/{index-B_VejD7m.js → index-DpFPYL8b.js} +1 -1
- package/dist/{index-BSfbsA-W.js → index-Dvp79b5b.js} +1 -1
- package/dist/{index-CP099vf_.js → index-DxgKf-wy.js} +1 -1
- package/dist/{index-BZYuG4zS.js → index-Jz0_ApK0.js} +1 -1
- package/dist/{index-C6mtZJIQ.js → index-Ol6_R1tg.js} +1 -1
- package/dist/{index-B3YoA1vo.js → index-RY064UmV.js} +1 -1
- package/dist/{index-BsUkUBZV.js → index-dECIkP6q.js} +1 -1
- package/dist/{index-DpPrrfLV.js → index-iGA3l7nd.js} +5 -1
- package/dist/{index-D9CHdykS.js → index-pMF19I7H.js} +1 -1
- package/dist/{index-Dq72GFzs.js → index-wmbtcxzT.js} +2 -2
- package/dist/index.es.js +45 -45
- package/dist/{integer-design-C2EkL0hc.js → integer-design-_-oIGMZi.js} +1 -1
- package/dist/{integer-props-Cs-CvjQS.js → integer-props-CbhqGTWT.js} +5 -4
- package/dist/{integer-style-BtAfQCAn.js → integer-style-CRDDq2e1.js} +1 -1
- package/dist/{mb-render-CsWNoQnS.js → mb-render-Bh6EegbE.js} +1 -30
- package/dist/{number-input-ex-eza87s5O.js → number-input-ex-n0MRaA8Z.js} +2 -1
- package/dist/{org-props-BJ6FKaVj.js → org-props-B_ED1XJd.js} +2 -2
- package/dist/{org-style-LRy5QsV5.js → org-style-P7mL2u1-.js} +1 -1
- package/dist/{pagination-design-sA-kbILI.js → pagination-design-CC2ZvE5K.js} +2 -2
- package/dist/paper-widget-design-CvvM0OZ2.js +4 -0
- package/dist/{qrcode-design-BsWJrsvD.js → qrcode-design-C_G8R7Lo.js} +1 -1
- package/dist/ref-autofill-editor-DdUMjliQ.js +2333 -0
- package/dist/{ref-props-BInJu7PN.js → ref-props-CCwA0E2w.js} +17 -9
- package/dist/{ref-style-Dgc_9tko.js → ref-style-C3Qy3L2V.js} +1 -1
- package/dist/{regex-editor-C09XpMhm.js → regex-editor-CswiNY9l.js} +3 -2
- package/dist/{revo-grid.entry-BIm5A5wM.js → revo-grid.entry-fhJrZlXs.js} +1 -1
- package/dist/{revogr-attribution_7.entry-B06XF5B_.js → revogr-attribution_7.entry-BxX5Aax7.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-C8dVJYtR.js → revogr-clipboard_3.entry-B84Mg6_S.js} +2 -2
- package/dist/{revogr-data_4.entry-Dgp6vYqe.js → revogr-data_4.entry-BSSMKH9X.js} +2 -2
- package/dist/{revogr-filter-panel.entry-xo_juIUc.js → revogr-filter-panel.entry-xjYp1Z8c.js} +1 -1
- package/dist/{select-render-type-editor.vue_vue_type_script_setup_true_lang-vIUGBOWr.js → select-render-type-editor.vue_vue_type_script_setup_true_lang-JwULnnUe.js} +2 -2
- package/dist/{serialnumber-design-mWcys6hI.js → serialnumber-design-qdEzFAi4.js} +1 -1
- package/dist/shared/index.es.js +26 -27
- package/dist/{signature-design-Dl-Lv5Z5.js → signature-design-DyLTKEwS.js} +1 -1
- package/dist/{signature-props-DSzpO-_r.js → signature-props-CXwqrh0H.js} +3 -3
- package/dist/{signature-style-Bk34vOsk.js → signature-style-ibNQSAPQ.js} +1 -1
- package/dist/{single-field-drop-CiPUMT9B.js → single-field-drop-BSdWy-C4.js} +3 -2
- package/dist/{size-editor-B5aunbUM.js → size-editor-8C1AxONY.js} +1 -1
- package/dist/src/nocode-base/src/components/document-quick-fill/fixed-quick-fill-modal.vue.d.ts +5 -1
- package/dist/src/nocode-base/src/components/document-quick-fill/quick-fill.util.d.ts +11 -6
- package/dist/src/nocode-base/src/components/document-sub-table-action/fixed-table-action.vue.d.ts +4 -0
- package/dist/src/nocode-base/src/hooks/annotation/form-annotation-controller.d.ts +14 -148
- package/dist/src/nocode-base/src/hooks/annotation/index.d.ts +0 -1
- package/dist/src/nocode-base/src/types/fields/i-select.d.ts +4 -0
- package/dist/src/nocode-base/src/types/fields/i-trace.d.ts +7 -0
- package/dist/src/nocode-web-render/src/index.d.ts +0 -1
- package/dist/src/online-form/src/views/__cell_widgets__/common/display-fields-editor/display-fields-editor.vue.d.ts +15 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/display-fields-editor/display-fields.util.d.ts +11 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/display-fields-editor/index.d.ts +3 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/quick-search-editor/index.d.ts +3 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/quick-search-editor/quick-search-editor.vue.d.ts +15 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/quick-search-editor/quick-search.util.d.ts +14 -0
- package/dist/src/online-form/src/views/designer/modules/panel/comps/quick-fill-config.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-data-init-config/common/data-source-title.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/common-select.util.d.ts +47 -0
- package/dist/src/shared/components/Signature/ui/sign-editor.vue.d.ts +2 -2
- package/dist/src/shared/components/field-transfer/components/field-transfer-modal.vue.d.ts +30 -0
- package/dist/src/shared/components/field-transfer/components/modal-wrapper.vue.d.ts +65 -0
- package/dist/src/shared/components/field-transfer/hooks/useModelField.d.ts +169 -0
- package/dist/src/shared/components/field-transfer/hooks/useTreeData.d.ts +139 -0
- package/dist/src/shared/components/field-transfer/index.d.ts +21 -0
- package/dist/src/shared/components/field-transfer/useFieldTransfer.d.ts +47 -0
- package/dist/src/shared/components/field-transfer/utils/enum.d.ts +6 -0
- package/dist/src/shared/components/field-transfer/utils/i18n.d.ts +1 -0
- package/dist/src/shared/components/field-transfer/utils/tree-tool.d.ts +6 -0
- package/dist/src/shared/components/version-select/version-select.vue.d.ts +2 -2
- package/dist/{text-design-BIFz5gw1.js → text-design-BzDtceUO.js} +2 -2
- package/dist/{text-design-C0dORvkP.js → text-design-Di-2lpQC.js} +2 -2
- package/dist/{text-props-ClHI-4aM.js → text-props-YXtd9DCt.js} +5 -5
- package/dist/{text-style-DANM5fvy.js → text-style-BtclwHUQ.js} +1 -1
- package/dist/{throttle-Cpk1LoGk-Da5HSLWc.js → throttle-Cpk1LoGk-BFMM5iqm.js} +1 -1
- package/dist/{timediff-design-BDCsQIal.js → timediff-design-DPDNHC4C.js} +1 -1
- package/dist/{trace-design-CKqq1WH_.js → trace-design-B2tffMF2.js} +2 -2
- package/dist/{trace-props-BI24XFMc.js → trace-props-CWTXFYZ9.js} +24 -16
- package/dist/{trace-style-CX1f7oZH.js → trace-style-AmSVnHXF.js} +1 -1
- package/dist/use-namespace-qtLS8nEh.js +88 -0
- package/dist/{user-props-gF7KPnP8.js → user-props-hR1saiG7.js} +2 -2
- package/dist/{user-style-DIouAMWa.js → user-style-BsMfhFHo.js} +1 -1
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-DHj-zNxm.js → value-editor.vue_vue_type_style_index_0_lang-zAPZ-2E_.js} +2 -2
- package/dist/{version-select-CL3QQGND.js → version-select-CeQP0Bne.js} +1041 -4
- package/dist/web-render/index.es.js +12 -955
- package/dist/{widget-barcode-DZiCyrQW.js → widget-barcode-DPdsvAF5.js} +4 -4
- package/dist/{widget-diagonal-D_Oz8te1.js → widget-diagonal-BfjZGony.js} +4 -3
- package/dist/{widget-image-TL_SLOap.js → widget-image-D_E_0ZEd.js} +5 -5
- package/dist/{widget-line-BQ-qcBUA.js → widget-line-SDiSxrzr.js} +2 -2
- package/dist/{widget-pagination-DciJE9qC.js → widget-pagination-DdIoe9Yy.js} +5 -5
- package/dist/{widget-power-B9KTIpwA.js → widget-power-hifeC3T0.js} +4 -3
- package/dist/{widget-qrcode-DRoj5rSy.js → widget-qrcode-DBEsM1iE.js} +3 -3
- package/dist/{widget-rangelimit-Ckgx3i4r.js → widget-rangelimit-clQ84tvq.js} +4 -3
- package/dist/{widget-serialnumber-aUkR-0yC.js → widget-serialnumber-BXvzHCYR.js} +1 -1
- package/dist/{widget-text-CJIT-hY3.js → widget-text-CPojsb_9.js} +5 -5
- package/dist/{widget-timediff-x-RQMdNg.js → widget-timediff-DGBZsme_.js} +2 -2
- package/package.json +1 -1
- package/dist/AntdIcon-C3RMq2zm.js +0 -1040
- package/dist/form-annotation-controller-Zw6OoPLe.js +0 -707
- package/dist/index-Bm6Hdoud.js +0 -41849
- package/dist/paper-widget-design-BGY5qu-K.js +0 -4
- package/dist/ref-autofill-editor-BbozAOcm.js +0 -673
- package/dist/src/nocode-base/src/hooks/annotation/types.d.ts +0 -16
- package/dist/src/nocode-web-render/src/annotation/form-abandon-medpro-modal.vue.d.ts +0 -15
- package/dist/src/nocode-web-render/src/annotation/form-abandon-modal.vue.d.ts +0 -15
- package/dist/src/nocode-web-render/src/annotation/form-abandon-v2-modal.vue.d.ts +0 -11
- package/dist/src/nocode-web-render/src/annotation/index.d.ts +0 -2
- package/dist/src/nocode-web-render/src/annotation/submit-form-change-modal.vue.d.ts +0 -104
- package/dist/src/nocode-web-render/src/annotation/use-annotation.d.ts +0 -37
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as api, u as useModal, G as useNamespace, _ as _export_sfc } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_94e9d614_lang-UooIxEeL.js";
|
|
5
|
-
import { createVNode, defineComponent, ref, reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, withCtx, computed, createBlock, mergeProps, createElementVNode, toDisplayString, createCommentVNode, createTextVNode } from "vue";
|
|
6
|
-
import "lodash-es";
|
|
7
|
-
import dayjs from "dayjs";
|
|
8
|
-
import { a as FormAnnotationController } from "../form-annotation-controller-Zw6OoPLe.js";
|
|
9
|
-
import { I as Icon } from "../AntdIcon-C3RMq2zm.js";
|
|
1
|
+
import { A, B, S, P, f, g, h, e, i, u } from "../index-BYFfjfXo.js";
|
|
2
|
+
import { message } from "ant-design-vue";
|
|
3
|
+
import { i as api } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-ByU7Owiw.js";
|
|
10
4
|
var PrintModeEnum = /* @__PURE__ */ ((PrintModeEnum2) => {
|
|
11
5
|
PrintModeEnum2["ASYNC"] = "async";
|
|
12
6
|
PrintModeEnum2["SYNC"] = "sync";
|
|
@@ -123,9 +117,9 @@ function downloadByUrl({
|
|
|
123
117
|
link.download = fileName || url.substring(url.lastIndexOf("/") + 1, url.length);
|
|
124
118
|
}
|
|
125
119
|
if (document.createEvent) {
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
link.dispatchEvent(
|
|
120
|
+
const e2 = document.createEvent("MouseEvents");
|
|
121
|
+
e2.initEvent("click", true, true);
|
|
122
|
+
link.dispatchEvent(e2);
|
|
129
123
|
return true;
|
|
130
124
|
}
|
|
131
125
|
}
|
|
@@ -142,955 +136,18 @@ async function unzipUrl({ url, appId }) {
|
|
|
142
136
|
const newWindow = window.open(`${path}`, "_blank", "noopener,noreferrer");
|
|
143
137
|
if (newWindow) newWindow.opener = null;
|
|
144
138
|
}
|
|
145
|
-
var ExclamationCircleFilled$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, "name": "exclamation-circle", "theme": "filled" };
|
|
146
|
-
function _objectSpread(target) {
|
|
147
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
148
|
-
var source = arguments[i2] != null ? Object(arguments[i2]) : {};
|
|
149
|
-
var ownKeys = Object.keys(source);
|
|
150
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
151
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
152
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
153
|
-
}));
|
|
154
|
-
}
|
|
155
|
-
ownKeys.forEach(function(key) {
|
|
156
|
-
_defineProperty(target, key, source[key]);
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
return target;
|
|
160
|
-
}
|
|
161
|
-
function _defineProperty(obj, key, value) {
|
|
162
|
-
if (key in obj) {
|
|
163
|
-
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
164
|
-
} else {
|
|
165
|
-
obj[key] = value;
|
|
166
|
-
}
|
|
167
|
-
return obj;
|
|
168
|
-
}
|
|
169
|
-
var ExclamationCircleFilled = function ExclamationCircleFilled2(props, context) {
|
|
170
|
-
var p2 = _objectSpread({}, props, context.attrs);
|
|
171
|
-
return createVNode(Icon, _objectSpread({}, p2, {
|
|
172
|
-
"icon": ExclamationCircleFilled$1
|
|
173
|
-
}), null);
|
|
174
|
-
};
|
|
175
|
-
ExclamationCircleFilled.displayName = "ExclamationCircleFilled";
|
|
176
|
-
ExclamationCircleFilled.inheritAttrs = false;
|
|
177
|
-
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
178
|
-
__name: "submit-form-change-modal",
|
|
179
|
-
props: {
|
|
180
|
-
disableUserName: { type: Boolean, default: true }
|
|
181
|
-
},
|
|
182
|
-
setup(__props) {
|
|
183
|
-
const ns = useNamespace("submit-form-change-modal");
|
|
184
|
-
const switchRef = ref();
|
|
185
|
-
const signMode = ref(SignMode.PASSWORD);
|
|
186
|
-
const formData = reactive({
|
|
187
|
-
signInfo: void 0
|
|
188
|
-
});
|
|
189
|
-
const formRef = ref();
|
|
190
|
-
const setSignature = async () => {
|
|
191
|
-
try {
|
|
192
|
-
const signInfo = await switchRef.value?.submit();
|
|
193
|
-
formData.signInfo = signInfo;
|
|
194
|
-
console.log("保存", signInfo);
|
|
195
|
-
} catch (error) {
|
|
196
|
-
throw error;
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
useModal(async () => {
|
|
200
|
-
await setSignature();
|
|
201
|
-
await formRef.value?.validate();
|
|
202
|
-
return {
|
|
203
|
-
ok: true,
|
|
204
|
-
data: [formData]
|
|
205
|
-
};
|
|
206
|
-
});
|
|
207
|
-
return (_ctx, _cache) => {
|
|
208
|
-
const _component_a_form_item = resolveComponent("a-form-item");
|
|
209
|
-
const _component_a_form = resolveComponent("a-form");
|
|
210
|
-
return openBlock(), createElementBlock("div", {
|
|
211
|
-
class: normalizeClass(unref(ns).b())
|
|
212
|
-
}, [
|
|
213
|
-
createVNode(_component_a_form, {
|
|
214
|
-
ref_key: "formRef",
|
|
215
|
-
ref: formRef,
|
|
216
|
-
model: formData,
|
|
217
|
-
class: normalizeClass(["content", "gct-label-wrap-form"])
|
|
218
|
-
}, {
|
|
219
|
-
default: withCtx(() => [
|
|
220
|
-
createVNode(_component_a_form_item, { name: "signInfo" }, {
|
|
221
|
-
default: withCtx(() => [
|
|
222
|
-
createVNode(unref(SignSwitcher), {
|
|
223
|
-
required: true,
|
|
224
|
-
ref_key: "switchRef",
|
|
225
|
-
ref: switchRef,
|
|
226
|
-
"fix-sign-mode": true,
|
|
227
|
-
"sign-mode": signMode.value,
|
|
228
|
-
disableUserName: __props.disableUserName
|
|
229
|
-
}, null, 8, ["sign-mode", "disableUserName"])
|
|
230
|
-
]),
|
|
231
|
-
_: 1
|
|
232
|
-
})
|
|
233
|
-
]),
|
|
234
|
-
_: 1
|
|
235
|
-
}, 8, ["model"])
|
|
236
|
-
], 2);
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
const SubmitFormChangeModal = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-1716cad6"]]);
|
|
241
|
-
const _hoisted_1$2 = {
|
|
242
|
-
class: /* @__PURE__ */ normalizeClass(["title"])
|
|
243
|
-
};
|
|
244
|
-
const _hoisted_2$2 = { class: "abandon-signature-item" };
|
|
245
|
-
const _hoisted_3$2 = {
|
|
246
|
-
key: 0,
|
|
247
|
-
class: "abandon-signature-img-wrapper"
|
|
248
|
-
};
|
|
249
|
-
const _hoisted_4$2 = ["src"];
|
|
250
|
-
const _hoisted_5$2 = { class: "abandon-signature-meta-row" };
|
|
251
|
-
const _hoisted_6$2 = {
|
|
252
|
-
key: 0,
|
|
253
|
-
class: "abandon-signature-meta"
|
|
254
|
-
};
|
|
255
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
256
|
-
__name: "form-abandon-v2-modal",
|
|
257
|
-
props: {
|
|
258
|
-
docName: {},
|
|
259
|
-
isFormChange: { type: Boolean },
|
|
260
|
-
options: {},
|
|
261
|
-
okCallback: {},
|
|
262
|
-
cancelCallback: {}
|
|
263
|
-
},
|
|
264
|
-
setup(__props) {
|
|
265
|
-
const ns = useNamespace("form-abandon-v2-modal");
|
|
266
|
-
const okLoading = ref(false);
|
|
267
|
-
const visible = ref(true);
|
|
268
|
-
const submitting = ref(false);
|
|
269
|
-
const props = __props;
|
|
270
|
-
const formData = reactive({
|
|
271
|
-
reason: "",
|
|
272
|
-
applicant: {}
|
|
273
|
-
});
|
|
274
|
-
const formRef = ref();
|
|
275
|
-
const rules = reactive({
|
|
276
|
-
applicant: [{ validator: modifiedValidator, required: true }]
|
|
277
|
-
});
|
|
278
|
-
const labelInfo = computed(() => {
|
|
279
|
-
if (props.isFormChange) {
|
|
280
|
-
return {
|
|
281
|
-
headerTitle: $t("sys.onlineForm.formChangeConfirmTitle1", { name: props.docName }),
|
|
282
|
-
submitBtnTitle: $t("sys.onlineForm.selectChangeProcess"),
|
|
283
|
-
applicantLabel: $t("sys.edhr.changedUser"),
|
|
284
|
-
reasonLabel: $t("sys.onlineForm.formChangeReason")
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
return {
|
|
288
|
-
headerTitle: $t("sys.onlineForm.formAbandonConfirmTitle", { name: props.docName }),
|
|
289
|
-
submitBtnTitle: $t("sys.onlineForm.selectVoidProcess"),
|
|
290
|
-
applicantLabel: $t("sys.onlineForm.voidPerson"),
|
|
291
|
-
reasonLabel: $t("sys.onlineForm.formAbandonReason")
|
|
292
|
-
};
|
|
293
|
-
});
|
|
294
|
-
function modifiedValidator(_rule, value) {
|
|
295
|
-
if (!value || !(value.url || value.username)) {
|
|
296
|
-
return Promise.reject(new Error($t("sys.onlineForm.pleaseSign")));
|
|
297
|
-
}
|
|
298
|
-
return Promise.resolve();
|
|
299
|
-
}
|
|
300
|
-
async function openSignature(field) {
|
|
301
|
-
const result = await window.NocodeAdapter.utils.overlay.modal(
|
|
302
|
-
SubmitFormChangeModal,
|
|
303
|
-
{},
|
|
304
|
-
{
|
|
305
|
-
title: $t("sys.component.dataConnection.modelField.sign"),
|
|
306
|
-
centered: true,
|
|
307
|
-
width: 600
|
|
308
|
-
}
|
|
309
|
-
);
|
|
310
|
-
if (result.ok) {
|
|
311
|
-
const signInfo = result.data?.[0].signInfo;
|
|
312
|
-
formData[field] = {
|
|
313
|
-
url: signInfo.url,
|
|
314
|
-
time: signInfo.time,
|
|
315
|
-
historyId: signInfo.historyId,
|
|
316
|
-
username: signInfo.username
|
|
317
|
-
};
|
|
318
|
-
formRef.value?.clearValidate([field]);
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
function clearSignature(field) {
|
|
322
|
-
formData[field] = {};
|
|
323
|
-
formRef.value?.clearValidate([field]);
|
|
324
|
-
}
|
|
325
|
-
const handleOk = async () => {
|
|
326
|
-
if (submitting.value) return;
|
|
327
|
-
submitting.value = true;
|
|
328
|
-
okLoading.value = true;
|
|
329
|
-
try {
|
|
330
|
-
await formRef.value?.validate();
|
|
331
|
-
const categoryId = props.isFormChange ? "__change_process__" : "__abandon_process__";
|
|
332
|
-
if (!window.NocodeAdapter.hooks?.selectProcessModal) {
|
|
333
|
-
alert("请传入流程选择组件");
|
|
334
|
-
return;
|
|
335
|
-
}
|
|
336
|
-
const res = await window.NocodeAdapter.hooks?.selectProcessModal?.({
|
|
337
|
-
title: $t("sys.onlineForm.processSelection"),
|
|
338
|
-
categoryId
|
|
339
|
-
});
|
|
340
|
-
if (res.ok) {
|
|
341
|
-
await props.okCallback({ ...formData, approveTmplId: res.data.id });
|
|
342
|
-
visible.value = false;
|
|
343
|
-
}
|
|
344
|
-
} catch (err) {
|
|
345
|
-
} finally {
|
|
346
|
-
submitting.value = false;
|
|
347
|
-
okLoading.value = false;
|
|
348
|
-
}
|
|
349
|
-
};
|
|
350
|
-
const handleCancel = () => {
|
|
351
|
-
visible.value = false;
|
|
352
|
-
props.cancelCallback();
|
|
353
|
-
};
|
|
354
|
-
return (_ctx, _cache) => {
|
|
355
|
-
const _component_a_button = resolveComponent("a-button");
|
|
356
|
-
const _component_a_form_item = resolveComponent("a-form-item");
|
|
357
|
-
const _component_a_textarea = resolveComponent("a-textarea");
|
|
358
|
-
const _component_a_form = resolveComponent("a-form");
|
|
359
|
-
const _component_a_modal = resolveComponent("a-modal");
|
|
360
|
-
return openBlock(), createBlock(_component_a_modal, mergeProps({
|
|
361
|
-
closable: false,
|
|
362
|
-
visible: visible.value
|
|
363
|
-
}, props.options ?? {}, {
|
|
364
|
-
wrapClassName: [unref(ns).e("wrap")].join(" "),
|
|
365
|
-
destroyOnClose: "",
|
|
366
|
-
centered: true,
|
|
367
|
-
keyboard: false,
|
|
368
|
-
okText: labelInfo.value.submitBtnTitle,
|
|
369
|
-
cancelText: _ctx.$t("sys.cancel"),
|
|
370
|
-
okButtonProps: { loading: okLoading.value },
|
|
371
|
-
onOk: handleOk,
|
|
372
|
-
onCancel: handleCancel
|
|
373
|
-
}), {
|
|
374
|
-
default: withCtx(() => [
|
|
375
|
-
createElementVNode("div", {
|
|
376
|
-
class: normalizeClass([unref(ns).e("header")])
|
|
377
|
-
}, [
|
|
378
|
-
createVNode(unref(ExclamationCircleFilled), {
|
|
379
|
-
class: normalizeClass([unref(ns).e("icon")])
|
|
380
|
-
}, null, 8, ["class"]),
|
|
381
|
-
createElementVNode("span", _hoisted_1$2, toDisplayString(labelInfo.value.headerTitle), 1)
|
|
382
|
-
], 2),
|
|
383
|
-
createVNode(_component_a_form, {
|
|
384
|
-
ref_key: "formRef",
|
|
385
|
-
ref: formRef,
|
|
386
|
-
model: formData,
|
|
387
|
-
rules,
|
|
388
|
-
"label-col": { span: 5 },
|
|
389
|
-
class: normalizeClass(["content", "gct-label-wrap-form"])
|
|
390
|
-
}, {
|
|
391
|
-
default: withCtx(() => [
|
|
392
|
-
createVNode(_component_a_form_item, {
|
|
393
|
-
labelWrap: true,
|
|
394
|
-
name: "applicant",
|
|
395
|
-
label: labelInfo.value.applicantLabel,
|
|
396
|
-
required: ""
|
|
397
|
-
}, {
|
|
398
|
-
default: withCtx(() => [
|
|
399
|
-
createElementVNode("div", _hoisted_2$2, [
|
|
400
|
-
formData.applicant.url || formData.applicant.username ? (openBlock(), createElementBlock("div", _hoisted_3$2, [
|
|
401
|
-
createElementVNode("img", {
|
|
402
|
-
src: unref(getPreviewUrl)(formData.applicant.url, formData.applicant.username),
|
|
403
|
-
class: "abandon-signature-img"
|
|
404
|
-
}, null, 8, _hoisted_4$2),
|
|
405
|
-
createElementVNode("div", _hoisted_5$2, [
|
|
406
|
-
formData.applicant.time ? (openBlock(), createElementBlock("div", _hoisted_6$2, toDisplayString(_ctx.$t("sys.onlineForm.signatureDate")) + ":" + toDisplayString(unref(dayjs)(formData.applicant.time).format("YYYY-MM-DD HH:mm")), 1)) : createCommentVNode("", true),
|
|
407
|
-
createVNode(_component_a_button, {
|
|
408
|
-
type: "link",
|
|
409
|
-
danger: "",
|
|
410
|
-
class: "abandon-signature-delete-btn",
|
|
411
|
-
onClick: _cache[0] || (_cache[0] = ($event) => clearSignature("applicant"))
|
|
412
|
-
}, {
|
|
413
|
-
default: withCtx(() => [
|
|
414
|
-
createTextVNode(toDisplayString(_ctx.$t("sys.onlineForm.deleteSignature")), 1)
|
|
415
|
-
]),
|
|
416
|
-
_: 1
|
|
417
|
-
})
|
|
418
|
-
])
|
|
419
|
-
])) : (openBlock(), createBlock(_component_a_button, {
|
|
420
|
-
key: 1,
|
|
421
|
-
onClick: _cache[1] || (_cache[1] = ($event) => openSignature("applicant"))
|
|
422
|
-
}, {
|
|
423
|
-
default: withCtx(() => [
|
|
424
|
-
createTextVNode(toDisplayString(_ctx.$t("sys.onlineForm.clickToSign")), 1)
|
|
425
|
-
]),
|
|
426
|
-
_: 1
|
|
427
|
-
}))
|
|
428
|
-
])
|
|
429
|
-
]),
|
|
430
|
-
_: 1
|
|
431
|
-
}, 8, ["label"]),
|
|
432
|
-
createVNode(_component_a_form_item, {
|
|
433
|
-
name: "reason",
|
|
434
|
-
label: labelInfo.value.reasonLabel,
|
|
435
|
-
rules: [
|
|
436
|
-
{
|
|
437
|
-
required: true,
|
|
438
|
-
message: _ctx.$t("sys.inputTextTip", { name: labelInfo.value.reasonLabel })
|
|
439
|
-
}
|
|
440
|
-
],
|
|
441
|
-
labelWrap: true
|
|
442
|
-
}, {
|
|
443
|
-
default: withCtx(() => [
|
|
444
|
-
createVNode(_component_a_textarea, {
|
|
445
|
-
value: formData.reason,
|
|
446
|
-
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => formData.reason = $event),
|
|
447
|
-
placeholder: _ctx.$t("sys.inputText"),
|
|
448
|
-
rows: 3,
|
|
449
|
-
"show-count": "",
|
|
450
|
-
maxlength: 120
|
|
451
|
-
}, null, 8, ["value", "placeholder"])
|
|
452
|
-
]),
|
|
453
|
-
_: 1
|
|
454
|
-
}, 8, ["label", "rules"])
|
|
455
|
-
]),
|
|
456
|
-
_: 1
|
|
457
|
-
}, 8, ["model", "rules"])
|
|
458
|
-
]),
|
|
459
|
-
_: 1
|
|
460
|
-
}, 16, ["visible", "wrapClassName", "okText", "cancelText", "okButtonProps"]);
|
|
461
|
-
};
|
|
462
|
-
}
|
|
463
|
-
});
|
|
464
|
-
const FormAbandonV2Modal = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-9c791c70"]]);
|
|
465
|
-
const _hoisted_1$1 = {
|
|
466
|
-
class: /* @__PURE__ */ normalizeClass(["title"])
|
|
467
|
-
};
|
|
468
|
-
const _hoisted_2$1 = { class: "abandon-signature-item" };
|
|
469
|
-
const _hoisted_3$1 = {
|
|
470
|
-
key: 0,
|
|
471
|
-
class: "abandon-signature-img-wrapper"
|
|
472
|
-
};
|
|
473
|
-
const _hoisted_4$1 = ["src"];
|
|
474
|
-
const _hoisted_5$1 = { class: "abandon-signature-meta-row" };
|
|
475
|
-
const _hoisted_6$1 = {
|
|
476
|
-
key: 0,
|
|
477
|
-
class: "abandon-signature-meta"
|
|
478
|
-
};
|
|
479
|
-
const _hoisted_7$1 = { class: "abandon-signature-item" };
|
|
480
|
-
const _hoisted_8$1 = {
|
|
481
|
-
key: 0,
|
|
482
|
-
class: "abandon-signature-img-wrapper"
|
|
483
|
-
};
|
|
484
|
-
const _hoisted_9$1 = ["src"];
|
|
485
|
-
const _hoisted_10$1 = { class: "abandon-signature-meta-row" };
|
|
486
|
-
const _hoisted_11$1 = {
|
|
487
|
-
key: 0,
|
|
488
|
-
class: "abandon-signature-meta"
|
|
489
|
-
};
|
|
490
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
491
|
-
__name: "form-abandon-modal",
|
|
492
|
-
props: {
|
|
493
|
-
userName: {},
|
|
494
|
-
docName: {},
|
|
495
|
-
isShowTip: { type: Boolean },
|
|
496
|
-
options: {},
|
|
497
|
-
isFormChange: { type: Boolean },
|
|
498
|
-
isDhr: { type: Boolean, default: false },
|
|
499
|
-
okCallback: {}
|
|
500
|
-
},
|
|
501
|
-
setup(__props) {
|
|
502
|
-
const ns = useNamespace("form-abandon-modal");
|
|
503
|
-
const visible = ref(true);
|
|
504
|
-
const submitting = ref(false);
|
|
505
|
-
const props = __props;
|
|
506
|
-
const formData = reactive({
|
|
507
|
-
reason: "",
|
|
508
|
-
applicant: {},
|
|
509
|
-
reviewer: {}
|
|
510
|
-
});
|
|
511
|
-
const formRef = ref();
|
|
512
|
-
const rules = reactive({
|
|
513
|
-
applicant: [{ validator: modifiedValidator, required: true }],
|
|
514
|
-
reviewer: [
|
|
515
|
-
{
|
|
516
|
-
validator: (rule, value) => {
|
|
517
|
-
if (!(formData.applicant.url || formData.applicant.username)) {
|
|
518
|
-
return Promise.reject(
|
|
519
|
-
new Error($t("sys.onlineForm.pleaseFillSubmitterSignatureFirst"))
|
|
520
|
-
);
|
|
521
|
-
}
|
|
522
|
-
if (!value || !(value.url || value.username)) {
|
|
523
|
-
return Promise.reject(new Error($t("sys.onlineForm.pleaseSign")));
|
|
524
|
-
}
|
|
525
|
-
return Promise.resolve();
|
|
526
|
-
},
|
|
527
|
-
required: true
|
|
528
|
-
}
|
|
529
|
-
]
|
|
530
|
-
});
|
|
531
|
-
function modifiedValidator(_rule, value) {
|
|
532
|
-
if (!value || !(value.url || value.username)) {
|
|
533
|
-
return Promise.reject(new Error($t("sys.onlineForm.pleaseSign")));
|
|
534
|
-
}
|
|
535
|
-
return Promise.resolve();
|
|
536
|
-
}
|
|
537
|
-
async function openSignature(field) {
|
|
538
|
-
const result = await window.NocodeAdapter.utils.overlay.modal(
|
|
539
|
-
SubmitFormChangeModal,
|
|
540
|
-
{
|
|
541
|
-
disableUserName: field === "applicant"
|
|
542
|
-
},
|
|
543
|
-
{
|
|
544
|
-
title: $t("sys.component.dataConnection.modelField.sign"),
|
|
545
|
-
centered: true,
|
|
546
|
-
width: 600
|
|
547
|
-
}
|
|
548
|
-
);
|
|
549
|
-
if (result.ok) {
|
|
550
|
-
const signInfo = result.data?.[0].signInfo;
|
|
551
|
-
formData[field] = {
|
|
552
|
-
url: signInfo.url,
|
|
553
|
-
time: signInfo.time,
|
|
554
|
-
historyId: signInfo.historyId,
|
|
555
|
-
username: signInfo.username
|
|
556
|
-
};
|
|
557
|
-
formRef.value?.clearValidate([field]);
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
function clearSignature(field) {
|
|
561
|
-
formData[field] = {};
|
|
562
|
-
formRef.value?.clearValidate([field]);
|
|
563
|
-
if (field === "applicant") {
|
|
564
|
-
formData.reviewer = {};
|
|
565
|
-
formRef.value?.clearValidate(["reviewer"]);
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
const handleOk = async () => {
|
|
569
|
-
if (submitting.value) return;
|
|
570
|
-
submitting.value = true;
|
|
571
|
-
try {
|
|
572
|
-
await formRef.value?.validate();
|
|
573
|
-
await props.okCallback({ ...formData });
|
|
574
|
-
visible.value = false;
|
|
575
|
-
} catch (err) {
|
|
576
|
-
} finally {
|
|
577
|
-
submitting.value = false;
|
|
578
|
-
}
|
|
579
|
-
};
|
|
580
|
-
const handleCancel = () => {
|
|
581
|
-
visible.value = false;
|
|
582
|
-
};
|
|
583
|
-
return (_ctx, _cache) => {
|
|
584
|
-
const _component_a_button = resolveComponent("a-button");
|
|
585
|
-
const _component_a_form_item = resolveComponent("a-form-item");
|
|
586
|
-
const _component_a_textarea = resolveComponent("a-textarea");
|
|
587
|
-
const _component_a_form = resolveComponent("a-form");
|
|
588
|
-
const _component_a_modal = resolveComponent("a-modal");
|
|
589
|
-
return openBlock(), createBlock(_component_a_modal, mergeProps({
|
|
590
|
-
closable: false,
|
|
591
|
-
visible: visible.value
|
|
592
|
-
}, props.options ?? {}, {
|
|
593
|
-
wrapClassName: [unref(ns).e("wrap")].join(" "),
|
|
594
|
-
destroyOnClose: "",
|
|
595
|
-
centered: true,
|
|
596
|
-
keyboard: false,
|
|
597
|
-
okText: _ctx.$t("sys.ok"),
|
|
598
|
-
cancelText: _ctx.$t("sys.cancel"),
|
|
599
|
-
onOk: handleOk,
|
|
600
|
-
onCancel: handleCancel
|
|
601
|
-
}), {
|
|
602
|
-
default: withCtx(() => [
|
|
603
|
-
!__props.isFormChange ? (openBlock(), createElementBlock("div", {
|
|
604
|
-
key: 0,
|
|
605
|
-
class: normalizeClass([unref(ns).e("header")])
|
|
606
|
-
}, [
|
|
607
|
-
createVNode(unref(ExclamationCircleFilled), {
|
|
608
|
-
class: normalizeClass([unref(ns).e("icon")])
|
|
609
|
-
}, null, 8, ["class"]),
|
|
610
|
-
createElementVNode("span", _hoisted_1$1, toDisplayString(__props.isDhr ? _ctx.$t("sys.edhr.edhrAbandonConfirmTitle", { name: __props.docName }) : _ctx.$t("sys.onlineForm.formAbandonConfirmTitle", { name: __props.docName })), 1)
|
|
611
|
-
], 2)) : createCommentVNode("", true),
|
|
612
|
-
createVNode(_component_a_form, {
|
|
613
|
-
ref_key: "formRef",
|
|
614
|
-
ref: formRef,
|
|
615
|
-
model: formData,
|
|
616
|
-
rules,
|
|
617
|
-
class: normalizeClass(["content", "gct-label-wrap-form"])
|
|
618
|
-
}, {
|
|
619
|
-
default: withCtx(() => [
|
|
620
|
-
createVNode(_component_a_form_item, {
|
|
621
|
-
name: "applicant",
|
|
622
|
-
label: _ctx.$t("sys.process.submitBy"),
|
|
623
|
-
required: ""
|
|
624
|
-
}, {
|
|
625
|
-
default: withCtx(() => [
|
|
626
|
-
createElementVNode("div", _hoisted_2$1, [
|
|
627
|
-
formData.applicant.url || formData.applicant.username ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
|
|
628
|
-
createElementVNode("img", {
|
|
629
|
-
src: unref(getPreviewUrl)(formData.applicant.url, formData.applicant.username),
|
|
630
|
-
class: "abandon-signature-img"
|
|
631
|
-
}, null, 8, _hoisted_4$1),
|
|
632
|
-
createElementVNode("div", _hoisted_5$1, [
|
|
633
|
-
formData.applicant.time ? (openBlock(), createElementBlock("div", _hoisted_6$1, toDisplayString(_ctx.$t("sys.onlineForm.signatureDate")) + ":" + toDisplayString(unref(dayjs)(formData.applicant.time).format("YYYY-MM-DD HH:mm")), 1)) : createCommentVNode("", true),
|
|
634
|
-
createVNode(_component_a_button, {
|
|
635
|
-
type: "link",
|
|
636
|
-
danger: "",
|
|
637
|
-
class: "abandon-signature-delete-btn",
|
|
638
|
-
onClick: _cache[0] || (_cache[0] = ($event) => clearSignature("applicant"))
|
|
639
|
-
}, {
|
|
640
|
-
default: withCtx(() => [
|
|
641
|
-
createTextVNode(toDisplayString(_ctx.$t("sys.onlineForm.deleteSignature")), 1)
|
|
642
|
-
]),
|
|
643
|
-
_: 1
|
|
644
|
-
})
|
|
645
|
-
])
|
|
646
|
-
])) : (openBlock(), createBlock(_component_a_button, {
|
|
647
|
-
key: 1,
|
|
648
|
-
onClick: _cache[1] || (_cache[1] = ($event) => openSignature("applicant"))
|
|
649
|
-
}, {
|
|
650
|
-
default: withCtx(() => [
|
|
651
|
-
createTextVNode(toDisplayString(_ctx.$t("sys.onlineForm.clickToSign")), 1)
|
|
652
|
-
]),
|
|
653
|
-
_: 1
|
|
654
|
-
}))
|
|
655
|
-
])
|
|
656
|
-
]),
|
|
657
|
-
_: 1
|
|
658
|
-
}, 8, ["label"]),
|
|
659
|
-
createVNode(_component_a_form_item, {
|
|
660
|
-
name: "reviewer",
|
|
661
|
-
label: _ctx.$t("sys.onlineForm.reviewer2"),
|
|
662
|
-
required: ""
|
|
663
|
-
}, {
|
|
664
|
-
default: withCtx(() => [
|
|
665
|
-
createElementVNode("div", _hoisted_7$1, [
|
|
666
|
-
formData.reviewer.url || formData.reviewer.username ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
|
|
667
|
-
createElementVNode("img", {
|
|
668
|
-
src: unref(getPreviewUrl)(formData.reviewer.url, formData.reviewer.username),
|
|
669
|
-
class: "abandon-signature-img"
|
|
670
|
-
}, null, 8, _hoisted_9$1),
|
|
671
|
-
createElementVNode("div", _hoisted_10$1, [
|
|
672
|
-
formData.reviewer.time ? (openBlock(), createElementBlock("div", _hoisted_11$1, toDisplayString(_ctx.$t("sys.onlineForm.signatureDate")) + ":" + toDisplayString(unref(dayjs)(formData.reviewer.time).format("YYYY-MM-DD HH:mm")), 1)) : createCommentVNode("", true),
|
|
673
|
-
createVNode(_component_a_button, {
|
|
674
|
-
type: "link",
|
|
675
|
-
danger: "",
|
|
676
|
-
class: "abandon-signature-delete-btn",
|
|
677
|
-
onClick: _cache[2] || (_cache[2] = ($event) => clearSignature("reviewer"))
|
|
678
|
-
}, {
|
|
679
|
-
default: withCtx(() => [
|
|
680
|
-
createTextVNode(toDisplayString(_ctx.$t("sys.onlineForm.deleteSignature")), 1)
|
|
681
|
-
]),
|
|
682
|
-
_: 1
|
|
683
|
-
})
|
|
684
|
-
])
|
|
685
|
-
])) : (openBlock(), createBlock(_component_a_button, {
|
|
686
|
-
key: 1,
|
|
687
|
-
onClick: _cache[3] || (_cache[3] = ($event) => openSignature("reviewer")),
|
|
688
|
-
disabled: !(formData.applicant.url || formData.applicant.username)
|
|
689
|
-
}, {
|
|
690
|
-
default: withCtx(() => [
|
|
691
|
-
createTextVNode(toDisplayString(_ctx.$t("sys.onlineForm.clickToSign")), 1)
|
|
692
|
-
]),
|
|
693
|
-
_: 1
|
|
694
|
-
}, 8, ["disabled"]))
|
|
695
|
-
])
|
|
696
|
-
]),
|
|
697
|
-
_: 1
|
|
698
|
-
}, 8, ["label"]),
|
|
699
|
-
!__props.isFormChange ? (openBlock(), createBlock(_component_a_form_item, {
|
|
700
|
-
key: 0,
|
|
701
|
-
name: "reason",
|
|
702
|
-
label: _ctx.$t("sys.onlineForm.formAbandonReason"),
|
|
703
|
-
rules: [
|
|
704
|
-
{
|
|
705
|
-
required: true,
|
|
706
|
-
message: _ctx.$t("sys.inputTextTip", { name: _ctx.$t("sys.onlineForm.formAbandonReason") })
|
|
707
|
-
}
|
|
708
|
-
]
|
|
709
|
-
}, {
|
|
710
|
-
default: withCtx(() => [
|
|
711
|
-
createVNode(_component_a_textarea, {
|
|
712
|
-
value: formData.reason,
|
|
713
|
-
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => formData.reason = $event),
|
|
714
|
-
placeholder: _ctx.$t("sys.inputText"),
|
|
715
|
-
rows: 3,
|
|
716
|
-
"show-count": "",
|
|
717
|
-
maxlength: 120
|
|
718
|
-
}, null, 8, ["value", "placeholder"])
|
|
719
|
-
]),
|
|
720
|
-
_: 1
|
|
721
|
-
}, 8, ["label", "rules"])) : createCommentVNode("", true)
|
|
722
|
-
]),
|
|
723
|
-
_: 1
|
|
724
|
-
}, 8, ["model", "rules"]),
|
|
725
|
-
__props.isShowTip ? (openBlock(), createElementBlock("div", {
|
|
726
|
-
key: 1,
|
|
727
|
-
class: normalizeClass([unref(ns).e("tip")])
|
|
728
|
-
}, toDisplayString(_ctx.$t("sys.onlineForm.formAbandonConfirmTipNew")), 3)) : createCommentVNode("", true)
|
|
729
|
-
]),
|
|
730
|
-
_: 1
|
|
731
|
-
}, 16, ["visible", "wrapClassName", "okText", "cancelText"]);
|
|
732
|
-
};
|
|
733
|
-
}
|
|
734
|
-
});
|
|
735
|
-
const FormAbandonModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-254d9a97"]]);
|
|
736
|
-
const _hoisted_1 = {
|
|
737
|
-
class: /* @__PURE__ */ normalizeClass(["title"])
|
|
738
|
-
};
|
|
739
|
-
const _hoisted_2 = { class: "abandon-signature-item" };
|
|
740
|
-
const _hoisted_3 = {
|
|
741
|
-
key: 0,
|
|
742
|
-
class: "abandon-signature-img-wrapper"
|
|
743
|
-
};
|
|
744
|
-
const _hoisted_4 = ["src"];
|
|
745
|
-
const _hoisted_5 = { class: "abandon-signature-meta-row" };
|
|
746
|
-
const _hoisted_6 = {
|
|
747
|
-
key: 0,
|
|
748
|
-
class: "abandon-signature-meta"
|
|
749
|
-
};
|
|
750
|
-
const _hoisted_7 = { class: "abandon-signature-item" };
|
|
751
|
-
const _hoisted_8 = {
|
|
752
|
-
key: 0,
|
|
753
|
-
class: "abandon-signature-img-wrapper"
|
|
754
|
-
};
|
|
755
|
-
const _hoisted_9 = ["src"];
|
|
756
|
-
const _hoisted_10 = { class: "abandon-signature-meta-row" };
|
|
757
|
-
const _hoisted_11 = {
|
|
758
|
-
key: 0,
|
|
759
|
-
class: "abandon-signature-meta"
|
|
760
|
-
};
|
|
761
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
762
|
-
__name: "form-abandon-medpro-modal",
|
|
763
|
-
props: {
|
|
764
|
-
userName: {},
|
|
765
|
-
docName: {},
|
|
766
|
-
isShowTip: { type: Boolean },
|
|
767
|
-
options: {},
|
|
768
|
-
isFormChange: { type: Boolean },
|
|
769
|
-
isDhr: { type: Boolean, default: false },
|
|
770
|
-
okCallback: {}
|
|
771
|
-
},
|
|
772
|
-
setup(__props) {
|
|
773
|
-
const ns = useNamespace("form-abandon-modal");
|
|
774
|
-
const visible = ref(true);
|
|
775
|
-
const submitting = ref(false);
|
|
776
|
-
const props = __props;
|
|
777
|
-
const formData = reactive({
|
|
778
|
-
reason: "",
|
|
779
|
-
applicant: {},
|
|
780
|
-
reviewer: {}
|
|
781
|
-
});
|
|
782
|
-
const formRef = ref();
|
|
783
|
-
const rules = reactive({
|
|
784
|
-
applicant: [{ validator: modifiedValidator, required: true }],
|
|
785
|
-
reviewer: [
|
|
786
|
-
{
|
|
787
|
-
validator: (rule, value) => {
|
|
788
|
-
if (!(formData.applicant.url || formData.applicant.username)) {
|
|
789
|
-
return Promise.reject(
|
|
790
|
-
new Error($t("sys.onlineForm.pleaseFillSubmitterSignatureFirst"))
|
|
791
|
-
);
|
|
792
|
-
}
|
|
793
|
-
if (!value || !(value.url || value.username)) {
|
|
794
|
-
return Promise.reject(new Error($t("sys.onlineForm.pleaseSign")));
|
|
795
|
-
}
|
|
796
|
-
return Promise.resolve();
|
|
797
|
-
},
|
|
798
|
-
required: true
|
|
799
|
-
}
|
|
800
|
-
]
|
|
801
|
-
});
|
|
802
|
-
function modifiedValidator(_rule, value) {
|
|
803
|
-
if (!value || !(value.url || value.username)) {
|
|
804
|
-
return Promise.reject(new Error($t("sys.onlineForm.pleaseSign")));
|
|
805
|
-
}
|
|
806
|
-
return Promise.resolve();
|
|
807
|
-
}
|
|
808
|
-
async function openSignature(field) {
|
|
809
|
-
const result = await window.NocodeAdapter.utils.overlay.modal(
|
|
810
|
-
SubmitFormChangeModal,
|
|
811
|
-
{},
|
|
812
|
-
{
|
|
813
|
-
title: $t("sys.component.dataConnection.modelField.sign"),
|
|
814
|
-
centered: true,
|
|
815
|
-
width: 600
|
|
816
|
-
}
|
|
817
|
-
);
|
|
818
|
-
if (result.ok) {
|
|
819
|
-
const signInfo = result.data?.[0].signInfo;
|
|
820
|
-
formData[field] = {
|
|
821
|
-
url: signInfo.url,
|
|
822
|
-
time: signInfo.time,
|
|
823
|
-
historyId: signInfo.historyId,
|
|
824
|
-
username: signInfo.username
|
|
825
|
-
};
|
|
826
|
-
formRef.value?.clearValidate([field]);
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
function clearSignature(field) {
|
|
830
|
-
formData[field] = {};
|
|
831
|
-
formRef.value?.clearValidate([field]);
|
|
832
|
-
if (field === "applicant") {
|
|
833
|
-
formData.reviewer = {};
|
|
834
|
-
formRef.value?.clearValidate(["reviewer"]);
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
const handleOk = async () => {
|
|
838
|
-
if (submitting.value) return;
|
|
839
|
-
submitting.value = true;
|
|
840
|
-
try {
|
|
841
|
-
await formRef.value?.validate();
|
|
842
|
-
await props.okCallback({ ...formData });
|
|
843
|
-
visible.value = false;
|
|
844
|
-
} catch (err) {
|
|
845
|
-
} finally {
|
|
846
|
-
submitting.value = false;
|
|
847
|
-
}
|
|
848
|
-
};
|
|
849
|
-
const handleCancel = () => {
|
|
850
|
-
visible.value = false;
|
|
851
|
-
};
|
|
852
|
-
return (_ctx, _cache) => {
|
|
853
|
-
const _component_a_button = resolveComponent("a-button");
|
|
854
|
-
const _component_a_form_item = resolveComponent("a-form-item");
|
|
855
|
-
const _component_a_textarea = resolveComponent("a-textarea");
|
|
856
|
-
const _component_a_form = resolveComponent("a-form");
|
|
857
|
-
const _component_a_modal = resolveComponent("a-modal");
|
|
858
|
-
return openBlock(), createBlock(_component_a_modal, mergeProps({
|
|
859
|
-
closable: false,
|
|
860
|
-
visible: visible.value
|
|
861
|
-
}, props.options ?? {}, {
|
|
862
|
-
wrapClassName: [unref(ns).e("wrap")].join(" "),
|
|
863
|
-
destroyOnClose: "",
|
|
864
|
-
centered: true,
|
|
865
|
-
keyboard: false,
|
|
866
|
-
okText: _ctx.$t("sys.ok"),
|
|
867
|
-
cancelText: _ctx.$t("sys.cancel"),
|
|
868
|
-
onOk: handleOk,
|
|
869
|
-
onCancel: handleCancel
|
|
870
|
-
}), {
|
|
871
|
-
default: withCtx(() => [
|
|
872
|
-
createElementVNode("div", {
|
|
873
|
-
class: normalizeClass([unref(ns).e("header")])
|
|
874
|
-
}, [
|
|
875
|
-
createVNode(unref(ExclamationCircleFilled), {
|
|
876
|
-
class: normalizeClass([unref(ns).e("icon")])
|
|
877
|
-
}, null, 8, ["class"]),
|
|
878
|
-
createElementVNode("span", _hoisted_1, toDisplayString(_ctx.$t("sys.onlineForm.formChangeConfirmTitle", { name: __props.docName })), 1)
|
|
879
|
-
], 2),
|
|
880
|
-
createVNode(_component_a_form, {
|
|
881
|
-
ref_key: "formRef",
|
|
882
|
-
ref: formRef,
|
|
883
|
-
model: formData,
|
|
884
|
-
rules,
|
|
885
|
-
class: normalizeClass(["content", "gct-label-wrap-form"])
|
|
886
|
-
}, {
|
|
887
|
-
default: withCtx(() => [
|
|
888
|
-
createVNode(_component_a_form_item, {
|
|
889
|
-
name: "applicant",
|
|
890
|
-
label: _ctx.$t("sys.process.submitBy"),
|
|
891
|
-
required: ""
|
|
892
|
-
}, {
|
|
893
|
-
default: withCtx(() => [
|
|
894
|
-
createElementVNode("div", _hoisted_2, [
|
|
895
|
-
formData.applicant.url || formData.applicant.username ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
896
|
-
createElementVNode("img", {
|
|
897
|
-
src: unref(getPreviewUrl)(formData.applicant.url, formData.applicant.username),
|
|
898
|
-
class: "abandon-signature-img"
|
|
899
|
-
}, null, 8, _hoisted_4),
|
|
900
|
-
createElementVNode("div", _hoisted_5, [
|
|
901
|
-
formData.applicant.time ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(_ctx.$t("sys.onlineForm.signatureDate")) + ":" + toDisplayString(unref(dayjs)(formData.applicant.time).format("YYYY-MM-DD HH:mm")), 1)) : createCommentVNode("", true),
|
|
902
|
-
createVNode(_component_a_button, {
|
|
903
|
-
type: "link",
|
|
904
|
-
danger: "",
|
|
905
|
-
class: "abandon-signature-delete-btn",
|
|
906
|
-
onClick: _cache[0] || (_cache[0] = ($event) => clearSignature("applicant"))
|
|
907
|
-
}, {
|
|
908
|
-
default: withCtx(() => [
|
|
909
|
-
createTextVNode(toDisplayString(_ctx.$t("sys.onlineForm.deleteSignature")), 1)
|
|
910
|
-
]),
|
|
911
|
-
_: 1
|
|
912
|
-
})
|
|
913
|
-
])
|
|
914
|
-
])) : (openBlock(), createBlock(_component_a_button, {
|
|
915
|
-
key: 1,
|
|
916
|
-
onClick: _cache[1] || (_cache[1] = ($event) => openSignature("applicant"))
|
|
917
|
-
}, {
|
|
918
|
-
default: withCtx(() => [
|
|
919
|
-
createTextVNode(toDisplayString(_ctx.$t("sys.onlineForm.clickToSign")), 1)
|
|
920
|
-
]),
|
|
921
|
-
_: 1
|
|
922
|
-
}))
|
|
923
|
-
])
|
|
924
|
-
]),
|
|
925
|
-
_: 1
|
|
926
|
-
}, 8, ["label"]),
|
|
927
|
-
createVNode(_component_a_form_item, {
|
|
928
|
-
name: "reviewer",
|
|
929
|
-
label: _ctx.$t("sys.onlineForm.reviewer2"),
|
|
930
|
-
required: ""
|
|
931
|
-
}, {
|
|
932
|
-
default: withCtx(() => [
|
|
933
|
-
createElementVNode("div", _hoisted_7, [
|
|
934
|
-
formData.reviewer.url || formData.reviewer.username ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
935
|
-
createElementVNode("img", {
|
|
936
|
-
src: unref(getPreviewUrl)(formData.reviewer.url, formData.reviewer.username),
|
|
937
|
-
class: "abandon-signature-img"
|
|
938
|
-
}, null, 8, _hoisted_9),
|
|
939
|
-
createElementVNode("div", _hoisted_10, [
|
|
940
|
-
formData.reviewer.time ? (openBlock(), createElementBlock("div", _hoisted_11, toDisplayString(_ctx.$t("sys.onlineForm.signatureDate")) + ":" + toDisplayString(unref(dayjs)(formData.reviewer.time).format("YYYY-MM-DD HH:mm")), 1)) : createCommentVNode("", true),
|
|
941
|
-
createVNode(_component_a_button, {
|
|
942
|
-
type: "link",
|
|
943
|
-
danger: "",
|
|
944
|
-
class: "abandon-signature-delete-btn",
|
|
945
|
-
onClick: _cache[2] || (_cache[2] = ($event) => clearSignature("reviewer"))
|
|
946
|
-
}, {
|
|
947
|
-
default: withCtx(() => [
|
|
948
|
-
createTextVNode(toDisplayString(_ctx.$t("sys.onlineForm.deleteSignature")), 1)
|
|
949
|
-
]),
|
|
950
|
-
_: 1
|
|
951
|
-
})
|
|
952
|
-
])
|
|
953
|
-
])) : (openBlock(), createBlock(_component_a_button, {
|
|
954
|
-
key: 1,
|
|
955
|
-
onClick: _cache[3] || (_cache[3] = ($event) => openSignature("reviewer")),
|
|
956
|
-
disabled: !(formData.applicant.url || formData.applicant.username)
|
|
957
|
-
}, {
|
|
958
|
-
default: withCtx(() => [
|
|
959
|
-
createTextVNode(toDisplayString(_ctx.$t("sys.onlineForm.clickToSign")), 1)
|
|
960
|
-
]),
|
|
961
|
-
_: 1
|
|
962
|
-
}, 8, ["disabled"]))
|
|
963
|
-
])
|
|
964
|
-
]),
|
|
965
|
-
_: 1
|
|
966
|
-
}, 8, ["label"]),
|
|
967
|
-
createVNode(_component_a_form_item, {
|
|
968
|
-
name: "reason",
|
|
969
|
-
label: _ctx.$t("sys.onlineForm.formChangeReason"),
|
|
970
|
-
rules: [
|
|
971
|
-
{
|
|
972
|
-
required: true,
|
|
973
|
-
message: _ctx.$t("sys.inputTextTip", { name: _ctx.$t("sys.onlineForm.formChangeReason") })
|
|
974
|
-
}
|
|
975
|
-
]
|
|
976
|
-
}, {
|
|
977
|
-
default: withCtx(() => [
|
|
978
|
-
createVNode(_component_a_textarea, {
|
|
979
|
-
value: formData.reason,
|
|
980
|
-
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => formData.reason = $event),
|
|
981
|
-
placeholder: _ctx.$t("sys.inputTextTip", { name: _ctx.$t("sys.onlineForm.formChangeReason") }),
|
|
982
|
-
rows: 3,
|
|
983
|
-
"show-count": "",
|
|
984
|
-
maxlength: 120
|
|
985
|
-
}, null, 8, ["value", "placeholder"])
|
|
986
|
-
]),
|
|
987
|
-
_: 1
|
|
988
|
-
}, 8, ["label", "rules"])
|
|
989
|
-
]),
|
|
990
|
-
_: 1
|
|
991
|
-
}, 8, ["model", "rules"]),
|
|
992
|
-
__props.isShowTip ? (openBlock(), createElementBlock("div", {
|
|
993
|
-
key: 0,
|
|
994
|
-
class: normalizeClass([unref(ns).e("tip")])
|
|
995
|
-
}, toDisplayString(_ctx.$t("sys.onlineForm.formAbandonConfirmTipNew")), 3)) : createCommentVNode("", true)
|
|
996
|
-
]),
|
|
997
|
-
_: 1
|
|
998
|
-
}, 16, ["visible", "wrapClassName", "okText", "cancelText"]);
|
|
999
|
-
};
|
|
1000
|
-
}
|
|
1001
|
-
});
|
|
1002
|
-
const FormAbandonMedProModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1ccbdb90"]]);
|
|
1003
|
-
class WebFormAnnotationController extends FormAnnotationController {
|
|
1004
|
-
confirm(opts) {
|
|
1005
|
-
Modal.confirm({
|
|
1006
|
-
title: opts.title,
|
|
1007
|
-
okText: $t("sys.okText"),
|
|
1008
|
-
cancelText: $t("sys.cancelText"),
|
|
1009
|
-
onOk: opts.onOk,
|
|
1010
|
-
onCancel: opts.onCancel
|
|
1011
|
-
});
|
|
1012
|
-
}
|
|
1013
|
-
warn(str) {
|
|
1014
|
-
message.warn(str);
|
|
1015
|
-
}
|
|
1016
|
-
info(str) {
|
|
1017
|
-
message.info(str);
|
|
1018
|
-
}
|
|
1019
|
-
success(str) {
|
|
1020
|
-
message.success(str);
|
|
1021
|
-
}
|
|
1022
|
-
openFormAbandonV2Modal(opts = {
|
|
1023
|
-
isFormChange: false
|
|
1024
|
-
}) {
|
|
1025
|
-
return new Promise((resolve, reject) => {
|
|
1026
|
-
GctDialog.open(FormAbandonV2Modal, {
|
|
1027
|
-
docName: this.docName.value,
|
|
1028
|
-
isFormChange: opts.isFormChange,
|
|
1029
|
-
okCallback: async ({ reason, applicant, reviewer, approveTmplId }) => {
|
|
1030
|
-
resolve({ reason, applicant, reviewer, approveTmplId });
|
|
1031
|
-
},
|
|
1032
|
-
cancelCallback: () => {
|
|
1033
|
-
resolve();
|
|
1034
|
-
}
|
|
1035
|
-
});
|
|
1036
|
-
});
|
|
1037
|
-
}
|
|
1038
|
-
openFormAbandonModal() {
|
|
1039
|
-
const docName = `【${this.formIns.value?.ext2 ?? this.formIns.value.tmplName}】`;
|
|
1040
|
-
return new Promise((resolve, reject) => {
|
|
1041
|
-
GctDialog.open(FormAbandonModal, {
|
|
1042
|
-
docName,
|
|
1043
|
-
userName: this.userName,
|
|
1044
|
-
isShowTip: this.roleBuiltinBtnPermission.value.Cancel,
|
|
1045
|
-
okCallback: async ({ reason, applicant, reviewer }) => {
|
|
1046
|
-
resolve({ reason, applicant, reviewer });
|
|
1047
|
-
},
|
|
1048
|
-
cancelCallback: () => {
|
|
1049
|
-
resolve();
|
|
1050
|
-
}
|
|
1051
|
-
});
|
|
1052
|
-
});
|
|
1053
|
-
}
|
|
1054
|
-
/**medPro 专门变更 */
|
|
1055
|
-
openFormAbandonMedProModal() {
|
|
1056
|
-
const docName = `【${this.formIns.value?.ext2 ?? this.formIns.value.tmplName}】`;
|
|
1057
|
-
return new Promise((resolve, reject) => {
|
|
1058
|
-
GctDialog.open(FormAbandonMedProModal, {
|
|
1059
|
-
docName,
|
|
1060
|
-
userName: this.userName,
|
|
1061
|
-
isShowTip: false,
|
|
1062
|
-
okCallback: async ({ reason, applicant, reviewer }) => {
|
|
1063
|
-
resolve({ reason, applicant, reviewer });
|
|
1064
|
-
},
|
|
1065
|
-
cancelCallback: () => {
|
|
1066
|
-
resolve();
|
|
1067
|
-
},
|
|
1068
|
-
options: {
|
|
1069
|
-
title: $t("sys.onlineForm.submitChange")
|
|
1070
|
-
}
|
|
1071
|
-
});
|
|
1072
|
-
});
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
function useWebAnnotation(opts) {
|
|
1076
|
-
const controller = new WebFormAnnotationController(opts);
|
|
1077
|
-
const userName = window.NocodeAdapter.stores?.userInfo?.value.fullname ?? "";
|
|
1078
|
-
controller.userName = userName;
|
|
1079
|
-
return controller;
|
|
1080
|
-
}
|
|
1081
139
|
export {
|
|
1082
140
|
A as AddRuleBtn,
|
|
1083
141
|
B as BomViewerModal,
|
|
1084
|
-
|
|
142
|
+
S as CommonScanModal,
|
|
1085
143
|
FileModeEnum,
|
|
1086
144
|
P as ParseRuleModal,
|
|
1087
145
|
PrintModeEnum,
|
|
1088
|
-
|
|
1089
|
-
|
|
146
|
+
f as StocktakeScanModal,
|
|
147
|
+
g as StocktakeWebRender,
|
|
1090
148
|
formPrint,
|
|
1091
|
-
|
|
1092
|
-
|
|
149
|
+
h as initRenderToAdapter,
|
|
150
|
+
e as initWebNocodeAdapter,
|
|
1093
151
|
i as initWebPaasUploadApis,
|
|
1094
|
-
|
|
1095
|
-
a as useWebUpload
|
|
152
|
+
u as useWebUpload
|
|
1096
153
|
};
|