vue2-client 1.16.48 → 1.16.49

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 (39) hide show
  1. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926145434.vue +641 -0
  2. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926145453.vue +641 -0
  3. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926145610.vue +647 -0
  4. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926145629.vue +647 -0
  5. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926145901.vue +645 -0
  6. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926145907.vue +651 -0
  7. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926145920.vue +651 -0
  8. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926150047.vue +651 -0
  9. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926151820.vue +646 -0
  10. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926151827.vue +646 -0
  11. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926152115.vue +646 -0
  12. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926152212.vue +653 -0
  13. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926152215.vue +653 -0
  14. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926152337.vue +657 -0
  15. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926152341.vue +657 -0
  16. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926152826.vue +657 -0
  17. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926152828.vue +646 -0
  18. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926153121.vue +654 -0
  19. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926153242.vue +654 -0
  20. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926153318.vue +646 -0
  21. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926153415.vue +646 -0
  22. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926153435.vue +655 -0
  23. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926153606.vue +655 -0
  24. package/.history/src/base-client/components/common/XDataCard/XDataCard_20250926153653.vue +655 -0
  25. package/package.json +1 -1
  26. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +1178 -1178
  27. package/src/base-client/components/common/XDataCard/XDataCard.vue +44 -18
  28. package/src/base-client/components/common/XDataCard/test.vue +367 -0
  29. package/src/pages/WorkflowDetail/WorkFlowDemo3.vue +225 -203
  30. package/src/router/async/router.map.js +1 -4
  31. package/src/services/api/common.js +2 -0
  32. package/src/assets/img/paymentMethod/icon1.png +0 -0
  33. package/src/assets/img/paymentMethod/icon2.png +0 -0
  34. package/src/assets/img/paymentMethod/icon3.png +0 -0
  35. package/src/assets/img/paymentMethod/icon4.png +0 -0
  36. package/src/assets/img/paymentMethod/icon5.png +0 -0
  37. package/src/assets/img/paymentMethod/icon6.png +0 -0
  38. package/src/base-client/components/common/XReport/XReportHospitalizationDemo.vue +0 -45
  39. package/src/base-client/components/his/XCharge/testConfig.js +0 -149
