@gct-paas/excel 0.1.20 → 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.
Files changed (150) hide show
  1. package/dist/{VueVideoPlayer-DePpm38H.js → VueVideoPlayer-Bf0x69CJ.js} +2 -2
  2. package/dist/{agg-design-hreKYp5a.js → agg-design-CLSOm6QJ.js} +1 -1
  3. package/dist/{agg-props-CCDh2o6E.js → agg-props-4nnDqWtf.js} +1 -1
  4. package/dist/{agg-style-Bh8vdJvs.js → agg-style-FHSkeH5u.js} +1 -1
  5. package/dist/{align-editor-DpDuDOMr.js → align-editor-Bf391dfO.js} +1 -1
  6. package/dist/{attach-fields-editor-BeGxW6de.js → attach-fields-editor-U0Vg4ar8.js} +3 -2
  7. package/dist/{barcode-design-CFVTZNAy.js → barcode-design-XLuURxqD.js} +2 -2
  8. package/dist/base/index.es.js +352 -177
  9. package/dist/{base-font-editor-laOkjBe1.js → base-font-editor-adnb7ShQ.js} +3 -2
  10. package/dist/{boolean-design-DIlM9Nrt.js → boolean-design-Bk3jIc2m.js} +2 -2
  11. package/dist/{boolean-props-CGuFs72-.js → boolean-props-D1C7P7oX.js} +3 -3
  12. package/dist/{boolean-style-BUz6sBUN.js → boolean-style-CWmep9-Y.js} +4 -4
  13. package/dist/{cell-upload-Dw3t7ZKJ.js → cell-upload-wzPF8ovv.js} +3 -2
  14. package/dist/{date-range-editor-rXaru-8n.js → date-range-editor-CGCLkDFp.js} +3 -2
  15. package/dist/{date-time-design-HfjWK3SA.js → date-time-design-CG6fhsBd.js} +1 -1
  16. package/dist/{date-time-props-C_cG-6wI.js → date-time-props-DGa4XIFD.js} +3 -3
  17. package/dist/{date-time-style-BeCDP5TE.js → date-time-style-C5xs_HQX.js} +1 -1
  18. package/dist/{decimal-design-DzLpjX9N.js → decimal-design-Dg2PWB7J.js} +1 -1
  19. package/dist/{decimal-display-mode-BhD1cOOe.js → decimal-display-mode-B5nxWZnK.js} +2 -2
  20. package/dist/{decimal-props-C6f22071.js → decimal-props-BUduwEu5.js} +4 -4
  21. package/dist/{decimal-style-XN3rLM2j.js → decimal-style-CW6QyMh0.js} +1 -1
  22. package/dist/{default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-CJC4kBNh.js → default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-BlQSjkvP.js} +3 -2
  23. package/dist/{diagonal-design-Dh0qhgSq.js → diagonal-design-xlveiCza.js} +2 -2
  24. package/dist/{double-design-XHHlqmEp.js → double-design-Dkzgoo0g.js} +1 -1
  25. package/dist/{double-props-Cvi36aBN.js → double-props-DwI5z-Mz.js} +4 -4
  26. package/dist/{double-style-Dkoth54S.js → double-style-B09n2Oup.js} +1 -1
  27. package/dist/{dynamic-table-action-mGrBO_bn.js → dynamic-table-action-KwzaoPBC.js} +32 -2
  28. package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-OPdk2I5p.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-ByU7Owiw.js} +224 -310
  29. package/dist/{edit.utils-CXmmCnxE-DeDBtyJd.js → edit.utils-CXmmCnxE-Do4weQUL.js} +1 -1
  30. package/dist/{enum-design-CAOAFdI6.js → enum-design-D_hYB8q2.js} +2 -2
  31. package/dist/{enum-props-CBN-AvBS.js → enum-props-SHpVl7is.js} +4 -4
  32. package/dist/{enum-style-cOiK44Ae.js → enum-style-zTZKj6Li.js} +3 -3
  33. package/dist/excel.css +9556 -10003
  34. package/dist/{exceljs.min-pnja99MZ.js → exceljs.min-Dy4OavkS.js} +2 -2
  35. package/dist/{expression-design-CqgcK8eO.js → expression-design-DH37JCnd.js} +1 -1
  36. package/dist/{expression-props-wXQOIrMY.js → expression-props-D4aZ2FzY.js} +1 -1
  37. package/dist/{expression-style-BzavnOux.js → expression-style-Bj0tEmqJ.js} +1 -1
  38. package/dist/{file-design-BSQknhnY.js → file-design-hV82bwcT.js} +1 -1
  39. package/dist/{file-props-CwiuBVHW.js → file-props-BR0xOn8f.js} +2 -2
  40. package/dist/{file-style-CG4a3THb.js → file-style-CPXRGFCR.js} +1 -1
  41. package/dist/{font-editor--CgwL-wF.js → font-editor-QrOFLcNA.js} +3 -3
  42. package/dist/{image-design-D1D0SN5W.js → image-design-B3FASJvR.js} +2 -2
  43. package/dist/{image-design-CwPjfDxf.js → image-design-WqYFe8Hz.js} +2 -2
  44. package/dist/{image-props-C4E9gMsG.js → image-props-DZ0lHvNN.js} +1 -1
  45. package/dist/{image-style-CIb1mi13.js → image-style-D3jSU46p.js} +1 -1
  46. package/dist/{index-CcmNFTia.js → index-4aWfyi4S.js} +2 -2
  47. package/dist/{index-B2ZNkbGm.js → index-B2JfWmQ5.js} +1 -1
  48. package/dist/{index-CIl6oWcB.js → index-BCRANZ6N.js} +1 -1
  49. package/dist/index-BYFfjfXo.js +4198 -0
  50. package/dist/{index-ZrNXSw4w.js → index-BYnhPyxm.js} +1 -1
  51. package/dist/{index-DOj318_B.js → index-B_bGf5j3.js} +2 -2
  52. package/dist/{index-BneV2tbp.js → index-BgJenclY.js} +1 -1
  53. package/dist/{index-ByTKu8n6.js → index-BocrGDq2.js} +1 -1
  54. package/dist/{index-CeMBvNee.js → index-BpacgAuY.js} +1 -1
  55. package/dist/{index-BJYSmTeW.js → index-C9uva5U9.js} +1 -1
  56. package/dist/{index-DLoQlQk6.js → index-CAp9OIUg.js} +2 -2
  57. package/dist/{index-Drf0Arr4.js → index-CVsM5Bam.js} +1 -1
  58. package/dist/{index-D9tUJAeF.js → index-Cblyq6yH.js} +1 -1
  59. package/dist/{index-B2tFXR--.js → index-ChFaMPeg.js} +2 -2
  60. package/dist/{index-A2MbCZtS.js → index-Cqh9EW_d.js} +1 -1
  61. package/dist/{index-D0n65ya-.js → index-CquVE9ii.js} +1 -1
  62. package/dist/{index-BG_CEaW0.js → index-CsLZerBY.js} +41133 -3488
  63. package/dist/{index-PWmkKVZV.js → index-D8uy8whi.js} +1 -1
  64. package/dist/{index-0mxMA4vZ.js → index-DKR79OBc.js} +1 -1
  65. package/dist/{index-BKoXo3Ha.js → index-DNHA-joo.js} +1 -1
  66. package/dist/{index-Hg59RKKE.js → index-DU3SF4eg.js} +1 -1
  67. package/dist/{index-B7DDYlzm.js → index-DVaUctcz.js} +1 -1
  68. package/dist/{index-D0XkCn_x.js → index-DegtNz07.js} +1 -1
  69. package/dist/{index-Cgka0WmQ.js → index-DpFPYL8b.js} +1 -1
  70. package/dist/{index-Dl2FIifp.js → index-Dvp79b5b.js} +1 -1
  71. package/dist/{index-PMDIMwwL.js → index-DxgKf-wy.js} +1 -1
  72. package/dist/{index-CGSTq7zN.js → index-Jz0_ApK0.js} +1 -1
  73. package/dist/{index-UUDS4nmS.js → index-Ol6_R1tg.js} +1 -1
  74. package/dist/{index-BAlLZmfu.js → index-RY064UmV.js} +1 -1
  75. package/dist/{index-BSHUFede.js → index-dECIkP6q.js} +1 -1
  76. package/dist/{index-HHF5iK-6.js → index-iGA3l7nd.js} +1 -1
  77. package/dist/{index-CKqLoN9r.js → index-pMF19I7H.js} +1 -1
  78. package/dist/{index-Bi4hE4Ye.js → index-wmbtcxzT.js} +2 -2
  79. package/dist/index.es.js +45 -45
  80. package/dist/{integer-design-Cy9c0fzI.js → integer-design-_-oIGMZi.js} +1 -1
  81. package/dist/{integer-props-DFDOIb2a.js → integer-props-CbhqGTWT.js} +5 -4
  82. package/dist/{integer-style-CfIX5ReH.js → integer-style-CRDDq2e1.js} +1 -1
  83. package/dist/{mb-render-D_uumPQr.js → mb-render-Bh6EegbE.js} +1 -30
  84. package/dist/{number-input-ex-CWci0pCj.js → number-input-ex-n0MRaA8Z.js} +2 -1
  85. package/dist/{org-props-B5dk289u.js → org-props-B_ED1XJd.js} +2 -2
  86. package/dist/{org-style-BoSDPuw9.js → org-style-P7mL2u1-.js} +1 -1
  87. package/dist/{pagination-design-Ci4wxUIk.js → pagination-design-CC2ZvE5K.js} +2 -2
  88. package/dist/paper-widget-design-CvvM0OZ2.js +4 -0
  89. package/dist/{qrcode-design-CJ9R5DIn.js → qrcode-design-C_G8R7Lo.js} +1 -1
  90. package/dist/{ref-autofill-editor-B4KDvHhR.js → ref-autofill-editor-DdUMjliQ.js} +2 -3
  91. package/dist/{ref-props-CwDGepT3.js → ref-props-CCwA0E2w.js} +3 -3
  92. package/dist/{ref-style-B35CsOQO.js → ref-style-C3Qy3L2V.js} +1 -1
  93. package/dist/{regex-editor-CIVvr_Lx.js → regex-editor-CswiNY9l.js} +3 -2
  94. package/dist/{revo-grid.entry-DeWzC35s.js → revo-grid.entry-fhJrZlXs.js} +1 -1
  95. package/dist/{revogr-attribution_7.entry-BJZ-twfj.js → revogr-attribution_7.entry-BxX5Aax7.js} +3 -3
  96. package/dist/{revogr-clipboard_3.entry-DkgRA8qw.js → revogr-clipboard_3.entry-B84Mg6_S.js} +2 -2
  97. package/dist/{revogr-data_4.entry-BZLzvcbo.js → revogr-data_4.entry-BSSMKH9X.js} +2 -2
  98. package/dist/{revogr-filter-panel.entry-zGvhshno.js → revogr-filter-panel.entry-xjYp1Z8c.js} +1 -1
  99. package/dist/{select-render-type-editor.vue_vue_type_script_setup_true_lang-Asn5-ZRz.js → select-render-type-editor.vue_vue_type_script_setup_true_lang-JwULnnUe.js} +2 -2
  100. package/dist/{serialnumber-design-CYFU5TVt.js → serialnumber-design-qdEzFAi4.js} +1 -1
  101. package/dist/shared/index.es.js +26 -27
  102. package/dist/{signature-design-Cwi0cZOI.js → signature-design-DyLTKEwS.js} +1 -1
  103. package/dist/{signature-props-cQRB8U8x.js → signature-props-CXwqrh0H.js} +3 -3
  104. package/dist/{signature-style-C90NsLxg.js → signature-style-ibNQSAPQ.js} +1 -1
  105. package/dist/{single-field-drop-BFhQs-3z.js → single-field-drop-BSdWy-C4.js} +3 -2
  106. package/dist/{size-editor-Dx3y_otg.js → size-editor-8C1AxONY.js} +1 -1
  107. package/dist/src/nocode-base/src/hooks/annotation/form-annotation-controller.d.ts +14 -148
  108. package/dist/src/nocode-base/src/hooks/annotation/index.d.ts +0 -1
  109. package/dist/src/nocode-web-render/src/index.d.ts +0 -1
  110. package/dist/src/online-form/src/views/designer/modules/panel/panel-data-init-config/common/data-source-title.vue.d.ts +2 -2
  111. package/dist/src/shared/components/Signature/ui/sign-editor.vue.d.ts +2 -2
  112. package/dist/src/shared/components/version-select/version-select.vue.d.ts +2 -2
  113. package/dist/{text-design-TEheiKQx.js → text-design-BzDtceUO.js} +2 -2
  114. package/dist/{text-design-jMPxIgZW.js → text-design-Di-2lpQC.js} +2 -2
  115. package/dist/{text-props-CrkSvg6D.js → text-props-YXtd9DCt.js} +5 -5
  116. package/dist/{text-style-DmwTt8KQ.js → text-style-BtclwHUQ.js} +1 -1
  117. package/dist/{throttle-Cpk1LoGk-DTkhEkFR.js → throttle-Cpk1LoGk-BFMM5iqm.js} +1 -1
  118. package/dist/{timediff-design-D_if-K1S.js → timediff-design-DPDNHC4C.js} +1 -1
  119. package/dist/{trace-design-oN7pgtab.js → trace-design-B2tffMF2.js} +2 -2
  120. package/dist/{trace-props-BFnUk6kv.js → trace-props-CWTXFYZ9.js} +6 -6
  121. package/dist/{trace-style-TNnFcvfw.js → trace-style-AmSVnHXF.js} +1 -1
  122. package/dist/use-namespace-qtLS8nEh.js +88 -0
  123. package/dist/{user-props-Ce-ilCmU.js → user-props-hR1saiG7.js} +2 -2
  124. package/dist/{user-style-4rp0jKYP.js → user-style-BsMfhFHo.js} +1 -1
  125. package/dist/{value-editor.vue_vue_type_style_index_0_lang-DMuR0u4j.js → value-editor.vue_vue_type_style_index_0_lang-zAPZ-2E_.js} +2 -2
  126. package/dist/{version-select-DSFIlYgX.js → version-select-CeQP0Bne.js} +1041 -4
  127. package/dist/web-render/index.es.js +12 -955
  128. package/dist/{widget-barcode-Du7LOaiy.js → widget-barcode-DPdsvAF5.js} +4 -4
  129. package/dist/{widget-diagonal-D-q7WK6T.js → widget-diagonal-BfjZGony.js} +4 -3
  130. package/dist/{widget-image-Da5mvgMm.js → widget-image-D_E_0ZEd.js} +5 -5
  131. package/dist/{widget-line-oIFH8P04.js → widget-line-SDiSxrzr.js} +2 -2
  132. package/dist/{widget-pagination-CSonelt_.js → widget-pagination-DdIoe9Yy.js} +5 -5
  133. package/dist/{widget-power-CWczWA7K.js → widget-power-hifeC3T0.js} +4 -3
  134. package/dist/{widget-qrcode-MQ-cSphb.js → widget-qrcode-DBEsM1iE.js} +3 -3
  135. package/dist/{widget-rangelimit-CFDeRJIf.js → widget-rangelimit-clQ84tvq.js} +4 -3
  136. package/dist/{widget-serialnumber-DlE2-jvp.js → widget-serialnumber-BXvzHCYR.js} +1 -1
  137. package/dist/{widget-text-B1SnpOGN.js → widget-text-CPojsb_9.js} +5 -5
  138. package/dist/{widget-timediff-DeyJbqRE.js → widget-timediff-DGBZsme_.js} +2 -2
  139. package/package.json +1 -1
  140. package/dist/AntdIcon-C3RMq2zm.js +0 -1040
  141. package/dist/form-annotation-controller-DDDyHAwe.js +0 -707
  142. package/dist/index-CWpratsK.js +0 -41850
  143. package/dist/paper-widget-design-BilYU9rh.js +0 -4
  144. package/dist/src/nocode-base/src/hooks/annotation/types.d.ts +0 -16
  145. package/dist/src/nocode-web-render/src/annotation/form-abandon-medpro-modal.vue.d.ts +0 -15
  146. package/dist/src/nocode-web-render/src/annotation/form-abandon-modal.vue.d.ts +0 -15
  147. package/dist/src/nocode-web-render/src/annotation/form-abandon-v2-modal.vue.d.ts +0 -11
  148. package/dist/src/nocode-web-render/src/annotation/index.d.ts +0 -2
  149. package/dist/src/nocode-web-render/src/annotation/submit-form-change-modal.vue.d.ts +0 -104
  150. package/dist/src/nocode-web-render/src/annotation/use-annotation.d.ts +0 -37
