vue2-client 1.15.26 → 1.15.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 (132) hide show
  1. package/docs/Logic/345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +0 -1
  2. package/docs//345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +2 -4
  3. package/package.json +1 -1
  4. package/src/base-client/components/common/AmapMarker/index.js +3 -3
  5. package/src/base-client/components/common/XDetailsView/index.js +3 -3
  6. package/src/base-client/components/common/XFormGroupDetails/index.js +3 -3
  7. package/src/base-client/components/his/XTextCard/XTextCard.vue +207 -207
  8. package/src/base-client/components/his/XTreeRows/TreeNode.vue +100 -100
  9. package/src/base-client/components/his/XTreeRows/XTreeRows.vue +197 -197
  10. package/src/base-client/components/his/threeTestOrders/editor.vue +111 -111
  11. package/src/components/HeightScanner/index.vue +54 -10
  12. package/src/pages/WorkflowDetail/WorkFlowDemo.vue +201 -37
  13. package/src/pages/WorkflowDetail/WorkFlowDemo2.vue +97 -169
  14. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +22 -27
  15. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowPreview.vue +5 -5
  16. package/src/router/async/router.map.js +7 -12
  17. package/vue.config.js +3 -4
  18. package/.history/public/his/editor/editor_20250606134713.html +0 -51
  19. package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527173925.vue +0 -509
  20. package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174316.vue +0 -524
  21. package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174419.vue +0 -524
  22. package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174422.vue +0 -524
  23. package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172825.vue +0 -207
  24. package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172945.vue +0 -211
  25. package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172949.vue +0 -212
  26. package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611173010.vue +0 -212
  27. package/.history/src/base-client/components/common/XForm/XFormItem_20250508134122.vue +0 -1320
  28. package/.history/src/base-client/components/common/XForm/XFormItem_20250527171604.vue +0 -1332
  29. package/.history/src/base-client/components/common/XForm/XFormItem_20250527171613.vue +0 -1331
  30. package/.history/src/base-client/components/common/XForm/XFormItem_20250527171703.vue +0 -1331
  31. package/.history/src/base-client/components/common/XForm/XFormItem_20250527171720.vue +0 -1331
  32. package/.history/src/base-client/components/common/XForm/XFormItem_20250527174327.vue +0 -1339
  33. package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612092804.vue +0 -731
  34. package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612112546.vue +0 -748
  35. package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612113808.vue +0 -748
  36. package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115237.vue +0 -1071
  37. package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115346.vue +0 -1078
  38. package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115350.vue +0 -1077
  39. package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115415.vue +0 -1077
  40. package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115429.vue +0 -1077
  41. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611091619.vue +0 -442
  42. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092547.vue +0 -442
  43. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092552.vue +0 -442
  44. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092744.vue +0 -475
  45. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092955.vue +0 -475
  46. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092957.vue +0 -475
  47. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095652.vue +0 -477
  48. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095701.vue +0 -477
  49. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095704.vue +0 -477
  50. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100005.vue +0 -473
  51. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100011.vue +0 -473
  52. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100014.vue +0 -473
  53. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100833.vue +0 -473
  54. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100853.vue +0 -473
  55. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100940.vue +0 -473
  56. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101011.vue +0 -473
  57. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101013.vue +0 -473
  58. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101014.vue +0 -473
  59. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101159.vue +0 -473
  60. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101238.vue +0 -474
  61. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101240.vue +0 -474
  62. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101242.vue +0 -474
  63. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101404.vue +0 -472
  64. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101410.vue +0 -472
  65. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101459.vue +0 -472
  66. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101500.vue +0 -472
  67. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101502.vue +0 -472
  68. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101504.vue +0 -472
  69. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101610.vue +0 -501
  70. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101700.vue +0 -501
  71. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101702.vue +0 -501
  72. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101741.vue +0 -504
  73. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101749.vue +0 -504
  74. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101759.vue +0 -504
  75. package/.history/src/base-client/components/his/XHisEditor/dome_20250611091349.vue +0 -131
  76. package/.history/src/base-client/components/his/XHisEditor/dome_20250611105854.vue +0 -160
  77. package/.history/src/base-client/components/his/XHisEditor/dome_20250611105902.vue +0 -160
  78. package/.history/src/base-client/components/his/XHisEditor/dome_20250611105924.vue +0 -160
  79. package/.history/src/base-client/components/his/XHisEditor/dome_20250611105932.vue +0 -158
  80. package/.history/src/base-client/components/his/XList/XList_20250609135848.vue +0 -173
  81. package/.history/src/base-client/components/his/XList/XList_20250609141026.vue +0 -222
  82. package/.history/src/base-client/components/his/XList/XList_20250609141035.vue +0 -229
  83. package/.history/src/base-client/components/his/XList/XList_20250609141103.vue +0 -229
  84. package/.history/src/base-client/components/his/XList/XList_20250609141105.vue +0 -229
  85. package/.history/src/base-client/components/his/XList/XList_20250609141334.vue +0 -241
  86. package/.history/src/base-client/components/his/XList/XList_20250609141404.vue +0 -241
  87. package/.history/src/base-client/components/his/XList/XList_20250609141406.vue +0 -241
  88. package/.history/src/base-client/components/his/XList/XList_20250609141801.vue +0 -245
  89. package/.history/src/base-client/components/his/XList/XList_20250609142033.vue +0 -245
  90. package/.history/src/base-client/components/his/XList/XList_20250609142038.vue +0 -245
  91. package/.history/src/base-client/components/his/XList/XList_20250609142435.vue +0 -255
  92. package/.history/src/base-client/components/his/XList/XList_20250609142503.vue +0 -255
  93. package/.history/src/base-client/components/his/XList/XList_20250609142504.vue +0 -255
  94. package/.history/src/base-client/components/his/XList/XList_20250609143012.vue +0 -270
  95. package/.history/src/base-client/components/his/XList/XList_20250609143044.vue +0 -270
  96. package/.history/src/base-client/components/his/XList/XList_20250609143046.vue +0 -270
  97. package/.history/src/base-client/components/his/XList/XList_20250609143210.vue +0 -270
  98. package/.history/src/base-client/components/his/XList/XList_20250609144339.vue +0 -294
  99. package/.history/src/base-client/components/his/XList/XList_20250609144410.vue +0 -294
  100. package/.history/src/base-client/components/his/XList/XList_20250609144412.vue +0 -294
  101. package/.history/src/base-client/components/his/XList/XList_20250609144647.vue +0 -303
  102. package/.history/src/base-client/components/his/XList/XList_20250609144716.vue +0 -303
  103. package/.history/src/base-client/components/his/XList/XList_20250609144729.vue +0 -303
  104. package/.history/src/base-client/components/his/XList/XList_20250609151232.vue +0 -288
  105. package/.history/src/base-client/components/his/XList/XList_20250609151247.vue +0 -288
  106. package/.history/src/base-client/components/his/XList/XList_20250609151252.vue +0 -288
  107. package/.history/src/base-client/components/his/XList/XList_20250609161220.vue +0 -317
  108. package/.history/src/base-client/components/his/XList/XList_20250609161258.vue +0 -306
  109. package/.history/src/base-client/components/his/XList/XList_20250609161319.vue +0 -306
  110. package/.history/src/base-client/components/his/XList/XList_20250609161320.vue +0 -306
  111. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250609151519.vue +0 -222
  112. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155514.vue +0 -183
  113. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155556.vue +0 -183
  114. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155600.vue +0 -183
  115. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612181609.vue +0 -206
  116. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612181629.vue +0 -209
  117. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095553.vue +0 -242
  118. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095610.vue +0 -242
  119. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095612.vue +0 -242
  120. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100041.vue +0 -251
  121. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100047.vue +0 -251
  122. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100054.vue +0 -250
  123. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100105.vue +0 -250
  124. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100107.vue +0 -250
  125. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100114.vue +0 -250
  126. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613140844.vue +0 -238
  127. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613140910.vue +0 -238
  128. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613140912.vue +0 -238
  129. package/Users/objecrt/af-vue2-client/src/base-client/components/his/XShiftSchedule/XShiftSchedule.vue +0 -36
  130. package/src/base-client/components/TreeList/TreeList.vue +0 -91
  131. package/src/base-client/components/TreeList/TreeNode.vue +0 -81
  132. package/src/base-client/components/common/XCardSet/XTiltle.vue +0 -191
