cnhis-design-vue 3.3.2-beta.1 → 3.3.2-beta.11

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 (239) hide show
  1. package/es/components/audio-sdk/style/index.css +1 -1
  2. package/es/components/base-search/src/index.vue2.js +30 -18
  3. package/es/components/big-table/src/BigTable.vue2.js +191 -133
  4. package/es/components/big-table/src/components/NoData.vue2.js +16 -4
  5. package/es/components/big-table/src/components/edit-form/edit-date.js +12 -6
  6. package/es/components/big-table/src/components/edit-form/edit-input.js +8 -2
  7. package/es/components/big-table/src/components/edit-form/edit-select.js +21 -17
  8. package/es/components/big-table/src/components/edit-form/edit-time.js +11 -4
  9. package/es/components/big-table/src/components/input-button.vue2.js +8 -4
  10. package/es/components/big-table/src/hooks/useNestTable.js +18 -4
  11. package/es/components/big-table/src/hooks/useTableParse.js +16 -3
  12. package/es/components/body-select/src/index.vue2.js +24 -4
  13. package/es/components/button-print/index.d.ts +1 -0
  14. package/es/components/button-print/src/ButtonPrint.vue.d.ts +1 -0
  15. package/es/components/button-print/src/ButtonPrint.vue2.js +52 -11
  16. package/es/components/button-print/src/components/EditFormat.vue2.js +16 -8
  17. package/es/components/button-print/src/components/IdentityVerification.vue2.js +98 -47
  18. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +229 -94
  19. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +1 -0
  20. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +92 -32
  21. package/es/components/button-print/src/components/Preview.vue2.js +8 -2
  22. package/es/components/button-print/src/utils/dialog.js +24 -6
  23. package/es/components/button-print/src/utils/print.d.ts +5 -5
  24. package/es/components/button-print/src/utils/print.js +108 -21
  25. package/es/components/callback/src/components/render/popupMaps.d.ts +1 -1
  26. package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +8 -2
  27. package/es/components/card-reader-sdk/src/utils/readHealthCard.js +16 -4
  28. package/es/components/card-reader-sdk-cn/src/henan/index.js +38 -11
  29. package/es/components/card-render/src/components/index.d.ts +23 -23
  30. package/es/components/classification/src/components/search-filter/index.vue2.js +24 -10
  31. package/es/components/classification/src/components/set-classification/index.vue2.js +24 -7
  32. package/es/components/classification/src/components/table-modal/index.vue2.js +324 -165
  33. package/es/components/classification/src/index.vue2.js +261 -69
  34. package/es/components/default-page/src/constants/index.js +144 -19
  35. package/es/components/default-page/src/index.vue2.js +8 -2
  36. package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +75 -51
  37. package/es/components/expand-field/src/components/FormItemPerson.vue2.js +46 -38
  38. package/es/components/expand-field/src/components/PersonModal.vue2.js +62 -50
  39. package/es/components/expand-field/src/components/form.vue2.js +783 -412
  40. package/es/components/expand-field/src/index.vue2.js +88 -22
  41. package/es/components/expand-field/src/utils/constant.js +88 -12
  42. package/es/components/fabric-chart/src/components/PopupMenu.js +32 -15
  43. package/es/components/fabric-chart/src/constants/index.js +72 -10
  44. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +16 -3
  45. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +8 -2
  46. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +32 -5
  47. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +8 -2
  48. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +45 -8
  49. package/es/components/fabric-chart/src/hooks/useCommon.js +24 -4
  50. package/es/components/field-editor/index.d.ts +1 -1
  51. package/es/components/field-editor/src/FieldEditor.vue.d.ts +1 -1
  52. package/es/components/field-editor/src/fields.js +232 -30
  53. package/es/components/field-set/src/FieldColor.vue2.js +88 -21
  54. package/es/components/field-set/src/FieldFilter.vue2.js +32 -16
  55. package/es/components/field-set/src/FieldSet.vue2.js +210 -57
  56. package/es/components/field-set/src/Index.vue2.js +40 -6
  57. package/es/components/field-set/src/TableStyle.vue2.js +48 -13
  58. package/es/components/field-set/src/components/condition.vue2.js +26 -10
  59. package/es/components/field-set/src/components/edit-dialog.vue2.js +148 -68
  60. package/es/components/field-set/src/components/edit-filter.vue2.js +24 -4
  61. package/es/components/field-set/src/components/table-row.vue2.js +123 -42
  62. package/es/components/field-set/src/constants/filter.js +328 -42
  63. package/es/components/field-set/src/constants/index.js +504 -64
  64. package/es/components/form-config/index.d.ts +9 -9
  65. package/es/components/form-config/src/FormConfig.vue.d.ts +9 -9
  66. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -1
  67. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +4 -4
  68. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +1 -1
  69. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +91 -46
  70. package/es/components/form-config/src/constants/index.js +80 -11
  71. package/es/components/form-config/src/hooks/useLocale.js +240 -31
  72. package/es/components/form-render/index.d.ts +1 -1
  73. package/es/components/form-render/src/FormRender.vue.d.ts +1 -1
  74. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -1
  75. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +8 -4
  76. package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +8 -4
  77. package/es/components/form-render/src/components/renderer/combination/tableCombination.js +8 -2
  78. package/es/components/form-render/src/components/renderer/input.js +1 -1
  79. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
  80. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
  81. package/es/components/form-render/src/components/renderer/radio_checkbox.js +8 -4
  82. package/es/components/form-render/src/components/renderer/remoteSearch.js +8 -2
  83. package/es/components/form-render/src/components/renderer/switch.js +24 -4
  84. package/es/components/form-render/src/components/renderer/textarea.js +1 -1
  85. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -2
  86. package/es/components/form-render/src/types/index.d.ts +2 -2
  87. package/es/components/form-render/src/utils/schema.js +26 -6
  88. package/es/components/iho-chat/src/Index.vue2.js +42 -38
  89. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +108 -33
  90. package/es/components/iho-chat/src/components/ChatFile.vue2.js +132 -90
  91. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +110 -48
  92. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +40 -20
  93. package/es/components/iho-chat/src/components/ChatMain.vue2.js +55 -23
  94. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +77 -45
  95. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +256 -208
  96. package/es/components/iho-chat/src/components/ChatSet.vue2.js +306 -208
  97. package/es/components/iho-chat/src/components/ContextMenu.js +50 -9
  98. package/es/components/iho-chat/src/components/MessageEvent.vue2.js +16 -4
  99. package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +8 -2
  100. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +104 -18
  101. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +66 -11
  102. package/es/components/iho-chat/src/components/SelectLabel.vue2.js +47 -43
  103. package/es/components/iho-chat/src/components/SiderList.vue2.js +68 -38
  104. package/es/components/iho-chat/src/components/Video.vue2.js +38 -11
  105. package/es/components/iho-chat/src/hooks/useVideo.js +15 -4
  106. package/es/components/iho-chat/src/utils/index.js +79 -14
  107. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +8 -2
  108. package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +40 -15
  109. package/es/components/iho-table/src/plugins/filterRemoteSearchPlugin/remoteFilter.vue2.js +40 -15
  110. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
  111. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +50 -20
  112. package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +16 -8
  113. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +10 -3
  114. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +42 -15
  115. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  116. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +18 -12
  117. package/es/components/index.css +1 -1
  118. package/es/components/info-header/index.d.ts +7 -7
  119. package/es/components/info-header/src/InfoHeader.vue.d.ts +7 -7
  120. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -1
  121. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -1
  122. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +2 -2
  123. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +1 -1
  124. package/es/components/info-header/src/components/patientInfo/index.vue2.js +144 -25
  125. package/es/components/keyboard/src/Keyboard.vue2.js +20 -8
  126. package/es/components/keyboard/src/components/NumberPanel.vue2.js +51 -37
  127. package/es/components/map/src/Map.vue2.js +8 -4
  128. package/es/components/picture-clipper/src/PictureClipper.vue2.js +16 -8
  129. package/es/components/quick-search/src/index.vue2.js +176 -131
  130. package/es/components/recommend-search/src/components/BaseSearch.js +14 -8
  131. package/es/components/recommend-search/src/components/RecommendInput.vue2.js +28 -8
  132. package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +18 -5
  133. package/es/components/scale-view/index.d.ts +1 -1
  134. package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -1
  135. package/es/components/scale-view/src/ScaleView.vue2.js +17 -9
  136. package/es/components/scale-view/src/components/NoData.vue2.js +16 -4
  137. package/es/components/scale-view/src/components/formitem/r-cascader.js +8 -2
  138. package/es/components/scale-view/src/components/formitem/r-checkbox.js +24 -6
  139. package/es/components/scale-view/src/components/formitem/r-input.js +8 -2
  140. package/es/components/scale-view/src/components/formitem/r-map.js +8 -2
  141. package/es/components/scale-view/src/components/formitem/r-radio.js +24 -6
  142. package/es/components/scale-view/src/components/formitem/r-select.js +8 -2
  143. package/es/components/scale-view/src/components/formitem/r-sign.js +32 -11
  144. package/es/components/scale-view/src/components/formitem/standard-modal.js +16 -3
  145. package/es/components/scale-view/src/hooks/scaleview-computed.js +24 -5
  146. package/es/components/scale-view/src/hooks/scaleview-init.d.ts +1 -1
  147. package/es/components/scale-view/src/hooks/scaleview-init.js +2 -2
  148. package/es/components/scale-view/src/hooks/scaleview-methods.js +16 -4
  149. package/es/components/scale-view/src/hooks/scaleview-submit.js +16 -3
  150. package/es/components/scale-view/src/hooks/scaleview-validate.js +40 -9
  151. package/es/components/search-cascader/src/SearchCascader.vue2.js +20 -14
  152. package/es/components/select-label/src/LabelFormContent.vue2.js +53 -21
  153. package/es/components/select-label/src/SelectLabel.vue2.js +81 -51
  154. package/es/components/select-label/src/components/label-classify.vue2.js +28 -11
  155. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +18 -5
  156. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +34 -8
  157. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +18 -5
  158. package/es/components/select-person/src/SelectPerson.vue2.js +214 -141
  159. package/es/components/select-person/src/SelectPersonType.vue2.js +127 -102
  160. package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +9 -2
  161. package/es/components/select-person/src/index.vue2.js +20 -7
  162. package/es/components/shortcut-setter/index.d.ts +1 -1
  163. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
  164. package/es/components/slider-tree/src/index.vue2.js +16 -3
  165. package/es/components/table-export-field/index.d.ts +1 -0
  166. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +1 -0
  167. package/es/components/table-export-field/src/components/ExportModal.vue2.js +187 -113
  168. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +147 -88
  169. package/es/components/table-export-field/src/index.vue.d.ts +1 -0
  170. package/es/components/table-export-field/src/index.vue2.js +28 -12
  171. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +32 -5
  172. package/es/components/table-filter/src/components/bi-filter/helpers/options.js +264 -34
  173. package/es/components/table-filter/src/components/bi-filter/index.vue2.js +214 -135
  174. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +16 -3
  175. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +9 -2
  176. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +39 -6
  177. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +18 -5
  178. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +29 -18
  179. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +16 -3
  180. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +8 -2
  181. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +195 -130
  182. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +26 -7
  183. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +12 -6
  184. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +34 -8
  185. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +21 -8
  186. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +8 -4
  187. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +19 -6
  188. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +16 -3
  189. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +24 -10
  190. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1648 -207
  191. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +8 -2
  192. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +16 -3
  193. package/es/components/table-filter/src/tool/baseOptions.js +144 -19
  194. package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +32 -16
  195. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +22 -2
  196. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +8 -4
  197. package/es/components/vod-chunk-upload/src/vod-upload-modal.js +16 -8
  198. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  199. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  200. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  201. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  202. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  203. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  204. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  205. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  206. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  207. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  208. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  209. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  210. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  211. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  212. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  213. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  214. package/es/shared/assets/img/failure.png.js +1 -1
  215. package/es/shared/assets/img/no-permission.png.js +1 -1
  216. package/es/shared/assets/img/nodata.png.js +1 -1
  217. package/es/shared/assets/img/notfound.png.js +1 -1
  218. package/es/shared/assets/img/qr.png.js +1 -1
  219. package/es/shared/assets/img/success.png.js +1 -1
  220. package/es/shared/assets/img/table_style_2.png.js +1 -1
  221. package/es/shared/assets/img/video.png.js +1 -1
  222. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  223. package/es/shared/assets/img/xb_big.png.js +1 -1
  224. package/es/shared/assets/img/xb_small.png.js +1 -1
  225. package/es/shared/hooks/selectHooks/useSelectAllowModify.js +2 -2
  226. package/es/shared/package.json.js +1 -1
  227. package/package.json +2 -2
  228. package/es/components/audio-sdk/src/utils/recorder/fft.d.ts +0 -4
  229. package/es/components/audio-sdk/src/utils/recorder/mp3-engine.d.ts +0 -4
  230. package/es/components/audio-sdk/src/utils/recorder/mp3.d.ts +0 -4
  231. package/es/components/audio-sdk/src/utils/recorder/recorder.d.ts +0 -4
  232. package/es/components/audio-sdk/src/utils/recorder/wave.d.ts +0 -4
  233. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  234. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  235. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  236. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  237. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  238. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  239. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -4,7 +4,6 @@ import noPermission from '../../../../shared/assets/img/no-permission.png.js';
