@bytenew/bn-bus-ui 1.1.463 → 1.1.464

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-Bfe96864.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 +49 -0
  5. package/dist/chooseIPaasData-COrrvQKZ.js +391 -0
  6. package/dist/chooseIPaasData.css +1 -0
  7. package/dist/defaultSet-CzN1ec_d.js +297 -0
  8. package/dist/defaultSet.css +1 -0
  9. package/dist/fileFormData-D_Q1vylE.js +53 -0
  10. package/dist/formItemFooter-BvptZj_u.js +108 -0
  11. package/dist/formItemFooter.css +1 -0
  12. package/dist/funcExprDialog-BguNs9fl.js +139 -0
  13. package/dist/funcExprDialog.css +1 -0
  14. package/dist/index-0oB7QocU.js +44 -0
  15. package/dist/index-69fRP0M8.js +89 -0
  16. package/dist/index-BdklTJtF.js +66 -0
  17. package/dist/index-Bu3jHlby.js +45 -0
  18. package/dist/index-BxWx5kpG.js +89 -0
  19. package/dist/index-C5LQ0OSs.js +183 -0
  20. package/dist/index-C8YhrrUN.js +51 -0
  21. package/dist/index-COuPCIzB.js +45 -0
  22. package/dist/index-CSvVyjxx.js +178 -0
  23. package/dist/index-DCv51EXX.js +109 -0
  24. package/dist/index-DUSI6MuC.js +135 -0
  25. package/dist/index-DVzxs2vR.js +58 -0
  26. package/dist/index-Dd4b8zNb.js +746 -0
  27. package/dist/index-Md-ZlkCW.js +66 -0
  28. package/dist/index-hsSIY2FP.js +221 -0
  29. package/dist/index-n13-H3_Y.js +118 -0
  30. package/dist/index-wUl5aPUD.js +64 -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-CNjs0u5x.js +23299 -0
  39. package/dist/install.css +1 -0
  40. package/dist/setOption-CXOifQcx.js +329 -0
  41. package/dist/setOption.css +1 -0
  42. package/dist/setRelationOption-C7VDhej7.js +5217 -0
  43. package/dist/setRelationOption.css +1 -0
  44. package/package.json +4 -20
  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-CNjs0u5x.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-CNjs0u5x.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,44 @@
