apply-clients 3.1.37 → 3.1.38

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,132 @@
1
+ <template>
2
+ <div class="basic-main" style="overflow:auto;">
3
+ <div class="tops" v-bind:style="{ height: topheight }">
4
+ <supervisory-list2 v-ref:queryuser></supervisory-list2>
5
+ </div>
6
+ <div v-if="showtotal" v-bind:style="{ height: botheight }">
7
+ <div class="col-sm-2" v-if="showbasic">
8
+ <supervisory-chart :selectdata="selectdata" :defname = "header"></supervisory-chart>
9
+ </div>
10
+ <div class="col-sm-10">
11
+ <tabset v-ref:tabs :close="false">
12
+ <tab :header='header' style="background-color :#ffffff!important;overflow: auto;">
13
+ <supervisory-service-control :selectdata="selectdata" ></supervisory-service-control>
14
+ </tab>
15
+ <tab header='附件' style="background-color :#ffffff!important;overflow: auto;">
16
+ <upload v-ref:file :blodid = "selectdata.f_process_id" :isusetype = "false" :isremark ="false"
17
+ :isupload = "true"
18
+ :takeimg = "true"
19
+ :edit = "false">
20
+ </upload>
21
+ </tab>
22
+ </tabset>
23
+ </div>
24
+ </div>
25
+ </div>
26
+ </template>
27
+ <script>
28
+ import Vue from 'vue'
29
+ import {HttpResetClass} from 'vue-client'
30
+ export default {
31
+ title: '流程监控',
32
+ props: ['defname'],
33
+ data () {
34
+ return {
35
+ flagl: false,
36
+ flagg: false,
37
+ showbasic: false, // 控制节点列表显示
38
+ showtotal: false, // 控制详细信息显示
39
+ header: null,
40
+ selectdata: {},
41
+ botheight: '0%', // 详细信息显示高度
42
+ topheight: '100%', // 工程列表显示高度
43
+ info: '流程监控',
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 {
86
+ this.$showMessage('暂无此类报装')
87
+ return
88
+ }
89
+
90
+ // 获取配置文件
91
+ await this.loadName()
92
+
93
+ this.topheight = '10%'
94
+ this.botheight = '90%'
95
+ // this.$refs.queryuser.$refs.cp.$refs.grid.model.rows = [val]
96
+ this.header = this.selectdata.defname
97
+ this.$refs.queryuser.$refs.cp.pager = false
98
+ this.showbasic = true
99
+ this.showtotal = true
100
+
101
+ },
102
+ 'close'() {
103
+ this.showbasic = false
104
+ this.showtotal = false
105
+ this.topheight = '100%'
106
+ this.botheight = '0%'
107
+ this.$refs.queryuser.$refs.cp.$refs.cri.search()
108
+ this.$refs.queryuser.$refs.cp.pager = true
109
+ },
110
+ 'hidden' (criteriaShow) {
111
+ if (!this.showtotal && !criteriaShow) {
112
+
113
+ }
114
+ if (!this.showtotal && criteriaShow) {
115
+
116
+ }
117
+ if (this.showtotal && !criteriaShow) {
118
+ this.topheight = '20%'
119
+ this.botheight = '80%'
120
+ }
121
+ if (this.showtotal && criteriaShow) {
122
+ this.topheight = '10%'
123
+ this.botheight = '90%'
124
+ }
125
+
126
+ }
127
+ },
128
+
129
+ watch: {
130
+ }
131
+ }
132
+ </script>
@@ -1,184 +1,250 @@
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-4">
8
- <label class="font_normal_body">客户名称/联系人:</label>
9
- <input type="text" class="input_search" v-model="model.f_user_name"
10
- v-on:keyup.enter="search" condition=" (f_user_name like '%{}%' or f_contact like '%{}%') " placeholder='二选一输入'>
11
- </div>
12
- <div class="form-group col-sm-3">
13
- <label class="font_normal_body">合同编号:</label>
14
- <input type="text" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
15
- v-on:keyup.enter="search"
16
- condition="f_contract_number like '%{}%'">
17
- </div>
18
- <div class="form-group col-sm-3">
19
- <label class="font_normal_body">用户地址:</label>
20
- <input type="text" class="input_search" placeholder='用户地址' v-model="model.f_address"
21
- v-on:keyup.enter="search"
22
- condition="f_address like '%{}%'">
23
- </div>
24
- <div class="form-group col-sm-2 operate">
25
- <button type="button" class="btn btn-info head-but" @click="search(),$parent.$parent.close()" v-el:cx>查询</button>
26
- <!-- <button class="button_search button_spacing width-60" @click="search(),$parent.$parent.close()" v-el:cx>查询</button>-->
27
- <div
28
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
29
- @click="$parent.$parent.hidden()"
30
- class="button_spacing"
31
- style="float: right">
32
- </div>
33
- </div>
34
- </div>
35
- <div class="row" v-show="$parent.$parent.criteriaShow">
36
- <div class="col-sm-3 form-group">
37
- <label class="font_normal_body">报建类型:</label>
38
- <v-select
39
- v-model="model.f_apply_type"
40
- placeholder='报建类型'
41
- condition="f_apply_type like '%{}%'"
42
- :value.sync="model.f_apply_type"
43
- :options='$parent.$parent.applytype'
44
- class="select select_list"
45
- :value-single="true"
46
- close-on-select ></v-select>
47
- </div>
48
- <div class="col-sm-3 form-group">
49
- <label class="font_normal_body">办理环节:</label>
50
- <v-select
51
- v-model="model.defname"
52
- placeholder='办理环节'
53
- condition="defname = '{}'"
54
- :value.sync="model.defname"
55
- :options='$parent.$parent.defnames'
56
- class="select select_list"
57
- :value-single="true"
58
- close-on-select ></v-select>
59
- </div>
60
- </div>
61
- </div>
62
- </criteria>
63
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
64
- <template partial='head'>
65
- <tr>
66
- <th>序号</th>
67
- <th>当前状态</th>
68
- <th>客户名称/联系人</th>
69
- <th>合同编号</th>
70
- <th>电话</th>
71
- <th>地址</th>
72
- <th>流程状态</th>
73
- <th>报建类型</th>
74
- <th>报建日期</th>
75
- </tr>
76
- </template>
77
- <template partial='body'>
78
- <tr>
79
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
80
- <nobr>{{$index+1}}</nobr>
81
- </td>
82
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
83
- <nobr>{{row.f_sub_state}}</nobr>
84
- </td>
85
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
86
- <nobr>{{row.f_user_name}}/{{row.f_contact}}</nobr>
87
- </td>
88
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
89
- <nobr>{{row.f_contract_number}}</nobr>
90
- </td>
91
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
92
- <nobr>{{row.f_phone}}</nobr>
93
- </td>
94
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
95
- <nobr>{{row.f_address}}</nobr>
96
- </td>
97
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
98
- <nobr>{{row.defname}}</nobr>
99
- </td>
100
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
101
- <nobr>{{row.f_apply_type}}</nobr>
102
- </td>
103
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
104
- <nobr>{{row.f_apply_date}}</nobr>
105
- </td>
106
- </tr>
107
- </template>
108
- </data-grid>
109
- </criteria-paged>
110
- </div>
111
- </template>
112
- <script>
113
- import {PagedList} from 'vue-client'
114
- import getNowDate from '../../getNowDate.js'
115
- import {HttpResetClass} from 'vue-client'
116
-
117
- export default {
118
- title: '勘探详情',
119
- data() {
120
- return {
121
- applytype: [{label:"全部",value:''}],
122
- model: new PagedList('rs/sql/supervisory', 20, {
123
- data: {
124
- id: `${this.$login.f.name}`,
125
- org: `${this.$login.f.orgs}`
126
- }
127
- }),
128
- defnames:[], // 所有流程节点
129
- condition: '', // 查询条件
130
- criteriaShow: false
131
- }
132
- },
133
- async ready() {
134
- // 调用查询
135
- this.$refs.cp.$refs.cri.search()
136
- // 获取所有办理环节
137
- this.getDefnames()
138
- },
139
- events: {
140
- },
141
- methods: {
142
- hidden() {
143
- this.$dispatch('hidden', this.criteriaShow)
144
- this.criteriaShow = !this.criteriaShow
145
- },
146
- // 获取所有办理环节
147
- getDefnames() {
148
- let http = new HttpResetClass()
149
- http.load('POST', 'rs/logic/getAllDefname', {}, {
150
- resolveMsg: null,
151
- rejectMsg: null
152
- }).then((res) => {
153
- this.defnames = [{label: '全部', value: ''}, ...res.data]
154
- })
155
- },
156
- check(val) {
157
- this.$dispatch('apply', val)
158
- },
159
- close() {
160
- this.$dispatch('close')
161
- }
162
- },
163
- computed: {
164
- }
165
- }
166
- </script>
167
- <style scoped>
168
-
169
- .operate{
170
- text-align: right;
171
- display: flex;
172
- align-items: center; /*子元素中线居中*/
173
- justify-content: flex-end; /*子元素靠右*/
174
- margin-top: 7px;
175
- }
176
- .head-but{
177
- margin-left: 5px;
178
- height: 34px;
179
- background-color: #6aa6e2;
180
- border-radius: 4px;
181
- font-family: PingFang;
182
- color: #ffffff;
183
- }
184
- </style>
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
+ <input type="text" class="input_search" v-model="model.f_user_name"
10
+ v-on:keyup.enter="search" condition=" (f_user_name like '%{}%' or f_contact like '%{}%') " placeholder='二选一输入'>
11
+ </div>
12
+ <div class="form-group col-sm-3">
13
+ <label class="font_normal_body">工程编号:</label>
14
+ <input type="text" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
15
+ v-on:keyup.enter="search"
16
+ condition="f_apply_num like '%{}%'">
17
+ </div>
18
+ <div class="form-group col-sm-3">
19
+ <label class="font_normal_body">合同编号:</label>
20
+ <input type="text" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
21
+ v-on:keyup.enter="search"
22
+ condition="f_contract_number like '%{}%'">
23
+ </div>
24
+ <div class="form-group col-sm-2 operate">
25
+ <button type="button" class="btn btn-info head-but" @click="search(),$parent.$parent.close()" v-el:cx>查询</button>
26
+ <export-excel :data="$parent.$parent.getCondition"
27
+ :field="$parent.$parent.getfield"
28
+ sqlurl="rs/logic/applyExportfile"
29
+ sql-name="supervisory"
30
+ template-name='报建记录信息导出'
31
+ :choose-col="true"></export-excel>
32
+ <!-- <button class="button_search button_spacing width-60" @click="search(),$parent.$parent.close()" v-el:cx>查询</button>-->
33
+ <div
34
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
35
+ @click="$parent.$parent.hidden()"
36
+ class="button_spacing"
37
+ style="float: right">
38
+ </div>
39
+ </div>
40
+ </div>
41
+ <div class="row" v-show="$parent.$parent.criteriaShow">
42
+ <div class="form-group col-sm-3">
43
+ <label class="font_normal_body">用户地址:</label>
44
+ <input type="text" class="input_search" placeholder='用户地址' v-model="model.f_address"
45
+ v-on:keyup.enter="search"
46
+ condition="f_address like '%{}%'">
47
+ </div>
48
+ <div class="form-group col-sm-3">
49
+ <label class="font_normal_body">票号:</label>
50
+ <input type="text" class="input_search" placeholder='票号' v-model="model.f_ticket_number"
51
+ v-on:keyup.enter="search"
52
+ condition="c.f_ticket_number like '%{}%'">
53
+ </div>
54
+ <div class="col-sm-3 form-group">
55
+ <label class="font_normal_body">报建类型:</label>
56
+ <v-select
57
+ v-model="model.f_apply_type"
58
+ placeholder='报建类型'
59
+ condition="f_apply_type like '%{}%'"
60
+ :value.sync="model.f_apply_type"
61
+ :options='$parent.$parent.applytype'
62
+ class="select select_list"
63
+ :value-single="true"
64
+ close-on-select ></v-select>
65
+ </div>
66
+ <div class="col-sm-3 form-group">
67
+ <label class="font_normal_body">办理环节:</label>
68
+ <v-select
69
+ v-model="model.defname"
70
+ placeholder='办理环节'
71
+ condition="defname = '{}'"
72
+ :value.sync="model.defname"
73
+ :options='$parent.$parent.defnames'
74
+ class="select select_list"
75
+ :value-single="true"
76
+ close-on-select ></v-select>
77
+ </div>
78
+ <div class="form-group col-sm-3">
79
+ <label for="startDate" class="font_normal_body">开始时间:</label>
80
+ <datepicker id="startDate" placeholder="开始日期"
81
+ style="width: 60%!important;"
82
+ v-model="model.startDate"
83
+ :value.sync="model.startDate"
84
+ :format="'yyyy-MM-dd 00:00:00'"
85
+ :show-reset-button="true"
86
+ condition="f_apply_date >= '{}'">
87
+ </datepicker>
88
+ </div>
89
+ <div class="form-group col-sm-3">
90
+ <label for="endDate" class="font_normal_body">结束时间:</label>
91
+ <datepicker id="endDate" placeholder="结束日期"
92
+ style="width: 60%!important;"
93
+ v-model="model.endDate"
94
+ :value.sync="model.endDate"
95
+ :format="'yyyy-MM-dd 23:59:59'"
96
+ :show-reset-button="true"
97
+ condition="f_apply_date <= '{}'">
98
+ </datepicker>
99
+ </div>
100
+ </div>
101
+ </div>
102
+ </criteria>
103
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
104
+ <template partial='head'>
105
+ <tr>
106
+ <th>序号</th>
107
+ <th>报建编号</th>
108
+ <th>当前状态</th>
109
+ <th>客户名称/联系人</th>
110
+ <th>合同编号</th>
111
+ <th>电话</th>
112
+ <th>地址</th>
113
+ <th>流程状态</th>
114
+ <th>报建类型</th>
115
+ <th>报建日期</th>
116
+ </tr>
117
+ </template>
118
+ <template partial='body'>
119
+ <tr>
120
+ <td style="text-align: center;">
121
+ <nobr>{{$index+1}}</nobr>
122
+ </td>
123
+ <td style="text-align: center;">
124
+ <nobr><font>{{row.f_apply_num}}</font></nobr>
125
+ </td>
126
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
127
+ <nobr>{{row.f_sub_state}}</nobr>
128
+ </td>
129
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
130
+ <nobr>{{row.f_user_name}}/{{row.f_contact}}</nobr>
131
+ </td>
132
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
133
+ <nobr>{{row.f_contract_number}}</nobr>
134
+ </td>
135
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
136
+ <nobr>{{row.f_phone}}</nobr>
137
+ </td>
138
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
139
+ <nobr>{{row.f_address}}</nobr>
140
+ </td>
141
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
142
+ <nobr>{{row.defname}}</nobr>
143
+ </td>
144
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
145
+ <nobr>{{row.f_apply_type}}</nobr>
146
+ </td>
147
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
148
+ <nobr>{{row.f_apply_date}}</nobr>
149
+ </td>
150
+ </tr>
151
+ </template>
152
+ </data-grid>
153
+ </criteria-paged>
154
+ </div>
155
+ </template>
156
+ <script>
157
+ import {PagedList} from 'vue-client'
158
+ import getNowDate from '../../getNowDate.js'
159
+ import {HttpResetClass} from 'vue-client'
160
+
161
+ export default {
162
+ title: '勘探详情',
163
+ data() {
164
+ return {
165
+ applytype: [{label:"全部",value:''}, {label:"集中报建",value:'集中报建'}, {label:"非民用报建",value:'非民用报建'},{label:"散户报建",value:'散户报建'}],
166
+ model: new PagedList('rs/sql/supervisory', 20, {
167
+ data: {
168
+ id: `${this.$login.f.name}`,
169
+ org: `${this.$login.f.orgs}`
170
+ }
171
+ }),
172
+ defnames:[], // 所有流程节点
173
+ condition: '', // 查询条件
174
+ criteriaShow: false,
175
+ getfield: {
176
+ 'f_apply_num': '报建编号',
177
+ 'defname': '当前环节',
178
+ 'f_sub_state': '流程状态',
179
+ 'f_user_name': '联系人',
180
+ 'f_contact': '联系人',
181
+ 'f_contract_number': '合同编号',
182
+ 'f_phone': '电话',
183
+ 'f_address': '地址',
184
+ 'f_apply_type': '报建类型',
185
+ 'f_apply_date': '报建日期'
186
+ }
187
+ }
188
+ },
189
+ async ready() {
190
+ // 调用查询
191
+ this.$refs.cp.$refs.cri.search()
192
+ // 获取所有办理环节
193
+ this.getDefnames()
194
+ },
195
+ events: {
196
+ },
197
+ methods: {
198
+ hidden() {
199
+ this.$dispatch('hidden', this.criteriaShow)
200
+ this.criteriaShow = !this.criteriaShow
201
+ },
202
+ // 获取所有办理环节
203
+ getDefnames() {
204
+ let http = new HttpResetClass()
205
+ http.load('POST', 'rs/logic/getAllDefname', {}, {
206
+ resolveMsg: null,
207
+ rejectMsg: null
208
+ }).then((res) => {
209
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
210
+ })
211
+ },
212
+ check(val) {
213
+ this.$dispatch('apply', val)
214
+ },
215
+ close() {
216
+ this.$dispatch('close')
217
+ }
218
+ },
219
+ computed: {
220
+ getCondition () {
221
+ console.log("condition",this.$refs.cp.$refs.cri.condition)
222
+ return {
223
+ condition: this.$refs.cp.$refs.cri.condition,
224
+ data: {
225
+ org: `${this.$login.f.orgs}`,
226
+ orgid: this.$login.f.orgid
227
+ }
228
+ }
229
+ }
230
+ }
231
+ }
232
+ </script>
233
+ <style scoped>
234
+
235
+ .operate{
236
+ text-align: right;
237
+ display: flex;
238
+ align-items: center; /*子元素中线居中*/
239
+ justify-content: flex-end; /*子元素靠右*/
240
+ margin-top: 7px;
241
+ }
242
+ .head-but{
243
+ margin-left: 5px;
244
+ height: 34px;
245
+ background-color: #6aa6e2;
246
+ border-radius: 4px;
247
+ font-family: PingFang;
248
+ color: #ffffff;
249
+ }
250
+ </style>