vue2-client 1.18.15 → 1.18.16

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,98 +1,98 @@
1
- <template>
2
- <a-card :bordered="false">
3
- <x-form-table
4
- title="工作日志"
5
- ref="xFormTable"
6
- service-name="af-system"
7
- :queryParamsName="queryParamsName"
8
- :fixedAddForm="fixedAddForm"
9
- :fixed-query-form="fixedQueryForm"
10
- @afterSubmit="Submit"
11
- @action="toDetail"
12
- >
13
- </x-form-table>
14
- <!-- 抽屉 -->
15
- <a-drawer
16
- :visible="visible"
17
- width="40vw"
18
- placement="right"
19
- title="查看附件"
20
- @close="visible = false, previewFileVisible=false"
21
- >
22
- <div>
23
- <file-item :files="fileList" @preview="handlePreviewFile"/>
24
- </div>
25
- <!-- 文件预览 -->
26
- <a-modal v-model="previewFileVisible" :footer="null" :dialog-style="{ top: '20px' }" width="80%" :z-index="1001">
27
- <file-preview :path="filePath"/>
28
- </a-modal>
29
- </a-drawer>
30
- </a-card>
31
- </template>
32
-
33
- <script>
34
- import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
35
- import { runLogic } from '@vue2-client/services/api/common'
36
- import fileItem from '@vue2-client/components/FileImageItem/FileItem.vue'
37
- import FilePreview from '@vue2-client/components/FilePreview/FilePreview.vue'
38
- import { mapState } from 'vuex'
39
- export default {
40
- name: '工作日志',
41
- components: {
42
- XFormTable,
43
- fileItem,
44
- FilePreview
45
- },
46
- props: {
47
- workflowId: {
48
- type: String,
49
- default: ''
50
- },
51
- details: {
52
- type: Object,
53
- required: true
54
- }
55
- },
56
- computed: {
57
- ...mapState('account', { currUser: 'user' }),
58
- },
59
- data () {
60
- return {
61
- // 查询配置文件名
62
- queryParamsName: 'worklogCRUD',
63
- visible: false,
64
- previewFileVisible: false,
65
- filePath: '',
66
- fileList: [],
67
- fixedQueryForm: {},
68
- fixedAddForm: {}
69
- }
70
- },
71
- mounted () {
72
- this.init()
73
- },
74
- methods: {
75
- init () {
76
- this.fixedQueryForm = { w_f_workflow_id: this.workflowId }
77
- this.fixedAddForm = { w_defname: this.details.f_sub_state }
78
- this.$refs.xFormTable.refreshTable(true)
79
- },
80
- toDetail (record, id) {
81
- runLogic('getfiles', { id: id, f_table_name: 't_work_log' }, 'af-system').then(res => {
82
- this.fileList = res
83
- this.visible = true
84
- })
85
- },
86
- handlePreviewFile (url) {
87
- this.filePath = url
88
- this.previewFileVisible = true
89
- },
90
- Submit (record) {
91
- record.form.id = record.id
92
- record.form.f_workflow_id = this.workflowId
93
- runLogic('updataworklogfiles', record, 'af-system')
94
- this.$refs.xFormTable.refreshTable(true)
95
- }
96
- }
97
- }
98
- </script>
1
+ <template>
2
+ <a-card :bordered="false">
3
+ <x-form-table
4
+ title="工作日志"
5
+ ref="xFormTable"
6
+ service-name="af-system"
7
+ :queryParamsName="queryParamsName"
8
+ :fixedAddForm="fixedAddForm"
9
+ :fixed-query-form="fixedQueryForm"
10
+ @afterSubmit="Submit"
11
+ @action="toDetail"
12
+ >
13
+ </x-form-table>
14
+ <!-- 抽屉 -->
15
+ <a-drawer
16
+ :visible="visible"
17
+ width="40vw"
18
+ placement="right"
19
+ title="查看附件"
20
+ @close="visible = false, previewFileVisible=false"
21
+ >
22
+ <div>
23
+ <file-item :files="fileList" @preview="handlePreviewFile"/>
24
+ </div>
25
+ <!-- 文件预览 -->
26
+ <a-modal v-model="previewFileVisible" :footer="null" :dialog-style="{ top: '20px' }" width="80%" :z-index="1001">
27
+ <file-preview :path="filePath"/>
28
+ </a-modal>
29
+ </a-drawer>
30
+ </a-card>
31
+ </template>
32
+
33
+ <script>
34
+ import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
35
+ import { runLogic } from '@vue2-client/services/api/common'
36
+ import fileItem from '@vue2-client/components/FileImageItem/FileItem.vue'
37
+ import FilePreview from '@vue2-client/components/FilePreview/FilePreview.vue'
38
+ import { mapState } from 'vuex'
39
+ export default {
40
+ name: '工作日志',
41
+ components: {
42
+ XFormTable,
43
+ fileItem,
44
+ FilePreview
45
+ },
46
+ props: {
47
+ workflowId: {
48
+ type: String,
49
+ default: ''
50
+ },
51
+ details: {
52
+ type: Object,
53
+ required: true
54
+ }
55
+ },
56
+ computed: {
57
+ ...mapState('account', { currUser: 'user' }),
58
+ },
59
+ data () {
60
+ return {
61
+ // 查询配置文件名
62
+ queryParamsName: 'worklogCRUD',
63
+ visible: false,
64
+ previewFileVisible: false,
65
+ filePath: '',
66
+ fileList: [],
67
+ fixedQueryForm: {},
68
+ fixedAddForm: {}
69
+ }
70
+ },
71
+ mounted () {
72
+ this.init()
73
+ },
74
+ methods: {
75
+ init () {
76
+ this.fixedQueryForm = { w_f_workflow_id: this.workflowId }
77
+ this.fixedAddForm = { w_defname: this.details.f_sub_state }
78
+ this.$refs.xFormTable.refreshTable(true)
79
+ },
80
+ toDetail (record, id) {
81
+ runLogic('getfiles', { id: id, f_table_name: 't_work_log' }, 'af-system').then(res => {
82
+ this.fileList = res
83
+ this.visible = true
84
+ })
85
+ },
86
+ handlePreviewFile (url) {
87
+ this.filePath = url
88
+ this.previewFileVisible = true
89
+ },
90
+ Submit (record) {
91
+ record.form.id = record.id
92
+ record.form.f_workflow_id = this.workflowId
93
+ runLogic('updataworklogfiles', record, 'af-system')
94
+ this.$refs.xFormTable.refreshTable(true)
95
+ }
96
+ }
97
+ }
98
+ </script>
@@ -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: 'ApplyRecordQuery',
19
+ components: {
20
+ XFormTable: () => import('@vue2-client/base-client/components/common/XFormTable/XFormTable.vue')
21
+ },
22
+ data () {
23
+ return {
24
+ // 查询配置名称
25
+ queryParamsName: 'ApplyRecordQueryCRUD',
26
+ // 查询表单固定值
27
+ fixedQueryForm: { ab_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: 'SafeCheckPaperV3RecordQuery',
19
+ components: {
20
+ XFormTable: () => import('@vue2-client/base-client/components/common/XFormTable/XFormTable.vue')
21
+ },
22
+ data () {
23
+ return {
24
+ // 查询配置名称
25
+ queryParamsName: 'SafeCheckRecordQueryCRUD',
26
+ // 查询表单固定值
27
+ fixedQueryForm: { tcp_f_userinfoid: 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: 'TelephoneV3RecordQuery',
19
+ components: {
20
+ XFormTable: () => import('@vue2-client/base-client/components/common/XFormTable/XFormTable.vue')
21
+ },
22
+ data () {
23
+ return {
24
+ // 查询配置名称
25
+ queryParamsName: 'TelephoneRecordQueryCRUD',
26
+ // 查询表单固定值
27
+ fixedQueryForm: { ts_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>