4
4
  import failure from '../../../../shared/assets/img/failure.png.js';
5
5
  import notfound from '../../../../shared/assets/img/notfound.png.js';
6
6
 
7
- var _a;
8
7
  const _hoisted_1 = {
9
8
  class: "no-data-tip NoData-page"
10
9
  };
@@ -17,7 +16,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
17
16
  props: {
18
17
  noDataTip: {
19
18
  type: String,
20
- default: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.445")) || "\u6682\u65E0\u6570\u636E"
19
+ default: function() {
20
+ var _a, _b, _c;
21
+ try {
22
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.445")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.445")) || "\u6682\u65E0\u6570\u636E";
23
+ } catch (e) {
24
+ return "\u6682\u65E0\u6570\u636E";
25
+ }
26
+ }()
21
27
  },
22
28
  noDataImg: {
23
29
  type: String,
@@ -49,14 +55,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
49
55
  return str;
50
56
  });
51
57
  const handleDesc = computed(() => {
52
- var _a2;
53
58
  let res = "";
54
59
  switch (props.noDataImg) {
55
60
  case "no-permission":
56
61
  res = "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458";
57
62
  break;
58
63
  case "failure":
59
- res = ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.449")) || "\u8BF7\u7A0D\u540E\u518D\u8BD5";
64
+ res = function() {
65
+ var _a, _b, _c;
66
+ try {
67
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.449")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.449")) || "\u8BF7\u7A0D\u540E\u518D\u8BD5";
68
+ } catch (e) {
69
+ return "\u8BF7\u7A0D\u540E\u518D\u8BD5";
70
+ }
71
+ }();
60
72
  break;
61
73
  }
