vue2-client 1.14.36 → 1.14.38

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,67 +1,67 @@
1
- <template>
2
- <x-tree-view ref="xTreeView" @itemChecked="itemChecked">
3
- <x-add-native-form ref="nativeForm" />
4
- </x-tree-view>
5
- </template>
6
-
7
- <script>
8
-
9
- import XTreeView from '@vue2-client/base-client/components/layout/XTreeView'
10
- import { mapState } from 'vuex'
11
- import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
12
- import { getConfigByName } from '@vue2-client/services/api/common'
13
-
14
- export default {
15
- components: {
16
- XAddNativeForm,
17
- XTreeView,
18
- },
19
- data () {
20
- return {
21
- currentItem: undefined,
22
- }
23
- },
24
- computed: {
25
- ...mapState('account', { currUser: 'user' }),
26
- ...mapState('setting', ['isMobile'])
27
- },
28
- mounted () {
29
- this.initView()
30
- },
31
- methods: {
32
- // 初始化组件
33
- initView () {
34
- this.$refs.xTreeView.init({
35
- configName: 'templateTreeConfig',
36
- serviceName: 'af-his',
37
- env: 'dev',
38
- })
39
- },
40
- itemChecked (node) {
41
- this.currentItem = node
42
- if (node.type === 'all' || node.type === 'folder') {
43
- this.$refs.nativeForm.close()
44
- return
45
- }
46
- getConfigByName('编辑模板数据Form', 'af-his', (res) => {
47
- this.$refs.nativeForm.init({
48
- serviceName: 'af-his',
49
- formItems: res.formJson,
50
- showSubmitBtn: false,
51
- title: '收费',
52
- businessType: '新增',
53
- getDataParams: {
54
- content: {
55
- pms_patient_id: 1,
56
- template_id: node.id
57
- }
58
- }
59
- })
60
- })
61
- }
62
- }
63
- }
64
- </script>
65
-
66
- <style>
67
- </style>
1
+ <template>
2
+ <x-tree-view ref="xTreeView" @itemChecked="itemChecked">
3
+ <x-add-native-form ref="nativeForm" />
4
+ </x-tree-view>
5
+ </template>
6
+
7
+ <script>
8
+
9
+ import XTreeView from '@vue2-client/base-client/components/layout/XTreeView'
10
+ import { mapState } from 'vuex'
11
+ import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
12
+ import { getConfigByName } from '@vue2-client/services/api/common'
13
+
14
+ export default {
15
+ components: {
16
+ XAddNativeForm,
17
+ XTreeView,
18
+ },
19
+ data () {
20
+ return {
21
+ currentItem: undefined,
22
+ }
23
+ },
24
+ computed: {
25
+ ...mapState('account', { currUser: 'user' }),
26
+ ...mapState('setting', ['isMobile'])
27
+ },
28
+ mounted () {
29
+ this.initView()
30
+ },
31
+ methods: {
32
+ // 初始化组件
33
+ initView () {
34
+ this.$refs.xTreeView.init({
35
+ configName: 'templateTreeConfig',
36
+ serviceName: 'af-his',
37
+ env: 'dev',
38
+ })
39
+ },
40
+ itemChecked (node) {
41
+ this.currentItem = node
42
+ if (node.type === 'all' || node.type === 'folder') {
43
+ this.$refs.nativeForm.close()
44
+ return
45
+ }
46
+ getConfigByName('编辑模板数据Form', 'af-his', (res) => {
47
+ this.$refs.nativeForm.init({
48
+ serviceName: 'af-his',
49
+ formItems: res.formJson,
50
+ showSubmitBtn: false,
51
+ title: '收费',
52
+ businessType: '新增',
53
+ getDataParams: {
54
+ content: {
55
+ pms_patient_id: 1,
56
+ template_id: node.id
57
+ }
58
+ }
59
+ })
60
+ })
61
+ }
62
+ }
63
+ }
64
+ </script>
65
+
66
+ <style>
67
+ </style>
@@ -40,11 +40,12 @@ export default {
40
40
  },
