vue2-client 1.12.71 → 1.12.73

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.
@@ -1,76 +1,76 @@
1
- <template>
2
- <div id="test" v-if="showReport">
3
- <XReport
4
- @updateImg="updateImg"
5
- ref="main"
6
- :use-oss-for-img="false"
7
- config-name="outpatientWait"
8
- server-name="af-his"
9
- :show-img-in-cell="true"
10
- :display-only="displayOnly"
11
- :edit-mode="false"
12
- :show-save-button="false"
13
- :dont-format="true"/>
14
- </div>
15
- </template>
16
-
17
- <script>
18
- import XReport from '@vue2-client/base-client/components/common/XReportGrid/XReport'
19
- // eslint-disable-next-line no-unused-vars
20
- import { exportHTMLNodeToPDF } from '@vue2-client/utils/htmlToPDFApi'
21
-
22
- export default {
23
- name: 'Example',
24
- components: {
25
- XReport
26
- },
27
- mounted () {
28
- console.log(this.$route)
29
- },
30
- data () {
31
- return {
32
- test: {
33
- title: {
34
- type: 'titleKey',
35
- value: 'f_type'
36
- },
37
- designMode: 'json',
38
- },
39
- total: 1,
40
- registerMap: [],
41
- displayOnly: true,
42
- showReport: true
43
- }
44
- },
45
- methods: {
46
- updateImg (data) {
47
- console.warn('demo', data)
48
- },
49
- testExport () {
50
- this.showReport = false
51
- this.displayOnly = true
52
- this.$nextTick(() => {
53
- this.showReport = true
54
- setTimeout(() => {
55
- exportHTMLNodeToPDF('123', '#test')
56
- this.showReport = false
57
- this.displayOnly = false
58
- this.$nextTick(() => {
59
- this.showReport = true
60
- })
61
- }, 500)
62
- })
63
- },
64
- testSave () {
65
- const result = []
66
- this.registerMap.forEach(item => {
67
- result.push(item.exportData())
68
- })
69
- console.warn('save', result)
70
- }
71
- }
72
- }
73
- </script>
74
- <style scoped>
75
-
76
- </style>
1
+ <template>
2
+ <div id="test" v-if="showReport">
3
+ <XReport
4
+ @updateImg="updateImg"
5
+ ref="main"
6
+ :use-oss-for-img="false"
7
+ config-name="outpatientWait"
8
+ server-name="af-his"
9
+ :show-img-in-cell="true"
10
+ :display-only="displayOnly"
11
+ :edit-mode="false"
12
+ :show-save-button="false"
13
+ :dont-format="true"/>
14
+ </div>
15
+ </template>
16
+
17
+ <script>
18
+ import XReport from '@vue2-client/base-client/components/common/XReportGrid/XReport'
19
+ // eslint-disable-next-line no-unused-vars
20
+ import { exportHTMLNodeToPDF } from '@vue2-client/utils/htmlToPDFApi'
21
+
22
+ export default {
23
+ name: 'Example',
24
+ components: {
25
+ XReport
26
+ },
27
+ mounted () {
28
+ console.log(this.$route)
29
+ },
30
+ data () {
31
+ return {
32
+ test: {
33
+ title: {
34
+ type: 'titleKey',
35
+ value: 'f_type'
36
+ },
37
+ designMode: 'json',
38
+ },
39
+ total: 1,
40
+ registerMap: [],
41
+ displayOnly: true,
42
+ showReport: true
43
+ }
44
+ },
45
+ methods: {
46
+ updateImg (data) {
47
+ console.warn('demo', data)
48
+ },
49
+ testExport () {
50
+ this.showReport = false
51
+ this.displayOnly = true
52
+ this.$nextTick(() => {
53
+ this.showReport = true
54
+ setTimeout(() => {
55
+ exportHTMLNodeToPDF('123', '#test')
56
+ this.showReport = false
57
+ this.displayOnly = false
58
+ this.$nextTick(() => {
59
+ this.showReport = true
60
+ })
61
+ }, 500)
62
+ })
63
+ },
64
+ testSave () {
65
+ const result = []
66
+ this.registerMap.forEach(item => {
67
+ result.push(item.exportData())
68
+ })
69
+ console.warn('save', result)
70
+ }
71
+ }
72
+ }
73
+ </script>
74
+ <style scoped>
75
+
76
+ </style>
@@ -0,0 +1,64 @@
1
+ <template>
2
+ <a-card :bordered="false" v-if="currUserInfo">
3
+ <x-form-table
4
+ title="价格调整查询"
5
+ :queryParamsName="queryParamsName"
6
+ :fixedQueryForm="fixedQueryForm"
7
+ @action="action"
8
+ service-name="af-revenue"
9
+ ref="xFormTable">
10
+ </x-form-table>
11
+ </a-card>
12
+ </template>
13
+
14
+ <script>
15
+ import { mapState } from 'vuex'
16
+
17
+ export default {
18
+ name: 'PriceAdjustments',
19
+ components: {
20
+ XFormTable: () => import('@vue2-client/base-client/components/common/XFormTable/XFormTable.vue')
21
+ },
22
+ data() {
23
+ return {
24
+ // 查询配置名称
25
+ queryParamsName: 'PriceAdjustmentsCRUD',
26
+ // 查询表单固定值
27
+ fixedQueryForm: {p_f_userinfo_id: this.currUserInfo.f_userinfo_id},
28
+ // 是否显示详情抽屉
29
+ detailVisible: false,
30
+ // 当前记录
31
+ record: {}
32
+ }
33
+ },
34
+ props: {
35
+ currUserInfo: {
36
+ type: Object,
37
+ default: () => undefined
38
+ }
39
+ },
40
+ mounted() {
41
+ this.$refs.xFormTable.refresh(true)
42
+ },
43
+ methods: {
44
+ action(record, id, actionType) {
45
+ this.detailVisible = true
46
+ console.log('触发了详情操作', record, id, actionType)
47
+ },
48
+ onClose() {
49
+ this.detailVisible = false
50
+ // 关闭详情之后重新查询表单
51
+ this.$refs.xFormTable.refreshTable(true)
52
+ }
53
+ },
54
+
55
+ computed: {
56
+ ...mapState('account', {currUser: 'user'}),
57
+ ...mapState('setting', {isMobile: 'isMobile'})
58
+ },
59
+ }
60
+ </script>
61
+
62
+ <style scoped>
63
+
64
+ </style>
@@ -0,0 +1,64 @@
1
+ <template>
2
+ <a-card :bordered="false" v-if="currUserInfo">
3
+ <x-form-table
4
+ title="异常报警查询"
5
+ :queryParamsName="queryParamsName"
6
+ :fixedQueryForm="fixedQueryForm"
7
+ @action="action"
8
+ service-name="af-revenue"
9
+ ref="xFormTable">
10
+ </x-form-table>
11
+ </a-card>
12
+ </template>
13
+
14
+ <script>
15
+ import { mapState } from 'vuex'
16
+
17
+ export default {
18
+ name: 'UserException',
19
+ components: {
20
+ XFormTable: () => import('@vue2-client/base-client/components/common/XFormTable/XFormTable.vue')
21
+ },
22
+ data() {
23
+ return {
24
+ // 查询配置名称
25
+ queryParamsName: 'UserException360CRUD',
26
+ // 查询表单固定值
27
+ fixedQueryForm: {e_f_user_id: this.currUserInfo.f_user_id},
28
+ // 是否显示详情抽屉
29
+ detailVisible: false,
30
+ // 当前记录
31
+ record: {}
32
+ }
33
+ },
34
+ props: {
35
+ currUserInfo: {
36
+ type: Object,
37
+ default: () => undefined
38
+ }
39
+ },
40
+ mounted() {
41
+ this.$refs.xFormTable.refresh(true)
42
+ },
43
+ methods: {
44
+ action(record, id, actionType) {
45
+ this.detailVisible = true
46
+ console.log('触发了详情操作', record, id, actionType)
47
+ },
48
+ onClose() {
49
+ this.detailVisible = false
50
+ // 关闭详情之后重新查询表单
51
+ this.$refs.xFormTable.refreshTable(true)
52
+ }
53
+ },
54
+
55
+ computed: {
56
+ ...mapState('account', {currUser: 'user'}),
57
+ ...mapState('setting', {isMobile: 'isMobile'})
58
+ },
59
+ }
60
+ </script>
61
+
62
+ <style scoped>
63
+
64
+ </style>
@@ -32,6 +32,8 @@ import MeterParamRecordQuery from '@vue2-client/pages/userInfoDetailManage/Meter
32
32
  import OtherChargeRecordQuery from '@vue2-client/pages/userInfoDetailManage/OtherChargeRecordQuery'