@@ -1,12 +1,6 @@
1
- import { S as SignMode, k as SignSwitcher, g as getPreviewUrl, G as GctDialog } from "../index-CWpratsK.js";
2
- import { A, B, l, P, m, n, p, j, i, a } from "../index-CWpratsK.js";
3
- import { message, Modal } from "ant-design-vue";
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_53d7e66c_lang-OPdk2I5p.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-DDDyHAwe.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 e = document.createEvent("MouseEvents");
127
- e.initEvent("click", true, true);
128
- link.dispatchEvent(e);
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
- l as CommonScanModal,
142
+ S as CommonScanModal,
1085
143
  FileModeEnum,
1086
144
  P as ParseRuleModal,
1087
145
  PrintModeEnum,
1088
- m as StocktakeScanModal,
1089
- n as StocktakeWebRender,
146
+ f as StocktakeScanModal,
147
+ g as StocktakeWebRender,
1090
148
  formPrint,
1091
- p as initRenderToAdapter,
1092
- j as initWebNocodeAdapter,
149
+ h as initRenderToAdapter,
150
+ e as initWebNocodeAdapter,
1093
151
  i as initWebPaasUploadApis,
1094
- useWebAnnotation,
1095
- a as useWebUpload
152
+ u as useWebUpload
1096
153
  };