apply-clients 4.1.66 → 4.1.70

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,134 +1,134 @@
1
- <template>
2
- <div class="flex-row">
3
- <div class="basic-main">
4
- <div :class="showData ? 'top' : 'auto'" v-show="showQuery">
5
- <exploration-select v-ref:query :show-data="showData"></exploration-select>
6
- </div>
7
- <div v-if="showtotal" style="height: 89%">
8
- <tabset v-ref:tabs :close="false">
9
- <tab :header='selectdata.defname'>
10
- <service-control v-ref:service :selectdata="selectdata"></service-control>
11
- </tab>
12
- <tab header='附件'>
13
- <apply-upload :blodid="selectdata.f_process_id"
14
- :isupload = "true"
15
- :isdelete="true"
16
- :isusetype="true"
17
- :isremark = "true"
18
- :takeimg="false"
19
- :issearch="true"
20
- :defname="selectdata.defname">
21
- </apply-upload>
22
- </tab>
23
- </tabset>
24
- </div>
25
- </div>
26
- </div>
27
- </template>
28
- <script>
29
- import Vue from 'vue'
30
- import {HttpResetClass} from 'vue-client'
31
- export default {
32
- title: '报建流程',
33
- data () {
34
- return {
35
- showQuery: true, // 控制查询页
36
- showData: true, // 控制列表数据
37
- showtotal: false, // 详情显示
38
- selectdata: {},
39
- xmlname: '' // 配置文件名
40
- }
41
- },
42
- created () {
43
- },
44
- methods: {
45
- // 获取页面配置json文件
46
- async loadName () {
47
- let http = new HttpResetClass()
48
- let xmldata = {
49
- data: this.$login.f,
50
- workname: this.selectdata.processname
51
- }
52
- let res = await http.load('POST', 'rs/logic/ApplyGetConfigs', {data: xmldata}, {resolveMsg: null, rejectMsg: null})
53
-
54
- if (res.data.code && res.data.code === 200) {
55
- Vue.prototype.$workflow_vue = res.data.workflow_vue
56
- } else {
57
- this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
58
- return
59
- }
60
- }
61
- },
62
- events: {
63
- 'onMessage' (data) {
64
- console.log('接收消息')
65
- console.log(data)
66
- if (data.type === 'apply-task') {
67
- this.$refs.query.$refs.cp.$refs.cri.search()
68
- }
69
- },
70
- // 刷新控制层
71
- async 'breakControl' (servicedata) {
72
-
73
- if (servicedata.id) {
74
- let http = new HttpResetClass()
75
- let data = {
76
- condition: `u.id = ${servicedata.id}`,
77
- data: {
78
- id: this.$login.f.id,
79
- orgid: this.$login.f.orgid
80
- }
81
- }
82
- let res = await http.load('POST', 'rs/sql/checkuser', {data: data}, {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'})
83
-
84
- this.selectdata = res.data[0]
85
- } else {
86
- this.selectdata = servicedata
87
- }
88
-
89
- this.showtotal = false
90
- this.$nextTick(() => {
91
- this.showtotal = true
92
- })
93
-
94
- },
95
- // 初始化
96
- async 'apply' (val) {
97
- this.showtotal = false
98
- this.selectdata = val
99
-
100
- // if (this.selectdata.f_apply_type === '集体报建') {
101
- // this.xmlname = '集体报建流程'
102
- // } else if (this.selectdata.f_apply_type === '散户报建') {
103
- // this.xmlname = '散户报建流程'
104
- // } else {
105
- // this.$showMessage('暂无此类报装')
106
- // return
107
- // }
108
-
109
- // 次方法必须同步执行,否则后续会出问题
110
- // 获取页面json配置文件
111
- await this.loadName()
112
-
113
- // 显示详细
114
- this.showtotal = true
115
- // 关闭列表数据
116
- this.showData = false
117
- // 关闭分页
118
- this.$refs.query.$refs.cp.pager = false
119
- },
120
- 'search' () {
121
- // 关闭详细
122
- this.showtotal = false
123
- // 显示列表数据
124
- this.showData = true
125
- // 显示分页
126
- this.$refs.query.$refs.cp.pager = true
127
- // 调用查询
128
- this.$refs.query.$refs.cp.$refs.cri.search()
129
- }
130
- },
131
- watch: {
132
- }
133
- }
134
- </script>
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <div :class="showData ? 'top' : 'auto'" v-show="showQuery">
5
+ <exploration-select v-ref:query :show-data="showData"></exploration-select>
6
+ </div>
7
+ <div v-if="showtotal" style="height: 89%">
8
+ <tabset v-ref:tabs :close="false">
9
+ <tab :header='selectdata.defname'>
10
+ <service-control v-ref:service :selectdata="selectdata"></service-control>
11
+ </tab>
12
+ <tab header='附件'>
13
+ <apply-upload :blodid="selectdata.f_process_id"
14
+ :isupload = "true"
15
+ :isdelete="true"
16
+ :isusetype="true"
17
+ :isremark = "true"
18
+ :takeimg="false"
19
+ :issearch="true"
20
+ :defname="selectdata.defname">
21
+ </apply-upload>
22
+ </tab>
23
+ </tabset>
24
+ </div>
25
+ </div>
26
+ </div>
27
+ </template>
28
+ <script>
29
+ import Vue from 'vue'
30
+ import {HttpResetClass} from 'vue-client'
31
+ export default {
32
+ title: '报建流程',
33
+ data () {
34
+ return {
35
+ showQuery: true, // 控制查询页
36
+ showData: true, // 控制列表数据
37
+ showtotal: false, // 详情显示
38
+ selectdata: {},
39
+ xmlname: '' // 配置文件名
40
+ }
41
+ },
42
+ created () {
43
+ },
44
+ methods: {
45
+ // 获取页面配置json文件
46
+ async loadName () {
47
+ let http = new HttpResetClass()
48
+ let xmldata = {
49
+ data: this.$login.f,
50
+ workname: this.selectdata.processname
51
+ }
52
+ let res = await http.load('POST', 'rs/logic/ApplyGetConfigs', {data: xmldata}, {resolveMsg: null, rejectMsg: null})
53
+
54
+ if (res.data.code && res.data.code === 200) {
55
+ Vue.prototype.$workflow_vue = res.data.workflow_vue
56
+ } else {
57
+ this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
58
+ return
59
+ }
60
+ }
61
+ },
62
+ events: {
63
+ 'onMessage' (data) {
64
+ console.log('接收消息')
65
+ console.log(data)
66
+ if (data.type === 'apply-task') {
67
+ this.$refs.query.$refs.cp.$refs.cri.search()
68
+ }
69
+ },
70
+ // 刷新控制层
71
+ async 'breakControl' (servicedata) {
72
+
73
+ if (servicedata.id) {
74
+ let http = new HttpResetClass()
75
+ let data = {
76
+ condition: `u.id = ${servicedata.id}`,
77
+ data: {
78
+ id: this.$login.f.id,
79
+ orgid: this.$login.f.orgid
80
+ }
81
+ }
82
+ let res = await http.load('POST', 'rs/sql/checkuser', {data: data}, {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'})
83
+
84
+ this.selectdata = res.data[0]
85
+ } else {
86
+ this.selectdata = servicedata
87
+ }
88
+
89
+ this.showtotal = false
90
+ this.$nextTick(() => {
91
+ this.showtotal = true
92
+ })
93
+
94
+ },
95
+ // 初始化
96
+ async 'apply' (val) {
97
+ this.showtotal = false
98
+ this.selectdata = val
99
+
100
+ // if (this.selectdata.f_apply_type === '集体报建') {
101
+ // this.xmlname = '集体报建流程'
102
+ // } else if (this.selectdata.f_apply_type === '散户报建') {
103
+ // this.xmlname = '散户报建流程'
104
+ // } else {
105
+ // this.$showMessage('暂无此类报装')
106
+ // return
107
+ // }
108
+
109
+ // 次方法必须同步执行,否则后续会出问题
110
+ // 获取页面json配置文件
111
+ await this.loadName()
112
+
113
+ // 显示详细
114
+ this.showtotal = true
115
+ // 关闭列表数据
116
+ this.showData = false
117
+ // 关闭分页
118
+ this.$refs.query.$refs.cp.pager = false
119
+ },
120
+ 'search' () {
121
+ // 关闭详细
122
+ this.showtotal = false
123
+ // 显示列表数据
124
+ this.showData = true
125
+ // 显示分页
126
+ this.$refs.query.$refs.cp.pager = true
127
+ // 调用查询
128
+ this.$refs.query.$refs.cp.$refs.cri.search()
129
+ }
130
+ },
131
+ watch: {
132
+ }
133
+ }
134
+ </script>