33
33
  import TransferRecordQuery from '@vue2-client/pages/userInfoDetailManage/TransferRecordQuery'
34
34
  import WatchCollectionRecordQuery from '@vue2-client/pages/userInfoDetailManage/WatchCollectionRecordQuery'
35
+ import UserException from '@vue2-client/pages/userInfoDetailManage/UserException'
36
+ import PriceAdjustments from '@vue2-client/pages/userInfoDetailManage/PriceAdjustments'
35
37
 
36
38
  export default {
37
39
  name: 'UserInfoDetailQueryTabs',
@@ -52,6 +54,8 @@ export default {
52
54
  WatchCollectionRecordQuery,
53
55
  TransferRecordQuery,
54
56
  UserHandRecordQuery,
57
+ UserException,
58
+ PriceAdjustments,
55
59
  },
56
60
  props: {
57
61
  userInfo: {
@@ -84,7 +88,7 @@ export default {
84
88
  { key: '7', label: '换表查询', permission: '换表查询', component: 'ChangeMeterRecordQuery' },
85
89
  { key: '8', label: '其他收费', permission: '其他收费', component: 'OtherChargeRecordQuery' },
86
90
  { key: '9', label: '过户查询', permission: '过户查询', component: 'TransferRecordQuery' },
87
- { key: '10', label: '档案变更记录', permission: '变更记录', component: 'InfoChangeRecordQuery' },
91
+ { key: '10', label: '档案变更记录', permission: '变更记录', component: 'UserException' },
88
92
  {
89
93
  key: '11',
90
94
  label: '指令查看',
@@ -100,6 +104,8 @@ export default {
100
104
  condition: () => this.userInfo?.f_meter_type === '物联网表'
101
105
  },
102
106
  { key: '13', label: '流量计参数查看', permission: '流量计参数查看', component: 'MeterParamRecordQuery' },
107
+ { key: '14', label: '异常报警', permission: '异常报警', component: 'MeterParamRecordQuery' },
108
+ { key: '15', label: '价格调整', permission: '价格调整', component: 'PriceAdjustments' },
103
109
  ],
104
110
  }
105
111
  },
@@ -1,119 +1,122 @@
1
- const { homePage } = require('../../config')
2
- // 视图组件
3
- const view = {
4
- tabs: () => import('@vue2-client/layouts/tabs'),
5
- blank: () => import('@vue2-client/layouts/BlankView'),
6
- page: () => import('@vue2-client/layouts/PageView'),
7
- // his-web$ceshiGrid?type=GridView&configName=RxPreparedMed
8
- gridView: () => import('@vue2-client/layouts/GridView'),
9
- login: () => import('@vue2-client/pages/login/Login'),
10
- loginv3: () => import('@vue2-client/pages/login/LoginV3')
11
- }
12
- // 动态路由对象定义
13
- const routerResource = {}
14
- // --------------------------------------基本视图组件--------------------------------------
15
- // 空白视图
16
- routerResource.blank = view.blank
17
- // 单页面视图
18
- routerResource.singlePage = view.blank
19
- // 栅格配置视图
20
- routerResource.gridView = view.gridView
21
-
22
- // --------------------------------------仪表盘--------------------------------------
23
- routerResource.dashboard = view.blank
24
- // 工作台
25
- routerResource.workplace = () =>
26
- import('@vue2-client/pages/dashboard/workplace')
27
- // --------------------------------------系统配置--------------------------------------
28
- routerResource.system = view.blank
29
- // 字典管理
30
- routerResource.dictionaryManage = () => import('@vue2-client/pages/system/dictionary')
31
- // 文件管理
32
- routerResource.fileManager = () => import('@vue2-client/pages/system/file')
33
- // 登录日志
34
- routerResource.loginInfor = () => import('@vue2-client/pages/system/monitor/loginInfor')
35
- // 操作日志
36
- routerResource.operLog = () => import('@vue2-client/pages/system/monitor/operLog')
37
- // 系统问题反馈工单
38
- routerResource.submitTicket = () => import('@vue2-client/pages/system/ticket')
39
- // 通用服务评价
40
- routerResource.ServiceReview = () => import('@vue2-client/pages/ServiceReview')
41
- // 系统设置
42
- routerResource.settings = () => import('@vue2-client/pages/system/settings')
43
- // AMIS示例页面
44
- routerResource.amisDemo = () => import('@vue2-client/pages/AMisDemo/AMisDemo')
45
- // 页面编辑器
46
- routerResource.editablePage = () => import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
47
- // 数据检索
48
- routerResource.dynamicStatistics = () => import('@vue2-client/pages/DynamicStatistics')
49
- // 数据检索(新)
50
- routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynamicStatistics')
51
- // 示例页面
52
- routerResource.example = {
53
- path: 'example',
54
- name: '示例主页面',
55
- // component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
56
- // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
57
- // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
58
- // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
59
- // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
60
- // component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
61
- // component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
62
- // component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
63
- // component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
64
- // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
65
- // component: () => import('@vue2-client/base-client/components/common/XConversation/XConversationDemo.vue'),
66
- // component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
67
- // component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
68
- // component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
69
- // component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
70
- // component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
71
- // component: () => import('@vue2-client/components/g2Charts/demo.vue'),
72
- // component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
73
- // component: () => import('@vue2-client/components/FilePreview/FilePreviewDemo.vue'),
74
- component: () => import('@vue2-client/pages/ReportGrid/index.vue'),
75
- }
76
- // routerResource.example = () =>
77
- // import('@vue2-client/pages/Example')
78
- routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
79
-
80
- routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
81
-
82
- routerResource.XTab = () => import('@vue2-client/base-client/components/common/XTab/XTabDemo')
83
-
84
- // 基础路由组件注册
85
- const routerMap = {
86
- login: {
87
- authority: '*',
88
- path: '/login',
89
- component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
90
- ? view.loginv3 : view.login
91
- },
92
- root: {
93
- path: '/',
94
- name: '首页',
95
- redirect: homePage,
96
- component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
97
- },
98
- exp403: {
99
- authority: '*',
100
- name: 'exp403',
101
- path: '403',
102
- component: () =>
103
- import('@vue2-client/pages/exception/403')
104
- },
105
- exp404: {
106
- name: 'exp404',
107
- path: '404',
108
- component: () =>
109
- import('@vue2-client/pages/exception/404')
110
- },
111
- exp500: {
112
- name: 'exp500',
113
- path: '500',
114
- component: () =>
115
- import('@vue2-client/pages/exception/500')
116
- }
117
- }
118
- Object.assign(routerMap, routerResource)
119
- export default routerMap
1
+ const { homePage } = require('../../config')
2
+ // 视图组件
3
+ const view = {
4
+ tabs: () => import('@vue2-client/layouts/tabs'),
5
+ blank: () => import('@vue2-client/layouts/BlankView'),
6
+ page: () => import('@vue2-client/layouts/PageView'),
7
+ // his-web$ceshiGrid?type=GridView&configName=RxPreparedMed
8
+ gridView: () => import('@vue2-client/layouts/GridView'),
9
+ login: () => import('@vue2-client/pages/login/Login'),
10
+ loginv3: () => import('@vue2-client/pages/login/LoginV3')
11
+ }
12
+ // 动态路由对象定义
13
+ const routerResource = {}
14
+ // --------------------------------------基本视图组件--------------------------------------
15
+ // 空白视图
16
+ routerResource.blank = view.blank
17
+ // 单页面视图
18
+ routerResource.singlePage = view.blank
19
+ // 栅格配置视图
20
+ routerResource.gridView = view.gridView
21
+
22
+ // --------------------------------------仪表盘--------------------------------------
23
+ routerResource.dashboard = view.blank
24
+ // 工作台
25
+ routerResource.workplace = () =>
26
+ import('@vue2-client/pages/dashboard/workplace')
27
+ // --------------------------------------系统配置--------------------------------------
28
+ routerResource.system = view.blank
29
+ // 字典管理
30
+ routerResource.dictionaryManage = () => import('@vue2-client/pages/system/dictionary')
31
+ // 文件管理
32
+ routerResource.fileManager = () => import('@vue2-client/pages/system/file')
33
+ // 登录日志
34
+ routerResource.loginInfor = () => import('@vue2-client/pages/system/monitor/loginInfor')
35
+ // 操作日志
36
+ routerResource.operLog = () => import('@vue2-client/pages/system/monitor/operLog')
37
+ // 系统问题反馈工单
38
+ routerResource.submitTicket = () => import('@vue2-client/pages/system/ticket')
39
+ // 通用服务评价
40
+ routerResource.ServiceReview = () => import('@vue2-client/pages/ServiceReview')
41
+ // 系统设置
42
+ routerResource.settings = () => import('@vue2-client/pages/system/settings')
43
+ // AMIS示例页面
44
+ routerResource.amisDemo = () => import('@vue2-client/pages/AMisDemo/AMisDemo')
45
+ // 页面编辑器
46
+ routerResource.editablePage = () => import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
47
+ // 数据检索
48
+ routerResource.dynamicStatistics = () => import('@vue2-client/pages/DynamicStatistics')
49
+ // 数据检索(新)
50
+ routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynamicStatistics')
51
+ // 示例页面
52
+ routerResource.example = {
53
+ path: 'example',
54
+ name: '示例主页面',
55
+ // component: () => import('@vue2-client/base-client/components/his/XList/XList.vue'),
56
+ // component: () => import('@vue2-client/base-client/components/common/XCollapse/XCollapse.vue'),
57
+ // component: () => import('@vue2-client/base-client/components/common/XDataCard/XDataCard.vue'),
58
+ // component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
59
+ // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
60
+ // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
61
+ // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
62
+ // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
63
+ // component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
64
+ // component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
65
+ // component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
66
+ // component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
67
+ // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
68
+ // component: () => import('@vue2-client/base-client/components/common/XConversation/XConversationDemo.vue'),
69
+ // component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
70
+ // component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
71
+ // component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
72
+ // component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
73
+ // component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
74
+ // component: () => import('@vue2-client/components/g2Charts/demo.vue'),
75
+ // component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
76
+ // component: () => import('@vue2-client/components/FilePreview/FilePreviewDemo.vue'),
77
+ component: () => import('@vue2-client/pages/ReportGrid/index.vue')
78
+ }
79
+ // routerResource.example = () =>
80
+ // import('@vue2-client/pages/Example')
81
+ routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
82
+
83
+ routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
84
+
85
+ routerResource.XTab = () => import('@vue2-client/base-client/components/common/XTab/XTabDemo')
86
+
87
+ // 基础路由组件注册
88
+ const routerMap = {
89
+ login: {
90
+ authority: '*',
91
+ path: '/login',
92
+ component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
93
+ ? view.loginv3 : view.login
94
+ },
95
+ root: {
96
+ path: '/',
97
+ name: '首页',
98
+ redirect: homePage,
99
+ component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
100
+ },
101
+ exp403: {
102
+ authority: '*',
103
+ name: 'exp403',
104
+ path: '403',
105
+ component: () =>
106
+ import('@vue2-client/pages/exception/403')
107
+ },
108
+ exp404: {
109
+ name: 'exp404',
110
+ path: '404',
111
+ component: () =>
112
+ import('@vue2-client/pages/exception/404')
113
+ },
114
+ exp500: {
115
+ name: 'exp500',
116
+ path: '500',
117
+ component: () =>
118
+ import('@vue2-client/pages/exception/500')
119
+ }
120
+ }
121
+ Object.assign(routerMap, routerResource)
122
+ export default routerMap