cloud-web-corejs 1.0.258 → 1.0.259

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 (248) hide show
  1. package/package.json +32 -25
  2. package/src/components/VabUpload/fileLibraryDialog.vue +296 -0
  3. package/src/components/VabUpload/index.js +22 -2
  4. package/src/components/VabUpload/index.vue +242 -231
  5. package/src/components/VabUpload/mixins/fileLibraryDialog.js +1112 -0
  6. package/src/components/VabUpload/mixins.js +1971 -1829
  7. package/src/components/VabUpload/privateProfileDialog.vue +2 -2
  8. package/src/components/baseArea/index.vue +1628 -0
  9. package/src/components/baseInputExport/mixins.js +48 -31
  10. package/src/components/baseInputNumber/index.vue +9 -9
  11. package/src/components/baseTabs/index.vue +16 -8
  12. package/src/components/code-editor/async.js +29 -0
  13. package/src/components/code-editor/index.vue +93 -4
  14. package/src/components/errorMsg/index.js +10 -9
  15. package/src/components/errorMsg/mixins.js +25 -23
  16. package/src/components/excelExport/exportFieldDialog.vue +40 -18
  17. package/src/components/excelExport/index.js +62 -3
  18. package/src/components/excelExport/index.vue +2 -1
  19. package/src/components/excelExport/mixins.js +496 -340
  20. package/src/components/excelImport/index.js +69 -7
  21. package/src/components/excelImport/mixins.js +841 -9
  22. package/src/components/fileLibrary/categoryMoveDialog.vue +109 -109
  23. package/src/components/fileLibrary/fileHistoryDialog.vue +1 -1
  24. package/src/components/fileLibrary/fileObjAuthDialog.vue +297 -298
  25. package/src/components/fileLibrary/fileObjAuthEdit.vue +1 -1
  26. package/src/components/fileLibrary/filterDialog.vue +1 -1
  27. package/src/components/fileLibrary/index.vue +1109 -1110
  28. package/src/components/fileLibrary/mixins/indexMixins.js +10 -0
  29. package/src/components/fileLibrary/propertiesDialog.vue +190 -190
  30. package/src/components/fileLibrary/recycleBinDialog.vue +237 -236
  31. package/src/components/formOplog/mixins.js +85 -80
  32. package/src/components/hiprint/view/design/index.vue +7 -2
  33. package/src/components/jsonImport/exportUtil.js +106 -0
  34. package/src/components/jsonImport/index.js +75 -50
  35. package/src/components/jsonImport/mixins.js +350 -348
  36. package/src/components/langImport/mixins.js +502 -500
  37. package/src/components/micro-view-host/contract.js +66 -0
  38. package/src/components/micro-view-host/index.vue +148 -0
  39. package/src/components/mobile/file/index.vue +10 -0
  40. package/src/components/mobile/wf/mixins/wfModifyDialogMixin.js +51 -47
  41. package/src/components/obsUpload/index.vue +234 -231
  42. package/src/components/obsUpload/mixins.js +1542 -1476
  43. package/src/components/onlineTalk/talkUserDialog.vue +1 -1
  44. package/src/components/table/CellSlot.vue +12 -10
  45. package/src/components/table/config.js +74 -1
  46. package/src/components/table/index.js +1208 -1
  47. package/src/components/table/tableFormMixin.js +285 -1
  48. package/src/components/table/util/index.js +38 -40
  49. package/src/components/table/vxeFilter/index.js +153 -2
  50. package/src/components/table/vxeFilter/mixin.js +305 -3
  51. package/src/components/tempStorage/tempStorageDialog.vue +1 -1
  52. package/src/components/vb-tabs/x-tabs.vue +10 -5
  53. package/src/components/wf/addTaskUserdialog.vue +1 -1
  54. package/src/components/wf/mixins/setCandidateDialog.js +217 -217
  55. package/src/components/wf/mixins/setCandidateDialog2.js +252 -252
  56. package/src/components/wf/wf.js +2224 -2203
  57. package/src/components/wf/wfUtil.js +2 -1
  58. package/src/components/xform/docs/2026-08 /345/210/227/350/241/250/345/257/274/345/207/272/350/204/261/346/225/217/345/210/227/345/211/224/351/231/244/350/220/275/345/234/260/346/226/207/346/241/243.md" +173 -0
  59. package/src/components/xform/form-designer/designer.js +1 -0
  60. package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +110 -1
  61. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +282 -1
  62. package/src/components/xform/form-designer/form-widget/field-widget/area-select-widget.vue +272 -0
  63. package/src/components/xform/form-designer/form-widget/field-widget/autocomplete-widget.vue +119 -0
  64. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +14 -0
  65. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +18 -73
  66. package/src/components/xform/form-designer/form-widget/field-widget/mixins/autocomplete-mixin.js +451 -0
  67. package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +157 -0
  68. package/src/components/xform/form-designer/form-widget/field-widget/mixins/utc-transform-mixin.js +75 -0
  69. package/src/components/xform/form-designer/form-widget/field-widget/save_submit_wf_button-widget.vue +112 -0
  70. package/src/components/xform/form-designer/form-widget/field-widget/script-input-widget.vue +149 -0
  71. package/src/components/xform/form-designer/form-widget/indexMixin.js +179 -1
  72. package/src/components/xform/form-designer/indexMixin.js +823 -1
  73. package/src/components/xform/form-designer/refMixinDesign.js +27 -1
  74. package/src/components/xform/form-designer/setting-panel/action-button-config-dialog.vue +241 -0
  75. package/src/components/xform/form-designer/setting-panel/form-dynamicField-setting.vue +601 -0
  76. package/src/components/xform/form-designer/setting-panel/form-setting.vue +6 -0
  77. package/src/components/xform/form-designer/setting-panel/index.vue +314 -309
  78. package/src/components/xform/form-designer/setting-panel/indexMixin.js +324 -1
  79. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +8 -7
  80. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +8 -7
  81. package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +344 -0
  82. package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +2 -2
  83. package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaDataType-editor.vue +25 -0
  84. package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaMinLevel-editor.vue +50 -0
  85. package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaName-editor.vue +20 -0
  86. package/src/components/xform/form-designer/setting-panel/property-editor/field-autocomplete/autocomplete-vabSearchName-editor.vue +199 -0
  87. package/src/components/xform/form-designer/setting-panel/property-editor/field-baseAttachment/baseAttachment-fileTypes-editor.vue +23 -0
  88. package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/showAllLevels-editor.vue +21 -0
  89. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-dateLimit-editor.vue +157 -0
  90. package/src/components/xform/form-designer/setting-panel/property-editor/field-script-input/script-input-editor.vue +55 -0
  91. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/vabUpload-fileTypes-editor.vue +23 -0
  92. package/src/components/xform/form-designer/setting-panel/property-editor/fileTypesEditorMixin.js +116 -0
  93. package/src/components/xform/form-designer/setting-panel/property-editor/fileTypesSelect.vue +176 -0
  94. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +3 -3
  95. package/src/components/xform/form-designer/setting-panel/property-editor/utcTransformEnabled-editor.vue +19 -0
  96. package/src/components/xform/form-designer/setting-panel/widgetPropertyDialogMixin.js +186 -0
  97. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +566 -1
  98. package/src/components/xform/form-designer/widget-panel/indexMixin.js +290 -1
  99. package/src/components/xform/form-render/compareDelList.vue +83 -0
  100. package/src/components/xform/form-render/compareView.vue +76 -0
  101. package/src/components/xform/form-render/container-item/containerItemMixin.js +378 -1
  102. package/src/components/xform/form-render/container-item/data-table-mixin.js +35 -0
  103. package/src/components/xform/form-render/container-item/detail-item.vue +41 -0
  104. package/src/components/xform/form-render/container-item/dynamicFieldEngine.js +285 -0
  105. package/src/components/xform/form-render/container-item/dynamicFieldMixin.js +416 -0
  106. package/src/components/xform/form-render/container-item/list-h5-item.vue +12 -0
  107. package/src/components/xform/form-render/dynamicDialogRender.js +195 -1
  108. package/src/components/xform/form-render/dynamicDrawerRender.js +229 -0
  109. package/src/components/xform/form-render/formDynamicFieldMixin.js +131 -0
  110. package/src/components/xform/form-render/refMixin.js +29 -1
  111. package/src/components/xform/mixins/scriptHttp.js +172 -1
  112. package/src/components/xform/utils/dynamicSchemaUtil.js +361 -0
  113. package/src/components/xform/utils/tableCellValidateUtil.js +148 -0
  114. package/src/components/xform/utils/textMaskUtil.js +179 -0
  115. package/src/components/xform/utils/treeTableUtil.js +1265 -0
  116. package/src/components/xform/utils/util.js +1 -0
  117. package/src/components/xform/utils/validators.js +133 -1
  118. package/src/directive/LimitNumber/index.js +143 -124
  119. package/src/microRouter/index.js +447 -0
  120. package/src/mixins/tableTree/index.js +77 -14
  121. package/src/permission.js +132 -107
  122. package/src/public-path.js +38 -0
  123. package/src/router/index.js +3 -3
  124. package/src/store/modules/micro.js +57 -0
  125. package/src/store/modules/permission.js +535 -371
  126. package/src/store/modules/tagsView.js +38 -21
  127. package/src/store/modules/user.js +409 -370
  128. package/src/utils/aes.js +9 -3
  129. package/src/utils/auth.js +1 -1
  130. package/src/utils/componentDialog.js +162 -40
  131. package/src/utils/global.js +35 -34
  132. package/src/utils/index.js +579 -579
  133. package/src/utils/keepAlive.js +8 -4
  134. package/src/utils/lazyPlugin.js +66 -0
  135. package/src/utils/menuAdapter.js +277 -0
  136. package/src/utils/repeatOpen.js +48 -0
  137. package/src/utils/request.js +417 -395
  138. package/src/utils/resolveViewComponent.js +203 -0
  139. package/src/utils/vab.js +14 -3
  140. package/src/utils/validate.js +104 -106
  141. package/src/views/bd/setting/bd_attach_setting/dialog.vue +1 -1
  142. package/src/views/bd/setting/bd_attach_setting/list.vue +1 -1
  143. package/src/views/bd/setting/bd_company_env/dialog.vue +1 -1
  144. package/src/views/bd/setting/bd_company_env/list.vue +1 -1
  145. package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +488 -489
  146. package/src/views/bd/setting/form_import_log/list.vue +1 -1
  147. package/src/views/bd/setting/form_script/dialog.vue +1 -1
  148. package/src/views/bd/setting/form_script/form_list.vue +174 -166
  149. package/src/views/bd/setting/form_script/list.vue +1 -1
  150. package/src/views/bd/setting/form_script/list1.vue +1 -1
  151. package/src/views/bd/setting/form_script/mixins/form_list.js +330 -322
  152. package/src/views/bd/setting/form_template/dialog.vue +1 -1
  153. package/src/views/bd/setting/form_template/formDesignerDialog.vue +172 -171
  154. package/src/views/bd/setting/form_template/ftHistoryDialog.vue +1 -1
  155. package/src/views/bd/setting/form_template/itemList.vue +1 -1
  156. package/src/views/bd/setting/form_template/list.vue +3 -3
  157. package/src/views/bd/setting/form_template/mixins/edit.js +3 -3
  158. package/src/views/bd/setting/form_template/mixins/list.js +3 -3
  159. package/src/views/bd/setting/form_template/mixins/list2.js +3 -3
  160. package/src/views/bd/setting/form_template/mixins/wf_list.js +3 -3
  161. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +253 -254
  162. package/src/views/bd/setting/form_template/wf_list.vue +3 -3
  163. package/src/views/bd/setting/logic_param/edit.vue +20 -20
  164. package/src/views/bd/setting/logic_param/list.vue +1 -1
  165. package/src/views/bd/setting/menu_kind/dialog.vue +1 -1
  166. package/src/views/bd/setting/menu_kind/list.vue +1 -1
  167. package/src/views/bd/setting/push_data/list.vue +1 -1
  168. package/src/views/bd/setting/push_data_h/list.vue +1 -1
  169. package/src/views/bd/setting/request_async_setting/list.vue +1 -1
  170. package/src/views/bd/setting/request_setting/list.vue +1 -1
  171. package/src/views/bd/setting/table_model/dialog.vue +1 -1
  172. package/src/views/bd/setting/table_model/list.vue +1 -1
  173. package/src/views/bd/setting/table_model/zdDialog.vue +1 -1
  174. package/src/views/user/access_log/list.vue +1 -1
  175. package/src/views/user/access_log/list2.vue +1 -1
  176. package/src/views/user/api_request/list.vue +1 -1
  177. package/src/views/user/area/dialog.vue +1 -1
  178. package/src/views/user/area/list.vue +1 -1
  179. package/src/views/user/bill_setting/list.vue +1 -1
  180. package/src/views/user/bill_setting/userDialog.vue +1 -1
  181. package/src/views/user/code_rules/list.vue +1 -1
  182. package/src/views/user/commMenu/index.vue +2 -2
  183. package/src/views/user/common_attribute/list.vue +2 -2
  184. package/src/views/user/common_script/list.vue +1 -1
  185. package/src/views/user/company_info/dialog.vue +1 -1
  186. package/src/views/user/country/dialog.vue +1 -1
  187. package/src/views/user/country/list.vue +1 -1
  188. package/src/views/user/data_type_setting/dialog.vue +1 -1
  189. package/src/views/user/extend_datasource/dialog.vue +4 -1
  190. package/src/views/user/extend_datasource/edit.vue +2 -1
  191. package/src/views/user/extend_datasource/list.vue +4 -1
  192. package/src/views/user/fieldTranslation/list.vue +1 -1
  193. package/src/views/user/field_values_invisible/list.vue +1 -1
  194. package/src/views/user/file_type/list.vue +1 -1
  195. package/src/views/user/file_view_area/list.vue +1 -1
  196. package/src/views/user/file_view_ins/list.vue +22 -1
  197. package/src/views/user/form/view/list.vue +64 -1
  198. package/src/views/user/groups/dialog.vue +1 -1
  199. package/src/views/user/groups/list.vue +1 -1
  200. package/src/views/user/home/default.vue +2 -2
  201. package/src/views/user/home/default2.vue +1158 -1148
  202. package/src/views/user/home/index.vue +3 -10
  203. package/src/views/user/lang_tag/dialog.vue +1 -1
  204. package/src/views/user/lang_tag/list.vue +1 -1
  205. package/src/views/user/language_setting/list.vue +1 -1
  206. package/src/views/user/login/default.vue +0 -8
  207. package/src/views/user/login/indexMixin.js +547 -556
  208. package/src/views/user/menu/list.vue +25 -2
  209. package/src/views/user/menuFallback/index.vue +123 -0
  210. package/src/views/user/mobile_menu/list.vue +1 -1
  211. package/src/views/user/notify_message/dialog.vue +22 -1
  212. package/src/views/user/notify_message/list.vue +1 -1
  213. package/src/views/user/notify_template/list.vue +1 -1
  214. package/src/views/user/notify_template/list2.vue +1 -1
  215. package/src/views/user/oplog/list.vue +1 -1
  216. package/src/views/user/outLink/form_view.vue +5 -14
  217. package/src/views/user/outLink/index.vue +6 -1
  218. package/src/views/user/outLink/view.vue +5 -13
  219. package/src/views/user/position/dialog.vue +1 -1
  220. package/src/views/user/position/list.vue +1 -1
  221. package/src/views/user/project_tag/dialog.vue +1 -1
  222. package/src/views/user/project_tag/list.vue +1 -1
  223. package/src/views/user/push_setting/list.vue +1 -1
  224. package/src/views/user/request_setting/list.vue +1 -1
  225. package/src/views/user/role/dialog.vue +1 -1
  226. package/src/views/user/role/list.vue +1 -1
  227. package/src/views/user/sale_org/dialog.vue +1 -1
  228. package/src/views/user/sale_org/list.vue +1 -1
  229. package/src/views/user/system_notice/list.vue +1 -1
  230. package/src/views/user/system_parameter/list.vue +1 -1
  231. package/src/views/user/user/dialog.vue +1 -1
  232. package/src/views/user/user/edit.vue +306 -159
  233. package/src/views/user/user/form_dialog.vue +1 -1
  234. package/src/views/user/user/form_list.vue +1 -1
  235. package/src/views/user/user/list.vue +2 -2
  236. package/src/views/user/user_log_classify/list.vue +1 -1
  237. package/src/views/user/wf/iframe/index.vue +6 -1
  238. package/src/views/user/wf/iframe/index2.vue +6 -1
  239. package/src/views/user/wf/wfReport/index.vue +12 -6
  240. package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -2
  241. package/src/views/user/wf/wf_manage/list.vue +97 -24
  242. package/src/views/user/wf/wf_manage/list2.vue +875 -0
  243. package/src/views/user/wf/wf_manage/wfContentDialog.vue +23 -1
  244. package/src/views/user/wf/wf_obj_config/dialog.vue +1 -1
  245. package/src/views/user/wf/wf_obj_config/list.vue +1 -1
  246. package/src/views/user/wf/wf_obj_config/list_form.vue +1 -1
  247. package/src/views/user/wf/wf_transfer_setting/list.vue +1 -1
  248. package/src/views/user/workbench_menu/list.vue +1 -1
