vue2-client 1.14.36 → 1.14.37

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>
@@ -13,7 +13,6 @@
13
13
 
14
14
  <script>
15
15
  import { mapState } from 'vuex'
16
- import { getConfigByName } from '@vue2-client/services/api/common'
17
16
 
18
17
  export default {
19
18
  name: 'FillCardRecordQuery',
@@ -39,16 +38,12 @@ export default {
39
38
  }
40
39
  },
41
40
  created () {
42
- getConfigByName('revenueConfig', 'af-revenue', (res) => {
43
- if (res.queryCondition === 'f_userfiles_id') {
44
- this.fixedQueryForm = { f_f_userfiles_id: this.currUserInfo.f_userfiles_id }
45
- } else if (res.queryCondition === 'f_userinfo_id') {
46
- this.fixedQueryForm = { f_f_userinfo_id: this.currUserInfo.f_userinfo_id }
47
- } else if (res.queryCondition === 'f_user_id') {
48
- this.fixedQueryForm = { f_f_user_id: this.currUserInfo.f_user_id }
49
- }
50
- this.$refs.xFormTable.refresh(true)
51
- })
41
+ this.fixedQueryForm = {
42
+ f_f_userfiles_id: this.currUserInfo.f_userfiles_id,
43
+ f_f_userinfo_id: this.currUserInfo.f_userinfo_id,
44
+ f_f_user_id: this.currUserInfo.f_user_id
45
+ }
46
+ this.$refs.xFormTable.refresh(true)
52
47
  },
53
48
  mounted () {
54
49
  },
@@ -13,7 +13,6 @@
13
13
 
14
14
  <script>
15
15
  import { mapState } from 'vuex'
16
- import { getConfigByName } from '@vue2-client/services/api/common'
17
16
 
18
17
  export default {
19
18
  name: 'FillGasRecordQuery',
@@ -39,16 +38,12 @@ export default {
39
38
  }
40
39
  },
41
40
  mounted () {
42
- getConfigByName('revenueConfig', 'af-revenue', (res) => {
43
- if (res.queryCondition === 'f_userfiles_id') {
44
- this.fixedQueryForm = { f_f_userfiles_id: this.currUserInfo.f_userfiles_id }
45
- } else if (res.queryCondition === 'f_userinfo_id') {
46
- this.fixedQueryForm = { f_f_userinfo_id: this.currUserInfo.f_userinfo_id }
47
- } else if (res.queryCondition === 'f_user_id') {
48
- this.fixedQueryForm = { f_f_user_id: this.currUserInfo.f_user_id }
49
- }
50
- this.$refs.xFormTable.refresh(true)
51
- })
41
+ this.fixedQueryForm = {
42
+ f_f_userfiles_id: this.currUserInfo.f_userfiles_id,
43
+ f_f_userinfo_id: this.currUserInfo.f_userinfo_id,
44
+ f_f_user_id: this.currUserInfo.f_user_id
45
+ }
46
+ this.$refs.xFormTable.refresh(true)
52
47
  },
