@bytenew/bn-bus-ui 1.1.462 → 1.1.463

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/install.js +134 -0
  2. package/package.json +20 -4
  3. package/packages/BnAddress/index.vue +141 -0
  4. package/packages/BnAddressParse/index.vue +75 -0
  5. package/packages/BnAdvancedFilter/BnFilterView.vue +145 -0
  6. package/packages/BnAdvancedFilter/index.vue +345 -0
  7. package/packages/BnAdvancedFilter/util.js +171 -0
  8. package/packages/BnCascader/BnCascader.vue +543 -0
  9. package/packages/BnCascader/BnCascaderPanel.vue +1331 -0
  10. package/packages/BnCascader/cascaderDisplay.js +102 -0
  11. package/packages/BnCheck/BnCheck.vue +253 -0
  12. package/packages/BnColumnConfig/columnConfigDialog.vue +134 -0
  13. package/packages/BnColumnConfig/component/childrenFormSetting/assocTable.vue +143 -0
  14. package/packages/BnColumnConfig/component/childrenFormSetting/assocTableSearch.vue +314 -0
  15. package/packages/BnColumnConfig/component/childrenFormSetting/index.vue +243 -0
  16. package/packages/BnColumnConfig/component/defaultSet/defaultSet.vue +114 -0
  17. package/packages/BnColumnConfig/component/defaultSet/stringDefault.vue +210 -0
  18. package/packages/BnColumnConfig/component/funcExprDialog/funcExprDialog.vue +126 -0
  19. package/packages/BnColumnConfig/component/packageFilter/index.vue +141 -0
  20. package/packages/BnColumnConfig/component/paraExplainSet/index.vue +156 -0
  21. package/packages/BnColumnConfig/component/setOption/setOption.vue +321 -0
  22. package/packages/BnColumnConfig/component/setRelationOption/ConditionList.vue +277 -0
  23. package/packages/BnColumnConfig/component/setRelationOption/LevelHeader.vue +144 -0
  24. package/packages/BnColumnConfig/component/setRelationOption/setRelationOption.vue +642 -0
  25. package/packages/BnColumnConfig/data.js +129 -0
  26. package/packages/BnColumnConfig/index.scss +23 -0
  27. package/packages/BnColumnConfig/index.vue +309 -0
  28. package/packages/BnCondVal/BnCondVal.vue +112 -0
  29. package/packages/BnCondVal/itemVal/dateRegVal.vue +39 -0
  30. package/packages/BnCondVal/itemVal/dateVal.vue +39 -0
  31. package/packages/BnCondVal/itemVal/numRegVal.vue +67 -0
  32. package/packages/BnCondVal/itemVal/numVal.vue +44 -0
  33. package/packages/BnCondVal/itemVal/relationVal.vue +73 -0
  34. package/packages/BnCondVal/itemVal/selectColumnVal.vue +58 -0
  35. package/packages/BnCondVal/itemVal/selectVal.vue +59 -0
  36. package/packages/BnCondVal/itemVal/stringVal.vue +156 -0
  37. package/packages/BnCondition/index.vue +551 -0
  38. package/packages/BnCondition/util.js +232 -0
  39. package/packages/BnDatePicker/BnDatePicker.vue +194 -0
  40. package/packages/BnDrop/BnDrop.vue +917 -0
  41. package/packages/BnEmptyTip/BnEmptyTip.vue +107 -0
  42. package/packages/BnExportOrder/BnExportOrder.vue +241 -0
  43. package/packages/BnExportOrder/validatorCode.vue +94 -0
  44. package/packages/BnFileView/BnFileView.vue +271 -0
  45. package/packages/BnFileView/FileDetail.vue +125 -0
  46. package/packages/BnFileView/videoPreview.vue +70 -0
  47. package/packages/BnFilterOption/BnFilterOption.vue +160 -0
  48. package/packages/BnFunExpr/BnFunExpr.vue +608 -0
  49. package/packages/BnImportOrder/BnImportOrder.vue +323 -0
  50. package/packages/BnImportTemplate/BnImportTemplate.vue +866 -0
  51. package/packages/BnImportTemplate/assets/merge_tip_img.png +0 -0
  52. package/packages/BnImportTemplate/assets/sheet_tip.png +0 -0
  53. package/packages/BnImportTemplate/assets/xls.png +0 -0
  54. package/packages/BnImportTemplate/components/ImportTemplateTrigger.vue +198 -0
  55. package/packages/BnImportTemplate/components/TemplateEditDialog.vue +340 -0
  56. package/packages/BnImportTemplate/components/TemplateFieldsConfig.vue +401 -0
  57. package/packages/BnImportTemplate/components/TemplateListDialog.vue +297 -0
  58. package/packages/BnInpNum/BnInpNum.vue +165 -0
  59. package/packages/BnMenus/BnMenus.vue +502 -0
  60. package/packages/BnMenus/MenuItem.vue +321 -0
  61. package/packages/BnOrderCard/BnOrderCard.vue +389 -0
  62. package/packages/BnOrderCard/orderRemark.vue +178 -0
  63. package/packages/BnOrderCard/util.js +94 -0
  64. package/packages/BnOrderDetail/BnOrderDetail.vue +338 -0
  65. package/packages/BnOrderDetail/filterLogByUser.vue +108 -0
  66. package/packages/BnOrderDetail/orderLogs.vue +53 -0
  67. package/packages/BnOrderDetail/showSubForm/index.vue +41 -0
  68. package/packages/BnOrderDetail/showSubForm/showChildTable.vue +61 -0
  69. package/packages/BnOrderDetail/showSubForm/showTimeLine.vue +131 -0
  70. package/packages/BnOrderDetail/showSubForm/tableCellCopy.vue +84 -0
  71. package/packages/BnOrderShare/index.vue +378 -0
  72. package/packages/BnOrderShare/shareUrlInp.vue +54 -0
  73. package/packages/BnRadio/BnRadio.vue +181 -0
  74. package/packages/BnRelation/BnRelation.vue +120 -0
  75. package/packages/BnSelect/BnSelect.vue +485 -0
  76. package/packages/BnSmartForm/BnBatchForm.vue +334 -0
  77. package/packages/BnSmartForm/BnBatchFormDialog.vue +423 -0
  78. package/packages/BnSmartForm/BnSmartElf/elfLog/index.vue +57 -0
  79. package/packages/BnSmartForm/BnSmartElf/index.vue +95 -0
  80. package/packages/BnSmartForm/BnSmartFormPsychic.js +629 -0
  81. package/packages/BnSmartForm/BnSmartFormUtil.js +524 -0
  82. package/packages/BnSmartForm/addressForm/index.vue +73 -0
  83. package/packages/BnSmartForm/checkboxForm/index.vue +99 -0
  84. package/packages/BnSmartForm/childrenForm/childFormFile.vue +237 -0
  85. package/packages/BnSmartForm/childrenForm/childrenFormBody.vue +260 -0
  86. package/packages/BnSmartForm/childrenForm/index.vue +110 -0
  87. package/packages/BnSmartForm/childrenForm/searchInventory.vue +115 -0
  88. package/packages/BnSmartForm/chooseAssocTable/chooseAssocTable.vue +451 -0
  89. package/packages/BnSmartForm/chooseAssocTable/chooseChildGood.vue +229 -0
  90. package/packages/BnSmartForm/chooseAssocTable/tableCellCopy.vue +84 -0
  91. package/packages/BnSmartForm/chooseChildOrder/chooseChildOrder.vue +158 -0
  92. package/packages/BnSmartForm/chooseIPaasData/chooseIPaasData.vue +307 -0
  93. package/packages/BnSmartForm/chooseIPaasData/tableCellCopy.vue +84 -0
  94. package/packages/BnSmartForm/choosePackage/choosePackage.vue +361 -0
  95. package/packages/BnSmartForm/dateDualForm/index.vue +37 -0
  96. package/packages/BnSmartForm/dateForm/index.vue +38 -0
  97. package/packages/BnSmartForm/fileForm/fileFormData.js +50 -0
  98. package/packages/BnSmartForm/fileForm/index.vue +240 -0
  99. package/packages/BnSmartForm/formItemFooter/formItemFooter.vue +38 -0
  100. package/packages/BnSmartForm/formItemTop/formItemTop.vue +42 -0
  101. package/packages/BnSmartForm/index.vue +1201 -0
  102. package/packages/BnSmartForm/numberForm/index.vue +63 -0
  103. package/packages/BnSmartForm/radioForm/index.vue +72 -0
  104. package/packages/BnSmartForm/receiveForm/index.vue +112 -0
  105. package/packages/BnSmartForm/relationForm/index.vue +82 -0
  106. package/packages/BnSmartForm/scoreForm/index.vue +39 -0
  107. package/packages/BnSmartForm/selectForm/index.vue +55 -0
  108. package/packages/BnSmartForm/showValForm/index.vue +42 -0
  109. package/packages/BnSmartForm/showValForm/showValFormTable.vue +104 -0
  110. package/packages/BnSmartForm/smartFormsCommon.scss +43 -0
  111. package/packages/BnSmartForm/stringForm/index.vue +170 -0
  112. package/packages/BnVirtPopover/index.vue +319 -0
  113. package/packages/BnWebLog/BnWebLog.vue +140 -0
  114. package/packages/BnWorkSettingDrop/advancedOptions.js +112 -0
  115. package/packages/BnWorkSettingDrop/benBenAIUtil.js +89 -0
  116. package/packages/BnWorkSettingDrop/index.vue +292 -0
  117. package/packages/font/iconfont.css +243 -0
  118. package/packages/font/iconfont.ttf +0 -0
  119. package/packages/font/iconfont.woff +0 -0
  120. package/packages/font/iconfont.woff2 +0 -0
  121. package/utils/addressParse-old.js +645 -0
  122. package/utils/addressParse.js +735 -0
  123. package/utils/config.js +68 -0
  124. package/utils/index.js +1171 -0
  125. package/dist/assocTableSearch-CmzOXI5w.js +0 -349
  126. package/dist/assocTableSearch.css +0 -1
  127. package/dist/bn-bus-ui.es.js +0 -65
  128. package/dist/bn-bus-ui.umd.js +0 -49
  129. package/dist/chooseIPaasData-jkTJEMKT.js +0 -391
  130. package/dist/chooseIPaasData.css +0 -1
  131. package/dist/defaultSet-CiYuSOzT.js +0 -297
  132. package/dist/defaultSet.css +0 -1
  133. package/dist/fileFormData-D_Q1vylE.js +0 -53
  134. package/dist/formItemFooter-BpnVUUgV.js +0 -108
  135. package/dist/formItemFooter.css +0 -1
  136. package/dist/funcExprDialog-BMc-n5FL.js +0 -139
  137. package/dist/funcExprDialog.css +0 -1
  138. package/dist/index-8GQJARcF.js +0 -44
  139. package/dist/index-8apT0r8m.js +0 -66
  140. package/dist/index-BOFu3qAH.js +0 -183
  141. package/dist/index-BSKXuSid.js +0 -89
  142. package/dist/index-BhYvDd_Q.js +0 -45
  143. package/dist/index-BhqkeVFc.js +0 -45
  144. package/dist/index-CK7_Ou7F.js +0 -89
  145. package/dist/index-Cfb8D3Fg.js +0 -58
  146. package/dist/index-D1fGD0mX.js +0 -51
  147. package/dist/index-DE_eQGbT.js +0 -746
  148. package/dist/index-DfgiBqzS.js +0 -221
  149. package/dist/index-Dobi0ms9.js +0 -66
  150. package/dist/index-DuyQNxe0.js +0 -118
  151. package/dist/index-DxpJkrN7.js +0 -64
  152. package/dist/index-FGHeG46m.js +0 -109
  153. package/dist/index-P2M7CUTe.js +0 -178
  154. package/dist/index-xCz2zysE.js +0 -135
  155. package/dist/index.css +0 -1
  156. package/dist/index2.css +0 -1
  157. package/dist/index3.css +0 -1
  158. package/dist/index4.css +0 -1
  159. package/dist/index5.css +0 -1
  160. package/dist/index6.css +0 -1
  161. package/dist/index7.css +0 -1
  162. package/dist/install--7IU60oV.js +0 -23103
  163. package/dist/install.css +0 -1
  164. package/dist/setOption-DehYZpZr.js +0 -329
  165. package/dist/setOption.css +0 -1
  166. package/dist/setRelationOption-BL-AFUoF.js +0 -5217
  167. package/dist/setRelationOption.css +0 -1
@@ -1,221 +0,0 @@
1
- import { isEmpty as O, cloneDeep as T } from "lodash";
2
- import { _ as U, W as F } from "./install--7IU60oV.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--7IU60oV.js").then((t) => t.V)),
8
- assocTableSearch: D(() => import("./assocTableSearch-CmzOXI5w.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
- };
@@ -1,66 +0,0 @@
1
- import { a as m, f as s } from "./formItemFooter-BpnVUUgV.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--7IU60oV.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
- };
@@ -1,118 +0,0 @@
1
- import { _ as g, X as w } from "./install--7IU60oV.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
- };
@@ -1,64 +0,0 @@
1
- import { a as i, f as s } from "./formItemFooter-BpnVUUgV.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--7IU60oV.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
- };
@@ -1,109 +0,0 @@
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--7IU60oV.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
- };