cloud-web-corejs 1.1.0-dev.29 → 1.1.0-dev.31

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 (168) hide show
  1. package/package.json +11 -4
  2. package/src/app-bootstrap.js +523 -0
  3. package/src/boot-assets.legacy.js +7 -0
  4. package/src/boot-assets.next.js +7 -0
  5. package/src/components/xform/form-designer/designer.js +52 -6
  6. package/src/components/xform/form-designer/form-widget/field-widget/row-col-select-widget.vue +64 -0
  7. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-temp-edito.vue +13 -1
  8. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +2 -0
  9. package/src/core-resources/css/h5.scss +548 -0
  10. package/src/core-resources/css/iconfont.css +1447 -0
  11. package/src/core-resources/font/iconfont.ttf +0 -0
  12. package/src/core-resources/font/iconfont.woff +0 -0
  13. package/src/core-resources/font/iconfont.woff2 +0 -0
  14. package/src/core-resources/images/default-header.png +0 -0
  15. package/src/core-resources/images/ico-default_wenjian.svg +1 -0
  16. package/src/core-resources/images/ico-excel.svg +1 -0
  17. package/src/core-resources/images/ico-ftl.svg +7 -0
  18. package/src/core-resources/images/ico-html.svg +1 -0
  19. package/src/core-resources/images/ico-java.svg +1 -0
  20. package/src/core-resources/images/ico-music.svg +1 -0
  21. package/src/core-resources/images/ico-pdf.svg +1 -0
  22. package/src/core-resources/images/ico-photo.svg +1 -0
  23. package/src/core-resources/images/ico-ppt.svg +1 -0
  24. package/src/core-resources/images/ico-psd.svg +1 -0
  25. package/src/core-resources/images/ico-service.png +0 -0
  26. package/src/core-resources/images/ico-txt.svg +1 -0
  27. package/src/core-resources/images/ico-video.svg +1 -0
  28. package/src/core-resources/images/ico-vue.svg +8 -0
  29. package/src/core-resources/images/ico-wenjianjia.svg +1 -0
  30. package/src/core-resources/images/ico-wrod.svg +1 -0
  31. package/src/core-resources/images/ico-xml.svg +1 -0
  32. package/src/core-resources/images/ico-yasuobao.svg +1 -0
  33. package/src/core-resources/images/icon-error.png +0 -0
  34. package/src/core-resources/images/icon-tips.png +0 -0
  35. package/src/core-resources/images/nodata.png +0 -0
  36. package/src/core-resources/images/nodata2.png +0 -0
  37. package/src/core-resources/js/base/common.js +110 -0
  38. package/src/icons/index.js +9 -0
  39. package/src/icons/svg/404.svg +1 -0
  40. package/src/icons/svg/alert.svg +1 -0
  41. package/src/icons/svg/bug.svg +1 -0
  42. package/src/icons/svg/button.svg +1 -0
  43. package/src/icons/svg/card.svg +1 -0
  44. package/src/icons/svg/cascader-field.svg +1 -0
  45. package/src/icons/svg/census.svg +1 -0
  46. package/src/icons/svg/chart.svg +1 -0
  47. package/src/icons/svg/checkbox-field.svg +1 -0
  48. package/src/icons/svg/clipboard.svg +1 -0
  49. package/src/icons/svg/color-field.svg +1 -0
  50. package/src/icons/svg/component.svg +1 -0
  51. package/src/icons/svg/custom-component.svg +1 -0
  52. package/src/icons/svg/dashboard.svg +1 -0
  53. package/src/icons/svg/data-table.svg +1 -0
  54. package/src/icons/svg/date-field.svg +1 -0
  55. package/src/icons/svg/date-range-field.svg +1 -0
  56. package/src/icons/svg/descriptions.svg +1 -0
  57. package/src/icons/svg/divider.svg +1 -0
  58. package/src/icons/svg/document.svg +1 -0
  59. package/src/icons/svg/documentation.svg +1 -0
  60. package/src/icons/svg/drag.svg +1 -0
  61. package/src/icons/svg/echart-category.svg +1 -0
  62. package/src/icons/svg/echart-pie.svg +1 -0
  63. package/src/icons/svg/echart.svg +1 -0
  64. package/src/icons/svg/edit.svg +1 -0
  65. package/src/icons/svg/education.svg +1 -0
  66. package/src/icons/svg/email.svg +1 -0
  67. package/src/icons/svg/example.svg +1 -0
  68. package/src/icons/svg/excel.svg +1 -0
  69. package/src/icons/svg/exit-fullscreen.svg +1 -0
  70. package/src/icons/svg/eye-open.svg +1 -0
  71. package/src/icons/svg/eye.svg +1 -0
  72. package/src/icons/svg/file-upload-field.svg +1 -0
  73. package/src/icons/svg/form.svg +1 -0
  74. package/src/icons/svg/fullscreen.svg +1 -0
  75. package/src/icons/svg/github.svg +1 -0
  76. package/src/icons/svg/grid.svg +1 -0
  77. package/src/icons/svg/guide.svg +1 -0
  78. package/src/icons/svg/html-text.svg +1 -0
  79. package/src/icons/svg/ico-more.svg +1 -0
  80. package/src/icons/svg/ico-wenjianjia.svg +1 -0
  81. package/src/icons/svg/icon.svg +1 -0
  82. package/src/icons/svg/input-batch.svg +1 -0
  83. package/src/icons/svg/international.svg +1 -0
  84. package/src/icons/svg/language.svg +1 -0
  85. package/src/icons/svg/link.svg +1 -0
  86. package/src/icons/svg/list-export.svg +1 -0
  87. package/src/icons/svg/list.svg +1 -0
  88. package/src/icons/svg/lock.svg +1 -0
  89. package/src/icons/svg/message.svg +1 -0
  90. package/src/icons/svg/money.svg +1 -0
  91. package/src/icons/svg/nested.svg +1 -0
  92. package/src/icons/svg/news-list.svg +1 -0
  93. package/src/icons/svg/node-tree.svg +1 -0
  94. package/src/icons/svg/number-field.svg +1 -0
  95. package/src/icons/svg/password.svg +1 -0
  96. package/src/icons/svg/pdf.svg +1 -0
  97. package/src/icons/svg/people.svg +1 -0
  98. package/src/icons/svg/peoples.svg +1 -0
  99. package/src/icons/svg/picture-upload-field.svg +1 -0
  100. package/src/icons/svg/qq.svg +1 -0
  101. package/src/icons/svg/query.svg +1 -0
  102. package/src/icons/svg/radio-field.svg +1 -0
  103. package/src/icons/svg/rate-field.svg +1 -0
  104. package/src/icons/svg/redo.svg +1 -0
  105. package/src/icons/svg/rich-editor-field.svg +1 -0
  106. package/src/icons/svg/search.svg +1 -0
  107. package/src/icons/svg/searchbox.svg +1 -0
  108. package/src/icons/svg/section.svg +1 -0
  109. package/src/icons/svg/select-field.svg +1 -0
  110. package/src/icons/svg/shopping.svg +1 -0
  111. package/src/icons/svg/size.svg +1 -0
  112. package/src/icons/svg/skill.svg +1 -0
  113. package/src/icons/svg/slider-field.svg +1 -0
  114. package/src/icons/svg/slot-component.svg +1 -0
  115. package/src/icons/svg/slot-field.svg +1 -0
  116. package/src/icons/svg/star.svg +1 -0
  117. package/src/icons/svg/static-text.svg +1 -0
  118. package/src/icons/svg/status.svg +1 -0
  119. package/src/icons/svg/sub-form.svg +1 -0
  120. package/src/icons/svg/switch-field.svg +1 -0
  121. package/src/icons/svg/tab.svg +1 -0
  122. package/src/icons/svg/table.svg +1 -0
  123. package/src/icons/svg/text-field.svg +1 -0
  124. package/src/icons/svg/text.svg +1 -0
  125. package/src/icons/svg/textarea-field.svg +1 -0
  126. package/src/icons/svg/theme.svg +1 -0
  127. package/src/icons/svg/time-field.svg +1 -0
  128. package/src/icons/svg/time-range-field.svg +1 -0
  129. package/src/icons/svg/tips-text.svg +1 -0
  130. package/src/icons/svg/title-head.svg +1 -0
  131. package/src/icons/svg/tree-pane.svg +1 -0
  132. package/src/icons/svg/tree-table.svg +1 -0
  133. package/src/icons/svg/tree.svg +1 -0
  134. package/src/icons/svg/undo.svg +1 -0
  135. package/src/icons/svg/uploadbox.svg +1 -0
  136. package/src/icons/svg/user.svg +1 -0
  137. package/src/icons/svg/vf-box.svg +1 -0
  138. package/src/icons/svg/vf-dialog.svg +1 -0
  139. package/src/icons/svg/vf-drawer.svg +1 -0
  140. package/src/icons/svg/vue-sfc.svg +1 -0
  141. package/src/icons/svg/wechat.svg +1 -0
  142. package/src/icons/svg/zip.svg +1 -0
  143. package/src/index.next.js +5 -0
  144. package/src/styles/btn.scss +104 -0
  145. package/src/styles/element-ui.scss +155 -0
  146. package/src/styles/element-variables.scss +31 -0
  147. package/src/styles/global.scss +115 -0
  148. package/src/styles/index.scss +200 -0
  149. package/src/styles/menu-icons.scss +75 -0
  150. package/src/styles/mixin.scss +72 -0
  151. package/src/styles/nprogress.scss +14 -0
  152. package/src/styles/sidebar.scss +281 -0
  153. package/src/styles/split-handle.scss +52 -0
  154. package/src/styles/theme-variables.scss +7 -0
  155. package/src/styles/transition.scss +48 -0
  156. package/src/styles/utilities.scss +137 -0
  157. package/src/styles/variables.scss +44 -0
  158. package/src/views/demo/bizTab/bill/billConfig.js +0 -41
  159. package/src/views/demo/bizTab/bill/detail.vue +0 -436
  160. package/src/views/demo/bizTab/bill/list.vue +0 -288
  161. package/src/views/demo/bizTab/bill/productDialog.vue +0 -176
  162. package/src/views/demo/bizTab/simple/billApi.js +0 -123
  163. package/src/views/demo/bizTab/simple/detail.vue +0 -407
  164. package/src/views/demo/bizTab/simple/list.vue +0 -217
  165. package/src/views/demo/bizTab/standalone/index.vue +0 -121
  166. package/src/views/demo/bizTab/wf/billConfig.js +0 -44
  167. package/src/views/demo/bizTab/wf/detail.vue +0 -661
  168. package/src/views/demo/bizTab/wf/list.vue +0 -242
