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

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 (279) 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/Tinymce/index.vue +3 -0
  6. package/src/components/Tinymce/mce-chrome.scss +150 -0
  7. package/src/components/VabUpload/index.vue +1 -1
  8. package/src/components/VabUpload/style.scss +282 -0
  9. package/src/components/baseArea/index.vue +2 -2
  10. package/src/components/code-editor/ace-chrome.scss +17 -0
  11. package/src/components/code-editor/index.vue +3 -0
  12. package/src/components/excelImport/index.vue +1 -1
  13. package/src/components/fileLibrary/style.scss +579 -0
  14. package/src/components/hiprint/style.scss +188 -0
  15. package/src/components/jsonImport/index.vue +1 -1
  16. package/src/components/langImport/index.vue +1 -1
  17. package/src/components/mobile/buttonGroup/index.vue +1 -1
  18. package/src/components/obsUpload/index.vue +1 -1
  19. package/src/components/onlineTalk/index.vue +2 -2
  20. package/src/components/table/style.scss +1399 -0
  21. package/src/components/wf/style.scss +265 -0
  22. package/src/components/xform/docs/2026-08 xform H5 P0 /345/256/236/347/216/260/350/247/204/346/240/274.md" +1 -1
  23. package/src/components/xform/docs/2026-08 xform /347/247/273/345/212/250/347/253/257/345/270/203/345/261/200/345/257/271/351/275/220 bill_setting /346/226/271/346/241/210.md" +1 -1
  24. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +1 -1
  25. package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
  26. package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
  27. package/src/components/xform/form-designer/form-widget/field-widget/area-select-widget.vue +1 -1
  28. package/src/components/xform/form-designer/form-widget/field-widget/autocomplete-widget.vue +1 -1
  29. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +1 -1
  30. package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
  31. package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +1 -1
  32. package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +1 -1
  33. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +1 -1
  34. package/src/components/xform/form-designer/form-widget/field-widget/color-widget.vue +1 -1
  35. package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +1 -1
  36. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -1
  37. package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +1 -1
  38. package/src/components/xform/form-designer/form-widget/field-widget/descriptions-widget.vue +1 -1
  39. package/src/components/xform/form-designer/form-widget/field-widget/divider-widget.vue +1 -1
  40. package/src/components/xform/form-designer/form-widget/field-widget/download-button-widget.vue +1 -1
  41. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +1 -1
  42. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-widget.vue +1 -1
  43. package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
  44. package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
  45. package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
  46. package/src/components/xform/form-designer/form-widget/field-widget/file-upload-widget.vue +1 -1
  47. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +1 -1
  48. package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +1 -1
  49. package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +1 -1
  50. package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +1 -1
  51. package/src/components/xform/form-designer/form-widget/field-widget/input-batch-widget.vue +1 -1
  52. package/src/components/xform/form-designer/form-widget/field-widget/input-widget.vue +1 -1
  53. package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +1 -1
  54. package/src/components/xform/form-designer/form-widget/field-widget/news-list-widget.vue +1 -1
  55. package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +1 -1
  56. package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +1 -1
  57. package/src/components/xform/form-designer/form-widget/field-widget/picture-upload-widget.vue +1 -1
  58. package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +1 -1
  59. package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +1 -1
  60. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +1 -1
  61. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +1 -1
  62. package/src/components/xform/form-designer/form-widget/field-widget/rate-widget.vue +1 -1
  63. package/src/components/xform/form-designer/form-widget/field-widget/rich-editor-widget.vue +1 -1
  64. package/src/components/xform/form-designer/form-widget/field-widget/save_submit_wf_button-widget.vue +1 -1
  65. package/src/components/xform/form-designer/form-widget/field-widget/script-input-widget.vue +1 -1
  66. package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +1 -1
  67. package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +1 -1
  68. package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +1 -1
  69. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +1 -1
  70. package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +1 -1
  71. package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +1 -1
  72. package/src/components/xform/form-designer/form-widget/field-widget/slider-widget.vue +1 -1
  73. package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +1 -1
  74. package/src/components/xform/form-designer/form-widget/field-widget/static-text-widget.vue +1 -1
  75. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +1 -1
  76. package/src/components/xform/form-designer/form-widget/field-widget/switch-widget.vue +1 -1
  77. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +1 -1
  78. package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +1 -1
  79. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +1 -1
  80. package/src/components/xform/form-designer/form-widget/field-widget/textarea-widget.vue +1 -1
  81. package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +1 -1
  82. package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +1 -1
  83. package/src/components/xform/form-designer/form-widget/field-widget/title-head-widget.vue +1 -1
  84. package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +1 -1
  85. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +1 -1
  86. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +1 -1
  87. package/src/components/xform/form-designer/form-widget/field-widget/vue-page-widget.vue +1 -1
  88. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +8 -8
  89. package/src/components/xform/mixins/scriptHttp.js +28 -7
  90. package/src/components/xform/styles/census.scss +288 -0
  91. package/src/components/xform/styles/containers.scss +208 -0
  92. package/src/components/xform/styles/designer.scss +904 -0
  93. package/src/components/xform/styles/detail-temp.scss +71 -0
  94. package/src/components/xform/styles/h5-designer.scss +191 -0
  95. package/src/components/xform/styles/h5.scss +5 -6
  96. package/src/components/xform/styles/skins.scss +398 -0
  97. package/src/components/xform/styles/table-layout.scss +91 -0
  98. package/src/components/xform/styles/titles.scss +255 -0
  99. package/src/core-resources/css/h5.scss +548 -0
  100. package/src/core-resources/css/iconfont.css +1447 -0
  101. package/src/core-resources/font/iconfont.ttf +0 -0
  102. package/src/core-resources/font/iconfont.woff +0 -0
  103. package/src/core-resources/font/iconfont.woff2 +0 -0
  104. package/src/core-resources/images/default-header.png +0 -0
  105. package/src/core-resources/images/ico-default_wenjian.svg +1 -0
  106. package/src/core-resources/images/ico-excel.svg +1 -0
  107. package/src/core-resources/images/ico-ftl.svg +7 -0
  108. package/src/core-resources/images/ico-html.svg +1 -0
  109. package/src/core-resources/images/ico-java.svg +1 -0
  110. package/src/core-resources/images/ico-music.svg +1 -0
  111. package/src/core-resources/images/ico-pdf.svg +1 -0
  112. package/src/core-resources/images/ico-photo.svg +1 -0
  113. package/src/core-resources/images/ico-ppt.svg +1 -0
  114. package/src/core-resources/images/ico-psd.svg +1 -0
  115. package/src/core-resources/images/ico-service.png +0 -0
  116. package/src/core-resources/images/ico-txt.svg +1 -0
  117. package/src/core-resources/images/ico-video.svg +1 -0
  118. package/src/core-resources/images/ico-vue.svg +8 -0
  119. package/src/core-resources/images/ico-wenjianjia.svg +1 -0
  120. package/src/core-resources/images/ico-wrod.svg +1 -0
  121. package/src/core-resources/images/ico-xml.svg +1 -0
  122. package/src/core-resources/images/ico-yasuobao.svg +1 -0
  123. package/src/core-resources/images/icon-error.png +0 -0
  124. package/src/core-resources/images/icon-tips.png +0 -0
  125. package/src/core-resources/images/nodata.png +0 -0
  126. package/src/core-resources/images/nodata2.png +0 -0
  127. package/src/icons/index.js +9 -0
  128. package/src/icons/svg/404.svg +1 -0
  129. package/src/icons/svg/alert.svg +1 -0
  130. package/src/icons/svg/bug.svg +1 -0
  131. package/src/icons/svg/button.svg +1 -0
  132. package/src/icons/svg/card.svg +1 -0
  133. package/src/icons/svg/cascader-field.svg +1 -0
  134. package/src/icons/svg/census.svg +1 -0
  135. package/src/icons/svg/chart.svg +1 -0
  136. package/src/icons/svg/checkbox-field.svg +1 -0
  137. package/src/icons/svg/clipboard.svg +1 -0
  138. package/src/icons/svg/color-field.svg +1 -0
  139. package/src/icons/svg/component.svg +1 -0
  140. package/src/icons/svg/custom-component.svg +1 -0
  141. package/src/icons/svg/dashboard.svg +1 -0
  142. package/src/icons/svg/data-table.svg +1 -0
  143. package/src/icons/svg/date-field.svg +1 -0
  144. package/src/icons/svg/date-range-field.svg +1 -0
  145. package/src/icons/svg/descriptions.svg +1 -0
  146. package/src/icons/svg/divider.svg +1 -0
  147. package/src/icons/svg/document.svg +1 -0
  148. package/src/icons/svg/documentation.svg +1 -0
  149. package/src/icons/svg/drag.svg +1 -0
  150. package/src/icons/svg/echart-category.svg +1 -0
  151. package/src/icons/svg/echart-pie.svg +1 -0
  152. package/src/icons/svg/echart.svg +1 -0
  153. package/src/icons/svg/edit.svg +1 -0
  154. package/src/icons/svg/education.svg +1 -0
  155. package/src/icons/svg/email.svg +1 -0
  156. package/src/icons/svg/example.svg +1 -0
  157. package/src/icons/svg/excel.svg +1 -0
  158. package/src/icons/svg/exit-fullscreen.svg +1 -0
  159. package/src/icons/svg/eye-open.svg +1 -0
  160. package/src/icons/svg/eye.svg +1 -0
  161. package/src/icons/svg/file-upload-field.svg +1 -0
  162. package/src/icons/svg/form.svg +1 -0
  163. package/src/icons/svg/fullscreen.svg +1 -0
  164. package/src/icons/svg/github.svg +1 -0
  165. package/src/icons/svg/grid.svg +1 -0
  166. package/src/icons/svg/guide.svg +1 -0
  167. package/src/icons/svg/html-text.svg +1 -0
  168. package/src/icons/svg/ico-more.svg +1 -0
  169. package/src/icons/svg/ico-wenjianjia.svg +1 -0
  170. package/src/icons/svg/icon.svg +1 -0
  171. package/src/icons/svg/input-batch.svg +1 -0
  172. package/src/icons/svg/international.svg +1 -0
  173. package/src/icons/svg/language.svg +1 -0
  174. package/src/icons/svg/link.svg +1 -0
  175. package/src/icons/svg/list-export.svg +1 -0
  176. package/src/icons/svg/list.svg +1 -0
  177. package/src/icons/svg/lock.svg +1 -0
  178. package/src/icons/svg/message.svg +1 -0
  179. package/src/icons/svg/money.svg +1 -0
  180. package/src/icons/svg/nested.svg +1 -0
  181. package/src/icons/svg/news-list.svg +1 -0
  182. package/src/icons/svg/node-tree.svg +1 -0
  183. package/src/icons/svg/number-field.svg +1 -0
  184. package/src/icons/svg/password.svg +1 -0
  185. package/src/icons/svg/pdf.svg +1 -0
  186. package/src/icons/svg/people.svg +1 -0
  187. package/src/icons/svg/peoples.svg +1 -0
  188. package/src/icons/svg/picture-upload-field.svg +1 -0
  189. package/src/icons/svg/qq.svg +1 -0
  190. package/src/icons/svg/query.svg +1 -0
  191. package/src/icons/svg/radio-field.svg +1 -0
  192. package/src/icons/svg/rate-field.svg +1 -0
  193. package/src/icons/svg/redo.svg +1 -0
  194. package/src/icons/svg/rich-editor-field.svg +1 -0
  195. package/src/icons/svg/search.svg +1 -0
  196. package/src/icons/svg/searchbox.svg +1 -0
  197. package/src/icons/svg/section.svg +1 -0
  198. package/src/icons/svg/select-field.svg +1 -0
  199. package/src/icons/svg/shopping.svg +1 -0
  200. package/src/icons/svg/size.svg +1 -0
  201. package/src/icons/svg/skill.svg +1 -0
  202. package/src/icons/svg/slider-field.svg +1 -0
  203. package/src/icons/svg/slot-component.svg +1 -0
  204. package/src/icons/svg/slot-field.svg +1 -0
  205. package/src/icons/svg/star.svg +1 -0
  206. package/src/icons/svg/static-text.svg +1 -0
  207. package/src/icons/svg/status.svg +1 -0
  208. package/src/icons/svg/sub-form.svg +1 -0
  209. package/src/icons/svg/switch-field.svg +1 -0
  210. package/src/icons/svg/tab.svg +1 -0
  211. package/src/icons/svg/table.svg +1 -0
  212. package/src/icons/svg/text-field.svg +1 -0
  213. package/src/icons/svg/text.svg +1 -0
  214. package/src/icons/svg/textarea-field.svg +1 -0
  215. package/src/icons/svg/theme.svg +1 -0
  216. package/src/icons/svg/time-field.svg +1 -0
  217. package/src/icons/svg/time-range-field.svg +1 -0
  218. package/src/icons/svg/tips-text.svg +1 -0
  219. package/src/icons/svg/title-head.svg +1 -0
  220. package/src/icons/svg/tree-pane.svg +1 -0
  221. package/src/icons/svg/tree-table.svg +1 -0
  222. package/src/icons/svg/tree.svg +1 -0
  223. package/src/icons/svg/undo.svg +1 -0
  224. package/src/icons/svg/uploadbox.svg +1 -0
  225. package/src/icons/svg/user.svg +1 -0
  226. package/src/icons/svg/vf-box.svg +1 -0
  227. package/src/icons/svg/vf-dialog.svg +1 -0
  228. package/src/icons/svg/vf-drawer.svg +1 -0
  229. package/src/icons/svg/vue-sfc.svg +1 -0
  230. package/src/icons/svg/wechat.svg +1 -0
  231. package/src/icons/svg/zip.svg +1 -0
  232. package/src/index.js +2 -514
  233. package/src/index.next.js +5 -0
  234. package/src/layout/components/Sidebar/default.vue +3 -3
  235. package/src/layout/components/TagsView/index.vue +1 -1
  236. package/src/layout/defaultLayout.vue +2 -2
  237. package/src/store/modules/settings.js +1 -1
  238. package/src/styles/btn.scss +104 -0
  239. package/src/styles/element-ui.scss +155 -0
  240. package/src/styles/element-variables.scss +31 -0
  241. package/src/styles/global.scss +115 -0
  242. package/src/styles/index.scss +200 -0
  243. package/src/styles/menu-icons.scss +75 -0
  244. package/src/styles/mixin.scss +72 -0
  245. package/src/styles/nprogress.scss +14 -0
  246. package/src/styles/sidebar.scss +281 -0
  247. package/src/styles/split-handle.scss +52 -0
  248. package/src/styles/theme-variables.scss +7 -0
  249. package/src/styles/transition.scss +48 -0
  250. package/src/styles/utilities.scss +137 -0
  251. package/src/styles/variables.scss +44 -0
  252. package/src/utils/vab.js +33 -11
  253. package/src/views/bd/setting/formVersion/compareContMixin.scss +1 -1
  254. package/src/views/mobile/user/area/dialog.vue +1 -1
  255. package/src/views/mobile/user/user/dialog.vue +1 -1
  256. package/src/views/user/commMenu/index.vue +3 -1
  257. package/src/views/user/commMenu/style.scss +123 -0
  258. package/src/views/user/home/default.vue +5 -5
  259. package/src/views/user/home/default2.vue +2 -2
  260. package/src/views/user/role/edit.vue +4 -0
  261. package/src/views/user/role/role-box.scss +83 -0
  262. package/src/views/user/role/voc_edit.vue +4 -0
  263. package/src/views/user/wf/wf_obj_config/importItemDialog.vue +1 -1
  264. package/src/views/demo/bizTab/bill/billConfig.js +0 -41
  265. package/src/views/demo/bizTab/bill/detail.vue +0 -436
  266. package/src/views/demo/bizTab/bill/list.vue +0 -288
  267. package/src/views/demo/bizTab/bill/productDialog.vue +0 -176
  268. package/src/views/demo/bizTab/simple/billApi.js +0 -123
  269. package/src/views/demo/bizTab/simple/detail.vue +0 -407
  270. package/src/views/demo/bizTab/simple/list.vue +0 -217
  271. package/src/views/demo/bizTab/standalone/index.vue +0 -121
  272. package/src/views/demo/bizTab/wf/billConfig.js +0 -44
  273. package/src/views/demo/bizTab/wf/detail.vue +0 -661
  274. package/src/views/demo/bizTab/wf/list.vue +0 -242
  275. package/src/views/user/home/net/distributor.vue +0 -1015
  276. package/src/views/user/home/net/index.vue +0 -61
  277. package/src/views/user/home/wjl/content.vue +0 -1570
  278. package/src/views/user/outLink/cc_form_view.vue +0 -188
  279. /package/src/{resources → core-resources}/js/base/common.js +0 -0