62
74
  return res;
@@ -110,13 +110,19 @@ var RCascader = /* @__PURE__ */ defineComponent({
110
110
  context.emit("scaleChange", path, props.item);
111
111
  };
112
112
  return () => {
113
- var _a;
114
113
  return createVNode(resolveComponent("n-cascader"), {
115
114
  "value": state.cascaderValue,
116
115
  "onUpdate:value": ($event) => state.cascaderValue = $event,
117
116
  "filterable": true,
118
117
  "clearable": true,
119
- "placeholder": ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || "\u8BF7\u9009\u62E9",
118
+ "placeholder": function() {
119
+ var _a, _b, _c;
120
+ try {
121
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.147")) || "\u8BF7\u9009\u62E9";
122
+ } catch (e) {
123
+ return "\u8BF7\u9009\u62E9";
124
+ }
125
+ }(),
120
126
  "check-strategy": "parent",
121
127
  "value-field": "theUniqueKey",
122
128
  "disabled": props.isLock,
@@ -227,9 +227,15 @@ var scriptCheckbox = /* @__PURE__ */ defineComponent({
227
227
  }, null)])]);
228
228
  };
229
229
  const renderPrintSpan = (o) => {
230
- var _a2;
231
230
  const val = o ? state.optionsPreSuffixObj[o.key] : state.othersText;
232
- const showVal = val ? val : ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || "\u8BF7\u8F93\u5165";
231
+ const showVal = val ? val : function() {
232
+ var _a2, _b2, _c;
233
+ try {
234
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165";
235
+ } catch (e) {
236
+ return "\u8BF7\u8F93\u5165";
237
+ }
238
+ }();
233
239
  return createVNode("span", {
234
240
  "class": ["print-span", {
235
241
  "print-span-disabled": isDisabled.value,
@@ -238,7 +244,6 @@ var scriptCheckbox = /* @__PURE__ */ defineComponent({
238
244
  }, [showVal]);
239
245
  };
240
246
  const renderPresuffix = (o) => {
241
- var _a2;
242
247
  return createVNode("div", {
243
248
  "class": "presuffix-wrap"
244
249
  }, [o.prefix && createVNode("span", {
@@ -253,7 +258,14 @@ var scriptCheckbox = /* @__PURE__ */ defineComponent({
253
258
  "style": {
254
259
  color: choiceColor.value(o)
255
260
  },
256
- "placeholder": ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || "\u8BF7\u8F93\u5165",
261
+ "placeholder": function() {
262
+ var _a2, _b2, _c;
263
+ try {
264
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165";
265
+ } catch (e) {
266
+ return "\u8BF7\u8F93\u5165";
267
+ }
268
+ }(),
257
269
  "bordered": false,
258
270
  "onInput": (val) => inputPreSuffixCheckboxChangeMethod(val, o),
259
271
  "onClick": stopClick,
@@ -276,7 +288,6 @@ var scriptCheckbox = /* @__PURE__ */ defineComponent({
276
288
  }, [o.label]);
277
289
  };
278
290
  const renderOther = (o) => {
279
- var _a2;
280
291
  return createVNode("div", {
281
292
  "class": "choose-other",
282
293
  "onClick": stopClick
@@ -287,7 +298,14 @@ var scriptCheckbox = /* @__PURE__ */ defineComponent({
287
298
  "style": {
288
299
  color: choiceColor.value(o)
289
300
  },
290
- "placeholder": ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || "\u8BF7\u8F93\u5165",
301
+ "placeholder": function() {
302
+ var _a2, _b2, _c;
303
+ try {
304
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165";
305
+ } catch (e) {
306
+ return "\u8BF7\u8F93\u5165";
307
+ }
308
+ }(),
291
309
  "bordered": false,
292
310
  "type": "textarea",
293
311
  "autosize": true,
@@ -73,9 +73,15 @@ var RInput = /* @__PURE__ */ defineComponent({
73
73
  emit("scaleChange", inputValue.value, props.item);
74
74
  };
75
75
  const renderPrintSpan = () => {
76
- var _a2;
77
76
  const val = inputValue.value;
78
- const showVal = val ? val : ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || "\u8BF7\u8F93\u5165";
77
+ const showVal = val ? val : function() {
78
+ var _a2, _b2, _c2;
79
+ try {
80
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c2 = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c2.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165";
81
+ } catch (e) {
82
+ return "\u8BF7\u8F93\u5165";
83
+ }
84
+ }();
79
85
  return createVNode("div", {
80
86
  "class": ["input-print-span", {
81
87
  "input-print-span-disabled": props.isLock,
@@ -66,7 +66,6 @@ var RMap = /* @__PURE__ */ defineComponent({
66
66
  state.mapVisible = true;
67
67
  };
68
68
  const renderMap = () => {
69
- var _a;
70
69
  return createVNode("div", {
71
70
  "class": {
72
71
  "c-map-container": !props.isLock
@@ -76,7 +75,14 @@ var RMap = /* @__PURE__ */ defineComponent({
76
75
  "readonly": true,
77
76
  "class": "map-input",
78
77
  "on-click": clickMap,
79
- "placeholder": ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || "\u8BF7\u9009\u62E9"
78
+ "placeholder": function() {
79
+ var _a, _b, _c;
80
+ try {
81
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.147")) || "\u8BF7\u9009\u62E9";
82
+ } catch (e) {
83
+ return "\u8BF7\u9009\u62E9";
84
+ }
85
+ }()
80
86
  }, {
81
87
  prefix: () => createVNode(resolveComponent("n-icon"), {
82
88
  "size": "18",
@@ -192,9 +192,15 @@ var scriptRadio = /* @__PURE__ */ defineComponent({
192
192
  }, null)])]);
193
193
  };
194
194
  const renderPrintSpan = (o) => {
195
- var _a2;
196
195
  const val = o ? state.optionsPreSuffixObj[o.key] : state.othersText;
197
- const showVal = val ? val : ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || "\u8BF7\u8F93\u5165";
196
+ const showVal = val ? val : function() {
197
+ var _a2, _b2, _c;
198
+ try {
199
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165";
200
+ } catch (e) {
201
+ return "\u8BF7\u8F93\u5165";
202
+ }
203
+ }();
198
204
  return createVNode("span", {
199
205
  "class": ["print-span", {
200
206
  "print-span-disabled": isDisabled.value,
@@ -203,7 +209,6 @@ var scriptRadio = /* @__PURE__ */ defineComponent({
203
209
  }, [showVal]);
204
210
  };
205
211
  const renderPresuffix = (o) => {
206
- var _a2;
207
212
  return createVNode("div", {
208
213
  "class": "presuffix-wrap"
209
214
  }, [o.prefix && createVNode("span", {
@@ -218,7 +223,14 @@ var scriptRadio = /* @__PURE__ */ defineComponent({
218
223
  "style": {
219
224
  color: choiceColor.value(o)
220
225
  },
221
- "placeholder": ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || "\u8BF7\u8F93\u5165",
226
+ "placeholder": function() {
227
+ var _a2, _b2, _c;
228
+ try {
229
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165";
230
+ } catch (e) {
231
+ return "\u8BF7\u8F93\u5165";
232
+ }
233
+ }(),
222
234
  "bordered": false,
223
235
  "on-update:value": (val) => inputPreSuffixChangeMethod(val, o),
224
236
  "onClick": stopClick,
@@ -241,7 +253,6 @@ var scriptRadio = /* @__PURE__ */ defineComponent({
241
253
  }, [o.label]);
242
254
  };
243
255
  const renderOther = (o) => {
244
- var _a2;
245
256
  return createVNode("div", {
246
257
  "class": "choose-other",
247
258
  "onClick": stopClick
@@ -252,7 +263,14 @@ var scriptRadio = /* @__PURE__ */ defineComponent({
252
263
  "style": {
253
264
  color: choiceColor.value(o)
254
265
  },
255
- "placeholder": ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || "\u8BF7\u8F93\u5165",
266
+ "placeholder": function() {
267
+ var _a2, _b2, _c;
268
+ try {
269
+ return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165";
270
+ } catch (e) {
271
+ return "\u8BF7\u8F93\u5165";
272
+ }
273
+ }(),
256
274
  "bordered": false,
257
275
  "type": "textarea",
258
276
  "autosize": true,
@@ -218,13 +218,19 @@ var scriptSelect = /* @__PURE__ */ defineComponent({
218
218
  immediate: true
219
219
  });
220
220
  return () => {
221
- var _a;
222
221
  return createVNode(resolveComponent("n-select"), {
223
222
  "value": props.form[props.item.val_key],
224
223
  "onUpdate:value": [($event) => props.form[props.item.val_key] = $event, handleSelectChange],
225
224
  "filterable": true,
226
225
  "clearable": true,
227
- "placeholder": ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || "\u8BF7\u9009\u62E9",
226
+ "placeholder": function() {
227
+ var _a, _b, _c;
228
+ try {
229
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.147")) || "\u8BF7\u9009\u62E9";
230
+ } catch (e) {
231
+ return "\u8BF7\u9009\u62E9";
232
+ }
233
+ }(),
228
234
  "value-field": columnKey.value,
229
235
  "label-field": labelKey.value,
230
236
  "multiple": isMultiple.value,
@@ -82,14 +82,27 @@ var RSign = /* @__PURE__ */ defineComponent({
82
82
  });
83
83
  };
84
84
  const deleteImg = (index) => {
85
- var _a, _b;
86
85
  if (props.isLock)
87
86
  return;
88
87
  dialog.warning({
89
88
  title: "\u63D0\u793A",
90
89
  content: "\u786E\u8BA4\u8981\u5220\u9664\u7B7E\u540D\u5417\uFF1F",
91
- positiveText: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || "\u786E\u5B9A",
92
- negativeText: ((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.28")) || "\u53D6\u6D88",
90
+ positiveText: function() {
91
+ var _a, _b, _c;
92
+ try {
93
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A";
94
+ } catch (e) {
95
+ return "\u786E\u5B9A";
96
+ }
97
+ }(),
98
+ negativeText: function() {
99
+ var _a, _b, _c;
100
+ try {
101
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88";
102
+ } catch (e) {
103
+ return "\u53D6\u6D88";
104
+ }
105
+ }(),
93
106
  maskClosable: false,
94
107
  closable: false,
95
108
  positiveButtonProps: {
@@ -131,10 +144,14 @@ var RSign = /* @__PURE__ */ defineComponent({
131
144
  "size": "small",
132
145
  "onClick": cancel
133
146
  }, {
134
- default: () => {
135
- var _a;
136
- return [createTextVNode(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || "\u53D6\u6D88")];
137
- }
147
+ default: () => [createTextVNode(function() {
148
+ var _a, _b, _c;
149
+ try {
150
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88";
151
+ } catch (e) {
152
+ return "\u53D6\u6D88";
153
+ }
154
+ }())]
138
155
  }), createVNode(resolveComponent("n-button"), {
139
156
  "size": "small",
140
157
  "onClick": handleReset,
@@ -146,10 +163,14 @@ var RSign = /* @__PURE__ */ defineComponent({
146
163
  "onClick": handleGenerate,
147
164
  "type": "primary"
148
165
  }, {
149
- default: () => {
150
- var _a;
151
- return [createTextVNode(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.428")) || "\u786E\u8BA4")];
152
- }
166
+ default: () => [createTextVNode(function() {
167
+ var _a, _b, _c;
168
+ try {
169
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.428")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.428")) || "\u786E\u8BA4";
170
+ } catch (e) {
171
+ return "\u786E\u8BA4";
172
+ }
173
+ }())]
153
174
  })]
154
175
  })]);
155
176
  };
@@ -90,7 +90,6 @@ var StandardModal = /* @__PURE__ */ defineComponent({
90
90
  }, null) : null])]);
91
91
  };
92
92
  const rednerModal = () => {
93
- var _a, _b;
94
93
  const curSlot = {
95
94
  ...context.slots
96
95
  };
@@ -108,8 +107,22 @@ var StandardModal = /* @__PURE__ */ defineComponent({
108
107
  height: modalConfig.modalHeight
109
108
  },
110
109
  "preset": "dialog",
111
- "positive-text": ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.428")) || "\u786E\u8BA4",
112
- "negative-text": ((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.28")) || "\u53D6\u6D88",
110
+ "positive-text": function() {
111
+ var _a, _b, _c;
112
+ try {
113
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.428")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.428")) || "\u786E\u8BA4";
114
+ } catch (e) {
115
+ return "\u786E\u8BA4";
116
+ }
117
+ }(),
118
+ "negative-text": function() {
119
+ var _a, _b, _c;
120
+ try {
121
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88";
122
+ } catch (e) {
123
+ return "\u53D6\u6D88";
124
+ }
125
+ }(),
113
126
  "on-positive-click": handleOk,
114
127
  "on-negative-click": cancel,
115
128
  "positiveButtonProps": {
@@ -230,10 +230,23 @@ const ScaleViewComputed = (props, state, config) => {
230
230
  return !!props.hideBtn || !!props.isLock || state.isFinished && !canEdit.value;
231
231
  });
232
232
  const showEvaluateLabel = computed(() => (item) => {
233
- var _a, _b;
234
233
  const obj = {
235
- EVALUATE_RADIO_BLOCK: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.298")) || "\u5355\u9009",
236
- EVALUATE_CHECKBOX_BLOCK: ((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.100")) || "\u591A\u9009"
234
+ EVALUATE_RADIO_BLOCK: function() {
235
+ var _a, _b, _c;
236
+ try {
237
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.298")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.298")) || "\u5355\u9009";
238
+ } catch (e) {
239
+ return "\u5355\u9009";
240
+ }
241
+ }(),
242
+ EVALUATE_CHECKBOX_BLOCK: function() {
243
+ var _a, _b, _c;
244
+ try {
245
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.100")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.100")) || "\u591A\u9009";
246
+ } catch (e) {
247
+ return "\u591A\u9009";
248
+ }
249
+ }()
237
250
  };
238
251
  return obj[item.type];
239
252
  });
@@ -260,8 +273,14 @@ const ScaleViewComputed = (props, state, config) => {
260
273
  return isShow && isRang <= 0;
261
274
  });
262
275
  const tipMsg = computed(() => {
263
- var _a;
264
- return props.type === "customList" ? ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.244")) || "\u4FDD\u5B58" : "\u63D0\u4EA4";
276
+ return props.type === "customList" ? function() {
277
+ var _a, _b, _c;
278
+ try {
279
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.244")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.244")) || "\u4FDD\u5B58";
280
+ } catch (e) {
281
+ return "\u4FDD\u5B58";
282
+ }
283
+ }() : "\u63D0\u4EA4";
265
284
  });
266
285
  const selectProps = computed(() => {
267
286
  return {
@@ -1,5 +1,5 @@
1
1
  import { AnyObject } from '../../../../shared/types';
2
2
  export declare const ScaleViewInit: (props: any, state: any, emit: any, config: any) => {
3
3
  initForm: (data: AnyObject) => Promise<void> | undefined;
4
- batchInjectForm: (data: AnyObject) => Promise<boolean>;
4
+ batchInjectForm: (data: AnyObject, skipValid?: boolean) => Promise<boolean>;
5
5
  };
@@ -146,12 +146,12 @@ const ScaleViewInit = (props, state, emit, config) => {
146
146
  state.form = defaultFormValue(state.formArray);
147
147
  state.rules = formatRules(state.formArray);
148
148
  };
149
- const batchInjectForm = async (data) => {
149
+ const batchInjectForm = async (data, skipValid = false) => {
150
150
  const {
151
151
  list = [],
152
152
  map = {}
153
153
  } = data;
154
- if (data.isNotFilled || data.isLackCustomer)
154
+ if (!skipValid && (data.isNotFilled || data.isLackCustomer))
155
155
  return Promise.reject();
156
156
  state.config = map;
157
157
  state.originConfig = JSON.parse(JSON.stringify(map));
@@ -115,7 +115,6 @@ const ScaleViewMethods = (props, state, emit, config) => {
115
115
  emit("startWriteScale");
116
116
  };
117
117
  const closeEvaluateCountdown = () => {
118
- var _a;
119
118
  state.showEvaluateCountdown = false;
120
119
  if (isPreviewScale.value)
121
120
  return;
@@ -125,12 +124,18 @@ const ScaleViewMethods = (props, state, emit, config) => {
125
124
  title: "\u6E29\u99A8\u63D0\u793A",
126
125
  content: "\u6D4B\u8BC4\u65F6\u95F4\u5230\u4E86\uFF0C\u7ED3\u675F\u6D4B\u8BC4\uFF01",
127
126
  maskClosable: false,
128
- positiveText: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || "\u786E\u5B9A",
127
+ positiveText: function() {
128
+ var _a, _b, _c;
129
+ try {
130
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A";
131
+ } catch (e) {
132
+ return "\u786E\u5B9A";
133
+ }
134
+ }(),
129
135
  onPositiveClick: () => ({})
130
136
  });
131
137
  };
132
138
  const evatipConfirm = (str) => {
133
- var _a;
134
139
  dialog.warning({
135
140
  title: "\u63D0\u793A",
136
141
  content: () => {
@@ -140,7 +145,14 @@ const ScaleViewMethods = (props, state, emit, config) => {
140
145
  },
141
146
  class: "c-evatip-dialog-wrap",
142
147
  showIcon: false,
143
- positiveText: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || "\u786E\u5B9A",
148
+ positiveText: function() {
149
+ var _a, _b, _c;
150
+ try {
151
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A";
152
+ } catch (e) {
153
+ return "\u786E\u5B9A";
154
+ }
155
+ }(),
144
156
  negativeText: "\u5173\u95ED",
145
157
  maskClosable: false,
146
158
  onPositiveClick() {
@@ -228,7 +228,6 @@ const ScaleViewSubmit = (props, state, emit, config) => {
228
228
  });
229
229
  };
230
230
  const confirmSubmit = (message2) => {
231
- var _a, _b;
232
231
  dialog.warning({
233
232
  title: "\u6E29\u99A8\u63D0\u793A",
234
233
  content: () => h("div", {
@@ -236,8 +235,22 @@ const ScaleViewSubmit = (props, state, emit, config) => {
236
235
  paddingLeft: "30px"
237
236
  }
238
237
  }, message2),
239
- positiveText: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || "\u786E\u5B9A",
240
- negativeText: ((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.28")) || "\u53D6\u6D88",
238
+ positiveText: function() {
239
+ var _a, _b, _c;
240
+ try {
241
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A";
242
+ } catch (e) {
243
+ return "\u786E\u5B9A";
244
+ }
245
+ }(),
246
+ negativeText: function() {
247
+ var _a, _b, _c;
248
+ try {
249
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88";
250
+ } catch (e) {
251
+ return "\u53D6\u6D88";
252
+ }
253
+ }(),
241
254
  maskClosable: false,
242
255
  closable: false,
243
256
  positiveButtonProps: {
@@ -20,26 +20,45 @@ const ScaleViewValidate = (props, state, config) => {
20
20
  return isAdress;
21
21
  };
22
22
  const checkAdress = (rule, value) => {
23
- var _a;
24
23
  let {
25
24
  address
26
25
  } = value || {};
27
26
  if (!address) {
28
- return new Error(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || "\u5FC5\u586B");
27
+ return new Error(function() {
28
+ var _a, _b, _c;
29
+ try {
30
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B";
31
+ } catch (e) {
32
+ return "\u5FC5\u586B";
33
+ }
34
+ }());
29
35
  }
30
36
  return true;
31
37
  };
32
38
  const checkLabel = (rule, value) => {
33
- var _a, _b;
34
39
  if (!value || !Object.keys(value).length) {
35
- return new Error(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || "\u5FC5\u586B");
40
+ return new Error(function() {
41
+ var _a, _b, _c;
42
+ try {
43
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B";
44
+ } catch (e) {
45
+ return "\u5FC5\u586B";
46
+ }
47
+ }());
36
48
  }
37
49
  let {
38
50
  labelStr,
39
51
  labels = []
40
52
  } = value;
41
53
  if (!labelStr || !labels.length) {
42
- return new Error(((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.248")) || "\u5FC5\u586B");
54
+ return new Error(function() {
55
+ var _a, _b, _c;
56
+ try {
57
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B";
58
+ } catch (e) {
59
+ return "\u5FC5\u586B";
60
+ }
61
+ }());
43
62
  }
44
63
  return true;
45
64
  };
@@ -116,7 +135,6 @@ const ScaleViewValidate = (props, state, config) => {
116
135
  return Object.prototype.toString.call(val);
117
136
  };
118
137
  const validateRequired = (rule, value) => {
119
- var _a;
120
138
  let type = checkType(value);
121
139
  if (type == "[object Object]") {
122
140
  if (value && Object.keys(value).length)
@@ -131,19 +149,32 @@ const ScaleViewValidate = (props, state, config) => {
131
149
  if (value)
132
150
  return true;
133
151
  }
134
- return new Error(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || "\u5FC5\u586B");
152
+ return new Error(function() {
153
+ var _a, _b, _c;
154
+ try {
155
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B";
156
+ } catch (e) {
157
+ return "\u5FC5\u586B";
158
+ }
159
+ }());
135
160
  };
136
161
  const filterArr = ["LABEL", "ADDRESS"];
137
162
  const formatRules = (formArray) => {
138
163
  const rules = {};
139
164
  formArray.forEach((item) => {
140
- var _a;
141
165
  let newTitle = item.val_key;
142
166
  rules[newTitle] = [];
143
167
  if (item.required && !filterArr.includes(item.type)) {
144
168
  rules[newTitle].push({
145
169
  required: item.required,
146
- message: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || "\u5FC5\u586B",
170
+ message: function() {
171
+ var _a, _b, _c;
172
+ try {
173
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B";
174
+ } catch (e) {
175
+ return "\u5FC5\u586B";
176
+ }
177
+ }(),
147
178
  trigger: "change",
148
179
  validator: validateRequired
149
180
  });