@@ -1,254 +1,253 @@
1
- <template>
2
- <el-dialog
3
- :title="'设置组织流程单据类型('+formTemplate.formName+')'"
4
- :append-to-body="true"
5
- :modal-append-to-body="true"
6
- :close-on-click-modal="false"
7
- :visible.sync="dialogVisible"
8
- :modal="false"
9
- custom-class="dialog-style list-dialog dialog-checkbox pd_0"
10
- width="1200px"
11
- @close="closeDialog"
12
- v-el-drag-dialog
13
- v-el-dialog-center
14
- >
15
- <div class="cont">
16
- <div id="containt">
17
- <el-form ref="editForm" :model="formData">
18
- <div class="grid-height" style="height: 500px">
19
- <vxe-grid
20
- class="is-pointer"
21
- ref="table-m1"
22
- :data="formData.wfObjConfigDTOs"
23
- v-bind="vxeOption"
24
- @resizable-change="$vxeTableUtil.onColumnWitchChange"
25
- @custom="$vxeTableUtil.customHandle"
26
- >
27
- <template #form>
28
- <div class="clearfix screen-btns">
29
- <div class="fl">
30
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus"
31
- @click="openCompanyDialog">
32
- 新增
33
- </vxe-button>
34
- <span class="button-sty tips">{{ $t1('选择表单所在的组织,填写组织对应的流程单据类型数据。') }}</span>
35
- </div>
36
- </div>
37
- </template>
38
- <template #objTypeName="{row,rowIndex}">
39
- <el-form-item :prop="'wfObjConfigDTOs.'+rowIndex+'.objTypeName'"
40
- :rules="[{ required: true, trigger: 'blur' }]">
41
- <el-input v-model="row.objTypeName" clearable></el-input>
42
- </el-form-item>
43
- </template>
44
- <template #operate="{row}">
45
- <a
46
- href="javascript:void(0);"
47
- class="a-link"
48
- @click="openEditDialog(row.id)"
49
- >
50
- <el-tooltip :enterable="false" effect="dark" :content="$t2('查看','common.view')" placement="top"
51
- popper-class="tooltip-skin">
52
- <i class="el-icon-edit"/>
53
- </el-tooltip>
54
- </a>
55
- </template>
56
- </vxe-grid>
57
- </div>
58
- </el-form>
59
- </div>
60
- </div>
61
- <span slot="footer" class="dialog-footer">
62
- <el-button type="primary" plain class="button-sty" @click="closeDialog">
63
- <i class="el-icon-close el-icon"></i>
64
- 取 消
65
- </el-button>
66
- <el-button type="primary" @click="saveData" class="button-sty">
67
- <i class="el-icon-check el-icon"></i>
68
- 确 定
69
- </el-button>
70
- </span>
71
- <companyInfoDialog v-if="showCompanyInfoDialog" :visiable.sync="showCompanyInfoDialog"
72
- @confirm="confirmCompanyDialog" :multi="true" :allCompany="true"/>
73
- </el-dialog>
74
- </template>
75
- <script>
76
- import companyInfoDialog from "@base/views/user/company_info/dialog.vue";
77
- import fileObjNotifyEdit from "@base/components/fileLibrary/fileObjNotifyEdit.vue";
78
-
79
- export default {
80
- components: {fileObjNotifyEdit, companyInfoDialog},
81
- props: ['formTemplate'],
82
- data() {
83
- return {
84
- dialogVisible: true,
85
- formData: {
86
- objTypeCode: null,
87
- wfObjConfigDTOs: []
88
- },
89
- operateIndex: 0,
90
- showCompanyInfoDialog: false,
91
- vxeOption: {}
92
- }
93
- },
94
- created() {
95
-
96
- },
97
- mounted() {
98
- this.formData.objTypeCode = this.formTemplate.objTypeCode;
99
- this.getListByObjTypeCode();
100
- this.initTableList()
101
- },
102
- methods: {
103
- getListByObjTypeCode(callback) {
104
- let formTemplate = this.formTemplate
105
- this.$http({
106
- url: `/${formTemplate.serviceName}/wf_obj_config/listByObjTypeCode`,
107
- method: `post`,
108
- data: {
109
- stringOne: formTemplate.objTypeCode
110
- },
111
- isLoading: true,
112
- success: res => {
113
- let rows = res.objx || [];
114
- this.formData.wfObjConfigDTOs = rows;
115
- callback && callback(rows)
116
- }
117
- });
118
- },
119
- saveData() {
120
- this.$refs.editForm.$baseValidate(valid => {
121
- if (valid) {
122
- this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
123
- var url = `/${this.formTemplate.serviceName}/wf_obj_config/saveUpdates`;
124
- this.$http({
125
- url: url,
126
- method: `post`,
127
- data: this.formData,
128
- isLoading: true,
129
- success: res => {
130
- this.$message({
131
- message: res.content,
132
- type: 'success',
133
- duration: 1000
134
- });
135
- this.getListByObjTypeCode(rows => {
136
- this.$emit('confirm', rows)
137
- this.closeDialog();
138
- })
139
- }
140
- });
141
- });
142
- }
143
- });
144
- },
145
- addItem() {
146
- let formTemplate = this.formTemplate;
147
- let row = {
148
- objTypeCode: formTemplate.objTypeCode,
149
- objTypeName: formTemplate.objTypeName,
150
- serviceId: formTemplate.serviceName,
151
- url: "form",
152
- companyCode: null,
153
- companyName: null
154
- }
155
- this.formData.wfObjConfigDTOs.push(row);
156
- },
157
- closeDialog() {
158
- this.dialogVisible = false;
159
- this.$emit("update:visiable", false);
160
- },
161
- openCompanyDialog() {
162
- this.showCompanyInfoDialog = true;
163
- },
164
- confirmCompanyDialog(rows) {
165
- if (rows.length) {
166
- let row = rows[0];
167
- let formTemplate = this.formTemplate;
168
- let companyCodes = this.formData.wfObjConfigDTOs.map(item => item.companyCode)
169
- let items = rows.filter(item => !companyCodes.includes(item.companyCode)).map(item => {
170
- return {
171
- objTypeCode: formTemplate.objTypeCode,
172
- objTypeName: formTemplate.objTypeName,
173
- serviceId: formTemplate.serviceName,
174
- url: "form",
175
- companyCode: row.companyCode,
176
- companyName: row.companyName
177
- }
178
- })
179
- this.formData.wfObjConfigDTOs.push(...items);
180
- }
181
- },
182
- initTableList() {
183
- let that = this;
184
- let tableOption = {
185
- vue: this,
186
- tableRef: 'table-m1',
187
- tableName: 'user_form_template-wfObj-list-m1',
188
- config: {
189
- height: "auto"
190
- },
191
- columns: [
192
- {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
193
- {
194
- title: this.$t1('单据类型名称'),
195
- field: 'objTypeName',
196
- width: 250,
197
- slots: {
198
- default: "objTypeName"
199
- }
200
- },
201
- {
202
- title: this.$t1('组织名称'),
203
- field: 'companyName',
204
- width: 200,
205
- },
206
- {
207
- title: this.$t1('单据类型编码'),
208
- field: 'objTypeCode',
209
- width: 200
210
- },
211
- {
212
- title: this.$t1('服务名'),
213
- field: 'serviceId',
214
- width: 150
215
- },
216
- {
217
- width: 100,
218
- fixed: 'right',
219
- title: '',
220
- sortable: false,
221
- slots: {
222
- default: ({row, rowIndex, $table}) => {
223
- return [
224
- <a
225
- href="javascript:void(0);"
226
- class="a-link"
227
- onClick={() => {
228
- this.formData.wfObjConfigDTOs.splice(rowIndex, 1)
229
- }}
230
- >
231
- <el-tooltip enterable={false} effect="dark" content="删除" placement="top"
232
- popper-class="tooltip-skin">
233
- <i class="el-icon-delete"/>
234
- </el-tooltip>
235
- </a>
236
- ];
237
- }
238
- }
239
- }
240
- ]
241
- };
242
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
243
- this.vxeOption = opts;
244
- });
245
- // this.initData();
246
- },
247
- }
248
- }
249
- </script>
250
-
251
-
252
- <style scoped>
253
-
254
- </style>
1
+ <template>
2
+ <el-dialog
3
+ :title="'设置组织流程单据类型('+formTemplate.formName+')'"
4
+ :append-to-body="true"
5
+ :modal-append-to-body="true"
6
+ :close-on-click-modal="false"
7
+ :visible.sync="dialogVisible"
8
+ :modal="false"
9
+ custom-class="dialog-style list-dialog dialog-checkbox pd_0"
10
+ width="1200px"
11
+ @close="closeDialog"
12
+ v-el-drag-dialog
13
+ v-el-dialog-center
14
+ >
15
+ <div id="containt">
16
+ <el-form ref="editForm" :model="formData">
17
+ <div class="grid-height" style="height: 500px">
18
+ <vxe-grid
19
+ class="is-pointer"
20
+ ref="table-m1"
21
+ :data="formData.wfObjConfigDTOs"
22
+ v-bind="vxeOption"
23
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
24
+ @custom="$vxeTableUtil.customHandle"
25
+ >
26
+ <template #form>
27
+ <div class="clearfix screen-btns">
28
+ <div class="fl">
29
+ <vxe-button status="primary" class="button-sty" icon="el-icon-plus"
30
+ @click="openCompanyDialog">
31
+ 新增
32
+ </vxe-button>
33
+ <span class="button-sty tips">{{ $t1('选择表单所在的组织,填写组织对应的流程单据类型数据。') }}</span>
34
+ </div>
35
+ </div>
36
+ </template>
37
+ <template #objTypeName="{row,rowIndex}">
38
+ <el-form-item :prop="'wfObjConfigDTOs.'+rowIndex+'.objTypeName'"
39
+ :rules="[{ required: true, trigger: 'blur' }]">
40
+ <el-input v-model="row.objTypeName" clearable></el-input>
41
+ </el-form-item>
42
+ </template>
43
+ <template #operate="{row}">
44
+ <a
45
+ href="javascript:void(0);"
46
+ class="a-link"
47
+ @click="openEditDialog(row.id)"
48
+ >
49
+ <el-tooltip :enterable="false" effect="dark" :content="$t2('查看','common.view')" placement="top"
50
+ popper-class="tooltip-skin">
51
+ <i class="el-icon-edit"/>
52
+ </el-tooltip>
53
+ </a>
54
+ </template>
55
+ </vxe-grid>
56
+ </div>
57
+ </el-form>
58
+ </div>
59
+
60
+ <span slot="footer" class="dialog-footer">
61
+ <el-button type="primary" plain class="button-sty" @click="closeDialog">
62
+ <i class="el-icon-close el-icon"></i>
63
+
64
+ </el-button>
65
+ <el-button type="primary" @click="saveData" class="button-sty">
66
+ <i class="el-icon-check el-icon"></i>
67
+
68
+ </el-button>
69
+ </span>
70
+ <companyInfoDialog v-if="showCompanyInfoDialog" :visiable.sync="showCompanyInfoDialog"
71
+ @confirm="confirmCompanyDialog" :multi="true" :allCompany="true"/>
72
+ </el-dialog>
73
+ </template>
74
+ <script>
75
+ import companyInfoDialog from "@base/views/user/company_info/dialog.vue";
76
+ import fileObjNotifyEdit from "@base/components/fileLibrary/fileObjNotifyEdit.vue";
77
+
78
+ export default {
79
+ components: {fileObjNotifyEdit, companyInfoDialog},
80
+ props: ['formTemplate'],
81
+ data() {
82
+ return {
83
+ dialogVisible: true,
84
+ formData: {
85
+ objTypeCode: null,
86
+ wfObjConfigDTOs: []
87
+ },
88
+ operateIndex: 0,
89
+ showCompanyInfoDialog: false,
90
+ vxeOption: {}
91
+ }
92
+ },
93
+ created() {
94
+
95
+ },
96
+ mounted() {
97
+ this.formData.objTypeCode = this.formTemplate.objTypeCode;
98
+ this.getListByObjTypeCode();
99
+ this.initTableList()
100
+ },
101
+ methods: {
102
+ getListByObjTypeCode(callback) {
103
+ let formTemplate = this.formTemplate
104
+ this.$http({
105
+ url: `/${formTemplate.serviceName}/wf_obj_config/listByObjTypeCode`,
106
+ method: `post`,
107
+ data: {
108
+ stringOne: formTemplate.objTypeCode
109
+ },
110
+ isLoading: true,
111
+ success: res => {
112
+ let rows = res.objx || [];
113
+ this.formData.wfObjConfigDTOs = rows;
114
+ callback && callback(rows)
115
+ }
116
+ });
117
+ },
118
+ saveData() {
119
+ this.$refs.editForm.$baseValidate(valid => {
120
+ if (valid) {
121
+ this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
122
+ var url = `/${this.formTemplate.serviceName}/wf_obj_config/saveUpdates`;
123
+ this.$http({
124
+ url: url,
125
+ method: `post`,
126
+ data: this.formData,
127
+ isLoading: true,
128
+ success: res => {
129
+ this.$message({
130
+ message: res.content,
131
+ type: 'success',
132
+ duration: 1000
133
+ });
134
+ this.getListByObjTypeCode(rows => {
135
+ this.$emit('confirm', rows)
136
+ this.closeDialog();
137
+ })
138
+ }
139
+ });
140
+ });
141
+ }
142
+ });
143
+ },
144
+ addItem() {
145
+ let formTemplate = this.formTemplate;
146
+ let row = {
147
+ objTypeCode: formTemplate.objTypeCode,
148
+ objTypeName: formTemplate.objTypeName,
149
+ serviceId: formTemplate.serviceName,
150
+ url: "form",
151
+ companyCode: null,
152
+ companyName: null
153
+ }
154
+ this.formData.wfObjConfigDTOs.push(row);
155
+ },
156
+ closeDialog() {
157
+ this.dialogVisible = false;
158
+ this.$emit("update:visiable", false);
159
+ },
160
+ openCompanyDialog() {
161
+ this.showCompanyInfoDialog = true;
162
+ },
163
+ confirmCompanyDialog(rows) {
164
+ if (rows.length) {
165
+ let row = rows[0];
166
+ let formTemplate = this.formTemplate;
167
+ let companyCodes = this.formData.wfObjConfigDTOs.map(item => item.companyCode)
168
+ let items = rows.filter(item => !companyCodes.includes(item.companyCode)).map(item => {
169
+ return {
170
+ objTypeCode: formTemplate.objTypeCode,
171
+ objTypeName: formTemplate.objTypeName,
172
+ serviceId: formTemplate.serviceName,
173
+ url: "form",
174
+ companyCode: row.companyCode,
175
+ companyName: row.companyName
176
+ }
177
+ })
178
+ this.formData.wfObjConfigDTOs.push(...items);
179
+ }
180
+ },
181
+ initTableList() {
182
+ let that = this;
183
+ let tableOption = {
184
+ vue: this,
185
+ tableRef: 'table-m1',
186
+ tableName: 'user_form_template-wfObj-list-m1',
187
+ config: {
188
+ height: "auto"
189
+ },
190
+ columns: [
191
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
192
+ {
193
+ title: this.$t1('单据类型名称'),
194
+ field: 'objTypeName',
195
+ width: 250,
196
+ slots: {
197
+ default: "objTypeName"
198
+ }
199
+ },
200
+ {
201
+ title: this.$t1('组织名称'),
202
+ field: 'companyName',
203
+ width: 200,
204
+ },
205
+ {
206
+ title: this.$t1('单据类型编码'),
207
+ field: 'objTypeCode',
208
+ width: 200
209
+ },
210
+ {
211
+ title: this.$t1('服务名'),
212
+ field: 'serviceId',
213
+ width: 150
214
+ },
215
+ {
216
+ width: 100,
217
+ fixed: 'right',
218
+ title: '',
219
+ sortable: false,
220
+ slots: {
221
+ default: ({row, rowIndex, $table}) => {
222
+ return [
223
+ <a
224
+ href="javascript:void(0);"
225
+ class="a-link"
226
+ onClick={() => {
227
+ this.formData.wfObjConfigDTOs.splice(rowIndex, 1)
228
+ }}
229
+ >
230
+ <el-tooltip enterable={false} effect="dark" content="删除" placement="top"
231
+ popper-class="tooltip-skin">
232
+ <i class="el-icon-delete"/>
233
+ </el-tooltip>
234
+ </a>
235
+ ];
236
+ }
237
+ }
238
+ }
239
+ ]
240
+ };
241
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
242
+ this.vxeOption = opts;
243
+ });
244
+ // this.initData();
245
+ },
246
+ }
247
+ }
248
+ </script>
249
+
250
+
251
+ <style scoped>
252
+
253
+ </style>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div id="containt">
3
- <x-tabs ref="xTabs" v-model="activeName" class="tab-box" paneKeyName="formCode">
3
+ <x-tabs ref="xTabs" v-model="activeName" class="tab-box" paneKeyName="id">
4
4
  <el-tab-pane :label="$t1('常规')" name="first">
