@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,221 @@
1
+ import { isEmpty as O, cloneDeep as T } from "lodash";
2
+ import { _ as U, W as F } from "./install-D9fhAvpu.js";
3
+ import { resolveComponent as a, openBlock as i, createElementBlock as s, createVNode as d, mergeProps as b, createElementVNode as o, toDisplayString as f, withCtx as r, createTextVNode as m, createCommentVNode as c, normalizeClass as V, createBlock as $, defineAsyncComponent as D } from "vue";
4
+ const W = {
5
+ name: "childrenFormSetting",
6
+ components: {
7
+ columnConfigDialog: D(() => import("./install-D9fhAvpu.js").then((t) => t.V)),
8
+ assocTableSearch: D(() => import("./assocTableSearch-BsLq8li6.js"))
9
+ // assocTable: defineAsyncComponent(() => import("./assocTable.vue")),
10
+ },
11
+ props: {
12
+ columnData: {
13
+ type: Object,
14
+ default: () => ({})
15
+ },
16
+ postFunc: Function,
17
+ // API请求函数
18
+ extendPost: Object,
19
+ // 额外的请求参数
20
+ // 以下是从父组件传入的 props
21
+ row: {
22
+ type: Number,
23
+ default: 1
24
+ },
25
+ hideFiled: {
26
+ type: Array,
27
+ default: () => []
28
+ },
29
+ columnList: {
30
+ type: Array,
31
+ default: () => []
32
+ },
33
+ disabled: Boolean
34
+ },
35
+ data() {
36
+ return {
37
+ columnTypeMap: F,
38
+ componentWidth: 0
39
+ // 组件宽度
40
+ };
41
+ },
42
+ mounted() {
43
+ this.calculateWidth();
44
+ },
45
+ methods: {
46
+ isEmpty: O,
47
+ /**
48
+ * 计算组件宽度
49
+ */
50
+ calculateWidth() {
51
+ this.$nextTick(() => {
52
+ const t = this.$el;
53
+ t && (this.componentWidth = t.offsetWidth);
54
+ });
55
+ },
56
+ /**
57
+ * 滚动到列表底部
58
+ */
59
+ scrollToBottom() {
60
+ this.$nextTick(() => {
61
+ const t = this.$refs.optionList;
62
+ if (t && t.$el) {
63
+ const e = t.$el.querySelector(".el-scrollbar__wrap");
64
+ e && (e.scrollTop = e.scrollHeight);
65
+ }
66
+ });
67
+ },
68
+ /**
69
+ * 编辑或者新增组件
70
+ */
71
+ async editChildColumn(t) {
72
+ var e;
73
+ if (t.columnCode)
74
+ for (let n in this.columnData.moduleDefinition)
75
+ this.columnData.moduleDefinition[n].columnCode == t.columnCode && (this.columnData.moduleDefinition[n] = T(t));
76
+ else {
77
+ const n = ((e = this.extendPost) == null ? void 0 : e.appId) || "noApp", u = await this.postFunc(`/v2/projects/customId/1/${n}`, null, "get");
78
+ u.code || (this.columnData.moduleDefinition.push(
79
+ { ...t, columnCode: `cc_${u.data[0]}` }
80
+ ), this.scrollToBottom());
81
+ }
82
+ },
83
+ /**
84
+ * 删除选项
85
+ */
86
+ deleteOption(t) {
87
+ this.columnData.moduleDefinition.splice(t, 1);
88
+ }
89
+ }
90
+ }, B = { class: "childrenSetOpt" }, N = { class: "childrenSetOpt-top w-flex-center w-flex-between" }, A = { class: "w-flex-center" }, E = { class: "w-color-orange" }, j = { class: "w-flex-center w-flex-column-gap5" }, L = { key: 0 }, P = { key: 1 }, M = { class: "w-flex-between w-flex-center childrenSetOpt-list-item-content" }, q = ["title"], z = { class: "w-flex-center" }, H = { class: "w-color-purple childrenSetOpt-list-item-memo" }, G = {
91
+ key: 0,
92
+ class: "w-margin-left4"
93
+ }, J = {
94
+ key: 1,
95
+ class: "w-margin-left4"
96
+ }, K = { class: "w-flex-right w-flex-center w-flex-column-gap8" }, Q = ["onClick"], R = ["onClick"], X = {
97
+ key: 0,
98
+ class: "w-empty"
99
+ };
100
+ function Y(t, e, n, u, h, p) {
101
+ var g;
102
+ const v = a("columnConfigDialog"), y = a("assocTableSearch"), _ = a("el-button"), C = a("el-tooltip"), k = a("draggable"), x = a("el-scrollbar");
103
+ return i(), s("div", B, [
104
+ d(v, b({ ref: "columnConfigDialog" }, t.$props, {
105
+ onSaveOver: p.editChildColumn,
106
+ "is-children": ""
107
+ }), null, 16, ["onSaveOver"]),
108
+ d(y, b({ ref: "assocTableSearch" }, t.$props), null, 16),
109
+ o("div", N, [
110
+ o("div", A, [
111
+ e[3] || (e[3] = o("div", { class: "childrenSetOpt-top-title" }, "子组件设置", -1)),
112
+ o("div", E, " (共" + f(n.columnData.moduleDefinition.length) + "个子组件) ", 1)
113
+ ]),
114
+ o("div", j, [
115
+ n.hideFiled.includes("moduleDefinition") ? c("", !0) : (i(), s("div", L, [
116
+ d(_, {
117
+ link: "",
118
+ type: "primary",
119
+ onClick: e[0] || (e[0] = (l) => t.$refs.columnConfigDialog.open())
120
+ }, {
121
+ default: r(() => [...e[4] || (e[4] = [
122
+ o("span", { class: "bnUIcon bnUIcon-addFile w-padding-right2 w-font14" }, null, -1),
123
+ m("添加 ", -1)
124
+ ])]),
125
+ _: 1
126
+ })
127
+ ])),
128
+ ((g = n.columnData.insideDataSourceInfo) == null ? void 0 : g.type) == "group" ? (i(), s("div", P, [
129
+ d(_, {
130
+ link: "",
131
+ type: "primary",
132
+ onClick: e[1] || (e[1] = (l) => t.$refs.assocTableSearch.open())
133
+ }, {
134
+ default: r(() => [...e[5] || (e[5] = [
135
+ o("span", { class: "bnUIcon bnUIcon-search w-padding-right2" }, null, -1),
136
+ m(" 设置数据筛选 ", -1)
137
+ ])]),
138
+ _: 1
139
+ })
140
+ ])) : c("", !0)
141
+ ])
142
+ ]),
143
+ d(x, {
144
+ "max-height": "380px",
145
+ class: "childrenSetOpt-list",
146
+ ref: "optionList"
147
+ }, {
148
+ default: r(() => [
149
+ d(k, {
150
+ modelValue: n.columnData.moduleDefinition,
151
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => n.columnData.moduleDefinition = l),
152
+ "item-key": "id",
153
+ handle: ".childrenSetOpt-list-item-drag",
154
+ "ghost-class": "ghost-item",
155
+ "chosen-class": "chosen-item",
156
+ animation: "300",
157
+ tag: "div"
158
+ }, {
159
+ item: r(({ element: l, index: S }) => {
160
+ var w;
161
+ return [
162
+ o("div", {
163
+ class: V(["childrenSetOpt-list-item", [h.componentWidth > 400 ? "two" : "one"]])
164
+ }, [
165
+ o("div", M, [
166
+ e[7] || (e[7] = o("div", { class: "childrenSetOpt-list-item-drag w-default-hover" }, [
167
+ o("span", { class: "bnUIcon bnUIcon-move" })
168
+ ], -1)),
169
+ o("div", {
170
+ class: "w-font14 w-color-black6 childrenSetOpt-list-item-text w-text-over-two",
171
+ title: l.name
172
+ }, [
173
+ ((w = l.insideDataSourceInfo) == null ? void 0 : w.type) == "group" ? (i(), $(C, {
174
+ key: 0,
175
+ content: "来自关联表组件",
176
+ placement: "top"
177
+ }, {
178
+ default: r(() => [...e[6] || (e[6] = [
179
+ o("span", {
180
+ class: "bnUIcon bnUIcon-linkTable w-color-violet",
181
+ title: ""
182
+ }, null, -1)
183
+ ])]),
184
+ _: 1
185
+ })) : c("", !0),
186
+ m(" " + f(l.name), 1)
187
+ ], 8, q)
188
+ ]),
189
+ o("div", z, [
190
+ o("div", H, [
191
+ m(f(h.columnTypeMap[l.behaviorType]) + " ", 1),
192
+ p.isEmpty(l.defaultInfo) ? c("", !0) : (i(), s("span", G, "已配默认值")),
193
+ l.extraInfo.exprId ? (i(), s("span", J, "已配函数表达式")) : c("", !0)
194
+ ])
195
+ ]),
196
+ o("div", K, [
197
+ o("span", {
198
+ class: "bnUIcon bnUIcon-setting w-color-orange",
199
+ onClick: (I) => t.$refs.columnConfigDialog.open(l)
200
+ }, null, 8, Q),
201
+ n.hideFiled.includes("moduleDefinition") ? c("", !0) : (i(), s("span", {
202
+ key: 0,
203
+ class: "bnUIcon bnUIcon-delete w-color-orange",
204
+ onClick: (I) => p.deleteOption(S, l.name)
205
+ }, null, 8, R))
206
+ ])
207
+ ], 2)
208
+ ];
209
+ }),
210
+ _: 1
211
+ }, 8, ["modelValue"])
212
+ ]),
213
+ _: 1
214
+ }, 512),
215
+ !n.columnData.moduleDefinition || n.columnData.moduleDefinition.length == 0 ? (i(), s("div", X, "没有子组件 ")) : c("", !0)
216
+ ]);
217
+ }
218
+ const oe = /* @__PURE__ */ U(W, [["render", Y], ["__scopeId", "data-v-290e160f"]]);
219
+ export {
220
+ oe as default
221
+ };
@@ -0,0 +1,109 @@
1
+ import { isEmpty as u } from "lodash";
2
+ import { resolveComponent as m, resolveDirective as f, withDirectives as h, openBlock as i, createElementBlock as n, createElementVNode as a, Fragment as g, renderList as _, normalizeClass as y, toDisplayString as F, createVNode as k } from "vue";
3
+ import { _ as v } from "./install-D9fhAvpu.js";
4
+ const x = {
5
+ name: "packageFilter",
6
+ computed: {
7
+ filterColumns() {
8
+ return this.columnList.filter((t) => this.columnData.extraInfo.filterColumn.includes(t.columnCode));
9
+ }
10
+ },
11
+ props: {
12
+ columnData: {
13
+ type: Object,
14
+ default: () => ({})
15
+ },
16
+ postFunc: Function,
17
+ // API请求函数
18
+ extendPost: Object,
19
+ // 额外的请求参数
20
+ columnList: {
21
+ type: Array,
22
+ default: () => []
23
+ },
24
+ disabled: Boolean
25
+ },
26
+ data() {
27
+ return {
28
+ dataFilterByPackage: {},
29
+ lazyLoad: !1,
30
+ //因为下拉菜单多的时候可能会影响加载速度,这里做个延迟加载
31
+ componentWidth: 0
32
+ // 组件宽度
33
+ };
34
+ },
35
+ mounted() {
36
+ var t, o;
37
+ this.dataFilterByPackage = (t = this.columnData.extraInfo) != null && t.dataFilterByPackage ? JSON.parse((o = this.columnData.extraInfo) == null ? void 0 : o.dataFilterByPackage) : {}, this.calculateWidth(), this.filterColumns.length > 4 ? setTimeout(() => {
38
+ this.lazyLoad = !0;
39
+ }, 200) : this.lazyLoad = !0;
40
+ },
41
+ methods: {
42
+ isEmpty: u,
43
+ /**
44
+ * 计算组件宽度
45
+ */
46
+ calculateWidth() {
47
+ this.$nextTick(() => {
48
+ const t = this.$el;
49
+ t && (this.componentWidth = t.offsetWidth);
50
+ });
51
+ },
52
+ /**
53
+ * 滚动到列表底部
54
+ */
55
+ changeDataFilter() {
56
+ this.columnData.extraInfo.dataFilterByPackage = JSON.stringify(this.dataFilterByPackage);
57
+ }
58
+ }
59
+ }, B = { class: "packageFilter" }, w = {
60
+ key: 0,
61
+ class: "packageFilter-list",
62
+ ref: "optionList"
63
+ }, D = ["title"], C = { class: "w-flex-center" }, P = {
64
+ key: 1,
65
+ class: "w-empty"
66
+ };
67
+ function b(t, o, c, L, l, s) {
68
+ const r = m("BnSelect"), d = f("loading");
69
+ return h((i(), n("div", B, [
70
+ o[0] || (o[0] = a("div", { class: "packageFilter-top w-flex-center" }, [
71
+ a("div", { class: "packageFilter-top-title" }, "数据过滤"),
72
+ a("div", { class: "w-margin-left8" }, [
73
+ a("span", { class: "w-font12 w-color-orange" }, "(选择包裹时,不会展示符合下方条件的ERP单据)")
74
+ ])
75
+ ], -1)),
76
+ l.lazyLoad ? (i(), n("div", w, [
77
+ (i(!0), n(g, null, _(s.filterColumns, (e) => (i(), n("div", {
78
+ class: y(["packageFilter-list-item", [l.componentWidth > 400 ? "two" : "one"]])
79
+ }, [
80
+ a("div", {
81
+ class: "w-font14 w-color-black6 w-text-over w-margin-bottom4",
82
+ title: e.name
83
+ }, F(e.name), 9, D),
84
+ a("div", C, [
85
+ k(r, {
86
+ modelValue: l.dataFilterByPackage[e.columnCode],
87
+ "onUpdate:modelValue": (p) => l.dataFilterByPackage[e.columnCode] = p,
88
+ clearable: "",
89
+ filterable: "",
90
+ labelInValue: !1,
91
+ onChange: s.changeDataFilter,
92
+ optionProps: { value: "code", label: "title" },
93
+ multiple: !0,
94
+ options: e.moduleDefinition,
95
+ pathUrl: e.pathUrl,
96
+ "post-data": e.postData,
97
+ postFunc: c.postFunc
98
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange", "options", "pathUrl", "post-data", "postFunc"])
99
+ ])
100
+ ], 2))), 256))
101
+ ], 512)) : (i(), n("div", P, " 数据加载中... "))
102
+ ])), [
103
+ [d, !l.lazyLoad]
104
+ ]);
105
+ }
106
+ const W = /* @__PURE__ */ v(x, [["render", b], ["__scopeId", "data-v-a92dc360"]]);
107
+ export {
108
+ W as default
109
+ };
@@ -0,0 +1,135 @@
1
+ import { debounce as v } from "lodash";
2
+ import { f, a as b } from "./formItemFooter-CN8bMSJS.js";
3
+ import { B as w } from "./index-GqIlg6mb.js";
4
+ import { resolveComponent as t, openBlock as s, createElementBlock as B, createBlock as F, createCommentVNode as _, createVNode as a, createElementVNode as d } from "vue";
5
+ import { _ as y } from "./install-D9fhAvpu.js";
6
+ const I = {
7
+ name: "addressForm",
8
+ components: { BnAddressParse: w, formItemTop: b, formItemFooter: f },
9
+ props: {
10
+ column: Object,
11
+ disabled: Boolean,
12
+ postFunc: Function,
13
+ // 数据结构
14
+ valueProps: Object
15
+ },
16
+ computed: {
17
+ // 收寄信息value对象中对应的字段
18
+ valueKey() {
19
+ return this.valueProps ? this.valueProps : this.column.moduleDefinition ? {
20
+ name: this.column.moduleDefinition[0].columnCode,
21
+ phone: this.column.moduleDefinition[1].columnCode,
22
+ address: this.column.moduleDefinition[2].columnCode,
23
+ detail: this.column.moduleDefinition[3].columnCode
24
+ } : {
25
+ name: "name",
26
+ phone: "phone",
27
+ address: "address",
28
+ detail: "detail"
29
+ };
30
+ }
31
+ },
32
+ methods: {
33
+ /**
34
+ * 输入框输入事件
35
+ * */
36
+ onInput(n) {
37
+ this.column.error = "", this.column.warning = "", this.$emit("onInput", this.column), this.onChange(n);
38
+ },
39
+ /**
40
+ * 输入框Change事件
41
+ * @param {String} type 是否是其他事件类型
42
+ * */
43
+ onChange: v(function(n, o) {
44
+ this.column.error = "", this.column.warning = "", this.$emit("onChange", this.column);
45
+ }, 600),
46
+ /**
47
+ * 输入框onFocus事件
48
+ * */
49
+ onFocus(n) {
50
+ this.$emit("focus", this.column);
51
+ },
52
+ /**
53
+ * 输入框失去焦点事件
54
+ * */
55
+ onBlur() {
56
+ this.$emit("blur", this.column);
57
+ },
58
+ /**
59
+ *自动识别
60
+ * */
61
+ autoParse(n) {
62
+ this.column.value[this.valueKey.name] = n.name || "", this.column.value[this.valueKey.phone] = n.phone || "", this.column.value[this.valueKey.address] = n.address, this.column.value[this.valueKey.detail] = n.detail || "", this.onChange();
63
+ }
64
+ }
65
+ }, V = { class: "w-default-wrap" }, p = { class: "w-flex-between w-margin-bottom10 w-flex-column-gap8" }, g = { class: "w-default-wrap w-margin-bottom10" }, C = { class: "w-default-wrap" };
66
+ function K(n, o, e, P, x, l) {
67
+ const c = t("formItemTop"), r = t("BnAddressParse"), m = t("el-input"), i = t("BnAddress"), h = t("formItemFooter");
68
+ return s(), B("div", V, [
69
+ e.column.name ? (s(), F(c, {
70
+ key: 0,
71
+ column: e.column
72
+ }, null, 8, ["column"])) : _("", !0),
73
+ a(r, {
74
+ onParse: l.autoParse,
75
+ "post-func": e.postFunc
76
+ }, null, 8, ["onParse", "post-func"]),
77
+ d("div", p, [
78
+ a(m, {
79
+ modelValue: e.column.value[l.valueKey.name],
80
+ "onUpdate:modelValue": o[0] || (o[0] = (u) => e.column.value[l.valueKey.name] = u),
81
+ disabled: e.disabled,
82
+ placeholder: "输入姓名",
83
+ onInput: l.onInput,
84
+ onFocus: l.onFocus,
85
+ onBlur: l.onBlur,
86
+ clearable: "",
87
+ "show-word-limit": ""
88
+ }, null, 8, ["modelValue", "disabled", "onInput", "onFocus", "onBlur"]),
89
+ a(m, {
90
+ modelValue: e.column.value[l.valueKey.phone],
91
+ "onUpdate:modelValue": o[1] || (o[1] = (u) => e.column.value[l.valueKey.phone] = u),
92
+ disabled: e.disabled,
93
+ placeholder: "输入手机号",
94
+ onInput: l.onInput,
95
+ onFocus: l.onFocus,
96
+ onBlur: l.onBlur,
97
+ clearable: "",
98
+ "show-word-limit": ""
99
+ }, null, 8, ["modelValue", "disabled", "onInput", "onFocus", "onBlur"])
100
+ ]),
101
+ d("div", g, [
102
+ a(i, {
103
+ modelValue: e.column.value[l.valueKey.address],
104
+ "onUpdate:modelValue": o[2] || (o[2] = (u) => e.column.value[l.valueKey.address] = u),
105
+ postFunc: e.postFunc,
106
+ onChange: l.onChange,
107
+ "value-key": "code",
108
+ "level-num": e.column.levelNum || 4,
109
+ pathUrl: e.column.pathUrl || "/address/getAreaDataList",
110
+ disabled: e.disabled
111
+ }, null, 8, ["modelValue", "postFunc", "onChange", "level-num", "pathUrl", "disabled"])
112
+ ]),
113
+ d("div", C, [
114
+ a(m, {
115
+ modelValue: e.column.value[l.valueKey.detail],
116
+ "onUpdate:modelValue": o[3] || (o[3] = (u) => e.column.value[l.valueKey.detail] = u),
117
+ type: "textarea",
118
+ rows: 3,
119
+ disabled: e.disabled,
120
+ resize: "none",
121
+ placeholder: "输入详细地址",
122
+ onInput: l.onInput,
123
+ onFocus: l.onFocus,
124
+ onBlur: l.onBlur,
125
+ clearable: "",
126
+ "show-word-limit": ""
127
+ }, null, 8, ["modelValue", "disabled", "onInput", "onFocus", "onBlur"])
128
+ ]),
129
+ a(h, { column: e.column }, null, 8, ["column"])
130
+ ]);
131
+ }
132
+ const T = /* @__PURE__ */ y(I, [["render", K]]);
133
+ export {
134
+ T as default
135
+ };
@@ -0,0 +1,64 @@
1
+ import { a as i, f as s } from "./formItemFooter-CN8bMSJS.js";
2
+ import { resolveComponent as o, openBlock as d, createElementBlock as r, createVNode as t, createElementVNode as f } from "vue";
3
+ import { _ as p } from "./install-D9fhAvpu.js";
4
+ const h = {
5
+ name: "editSelectCol",
6
+ components: { formItemFooter: s, formItemTop: i },
7
+ props: {
8
+ column: {
9
+ type: Object,
10
+ default: function() {
11
+ return {};
12
+ }
13
+ },
14
+ disabled: Boolean,
15
+ // 接口请求外部转发
16
+ postFunc: Function,
17
+ // 表级别扩展信息
18
+ extraInfo: {
19
+ type: Object,
20
+ default: function() {
21
+ return {};
22
+ }
23
+ },
24
+ taskId: {}
25
+ },
26
+ methods: {
27
+ /**
28
+ * 组件值发生变化
29
+ * */
30
+ changeValue() {
31
+ this.column.error = "", this.column.warning = "", this.$emit("onChange", this.column);
32
+ }
33
+ }
34
+ }, _ = { class: "w-default-wrap" }, g = { class: "w-default-wrap" };
35
+ function I(b, n, e, x, F, l) {
36
+ const a = o("formItemTop"), c = o("BnSelect"), m = o("formItemFooter");
37
+ return d(), r("div", _, [
38
+ t(a, { column: e.column }, null, 8, ["column"]),
39
+ f("div", g, [
40
+ t(c, {
41
+ modelValue: e.column.value,
42
+ "onUpdate:modelValue": n[0] || (n[0] = (u) => e.column.value = u),
43
+ options: e.column.moduleDefinition,
44
+ multiple: e.column.behaviorType == 5,
45
+ disabled: e.disabled || !e.taskId && e.extraInfo.isAutoAssign == 1 && e.column.columnCode == "executor",
46
+ optionProps: { value: "code", label: "title" },
47
+ pageProps: { pageNum: "pageNo", pageSize: "pageSize" },
48
+ pathUrl: e.column.pathUrl,
49
+ postData: e.column.postData,
50
+ postFunc: e.postFunc,
51
+ placeholder: !e.taskId && e.extraInfo.isAutoAssign && e.column.columnCode == "executor" ? "已开启自动分配" : "请选择",
52
+ clearable: "",
53
+ collapseTags: !1,
54
+ filterable: "",
55
+ onChange: l.changeValue
56
+ }, null, 8, ["modelValue", "options", "multiple", "disabled", "pathUrl", "postData", "postFunc", "placeholder", "onChange"])
57
+ ]),
58
+ t(m, { column: e.column }, null, 8, ["column"])
59
+ ]);
60
+ }
61
+ const k = /* @__PURE__ */ p(h, [["render", I]]);
62
+ export {
63
+ k as default
64
+ };
@@ -0,0 +1,45 @@
1
+ import { f as d, a as s } from "./formItemFooter-CN8bMSJS.js";
2
+ import { debounce as f } from "lodash";
3
+ import { resolveComponent as n, openBlock as i, createElementBlock as _, createVNode as t, createElementVNode as p } from "vue";
4
+ import { _ as x } from "./install-D9fhAvpu.js";
5
+ const h = {
6
+ name: "numberForm",
7
+ components: { formItemTop: s, formItemFooter: d },
8
+ props: {
9
+ column: {
10
+ type: Object,
11
+ default: function() {
12
+ return {};
13
+ }
14
+ },
15
+ disabled: Boolean
16
+ },
17
+ methods: {
18
+ /**
19
+ * 输入框Change事件
20
+ * */
21
+ onChange: f(function(m, o) {
22
+ this.$emit("onChange", this.column);
23
+ }, 500)
24
+ }
25
+ }, I = { class: "w-default-wrap" }, b = { class: "w-default-wrap" };
26
+ function v(m, o, e, C, g, a) {
27
+ const l = n("formItemTop"), c = n("el-rate"), r = n("formItemFooter");
28
+ return i(), _("div", I, [
29
+ t(l, { column: e.column }, null, 8, ["column"]),
30
+ p("div", b, [
31
+ t(c, {
32
+ modelValue: e.column.value,
33
+ "onUpdate:modelValue": o[0] || (o[0] = (u) => e.column.value = u),
34
+ disabled: e.disabled,
35
+ onChange: a.onChange,
36
+ max: e.column.extraInfo.valueMaxSize ? parseInt(e.column.extraInfo.valueMaxSize) : 5
37
+ }, null, 8, ["modelValue", "disabled", "onChange", "max"])
38
+ ]),
39
+ t(r, { column: e.column }, null, 8, ["column"])
40
+ ]);
41
+ }
42
+ const T = /* @__PURE__ */ x(h, [["render", v]]);
43
+ export {
44
+ T as default
45
+ };