@@ -8,7 +8,7 @@
8
8
  @cancel="handleCancel"
9
9
  :maskClosable="false"
10
10
  >
11
- <div class="scanner-container">
11
+ <div class="scanner-container" >
12
12
  <a-row>
13
13
  <a-space>
14
14
  <a-button type="primary" @click="capturePhoto">拍照</a-button>
@@ -19,6 +19,7 @@
19
19
  <a-button type="primary" @click="openApp">开启程序</a-button>
20
20
  <a-button v-if="showid" type="primary" @click="startReadCard">读身份证</a-button>
21
21
  <a-button v-if="showid" @click="stopReadCard">停止读卡</a-button>
22
+ <a-button type="primary" @click="rotateCamera">画面旋转</a-button>
22
23
  </a-space>
23
24
  </a-row>
24
25
  <a-row>
@@ -43,12 +44,15 @@
43
44
  :disabled="true"></a-textarea>
44
45
  </a-col>
45
46
  <a-col :span="24">
46
- <img
47
- id="cam"
48
- :src="cameraurl"
49
- width="100%"
50
- height="540"
51
- alt=""/>
47
+ <div
48
+ :style="{...heightStyle, display: 'flex', justifyContent: 'center', alignItems: 'center'}">
49
+ <img
50
+ id="cam"
51
+ :src="cameraurl"
52
+ :style="rotateStyle"
53
+ class="video"
54
+ alt=""/>
55
+ </div>
52
56
  </a-col>