41
41
  created () {
42
42
  getConfigByName('revenueConfig', 'af-revenue', (res) => {
43
- if (res.queryCondition === 'f_userfiles_id') {
43
+ const queryCondition = res.fillCardQueryCondition ? res.fillCardQueryCondition : res.queryCondition
44
+ if (queryCondition === 'f_userfiles_id') {
44
45
  this.fixedQueryForm = { f_f_userfiles_id: this.currUserInfo.f_userfiles_id }
45
- } else if (res.queryCondition === 'f_userinfo_id') {
46
+ } else if (queryCondition === 'f_userinfo_id') {
46
47
  this.fixedQueryForm = { f_f_userinfo_id: this.currUserInfo.f_userinfo_id }
47
- } else if (res.queryCondition === 'f_user_id') {
48
+ } else if (queryCondition === 'f_user_id') {
48
49
  this.fixedQueryForm = { f_f_user_id: this.currUserInfo.f_user_id }
49
50
  }
50
51
  this.$refs.xFormTable.refresh(true)
@@ -40,11 +40,12 @@ export default {
40
40
  },
41
41
  mounted () {
42
42
  getConfigByName('revenueConfig', 'af-revenue', (res) => {
43
- if (res.queryCondition === 'f_userfiles_id') {
43
+ const queryCondition = res.fillGasQueryCondition ? res.fillGasQueryCondition : res.queryCondition
44
+ if (queryCondition === 'f_userfiles_id') {
44
45
  this.fixedQueryForm = { f_f_userfiles_id: this.currUserInfo.f_userfiles_id }
45
- } else if (res.queryCondition === 'f_userinfo_id') {
46
+ } else if (queryCondition === 'f_userinfo_id') {
46
47
  this.fixedQueryForm = { f_f_userinfo_id: this.currUserInfo.f_userinfo_id }
47
- } else if (res.queryCondition === 'f_user_id') {
48
+ } else if (queryCondition === 'f_user_id') {
48
49
  this.fixedQueryForm = { f_f_user_id: this.currUserInfo.f_user_id }
49
50
  }
50
51
  this.$refs.xFormTable.refresh(true)
@@ -40,11 +40,12 @@ export default {
40
40
  },
41
41
  mounted () {
42
42
  getConfigByName('revenueConfig', 'af-revenue', (res) => {
43
- if (res.queryCondition === 'f_userfiles_id') {
43
+ const queryCondition = res.machineRecordQueryCondition ? res.machineRecordQueryCondition : res.queryCondition
44
+ if (queryCondition === 'f_userfiles_id') {
44
45
  this.fixedQueryForm = { mr_f_userfiles_id: this.currUserInfo.f_userfiles_id }
45
- } else if (res.queryCondition === 'f_userinfo_id') {
46
+ } else if (queryCondition === 'f_userinfo_id') {
46
47
  this.fixedQueryForm = { mr_f_userinfo_id: this.currUserInfo.f_userinfo_id }
47
- } else if (res.queryCondition === 'f_user_id') {
48
+ } else if (queryCondition === 'f_user_id') {
48
49
  this.fixedQueryForm = { mr_f_user_id: this.currUserInfo.f_user_id }
49
50
  }
50
51
  })
@@ -40,11 +40,12 @@ export default {
40
40
  },
41
41
  mounted () {
42
42
  getConfigByName('revenueConfig', 'af-revenue', (res) => {
43
- if (res.queryCondition === 'f_userfiles_id') {
43
+ const queryCondition = res.otherChargeQueryCondition ? res.otherChargeQueryCondition : res.queryCondition
44
+ if (queryCondition === 'f_userfiles_id') {
44
45
  this.fixedQueryForm = { o_f_userfiles_id: this.currUserInfo.f_userfiles_id }
45
- } else if (res.queryCondition === 'f_userinfo_id') {
46
+ } else if (queryCondition === 'f_userinfo_id') {
46
47
  this.fixedQueryForm = { o_f_userinfo_id: this.currUserInfo.f_userinfo_id }
47
- } else if (res.queryCondition === 'f_user_id') {
48
+ } else if (queryCondition === 'f_user_id') {
48
49
  this.fixedQueryForm = { o_f_user_id: this.currUserInfo.f_user_id }
49
50
  }
50
51
  this.$refs.xFormTable.refresh(true)
@@ -47,11 +47,12 @@ export default {
47
47
  this.queryParamsName = 'UserChargeRecordQueryCRUD'
48
48
  }
49
49
  getConfigByName('revenueConfig', 'af-revenue', (res) => {
50
- if (res.queryCondition === 'f_userfiles_id') {
50
+ const queryCondition = res.chargeQueryCondition ? res.chargeQueryCondition : res.queryCondition
51
+ if (queryCondition === 'f_userfiles_id') {
51
52
  this.fixedQueryForm = { uc_f_userfiles_id: this.currUserInfo.f_userfiles_id }
52
- } else if (res.queryCondition === 'f_userinfo_id') {
53
+ } else if (queryCondition === 'f_userinfo_id') {
53
54
  this.fixedQueryForm = { uc_f_userinfo_id: this.currUserInfo.f_userinfo_id }
54
- } else {
55
+ } else if (queryCondition === 'f_user_id') {
55
56
  this.fixedQueryForm = { uc_f_user_id: this.currUserInfo.f_user_id }
56
57
  }
57
58
  this.$refs.xFormTable.refresh(true)
@@ -41,6 +41,7 @@ export default {
41
41
  mounted () {
42
42
  getConfigByName('revenueConfig', 'af-revenue', (res) => {
43
43
  console.log(res)
44
+ const queryCondition = res.handQueryCondition ? res.handQueryCondition : res.queryCondition
44
45
  if (this.currUserInfo.f_meter_type === '物联网表') {
45
46
  if (res.newHand) {
46
47
  this.queryParamsName = 'WebUserHandRecordQueryCRUD'
@@ -52,11 +53,11 @@ export default {
52
53
  } else {
53
54
  this.queryParamsName = 'HandRecordQueryCRUD'
54
55
  }
55
- if (res.queryCondition === 'f_userfiles_id') {
56
+ if (queryCondition === 'f_userfiles_id') {
56
57
  this.fixedQueryForm = { h_f_userfiles_id: this.currUserInfo.f_userfiles_id }
57
- } else if (res.queryCondition === 'f_userinfo_id') {
58
+ } else if (queryCondition === 'f_userinfo_id') {
58
59
  this.fixedQueryForm = { h_f_userinfo_id: this.currUserInfo.f_userinfo_id }
59
- } else if (res.queryCondition === 'f_user_id') {
60
+ } else if (queryCondition === 'f_user_id') {
60
61
  this.fixedQueryForm = { h_f_user_id: this.currUserInfo.f_user_id }
61
62
  }
62
63
  this.$refs.xFormTable.refresh(true)
@@ -40,11 +40,12 @@ export default {
40
40
  },
41
41
  async mounted () {
42
42
  await getConfigByNameAsync('revenueConfig', 'af-revenue').then((res) => {
43
- if (res.queryCondition === 'f_userfiles_id') {
43
+ const queryCondition = res.recordQueryCondition ? res.recordQueryCondition : res.queryCondition
44
+ if (queryCondition === 'f_userfiles_id') {
44
45
  this.fixedQueryForm = { uc_f_userfiles_id: this.currUserInfo.f_userfiles_id }
45
- } else if (res.queryCondition === 'f_userinfo_id') {
46
+ } else if (queryCondition === 'f_userinfo_id') {
46
47
  this.fixedQueryForm = { uc_f_userinfo_id: this.currUserInfo.f_userinfo_id }
47
- } else if (res.queryCondition === 'f_user_id') {
48
+ } else if (queryCondition === 'f_user_id') {
48
49
  this.fixedQueryForm = { uc_f_user_id: this.currUserInfo.f_user_id }
49
50
  }
50
51
  })
@@ -143,8 +143,8 @@ export default {
143
143
  handler () {
144
144
  if (this.userInfo) {
145
145
  console.log('userinfo', this.userInfo)
146
- this.openUserBtnShow = this.userInfo.f_meter_type.includes('物联网表') && this.login?.r.includes('开户权限')
147
- this.valveBtnShow = this.userInfo.f_meter_type.includes('物联网表') && this.userInfo.f_user_state !== '停用' && this.login?.r.includes('开关阀权限')
146
+ this.openUserBtnShow = this.userInfo.f_meter_type.includes('物联网表')
147
+ this.valveBtnShow = this.userInfo.f_meter_type.includes('物联网表') && this.userInfo.f_user_state !== '停用'
148
148
  }
149
149
  },
150
150
  deep: true
@@ -277,7 +277,7 @@ export default {
277
277
  },
278
278
  mounted () {},
279
279
  computed: {
280
- ...mapState('account', { currUser: 'user',login: 'login' }),
280
+ ...mapState('account', { currUser: 'user' }),
281
281
  ...mapState('setting', { isMobile: 'isMobile' })
282
282
  }
283
283
  }
@@ -34,6 +34,7 @@
34
34
 
35
35
  <script>
36
36
  import { post } from '@vue2-client/services/api'
37
+ import { del } from '@vue2-client/services/api/restTools'
37
38
  export default {
38
39
  props: {
39
40
  currUserInfo: {
@@ -53,22 +54,13 @@ export default {
53
54
  methods: {
54
55
  async getfusetypes () {
55
56
  this.fusetypes = [{ label: '全部', value: '' }]
56
- const res = await post('/api/af-revenue/sql/singleTable_OrderBy', {
57
- data: {
58
- items: 'fusetype',
59
- tablename: 't_files',
60
- condition: `fusetype is not null GROUP BY fusetype`,
61
- orderitem: 'fusetype'
62
- }
63
- })
57
+ const res = await post('/api/af-revenue/logic/getFileUseType', {})
64
58
  this.fusetypes.push(...res.map(item => ({ label: item.fusetype, value: item.fusetype })))
65
- console.log('123456', this.fusetypes)
66
59
  },
67
60
  async getFiles () {
68
- console.log('999', this.currUserInfo)
69
61
  if (!this.currUserInfo) return
70
62
  this.files = []
71
- let condition = `CONVERT(varchar(200),f_blobid) = '${this.currUserInfo.f_userinfo_id}'`
63
+ let condition = `f_blobid = '${this.currUserInfo.f_userinfo_id}'`
72
64
  if (this.upload_date) {
73
65
  condition += ` and CONVERT(VARCHAR(100), f_uploaddate, 23) = '${this.upload_date}'`
74
66
  }
@@ -76,15 +68,13 @@ export default {
76
68
  condition += ` and fusetype = '${this.fusetype}'`
77
69
  }
78
70
  const res = await post('/api/af-revenue/logic/getAllFiles', { data: { condition } })
79
- console.log('7777', res)
80
- console.log('7777', res.days)
81
71
  this.files = res.days.map(day => ({
82
72
  days: day.uploadday,
83
73
  arrays: res.array.filter(file => file.uploadday === day.uploadday)
84
74
  }))
85
75
  },
86
76
  async delet (fileId) {
87
- await this.$resetdelete('rs/entity/t_files', { id: fileId }, { resolveMsg: '删除成功', rejectMsg: '删除失败' })
77
+ await del('api/af-revenue/entity/save/t_files', { id: fileId }, { resolveMsg: '删除成功', rejectMsg: '删除失败' })
88
78
  this.getFiles()
89
79
  },
90
80
  selfSearch () {