@@ -1,203 +1,225 @@
1
- <template>
2
- <div id="beingProcessed">
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 #leftButton>
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
- <!-- 地址选择器 -->
35
- <address-select ref="addressSelect" @setAddress="setForm"></address-select>
36
- </div>
37
- </template>
38
-
39
- <script>
40
- import WorkflowDetail from '@vue2-client/pages/WorkflowDetail/WorkflowDetail.vue'
41
- import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
42
- import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
43
- import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
44
- import { mapState } from 'vuex'
45
- import AddressSelect from '@vue2-client/pages/addressSelect/index.vue'
46
- import XFormGroup from '@vue2-client/base-client/components/common/XFormGroup'
47
-
48
- export default {
49
- name: 'Apply',
50
- components: {
51
- XFormTable,
52
- XAddNativeForm,
53
- WorkflowDetail,
54
- AddressSelect,
55
- XFormGroup,
56
- },
57
- // 透传给子组件的方法(目前XFormTable接了)
58
- provide () {
59
- return {
60
- generalFunction: {
61
- setCancel: this.setCancel,
62
- chargeAdd: this.chargeAdd,
63
- addUser: this.addUser,
64
- editUser: this.editUser,
65
- addContract: this.addContract,
66
- addcharge: this.addcharge,
67
- updateFormData: this.updateFormData,
68
- chargeCancel: this.chargeCancel,
69
- chargeBatchRefund: this.chargeBatchRefund,
70
- }
71
- }
72
- },
73
- data () {
74
- return {
75
- // 查询配置文件名
76
- queryParamsName: 'ApplyProcessCRUD',
77
- // 发起报建弹框控制
78
- applyAddFlag: false,
79
- // 提交加载动画
80
- confirmLoading: false,
81
- refreshFn: null,
82
- chargeVisible: false
83
- }
84
- },
85
- computed: {
86
- ...mapState('account', { currUser: 'user' }),
87
- },
88
- methods: {
89
- addApply () {
90
- console.log('打开了吗')
91
- this.applyAddFlag = true
92
- this.$nextTick(
93
- () => {
94
- getConfigByName('addApplyForm', 'af-apply', (res) => {
95
- this.$refs.xForm.init({
96
- businessType: '新增',
97
- title: '发起报建',
98
- ...res
99
- })
100
- })
101
- }
102
- )
103
- },
104
- applySubmit (formData) {
105
- runLogic('addApply', formData).then(
106
- res => {
107
- this.$message.success('发起报建成功')
108
- this.$refs.xFormTable.refreshTable(true)
109
- this.applyAddFlag = false
110
- }
111
- ).catch(() => {
112
- this.applyAddFlag = false
113
- })
114
- },
115
- success () {
116
- console.log('完工')
117
- },
118
- toDetail (record, id) {
119
- this.$refs.workFlow.init({
120
- workflowId: record.ab_f_workflow_id
121
- })
122
- },
123
- handleFormItemEvent (func, data, value) {
124
- console.log('打印一下:', func, data, value)
125
- if (func === 'selectAddress') {
126
- this.$refs.addressSelect.setFormShow()
127
- }
128
- },
129
- setForm (record) {
130
- this.$refs.workFlow.setFormValue({ address: record.f_address, address_id: record.f_address_id })
131
- },
132
- nextClick ({ form, formStep, workflowId }) {
133
- console.log('success', form, formStep, workflowId)
134
- const data = {
135
- workflowId,
136
- form,
137
- formStep
138
- }
139
- runLogic('applySubmitAfter', data, 'af-apply').then(
140
- res => {
141
- if (res) {
142
- // this.$message.success('提交成功!')
143
- this.$refs.xFormTable.refreshTable(true)
144
- }
145
- }
146
- )
147
- },
148
- // 协议作废
149
- setCancel (record, refreshFn) {
150
- this.$refs.cancelContract.setCancel(record, refreshFn)
151
- },
152
- // 增值收费新增
153
- chargeAdd (refreshFn) {
154
- this.$refs.addCharge.chargeAdd(this.$refs.workFlow.workflowId, refreshFn)
155
- },
156
- // 协议新增
157
- addContract (refreshFn) {
158
- this.$refs.addContract.addContract(this.$refs.workFlow.workflowId, refreshFn)
159
- },
160
- // 新增用户
161
- addUser (refreshFn) {
162
- if (this.$refs.workFlow.$refs.baseInformation.details.f_workflow_define_name != '团购报建流程') {
163
- this.$message.success('只有团购报建流程才可以新增用户信息!')
164
- return
165
- }
166
- this.$refs.addUser.addUser(this.$refs.workFlow.workflowId, refreshFn)
167
- },
168
- // 编辑用户
169
- editUser (record, refreshFn) {
170
- this.$refs.addUser.editUser(record, refreshFn)
171
- },
172
- // 新增收费
173
- addcharge (refreshFn) {
174
- this.$refs.addApplyCharge.addcharge(this.$refs.workFlow.workflowId, refreshFn)
175
- },
176
- // 报装缴费页面初始化
177
- updateFormData (workflowId) {
178
- if (this.$refs.workFlow.$refs.baseInformation.details.f_sub_state == '报装缴费') {
179
- runLogic('getApplyBusinessrecode', { f_workflow_id: workflowId }, 'af-apply').then((res) => {
180
- this.$refs.workFlow.$refs.workflowHandle.$refs.xAddForm.setForm(res)
181
- })
182
- } else if (this.$refs.workFlow.$refs.baseInformation.details.f_sub_state == '合同签订') {
183
- runLogic('queryAgreementAmount', { workflowId: workflowId }, 'af-apply').then((res) => {
184
- this.$refs.workFlow.$refs.workflowHandle.$refs.xAddForm.setForm({ add_amount: res[0].f_contract_money })
185
- })
186
- }
187
- },
188
- // 增值收费单个数据的撤销功能
189
- chargeCancel (record, refreshFn) {
190
- this.$refs.cancel.chargeCancel(record, refreshFn)
191
- },
192
- // 批量撤销(退费)
193
- chargeBatchRefund (selectedRowKeys, selectedRows, refreshFn) {
194
- if (selectedRowKeys.length === 0 || selectedRows.length === 0) {
195
- this.$message.warn('请选择要退费的记录', 5)
196
- return
197
- }
198
- const workflowId = this.$refs.workFlow.workflowId
199
- this.$refs.batchRefund.selectRow(selectedRowKeys, selectedRows, refreshFn, workflowId)
200
- }
201
- }
202
- }
203
- </script>
1
+ <template>
2
+ <div id="beingProcessed">
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 #leftButton>
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
+ <!-- 地址选择器 -->
35
+ <address-select ref="addressSelect" @setAddress="setForm"></address-select>
36
+ <!-- 协议新增功能 -->
37
+ <add-contract
38
+ ref="addContract"
39
+ table="报建流程"
40
+ @upFormData="upFormData"
41
+ ></add-contract>
42
+ <!-- 协议作废功能 -->
43
+ <cancel-contract ref="cancelContract"></cancel-contract>
44
+ <!-- 增值收费新增 -->
45
+ <add-charge ref="addCharge"></add-charge>
46
+ <!-- 新增/编辑 用户信息 -->
47
+ <add-user ref="addUser"></add-user>
48
+ <!-- 新增 收费信息 -->
49
+ <add-apply-charge ref="addApplyCharge"></add-apply-charge>
50
+ <!-- 增值收费撤销 -->
51
+ <cancel ref="cancel"></cancel>
52
+ <!-- 增值收费批量撤销 -->
53
+ <batch-refund ref="batchRefund"></batch-refund>
54
+ </div>
55
+ </template>
56
+
57
+ <script>
58
+ import WorkflowDetail from '@vue2-client/pages/WorkflowDetail/WorkflowDetail.vue'
59
+ import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
60
+ import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
61
+ import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
62
+ import { mapState } from 'vuex'
63
+ import AddressSelect from '@vue2-client/pages/addressSelect/index.vue'
64
+ import XFormGroup from '@vue2-client/base-client/components/common/XFormGroup'
65
+
66
+ export default {
67
+ name: 'Apply',
68
+ components: {
69
+ XFormTable,
70
+ XAddNativeForm,
71
+ WorkflowDetail,
72
+ AddressSelect,
73
+ XFormGroup,
74
+ },
75
+ // 透传给子组件的方法(目前XFormTable接了)
76
+ provide () {
77
+ return {
78
+ generalFunction: {
79
+ setCancel: this.setCancel,
80
+ chargeAdd: this.chargeAdd,
81
+ addUser: this.addUser,
82
+ editUser: this.editUser,
83
+ addContract: this.addContract,
84
+ addcharge: this.addcharge,
85
+ updateFormData: this.updateFormData,
86
+ chargeCancel: this.chargeCancel,
87
+ chargeBatchRefund: this.chargeBatchRefund,
88
+ updateContractFormData: this.updateContractFormData,
89
+ }
90
+ }
91
+ },
92
+ data () {
93
+ return {
94
+ // 查询配置文件名
95
+ queryParamsName: 'ApplyProcessCRUD',
96
+ // 发起报建弹框控制
97
+ applyAddFlag: false,
98
+ // 提交加载动画
99
+ confirmLoading: false,
100
+ refreshFn: null,
101
+ chargeVisible: false
102
+ }
103
+ },
104
+ computed: {
105
+ ...mapState('account', { currUser: 'user' }),
106
+ },
107
+ methods: {
108
+ addApply () {
109
+ console.log('打开了吗')
110
+ this.applyAddFlag = true
111
+ this.$nextTick(
112
+ () => {
113
+ getConfigByName('addApplyForm', 'af-apply', (res) => {
114
+ this.$refs.xForm.init({
115
+ businessType: '新增',
116
+ title: '发起报建',
117
+ ...res
118
+ })
119
+ })
120
+ }
121
+ )
122
+ },
123
+ applySubmit (formData) {
124
+ runLogic('addApply', formData).then(
125
+ res => {
126
+ this.$message.success('发起报建成功')
127
+ this.$refs.xFormTable.refreshTable(true)
128
+ this.applyAddFlag = false
129
+ }
130
+ ).catch(() => {
131
+ this.applyAddFlag = false
132
+ })
133
+ },
134
+ success () {
135
+ console.log('完工')
136
+ },
137
+ toDetail (record, id) {
138
+ this.$refs.workFlow.init({
139
+ workflowId: record.ab_f_workflow_id,
140
+ stepId: record.ws_f_step_id
141
+ })
142
+ },
143
+ handleFormItemEvent (func, data, value) {
144
+ console.log('打印一下:', func, data, value)
145
+ if (func === 'selectAddress') {
146
+ this.$refs.addressSelect.setFormShow()
147
+ }
148
+ },
149
+ setForm (record) {
150
+ this.$refs.workFlow.setFormValue({ address: record.f_address, address_id: record.f_address_id })
151
+ },
152
+ nextClick ({ form, formStep, workflowId }) {
153
+ console.log('success', form, formStep, workflowId)
154
+ // const data = {
155
+ // workflowId,
156
+ // form,
157
+ // formStep
158
+ // }
159
+ // runLogic('applySubmitAfter', data, 'af-apply').then(
160
+ // res => {
161
+ // if (res) {
162
+ // // this.$message.success('提交成功!')
163
+ // this.$refs.xFormTable.refreshTable(true)
164
+ // }
165
+ // }
166
+ // )
167
+ },
168
+ // 协议作废
169
+ setCancel (record, refreshFn) {
170
+ this.$refs.cancelContract.setCancel(record, refreshFn)
171
+ },
172
+ // 增值收费新增
173
+ chargeAdd (refreshFn) {
174
+ this.$refs.addCharge.chargeAdd(this.$refs.workFlow.workflowId, refreshFn)
175
+ },
176
+ // 协议新增
177
+ addContract (refreshFn) {
178
+ this.$refs.addContract.addContract(this.$refs.workFlow.workflowId, refreshFn)
179
+ },
180
+ // 新增用户
181
+ addUser (refreshFn) {
182
+ if (this.$refs.workFlow.$refs.baseInformation.details.f_workflow_define_name != '团购报建流程') {
183
+ this.$message.success('只有团购报建流程才可以新增用户信息!')
184
+ return
185
+ }
186
+ this.$refs.addUser.addUser(this.$refs.workFlow.workflowId, refreshFn)
187
+ },
188
+ // 编辑用户
189
+ editUser (record, refreshFn, showForm) {
190
+ this.$refs.addUser.editUser(record, refreshFn, showForm)
191
+ },
192
+ // 新增收费
193
+ addcharge (refreshFn) {
194
+ this.$refs.addApplyCharge.addcharge(this.$refs.workFlow.workflowId, refreshFn)
195
+ },
196
+ // 报装缴费页面初始化
197
+ updateFormData (workflowId) {
198
+ runLogic('getApplyBusinessrecode', { f_workflow_id: workflowId }, 'af-apply').then((res) => {
199
+ this.$refs.workFlow.$refs.workflowHandle.$refs.xAddForm.setForm(res)
200
+ })
201
+ },
202
+ // 合同签订页面初始化
203
+ updateContractFormData (param) {
204
+ this.$refs.workFlow.$refs.workflowHandle.$refs.xAddForm.setForm(param)
205
+ },
206
+ // 补充协议回更表单数据
207
+ upFormData (record) {
208
+ this.$refs.workFlow.$refs.workflowHandle.$refs.xAddForm.setForm(record)
209
+ },
210
+ // 增值收费单个数据的撤销功能
211
+ chargeCancel (record, refreshFn) {
212
+ this.$refs.cancel.chargeCancel(record, refreshFn)
213
+ },
214
+ // 批量撤销(退费)
215
+ chargeBatchRefund (selectedRowKeys, selectedRows, refreshFn) {
216
+ if (selectedRowKeys.length === 0 || selectedRows.length === 0) {
217
+ this.$message.warn('请选择要退费的记录', 5)
218
+ return
219
+ }
220
+ const workflowId = this.$refs.workFlow.workflowId
221
+ this.$refs.batchRefund.selectRow(selectedRowKeys, selectedRows, refreshFn, workflowId)
222
+ }
223
+ }
224
+ }
225
+ </script>
@@ -60,15 +60,12 @@ path: 'example',
60
60
  // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