@@ -1,242 +0,0 @@
1
- <template>
2
- <biz-tab-list-page
3
- ref="bizTab"
4
- :listLabel="$t1('列表')"
5
- :titleField="BILL.titleField"
6
- :addTitle="$t1('新增')"
7
- :behavior="tabBehavior"
8
- @refresh-list="searchEvent"
9
- >
10
- <!-- ===== 列表页签 ===== -->
11
- <template #list>
12
- <vxe-grid
13
- ref="table-m1"
14
- v-bind="vxeOption"
15
- @resizable-change="$vxeTableUtil.onColumnWitchChange"
16
- @custom="$vxeTableUtil.customHandle"
17
- >
18
- <template #form>
19
- <div class="clearfix screen-btns">
20
- <div class="fl">
21
- <vxe-button
22
- status="primary"
23
- type="text"
24
- plain
25
- class="button-sty"
26
- icon="el-icon-plus"
27
- @click="openAdd"
28
- >{{ $t1("新增") }}</vxe-button
29
- >
30
- <!-- demo 用:现场切换「提交/审批完成后」的页签行为 -->
31
- <el-switch
32
- v-model="closeAfterWf"
33
- class="behavior-switch"
34
- :active-text="$t1('提交/通过后关闭页签回列表')"
35
- ></el-switch>
36
- </div>
37
- <div class="fr">
38
- <vxe-button
39
- icon="el-icon-brush"
40
- class="button-sty"
41
- type="text"
42
- status="primary"
43
- plain
44
- @click="resetEvent"
45
- >{{ $t1("重置") }}</vxe-button
46
- >
47
- <vxe-button
48
- status="warning"
49
- icon="el-icon-search"
50
- class="button-sty"
51
- @click="searchEvent"
52
- >{{ $t1("搜索") }}</vxe-button
53
- >
54
- </div>
55
- </div>
56
- <vxe-form
57
- ref="form"
58
- class="screen-box"
59
- title-width="92px"
60
- title-align="right"
61
- :data="formData"
62
- @submit="searchEvent"
63
- @reset="resetEvent"
64
- >
65
- <vxe-form-item :title="$t1('单号') + ':'" field="sn">
66
- <template v-slot>
67
- <el-input v-model="formData.sn" size="small" clearable />
68
- </template>
69
- </vxe-form-item>
70
- <vxe-form-item :title="$t1('阶梯价名称') + ':'" field="ladderName">
71
- <template v-slot>
72
- <el-input v-model="formData.ladderName" size="small" clearable />
73
- </template>
74
- </vxe-form-item>
75
- <vxe-form-item :title="$t1('单据状态') + ':'" field="status">
76
- <template v-slot>
77
- <el-select
78
- v-model="formData.status"
79
- size="small"
80
- clearable
81
- @clear="formData.status = null"
82
- >
83
- <el-option
84
- v-for="(item, key) in STATUS_MAP"
85
- :key="key"
86
- :label="item.label"
87
- :value="Number(key)"
88
- ></el-option>
89
- </el-select>
90
- </template>
91
- </vxe-form-item>
92
- </vxe-form>
93
- </template>
94
-
95
- <template #sn="{ row, rowIndex }">
96
- <a href="javascript:void(0);" class="a-link" @click="openDetail(row, rowIndex)">
97
- {{ row.sn }}
98
- </a>
99
- </template>
100
- <template #status="{ row }">
101
- <div :class="getStatus(row).cls">{{ getStatus(row).label }}</div>
102
- </template>
103
- <template #operate="{ row, rowIndex }">
104
- <a href="javascript:void(0);" class="a-link" @click="openDetail(row, rowIndex)">
105
- <el-tooltip
106
- :enterable="false"
107
- effect="dark"
108
- :content="$t1('查看')"
109
- placement="top"
110
- popper-class="tooltip-skin"
111
- ><i class="el-icon-view"
112
- /></el-tooltip>
113
- </a>
114
- </template>
115
- </vxe-grid>
116
- </template>
117
-
118
- <!-- ===== 详情页签(新增/查看共用同一个组件) ===== -->
119
- <template #detail="{ tab }">
120
- <bill-detail :tab="tab" />
121
- </template>
122
- </biz-tab-list-page>
123
- </template>
124
-
125
- <script>
126
- /**
127
- * demo C:自定义控制器 + 流程(std 手写页面那套写法)。
128
- *
129
- * 与 demo B 的区别只在数据通道:这里是 /ladderPrice/get|save|update 这类自己写的接口,
130
- * demo B 是通用 bd_api + formCode。页签、流程、翻单这些用法完全一样。
131
- *
132
- * 接口与 wfCode 见 ./billConfig.js;写法对齐本仓库 views/pmd/price/ladderPrice/。
133
- * 菜单/路由:@base/views/demo/bizTab/wf/list(本地已在 router/modules/customer.js 注册)
134
- */
135
- import BizTabListPage from "@base/components/bizTab/BizTabListPage.vue";
136
- import billDetail from "./detail.vue";
137
- import { BILL, STATUS_MAP } from "./billConfig";
138
-
139
- export default {
140
- name: "demo_bizTab_wf:list",
141
- components: { BizTabListPage, billDetail },
142
- data() {
143
- return {
144
- BILL,
145
- STATUS_MAP,
146
- vxeOption: {},
147
- formData: {},
148
- closeAfterWf: false,
149
- };
150
- },
151
- computed: {
152
- tabBehavior() {
153
- if (!this.closeAfterWf) return "refreshCurrent";
154
- return {
155
- submit: "closeToList",
156
- agree: "closeToList",
157
- default: "refreshCurrent",
158
- };
159
- },
160
- },
161
- mounted() {
162
- this.initTableList();
163
- },
164
- methods: {
165
- searchEvent() {
166
- this.$refs["table-m1"].commitProxy("reload");
167
- },
168
- resetEvent() {
169
- this.formData = {};
170
- this.$refs["table-m1"].commitProxy("reload");
171
- },
172
- getStatus(row) {
173
- return STATUS_MAP[row.status] || { label: "", cls: "" };
174
- },
175
- // 新增页签也传快照:保存成功后新单会被插到序列首位,翻单按钮随即可用
176
- openAdd() {
177
- this.$refs.bizTab.openAdd(null, { navRows: this.getListRows() });
178
- },
179
- // 把当前列表顺序和行下标一起传进去,详情头部就有「上一单/下一单」
180
- openDetail(row, rowIndex) {
181
- this.$refs.bizTab.openDetail(row, null, {
182
- navRows: this.getListRows(),
183
- navIndex: rowIndex != null ? rowIndex : -1,
184
- });
185
- },
186
- getListRows() {
187
- let grid = this.$refs["table-m1"];
188
- return grid ? grid.getTableData().fullData : null;
189
- },
190
- initTableList() {
191
- let tableOption = {
192
- vue: this,
193
- tableRef: "table-m1",
194
- tableName: "demo-bizTab-wf-list-m1",
195
- path: BILL.urls.listPage,
196
- param: () => {
197
- return { ...this.formData };
198
- },
199
- columns: [
200
- { type: "checkbox", width: 48, resizable: false, fixed: "left" },
201
- {
202
- title: this.$t1("单号"),
203
- field: "sn",
204
- width: 150,
205
- fixed: "left",
206
- slots: { default: "sn" },
207
- },
208
- { title: this.$t1("阶梯价名称"), field: "ladderName", width: 180 },
209
- {
210
- title: this.$t1("单据状态"),
211
- field: "status",
212
- width: 100,
213
- slots: { default: "status" },
214
- },
215
- { title: this.$t1("开始时间"), field: "startDate", width: 120 },
216
- { title: this.$t1("结束时间"), field: "endDate", width: 120 },
217
- { title: this.$t1("机构名称"), field: "saleOrgNames", minWidth: 180 },
218
- { title: this.$t1("备注"), field: "memo", minWidth: 150 },
219
- { title: this.$t1("创建人"), field: "createBy", width: 110 },
220
- { title: this.$t1("创建时间"), field: "createDate", width: 160 },
221
- {
222
- title: "",
223
- width: 47,
224
- fixed: "right",
225
- sortable: false,
226
- slots: { default: "operate" },
227
- },
228
- ],
229
- };
230
- this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
231
- this.vxeOption = opts;
232
- });
233
- },
234
- },
235
- };
236
- </script>
237
-
238
- <style scoped>
239
- .behavior-switch {
240
- margin-left: 16px;
241
- }
242
- </style>