53
57
  <a-col :span="24" v-if="showid">
54
58
  <a-form layout="horizontal">
@@ -145,9 +149,11 @@ export default {
145
149
  },
146
150
  callback: {},
147
151
  context: 0,
152
+ rotateAngle: 0,
148
153
  base_offset: 0,
149
154
  orgdrawwidth: 0,
150
155
  orgdrawheight: 0,
156
+ containerHeight: 440,
151
157
 
152
158
  CLT_MSG: {
153
159
  // 打开相机 cap:相机ID
@@ -234,8 +240,29 @@ export default {
234
240
  }
235
241
  }
236
242
  },
237
-
243
+ computed: {
244
+ rotateStyle () {
245
+ return {
246
+ transform: `rotate(${this.rotateAngle}deg)`,
247
+ transition: 'transform 0.5s ease',
248
+ maxHeight: `${this.rotateAngle % 180 === 0 ? '440px' : '660px'}`
249
+ }
250
+ },
251
+ heightStyle () {
252
+ return {
253
+ width: '100%',
254
+ height: `${this.containerHeight}px`,
255
+ }
256
+ }
257
+ },
238
258
  methods: {
259
+ rotateCamera () {
260
+ console.log('>>> 旋转镜头')
261
+ // 每次点击增加 90 度,超过 360 度时归零
262
+ this.rotateAngle = (this.rotateAngle + 90) % 360
263
+ // 根据旋转角度设置不同的高度
264
+ this.containerHeight = this.rotateAngle % 180 === 0 ? 440 : 660
265
+ },
239
266
  // handleImgError (e) {
240
267
  // e.target.style.display = 'none'
241
268
  // },
@@ -419,14 +446,20 @@ export default {
419
446
  return
420
447
  }
421
448
  const param = {
422
- camidx: camidx
449
+ camidx: camidx,
450
+ image_process_info: {
451
+ cut_type: '0',
452
+ multi_object: '0',
453
+ rotate: `${this.rotateAngle}`,
454
+ },
423
455
  }
424
456
  const msg = await this.newInstancePost('http://127.0.0.1:38088/video=grabimage', param)
425
457
  if (msg.data.code != '0') {
426
458
  this.$message.info(msg.data.message)
427
459
  return
428
460
  }
429
- this.previewImage = 'data:image/jpg;base64,' + msg.data.photoBase64
461
+ console.log('msg========================>', msg)
462
+ this.previewImage = 'data:image/jpg;base64,' + msg.data.images[0].base64
430
463
  this.output('base64 长度 : ' + this.previewImage)
431
464
  this.$emit('photo-finish', { img: this.previewImage })
432
465
  this.name = ''
@@ -569,3 +602,14 @@ export default {
569
602
  }
570
603
  }
