apply-clients 3.5.3-2 → 3.5.3-3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.5.3-2",
3
+ "version": "3.5.3-3",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1,189 +1,189 @@
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
-
26
- <validator name="v">
27
- <modal v-if="showLater" :show.sync="showLater" v-ref:modal :large="true" :backdrop="false" title="稍后处理">
28
- <header slot="modal-header" class="modal-header">
29
- <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
30
- <h4 class="modal-title">稍后处理</h4>
31
- </header>
32
-
33
- <article slot="modal-body" class="modal-body clearfix">
34
- <div class="form-group col-sm-12">
35
- <label class="col-sm-2 control-label">稍后处理备注:</label>
36
- <div class="col-sm-10">
37
- <input type="textarea"
38
- class="form-control input_view"
39
- style="width: 100%"
40
- v-model="laterapply.f_later_remarks" />
41
- </div>
42
- </div>
43
- </article>
44
-
45
- <footer slot="modal-footer" class="modal-footer">
46
- <button type="button" class="btn btn-primary" :disabled='!$v.valid' @click="later()">稍后处理</button>
47
- </footer>
48
- </modal>
49
- </validator>
50
- </div>
51
- </div>
52
- </template>
53
- <script>
54
- import Vue from 'vue'
55
- import {HttpResetClass} from 'vue-client'
56
- export default {
57
- title: '报建流程',
58
- data () {
59
- return {
60
- showQuery: true, // 控制查询页
61
- showData: true, // 控制列表数据
62
- showtotal: false, // 详情显示
63
- selectdata: {},
64
- xmlname: '', // 配置文件名
65
- showLater: false,
66
- laterapply: {}
67
- }
68
- },
69
- ready () {
70
- },
71
- methods: {
72
- // 获取页面配置json文件
73
- async loadName () {
74
-
75
- let data = {
76
- workname: this.selectdata.processname
77
- }
78
- let http = new HttpResetClass()
79
- let res = await http.load(
80
- 'POST',
81
- 'rs/logic/ApplyGetConfigs',
82
- {data: data},
83
- {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
84
- )
85
-
86
- Vue.prototype.$workflow_vue = res.data
87
- },
88
- async later () {
89
- let http = new HttpResetClass()
90
- let data = {
91
- laterapply: this.laterapply,
92
- selectdata: this.selectdata,
93
- user: this.$login.f
94
- }
95
- let res = await http.load('POST', 'rs/logic/laterprocessing', {data:data}, {
96
- resolveMsg: null,
97
- rejectMsg: '稍后处理记录保存失败!!!'
98
- })
99
- this.closeModal()
100
- },
101
- closeModal () {
102
- this.selectdata = null
103
- this.showLater = false
104
- this.laterapply = {}
105
-
106
- this.$refs.query.loadPage()
107
- }
108
- },
109
- events: {
110
- 'onMessage' (data) {
111
- console.log('接收消息')
112
- console.log(data)
113
- if (data.type === 'apply-task') {
114
- this.$refs.query.$refs.cp.$refs.cri.search()
115
- }
116
- },
117
- // 刷新控制层
118
- async 'breakControl' (servicedata) {
119
-
120
- if (servicedata.id) {
121
- let data = {
122
- condition: `u.id = ${servicedata.id}`,
123
- data: {
124
- id: this.$login.f.id,
125
- orgid: this.$login.f.orgid
126
- }
127
- }
128
- let res = await this.$resetpost(
129
- 'rs/sql/checkuser',
130
- {data: data},
131
- {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
132
- )
133
-
134
- this.selectdata = res.data[0]
135
- } else {
136
- this.selectdata = servicedata
137
- }
138
-
139
- this.showtotal = false
140
- this.$nextTick(() => {
141
- this.showtotal = true
142
- })
143
-
144
- },
145
- async openLater (row) {
146
- this.selectdata = row
147
- this.showLater = true
148
- },
149
- // 初始化
150
- async 'apply' (val) {
151
- this.showtotal = false
152
- this.selectdata = val
153
-
154
- // 次方法必须同步执行,否则后续会出问题
155
- // 获取页面json配置文件
156
- await this.loadName()
157
-
158
- // 显示详细
159
- this.showtotal = true
160
- // 关闭列表数据
161
- this.showData = false
162
- // 关闭分页
163
- this.$refs.query.$refs.cp.pager = false
164
- },
165
- 'search' () {
166
- // 关闭详细
167
- this.showtotal = false
168
- // 显示列表数据
169
- this.showData = true
170
- // 显示分页
171
- this.$refs.query.$refs.cp.pager = true
172
- // 调用查询
173
- this.$refs.query.$refs.cp.$refs.cri.search()
174
- },
175
- 'loadPage' () {
176
- // 关闭详细
177
- this.showtotal = false
178
- // 显示列表数据
179
- this.showData = true
180
- // 显示分页
181
- this.$refs.query.$refs.cp.pager = true
182
- // 调用查询
183
- this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
184
- }
185
- },
186
- watch: {
187
- }
188
- }
189
- </script>
1
+ <template>
2
+ <div class="flex-row" style="overflow: auto">
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
+
26
+ <validator name="v">
27
+ <modal v-if="showLater" :show.sync="showLater" v-ref:modal :large="true" :backdrop="false" title="稍后处理">
28
+ <header slot="modal-header" class="modal-header">
29
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
30
+ <h4 class="modal-title">稍后处理</h4>
31
+ </header>
32
+
33
+ <article slot="modal-body" class="modal-body clearfix">
34
+ <div class="form-group col-sm-12">
35
+ <label class="col-sm-2 control-label">稍后处理备注:</label>
36
+ <div class="col-sm-10">
37
+ <input type="textarea"
38
+ class="form-control input_view"
39
+ style="width: 100%"
40
+ v-model="laterapply.f_later_remarks" />
41
+ </div>
42
+ </div>
43
+ </article>
44
+
45
+ <footer slot="modal-footer" class="modal-footer">
46
+ <button type="button" class="btn btn-primary" :disabled='!$v.valid' @click="later()">稍后处理</button>
47
+ </footer>
48
+ </modal>
49
+ </validator>
50
+ </div>
51
+ </div>
52
+ </template>
53
+ <script>
54
+ import Vue from 'vue'
55
+ import {HttpResetClass} from 'vue-client'
56
+ export default {
57
+ title: '报建流程',
58
+ data () {
59
+ return {
60
+ showQuery: true, // 控制查询页
61
+ showData: true, // 控制列表数据
62
+ showtotal: false, // 详情显示
63
+ selectdata: {},
64
+ xmlname: '', // 配置文件名
65
+ showLater: false,
66
+ laterapply: {}
67
+ }
68
+ },
69
+ ready () {
70
+ },
71
+ methods: {
72
+ // 获取页面配置json文件
73
+ async loadName () {
74
+
75
+ let data = {
76
+ workname: this.selectdata.processname
77
+ }
78
+ let http = new HttpResetClass()
79
+ let res = await http.load(
80
+ 'POST',
81
+ 'rs/logic/ApplyGetConfigs',
82
+ {data: data},
83
+ {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
84
+ )
85
+
86
+ Vue.prototype.$workflow_vue = res.data
87
+ },
88
+ async later () {
89
+ let http = new HttpResetClass()
90
+ let data = {
91
+ laterapply: this.laterapply,
92
+ selectdata: this.selectdata,
93
+ user: this.$login.f
94
+ }
95
+ let res = await http.load('POST', 'rs/logic/laterprocessing', {data:data}, {
96
+ resolveMsg: null,
97
+ rejectMsg: '稍后处理记录保存失败!!!'
98
+ })
99
+ this.closeModal()
100
+ },
101
+ closeModal () {
102
+ this.selectdata = null
103
+ this.showLater = false
104
+ this.laterapply = {}
105
+
106
+ this.$refs.query.loadPage()
107
+ }
108
+ },
109
+ events: {
110
+ 'onMessage' (data) {
111
+ console.log('接收消息')
112
+ console.log(data)
113
+ if (data.type === 'apply-task') {
114
+ this.$refs.query.$refs.cp.$refs.cri.search()
115
+ }
116
+ },
117
+ // 刷新控制层
118
+ async 'breakControl' (servicedata) {
119
+
120
+ if (servicedata.id) {
121
+ let data = {
122
+ condition: `u.id = ${servicedata.id}`,
123
+ data: {
124
+ id: this.$login.f.id,
125
+ orgid: this.$login.f.orgid
126
+ }
127
+ }
128
+ let res = await this.$resetpost(
129
+ 'rs/sql/checkuser',
130
+ {data: data},
131
+ {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
132
+ )
133
+
134
+ this.selectdata = res.data[0]
135
+ } else {
136
+ this.selectdata = servicedata
137
+ }
138
+
139
+ this.showtotal = false
140
+ this.$nextTick(() => {
141
+ this.showtotal = true
142
+ })
143
+
144
+ },
145
+ async openLater (row) {
146
+ this.selectdata = row
147
+ this.showLater = true
148
+ },
149
+ // 初始化
150
+ async 'apply' (val) {
151
+ this.showtotal = false
152
+ this.selectdata = val
153
+
154
+ // 次方法必须同步执行,否则后续会出问题
155
+ // 获取页面json配置文件
156
+ await this.loadName()
157
+
158
+ // 显示详细
159
+ this.showtotal = true
160
+ // 关闭列表数据
161
+ this.showData = false
162
+ // 关闭分页
163
+ this.$refs.query.$refs.cp.pager = false
164
+ },
165
+ 'search' () {
166
+ // 关闭详细
167
+ this.showtotal = false
168
+ // 显示列表数据
169
+ this.showData = true
170
+ // 显示分页
171
+ this.$refs.query.$refs.cp.pager = true
172
+ // 调用查询
173
+ this.$refs.query.$refs.cp.$refs.cri.search()
174
+ },
175
+ 'loadPage' () {
176
+ // 关闭详细
177
+ this.showtotal = false
178
+ // 显示列表数据
179
+ this.showData = true
180
+ // 显示分页
181
+ this.$refs.query.$refs.cp.pager = true
182
+ // 调用查询
183
+ this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
184
+ }
185
+ },
186
+ watch: {
187
+ }
188
+ }
189
+ </script>