@@ -1,121 +0,0 @@
1
- <template>
2
- <div id="containt">
3
- <div class="clearfix screen-btns">
4
- <div class="fl">
5
- <span class="standalone-tip">{{
6
- $t1("独立模式(不在页签里):待办直接打开详情走的就是这条路")
7
- }}</span>
8
- </div>
9
- <div class="fr">
10
- <el-input
11
- v-model="inputId"
12
- size="small"
13
- class="standalone-input"
14
- :placeholder="$t1('输入单据 id')"
15
- clearable
16
- @keyup.enter.native="openBill"
17
- />
18
- <vxe-button status="warning" class="button-sty" @click="openBill">{{
19
- $t1("打开")
20
- }}</vxe-button>
21
- <vxe-button
22
- type="text"
23
- status="primary"
24
- plain
25
- class="button-sty"
26
- @click="openAdd"
27
- >{{ $t1("新增") }}</vxe-button
28
- >
29
- </div>
30
- </div>
31
-
32
- <!--
33
- 与 std 手写页面的协议完全一致:
34
- :_dataId.sync 单号入口(mixin 的 created 在没有 tab 时取它)
35
- visible-key $reloadHandle 靠它找到本页面上控制显隐的那个字段
36
- :parent-target 详情里 $baseReload/$reloadHandle 顺着它回到本页面
37
- @reload 走全局 $reloadHandle:置 false → 200ms → 置 true,即重挂载重取数
38
- 详情组件一个字都不用改:mixin 检测不到 bizTabHost 就自动退回这条链路。
39
- -->
40
- <bill-detail
41
- v-if="showEdit"
42
- :_dataId.sync="dataId"
43
- visible-key="showEdit"
44
- :parent-target="_self"
45
- @reload="$reloadHandle"
46
- />
47
- <div v-else class="standalone-empty">
48
- {{ $t1("右上角输入单据 id 打开,或点「新增」") }}
49
- </div>
50
- </div>
51
- </template>
52
-
53
- <script>
54
- /**
55
- * demo D:独立模式(不在 bizTab 页签里)用同一个详情组件。
56
- *
57
- * 用来验证 bizBillDetailMixin 的退路:没有 bizTabHost 时
58
- * - dataId 取 props._dataId
59
- * - reloadDetail() / $baseReload() 退回 $emit("reload") → 宿主的 $reloadHandle 重挂载
60
- * - 翻单按钮自动不出现(没有页签、没有快照)
61
- * - 提交流程后的行为退回「刷新当前详情」,behavior 配置不参与
62
- * 流程待办里点开单据、或者老页面内嵌详情,走的都是这条路。
63
- *
64
- * 详情组件直接复用 demo C 的(自定义控制器 + 流程),零改动。
65
- * 路由:/demo/bizTab/standalone?id=123
66
- */
67
- import billDetail from "../wf/detail.vue";
68
-
69
- export default {
70
- name: "demo_bizTab_standalone",
71
- components: { billDetail },
72
- data() {
73
- return {
74
- dataId: "",
75
- inputId: "",
76
- showEdit: false,
77
- };
78
- },
79
- created() {
80
- // 待办跳转一般是带着单号进来的,这里用 query 模拟
81
- let id = this.$route.query ? this.$route.query.id : null;
82
- if (id) {
83
- this.inputId = id;
84
- this.dataId = id;
85
- this.$openEditView("showEdit");
86
- }
87
- },
88
- methods: {
89
- openBill() {
90
- let id = (this.inputId || "").trim();
91
- if (!id) {
92
- this.$message.warning(this.$t1("请先输入单据 id"));
93
- return;
94
- }
95
- this.dataId = id;
96
- // 全局方法:置 false → 200ms → 置 true,强制详情重挂载(换单号时必须这样)
97
- this.$openEditView("showEdit");
98
- },
99
- openAdd() {
100
- this.dataId = "";
101
- this.$openEditView("showEdit");
102
- },
103
- },
104
- };
105
- </script>
106
-
107
- <style scoped>
108
- .standalone-tip {
109
- line-height: 32px;
110
- color: #909399;
111
- }
112
- .standalone-input {
113
- width: 180px;
114
- margin-right: 8px;
115
- }
116
- .standalone-empty {
117
- padding: 48px 0;
118
- text-align: center;
119
- color: #909399;
120
- }
121
- </style>
@@ -1,44 +0,0 @@
1
- import prefixConfig from "@/prefixConfig.js";
2
-
3
- /**
4
- * demo C 接的是真实单据:PMD 的「阶梯价」,走**自定义控制器**(不是通用 bd_api),
5
- * 也就是 std(sf-cloud-web-vue-tw@std)那套手写页面的标准写法:
6
- * 取数 /xxx/get + 保存 /xxx/save|update + 子表单独接口 + 操作日志 /xxx/getUserLog
7
- * 流程靠 _getBillInfo 的 wfConfig 挂上去
8
- *
9
- * 写法逐条对齐本仓库已有的真实页面 `views/pmd/price/ladderPrice/{list,edit}.vue`,
10
- * 那个页面能跑这个 demo 就能跑(同一后端、同一套接口、同一个流程编码)。
11
- *
12
- * 换成你自己的单据:改下面的 URL 与 wfCode,detail.vue 里换字段即可。
13
- *
14
- * ⚠️ demo 相对真实页面做了裁剪:只保留「机构明细 + 产品明细」两张子表,
15
- * 客户明细、附件、复制、导入产品都没带。后台若校验客户明细必填,
16
- * 照 ladderPrice/edit.vue 把 customerItemDTOs 补上即可。
17
- */
18
- const PMD = prefixConfig.PMD_PREFIX;
19
-
20
- export const BILL = {
21
- prefix: PMD,
22
- wfCode: "test_ladderPrice", // 流程编码
23
- titleField: "sn", // 页签标题字段(单号)
24
- urls: {
25
- listPage: PMD + "/ladderPrice/listPage",
26
- get: PMD + "/ladderPrice/get",
27
- save: PMD + "/ladderPrice/save",
28
- update: PMD + "/ladderPrice/update",
29
- productItems: PMD + "/ladderPrice/findLadderPriceProductItems",
30
- saleOrgItems: PMD + "/ladderPrice/findLadderPriceSaleOrgItems",
31
- attachments: PMD + "/ladderPrice/getAttachments",
32
- updateStatus: PMD + "/ladderPrice/updateStatus",
33
- userLog: PMD + "/ladderPrice/getUserLog",
34
- },
35
- };
36
-
37
- export const STATUS_MAP = {
38
- 0: { label: "未审核", cls: "list-tag warning" },
39
- 1: { label: "审核中", cls: "list-tag" },
40
- 2: { label: "已审核", cls: "list-tag success" },
41
- 3: { label: "已作废", cls: "list-tag disable" },
42
- };
43
-
44
- export default BILL;