@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
@@ -0,0 +1,240 @@
1
+ <template>
2
+ <div class="fileForm">
3
+ <formItemTop v-if="!hiddenTop" :column="column"/>
4
+ <div class="">
5
+ <el-upload class="fileForm-upload" ref="uploadInput" drag
6
+ :action="column.pathUrl || uploadAction"
7
+ :show-file-list="false" :disabled="disabled"
8
+ :before-upload="beforeUpload" multiple
9
+ :data="uploadData" :on-progress="handleUploadProgress"
10
+ :on-success="fileSuccess">
11
+ <div class="fileForm-btn">
12
+ <span class="bnUIcon bnUIcon-upload"></span> 选择或拖拽上传文件
13
+ </div>
14
+ </el-upload>
15
+ <!-- 视频附件不支持,其他情况支持 -->
16
+ <el-input
17
+ v-model="pasteValue"
18
+ ref="pasteImgInput"
19
+ placeholder="复制粘贴上传截图"
20
+ class="fileForm-input" :disabled="disabled"
21
+ />
22
+ <span class="fileForm-tip">最多可上传{{ uploadFileNumber }}个文件,单个文件不超过{{ showLimit }}M</span>
23
+ </div>
24
+ <el-progress
25
+ style="width: 100%; max-width: 444px"
26
+ :percentage="uploadProgress"
27
+ v-show="uploadProgress > 0"
28
+ class="fileForm-progress"
29
+ ></el-progress>
30
+ <div>
31
+ <BnFileView :file-list="column.value" :isDel="!disabled" row="2"></BnFileView>
32
+ </div>
33
+ <formItemFooter :column="column"/>
34
+ </div>
35
+ </template>
36
+
37
+ <script>
38
+ import formItemTop from "../formItemTop/formItemTop.vue";
39
+ import formItemFooter from "../formItemFooter/formItemFooter.vue";
40
+ import {pasteImg} from "../BnSmartFormUtil.js";
41
+ import {fileType} from "./fileFormData.js";
42
+
43
+ export default {
44
+ name: "FileForm",
45
+ components: {formItemFooter, formItemTop},
46
+ props: {
47
+ column: {type: Object, default: () => ({}),},
48
+ disabled:Boolean,
49
+ // 隐藏头部
50
+ hiddenTop:Boolean
51
+ },
52
+ data() {
53
+ return {
54
+ fileType: this.column.fileType || fileType,
55
+ pasteValue: "",
56
+ pasteImgList: [], //用来存放粘贴的图片
57
+ // 上传进度
58
+ uploadProgress: 0,
59
+ uploadFileCount: 0, //记录上传次数,限制最多上传5个
60
+ uploadFileNumber: this.column.uploadFileNumber || 10, //可上传附件那个数
61
+ showLimit: 15, //单文件最大M数
62
+ uploadAction: "/v2/attachment/upload",
63
+ uploadData: {source: "task"},
64
+ };
65
+ },
66
+ methods: {
67
+ /**
68
+ * 上传成功
69
+ * */
70
+ fileSuccess(res) {
71
+ this.column.error = "";
72
+ this.uploadProgress = 0;
73
+
74
+ if (!res.code) {
75
+ const fileData = {
76
+ title: res.data.fileName,
77
+ id: res.data.id,
78
+ code: res.data.id,
79
+ size: res.data.fileSize,
80
+ type: res.data.suffix,
81
+ url: res.data.url,
82
+ };
83
+
84
+ if (this.column.value.length < this.uploadFileNumber) {
85
+ this.column.value.push(fileData);
86
+ this.$emit('onChange', this.column);
87
+ } else {
88
+ this.$message({
89
+ message: `上传文件个数不能超过${this.uploadFileNumber}个`,
90
+ type: 'warning'
91
+ });
92
+ }
93
+ this.uploadFileCount = this.column.value.length;
94
+ } else {
95
+ this.$message({
96
+ message: res.msg,
97
+ type: 'warning'
98
+ });
99
+ }
100
+ },
101
+ /**
102
+ * 附件上传前
103
+ * */
104
+ beforeUpload(file) {
105
+ if (this.column.value.length >= this.uploadFileNumber) {
106
+ this.$message({
107
+ message: `上传文件个数不能超过${this.uploadFileNumber}个`,
108
+ type: 'warning'
109
+ });
110
+ return false;
111
+ }
112
+ const maxSize = 50;
113
+ const maxSizeBytes = 1048576 * maxSize;
114
+ if (file.size > maxSizeBytes) {
115
+ this.$message({
116
+ message: `上传文件大小不能超出${maxSize}MB`,
117
+ type: 'warning'
118
+ });
119
+ return false;
120
+ }
121
+ const fileExt = file.name.split(".").pop().toLowerCase();
122
+ if (!this.fileType.includes(fileExt)) {
123
+ this.$message({
124
+ message: "上传的文件格式不支持",
125
+ type: 'warning'
126
+ });
127
+ return false;
128
+ }
129
+ this.uploadFileCount++;
130
+ return true;
131
+ },
132
+ handleUploadProgress(event) {
133
+ this.uploadProgress = Math.round(event.percent);
134
+ },
135
+ //粘贴图片到编辑器,事件处理方法,主要用于事件销毁
136
+ pasteEvent(evt) {
137
+ if (this.column.value.length >= this.uploadFileNumber) {
138
+ this.$message({
139
+ message: `上传文件个数不能超过${this.uploadFileNumber}个`,
140
+ type: 'warning'
141
+ });
142
+ return false;
143
+ }
144
+ this.column.error = "";
145
+ this.pasteImgList.push(evt);
146
+ pasteImg(evt, this.column.pathUrl || this.uploadAction).then((res) => {
147
+ if (!res.code) {
148
+ const fileData = {
149
+ title: res.data.fileName,
150
+ id: res.data.id,
151
+ code: res.data.id,
152
+ size: res.data.fileSize,
153
+ type: res.data.suffix,
154
+ url: res.data.url,
155
+ };
156
+
157
+ this.column.value.push(fileData);
158
+ this.$emit('onChange', this.column);
159
+ if (this.column.value.length >= this.uploadFileNumber) {
160
+ this.pasteImgList = [];
161
+ }
162
+ } else {
163
+ this.$message({
164
+ message: res.msg,
165
+ type: 'warning'
166
+ });
167
+ }
168
+ });
169
+ },
170
+ },
171
+ mounted() {
172
+ if (this.$refs.pasteImgInput && this.$refs.pasteImgInput.$el) {
173
+ this.$refs.pasteImgInput.$el.addEventListener("paste", this.pasteEvent);
174
+ }
175
+ },
176
+ //实例销毁前
177
+ beforeDestroy() {
178
+ if (this.$refs.pasteImgInput && this.$refs.pasteImgInput.$el) {
179
+ this.$refs.pasteImgInput.$el.removeEventListener(
180
+ "paste",
181
+ this.pasteEvent
182
+ );
183
+ }
184
+ },
185
+ };
186
+ </script>
187
+ <style scoped lang="scss">
188
+ .fileForm {
189
+ &-btn {
190
+ width: 257px;
191
+ height: 20px;
192
+ padding: 5px 16px;
193
+ border: 1px solid rgba(0, 0, 0, 0.15);
194
+ box-sizing: content-box;
195
+ border-radius: 2px;
196
+ color: #666;
197
+ }
198
+
199
+ :deep(.fileForm-upload) {
200
+ .el-upload {
201
+ display: inline-block;
202
+ }
203
+
204
+ .el-upload-dragger {
205
+ border: none;
206
+ width: auto;
207
+ height: auto;
208
+ border-radius: 0;
209
+ padding: 0;
210
+ }
211
+ }
212
+
213
+ &-list {
214
+ position: relative;
215
+ }
216
+
217
+ :deep(.fileForm-input) {
218
+ width: 145px;
219
+ display: inline-block;
220
+
221
+ .el-input__wrapper {
222
+ border: 1px dashed rgba(0, 0, 0, 0.15);
223
+ }
224
+ }
225
+
226
+ &-tip {
227
+ margin-left: 8px;
228
+ display: inline-block;
229
+ font-size: 12px;
230
+ line-height: 32px;
231
+ color: rgba(0, 0, 0, 0.25);
232
+ }
233
+
234
+ &-progress {
235
+ width: 100%;
236
+ max-width: 444px;
237
+ margin-top: 8px;
238
+ }
239
+ }
240
+ </style>
@@ -0,0 +1,38 @@
1
+ <!--表单组件底部-->
2
+ <template>
3
+ <div class="w-default-wrap">
4
+ <!-- 组件错误,组件警告提示相关-->
5
+ <div class="w-default-wrap BnSmartForm-tips">
6
+ <span class="w-font-min w-color-red" v-show="column.error">{{ column.error }}</span>
7
+ <span class="w-font-min w-color-orange" v-show="column.warning && !column.error">{{ column.warning }}</span>
8
+ <span class="w-font-min w-color-blue w-cursor-pointer" v-if="extraInfo && extraInfo.isCheckRepeat && column.warning && column.warning.includes('相同')" @click="$emit('operate', this.column,'chooseRepeat')">查看</span>
9
+ </div>
10
+ <div class="w-default-wrap BnSmartForm-explain" v-if="column.extraInfo?.paraExplain">
11
+ {{ column.extraInfo.paraExplain }}
12
+ </div>
13
+ <div class="w-default-wrap w-margin-top8 w-flex-wrap w-flex-gap8" v-if="column.extraInfo?.operationPictures?.length>0">
14
+ <el-image v-for="(url,index) in column.extraInfo.operationPictures" preview-teleported
15
+ style="width: 46px; height: 46px" :src="url"
16
+ :preview-src-list="column.extraInfo.operationPictures"
17
+ show-progress
18
+ :initial-index="index"
19
+ fit="cover"
20
+ />
21
+ </div>
22
+
23
+ </div>
24
+ </template>
25
+ <script>
26
+ export default {
27
+ name: "formItemFooter",
28
+ props: {
29
+ //组件对象
30
+ column: {type: Object},
31
+ extraInfo: Object,
32
+ },
33
+ }
34
+ </script>
35
+
36
+ <style scoped lang="scss">
37
+ @use "../smartFormsCommon";
38
+ </style>
@@ -0,0 +1,42 @@
1
+ <!--表单组件头部-->
2
+ <template>
3
+ <div class="w-default-wrap BnSmartForm-title" :class="{'w-color-red':column.error}">
4
+ <span class="w-color-red w-font-more" v-show="column.extraInfo.valueEmptyCheck == 1">*</span>
5
+ {{ column.name }}
6
+ <template v-if="column.extraInfo.searchKey == 2">
7
+ <el-popover placement="top-start" :width="400" trigger="hover" :show-arrow="false">
8
+ <div class="BnSmartForm-title-tip">
9
+ 拥有该标识的组件,会在手动修改值或输入框失去焦点后,触发第三方数据拉取,并将结果回填到对应的组件上。
10
+ </div>
11
+ <template #reference>
12
+ <span class="bnUIcon bnUIcon-fast w-color-orange w-font-weight w-cursor-pointer"></span>
13
+ </template>
14
+ </el-popover>
15
+ </template>
16
+ <template v-if="dataBack && dataBack.key == column.columnCode">
17
+ <el-popover placement="top-start" :width="400" trigger="hover" :show-arrow="false">
18
+ <div class="BnSmartForm-title-tip">
19
+ <span class="w-color-blue">多层级数据</span>,通过拥有 <span class="bnUIcon bnUIcon-fast w-color-orange"></span> 标识的组件拉取到完整第三方数据后,以该组件为主键进行拆分,选择数据后,我们会整合回填到表单的其他字段中。
20
+ <span class="w-color-orange">例如:</span>通过订单号拉取到多个包裹,在这里选择包裹后,会自动将多笔包裹数据合并回填整个表单得到完整数据
21
+ </div>
22
+ <template #reference>
23
+ <span class="bnUIcon bnUIcon-split w-color-blue w-font16 w-font-weight w-cursor-pointer"></span>
24
+ </template>
25
+ </el-popover>
26
+ </template>
27
+ </div>
28
+ </template>
29
+ <script>
30
+ export default {
31
+ name: "formItemTop",
32
+ props: {
33
+ //组件对象
34
+ column: {type: Object},
35
+ dataBack: {type: Object},
36
+ },
37
+ }
38
+ </script>
39
+
40
+ <style scoped lang="scss">
41
+ @use "../smartFormsCommon";
42
+ </style>