1
+ import { a as d, f as s } from "./formItemFooter-BvptZj_u.js";
2
+ import { resolveComponent as o, openBlock as u, createElementBlock as i, createVNode as n, createElementVNode as f } from "vue";
3
+ import { _ } from "./install-CNjs0u5x.js";
4
+ const p = {
5
+ name: "dateDualForm",
6
+ props: {
7
+ column: {
8
+ type: Object,
9
+ default() {
10
+ return {};
11
+ }
12
+ },
13
+ disabled: Boolean
14
+ },
15
+ components: {
16
+ formItemFooter: s,
17
+ formItemTop: d
18
+ },
19
+ methods: {
20
+ changeVal() {
21
+ this.column.error = "", this.column.warning = "", this.$emit("onChange", this.column);
22
+ }
23
+ }
24
+ }, h = { class: "w-default-wrap" }, g = { class: "w-default-wrap" };
25
+ function V(I, t, e, b, v, m) {
26
+ const l = o("formItemTop"), a = o("BnDatePicker"), c = o("formItemFooter");
27
+ return u(), i("div", h, [
28
+ n(l, { column: e.column }, null, 8, ["column"]),
29
+ f("div", g, [
30
+ n(a, {
31
+ modelValue: e.column.value,
32
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => e.column.value = r),
33
+ type: "datetimerange",
34
+ disabled: e.disabled,
35
+ onChange: m.changeVal
36
+ }, null, 8, ["modelValue", "disabled", "onChange"])
37
+ ]),
38
+ n(c, { column: e.column }, null, 8, ["column"])
39
+ ]);
40
+ }
41
+ const x = /* @__PURE__ */ _(p, [["render", V]]);
42
+ export {
43
+ x as default
44
+ };
@@ -0,0 +1,89 @@
1
+ import { debounce as h } from "lodash";
2
+ import { resolveComponent as n, openBlock as f, createElementBlock as w, createElementVNode as o, createVNode as l, withCtx as c, createTextVNode as r } from "vue";
3
+ import { _ } from "./install-CNjs0u5x.js";
4
+ const g = {
5
+ name: "BnAddressParse",
6
+ props: {
7
+ postFunc: Function
8
+ },
9
+ data() {
10
+ return {
11
+ address: "",
12
+ record: ""
13
+ };
14
+ },
15
+ methods: {
16
+ /**
17
+ * 自动识别方法(使用防抖)
18
+ */
19
+ autoAds: h(function() {
20
+ !this.address || this.address == this.record || this.postFunc("/address/parse", { address: this.address }).then((e) => {
21
+ if (!e.code && e.data) {
22
+ let t = [];
23
+ ["province", "city", "area", "street"].forEach((a, s) => {
24
+ e.data[a] && t.push({
25
+ id: e.data[`${a}Id`],
26
+ code: e.data[`${a}Id`],
27
+ title: e.data[a],
28
+ parentId: s ? t[s - 1].id : 1,
29
+ type: s + 2
30
+ //这个是后端定义的字段,不知道为啥是从2开始的
31
+ });
32
+ });
33
+ let d = {
34
+ name: e.data.name || "",
35
+ phone: e.data.phone || "",
36
+ detail: e.data.detail || "",
37
+ address: t
38
+ };
39
+ this.record = this.address, this.$emit("parse", d);
40
+ }
41
+ });
42
+ }, 60)
43
+ }
44
+ }, v = { class: "w-default-wrap" }, B = { class: "w-margin-bottom10 w-flex-center" };
45
+ function V(e, t, p, d, a, s) {
46
+ const i = n("el-popover"), u = n("el-input");
47
+ return f(), w("div", v, [
48
+ o("div", B, [
49
+ l(i, {
50
+ placement: "top-start",
51
+ width: 400,
52
+ trigger: "hover",
53
+ "show-arrow": !1
54
+ }, {
55
+ reference: c(() => [...t[1] || (t[1] = [
56
+ o("span", { class: "bnUIcon bnUIcon-searchAuto w-color-orange w-font22 w-margin-right10" }, null, -1)
57
+ ])]),
58
+ default: c(() => [
59
+ t[2] || (t[2] = o("div", { class: "w-font13 w-margin-bottom5" }, [
60
+ o("div", null, [
61
+ r("地址自动识别用于辅助回填繁琐的地址信息,但任何自动化识别都会存在一定错误率。 为了你的愉快使用,请尽量使用格式规范的完整地址信息进行识别,比如包含完整的 "),
62
+ o("span", { class: "w-color-orange" }, "省市区级别标识"),
63
+ r(" , "),
64
+ o("span", { class: "w-color-orange" }, "姓名和手机号尽量放在地址前面"),
65
+ r(" ,不要穿插其中。 ")
66
+ ]),
67
+ o("div", null, [
68
+ o("span", { class: "w-color-red" }, "文案不规范、信息有缺都有可能造成识别率下降,拆分地址出错。"),
69
+ o("span", null, "遇见这种情况请您手动调整文案并重试")
70
+ ])
71
+ ], -1))
72
+ ]),
73
+ _: 1
74
+ }),
75
+ l(u, {
76
+ modelValue: a.address,
77
+ "onUpdate:modelValue": t[0] || (t[0] = (m) => a.address = m),
78
+ placeholder: "输入地址后自动识别",
79
+ clearable: "",
80
+ onChange: s.autoAds,
81
+ onBlur: s.autoAds
82
+ }, null, 8, ["modelValue", "onChange", "onBlur"])
83
+ ])
84
+ ]);
85
+ }
86
+ const x = /* @__PURE__ */ _(g, [["render", V]]);
87
+ export {
88
+ x as B
89
+ };
@@ -0,0 +1,66 @@
1
+ import { f as i, a as d } from "./formItemFooter-BvptZj_u.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-CNjs0u5x.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
+ };
@@ -0,0 +1,45 @@
1
+ import { f as s, a as d } from "./formItemFooter-BvptZj_u.js";
2
+ import { resolveComponent as o, openBlock as u, createElementBlock as i, createVNode as t, createElementVNode as f } from "vue";
3
+ import { _ } from "./install-CNjs0u5x.js";
4
+ const p = {
5
+ name: "dateForm",
6
+ components: { formItemTop: d, formItemFooter: s },
7
+ props: {
8
+ column: {
9
+ type: Object,
10
+ default() {
11
+ return {};
12
+ }
13
+ },
14
+ disabled: Boolean
15
+ },
16
+ methods: {
17
+ changeVal() {
18
+ this.column.error = "", this.column.warning = "", this.$emit("onChange", this.column, "change");
19
+ }
20
+ }
21
+ }, h = { class: "w-default-wrap" }, Y = { class: "w-default-wrap" };
22
+ function g(V, n, e, b, v, m) {
23
+ const l = o("formItemTop"), a = o("el-date-picker"), c = o("formItemFooter");
24
+ return u(), i("div", h, [
25
+ t(l, { column: e.column }, null, 8, ["column"]),
26
+ f("div", Y, [
27
+ t(a, {
28
+ onChange: m.changeVal,
29
+ style: { width: "100%" },
30
+ disabled: e.disabled,
31
+ modelValue: e.column.value,
32
+ "onUpdate:modelValue": n[0] || (n[0] = (r) => e.column.value = r),
33
+ type: "datetime",
34
+ placement: "bottom-start",
35
+ format: "YYYY-MM-DD HH:mm:ss",
36
+ "value-format": "YYYY-MM-DD HH:mm:ss"
37
+ }, null, 8, ["onChange", "disabled", "modelValue"])
38
+ ]),
39
+ t(c, { column: e.column }, null, 8, ["column"])
40
+ ]);
41
+ }
42
+ const x = /* @__PURE__ */ _(p, [["render", g]]);
43
+ export {
44
+ x as default
45
+ };
@@ -0,0 +1,89 @@
1
+ import { debounce as h } from "lodash";
2
+ import { f, a as _ } from "./formItemFooter-BvptZj_u.js";
3
+ import { B as p } from "./index-69fRP0M8.js";
4
+ import { resolveComponent as l, openBlock as C, createElementBlock as F, createVNode as u, createElementVNode as s } from "vue";
5
+ import { _ as B } from "./install-CNjs0u5x.js";
6
+ const b = {
7
+ name: "addressForm",
8
+ components: { BnAddressParse: p, formItemTop: _, formItemFooter: f },
9
+ props: {
10
+ column: Object,
11
+ disabled: Boolean,
12
+ postFunc: Function
13
+ },
14
+ methods: {
15
+ /**
16
+ * 输入框输入事件
17
+ * */
18
+ onInput(n) {
19
+ this.column.error = "", this.column.warning = "", this.$emit("onInput", this.column), this.onChange(n);
20
+ },
21
+ /**
22
+ * 输入框Change事件
23
+ * @param {String} type 是否是其他事件类型
24
+ * */
25
+ onChange: h(function(n, e) {
26
+ this.column.error = "", this.column.warning = "", this.$emit("onChange", this.column);
27
+ }, 600),
28
+ /**
29
+ * 输入框onFocus事件
30
+ * */
31
+ onFocus(n) {
32
+ this.$emit("focus", this.column);
33
+ },
34
+ /**
35
+ * 输入框失去焦点事件
36
+ * */
37
+ onBlur() {
38
+ this.$emit("blur", this.column);
39
+ },
40
+ /**
41
+ *自动识别
42
+ * */
43
+ autoParse(n) {
44
+ this.column.value[this.column.moduleDefinition[0].columnCode] = n.address, this.column.value[this.column.moduleDefinition[1].columnCode] = n.detail || "", this.onChange();
45
+ }
46
+ }
47
+ }, w = { class: "w-default-wrap" }, g = { class: "w-default-wrap w-margin-bottom10" }, v = { class: "w-default-wrap" };
48
+ function I(n, e, o, V, D, t) {
49
+ const c = l("formItemTop"), a = l("BnAddressParse"), d = l("BnAddress"), i = l("el-input"), r = l("formItemFooter");
50
+ return C(), F("div", w, [
51
+ u(c, { column: o.column }, null, 8, ["column"]),
52
+ u(a, {
53
+ onParse: t.autoParse,
54
+ "post-func": o.postFunc
55
+ }, null, 8, ["onParse", "post-func"]),
56
+ s("div", g, [
57
+ u(d, {
58
+ modelValue: o.column.value[o.column.moduleDefinition[0].columnCode],
59
+ "onUpdate:modelValue": e[0] || (e[0] = (m) => o.column.value[o.column.moduleDefinition[0].columnCode] = m),
60
+ postFunc: o.postFunc,
61
+ onChange: t.onChange,
62
+ "value-key": "code",
63
+ pathUrl: o.column.pathUrl || "/address/getAreaDataList",
64
+ disabled: o.disabled
65
+ }, null, 8, ["modelValue", "postFunc", "onChange", "pathUrl", "disabled"])
66
+ ]),
67
+ s("div", v, [
68
+ u(i, {
69
+ modelValue: o.column.value[o.column.moduleDefinition[1].columnCode],
70
+ "onUpdate:modelValue": e[1] || (e[1] = (m) => o.column.value[o.column.moduleDefinition[1].columnCode] = m),
71
+ type: "textarea",
72
+ rows: 3,
73
+ disabled: o.disabled,
74
+ resize: "none",
75
+ placeholder: "输入详细地址",
76
+ onInput: t.onInput,
77
+ onFocus: t.onFocus,
78
+ onBlur: t.onBlur,
79
+ clearable: "",
80
+ "show-word-limit": ""
81
+ }, null, 8, ["modelValue", "disabled", "onInput", "onFocus", "onBlur"])
82
+ ]),
83
+ u(r, { column: o.column }, null, 8, ["column"])
84
+ ]);
85
+ }
86
+ const y = /* @__PURE__ */ B(b, [["render", I]]);
87
+ export {
88
+ y as default
89
+ };