cloud-web-corejs 1.1.0-dev.27 → 1.1.0-dev.28

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 (170) hide show
  1. package/package.json +4 -11
  2. package/src/components/table/index.js +3 -0
  3. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +18 -1
  4. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +33 -20
  5. package/src/components/xform/form-render/container-item/data-table-mixin.js +16 -8
  6. package/src/components/xform/form-render/container-item/list-h5-item.vue +92 -309
  7. package/src/components/xform/utils/util.js +20 -0
  8. package/src/views/demo/bizTab/bill/billConfig.js +41 -0
  9. package/src/views/demo/bizTab/bill/detail.vue +436 -0
  10. package/src/views/demo/bizTab/bill/list.vue +288 -0
  11. package/src/views/demo/bizTab/bill/productDialog.vue +176 -0
  12. package/src/views/demo/bizTab/simple/billApi.js +123 -0
  13. package/src/views/demo/bizTab/simple/detail.vue +407 -0
  14. package/src/views/demo/bizTab/simple/list.vue +217 -0
  15. package/src/views/demo/bizTab/standalone/index.vue +121 -0
  16. package/src/views/demo/bizTab/wf/billConfig.js +44 -0
  17. package/src/views/demo/bizTab/wf/detail.vue +661 -0
  18. package/src/views/demo/bizTab/wf/list.vue +242 -0
  19. package/src/app-bootstrap.js +0 -523
  20. package/src/boot-assets.legacy.js +0 -7
  21. package/src/boot-assets.next.js +0 -7
  22. package/src/core-resources/css/h5.scss +0 -548
  23. package/src/core-resources/css/iconfont.css +0 -1447
  24. package/src/core-resources/font/iconfont.ttf +0 -0
  25. package/src/core-resources/font/iconfont.woff +0 -0
  26. package/src/core-resources/font/iconfont.woff2 +0 -0
  27. package/src/core-resources/images/default-header.png +0 -0
  28. package/src/core-resources/images/ico-default_wenjian.svg +0 -1
  29. package/src/core-resources/images/ico-excel.svg +0 -1
  30. package/src/core-resources/images/ico-ftl.svg +0 -7
  31. package/src/core-resources/images/ico-html.svg +0 -1
  32. package/src/core-resources/images/ico-java.svg +0 -1
  33. package/src/core-resources/images/ico-music.svg +0 -1
  34. package/src/core-resources/images/ico-pdf.svg +0 -1
  35. package/src/core-resources/images/ico-photo.svg +0 -1
  36. package/src/core-resources/images/ico-ppt.svg +0 -1
  37. package/src/core-resources/images/ico-psd.svg +0 -1
  38. package/src/core-resources/images/ico-service.png +0 -0
  39. package/src/core-resources/images/ico-txt.svg +0 -1
  40. package/src/core-resources/images/ico-video.svg +0 -1
  41. package/src/core-resources/images/ico-vue.svg +0 -8
  42. package/src/core-resources/images/ico-wenjianjia.svg +0 -1
  43. package/src/core-resources/images/ico-wrod.svg +0 -1
  44. package/src/core-resources/images/ico-xml.svg +0 -1
  45. package/src/core-resources/images/ico-yasuobao.svg +0 -1
  46. package/src/core-resources/images/icon-error.png +0 -0
  47. package/src/core-resources/images/icon-tips.png +0 -0
  48. package/src/core-resources/images/nodata.png +0 -0
  49. package/src/core-resources/images/nodata2.png +0 -0
  50. package/src/core-resources/js/base/common.js +0 -110
  51. package/src/icons/index.js +0 -9
  52. package/src/icons/svg/404.svg +0 -1
  53. package/src/icons/svg/alert.svg +0 -1
  54. package/src/icons/svg/bug.svg +0 -1
  55. package/src/icons/svg/button.svg +0 -1
  56. package/src/icons/svg/card.svg +0 -1
  57. package/src/icons/svg/cascader-field.svg +0 -1
  58. package/src/icons/svg/census.svg +0 -1
  59. package/src/icons/svg/chart.svg +0 -1
  60. package/src/icons/svg/checkbox-field.svg +0 -1
  61. package/src/icons/svg/clipboard.svg +0 -1
  62. package/src/icons/svg/color-field.svg +0 -1
  63. package/src/icons/svg/component.svg +0 -1
  64. package/src/icons/svg/custom-component.svg +0 -1
  65. package/src/icons/svg/dashboard.svg +0 -1
  66. package/src/icons/svg/data-table.svg +0 -1
  67. package/src/icons/svg/date-field.svg +0 -1
  68. package/src/icons/svg/date-range-field.svg +0 -1
  69. package/src/icons/svg/descriptions.svg +0 -1
  70. package/src/icons/svg/divider.svg +0 -1
  71. package/src/icons/svg/document.svg +0 -1
  72. package/src/icons/svg/documentation.svg +0 -1
  73. package/src/icons/svg/drag.svg +0 -1
  74. package/src/icons/svg/echart-category.svg +0 -1
  75. package/src/icons/svg/echart-pie.svg +0 -1
  76. package/src/icons/svg/echart.svg +0 -1
  77. package/src/icons/svg/edit.svg +0 -1
  78. package/src/icons/svg/education.svg +0 -1
  79. package/src/icons/svg/email.svg +0 -1
  80. package/src/icons/svg/example.svg +0 -1
  81. package/src/icons/svg/excel.svg +0 -1
  82. package/src/icons/svg/exit-fullscreen.svg +0 -1
  83. package/src/icons/svg/eye-open.svg +0 -1
  84. package/src/icons/svg/eye.svg +0 -1
  85. package/src/icons/svg/file-upload-field.svg +0 -1
  86. package/src/icons/svg/form.svg +0 -1
  87. package/src/icons/svg/fullscreen.svg +0 -1
  88. package/src/icons/svg/github.svg +0 -1
  89. package/src/icons/svg/grid.svg +0 -1
  90. package/src/icons/svg/guide.svg +0 -1
  91. package/src/icons/svg/html-text.svg +0 -1
  92. package/src/icons/svg/ico-more.svg +0 -1
  93. package/src/icons/svg/ico-wenjianjia.svg +0 -1
  94. package/src/icons/svg/icon.svg +0 -1
  95. package/src/icons/svg/input-batch.svg +0 -1
  96. package/src/icons/svg/international.svg +0 -1
  97. package/src/icons/svg/language.svg +0 -1
  98. package/src/icons/svg/link.svg +0 -1
  99. package/src/icons/svg/list-export.svg +0 -1
  100. package/src/icons/svg/list.svg +0 -1
  101. package/src/icons/svg/lock.svg +0 -1
  102. package/src/icons/svg/message.svg +0 -1
  103. package/src/icons/svg/money.svg +0 -1
  104. package/src/icons/svg/nested.svg +0 -1
  105. package/src/icons/svg/news-list.svg +0 -1
  106. package/src/icons/svg/node-tree.svg +0 -1
  107. package/src/icons/svg/number-field.svg +0 -1
  108. package/src/icons/svg/password.svg +0 -1
  109. package/src/icons/svg/pdf.svg +0 -1
  110. package/src/icons/svg/people.svg +0 -1
  111. package/src/icons/svg/peoples.svg +0 -1
  112. package/src/icons/svg/picture-upload-field.svg +0 -1
  113. package/src/icons/svg/qq.svg +0 -1
  114. package/src/icons/svg/query.svg +0 -1
  115. package/src/icons/svg/radio-field.svg +0 -1
  116. package/src/icons/svg/rate-field.svg +0 -1
  117. package/src/icons/svg/redo.svg +0 -1
  118. package/src/icons/svg/rich-editor-field.svg +0 -1
  119. package/src/icons/svg/search.svg +0 -1
  120. package/src/icons/svg/searchbox.svg +0 -1
  121. package/src/icons/svg/section.svg +0 -1
  122. package/src/icons/svg/select-field.svg +0 -1
  123. package/src/icons/svg/shopping.svg +0 -1
  124. package/src/icons/svg/size.svg +0 -1
  125. package/src/icons/svg/skill.svg +0 -1
  126. package/src/icons/svg/slider-field.svg +0 -1
  127. package/src/icons/svg/slot-component.svg +0 -1
  128. package/src/icons/svg/slot-field.svg +0 -1
  129. package/src/icons/svg/star.svg +0 -1
  130. package/src/icons/svg/static-text.svg +0 -1
  131. package/src/icons/svg/status.svg +0 -1
  132. package/src/icons/svg/sub-form.svg +0 -1
  133. package/src/icons/svg/switch-field.svg +0 -1
  134. package/src/icons/svg/tab.svg +0 -1
  135. package/src/icons/svg/table.svg +0 -1
  136. package/src/icons/svg/text-field.svg +0 -1
  137. package/src/icons/svg/text.svg +0 -1
  138. package/src/icons/svg/textarea-field.svg +0 -1
  139. package/src/icons/svg/theme.svg +0 -1
  140. package/src/icons/svg/time-field.svg +0 -1
  141. package/src/icons/svg/time-range-field.svg +0 -1
  142. package/src/icons/svg/tips-text.svg +0 -1
  143. package/src/icons/svg/title-head.svg +0 -1
  144. package/src/icons/svg/tree-pane.svg +0 -1
  145. package/src/icons/svg/tree-table.svg +0 -1
  146. package/src/icons/svg/tree.svg +0 -1
  147. package/src/icons/svg/undo.svg +0 -1
  148. package/src/icons/svg/uploadbox.svg +0 -1
  149. package/src/icons/svg/user.svg +0 -1
  150. package/src/icons/svg/vf-box.svg +0 -1
  151. package/src/icons/svg/vf-dialog.svg +0 -1
  152. package/src/icons/svg/vf-drawer.svg +0 -1
  153. package/src/icons/svg/vue-sfc.svg +0 -1
  154. package/src/icons/svg/wechat.svg +0 -1
  155. package/src/icons/svg/zip.svg +0 -1
  156. package/src/index.next.js +0 -5
  157. package/src/styles/btn.scss +0 -104
  158. package/src/styles/element-ui.scss +0 -155
  159. package/src/styles/element-variables.scss +0 -31
  160. package/src/styles/global.scss +0 -115
  161. package/src/styles/index.scss +0 -200
  162. package/src/styles/menu-icons.scss +0 -75
  163. package/src/styles/mixin.scss +0 -72
  164. package/src/styles/nprogress.scss +0 -14
  165. package/src/styles/sidebar.scss +0 -281
  166. package/src/styles/split-handle.scss +0 -52
  167. package/src/styles/theme-variables.scss +0 -7
  168. package/src/styles/transition.scss +0 -48
  169. package/src/styles/utilities.scss +0 -137
  170. package/src/styles/variables.scss +0 -44
@@ -0,0 +1,242 @@
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>