@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
@@ -1,334 +0,0 @@
1
- <!--Created by xinba on 2024/10/30.-->
2
- <!--
3
- 联动组件、
4
- "https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_10030158_26e18a1f306bad541a1713b86e6d1030.png" 1
5
- "https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_10030158_34d142cdae778fe5751269e3ebb078be.png" 2
6
- "https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_10030158_a3e8db53df86fa2143e8d5238fc5dac0.png" 3
7
- 子表单组件、
8
- 附件预览
9
- -->
10
- <template>
11
- <div class="BnBatchForm">
12
- <div class="BnBatchForm-body" :val="value">
13
- <el-scrollbar ref="formScroll" height="100%" style="background: #fff">
14
- <template v-for="(column, j) in componentList" :key="j">
15
- <div class="BnBatchForm-body-item" :id="'col_'+column.columnCode">
16
- <div class="BnBatchForm-body-item-del" @click="componentList.splice(j,1)">
17
- <span class="bnUIcon bnUIcon-delete"></span>
18
- </div>
19
- <component :is="componentView(column)" :column="column" :postFunc="postFunc" @onChange="comChange"/>
20
- </div>
21
- </template>
22
- </el-scrollbar>
23
- </div>
24
- </div>
25
- </template>
26
- <script>
27
- import {checkChildrenFormValue, FORM_TYPES,} from "./BnSmartFormUtil";
28
- import {defineAsyncComponent} from "vue";
29
- import {cloneDeep, isEmpty, debounce} from "lodash";
30
- export default {
31
- name: "BnBatchForm",
32
- props: {
33
- // 表单id 涉及编辑表单
34
- id: [String, Number],
35
- // 表单value
36
- modelValue: Object,
37
- // 扩展参数
38
- extendPost: Object,
39
- // 组件列表
40
- components: Array,
41
- // 接口请求外部转发
42
- postFunc: Function,
43
- },
44
- methods: {
45
- /**
46
- * 生成整张表单的valueData,供保存使用
47
- * @param {Object} components: 组件data
48
- *
49
- * */
50
- getFormContent() {
51
- let response = {
52
- contents: [],
53
- };
54
- try {
55
- for (let i in this.componentList) {
56
- let component = cloneDeep(this.componentList[i]);
57
- let content = {
58
- columnCode: component.columnCode,
59
- };
60
- switch (component.behaviorType) {
61
- case 1://文本
62
- case 2://数值
63
- case 9://评分
64
- case 7://日期
65
- case 11://富文本
66
- {
67
- content.value = component.value;
68
- break;
69
- }
70
- case 3://单选
71
- case 4://下拉
72
- case 5://多选
73
- case 6://联动
74
- case 20://多选联动
75
- case 8://区间
76
- case 10://附件
77
- case 12://标签
78
- case 13://子表单
79
- case 14://地址
80
- case 15://收寄信息
81
- {
82
- content.value = component.value?JSON.stringify(component.value):'';
83
- break;
84
- }
85
- }
86
- response.contents.push(content)
87
- }
88
- } catch (e) {
89
- console.log("getFormContentErr:" + e)
90
- }
91
- return response;
92
- },
93
- /**
94
- * 表单校验,根据组件规则校验表单填写的正确性
95
- * */
96
- checkFormContent() {
97
- let check = {
98
- column: null,
99
- checked: true
100
- };
101
- for (let i in this.componentList) {
102
- let component = {...this.componentList[i]};
103
- let content = {
104
- columnCode: component.columnCode,
105
- };
106
- switch (component.behaviorType) {
107
- case 1://文本
108
- case 2://数值
109
- {
110
- // 文本校验是否必填
111
- if (component.extraInfo.valueEmptyCheck == 1 && component.behaviorType == 1 && isEmpty(component.value)) {
112
- this.componentList[i].error = component.name + "的值不能为空";
113
- }
114
- // 数值校验是否必填
115
- if (component.extraInfo.valueEmptyCheck == 1 && component.behaviorType == 2 && (component.value === undefined || component.value === null || component.value === '')) {
116
- this.componentList[i].error = component.name + "的值不能为空";
117
- }
118
- // 正则校验
119
- if (component.extraInfo.regular) {
120
- //获取校验规则,转化为正则表达式
121
- let rule = new RegExp(component.extraInfo.regular);
122
- if (!rule.test(component.value)) {
123
- this.componentList[i].error = component.extraInfo.paraExplain || '请输入符合要求的' + component.name;
124
- }
125
- }
126
- break;
127
- }
128
- case 3://单选
129
- case 4://下拉
130
- case 5://多选
131
- case 6://联动
132
- case 20://多选联动
133
- case 8://区间
134
- case 10://附件
135
- case 12://标签
136
- case 9://评分
137
- case 7://日期
138
- case 11://富文本
139
- {
140
- // 校验是否必填
141
- if (component.extraInfo.valueEmptyCheck == 1 && isEmpty(component.value)) {
142
- this.componentList[i].error = component.name + "的值不能为空";
143
- }
144
- break;
145
- }
146
- case 13://子表单
147
- {
148
- if (component.extraInfo.valueEmptyCheck == 1) {
149
- if(isEmpty(component.value)){
150
- this.componentList[i].error = component.name + '至少要有一条内容';
151
- }else{
152
- let msg = checkChildrenFormValue(component,this.id)
153
- if(msg){
154
- this.componentList[i].error = msg;
155
- }
156
- }
157
- }
158
- break;
159
- }
160
- case 14://地址
161
- case 15://收寄信息
162
- {
163
- if (component.extraInfo.valueEmptyCheck == 1) {
164
- for(let key in component.value){
165
- if(isEmpty(component.value[key])){
166
- this.componentList[i].error = `请输入完整的${component.name}`;
167
- break;
168
- }
169
- }
170
- }
171
- break;
172
- }
173
- }
174
- if (this.componentList[i].error) {
175
- check.column = this.componentList[i];
176
- check.checked = false;
177
- this.getHere(content, true);
178
- break;
179
- }
180
- }
181
- return check;
182
- },
183
- /**
184
- * 锚点滚动条滚动后,组件列表跟随滚动到指定位置
185
- * */
186
- getHere(item) {
187
- const targetElement = document.getElementById("col_" + item.columnCode);
188
- if (targetElement && this.$refs.formScroll) {
189
- // 使用 el-scrollbar 的 scrollTo 方法
190
- this.$refs.formScroll.scrollTo({top: targetElement.offsetTop, behavior: 'smooth'});
191
- }
192
- },
193
- /**
194
- * 保存任务,返回校验完毕,组装完成后的数据
195
- * */
196
- saveTask() {
197
- if (this.checkFormContent()) {
198
- let params = this.getFormContent();
199
- return {check: true, taskStatus: {}, carryUser: {}, ...params}
200
- } else {
201
- return {check: false}
202
- }
203
- },
204
- /**
205
- * 判断返回是哪一类型的组件
206
- * */
207
- componentView(column) {
208
- const components = {
209
- stringForm: defineAsyncComponent(() => import('./stringForm/index.vue')),
210
- numberForm: defineAsyncComponent(() => import('./numberForm/index.vue')),
211
- selectForm: defineAsyncComponent(() => import('./selectForm/index.vue')),
212
- radioForm: defineAsyncComponent(() => import('./radioForm/index.vue')),
213
- checkboxForm: defineAsyncComponent(() => import('./checkboxForm/index.vue')),
214
- dateForm: defineAsyncComponent(() => import('./dateForm/index.vue')),
215
- dateDualForm: defineAsyncComponent(() => import('./dateDualForm/index.vue')),
216
- fileForm: defineAsyncComponent(() => import('./fileForm/index.vue')),
217
- childrenForm: defineAsyncComponent(() => import('./childrenForm/index.vue')),
218
- addressForm: defineAsyncComponent(() => import('./addressForm/index.vue')),
219
- receiveForm: defineAsyncComponent(() => import('./receiveForm/index.vue')),
220
- relationForm: defineAsyncComponent(() => import('./relationForm/index.vue')),
221
- // showValForm: defineAsyncComponent(() => import('./showValForm/index.vue')),
222
- }
223
- // 根据常量获取不同组件类型,进行渲染
224
- let componentName = FORM_TYPES[column.behaviorType] || null;
225
- try {
226
- // 当组件是编辑时禁用,或者是流程的冻结组件时,展示一个预览样式 autoNumber:自动编码
227
- // if (this.id && column.purviewArr.includes('edit') && column.extraInfo.valueEditable == '1') {
228
- // return 'showValForm'
229
- // }
230
- } catch (e) {
231
- console.log('BnBatchFormComponentViewErr:' + e)
232
- }
233
- return components[componentName]
234
- },
235
- /**
236
- * 组件值发生改变,在数据确定变化结束才会返回这个事件。需要注意input事件也会触发change,只不过做了防抖
237
- * @param {Object} params :子表单事件透出,需要提供更多组件信息,只有子表单才有这个参数!!
238
- * */
239
- comChange() {
240
- this.$emit('change', this.value)
241
- },
242
- },
243
- computed: {
244
- // 组件列表
245
- componentList: {
246
- get() {
247
- return this.components;
248
- },
249
- set(val) {
250
- this.$emit("update:components", val);
251
- }
252
- },
253
- value() {
254
- const content = this.getFormContent();
255
- this.$emit("update:modelValue", content);
256
- return content;
257
- },
258
- },
259
- }
260
- </script>
261
- <style>
262
- @import "../font/iconfont.css";
263
- </style>
264
- <style scoped lang="scss">
265
- .BnBatchForm {
266
- position: relative;
267
- background: #fff;
268
- width: 100%;
269
- height: 100%;
270
-
271
- &-head {
272
- position: absolute;
273
- top: 0;
274
- width: 100%;
275
- height: 8px;
276
- }
277
-
278
- &-body {
279
- position: relative;
280
- width: 100%;
281
- height: 100%;
282
-
283
- &-item {
284
- position: relative;
285
- padding: 10px 20px;
286
- &-del{
287
- position: absolute;
288
- right: 20px;
289
- top: 10px;
290
- color: #FF5F5F;
291
- cursor: pointer;
292
- z-index: 1;
293
- }
294
- &:first-child{
295
- padding-top: 0;
296
- }
297
- }
298
- }
299
-
300
- &-elf {
301
- position: absolute;
302
- top: 0;
303
- left: calc(100% + 10px);
304
- background: #fff;
305
- width: 340px;
306
- height: calc(80%);
307
- box-shadow: 0 0 12px rgba(0, 0, 0, .12);;
308
- border-radius: 4px;
309
- border: 1px solid #e4e7ed;
310
- overflow: hidden;
311
-
312
- &-tip {
313
- position: absolute;
314
- top: 60px;
315
- right: 30px;
316
- width: 50px;
317
- cursor: pointer;
318
- z-index: -1;
319
-
320
- img {
321
- width: 60px;
322
- transform: rotate(40deg); /* 旋转 90 度 */
323
- transform-origin: center; /* 设置旋转中心为图片中心 */
324
- }
325
-
326
- transition: right 0.5s ease-in-out;
327
-
328
- &-show {
329
- right: -20px;
330
- }
331
- }
332
- }
333
- }
334
- </style>