5
5
  <editView
6
6
  v-if="showEdit"
@@ -45,7 +45,7 @@
45
45
  type="text"
46
46
  status="primary"
47
47
  plain
48
- >{{ $t1("重置") }}
48
+ >{{ $t1("刷新") }}
49
49
  </vxe-button>
50
50
  <vxe-button
51
51
  status="warning"
@@ -109,7 +109,7 @@
109
109
  <el-tab-pane
110
110
  :key="tab.data.id"
111
111
  :label.sync="tab.data.formName"
112
- :name="tab.data.formCode"
112
+ :name="tab.data.id + ''"
113
113
  :closable="true"
114
114
  >
115
115
  <editView
@@ -73,26 +73,6 @@
73
73
  <span class="tips_1">{{ $t1('注:多个用逗号","隔开') }}</span>
74
74
  </td>
75
75
  </tr>
76
- <tr>
77
- <th>
78
- {{ $t1("参数值") }}
79
- </th>
80
- <td colspan="5">
81
- <el-form-item
82
- prop="paramValue"
83
- :rules="[{ required: false, trigger: 'blur' }]"
84
- >
85
- <el-input
86
- type="textarea"
87
- :rows="2"
88
- :placeholder="$t1('请输入内容')"
89
- size="small"
90
- v-model="logicParam.paramValue"
91
- clearable
92
- ></el-input>
93
- </el-form-item>
94
- </td>
95
- </tr>
96
76
  <tr>