53
48
  methods: {
54
49
  action (record, id, actionType) {
@@ -13,7 +13,6 @@
13
13
 
14
14
  <script>
15
15
  import { mapState } from 'vuex'
16
- import { getConfigByName } from '@vue2-client/services/api/common'
17
16
 
18
17
  export default {
19
18
  name: 'MachineUserRecordQuery',
@@ -39,15 +38,11 @@ export default {
39
38
  }
40
39
  },
41
40
  mounted () {
42
- getConfigByName('revenueConfig', 'af-revenue', (res) => {
43
- if (res.queryCondition === 'f_userfiles_id') {
44
- this.fixedQueryForm = { mr_f_userfiles_id: this.currUserInfo.f_userfiles_id }
45
- } else if (res.queryCondition === 'f_userinfo_id') {
46
- this.fixedQueryForm = { mr_f_userinfo_id: this.currUserInfo.f_userinfo_id }
47
- } else if (res.queryCondition === 'f_user_id') {
48
- this.fixedQueryForm = { mr_f_user_id: this.currUserInfo.f_user_id }
49
- }
50
- })
41
+ this.fixedQueryForm = {
42
+ mr_f_userfiles_id: this.currUserInfo.f_userfiles_id,
43
+ mr_f_userinfo_id: this.currUserInfo.f_userinfo_id,
44
+ mr_f_user_id: this.currUserInfo.f_user_id
45
+ }
51
46
  this.$refs.xFormTable.refresh(true)
52
47
  },
53
48
  methods: {
@@ -13,7 +13,6 @@
13
13
 
14
14
  <script>
15
15
  import { mapState } from 'vuex'
16
- import { getConfigByName } from '@vue2-client/services/api/common'
17
16
 
18
17
  export default {
19
18
  name: 'OtherChargeRecordQuery',
@@ -39,16 +38,12 @@ export default {
39
38
  }
40
39
  },
41
40
  mounted () {
42
- getConfigByName('revenueConfig', 'af-revenue', (res) => {
43
- if (res.queryCondition === 'f_userfiles_id') {
44
- this.fixedQueryForm = { o_f_userfiles_id: this.currUserInfo.f_userfiles_id }
45
- } else if (res.queryCondition === 'f_userinfo_id') {
46
- this.fixedQueryForm = { o_f_userinfo_id: this.currUserInfo.f_userinfo_id }
47
- } else if (res.queryCondition === 'f_user_id') {
48
- this.fixedQueryForm = { o_f_user_id: this.currUserInfo.f_user_id }
49
- }
50
- this.$refs.xFormTable.refresh(true)
51
- })
41
+ this.fixedQueryForm = {
42
+ o_f_userfiles_id: this.currUserInfo.f_userfiles_id,
43
+ o_f_userinfo_id: this.currUserInfo.f_userinfo_id,
44
+ o_f_user_id: this.currUserInfo.f_user_id
45
+ }
46
+ this.$refs.xFormTable.refresh(true)
52
47
  },
53
48
  methods: {
54
49
  action (record, id, actionType) {
@@ -14,7 +14,7 @@
14
14
 
15
15
  <script>
16
16
  import { mapState } from 'vuex'
17
- import { getConfigByName, getConfigByNameAsync } from '@vue2-client/services/api/common'
17
+ import { getConfigByNameAsync } from '@vue2-client/services/api/common'
18
18
 
19
19
  export default {
20
20
  name: 'UserChargeRecordQuery',
@@ -46,16 +46,12 @@ export default {
46
46
  } else {
47
47
  this.queryParamsName = 'UserChargeRecordQueryCRUD'
48
48
  }
49
- getConfigByName('revenueConfig', 'af-revenue', (res) => {
50
- if (res.queryCondition === 'f_userfiles_id') {
51
- this.fixedQueryForm = { uc_f_userfiles_id: this.currUserInfo.f_userfiles_id }
52
- } else if (res.queryCondition === 'f_userinfo_id') {
53
- this.fixedQueryForm = { uc_f_userinfo_id: this.currUserInfo.f_userinfo_id }
54
- } else {
55
- this.fixedQueryForm = { uc_f_user_id: this.currUserInfo.f_user_id }
56
- }
57
- this.$refs.xFormTable.refresh(true)
58
- })
49
+ this.fixedQueryForm = {
50
+ uc_f_userfiles_id: this.currUserInfo.f_userfiles_id,
51
+ uc_f_userinfo_id: this.currUserInfo.f_userinfo_id,
52
+ uc_f_user_id: this.currUserInfo.f_user_id
53
+ }
54
+ this.$refs.xFormTable.refresh(true)
59
55
  },
60
56
  methods: {
61
57
  async getBillUrl (type) {
@@ -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,12 +53,11 @@ export default {
52
53
  } else {
53
54
  this.queryParamsName = 'HandRecordQueryCRUD'
54
55
  }
55
- if (res.queryCondition === 'f_userfiles_id') {
56
- this.fixedQueryForm = { h_f_userfiles_id: this.currUserInfo.f_userfiles_id }
57
- } else if (res.queryCondition === 'f_userinfo_id') {
58
- this.fixedQueryForm = { h_f_userinfo_id: this.currUserInfo.f_userinfo_id }
59
- } else if (res.queryCondition === 'f_user_id') {
60
- this.fixedQueryForm = { h_f_user_id: this.currUserInfo.f_user_id }
56
+
57
+ this.fixedQueryForm = {
58
+ h_f_userfiles_id: this.currUserInfo.f_userfiles_id,
59
+ h_f_userinfo_id: this.currUserInfo.f_userinfo_id,
60
+ h_f_user_id: this.currUserInfo.f_user_id
61
61
  }
62
62
  this.$refs.xFormTable.refresh(true)
63
63
  })
@@ -13,7 +13,6 @@
13
13
 
14
14
  <script>
15
15
  import { mapState } from 'vuex'
16
- import { getConfigByNameAsync } from '@vue2-client/services/api/common'
17
16
 
18
17
  export default {
19
18
  name: 'UserRecordQuery',
@@ -39,15 +38,11 @@ export default {
39
38
  }
40
39
  },
41
40
  async mounted () {
42
- await getConfigByNameAsync('revenueConfig', 'af-revenue').then((res) => {
43
- if (res.queryCondition === 'f_userfiles_id') {
44
- this.fixedQueryForm = { uc_f_userfiles_id: this.currUserInfo.f_userfiles_id }
45
- } else if (res.queryCondition === 'f_userinfo_id') {
46
- this.fixedQueryForm = { uc_f_userinfo_id: this.currUserInfo.f_userinfo_id }
47
- } else if (res.queryCondition === 'f_user_id') {
48
- this.fixedQueryForm = { uc_f_user_id: this.currUserInfo.f_user_id }
49
- }
50
- })
41
+ this.fixedQueryForm = {
42
+ uc_f_userfiles_id: this.currUserInfo.f_userfiles_id,
43
+ uc_f_userinfo_id: this.currUserInfo.f_userinfo_id,
44
+ uc_f_user_id: this.currUserInfo.f_user_id
45
+ }
51
46
  this.$refs.xFormTable.refresh(true)
52
47
  },
53
48
  methods: {
@@ -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 () {