@bytenew/bn-bus-ui 1.1.463 → 1.1.465

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 (167) hide show
  1. package/dist/assocTableSearch-BsLq8li6.js +349 -0
  2. package/dist/assocTableSearch.css +1 -0
  3. package/dist/bn-bus-ui.es.js +65 -0
  4. package/dist/bn-bus-ui.umd.js +17 -0
  5. package/dist/chooseIPaasData-DUfjjEr2.js +391 -0
  6. package/dist/chooseIPaasData.css +1 -0
  7. package/dist/defaultSet-CR0AVrl6.js +297 -0
  8. package/dist/defaultSet.css +1 -0
  9. package/dist/fileFormData-D_Q1vylE.js +53 -0
  10. package/dist/formItemFooter-CN8bMSJS.js +108 -0
  11. package/dist/formItemFooter.css +1 -0
  12. package/dist/funcExprDialog-OOejhToM.js +139 -0
  13. package/dist/funcExprDialog.css +1 -0
  14. package/dist/index-B-VEGqoB.js +183 -0
  15. package/dist/index-BDLkgkeO.js +66 -0
  16. package/dist/index-BK-KXSCO.js +221 -0
  17. package/dist/index-BwDhrvPs.js +109 -0
  18. package/dist/index-CKX6Ga7g.js +135 -0
  19. package/dist/index-CYrbjge7.js +64 -0
  20. package/dist/index-CpTMfPTm.js +45 -0
  21. package/dist/index-D94SlRAW.js +746 -0
  22. package/dist/index-DGQrmPZ8.js +66 -0
  23. package/dist/index-D_Gjzn2Y.js +89 -0
  24. package/dist/index-DbTkT_Pc.js +118 -0
  25. package/dist/index-Dp6qwgSk.js +58 -0
  26. package/dist/index-GqIlg6mb.js +89 -0
  27. package/dist/index-MYgF6eap.js +44 -0
  28. package/dist/index-btmDCgbT.js +178 -0
  29. package/dist/index-die9_Xdx.js +51 -0
  30. package/dist/index-x2GgSFZY.js +45 -0
  31. package/dist/index.css +1 -0
  32. package/dist/index2.css +1 -0
  33. package/dist/index3.css +1 -0
  34. package/dist/index4.css +1 -0
  35. package/dist/index5.css +1 -0
  36. package/dist/index6.css +1 -0
  37. package/dist/index7.css +1 -0
  38. package/dist/install-D9fhAvpu.js +16424 -0
  39. package/dist/install.css +1 -0
  40. package/dist/setOption-aixerIsi.js +329 -0
  41. package/dist/setOption.css +1 -0
  42. package/dist/setRelationOption-AZZQd-2m.js +775 -0
  43. package/dist/setRelationOption.css +1 -0
  44. package/package.json +7 -22
  45. package/install.js +0 -134
  46. package/packages/BnAddress/index.vue +0 -141
  47. package/packages/BnAddressParse/index.vue +0 -75
  48. package/packages/BnAdvancedFilter/BnFilterView.vue +0 -145
  49. package/packages/BnAdvancedFilter/index.vue +0 -345
  50. package/packages/BnAdvancedFilter/util.js +0 -171
  51. package/packages/BnCascader/BnCascader.vue +0 -543
  52. package/packages/BnCascader/BnCascaderPanel.vue +0 -1331
  53. package/packages/BnCascader/cascaderDisplay.js +0 -102
  54. package/packages/BnCheck/BnCheck.vue +0 -253
  55. package/packages/BnColumnConfig/columnConfigDialog.vue +0 -134
  56. package/packages/BnColumnConfig/component/childrenFormSetting/assocTable.vue +0 -143
  57. package/packages/BnColumnConfig/component/childrenFormSetting/assocTableSearch.vue +0 -314
  58. package/packages/BnColumnConfig/component/childrenFormSetting/index.vue +0 -243
  59. package/packages/BnColumnConfig/component/defaultSet/defaultSet.vue +0 -114
  60. package/packages/BnColumnConfig/component/defaultSet/stringDefault.vue +0 -210
  61. package/packages/BnColumnConfig/component/funcExprDialog/funcExprDialog.vue +0 -126
  62. package/packages/BnColumnConfig/component/packageFilter/index.vue +0 -141
  63. package/packages/BnColumnConfig/component/paraExplainSet/index.vue +0 -156
  64. package/packages/BnColumnConfig/component/setOption/setOption.vue +0 -321
  65. package/packages/BnColumnConfig/component/setRelationOption/ConditionList.vue +0 -277
  66. package/packages/BnColumnConfig/component/setRelationOption/LevelHeader.vue +0 -144
  67. package/packages/BnColumnConfig/component/setRelationOption/setRelationOption.vue +0 -642
  68. package/packages/BnColumnConfig/data.js +0 -129
  69. package/packages/BnColumnConfig/index.scss +0 -23
  70. package/packages/BnColumnConfig/index.vue +0 -309
  71. package/packages/BnCondVal/BnCondVal.vue +0 -112
  72. package/packages/BnCondVal/itemVal/dateRegVal.vue +0 -39
  73. package/packages/BnCondVal/itemVal/dateVal.vue +0 -39
  74. package/packages/BnCondVal/itemVal/numRegVal.vue +0 -67
  75. package/packages/BnCondVal/itemVal/numVal.vue +0 -44
  76. package/packages/BnCondVal/itemVal/relationVal.vue +0 -73
  77. package/packages/BnCondVal/itemVal/selectColumnVal.vue +0 -58
  78. package/packages/BnCondVal/itemVal/selectVal.vue +0 -59
  79. package/packages/BnCondVal/itemVal/stringVal.vue +0 -156
  80. package/packages/BnCondition/index.vue +0 -551
  81. package/packages/BnCondition/util.js +0 -232
  82. package/packages/BnDatePicker/BnDatePicker.vue +0 -194
  83. package/packages/BnDrop/BnDrop.vue +0 -917
  84. package/packages/BnEmptyTip/BnEmptyTip.vue +0 -107
  85. package/packages/BnExportOrder/BnExportOrder.vue +0 -241
  86. package/packages/BnExportOrder/validatorCode.vue +0 -94
  87. package/packages/BnFileView/BnFileView.vue +0 -271
  88. package/packages/BnFileView/FileDetail.vue +0 -125
  89. package/packages/BnFileView/videoPreview.vue +0 -70
  90. package/packages/BnFilterOption/BnFilterOption.vue +0 -160
  91. package/packages/BnFunExpr/BnFunExpr.vue +0 -608
  92. package/packages/BnImportOrder/BnImportOrder.vue +0 -323
  93. package/packages/BnImportTemplate/BnImportTemplate.vue +0 -866
  94. package/packages/BnImportTemplate/assets/merge_tip_img.png +0 -0
  95. package/packages/BnImportTemplate/assets/sheet_tip.png +0 -0
  96. package/packages/BnImportTemplate/assets/xls.png +0 -0
  97. package/packages/BnImportTemplate/components/ImportTemplateTrigger.vue +0 -198
  98. package/packages/BnImportTemplate/components/TemplateEditDialog.vue +0 -340
  99. package/packages/BnImportTemplate/components/TemplateFieldsConfig.vue +0 -401
  100. package/packages/BnImportTemplate/components/TemplateListDialog.vue +0 -297
  101. package/packages/BnInpNum/BnInpNum.vue +0 -165
  102. package/packages/BnMenus/BnMenus.vue +0 -502
  103. package/packages/BnMenus/MenuItem.vue +0 -321
  104. package/packages/BnOrderCard/BnOrderCard.vue +0 -389
  105. package/packages/BnOrderCard/orderRemark.vue +0 -178
  106. package/packages/BnOrderCard/util.js +0 -94
  107. package/packages/BnOrderDetail/BnOrderDetail.vue +0 -338
  108. package/packages/BnOrderDetail/filterLogByUser.vue +0 -108
  109. package/packages/BnOrderDetail/orderLogs.vue +0 -53
  110. package/packages/BnOrderDetail/showSubForm/index.vue +0 -41
  111. package/packages/BnOrderDetail/showSubForm/showChildTable.vue +0 -61
  112. package/packages/BnOrderDetail/showSubForm/showTimeLine.vue +0 -131
  113. package/packages/BnOrderDetail/showSubForm/tableCellCopy.vue +0 -84
  114. package/packages/BnOrderShare/index.vue +0 -378
  115. package/packages/BnOrderShare/shareUrlInp.vue +0 -54
  116. package/packages/BnRadio/BnRadio.vue +0 -181
  117. package/packages/BnRelation/BnRelation.vue +0 -120
  118. package/packages/BnSelect/BnSelect.vue +0 -485
  119. package/packages/BnSmartForm/BnBatchForm.vue +0 -334
  120. package/packages/BnSmartForm/BnBatchFormDialog.vue +0 -423
  121. package/packages/BnSmartForm/BnSmartElf/elfLog/index.vue +0 -57
  122. package/packages/BnSmartForm/BnSmartElf/index.vue +0 -95
  123. package/packages/BnSmartForm/BnSmartFormPsychic.js +0 -629
  124. package/packages/BnSmartForm/BnSmartFormUtil.js +0 -524
  125. package/packages/BnSmartForm/addressForm/index.vue +0 -73
  126. package/packages/BnSmartForm/checkboxForm/index.vue +0 -99
  127. package/packages/BnSmartForm/childrenForm/childFormFile.vue +0 -237
  128. package/packages/BnSmartForm/childrenForm/childrenFormBody.vue +0 -260
  129. package/packages/BnSmartForm/childrenForm/index.vue +0 -110
  130. package/packages/BnSmartForm/childrenForm/searchInventory.vue +0 -115
  131. package/packages/BnSmartForm/chooseAssocTable/chooseAssocTable.vue +0 -451
  132. package/packages/BnSmartForm/chooseAssocTable/chooseChildGood.vue +0 -229
  133. package/packages/BnSmartForm/chooseAssocTable/tableCellCopy.vue +0 -84
  134. package/packages/BnSmartForm/chooseChildOrder/chooseChildOrder.vue +0 -158
  135. package/packages/BnSmartForm/chooseIPaasData/chooseIPaasData.vue +0 -307
  136. package/packages/BnSmartForm/chooseIPaasData/tableCellCopy.vue +0 -84
  137. package/packages/BnSmartForm/choosePackage/choosePackage.vue +0 -361
  138. package/packages/BnSmartForm/dateDualForm/index.vue +0 -37
  139. package/packages/BnSmartForm/dateForm/index.vue +0 -38
  140. package/packages/BnSmartForm/fileForm/fileFormData.js +0 -50
  141. package/packages/BnSmartForm/fileForm/index.vue +0 -240
  142. package/packages/BnSmartForm/formItemFooter/formItemFooter.vue +0 -38
  143. package/packages/BnSmartForm/formItemTop/formItemTop.vue +0 -42
  144. package/packages/BnSmartForm/index.vue +0 -1201
  145. package/packages/BnSmartForm/numberForm/index.vue +0 -63
  146. package/packages/BnSmartForm/radioForm/index.vue +0 -72
  147. package/packages/BnSmartForm/receiveForm/index.vue +0 -112
  148. package/packages/BnSmartForm/relationForm/index.vue +0 -82
  149. package/packages/BnSmartForm/scoreForm/index.vue +0 -39
  150. package/packages/BnSmartForm/selectForm/index.vue +0 -55
  151. package/packages/BnSmartForm/showValForm/index.vue +0 -42
  152. package/packages/BnSmartForm/showValForm/showValFormTable.vue +0 -104
  153. package/packages/BnSmartForm/smartFormsCommon.scss +0 -43
  154. package/packages/BnSmartForm/stringForm/index.vue +0 -170
  155. package/packages/BnVirtPopover/index.vue +0 -319
  156. package/packages/BnWebLog/BnWebLog.vue +0 -140
  157. package/packages/BnWorkSettingDrop/advancedOptions.js +0 -112
  158. package/packages/BnWorkSettingDrop/benBenAIUtil.js +0 -89
  159. package/packages/BnWorkSettingDrop/index.vue +0 -292
  160. package/packages/font/iconfont.css +0 -243
  161. package/packages/font/iconfont.ttf +0 -0
  162. package/packages/font/iconfont.woff +0 -0
  163. package/packages/font/iconfont.woff2 +0 -0
  164. package/utils/addressParse-old.js +0 -645
  165. package/utils/addressParse.js +0 -735
  166. package/utils/config.js +0 -68
  167. package/utils/index.js +0 -1171