97
77
  <th>{{ $t1("参数备注") }}</th>
98
78
  <td colspan="5">
@@ -120,6 +100,26 @@
120
100
  </el-form-item>
121
101
  </td>
122
102
  </tr>
103
+ <tr>
104
+ <th>
105
+ {{ $t1("参数值") }}
106
+ </th>
107
+ <td colspan="5">
108
+ <el-form-item
109
+ prop="paramValue"
110
+ :rules="[{ required: false, trigger: 'blur' }]"
111
+ >
112
+ <el-input
113
+ type="textarea"
114
+ :rows="16"
115
+ :placeholder="$t1('请输入内容')"
116
+ size="small"
117
+ v-model="logicParam.paramValue"
118
+ clearable
119
+ ></el-input>
120
+ </el-form-item>
121
+ </td>
122
+ </tr>
123
123
  <tr>
124
124
  <th>{{ $t1("创建人") }}</th>
125
125
  <td>{{ logicParam.createBy }}</td>
@@ -45,7 +45,7 @@
45
45
  type="text"
46
46
  status="primary"
47
47
  plain
48
- >{{ $t1("重置") }}
48
+ >{{ $t1("刷新") }}
49
49
  </vxe-button>
50
50
  <vxe-button
51
51
  status="warning"
@@ -27,7 +27,7 @@
27
27
  <div class="clearfix screen-btns">
28
28
  <div class="fr">
29
29
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
30
- plain>{{ $t1('重置') }}
30
+ plain>{{ $t1('刷新') }}
31
31
  </vxe-button>
32
32
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
33
33
  {{ $t1('搜索') }}
@@ -41,7 +41,7 @@
41
41
  type="text"
42
42
  status="primary"
43
43
  plain
44
- >{{ $t1("重置") }}
44
+ >{{ $t1("刷新") }}
45
45
  </vxe-button>
46
46
  <vxe-button
47
47
  status="warning"
@@ -10,7 +10,7 @@
10
10
  </div>
11
11
  <div class="fr">
12
12
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
13
- plain>{{ $t1('重置') }}
13
+ plain>{{ $t1('刷新') }}
14
14
  </vxe-button>
15
15
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
16
16
  {{ $t1('搜索') }}
@@ -10,7 +10,7 @@
10
10
  </div>
11
11
  <div class="fr">
12
12
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
13
- plain>{{ $t1('重置') }}
13
+ plain>{{ $t1('刷新') }}
14
14
  </vxe-button>
15
15
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
16
16
  {{ $t1('搜索') }}