61
61
  // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
62
62
  // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
63
- // component: () => import('@vue2-client/base-client/components/common/HIS/demo.vue'),
64
- // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
63
+ component: () => import('@vue2-client/base-client/components/common/XDataCard/test.vue'),
65
64
  // component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
66
65
  // component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
67
66
  // component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
68
- component: () => import('@vue2-client/base-client/components/common/XReport/XReportHospitalizationDemo.vue'),
69
67
  // component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
70
68
  // component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
71
- // component: () => import('@vue2-client/base-client/components/his/XCharge/XChargeDemo.vue'),
72
69
  // component: () => import('@vue2-client/base-client/components/his/XImportExcelButton/XFrontImportExcelDemo.vue'),
73
70
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
74
71
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
@@ -347,4 +347,6 @@ export function fileDeleteV4 (parameter, serviceName = process.env.VUE_APP_SYSTE
347
347
  return del(apiPre + serviceName + '/' + commonApi.deleteFile, parameter)
348
348
  }
349
349
 
350
+ export const logicPost = (logicName, params = {}) => post(`/api/af-safecheck/logic/${logicName}`, params)
351
+
350
352
  export { commonApi }
@@ -1,45 +0,0 @@
1
- <template>
2
- <div id="xreport-hosp-demo">
3
- <a-space style="margin-bottom: 12px;">
4
- <a-button type="primary" @click="doInit">手动初始化</a-button>
5
- </a-space>
6
- <XReport
7
- ref="reportRef"
8
- :edit-mode="true"
9
- :show-save-button="true"
10
- :show-img-in-cell="false"
11
- :use-oss-for-img="false"
12
- server-name="af-his"
13
- @updateImg="onUpdateImg"/>
14
- </div>
15
- </template>
16
-
17
- <script setup>
18
- import { ref } from 'vue'
19
- import XReport from '@vue2-client/base-client/components/common/XReport'
20
-
21
- const reportRef = ref(null)
22
-
23
- const payload = {
24
- arr: [
25
- { BQ: '病房区', RY: 0, CY: 0, CW: 0, SW: 0, SS: 0, ZC: 0, ZR: 0, ZY: 0 },
26
- { BQ: '感染科', RY: 0, CY: 0, CW: 0, SW: 0, SS: 0, ZC: 0, ZR: 0, ZY: 0 },
27
- { BQ: '骨科病区', RY: 0, CY: 0, CW: 0, SW: 0, SS: 0, ZC: 0, ZR: 0, ZY: 0 },
28
- { BQ: '呼吸科病区', RY: 0, CY: 0, CW: 0, SW: 0, SS: 0, ZC: 0, ZR: 0, ZY: 0 },
29
- { BQ: '急症科病区', RY: 0, CY: 0, CW: 0, SW: 0, SS: 0, ZC: 0, ZR: 0, ZY: 0 },
30
- { BQ: '内科二病区', RY: 0, CY: 0, CW: 0, SW: 0, SS: 0, ZC: 0, ZR: 0, ZY: 0 }
31
- ]
32
- }
33
-
34
- const doInit = async () => {
35
- if (!reportRef.value || !reportRef.value.init) return
36
- await reportRef.value.init({
37
- configName: 'hospitalizationStatsReport',
38
- configData: payload
39
- })
40
- }
41
-
42
- const onUpdateImg = data => {
43
- console.warn('updateImg:', data)
44
- }
45
- </script>