@@ -0,0 +1,53 @@
1
+ const p = [
2
+ "gz",
3
+ "cdr",
4
+ "csv",
5
+ "png",
6
+ "jpg",
7
+ "jpeg",
8
+ "gif",
9
+ "bmp",
10
+ "rtf",
11
+ "swf",
12
+ "avi",
13
+ "mpeg",
14
+ "ogg",
15
+ "ogv",
16
+ "webm",
17
+ "mp3",
18
+ "wav",
19
+ "mid",
20
+ "rar",
21
+ "zip",
22
+ "tar",
23
+ "7z",
24
+ "bz2",
25
+ "doc",
26
+ "docx",
27
+ "xls",
28
+ "xlsx",
29
+ "ppt",
30
+ "pptx",
31
+ "pdf",
32
+ "txt",
33
+ "xml",
34
+ "xmind",
35
+ "rp",
36
+ "graffle",
37
+ "mp4",
38
+ "mpg",
39
+ "mov",
40
+ "rmvb",
41
+ "mkv",
42
+ "pot",
43
+ "pps",
44
+ "mpp",
45
+ "rtf",
46
+ "psd",
47
+ "csv",
48
+ "mmap",
49
+ "ofd"
50
+ ];
51
+ export {
52
+ p as f
53
+ };
@@ -0,0 +1,108 @@
1
+ import { resolveComponent as g, openBlock as n, createElementBlock as r, normalizeClass as y, withDirectives as m, createElementVNode as o, vShow as u, createTextVNode as c, toDisplayString as i, createBlock as w, withCtx as s, createCommentVNode as a, Fragment as B, renderList as C } from "vue";
2
+ import { _ as v } from "./install-D9fhAvpu.js";
3
+ const F = {
4
+ name: "formItemTop",
5
+ props: {
6
+ //组件对象
7
+ column: { type: Object },
8
+ dataBack: { type: Object }
9
+ }
10
+ }, S = { class: "w-color-red w-font-more" };
11
+ function U(d, t, e, I, h, k) {
12
+ const l = g("el-popover");
13
+ return n(), r("div", {
14
+ class: y(["w-default-wrap BnSmartForm-title", { "w-color-red": e.column.error }])
15
+ }, [
16
+ m(o("span", S, "*", 512), [
17
+ [u, e.column.extraInfo.valueEmptyCheck == 1]
18
+ ]),
19
+ c(" " + i(e.column.name) + " ", 1),
20
+ e.column.extraInfo.searchKey == 2 ? (n(), w(l, {
21
+ key: 0,
22
+ placement: "top-start",
23
+ width: 400,
24
+ trigger: "hover",
25
+ "show-arrow": !1
26
+ }, {
27
+ reference: s(() => [...t[0] || (t[0] = [
28
+ o("span", { class: "bnUIcon bnUIcon-fast w-color-orange w-font-weight w-cursor-pointer" }, null, -1)
29
+ ])]),
30
+ default: s(() => [
31
+ t[1] || (t[1] = o("div", { class: "BnSmartForm-title-tip" }, " 拥有该标识的组件,会在手动修改值或输入框失去焦点后,触发第三方数据拉取,并将结果回填到对应的组件上。 ", -1))
32
+ ]),
33
+ _: 1
34
+ })) : a("", !0),
35
+ e.dataBack && e.dataBack.key == e.column.columnCode ? (n(), w(l, {
36
+ key: 1,
37
+ placement: "top-start",
38
+ width: 400,
39
+ trigger: "hover",
40
+ "show-arrow": !1
41
+ }, {
42
+ reference: s(() => [...t[2] || (t[2] = [
43
+ o("span", { class: "bnUIcon bnUIcon-split w-color-blue w-font16 w-font-weight w-cursor-pointer" }, null, -1)
44
+ ])]),
45
+ default: s(() => [
46
+ t[3] || (t[3] = o("div", { class: "BnSmartForm-title-tip" }, [
47
+ o("span", { class: "w-color-blue" }, "多层级数据"),
48
+ c(",通过拥有 "),
49
+ o("span", { class: "bnUIcon bnUIcon-fast w-color-orange" }),
50
+ c(" 标识的组件拉取到完整第三方数据后,以该组件为主键进行拆分,选择数据后,我们会整合回填到表单的其他字段中。 "),
51
+ o("span", { class: "w-color-orange" }, "例如:"),
52
+ c("通过订单号拉取到多个包裹,在这里选择包裹后,会自动将多笔包裹数据合并回填整个表单得到完整数据 ")
53
+ ], -1))
54
+ ]),
55
+ _: 1
56
+ })) : a("", !0)
57
+ ], 2);
58
+ }
59
+ const R = /* @__PURE__ */ v(F, [["render", U], ["__scopeId", "data-v-2ae0a737"]]), E = {
60
+ name: "formItemFooter",
61
+ props: {
62
+ //组件对象
63
+ column: { type: Object },
64
+ extraInfo: Object
65
+ }
66
+ }, j = { class: "w-default-wrap" }, O = { class: "w-default-wrap BnSmartForm-tips" }, N = {
67
+ key: 0,
68
+ class: "w-default-wrap BnSmartForm-explain"
69
+ }, P = {
70
+ key: 1,
71
+ class: "w-default-wrap w-margin-top8 w-flex-wrap w-flex-gap8"
72
+ };
73
+ function T(d, t, e, I, h, k) {
74
+ var f, p, _;
75
+ const l = g("el-image");
76
+ return n(), r("div", j, [
77
+ o("div", O, [
78
+ m(o("span", { class: "w-font-min w-color-red" }, i(e.column.error), 513), [
79
+ [u, e.column.error]
80
+ ]),
81
+ m(o("span", { class: "w-font-min w-color-orange" }, i(e.column.warning), 513), [
82
+ [u, e.column.warning && !e.column.error]
83
+ ]),
84
+ e.extraInfo && e.extraInfo.isCheckRepeat && e.column.warning && e.column.warning.includes("相同") ? (n(), r("span", {
85
+ key: 0,
86
+ class: "w-font-min w-color-blue w-cursor-pointer",
87
+ onClick: t[0] || (t[0] = (x) => d.$emit("operate", this.column, "chooseRepeat"))
88
+ }, "查看")) : a("", !0)
89
+ ]),
90
+ (f = e.column.extraInfo) != null && f.paraExplain ? (n(), r("div", N, i(e.column.extraInfo.paraExplain), 1)) : a("", !0),
91
+ ((_ = (p = e.column.extraInfo) == null ? void 0 : p.operationPictures) == null ? void 0 : _.length) > 0 ? (n(), r("div", P, [
92
+ (n(!0), r(B, null, C(e.column.extraInfo.operationPictures, (x, b) => (n(), w(l, {
93
+ "preview-teleported": "",
94
+ style: { width: "46px", height: "46px" },
95
+ src: x,
96
+ "preview-src-list": e.column.extraInfo.operationPictures,
97
+ "show-progress": "",
98
+ "initial-index": b,
99
+ fit: "cover"
100
+ }, null, 8, ["src", "preview-src-list", "initial-index"]))), 256))
101
+ ])) : a("", !0)
102
+ ]);
103
+ }
104
+ const z = /* @__PURE__ */ v(E, [["render", T], ["__scopeId", "data-v-101622e9"]]);
105
+ export {
106
+ R as a,
107
+ z as f
108
+ };
@@ -0,0 +1 @@
1
+ .BnSmartForm-title[data-v-2ae0a737]{height:32px;line-height:32px;font-size:14px;color:#666}.BnSmartForm-title-tip[data-v-2ae0a737]{font-size:12px;color:#777}.BnSmartForm-explain[data-v-2ae0a737]{margin-top:5px;color:#888;font-size:12px}.BnSmartForm-img[data-v-2ae0a737]{margin-top:8px}.BnSmartForm-img-item[data-v-2ae0a737]{display:inline-block;width:46px;height:46px;margin-right:8px;border-radius:4px;border:1px solid #E6E6E6}.BnSmartForm-img-item img[data-v-2ae0a737]{width:100%;height:100%;border-radius:4px}.BnSmartForm-tips[data-v-2ae0a737]{line-height:32px;font-size:12px}.BnSmartForm-title[data-v-101622e9]{height:32px;line-height:32px;font-size:14px;color:#666}.BnSmartForm-title-tip[data-v-101622e9]{font-size:12px;color:#777}.BnSmartForm-explain[data-v-101622e9]{margin-top:5px;color:#888;font-size:12px}.BnSmartForm-img[data-v-101622e9]{margin-top:8px}.BnSmartForm-img-item[data-v-101622e9]{display:inline-block;width:46px;height:46px;margin-right:8px;border-radius:4px;border:1px solid #E6E6E6}.BnSmartForm-img-item img[data-v-101622e9]{width:100%;height:100%;border-radius:4px}.BnSmartForm-tips[data-v-101622e9]{line-height:32px;font-size:12px}
@@ -0,0 +1,139 @@
1
+ import { resolveComponent as i, openBlock as c, createBlock as f, withCtx as n, createCommentVNode as v, createElementVNode as r, createVNode as a, createTextVNode as u } from "vue";
2
+ import { _ as I } from "./install-D9fhAvpu.js";
3
+ const _ = {
4
+ name: "funcExprDialog",
5
+ props: {
6
+ //最终选中的value
7
+ modelValue: {
8
+ type: Object,
9
+ default() {
10
+ return {};
11
+ }
12
+ },
13
+ componentList: Array,
14
+ tableCode: String,
15
+ postFunc: Function,
16
+ extendPost: Object
17
+ },
18
+ computed: {
19
+ columnInfo: {
20
+ get() {
21
+ return this.modelValue;
22
+ },
23
+ set(t) {
24
+ this.$emit("update:modelValue", t);
25
+ }
26
+ },
27
+ columnList() {
28
+ let t = [];
29
+ return this.componentList.forEach((e) => {
30
+ let l = { id: e.id, behaviorType: e.behaviorType, name: e.name };
31
+ if (e.behaviorType === 13) {
32
+ const d = e.moduleDefinition.map((o) => ({
33
+ id: o.id,
34
+ behaviorType: o.behaviorType,
35
+ name: `${e.name}-${o.name}`,
36
+ parentId: e.id,
37
+ parentName: e.name
38
+ }));
39
+ t.push(...d);
40
+ } else
41
+ t.push(l);
42
+ }), [
43
+ {
44
+ name: "工作表组件",
45
+ children: t
46
+ }
47
+ ];
48
+ }
49
+ },
50
+ data() {
51
+ return {
52
+ visible: !1,
53
+ loading: !1
54
+ };
55
+ },
56
+ methods: {
57
+ open() {
58
+ this.loading = !1, this.visible = !0;
59
+ },
60
+ submitForm() {
61
+ this.loading = !0;
62
+ const t = this.$refs.bnFunExpr.saveRule();
63
+ if (!t.exprDisplay) {
64
+ this.columnInfo.extraInfo.exprId = "", this.columnInfo.extraInfo.exprExec = "", this.$emit("saveOver", ""), this.visible = !1;
65
+ return;
66
+ }
67
+ this.postFunc(
68
+ "/expr/create",
69
+ { ...t, ...this.extendPost }
70
+ ).then((e) => {
71
+ this.loading = !1, e.code || (this.$emit("saveOver", t.exprDisplay), this.columnInfo.extraInfo.exprId = e.data.id, this.columnInfo.extraInfo.exprExec = e.data.exprExec, (this.columnInfo.id == 6 || this.columnInfo.columnCode == "task_title") && (this.columnInfo.extraInfo.isAutoTitle = "1", this.columnInfo.extraInfo.autoTitleRule = ""), this.visible = !1);
72
+ });
73
+ }
74
+ }
75
+ }, g = { class: "dialog-footer" };
76
+ function y(t, e, l, d, o, s) {
77
+ const h = i("BnFunExpr"), x = i("el-link"), p = i("el-button"), b = i("el-dialog");
78
+ return c(), f(b, {
79
+ modelValue: o.visible,
80
+ "onUpdate:modelValue": e[1] || (e[1] = (m) => o.visible = m),
81
+ title: "编辑函数",
82
+ top: "5vh",
83
+ "close-on-click-modal": !1,
84
+ width: "900",
85
+ "destroy-on-close": !0,
86
+ "append-to-body": ""
87
+ }, {
88
+ footer: n(() => [
89
+ r("div", g, [
90
+ r("div", null, [
91
+ a(x, {
92
+ type: "primary",
93
+ href: "https://banniu.yuque.com/staff-dmhmqa/zn9sih/mgcoi8ogkyvew7gt?singleDoc# ",
94
+ target: "_blank"
95
+ }, {
96
+ default: n(() => [...e[2] || (e[2] = [
97
+ u("使用手册 ", -1)
98
+ ])]),
99
+ _: 1
100
+ })
101
+ ]),
102
+ r("div", null, [
103
+ a(p, {
104
+ onClick: e[0] || (e[0] = (m) => o.visible = !1)
105
+ }, {
106
+ default: n(() => [...e[3] || (e[3] = [
107
+ u("取消", -1)
108
+ ])]),
109
+ _: 1
110
+ }),
111
+ a(p, {
112
+ type: "primary",
113
+ loading: o.loading,
114
+ onClick: s.submitForm
115
+ }, {
116
+ default: n(() => [...e[4] || (e[4] = [
117
+ u("确认", -1)
118
+ ])]),
119
+ _: 1
120
+ }, 8, ["loading", "onClick"])
121
+ ])
122
+ ])
123
+ ]),
124
+ default: n(() => [
125
+ o.visible ? (c(), f(h, {
126
+ key: 0,
127
+ id: s.columnInfo.extraInfo.exprId,
128
+ "column-list": s.columnList,
129
+ ref: "bnFunExpr",
130
+ "post-func": l.postFunc
131
+ }, null, 8, ["id", "column-list", "post-func"])) : v("", !0)
132
+ ]),
133
+ _: 1
134
+ }, 8, ["modelValue"]);
135
+ }
136
+ const F = /* @__PURE__ */ I(_, [["render", y], ["__scopeId", "data-v-d954db8c"]]);
137
+ export {
138
+ F as default
139
+ };
@@ -0,0 +1 @@
1
+ .dialog-footer[data-v-d954db8c]{display:flex;justify-content:space-between;position:relative}
@@ -0,0 +1,183 @@
1
+ import { debounce as F } from "lodash";
2
+ import { f as E, a as Q } from "./formItemFooter-CN8bMSJS.js";
3
+ import { resolveComponent as u, openBlock as r, createElementBlock as v, createVNode as i, createElementVNode as b, createBlock as d, withCtx as C, createTextVNode as U, toDisplayString as R, createCommentVNode as D } from "vue";
4
+ import { _ as N } from "./install-D9fhAvpu.js";
5
+ const T = {
6
+ name: "stringForm",
7
+ components: { formItemTop: Q, formItemFooter: E },
8
+ props: {
9
+ column: Object,
10
+ dataBack: Object,
11
+ extraInfo: Object,
12
+ disabled: Boolean,
13
+ postFunc: Function
14
+ },
15
+ data() {
16
+ return {
17
+ lastQueryValue: null,
18
+ lastQueryResults: []
19
+ };
20
+ },
21
+ computed: {
22
+ parsedDataExtra() {
23
+ var l, t;
24
+ const e = ((t = (l = this.column) == null ? void 0 : l.extraInfo) == null ? void 0 : t.dataExtra) || "";
25
+ if (!e) return null;
26
+ try {
27
+ return JSON.parse(e);
28
+ } catch {
29
+ return null;
30
+ }
31
+ },
32
+ isUrlType() {
33
+ var e;
34
+ return !!((e = this.parsedDataExtra) != null && e.searchUrl);
35
+ },
36
+ dataExtraUrl() {
37
+ var e;
38
+ return ((e = this.parsedDataExtra) == null ? void 0 : e.searchUrl) || "";
39
+ }
40
+ },
41
+ methods: {
42
+ /**
43
+ * 输入框输入事件
44
+ * */
45
+ onInput(e) {
46
+ this.column.error = "", this.column.warning = "", this.$emit("onInput", this.column), this.onChange(e);
47
+ },
48
+ /**
49
+ * 输入框Change事件
50
+ * @param {String} type 是否是其他事件类型
51
+ * */
52
+ onChange: F(function(e, l) {
53
+ this.column.value && this.checkValue(), this.$emit("onChange", this.column);
54
+ }, 500),
55
+ /**
56
+ * 输入框onFocus事件
57
+ * */
58
+ onFocus(e) {
59
+ this.$emit("focus", this.column);
60
+ },
61
+ /**
62
+ * 输入框失去焦点事件
63
+ * */
64
+ onBlur() {
65
+ this.$emit("blur", this.column);
66
+ },
67
+ /**
68
+ * 检查输入框的值,并判断是否需要调用检查数据唯一
69
+ *
70
+ * */
71
+ checkValue() {
72
+ try {
73
+ this.column.extraInfo.regular && (new RegExp(this.column.extraInfo.regular).test(this.column.value) || (this.column.error = this.column.extraInfo.paraExplain || "请输入符合要求的" + this.column.name));
74
+ } catch (e) {
75
+ console.log("stringForm.changeErr:" + e);
76
+ }
77
+ },
78
+ /**
79
+ * 远程搜索建议(聚焦时用当前值筛选,输入变更时用输入值筛选)
80
+ */
81
+ querySearch(e, l) {
82
+ if (!e) {
83
+ this.lastQueryValue = null, this.lastQueryResults = [], l([]);
84
+ return;
85
+ }
86
+ if (this.lastQueryValue === e) {
87
+ l(this.lastQueryResults);
88
+ return;
89
+ }
90
+ const t = {
91
+ ...this.column.postData || {},
92
+ column: this.column.columnCode,
93
+ keyword: e || "",
94
+ pageNo: 1,
95
+ pageSize: 50
96
+ }, m = this.dataExtraUrl;
97
+ this.postFunc(m, t).then((s) => {
98
+ var o;
99
+ if (!s.code && ((o = s.data) != null && o.results)) {
100
+ const c = s.data.results.map((n) => ({ value: n.value || n.label || "", ...n }));
101
+ this.lastQueryValue = e, this.lastQueryResults = c, l(c);
102
+ } else
103
+ this.lastQueryValue = e, this.lastQueryResults = [], l([]);
104
+ }).catch(() => {
105
+ this.lastQueryValue = e, this.lastQueryResults = [], l([]);
106
+ });
107
+ },
108
+ handleSelect(e) {
109
+ this.column.value = e.value, this.column.error = "", this.column.warning = "", this.$emit("onInput", this.column), this.$emit("onChange", this.column);
110
+ }
111
+ }
112
+ }, O = { class: "w-default-wrap" }, S = { class: "w-default-wrap" }, j = {
113
+ key: 3,
114
+ class: "w-margin-top6"
115
+ };
116
+ function z(e, l, t, m, s, o) {
117
+ var f, p, x, I, y, V, k, g;
118
+ const c = u("formItemTop"), n = u("el-autocomplete"), h = u("el-input"), B = u("el-button"), _ = u("formItemFooter");
119
+ return r(), v("div", O, [
120
+ i(c, {
121
+ column: t.column,
122
+ dataBack: t.dataBack
123
+ }, null, 8, ["column", "dataBack"]),
124
+ b("div", S, [
125
+ o.isUrlType ? (r(), d(n, {
126
+ key: 0,
127
+ modelValue: t.column.value,
128
+ "onUpdate:modelValue": l[0] || (l[0] = (a) => t.column.value = a),
129
+ "fetch-suggestions": o.querySearch,
130
+ clearable: "",
131
+ class: "w-50",
132
+ placeholder: ((p = (f = t.column) == null ? void 0 : f.extraInfo) == null ? void 0 : p.placeholder) || "",
133
+ onSelect: o.handleSelect
134
+ }, null, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect"])) : ((I = (x = t.column) == null ? void 0 : x.extraInfo) == null ? void 0 : I.dataExtra) == "textarea" ? (r(), d(h, {
135
+ key: 1,
136
+ modelValue: t.column.value,
137
+ "onUpdate:modelValue": l[1] || (l[1] = (a) => t.column.value = a),
138
+ onInput: o.onInput,
139
+ onFocus: o.onFocus,
140
+ onBlur: o.onBlur,
141
+ clearable: "",
142
+ "show-word-limit": "",
143
+ placeholder: ((V = (y = t.column) == null ? void 0 : y.extraInfo) == null ? void 0 : V.placeholder) || "",
144
+ type: "textarea",
145
+ rows: 4,
146
+ maxlength: 500
147
+ }, null, 8, ["modelValue", "onInput", "onFocus", "onBlur", "placeholder"])) : (r(), d(h, {
148
+ key: 2,
149
+ modelValue: t.column.value,
150
+ "onUpdate:modelValue": l[2] || (l[2] = (a) => t.column.value = a),
151
+ disabled: t.disabled,
152
+ placeholder: ((g = (k = t.column) == null ? void 0 : k.extraInfo) == null ? void 0 : g.placeholder) || "",
153
+ onInput: o.onInput,
154
+ onFocus: o.onFocus,
155
+ onBlur: o.onBlur,
156
+ clearable: "",
157
+ "show-word-limit": ""
158
+ }, null, 8, ["modelValue", "disabled", "placeholder", "onInput", "onFocus", "onBlur"])),
159
+ t.dataBack && t.dataBack.key == t.column.columnCode ? (r(), v("div", j, [
160
+ i(B, {
161
+ link: "",
162
+ type: "primary",
163
+ style: { "padding-left": "0" },
164
+ onClick: l[3] || (l[3] = (a) => e.$emit("operate", this.column, "choosePackage"))
165
+ }, {
166
+ default: C(() => [
167
+ U("选择" + R(t.column.name || ""), 1)
168
+ ]),
169
+ _: 1
170
+ })
171
+ ])) : D("", !0)
172
+ ]),
173
+ i(_, {
174
+ column: t.column,
175
+ extraInfo: t.extraInfo,
176
+ onOperate: l[4] || (l[4] = (a, w) => e.$emit("operate", a, w))
177
+ }, null, 8, ["column", "extraInfo"])
178
+ ]);
179
+ }
180
+ const H = /* @__PURE__ */ N(T, [["render", z]]);
181
+ export {
182
+ H as default
183
+ };
@@ -0,0 +1,66 @@
1
+ import { f as i, a as d } from "./formItemFooter-CN8bMSJS.js";
2
+ import { debounce as f } from "lodash";
3
+ import { resolveComponent as m, openBlock as p, createElementBlock as h, createVNode as u, createElementVNode as _ } from "vue";
4
+ import { _ as I } from "./install-D9fhAvpu.js";
5
+ const B = {
6
+ name: "numberForm",
7
+ components: { formItemTop: d, formItemFooter: i },
8
+ props: {
9
+ column: {
10
+ type: Object,
11
+ default: function() {
12
+ return {};
13
+ }
14
+ },
15
+ disabled: Boolean
16
+ },
17
+ methods: {
18
+ /**
19
+ * 输入框输入事件
20
+ * */
21
+ onInput(n) {
22
+ this.column.error = "", this.column.warning = "", n == this.column.value && (this.$emit("onInput", this.column), this.onChange());
23
+ },
24
+ /**
25
+ * 输入框Change事件
26
+ * */
27
+ onChange: f(function(n, e) {
28
+ this.$emit("onChange", this.column);
29
+ }, 500),
30
+ /**
31
+ * 输入框onFocus事件
32
+ * */
33
+ onFocus(n) {
34
+ this.$emit("focus", this.column);
35
+ },
36
+ /**
37
+ * 输入框失去焦点事件
38
+ * */
39
+ onBlur(n) {
40
+ this.$emit("blur", this.column);
41
+ }
42
+ }
43
+ }, b = { class: "w-default-wrap" }, F = { class: "w-default-wrap" };
44
+ function v(n, e, o, w, x, t) {
45
+ var l;
46
+ const c = m("formItemTop"), r = m("BnInpNum"), s = m("formItemFooter");
47
+ return p(), h("div", b, [
48
+ u(c, { column: o.column }, null, 8, ["column"]),
49
+ _("div", F, [
50
+ u(r, {
51
+ modelValue: o.column.value,
52
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => o.column.value = a),
53
+ disabled: o.disabled,
54
+ precision: (l = o.column.extraInfo) == null ? void 0 : l.valueType,
55
+ onInput: t.onInput,
56
+ onFocus: t.onFocus,
57
+ onBlur: t.onBlur
58
+ }, null, 8, ["modelValue", "disabled", "precision", "onInput", "onFocus", "onBlur"])
59
+ ]),
60
+ u(s, { column: o.column }, null, 8, ["column"])
61
+ ]);
62
+ }
63
+ const T = /* @__PURE__ */ I(B, [["render", v]]);
64
+ export {
65
+ T as default
66
+ };