571
604
  </script>
605
+ <style lang="less" scoped>
606
+ .video {
607
+ width: 70%;
608
+ height: 440px;
609
+ display: flex;
610
+ flex-direction: column;
611
+ background-size: contain;
612
+ background-repeat: no-repeat;
613
+ background-position: center;
614
+ }
615
+ </style>
@@ -1,47 +1,211 @@
1
+ <template>
2
+ <a-card :bordered="false">
3
+ <x-form-table
4
+ title="我的工单"
5
+ ref="xFormTable"
6
+ :queryParamsName="queryParamsName"
7
+ :fixed-query-form="{
8
+ users_f_handler_id: currUser.id,
9
+ }"
10
+ @action="toDetail">
11
+ <template slot="button">
12
+ <a-button @click="addApply">
13
+ <a-icon type="plus"/>
14
+ 发起报建
15
+ </a-button>
16
+ </template>
17
+ </x-form-table>
18
+ <a-modal
19
+ v-model="applyAddFlag"
20
+ :footer="null"
21
+ :dialog-style="{ top: '5rem' }"
22
+ :z-index="1001"
23
+ title="发起报建"
24
+ :destroyOnClose="true">
25
+ <x-add-native-form ref="xForm" @onSubmit="applySubmit"/>
26
+ </a-modal>
27
+ <WorkflowDetail
28
+ ref="workFlow"
29
+ @success="success"
30
+ @nextClick="nextClick"
31
+ @x-form-item-emit-func="handleFormItemEvent"
32
+ >
33
+ </WorkflowDetail>
34
+ <address-select ref="addressSelect" @setAddress="setForm"></address-select>
35
+ <!-- 协议作废功能 -->
36
+ <a-modal
37
+ v-model="formState"
38
+ :dialog-style="{ top: '5rem' }"
39
+ :z-index="1001"
40
+ title="作废"
41
+ :destroyOnClose="true"
42
+ width="55vw">
43
+ <x-add-native-form
44
+ ref="xCancelForm"
45
+ @onSubmit="submit"
46
+ />
47
+ <template #footer>
48
+ <a-button key="back" @click="formState = false">取消</a-button>
49
+ <a-button key="submit" type="primary" :loading="submitLoading" @click="formSubmit">确认</a-button>
50
+ </template>
51
+ </a-modal>
52
+ </a-card>
53
+ </template>
54
+
1
55
  <script>
2
56
  import WorkflowDetail from '@vue2-client/pages/WorkflowDetail/WorkflowDetail.vue'
57
+ import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
58
+ import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
59
+ import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
60
+ import { mapState } from 'vuex'
61
+ import AddressSelect from '@vue2-client/pages/addressSelect/index.vue'
3
62
 
