@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,66 @@
1
+ import { a as m, f as s } from "./formItemFooter-CN8bMSJS.js";
2
+ import { resolveComponent as n, openBlock as d, createElementBlock as f, createVNode as l, createElementVNode as p } from "vue";
3
+ import { _ as h } from "./install-D9fhAvpu.js";
4
+ const _ = {
5
+ name: "relationForm",
6
+ components: { formItemFooter: s, formItemTop: m },
7
+ props: {
8
+ column: {
9
+ type: Object,
10
+ default: function() {
11
+ return {};
12
+ }
13
+ },
14
+ disabled: Boolean,
15
+ // 接口请求外部转发
16
+ postFunc: Function
17
+ },
18
+ computed: {
19
+ /**
20
+ * 过滤后的选项列表,只保留columnStatus等于1的项
21
+ */
22
+ filteredOptions() {
23
+ if (!this.column.moduleDefinition || !this.column.moduleDefinition.optionList)
24
+ return [];
25
+ const o = (t) => Array.isArray(t) ? t.filter((e) => e.columnStatus != 1 ? !1 : (e.children && Array.isArray(e.children) && (e.children = o(e.children)), !0)) : [];
26
+ return o(this.column.moduleDefinition.optionList);
27
+ }
28
+ },
29
+ methods: {
30
+ /**
31
+ * 组件值发生变化
32
+ * */
33
+ changeValue() {
34
+ this.column.error = "", this.column.warning = "", this.$emit("onChange", this.column);
35
+ }
36
+ }
37
+ }, b = { class: "w-default-wrap" }, F = { class: "w-default-wrap" };
38
+ function v(o, t, e, V, g, r) {
39
+ const a = n("formItemTop"), i = n("BnCascader"), c = n("formItemFooter");
40
+ return d(), f("div", b, [
41
+ l(a, { column: e.column }, null, 8, ["column"]),
42
+ p("div", F, [
43
+ l(i, {
44
+ onChange: r.changeValue,
45
+ modelValue: e.column.value,
46
+ "onUpdate:modelValue": t[0] || (t[0] = (u) => e.column.value = u),
47
+ postFunc: e.postFunc,
48
+ "path-url": e.column.pathUrl,
49
+ "post-data": e.column.postData,
50
+ "remote-mode": "tree",
51
+ optionProps: { value: "code", label: "title" },
52
+ "label-in-value": !1,
53
+ options: r.filteredOptions,
54
+ "hide-check-to-last": "",
55
+ multiple: e.column.behaviorType == 20,
56
+ disabled: e.disabled,
57
+ clearable: ""
58
+ }, null, 8, ["onChange", "modelValue", "postFunc", "path-url", "post-data", "options", "multiple", "disabled"])
59
+ ]),
60
+ l(c, { column: e.column }, null, 8, ["column"])
61
+ ]);
62
+ }
63
+ const w = /* @__PURE__ */ h(_, [["render", v]]);
64
+ export {
65
+ w as default
66
+ };
@@ -0,0 +1,89 @@
1
+ import { debounce as h } from "lodash";
2
+ import { f, a as _ } from "./formItemFooter-CN8bMSJS.js";
3
+ import { B as p } from "./index-GqIlg6mb.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-D9fhAvpu.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
+ };
@@ -0,0 +1,118 @@
1
+ import { _ as g, X as w } from "./install-D9fhAvpu.js";
2
+ import { resolveComponent as p, openBlock as l, createElementBlock as o, createVNode as u, createElementVNode as i, withCtx as h, Fragment as b, renderList as _, createCommentVNode as I } from "vue";
3
+ const v = {
4
+ name: "paraExplainSet",
5
+ props: {
6
+ columnData: {
7
+ type: Object,
8
+ default: () => ({})
9
+ },
10
+ disabled: Boolean,
11
+ postFunc: Function,
12
+ // API请求函数
13
+ extendPost: Object
14
+ // 额外的请求参数
15
+ },
16
+ data() {
17
+ return {
18
+ fileType: ["png", "jpg", "jpeg", "gif"]
19
+ };
20
+ },
21
+ mounted() {
22
+ this.columnData.extraInfo.operationPictures || (this.columnData.extraInfo.operationPictures = []);
23
+ },
24
+ computed: {
25
+ uploadUrl() {
26
+ return `${w()}/v2/attachment/upload/remarkOperation`;
27
+ }
28
+ },
29
+ methods: {
30
+ /**
31
+ * 上传成功
32
+ * */
33
+ fileSuccess(a) {
34
+ var e, t;
35
+ a.code ? this.$message.warning(a.msg) : ((e = this.columnData.extraInfo.operationPictures) == null ? void 0 : e.length) < 15 ? ((t = this.columnData.extraInfo.operationPictures) == null || t.length, this.columnData.extraInfo.operationPictures.push(a.data.url)) : this.$message.warning("上传文件个数不能超过15个");
36
+ },
37
+ /**
38
+ * 附件上传前
39
+ * */
40
+ beforeUpload(a) {
41
+ var s;
42
+ if (((s = this.columnData.extraInfo.operationPictures) == null ? void 0 : s.length) >= 15)
43
+ return this.$message.warning("上传文件个数不能超过15个"), !1;
44
+ const e = 50, t = 1048576 * e;
45
+ if (a.size > t)
46
+ return this.$message.warning(`上传文件大小不能超出${e}MB`), !1;
47
+ const d = a.name.split(".").pop().toLowerCase();
48
+ return this.fileType.includes(d) ? !0 : (this.$message.warning("仅支持上传图片"), !1);
49
+ },
50
+ /**
51
+ * 删除图片
52
+ * */
53
+ deleteImage(a) {
54
+ this.columnData.extraInfo.operationPictures.splice(a, 1);
55
+ }
56
+ }
57
+ }, D = { class: "paraExplainSet" }, E = { class: "w-flex-left w-flex-wrap w-flex-gap8 w-margin-top10" }, P = ["onClick"];
58
+ function S(a, e, t, d, s, n) {
59
+ const m = p("el-input"), f = p("el-upload"), x = p("el-image");
60
+ return l(), o("div", D, [
61
+ u(m, {
62
+ type: "textarea",
63
+ resize: "none",
64
+ rows: 3,
65
+ modelValue: t.columnData.extraInfo.paraExplain,
66
+ "onUpdate:modelValue": e[0] || (e[0] = (r) => t.columnData.extraInfo.paraExplain = r),
67
+ placeholder: "填写说明",
68
+ clearable: "",
69
+ disabled: t.disabled,
70
+ maxlength: 800,
71
+ "show-word-limit": ""
72
+ }, null, 8, ["modelValue", "disabled"]),
73
+ i("div", E, [
74
+ u(f, {
75
+ class: "paraExplainSet-upload",
76
+ ref: "uploadInput",
77
+ action: n.uploadUrl,
78
+ "show-file-list": !1,
79
+ disabled: t.disabled,
80
+ "before-upload": n.beforeUpload,
81
+ multiple: "",
82
+ "on-success": n.fileSuccess
83
+ }, {
84
+ default: h(() => [...e[1] || (e[1] = [
85
+ i("div", { class: "paraExplainSet-upload-btn w-flex-center w-flex-lrCenter" }, [
86
+ i("span", { class: "bnUIcon bnUIcon-upImg w-font24 w-color-blue" })
87
+ ], -1)
88
+ ])]),
89
+ _: 1
90
+ }, 8, ["action", "disabled", "before-upload", "on-success"]),
91
+ (l(!0), o(b, null, _(t.columnData.extraInfo.operationPictures, (r, c) => (l(), o("div", {
92
+ key: c,
93
+ class: "paraExplainSet-image-wrapper"
94
+ }, [
95
+ u(x, {
96
+ "preview-teleported": "",
97
+ style: { width: "40px", height: "40px" },
98
+ src: r,
99
+ "preview-src-list": t.columnData.extraInfo.operationPictures,
100
+ "show-progress": "",
101
+ "initial-index": c,
102
+ fit: "cover"
103
+ }, null, 8, ["src", "preview-src-list", "initial-index"]),
104
+ t.disabled ? I("", !0) : (l(), o("div", {
105
+ key: 0,
106
+ class: "paraExplainSet-image-delete",
107
+ onClick: (U) => n.deleteImage(c)
108
+ }, [...e[2] || (e[2] = [
109
+ i("span", { class: "bnUIcon bnUIcon-clear w-color-white" }, null, -1)
110
+ ])], 8, P))
111
+ ]))), 128))
112
+ ])
113
+ ]);
114
+ }
115
+ const C = /* @__PURE__ */ g(v, [["render", S], ["__scopeId", "data-v-7c881e71"]]);
116
+ export {
117
+ C as default
118
+ };
@@ -0,0 +1,58 @@
1
+ import { a as f, f as h } from "./formItemFooter-CN8bMSJS.js";
2
+ import { resolveComponent as l, openBlock as o, createElementBlock as n, createVNode as m, createElementVNode as _, Fragment as p, renderList as k, createBlock as b, createCommentVNode as v } from "vue";
3
+ import { _ as x } from "./install-D9fhAvpu.js";
4
+ const F = {
5
+ name: "checkboxForm",
6
+ components: {
7
+ formItemFooter: h,
8
+ formItemTop: f
9
+ },
10
+ props: {
11
+ column: {
12
+ type: Object,
13
+ default: function() {
14
+ return {};
15
+ }
16
+ },
17
+ disabled: Boolean
18
+ },
19
+ methods: {
20
+ /**
21
+ * Change事件
22
+ * */
23
+ onChange(a, t) {
24
+ this.column.error = "", this.column.warning = "", this.$emit("onChange", this.column, "change");
25
+ }
26
+ }
27
+ }, g = { class: "w-default-wrap checkboxForm" }, C = { class: "w-default-wrap checkboxForm-behavior clearFix" }, w = {
28
+ key: 0,
29
+ class: "w-default-wrap checkboxForm-empty"
30
+ };
31
+ function I(a, t, e, y, B, r) {
32
+ const d = l("formItemTop"), u = l("BnCheck"), s = l("formItemFooter");
33
+ return o(), n("div", g, [
34
+ m(d, { column: e.column }, null, 8, ["column"]),
35
+ _("div", C, [
36
+ (o(!0), n(p, null, k(e.column.moduleDefinition, (c) => (o(), n("div", {
37
+ class: "checkboxForm-item",
38
+ key: c.id
39
+ }, [
40
+ (o(), b(u, {
41
+ key: c.code,
42
+ modelValue: e.column.value,
43
+ "onUpdate:modelValue": t[0] || (t[0] = (i) => e.column.value = i),
44
+ "true-data": c,
45
+ disabled: e.disabled,
46
+ optionProps: { value: "code", label: "title" },
47
+ onChange: r.onChange
48
+ }, null, 8, ["modelValue", "true-data", "disabled", "onChange"]))
49
+ ]))), 128)),
50
+ e.column.moduleDefinition.length == 0 ? (o(), n("div", w, " 无数据 ")) : v("", !0)
51
+ ]),
52
+ m(s, { column: e.column }, null, 8, ["column"])
53
+ ]);
54
+ }
55
+ const D = /* @__PURE__ */ x(F, [["render", I], ["__scopeId", "data-v-81241159"]]);
56
+ export {
57
+ D as default
58
+ };
@@ -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-D9fhAvpu.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,44 @@
1
+ import { a as d, f as s } from "./formItemFooter-CN8bMSJS.js";
2
+ import { resolveComponent as o, openBlock as u, createElementBlock as i, createVNode as n, createElementVNode as f } from "vue";
3
+ import { _ } from "./install-D9fhAvpu.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,178 @@
1
+ import { a as b, f as I } from "./formItemFooter-CN8bMSJS.js";
2
+ import { _ as F, a5 as v } from "./install-D9fhAvpu.js";
3
+ import { f as w } from "./fileFormData-D_Q1vylE.js";
4
+ import { resolveComponent as o, openBlock as m, createElementBlock as y, createBlock as N, createCommentVNode as x, createElementVNode as a, createVNode as i, withCtx as V, createTextVNode as T, toDisplayString as r, withDirectives as B, vShow as C } from "vue";
5
+ const D = {
6
+ name: "FileForm",
7
+ components: { formItemFooter: I, formItemTop: b },
8
+ props: {
9
+ column: { type: Object, default: () => ({}) },
10
+ disabled: Boolean,
11
+ // 隐藏头部
12
+ hiddenTop: Boolean
13
+ },
14
+ data() {
15
+ return {
16
+ fileType: this.column.fileType || w,
17
+ pasteValue: "",
18
+ pasteImgList: [],
19
+ //用来存放粘贴的图片
20
+ // 上传进度
21
+ uploadProgress: 0,
22
+ uploadFileCount: 0,
23
+ //记录上传次数,限制最多上传5个
24
+ uploadFileNumber: this.column.uploadFileNumber || 10,
25
+ //可上传附件那个数
26
+ showLimit: 15,
27
+ //单文件最大M数
28
+ uploadAction: "/v2/attachment/upload",
29
+ uploadData: { source: "task" }
30
+ };
31
+ },
32
+ methods: {
33
+ /**
34
+ * 上传成功
35
+ * */
36
+ fileSuccess(t) {
37
+ if (this.column.error = "", this.uploadProgress = 0, t.code)
38
+ this.$message({
39
+ message: t.msg,
40
+ type: "warning"
41
+ });
42
+ else {
43
+ const e = {
44
+ title: t.data.fileName,
45
+ id: t.data.id,
46
+ code: t.data.id,
47
+ size: t.data.fileSize,
48
+ type: t.data.suffix,
49
+ url: t.data.url
50
+ };
51
+ this.column.value.length < this.uploadFileNumber ? (this.column.value.push(e), this.$emit("onChange", this.column)) : this.$message({
52
+ message: `上传文件个数不能超过${this.uploadFileNumber}个`,
53
+ type: "warning"
54
+ }), this.uploadFileCount = this.column.value.length;
55
+ }
56
+ },
57
+ /**
58
+ * 附件上传前
59
+ * */
60
+ beforeUpload(t) {
61
+ if (this.column.value.length >= this.uploadFileNumber)
62
+ return this.$message({
63
+ message: `上传文件个数不能超过${this.uploadFileNumber}个`,
64
+ type: "warning"
65
+ }), !1;
66
+ const e = 50, s = 1048576 * e;
67
+ if (t.size > s)
68
+ return this.$message({
69
+ message: `上传文件大小不能超出${e}MB`,
70
+ type: "warning"
71
+ }), !1;
72
+ const u = t.name.split(".").pop().toLowerCase();
73
+ return this.fileType.includes(u) ? (this.uploadFileCount++, !0) : (this.$message({
74
+ message: "上传的文件格式不支持",
75
+ type: "warning"
76
+ }), !1);
77
+ },
78
+ handleUploadProgress(t) {
79
+ this.uploadProgress = Math.round(t.percent);
80
+ },
81
+ //粘贴图片到编辑器,事件处理方法,主要用于事件销毁
82
+ pasteEvent(t) {
83
+ if (this.column.value.length >= this.uploadFileNumber)
84
+ return this.$message({
85
+ message: `上传文件个数不能超过${this.uploadFileNumber}个`,
86
+ type: "warning"
87
+ }), !1;
88
+ this.column.error = "", this.pasteImgList.push(t), v(t, this.column.pathUrl || this.uploadAction).then((e) => {
89
+ if (e.code)
90
+ this.$message({
91
+ message: e.msg,
92
+ type: "warning"
93
+ });
94
+ else {
95
+ const s = {
96
+ title: e.data.fileName,
97
+ id: e.data.id,
98
+ code: e.data.id,
99
+ size: e.data.fileSize,
100
+ type: e.data.suffix,
101
+ url: e.data.url
102
+ };
103
+ this.column.value.push(s), this.$emit("onChange", this.column), this.column.value.length >= this.uploadFileNumber && (this.pasteImgList = []);
104
+ }
105
+ });
106
+ }
107
+ },
108
+ mounted() {
109
+ this.$refs.pasteImgInput && this.$refs.pasteImgInput.$el && this.$refs.pasteImgInput.$el.addEventListener("paste", this.pasteEvent);
110
+ },
111
+ //实例销毁前
112
+ beforeDestroy() {
113
+ this.$refs.pasteImgInput && this.$refs.pasteImgInput.$el && this.$refs.pasteImgInput.$el.removeEventListener(
114
+ "paste",
115
+ this.pasteEvent
116
+ );
117
+ }
118
+ }, U = { class: "fileForm" }, E = { class: "" }, L = { class: "fileForm-tip" };
119
+ function S(t, e, s, u, l, n) {
120
+ const p = o("formItemTop"), d = o("el-upload"), c = o("el-input"), h = o("el-progress"), f = o("BnFileView"), g = o("formItemFooter");
121
+ return m(), y("div", U, [
122
+ s.hiddenTop ? x("", !0) : (m(), N(p, {
123
+ key: 0,
124
+ column: s.column
125
+ }, null, 8, ["column"])),
126
+ a("div", E, [
127
+ i(d, {
128
+ class: "fileForm-upload",
129
+ ref: "uploadInput",
130
+ drag: "",
131
+ action: s.column.pathUrl || l.uploadAction,
132
+ "show-file-list": !1,
133
+ disabled: s.disabled,
134
+ "before-upload": n.beforeUpload,
135
+ multiple: "",
136
+ data: l.uploadData,
137
+ "on-progress": n.handleUploadProgress,
138
+ "on-success": n.fileSuccess
139
+ }, {
140
+ default: V(() => [...e[1] || (e[1] = [
141
+ a("div", { class: "fileForm-btn" }, [
142
+ a("span", { class: "bnUIcon bnUIcon-upload" }),
143
+ T(" 选择或拖拽上传文件 ")
144
+ ], -1)
145
+ ])]),
146
+ _: 1
147
+ }, 8, ["action", "disabled", "before-upload", "data", "on-progress", "on-success"]),
148
+ i(c, {
149
+ modelValue: l.pasteValue,
150
+ "onUpdate:modelValue": e[0] || (e[0] = (_) => l.pasteValue = _),
151
+ ref: "pasteImgInput",
152
+ placeholder: "复制粘贴上传截图",
153
+ class: "fileForm-input",
154
+ disabled: s.disabled
155
+ }, null, 8, ["modelValue", "disabled"]),
156
+ a("span", L, "最多可上传" + r(l.uploadFileNumber) + "个文件,单个文件不超过" + r(l.showLimit) + "M", 1)
157
+ ]),
158
+ B(i(h, {
159
+ style: { width: "100%", "max-width": "444px" },
160
+ percentage: l.uploadProgress,
161
+ class: "fileForm-progress"
162
+ }, null, 8, ["percentage"]), [
163
+ [C, l.uploadProgress > 0]
164
+ ]),
165
+ a("div", null, [
166
+ i(f, {
167
+ "file-list": s.column.value,
168
+ isDel: !s.disabled,
169
+ row: "2"
170
+ }, null, 8, ["file-list", "isDel"])
171
+ ]),
172
+ i(g, { column: s.column }, null, 8, ["column"])
173
+ ]);
174
+ }
175
+ const A = /* @__PURE__ */ F(D, [["render", S], ["__scopeId", "data-v-ce213ba4"]]);
176
+ export {
177
+ A as default
178
+ };