apply-clients 4.1.72 → 4.1.75

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.
@@ -0,0 +1,257 @@
1
+ <template>
2
+ <div class="col-sm-12">
3
+ <criteria-paged :model="model" v-ref:cp>
4
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <!-- <div class="form-group col-sm-3">-->
8
+ <!-- <label class="font_normal_body">组织机构:</label>-->
9
+ <!-- <res-select-->
10
+ <!-- restype='organization'-->
11
+ <!-- :initresid='$parent.$parent.curorgid'-->
12
+ <!-- @res-select="$parent.$parent.getorg"-->
13
+ <!-- is-mul="false"-->
14
+ <!-- ></res-select>-->
15
+ <!-- </div>-->
16
+ <div class="form-group col-sm-3">
17
+ <label class="font_normal_body">项目名称:</label>
18
+ <input type="text" style="width:60%" class="input_search" placeholder='项目名称' v-model="model.f_entry_name"
19
+ v-on:keyup.enter="search"
20
+ condition="u.f_entry_name = '{}'">
21
+ </div>
22
+ <div class="form-group col-sm-3">
23
+ <label class="font_normal_body">报建编号:</label>
24
+ <input type="text" style="width:60%" class="input_search" placeholder='报建编号' v-model="model.f_apply_num"
25
+ v-on:keyup.enter="search"
26
+ condition="u.f_apply_num = '{}'">
27
+ </div>
28
+ <div class="form-group col-sm-3">
29
+ <label class="font_normal_body">客户名称:</label>
30
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
31
+ v-on:keyup.enter="$parent.$parent.search()" condition="u.f_user_name like '%{}%'" placeholder='客户名称'>
32
+ </div>
33
+ <div class="form-group col-sm-2 button-range">
34
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
35
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
36
+ <div
37
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
38
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
39
+ class="button_spacing"
40
+ style="float: right">
41
+ </div>
42
+ </div>
43
+ </div>
44
+ <div class="row" v-show="$parent.$parent.criteriaShow">
45
+ <div class="form-group col-sm-3">
46
+ <label class="font_normal_body">联系电话:</label>
47
+ <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
48
+ v-on:keyup.enter="search"
49
+ condition="u.f_phone like '%{}%'">
50
+ </div>
51
+ <div class="form-group col-sm-3">
52
+ <label class="font_normal_body">合同编号:</label>
53
+ <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
54
+ v-on:keyup.enter="search"
55
+ condition="u.f_contract_number = '{}'">
56
+ </div>
57
+ <div class="form-group col-sm-3">
58
+ <label class="font_normal_body">报建类型:</label>
59
+ <v-select
60
+ v-model="model.f_apply_type"
61
+ placeholder='报建类型'
62
+ condition="u.f_apply_type = '{}'"
63
+ :value.sync="model.f_apply_type"
64
+ :options='$parent.$parent.applytype'
65
+ class="select select_list"
66
+ :value-single="true"
67
+ @change="$parent.$parent.applyTypeChange()"
68
+ close-on-select ></v-select>
69
+ </div>
70
+ <div class="form-group col-sm-3">
71
+ <label class="font_normal_body">办理环节:</label>
72
+ <v-select
73
+ v-model="model.defname"
74
+ placeholder='办理环节'
75
+ condition="defname = '{}'"
76
+ :value.sync="model.defname"
77
+ :options='$parent.$parent.defnames'
78
+ class="select select_list"
79
+ :value-single="true"
80
+ close-on-select ></v-select>
81
+ </div>
82
+ <div class="form-group col-sm-3">
83
+ <label class="font_normal_body">用户地址:</label>
84
+ <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
85
+ v-on:keyup.enter="search"
86
+ condition="u.f_address like '%{}%'">
87
+ </div>
88
+ <div class="form-group col-sm-3">
89
+ <label for="startDate" class="font_normal_body">开始时间:</label>
90
+ <datepicker id="startDate" placeholder="开始日期"
91
+ style="width: 60%!important;"
92
+ v-model="model.startDate"
93
+ :value.sync="model.startDate"
94
+ :format="'yyyy-MM-dd 00:00:00'"
95
+ :show-reset-button="true"
96
+ condition="u.f_apply_date >= '{}'">
97
+ </datepicker>
98
+ </div>
99
+ <div class="form-group col-sm-3">
100
+ <label for="endDate" class="font_normal_body">结束时间:</label>
101
+ <datepicker id="endDate" placeholder="结束日期"
102
+ style="width: 60%!important;"
103
+ v-model="model.endDate"
104
+ :value.sync="model.endDate"
105
+ :format="'yyyy-MM-dd 23:59:59'"
106
+ :show-reset-button="true"
107
+ condition="u.f_apply_date <= '{}'">
108
+ </datepicker>
109
+ </div>
110
+ </div>
111
+ </div>
112
+ </criteria>
113
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
114
+ <template partial='head'>
115
+ <tr>
116
+ <th style="white-space: nowrap;">序号</th>
117
+ <th style="white-space: nowrap;">报建编号</th>
118
+ <th style="white-space: nowrap;">客户名称</th>
119
+ <th style="white-space: nowrap;">电话</th>
120
+ <th style="white-space: nowrap;">报建类型</th>
121
+ <th style="white-space: nowrap;">办理环节</th>
122
+ <th style="white-space: nowrap;">状态</th>
123
+ <th style="white-space: nowrap;">终止原因</th>
124
+ <th style="white-space: nowrap;">终止时间</th>
125
+ <th style="white-space: nowrap;">终止人</th>
126
+ <!-- <th style="white-space: nowrap;">撤销原因</th>-->
127
+ <!-- <th style="white-space: nowrap;">撤销时间</th>-->
128
+ <!-- <th style="white-space: nowrap;">撤销人</th>-->
129
+ <!-- <th style="white-space: nowrap;">操作</th>-->
130
+ </tr>
131
+ </template>
132
+ <template partial='body'>
133
+ <tr>
134
+ <td style="text-align: center;">
135
+ <nobr>{{$index+1}}</nobr>
136
+ </td>
137
+ <td style="text-align: center;">
138
+ <nobr>{{row.f_apply_num}}</nobr>
139
+ </td>
140
+ <td style="text-align: center;">
141
+ <nobr>{{row.f_user_name}}</nobr>
142
+ </td>
143
+ <td style="text-align: center;">
144
+ <nobr>{{row.f_phone}}</nobr>
145
+ </td>
146
+ <td style="text-align: center;">
147
+ <nobr>{{row.f_apply_type}}</nobr>
148
+ </td>
149
+ <td style="text-align: center;">
150
+ <nobr>{{row.defname}}</nobr>
151
+ </td>
152
+ <td style="text-align: center;">
153
+ <nobr>{{row.f_state}}</nobr>
154
+ </td>
155
+ <td style="text-align: center;">
156
+ <nobr>{{row.f_stop_remarks}}</nobr>
157
+ </td>
158
+ <td style="text-align: center;">
159
+ <nobr>{{row.f_date}}</nobr>
160
+ </td>
161
+ <td style="text-align: center;">
162
+ <nobr>{{row.f_operator}}</nobr>
163
+ </td>
164
+ <!-- <td style="text-align: center;">-->
165
+ <!-- <nobr>{{row.f_cancel_reason}}</nobr>-->
166
+ <!-- </td>-->
167
+ <!-- <td style="text-align: center;">-->
168
+ <!-- <nobr>{{row.f_cancel_date}}</nobr>-->
169
+ <!-- </td>-->
170
+ <!-- <td style="text-align: center;">-->
171
+ <!-- <nobr>{{row.f_cancel_name}}</nobr>-->
172
+ <!-- </td>-->
173
+ <!-- <td style="text-align: center;">-->
174
+ <!-- <dropdown v-if="row.f_type === '暂停报建' && row.f_state === '有效'">-->
175
+ <!-- <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">-->
176
+ <!-- <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>-->
177
+ <!-- </button>-->
178
+ <!-- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">-->
179
+ <!-- <li>-->
180
+ <!-- <a href="#" @click="$parent.$parent.$parent.click(row)">撤销</a>-->
181
+ <!-- </li>-->
182
+ <!-- </ul>-->
183
+ <!-- </dropdown>-->
184
+ <!-- </td>-->
185
+ </tr>
186
+ </template>
187
+ </data-grid>
188
+ </criteria-paged>
189
+ </div>
190
+ </template>
191
+ <script>
192
+ import {PagedList} from 'vue-client'
193
+ import {isEmpty} from '../../Util'
194
+ export default {
195
+ title: '终止报建',
196
+ data () {
197
+ return {
198
+ model: new PagedList('rs/sql/getStopApply', 20, {
199
+ data: {
200
+ orgid: this.$login.f.orgid
201
+ }
202
+ }),
203
+ curorgid: [this.$login.f.orgid],
204
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
205
+ defnames: [{label: '全部', value: ''}], // 流程节点
206
+ applyNatures: [{label: '全部', value: ''}], // 报建性质
207
+ criteriaShow: false
208
+ }
209
+ },
210
+ ready () {
211
+ // 调用查询
212
+ this.search()
213
+ },
214
+ events: {
215
+ },
216
+ methods: {
217
+ // 查询
218
+ search () {
219
+ this.$dispatch('search')
220
+ },
221
+ click (row) {
222
+ this.$dispatch('cancelStopApply', row)
223
+ },
224
+ async applyTypeChange () {
225
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
226
+ let res = await this.$resetpost('rs/logic/getDefnameByType',
227
+ { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
228
+ {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
229
+ )
230
+
231
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
232
+
233
+ this.applyNatures = isEmpty(this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)]
234
+ } else {
235
+ this.defnames = [{label: '全部', value: ''}]
236
+
237
+ this.applyNatures = [{label: '全部', value: ''}]
238
+ }
239
+ },
240
+ clear () {
241
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
242
+ this.$refs.cp.$refs.cri.model[key] = null
243
+ })
244
+ },
245
+ getorg (val) {
246
+ if (val.length <= 0) {
247
+ return
248
+ }
249
+ this.model.params.data.orgid = val[0]
250
+ }
251
+ },
252
+ computed: {
253
+ }
254
+ }
255
+ </script>
256
+ <style scoped>
257
+ </style>
@@ -1,119 +1,121 @@
1
- <template>
2
- <div class="flex-row">
3
- <div class="basic-main">
4
- <div :class="showData ? 'top' : 'auto'">
5
- <supervisory-list v-ref:query :show-data="showData"></supervisory-list>
6
- </div>
7
- <div v-if="showtotal" style="height: 89%">
8
- <div class="col-sm-2">
9
- <supervisory-chart :selectdata="selectdata"></supervisory-chart>
10
- </div>
11
- <div class="col-sm-10">
12
- <tabset v-ref:tabs :close="false">
13
- <tab :header='selectdata.defname'>
14
- <supervisory-service-control :selectdata="selectdata" :node-snapshot="true"></supervisory-service-control>
15
- </tab>
16
- <tab header='附件'>
17
- <apply-upload :blodid="selectdata.f_process_id"
18
- :isupload = "false"
19
- :isdelete="false"
20
- :isusetype="true"
21
- :isremark = "true"
22
- :takeimg="false"
23
- :issearch="true"
24
- :defname="selectdata.defname">
25
- </apply-upload>
26
- </tab>
27
- </tabset>
28
- </div>
29
- </div>
30
- </div>
31
- </div>
32
-
33
- </template>
34
- <script>
35
- import Vue from 'vue'
36
- import {HttpResetClass} from 'vue-client'
37
- export default {
38
- title: '流程监控',
39
- data () {
40
- return {
41
- showtotal: false, // 控制详细信息显示
42
- showData: true,
43
- selectdata: {},
44
- xmlname: '' // 配置文件名称
45
- }
46
- },
47
- created () {
48
- },
49
- methods: {
50
- // 获取页面配置json文件
51
- async loadName () {
52
- let http = new HttpResetClass()
53
- let xmldata = {
54
- data: this.$login.f,
55
- workname: this.xmlname
56
- }
57
- let res = await http.load('POST', 'rs/logic/ApplyGetConfigs', {data: xmldata}, {resolveMsg: null, rejectMsg: null})
58
-
59
- if (res.data.code && res.data.code === 200) {
60
- Vue.prototype.$workflow_vue = res.data.workflow_vue
61
- } else {
62
- this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
63
- return
64
- }
65
- }
66
- },
67
- events: {
68
- 'onMessage' (data) {
69
- console.log('接收消息')
70
- console.log(data)
71
- if (data.type === 'apply-task') {
72
- this.$refs.queryuser.$refs.cp.$refs.cri.search()
73
- }
74
- },
75
- async 'apply' (val) {
76
- this.selectdata = val
77
- this.showtotal = false
78
-
79
- if (this.selectdata.f_apply_type === '开发商集体报建') {
80
- this.xmlname = '开发商集体报建流程'
81
- } else if (this.selectdata.f_apply_type === '散户报建') {
82
- this.xmlname = '散户报建流程'
83
- } else if (this.selectdata.f_apply_type === '工商户报建') {
84
- this.xmlname = '工商户报建流程'
85
- } else if (this.selectdata.f_apply_type === '散户集体报建') {
86
- this.xmlname = '散户集体报建流程'
87
- } else if (this.selectdata.f_apply_type === '煤改气报建') {
88
- this.xmlname = '散户集体报建流程'
89
- } else if (this.selectdata.f_apply_type === '综合报建') {
90
- this.xmlname = '报建流程'
91
- } else {
92
- this.$showMessage('暂无此类报装')
93
- return
94
- }
95
-
96
- // 获取配置文件
97
- await this.loadName()
98
-
99
- this.$refs.query.$refs.cp.pager = false
100
- this.showData = false
101
-
102
- this.showtotal = true
103
- },
104
- 'search' () {
105
- // 关闭详细
106
- this.showtotal = false
107
- // 显示列表数据
108
- this.showData = true
109
- // 显示分页
110
- this.$refs.query.$refs.cp.pager = true
111
- // 调用查询
112
- this.$refs.query.$refs.cp.$refs.cri.search()
113
- }
114
- },
115
-
116
- watch: {
117
- }
118
- }
119
- </script>
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <div :class="showData ? 'top' : 'auto'">
5
+ <supervisory-list v-ref:query :show-data="showData"></supervisory-list>
6
+ </div>
7
+ <div v-if="showtotal" style="height: 89%">
8
+ <div class="col-sm-2">
9
+ <supervisory-chart :selectdata="selectdata"></supervisory-chart>
10
+ </div>
11
+ <div class="col-sm-10">
12
+ <tabset v-ref:tabs :close="false">
13
+ <tab :header='selectdata.defname'>
14
+ <supervisory-service-control :selectdata="selectdata" :node-snapshot="true"></supervisory-service-control>
15
+ </tab>
16
+ <tab header='附件'>
17
+ <apply-upload :blodid="selectdata.f_process_id"
18
+ :isupload = "false"
19
+ :isdelete="false"
20
+ :isusetype="true"
21
+ :isremark = "true"
22
+ :takeimg="false"
23
+ :issearch="true"
24
+ :defname="selectdata.defname">
25
+ </apply-upload>
26
+ </tab>
27
+ </tabset>
28
+ </div>
29
+ </div>
30
+ </div>
31
+ </div>
32
+
33
+ </template>
34
+ <script>
35
+ import Vue from 'vue'
36
+ import {HttpResetClass} from 'vue-client'
37
+ export default {
38
+ title: '流程监控',
39
+ data () {
40
+ return {
41
+ showtotal: false, // 控制详细信息显示
42
+ showData: true,
43
+ selectdata: {},
44
+ xmlname: '' // 配置文件名称
45
+ }
46
+ },
47
+ created () {
48
+ },
49
+ methods: {
50
+ // 获取页面配置json文件
51
+ async loadName () {
52
+ let http = new HttpResetClass()
53
+ let xmldata = {
54
+ data: this.$login.f,
55
+ workname: this.xmlname
56
+ }
57
+ let res = await http.load('POST', 'rs/logic/ApplyGetConfigs', {data: xmldata}, {resolveMsg: null, rejectMsg: null})
58
+
59
+ if (res.data.code && res.data.code === 200) {
60
+ Vue.prototype.$workflow_vue = res.data.workflow_vue
61
+ } else {
62
+ this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
63
+ return
64
+ }
65
+ }
66
+ },
67
+ events: {
68
+ 'onMessage' (data) {
69
+ console.log('接收消息')
70
+ console.log(data)
71
+ if (data.type === 'apply-task') {
72
+ this.$refs.queryuser.$refs.cp.$refs.cri.search()
73
+ }
74
+ },
75
+ async 'apply' (val) {
76
+ this.selectdata = val
77
+ this.showtotal = false
78
+
79
+ if (this.selectdata.f_apply_type === '开发商集体报建') {
80
+ this.xmlname = '开发商集体报建流程'
81
+ } else if (this.selectdata.f_apply_type === '散户报建') {
82
+ this.xmlname = '散户报建流程'
83
+ } else if (this.selectdata.f_apply_type === '工商户报建') {
84
+ this.xmlname = '工商户报建流程'
85
+ } else if (this.selectdata.f_apply_type === '散户集体报建') {
86
+ this.xmlname = '散户集体报建流程'
87
+ } else if (this.selectdata.f_apply_type === '煤改气报建') {
88
+ this.xmlname = '散户集体报建流程'
89
+ } else if (this.selectdata.f_apply_type === '拆改装报建') {
90
+ this.xmlname = '拆改装流程'
91
+ } else if (this.selectdata.f_apply_type === '综合报建') {
92
+ this.xmlname = '报建流程'
93
+ } else {
94
+ this.$showMessage('暂无此类报装')
95
+ return
96
+ }
97
+
98
+ // 获取配置文件
99
+ await this.loadName()
100
+
101
+ this.$refs.query.$refs.cp.pager = false
102
+ this.showData = false
103
+
104
+ this.showtotal = true
105
+ },
106
+ 'search' () {
107
+ // 关闭详细
108
+ this.showtotal = false
109
+ // 显示列表数据
110
+ this.showData = true
111
+ // 显示分页
112
+ this.$refs.query.$refs.cp.pager = true
113
+ // 调用查询
114
+ this.$refs.query.$refs.cp.$refs.cri.search()
115
+ }
116
+ },
117
+
118
+ watch: {
119
+ }
120
+ }
121
+ </script>