4
63
  export default {
5
- name: 'WorkFlowDemo',
6
- components: { WorkflowDetail },
7
- mounted () {
8
- this.$refs.workFlow.init({
9
- workflowId: '376'
10
- })
64
+ name: 'Apply',
65
+ components: {
66
+ XFormTable,
67
+ XAddNativeForm,
68
+ WorkflowDetail,
69
+ AddressSelect
70
+ },
71
+ provide () {
72
+ return {
73
+ generalFunction: {
74
+ setCancel: this.setCancel,
75
+ updateFormData: this.updateFormData,
76
+ }
77
+ }
78
+ },
79
+ data () {
80
+ return {
81
+ // 查询配置文件名
82
+ queryParamsName: 'ApplyProcessCRUD',
83
+ // 发起报建弹框控制
84
+ applyAddFlag: false,
85
+ formState: false,
86
+ submitLoading: false,
87
+ cancelRecord: {}
88
+ }
89
+ },
90
+ computed: {
91
+ ...mapState('account', { currUser: 'user' }),
11
92
  },
12
93
  methods: {
13
- /**
14
- * 流程详情页成功
15
- * @param note 备注信息
16
- * @param form 表单信息
17
- * @param workflowId
18
- */
19
- success ({ note, form, workflowId }) {
20
- console.log('success', note, form, workflowId)
21
- },
22
- /**
23
- * 流程详情页成功
24
- * @param note 备注信息
25
- * @param form 表单信息
26
- * @param workflowId 工作流id
27
- * @param fromStepId 起ID
28
- * @param toStepId 往ID
29
- * @param successStepId 完成步骤id
30
- * @param successStep 完成步骤名称
31
- * @param fromStep 起步骤名称
32
- * @param toStep 往步骤名称
33
- */
34
- nextClick ({ note, form, workflowId, fromStepId, toStepId, fromStep, toStep, successStepId, successStep }) {
35
- console.log('success', note, form, workflowId, fromStepId, toStepId, fromStep, toStep, successStepId, successStep)
94
+ addApply () {
95
+ console.log('打开了吗')
96
+ this.applyAddFlag = true
97
+ this.$nextTick(
98
+ () => {
99
+ getConfigByName('addApplyForm', 'af-apply', (res) => {
100
+ this.$refs.xForm.init({
101
+ businessType: '新增',
102
+ title: '发起报建',
103
+ ...res
104
+ })
105
+ })
106
+ }
107
+ )
108
+ },
109
+ applySubmit (formData) {
110
+ runLogic('addApply', formData).then(
111
+ res => {
112
+ this.$message.success('发起报建成功')
113
+ this.$refs.xFormTable.refreshTable(true)
114
+ this.applyAddFlag = false
115
+ }
116
+ ).catch(() => {
117
+ this.applyAddFlag = false
118
+ })
119
+ },
120
+ success () {
121
+ console.log('完工')
122
+ },
123
+ toDetail (record, id) {
124
+ this.$refs.workFlow.init({
125
+ workflowId: record.ab_f_workflow_id,
126
+ })
127
+ },
128
+ handleFormItemEvent (func, data, value) {
129
+ console.log('打印一下:', func, data, value)
130
+ if (func === 'selectAddress') {
131
+ this.$refs.addressSelect.setFormShow()
132
+ }
133
+ },
134
+ setForm (record) {
135
+ this.$refs.workFlow.setFormValue({ address: record.f_address, address_id: record.f_address_id })
136
+ },
137
+ nextClick ({ form, formStep, workflowId }) {
138
+ console.log('success', form, formStep, workflowId)
139
+ const data = {
140
+ workflowId,
141
+ form,
142
+ formStep
143
+ }
144
+ runLogic('applySubmitAfter', data, 'af-apply').then(
145
+ res => {
146
+ if (res) {
147
+ // this.$message.success('提交成功!')
148
+ this.$refs.xFormTable.refreshTable(true)
149
+ }
150
+ }
151
+ )
152
+ },
153
+ // 协议作废
154
+ setCancel (record) {
155
+ this.cancelRecord = record
156
+ this.formState = true
157
+ this.$nextTick(() => {
158
+ getConfigByName('setCancelForm', 'af-apply', (config) => {
159
+ if (this.$refs.xCancelForm) {
160
+ this.$refs.xCancelForm.init({
161
+ formItems: config.formJson,
162
+ title: '补充协议作废',
163
+ businessType: '修改',
164
+ showSubmitBtn: false,
165
+ ...config
166
+ })
167
+ if (this.$refs.xCancelForm) {
168
+ console.log(record)
169
+ // this.$refs.xCancelForm.setForm(recordData)
170
+ }
171
+ } else {
172
+ console.error('xCancelForm组件未加载完成')
173
+ // 延迟重试
174
+ setTimeout(() => {
175
+ this.setCancel(record)
176
+ }, 100)
177
+ }
178
+ })
179
+ })
180
+ },
181
+ async formSubmit () {
182
+ this.submitLoading = true
183
+ const formData = await this.$refs.xCancelForm.asyncSubmit()
184
+ try {
185
+ await this.submit(formData)
186
+ } catch (error) {
187
+ this.$message.error('表单验证失败,请检查填写内容')
188
+ } finally {
189
+ this.submitLoading = false
190
+ }
191
+ },
192
+ async submit (formData) {
193
+ const data = {
194
+ ...formData,
195
+ }
196
+ console.log('==formData', data)
197
+ await runLogic('暂时没有实现的logic', data, 'af-apply').then(() => {
198
+ this.$message.success('操作成功')
199
+ this.formState = false
200
+ })
201
+ },
202
+ updateFormData (workflowId) {
203
+ runLogic('queryAgreementAmount', { workflowId: workflowId }, 'af-apply').then((res) => {
204
+ console.log('>>>> res==', res)
205
+ this.$refs.workFlow.$refs.workflowHandle.$refs.xAddForm.setForm({ add_amount: 1200 })
206
+ })
207
+ console.log()
36
208
  }
37
209
  }
38
210
  }
39
211
  </script>
40
-
41
- <template>
42
- <WorkflowDetail ref="workFlow" @success="success" @nextClick="nextClick"></WorkflowDetail>
43
- </template>
44
-
45
- <style scoped lang="less">
46
-
47
- </style>
@@ -1,204 +1,132 @@
1
1
  <template>
2
2
  <a-card :bordered="false">
3
- <x-form-table
4
- title="我的工单"
5
- ref="xFormTable"
6
- :queryParamsName="queryParamsName"
7
- :fixed-query-form="{
8
- users_f_handler_id: currUser.id,
9
- }"
10
- @action="toDetail">
11
- <template slot="button">
12
- <a-button @click="addApply">
13
- <a-icon type="plus"/>
14
- 发起报建
15
- </a-button>
16
- </template>
17
- </x-form-table>
18
- <a-modal
19
- v-model="applyAddFlag"
20
- :footer="null"
21
- :dialog-style="{ top: '5rem' }"
22
- :z-index="1001"
23
- title="发起报建"
24
- :destroyOnClose="true">
25
- <x-add-native-form ref="xForm" @onSubmit="applySubmit"/>
26
- </a-modal>
27
- <WorkflowDetail
28
- ref="workFlow"
29
- @success="success"
30
- @nextClick="nextClick"
31
- @x-form-item-emit-func="handleFormItemEvent"
32
- >
33
- </WorkflowDetail>
34
- <address-select ref="addressSelect" @setAddress="setForm"></address-select>
35
- <!-- 协议作废功能 -->
36
- <a-modal
37
- v-model="formState"
38
- :dialog-style="{ top: '5rem' }"
39
- :z-index="1001"
40
- title="作废"
41
- :destroyOnClose="true"
42
- width="55vw">
43
- <x-add-native-form
44
- ref="xCancelForm"
45
- @onSubmit="submit"
46
- />
47
- <template #footer>
48
- <a-button key="back" @click="formState = false">取消</a-button>
49
- <a-button key="submit" type="primary" :loading="submitLoading" @click="formSubmit">确认</a-button>
50
- </template>
51
- </a-modal>
3
+ <a-tabs default-active-key="1">
4
+ <!-- 业务审核 Tab -->
5
+ <a-tab-pane key="1" tab="业务审核">
6
+ <x-form-table
7
+ title="业务审核"
8
+ :queryParamsName="queryParamsName"
9
+ :fixedAddForm="fixedAddForm"
10
+ :fixedQueryForm="fixedQueryForm"
11
+ @audit="audit"
12
+ serviceName="af-revenue"
13
+ ref="xFormTable">
14
+ </x-form-table>
15
+ <WorkflowDetail ref="workFlow" @success="confirmAudit" @nextClick="nextClick"></WorkflowDetail>
16
+ </a-tab-pane>
17
+
18
+ <!-- 我负责的 Tab -->
19
+ <a-tab-pane key="2" tab="我参与的">
20
+ <x-form-table
21
+ title="我参与的业务"
22
+ :queryParamsName="queryParamsName2"
23
+ :fixedQueryForm="fixedQueryForm2"
24
+ @check="check"
25
+ serviceName="af-revenue"
26
+ ref="xFormTable">
27
+ </x-form-table>
28
+ </a-tab-pane>
29
+ </a-tabs>
52
30
  </a-card>
53
31
  </template>
54
32
 
55
33
  <script>
34
+ import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable.vue'
56
35
  import WorkflowDetail from '@vue2-client/pages/WorkflowDetail/WorkflowDetail.vue'
57
- import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
58
36
  import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
59
- import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
37
+ import XDescriptions from '@vue2-client/base-client/components/common/XDescriptions/XDescriptions.vue'
60
38
  import { mapState } from 'vuex'
61
- import AddressSelect from '@vue2-client/pages/addressSelect/index.vue'
39
+ import { runLogic } from '@vue2-client/services/api/common'
62
40
 
63
41
  export default {
64
- name: 'Apply',
42
+ name: 'UnitManage',
65
43
  components: {
66
- XFormTable,
67
- XAddNativeForm,
68
- WorkflowDetail,
69
- AddressSelect
70
- },
71
- provide () {
72
- return {
73
- generalFunction: {
74
- setCancel: this.setCancel,
75
- }
76
- }
44
+ XFormTable, XDescriptions, XAddNativeForm, WorkflowDetail
77
45
  },
78
46
  data () {
79
47
  return {
80
- // 查询配置文件名
81
- queryParamsName: 'ApplyProcessCRUD',
82
- // 发起报建弹框控制
83
- applyAddFlag: false,
84
- formState: false,
85
- submitLoading: false,
86
- cancelRecord: {}
48
+ // 查询配置名称
49
+ queryParamsName: 'businessAuditCRUD',
50
+ queryParamsName2: 'participatedCRUD',
51
+ // 新增表单固定值
52
+ fixedAddForm: {},
53
+ fixedQueryForm: {},
54
+ fixedQueryForm2: {},
55
+ // 页面宽度
56
+ screenWidth: document.documentElement.clientWidth,
57
+ // 是否显示详情抽屉
58
+ detailVisible: false
87
59
  }
88
60
  },
89
- computed: {
90
- ...mapState('account', { currUser: 'user' }),
61
+ created () {
62
+ },
63
+ mounted () {
64
+ this.fixedQueryForm = {
65
+ ws_f_handler: this.currUser.name
66
+ }
67
+ this.fixedQueryForm2 = {
68
+ a_f_handler: this.currUser.name
69
+ }
91
70
  },
92
71
  methods: {
93
- addApply () {
94
- console.log('打开了吗')
95
- this.applyAddFlag = true
96
- this.$nextTick(
97
- () => {
98
- getConfigByName('addApplyForm', 'af-apply', (res) => {
99
- this.$refs.xForm.init({
100
- businessType: '新增',
101
- title: '发起报建',
102
- ...res
103
- })
104
- })
105
- }
106
- )
107
- },
108
- applySubmit (formData) {
109
- runLogic('addApply', formData).then(
110
- res => {
111
- this.$message.success('发起报建成功')
112
- this.$refs.xFormTable.refreshTable(true)
113
- this.applyAddFlag = false
114
- }
115
- ).catch(() => {
116
- this.applyAddFlag = false
117
- })
118
- },
119
- success () {
120
- console.log('完工')
121
- },
122
- toDetail (record, id) {
123
- this.$refs.workFlow.init({
124
- workflowId: record.ab_f_workflow_id,
125
- stepId: record.ws_f_step_id
126
- })
127
- },
128
- handleFormItemEvent (func, data, value) {
129
- console.log('打印一下:', func, data, value)
130
- if (func === 'selectAddress') {
131
- this.$refs.addressSelect.setFormShow()
132
- }
133
- },
134
- setForm (record) {
135
- this.$refs.workFlow.setFormValue({ address: record.f_address, address_id: record.f_address_id })
136
- },
137
72
  nextClick ({ form, formStep, workflowId }) {
138
73
  console.log('success', form, formStep, workflowId)
139
- const data = {
140
- workflowId,
141
- form,
142
- formStep
74
+ if (formStep === '管理员审核') {
75
+ const data = {
76
+ workflowId,
77
+ form
78
+ }
79
+ runLogic('auditFinish', { data: data }, 'af-revenue').then(
80
+ res => {
81
+ if (res) {
82
+ this.$message.success('审核完成!!!')
83
+ this.formModalVisible = false
84
+ this.$refs.xFormTable.refreshTable(true)
85
+ }
86
+ }
87
+ )
143
88
  }
144
- runLogic('applySubmitAfter', data, 'af-apply').then(
89
+ },
90
+ confirmAudit (param) {
91
+ runLogic('auditFinish', { data: param }, 'af-revenue').then(
145
92
  res => {
146
93
  if (res) {
147
- // this.$message.success('提交成功!')
94
+ this.$message.success('审核完成!!!')
95
+ this.formModalVisible = false
148
96
  this.$refs.xFormTable.refreshTable(true)
149
97
  }
150
98
  }
151
99
  )
152
100
  },
153
- // 协议作废
154
- setCancel (record) {
155
- this.cancelRecord = record
156
- this.formState = true
157
- this.$nextTick(() => {
158
- getConfigByName('setCancelForm', 'af-apply', (config) => {
159
- if (this.$refs.xCancelForm) {
160
- this.$refs.xCancelForm.init({
161
- formItems: config.formJson,
162
- title: '补充协议作废',
163
- businessType: '修改',
164
- showSubmitBtn: false,
165
- ...config
166
- })
167
- if (this.$refs.xCancelForm) {
168
- console.log(record)
169
- // this.$refs.xCancelForm.setForm(recordData)
170
- }
171
- } else {
172
- console.error('xCancelForm组件未加载完成')
173
- // 延迟重试
174
- setTimeout(() => {
175
- this.setCancel(record)
176
- }, 100)
177
- }
178
- })
101
+ audit (record, id, type) {
102
+ console.log(record, id, type)
103
+ console.log(this.$refs.workFlow)
104
+ this.detailVisible = true
105
+ this.$refs.workFlow.init({
106
+ workflowId: record.w_id
179
107
  })
180
108
  },
181
- async formSubmit () {
182
- this.submitLoading = true
183
- const formData = await this.$refs.xCancelForm.asyncSubmit()
184
- try {
185
- await this.submit(formData)
186
- } catch (error) {
187
- this.$message.error('表单验证失败,请检查填写内容')
188
- } finally {
189
- this.submitLoading = false
190
- }
191
- },
192
- async submit (formData) {
193
- const data = {
194
- ...formData,
195
- }
196
- console.log('==formData', data)
197
- await runLogic('暂时没有实现的logic', data, 'af-apply').then(() => {
198
- this.$message.success('操作成功')
199
- this.formState = false
109
+ check (record, id, type) {
110
+ console.log(record, id, type)
111
+ console.log(this.$refs.workFlow)
112
+ this.detailVisible = true
113
+ this.$refs.workFlow.init({
114
+ workflowId: record.a_id
200
115
  })
116
+ },
117
+ onClose () {
118
+ this.detailVisible = false
201
119
  }
202
- }
120
+ },
121
+ computed: {
122
+ ...mapState('account', { currUser: 'user' }),
123
+ ...mapState('setting', { isMobile: 'isMobile' })
124
+ },
203
125
  }
204
126
  </script>
127
+
128
+ <style scoped lang="less">
129
+ :deep(.ant-statistic-content-value) {
130
+ color: @primary-color;
131
+ }
132
+ </style>