apply-clients 4.0.66 → 4.0.67
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 +1 -1
- package/src/apply.js +186 -186
- package/src/components/product/Function/InstallInfoSelect.vue +239 -239
- package/src/components/product/ImageUpload1.vue +10 -6
- package/src/components/product/Process/ExplorationSelect.vue +463 -463
- package/src/components/product/Process/Processes/BatchItem.vue +507 -507
- package/src/components/product/Statistics/ApplyPaySearch/ApplyCheckBill.vue +420 -420
- package/src/components/product/Statistics/ApplyPaySearch/ApplyPaySearch.vue +363 -363
- package/src/components/product/Statistics/ApplyPaySearch/MaterialSummary.vue +373 -373
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +207 -207
- package/src/components/product/Supervisory/SupervisoryControl.vue +157 -157
- package/src/components/product/Supervisory/SupervisoryList.vue +450 -450
- package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/gradlew +0 -172
- package/gradlew.bat +0 -84
|
@@ -1,450 +1,450 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="flex:1;" class="flex">
|
|
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="col-sm-1">
|
|
8
|
-
<input type="text" class="form-control" placeholder='客户名称' v-model="model.f_user_name"
|
|
9
|
-
v-on:keyup.enter="search"
|
|
10
|
-
condition="f_user_name like '%{}%'">
|
|
11
|
-
</div>
|
|
12
|
-
<div class="col-sm-1">
|
|
13
|
-
<input type="text" class="form-control" placeholder='电话号码' v-model="model.f_phone"
|
|
14
|
-
v-on:keyup.enter="search"
|
|
15
|
-
condition="f_phone like '%{}%'">
|
|
16
|
-
</div>
|
|
17
|
-
<div class="col-sm-1">
|
|
18
|
-
<input type="text" class="form-control" placeholder='报建编号' v-model="model.f_apply_num"
|
|
19
|
-
v-on:keyup.enter="search"
|
|
20
|
-
condition="f_apply_num like '%{}%'">
|
|
21
|
-
</div>
|
|
22
|
-
<div class="col-sm-1">
|
|
23
|
-
<input type="text" class="form-control" placeholder='用户地址' v-model="model.f_address"
|
|
24
|
-
v-on:keyup.enter="search"
|
|
25
|
-
condition="f_address like '%{}%'">
|
|
26
|
-
</div>
|
|
27
|
-
<div class="col-sm-1">
|
|
28
|
-
<input type="text" class="form-control" placeholder='建安费发票号' v-model="model.f_invoice_number"
|
|
29
|
-
v-on:keyup.enter="search"
|
|
30
|
-
condition="f_invoice_number like '%{}%'">
|
|
31
|
-
</div>
|
|
32
|
-
<div class="col-sm-1">
|
|
33
|
-
<input type="text" class="form-control" placeholder='材料费发票号' v-model="model.f_maintenance_invoice"
|
|
34
|
-
v-on:keyup.enter="search"
|
|
35
|
-
condition="f_maintenance_invoice like '%{}%'">
|
|
36
|
-
</div>
|
|
37
|
-
<div class="col-sm-2 form-group form-input-group">
|
|
38
|
-
<label class="control-label">办理环节</label>
|
|
39
|
-
<v-select @change="$dispatch('setQueryCondition',model)" :options="$parent.$parent.defnames"
|
|
40
|
-
condition="defname = '{}'" placeholder='办理环节'
|
|
41
|
-
v-model="model.defname" :value.sync="model.defname" close-on-select>
|
|
42
|
-
</v-select>
|
|
43
|
-
</div>
|
|
44
|
-
<div class="col-sm-2 form-group form-input-group">
|
|
45
|
-
<label for="startDate" class="control-label">到达日期</label>
|
|
46
|
-
<datepicker @change="$dispatch('setQueryCondition',model)" id="startDate" placeholder="开始日期"
|
|
47
|
-
width='100%'
|
|
48
|
-
v-model="model.startDate"
|
|
49
|
-
:value.sync="model.startDate"
|
|
50
|
-
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
51
|
-
:show-reset-button="true"
|
|
52
|
-
condition="sendtime >= '{}'">
|
|
53
|
-
</datepicker>
|
|
54
|
-
</div>
|
|
55
|
-
<div class="col-sm-2 form-group form-input-group">
|
|
56
|
-
<label for="endDate" class="control-label">到</label>
|
|
57
|
-
<datepicker @change="$dispatch('setQueryCondition',model)" id="endDate" placeholder="结束日期"
|
|
58
|
-
width='100%'
|
|
59
|
-
v-model="model.endDate"
|
|
60
|
-
:value.sync="model.endDate"
|
|
61
|
-
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
62
|
-
:show-reset-button="true"
|
|
63
|
-
condition="sendtime <= '{}'">
|
|
64
|
-
</datepicker>
|
|
65
|
-
</div>
|
|
66
|
-
<!--<div class="col-sm-2 form-group form-input-group">-->
|
|
67
|
-
<!--<label class="control-label">办理人</label>-->
|
|
68
|
-
<!--<v-select @change="$dispatch('setQueryCondition',model)" :options="$parent.$parent.persons"-->
|
|
69
|
-
<!--condition=" applysite like '%{}%' " placeholder='办理人'-->
|
|
70
|
-
<!--v-model="model.applysite" :value.sync="model.applysite" close-on-select>-->
|
|
71
|
-
<!--</v-select>-->
|
|
72
|
-
<!--</div>-->
|
|
73
|
-
</div>
|
|
74
|
-
<div class="row">
|
|
75
|
-
<div class="col-sm-1" style = "float:left;margin-top:10px">
|
|
76
|
-
<v-select :width ="'100%'" style="width: 100%" :options="$parent.$parent.f_is_gas" placeholder='现场勘察' condition="f_is_gas = '{}'"
|
|
77
|
-
v-model="model.f_is_gas" :value.sync="model.f_is_gas" close-on-select>
|
|
78
|
-
</v-select>
|
|
79
|
-
</div>
|
|
80
|
-
<div class="span" style = "float:right;margin-top:10px">
|
|
81
|
-
<button class="btn btn-success" style="border-radius: 2px;margin-right: 10px" @click="$parent.$parent.searchNow(),$parent.$parent.close()">
|
|
82
|
-
<span class="glyphicon glyphicon-search"></span>{{$parent.$parent.buttonmsg=='查询'?'查询':'返回'}}
|
|
83
|
-
</button>
|
|
84
|
-
<export-excel :data="$parent.$parent.getCondition"
|
|
85
|
-
:field="$parent.$parent.getfield"
|
|
86
|
-
sqlurl="rs/logic/exportfile" sql-name="supervisory"
|
|
87
|
-
template-name='流程监控全部导出' :choose-col="true">
|
|
88
|
-
</export-excel>
|
|
89
|
-
<!--<button class="btn" @click="$parent.$parent.hidden()" style="margin-left: 10px">-->
|
|
90
|
-
<!--<span class="glyphicon glyphicon-chevron-up"></span>-->
|
|
91
|
-
<!--</button>-->
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
94
|
-
</div>
|
|
95
|
-
</criteria>
|
|
96
|
-
|
|
97
|
-
<data-grid :model="model" partial='list' v-ref:grid class="data-grid" is-fixed='false' style="overflow-x:auto">
|
|
98
|
-
<template partial='head'>
|
|
99
|
-
<tr class="title">
|
|
100
|
-
<th>
|
|
101
|
-
<nobr>序号</nobr>
|
|
102
|
-
</th>
|
|
103
|
-
<th>
|
|
104
|
-
<nobr>业务办理人</nobr>
|
|
105
|
-
</th>
|
|
106
|
-
<th>
|
|
107
|
-
<nobr>报建编号</nobr>
|
|
108
|
-
</th>
|
|
109
|
-
<th>
|
|
110
|
-
<nobr>客户名称</nobr>
|
|
111
|
-
</th>
|
|
112
|
-
<th>
|
|
113
|
-
<nobr>用气性质</nobr>
|
|
114
|
-
</th>
|
|
115
|
-
<th>
|
|
116
|
-
<nobr>电话</nobr>
|
|
117
|
-
</th>
|
|
118
|
-
<th>
|
|
119
|
-
<nobr>地址</nobr>
|
|
120
|
-
</th>
|
|
121
|
-
<th>
|
|
122
|
-
<nobr>流程状态</nobr>
|
|
123
|
-
</th>
|
|
124
|
-
<th>
|
|
125
|
-
<nobr>报建日期</nobr>
|
|
126
|
-
</th>
|
|
127
|
-
<th>
|
|
128
|
-
<nobr>到达当前环节日期</nobr>
|
|
129
|
-
</th>
|
|
130
|
-
</tr>
|
|
131
|
-
</template>
|
|
132
|
-
<template partial='body'>
|
|
133
|
-
<tr>
|
|
134
|
-
<td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center">
|
|
135
|
-
<nobr>{{$index+1}}</nobr>
|
|
136
|
-
</td>
|
|
137
|
-
<td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center">
|
|
138
|
-
<nobr>{{row.applysite}}</nobr>
|
|
139
|
-
</td>
|
|
140
|
-
<td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center">
|
|
141
|
-
<nobr>{{row.f_apply_num}}</nobr>
|
|
142
|
-
</td>
|
|
143
|
-
<td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center">
|
|
144
|
-
<nobr>{{row.f_user_name}}</nobr>
|
|
145
|
-
</td>
|
|
146
|
-
<td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center">
|
|
147
|
-
<nobr>{{row.f_gas_type}}</nobr>
|
|
148
|
-
</td>
|
|
149
|
-
<td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center">
|
|
150
|
-
<nobr>{{row.f_phone}}</nobr>
|
|
151
|
-
</td>
|
|
152
|
-
<td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center">
|
|
153
|
-
<nobr>{{row.f_address}}</nobr>
|
|
154
|
-
</td>
|
|
155
|
-
<td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center">
|
|
156
|
-
<nobr>{{row.defname}}</nobr>
|
|
157
|
-
</td>
|
|
158
|
-
<td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center">
|
|
159
|
-
<nobr>{{row.f_apply_date}}</nobr>
|
|
160
|
-
</td>
|
|
161
|
-
<td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center">
|
|
162
|
-
<nobr>{{row.sendtime}}</nobr>
|
|
163
|
-
</td>
|
|
164
|
-
</tr>
|
|
165
|
-
</template>
|
|
166
|
-
</data-grid>
|
|
167
|
-
</criteria-paged>
|
|
168
|
-
|
|
169
|
-
<!--<table class="table-hover">-->
|
|
170
|
-
<!--<tr style="position: relative" class="table-bordered">-->
|
|
171
|
-
<!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>-->
|
|
172
|
-
<!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">初装费(建安费)合计: {{sumsmodel.f_cost2}}</td>-->
|
|
173
|
-
<!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">工料费合计: {{sumsmodel.f_glf}}</td>-->
|
|
174
|
-
<!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">超长费(延伸服务费)合计: {{sumsmodel.f_ysfwf}}</td>-->
|
|
175
|
-
<!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">其他费用(收取材料费)合计: {{sumsmodel.f_other_charge2}}</td>-->
|
|
176
|
-
<!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">点火材料费合计: {{sumsmodel.f_dhclf}}</td>-->
|
|
177
|
-
<!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">点火不锈钢波纹管费合计: {{sumsmodel.f_dhbxgbwg}}</td>-->
|
|
178
|
-
<!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">其他费用(点火)合计: {{sumsmodel.f_dhqtfy}}</td>-->
|
|
179
|
-
<!--<!–f_cost: 0,f_glf: 0,f_ysfwf: 0,f_other_charge: 0,f_dhclf: 0,f_dhqtfy: 0–>-->
|
|
180
|
-
<!--</tr>-->
|
|
181
|
-
<!--</table>-->
|
|
182
|
-
<colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>
|
|
183
|
-
<modal :show.sync="printshow" v-ref:modal backdrop="false">
|
|
184
|
-
<header slot="modal-header" class="modal-header text-center">
|
|
185
|
-
<h4 class="modal-title">打印列选择</h4>
|
|
186
|
-
<input type="checkbox" class="" id="f_generations" v-model="all">
|
|
187
|
-
<label for="f_generations" class="font-size">全选</label>
|
|
188
|
-
</header>
|
|
189
|
-
<article slot="modal-body">
|
|
190
|
-
<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
|
|
191
|
-
<div class="col-sm-3" v-for="f in fields">
|
|
192
|
-
<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
|
|
193
|
-
<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>
|
|
194
|
-
</div>
|
|
195
|
-
</div>
|
|
196
|
-
</article>
|
|
197
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
198
|
-
<center>
|
|
199
|
-
<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
|
|
200
|
-
<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
|
|
201
|
-
<print-table :model='model' v-show="false" v-ref:print
|
|
202
|
-
:top='40' :left='60' :right='40' :bottom='60'
|
|
203
|
-
:thead="thead" :tfoot='tfoot' :attach="yangsen"
|
|
204
|
-
:fields="modelval" :printpage="true">
|
|
205
|
-
</print-table>
|
|
206
|
-
</center>
|
|
207
|
-
</footer>
|
|
208
|
-
</modal>
|
|
209
|
-
</div>
|
|
210
|
-
</template>
|
|
211
|
-
|
|
212
|
-
<script>
|
|
213
|
-
import { PagedList } from 'vue-client'
|
|
214
|
-
import {HttpResetClass} from 'vue-client'
|
|
215
|
-
import getNowDate from '../../getNowDate.js'
|
|
216
|
-
import AppData from '../../../stores/AppData.js'
|
|
217
|
-
import Vue from 'vue'
|
|
218
|
-
|
|
219
|
-
// Date格式化
|
|
220
|
-
Date.prototype.Format = function (fmt) {
|
|
221
|
-
var o = {
|
|
222
|
-
"M+": this.getMonth() + 1, //月份
|
|
223
|
-
"d+": this.getDate(), //日
|
|
224
|
-
"H+": this.getHours(), //小时
|
|
225
|
-
"m+": this.getMinutes(), //分
|
|
226
|
-
"s+": this.getSeconds(), //秒
|
|
227
|
-
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
228
|
-
"S": this.getMilliseconds() //毫秒
|
|
229
|
-
};
|
|
230
|
-
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
231
|
-
for (var k in o)
|
|
232
|
-
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
233
|
-
return fmt;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
let readySomething = async function (self) {
|
|
237
|
-
await self.$MagLoadParams.loadParam(self.$login.f)
|
|
238
|
-
console.log("参数拿到了YYYYYYYYYYYYYY")
|
|
239
|
-
await self.$refs.cp.$refs.cri.search()
|
|
240
|
-
}
|
|
241
|
-
export default {
|
|
242
|
-
data() {
|
|
243
|
-
return {
|
|
244
|
-
f_is_gas: [{label:"全部",value:''}, {label:"符合规范要求",value:'符合规范要求'}, {label:"不符合规范要求",value:'不符合规范要求'}],
|
|
245
|
-
showinfo: false,
|
|
246
|
-
meterbrands: [],
|
|
247
|
-
businesstype: '流程监控全部查询',
|
|
248
|
-
data: {},
|
|
249
|
-
model: new PagedList('rs/sql/supervisory', 20, {
|
|
250
|
-
data: {
|
|
251
|
-
id: `${this.$login.f.name}`,
|
|
252
|
-
fengongsi: `${this.$login.f.f_fengongsi}`
|
|
253
|
-
}
|
|
254
|
-
}),
|
|
255
|
-
criteriaShow: true,
|
|
256
|
-
classname: 'table table-bordered table table-hover',
|
|
257
|
-
headData: ["当前办理人","报建编号","客户名称","用气性质","电话","地址","流程状态","报建日期","到达当前环节日期"],
|
|
258
|
-
bodyData: ["applysite","f_apply_num","f_user_name","f_gas_type","f_phone","f_address","defname","f_apply_date","sendtime"],
|
|
259
|
-
|
|
260
|
-
filialeNameStr: null,
|
|
261
|
-
filialeCodeStr: this.$login.f.f_orgids,
|
|
262
|
-
userid: this.$login.f.id,
|
|
263
|
-
source:`tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
|
|
264
|
-
defnames:[],
|
|
265
|
-
modelval: [],
|
|
266
|
-
printshow: false,
|
|
267
|
-
all: false,
|
|
268
|
-
fields: {},
|
|
269
|
-
thead: '',
|
|
270
|
-
tfoot: '',
|
|
271
|
-
buttonmsg: '查询'
|
|
272
|
-
}
|
|
273
|
-
},
|
|
274
|
-
async ready(){
|
|
275
|
-
this.$refs.cp.$refs.cri.model.startDate = new Date().Format('2019-06-30 00:00:00')
|
|
276
|
-
this.$refs.cp.$refs.cri.model.endDate = new Date().Format('yyyy-MM-dd 23:59:59')
|
|
277
|
-
let http = new HttpResetClass()
|
|
278
|
-
http.load('POST', 'rs/sql/getDefnamesForActivityins', {data:{}}, {
|
|
279
|
-
resolveMsg: null,
|
|
280
|
-
rejectMsg: null
|
|
281
|
-
}).then((res)=>{
|
|
282
|
-
// 先获取所有流程环节
|
|
283
|
-
this.defnames = [{label: '全部', value: ''}]
|
|
284
|
-
for(let i=0;i<res.data.length;i++){
|
|
285
|
-
this.defnames.push({label:res.data[i].defname,value:res.data[i].defname})
|
|
286
|
-
}
|
|
287
|
-
})
|
|
288
|
-
|
|
289
|
-
// let http2 = new HttpResetClass()
|
|
290
|
-
// http2.load('POST', 'rs/sql/getDefnameOperators', {}, {
|
|
291
|
-
// resolveMsg: null,
|
|
292
|
-
// rejectMsg: null
|
|
293
|
-
// }).then((res) => {
|
|
294
|
-
// // 先获取所有流程环节
|
|
295
|
-
// this.persons = [{label: '全部', value: ''}]
|
|
296
|
-
// for (let i = 0; i < res.data.length; i++) {
|
|
297
|
-
// this.persons.push({label: res.data[i].applysite, value: res.data[i].applysite})
|
|
298
|
-
// }
|
|
299
|
-
// })
|
|
300
|
-
|
|
301
|
-
// this.model = Object.assign(this.model,this.$parent.queryCondition)
|
|
302
|
-
readySomething(this).then(() => {
|
|
303
|
-
this.$emit('ready')
|
|
304
|
-
}).catch((error) => {
|
|
305
|
-
this.$emit('error', error)
|
|
306
|
-
})
|
|
307
|
-
this.$refs.cp.$refs.cri.model = Object.assign(this.$refs.cp.$refs.cri.model,this.$parent.$parent.$parent.queryCondition)
|
|
308
|
-
this.$refs.cp.$refs.cri.search()
|
|
309
|
-
},
|
|
310
|
-
methods: {
|
|
311
|
-
check(val) {
|
|
312
|
-
this.buttonmsg = '返回'
|
|
313
|
-
this.$dispatch('check', val)
|
|
314
|
-
},
|
|
315
|
-
compare(val) {
|
|
316
|
-
val === '完工'
|
|
317
|
-
console.log('完工', val)
|
|
318
|
-
return false
|
|
319
|
-
},
|
|
320
|
-
searchNow(){
|
|
321
|
-
this.buttonmsg = '查询'
|
|
322
|
-
this.$refs.cp.$refs.cri.search()
|
|
323
|
-
},
|
|
324
|
-
dblclick(obj) {
|
|
325
|
-
// this.data = obj
|
|
326
|
-
// this.showinfo = true
|
|
327
|
-
},
|
|
328
|
-
async selfSearch (args) {
|
|
329
|
-
let f_orgstr = this.filialeCodeStr
|
|
330
|
-
console.log('xxxx',f_orgstr)
|
|
331
|
-
args.condition = `${args.condition}`
|
|
332
|
-
console.log('我的阐述',JSON.stringify(args.condition))
|
|
333
|
-
await this.model.search(args.condition, args.model)
|
|
334
|
-
|
|
335
|
-
},
|
|
336
|
-
clear(){
|
|
337
|
-
Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
|
|
338
|
-
this.$refs.cp.$refs.cri.model[key] = []
|
|
339
|
-
this.$parent.$parent.$parent.queryCondition[key] = []
|
|
340
|
-
})
|
|
341
|
-
},
|
|
342
|
-
getRes(obj) {
|
|
343
|
-
this.filialeNameStr = obj.res
|
|
344
|
-
this.filialeCodeStr = obj.resids
|
|
345
|
-
},
|
|
346
|
-
stamp () {
|
|
347
|
-
this.all = false
|
|
348
|
-
//默认选择要打印的列
|
|
349
|
-
this.modelval = this.bodyData
|
|
350
|
-
this.fields = this.getfield
|
|
351
|
-
console.log('所有打印字段',this.fields)
|
|
352
|
-
this.printshow = true
|
|
353
|
-
this.put()
|
|
354
|
-
},
|
|
355
|
-
put () {
|
|
356
|
-
// 对Modelval进行排序
|
|
357
|
-
this.sortModelval()
|
|
358
|
-
this.thead = `<tr><th colspan=${this.modelval.length}>报装收费统计报表</th></tr><tr>`
|
|
359
|
-
for (let key of this.modelval) {
|
|
360
|
-
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
361
|
-
}
|
|
362
|
-
this.thead += '</tr>'
|
|
363
|
-
},
|
|
364
|
-
print () {
|
|
365
|
-
this.$refs.print.PrintAsFile()
|
|
366
|
-
this.printshow = false
|
|
367
|
-
},
|
|
368
|
-
close () {
|
|
369
|
-
this.printshow = false
|
|
370
|
-
this.all = false
|
|
371
|
-
this.$dispatch('close')
|
|
372
|
-
},
|
|
373
|
-
// 对选择的列进行排序
|
|
374
|
-
sortModelval () {
|
|
375
|
-
let sortModel = []
|
|
376
|
-
Object.keys(this.fields).forEach((key) => {
|
|
377
|
-
if (this.modelval.includes(key)) {
|
|
378
|
-
sortModel.push(key)
|
|
379
|
-
}
|
|
380
|
-
})
|
|
381
|
-
this.modelval = sortModel
|
|
382
|
-
console.log('选择的打印的字段', this.modelval)
|
|
383
|
-
}
|
|
384
|
-
},
|
|
385
|
-
watch:{
|
|
386
|
-
'all' (val) {
|
|
387
|
-
if (val) {
|
|
388
|
-
this.modelval = this.bodyData
|
|
389
|
-
} else {
|
|
390
|
-
this.modelval = this.bodyData
|
|
391
|
-
this.put()
|
|
392
|
-
}
|
|
393
|
-
},
|
|
394
|
-
'modelval.length' () {
|
|
395
|
-
this.put()
|
|
396
|
-
},
|
|
397
|
-
},
|
|
398
|
-
computed:{
|
|
399
|
-
getCondition(){
|
|
400
|
-
this.$refs.cp.$refs.cri.condition = this.$refs.cp.$refs.cri.condition?this.$refs.cp.$refs.cri.condition:'1=1'
|
|
401
|
-
return {condition: `${this.$refs.cp.$refs.cri.condition}`}
|
|
402
|
-
},
|
|
403
|
-
getfield(){
|
|
404
|
-
let data = {}
|
|
405
|
-
this.bodyData.forEach((value, index)=>{
|
|
406
|
-
data[this.bodyData[index]] = this.headData[index]
|
|
407
|
-
})
|
|
408
|
-
|
|
409
|
-
//合计字段打印
|
|
410
|
-
// this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
|
|
411
|
-
// if(this.sumsmodel){
|
|
412
|
-
// Object.keys(this.sumsmodel).forEach((key) => {
|
|
413
|
-
// this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
|
|
414
|
-
// })
|
|
415
|
-
// }else{
|
|
416
|
-
// this.tfoot += '暂无'
|
|
417
|
-
// }
|
|
418
|
-
// this.tfoot += '</th></tr>'
|
|
419
|
-
return data
|
|
420
|
-
},
|
|
421
|
-
usertypes () {
|
|
422
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
423
|
-
},
|
|
424
|
-
gasproperties () {
|
|
425
|
-
let rs = []
|
|
426
|
-
if (this.$refs.cp.$refs.cri.model.f_user_type.length === 1) {
|
|
427
|
-
rs = this.$appdata.getParam(this.$refs.cp.$refs.cri.model.f_user_type[0])
|
|
428
|
-
}
|
|
429
|
-
if(rs.length==0){
|
|
430
|
-
rs=[{label: '居民用气', value: '居民用气'},{label: '商业用气', value: '商业用气'},{label: '工商业用气', value: '工商业用气'}]
|
|
431
|
-
}
|
|
432
|
-
return [{label: '全部', value: ''}, ...rs]
|
|
433
|
-
},
|
|
434
|
-
usertype() {
|
|
435
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
|
|
436
|
-
},
|
|
437
|
-
tablestate () {
|
|
438
|
-
return [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}]
|
|
439
|
-
},
|
|
440
|
-
payments () {
|
|
441
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式查询专用')]
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
</script>
|
|
446
|
-
<style>
|
|
447
|
-
tr.title {
|
|
448
|
-
background-color: #6666ff;
|
|
449
|
-
}
|
|
450
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div style="flex:1;" class="flex">
|
|
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="col-sm-1">
|
|
8
|
+
<input type="text" class="form-control" placeholder='客户名称' v-model="model.f_user_name"
|
|
9
|
+
v-on:keyup.enter="search"
|
|
10
|
+
condition="f_user_name like '%{}%'">
|
|
11
|
+
</div>
|
|
12
|
+
<div class="col-sm-1">
|
|
13
|
+
<input type="text" class="form-control" placeholder='电话号码' v-model="model.f_phone"
|
|
14
|
+
v-on:keyup.enter="search"
|
|
15
|
+
condition="f_phone like '%{}%'">
|
|
16
|
+
</div>
|
|
17
|
+
<div class="col-sm-1">
|
|
18
|
+
<input type="text" class="form-control" placeholder='报建编号' v-model="model.f_apply_num"
|
|
19
|
+
v-on:keyup.enter="search"
|
|
20
|
+
condition="f_apply_num like '%{}%'">
|
|
21
|
+
</div>
|
|
22
|
+
<div class="col-sm-1">
|
|
23
|
+
<input type="text" class="form-control" placeholder='用户地址' v-model="model.f_address"
|
|
24
|
+
v-on:keyup.enter="search"
|
|
25
|
+
condition="f_address like '%{}%'">
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col-sm-1">
|
|
28
|
+
<input type="text" class="form-control" placeholder='建安费发票号' v-model="model.f_invoice_number"
|
|
29
|
+
v-on:keyup.enter="search"
|
|
30
|
+
condition="f_invoice_number like '%{}%'">
|
|
31
|
+
</div>
|
|
32
|
+
<div class="col-sm-1">
|
|
33
|
+
<input type="text" class="form-control" placeholder='材料费发票号' v-model="model.f_maintenance_invoice"
|
|
34
|
+
v-on:keyup.enter="search"
|
|
35
|
+
condition="f_maintenance_invoice like '%{}%'">
|
|
36
|
+
</div>
|
|
37
|
+
<div class="col-sm-2 form-group form-input-group">
|
|
38
|
+
<label class="control-label">办理环节</label>
|
|
39
|
+
<v-select @change="$dispatch('setQueryCondition',model)" :options="$parent.$parent.defnames"
|
|
40
|
+
condition="defname = '{}'" placeholder='办理环节'
|
|
41
|
+
v-model="model.defname" :value.sync="model.defname" close-on-select>
|
|
42
|
+
</v-select>
|
|
43
|
+
</div>
|
|
44
|
+
<div class="col-sm-2 form-group form-input-group">
|
|
45
|
+
<label for="startDate" class="control-label">到达日期</label>
|
|
46
|
+
<datepicker @change="$dispatch('setQueryCondition',model)" id="startDate" placeholder="开始日期"
|
|
47
|
+
width='100%'
|
|
48
|
+
v-model="model.startDate"
|
|
49
|
+
:value.sync="model.startDate"
|
|
50
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
51
|
+
:show-reset-button="true"
|
|
52
|
+
condition="sendtime >= '{}'">
|
|
53
|
+
</datepicker>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="col-sm-2 form-group form-input-group">
|
|
56
|
+
<label for="endDate" class="control-label">到</label>
|
|
57
|
+
<datepicker @change="$dispatch('setQueryCondition',model)" id="endDate" placeholder="结束日期"
|
|
58
|
+
width='100%'
|
|
59
|
+
v-model="model.endDate"
|
|
60
|
+
:value.sync="model.endDate"
|
|
61
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
62
|
+
:show-reset-button="true"
|
|
63
|
+
condition="sendtime <= '{}'">
|
|
64
|
+
</datepicker>
|
|
65
|
+
</div>
|
|
66
|
+
<!--<div class="col-sm-2 form-group form-input-group">-->
|
|
67
|
+
<!--<label class="control-label">办理人</label>-->
|
|
68
|
+
<!--<v-select @change="$dispatch('setQueryCondition',model)" :options="$parent.$parent.persons"-->
|
|
69
|
+
<!--condition=" applysite like '%{}%' " placeholder='办理人'-->
|
|
70
|
+
<!--v-model="model.applysite" :value.sync="model.applysite" close-on-select>-->
|
|
71
|
+
<!--</v-select>-->
|
|
72
|
+
<!--</div>-->
|
|
73
|
+
</div>
|
|
74
|
+
<div class="row">
|
|
75
|
+
<div class="col-sm-1" style = "float:left;margin-top:10px">
|
|
76
|
+
<v-select :width ="'100%'" style="width: 100%" :options="$parent.$parent.f_is_gas" placeholder='现场勘察' condition="f_is_gas = '{}'"
|
|
77
|
+
v-model="model.f_is_gas" :value.sync="model.f_is_gas" close-on-select>
|
|
78
|
+
</v-select>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="span" style = "float:right;margin-top:10px">
|
|
81
|
+
<button class="btn btn-success" style="border-radius: 2px;margin-right: 10px" @click="$parent.$parent.searchNow(),$parent.$parent.close()">
|
|
82
|
+
<span class="glyphicon glyphicon-search"></span>{{$parent.$parent.buttonmsg=='查询'?'查询':'返回'}}
|
|
83
|
+
</button>
|
|
84
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
85
|
+
:field="$parent.$parent.getfield"
|
|
86
|
+
sqlurl="rs/logic/exportfile" sql-name="supervisory"
|
|
87
|
+
template-name='流程监控全部导出' :choose-col="true">
|
|
88
|
+
</export-excel>
|
|
89
|
+
<!--<button class="btn" @click="$parent.$parent.hidden()" style="margin-left: 10px">-->
|
|
90
|
+
<!--<span class="glyphicon glyphicon-chevron-up"></span>-->
|
|
91
|
+
<!--</button>-->
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</criteria>
|
|
96
|
+
|
|
97
|
+
<data-grid :model="model" partial='list' v-ref:grid class="data-grid" is-fixed='false' style="overflow-x:auto">
|
|
98
|
+
<template partial='head'>
|
|
99
|
+
<tr class="title">
|
|
100
|
+
<th>
|
|
101
|
+
<nobr>序号</nobr>
|
|
102
|
+
</th>
|
|
103
|
+
<th>
|
|
104
|
+
<nobr>业务办理人</nobr>
|
|
105
|
+
</th>
|
|
106
|
+
<th>
|
|
107
|
+
<nobr>报建编号</nobr>
|
|
108
|
+
</th>
|
|
109
|
+
<th>
|
|
110
|
+
<nobr>客户名称</nobr>
|
|
111
|
+
</th>
|
|
112
|
+
<th>
|
|
113
|
+
<nobr>用气性质</nobr>
|
|
114
|
+
</th>
|
|
115
|
+
<th>
|
|
116
|
+
<nobr>电话</nobr>
|
|
117
|
+
</th>
|
|
118
|
+
<th>
|
|
119
|
+
<nobr>地址</nobr>
|
|
120
|
+
</th>
|
|
121
|
+
<th>
|
|
122
|
+
<nobr>流程状态</nobr>
|
|
123
|
+
</th>
|
|
124
|
+
<th>
|
|
125
|
+
<nobr>报建日期</nobr>
|
|
126
|
+
</th>
|
|
127
|
+
<th>
|
|
128
|
+
<nobr>到达当前环节日期</nobr>
|
|
129
|
+
</th>
|
|
130
|
+
</tr>
|
|
131
|
+
</template>
|
|
132
|
+
<template partial='body'>
|
|
133
|
+
<tr>
|
|
134
|
+
<td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center">
|
|
135
|
+
<nobr>{{$index+1}}</nobr>
|
|
136
|
+
</td>
|
|
137
|
+
<td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center">
|
|
138
|
+
<nobr>{{row.applysite}}</nobr>
|
|
139
|
+
</td>
|
|
140
|
+
<td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center">
|
|
141
|
+
<nobr>{{row.f_apply_num}}</nobr>
|
|
142
|
+
</td>
|
|
143
|
+
<td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center">
|
|
144
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
145
|
+
</td>
|
|
146
|
+
<td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center">
|
|
147
|
+
<nobr>{{row.f_gas_type}}</nobr>
|
|
148
|
+
</td>
|
|
149
|
+
<td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center">
|
|
150
|
+
<nobr>{{row.f_phone}}</nobr>
|
|
151
|
+
</td>
|
|
152
|
+
<td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center">
|
|
153
|
+
<nobr>{{row.f_address}}</nobr>
|
|
154
|
+
</td>
|
|
155
|
+
<td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center">
|
|
156
|
+
<nobr>{{row.defname}}</nobr>
|
|
157
|
+
</td>
|
|
158
|
+
<td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center">
|
|
159
|
+
<nobr>{{row.f_apply_date}}</nobr>
|
|
160
|
+
</td>
|
|
161
|
+
<td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center">
|
|
162
|
+
<nobr>{{row.sendtime}}</nobr>
|
|
163
|
+
</td>
|
|
164
|
+
</tr>
|
|
165
|
+
</template>
|
|
166
|
+
</data-grid>
|
|
167
|
+
</criteria-paged>
|
|
168
|
+
|
|
169
|
+
<!--<table class="table-hover">-->
|
|
170
|
+
<!--<tr style="position: relative" class="table-bordered">-->
|
|
171
|
+
<!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>-->
|
|
172
|
+
<!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">初装费(建安费)合计: {{sumsmodel.f_cost2}}</td>-->
|
|
173
|
+
<!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">工料费合计: {{sumsmodel.f_glf}}</td>-->
|
|
174
|
+
<!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">超长费(延伸服务费)合计: {{sumsmodel.f_ysfwf}}</td>-->
|
|
175
|
+
<!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">其他费用(收取材料费)合计: {{sumsmodel.f_other_charge2}}</td>-->
|
|
176
|
+
<!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">点火材料费合计: {{sumsmodel.f_dhclf}}</td>-->
|
|
177
|
+
<!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">点火不锈钢波纹管费合计: {{sumsmodel.f_dhbxgbwg}}</td>-->
|
|
178
|
+
<!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">其他费用(点火)合计: {{sumsmodel.f_dhqtfy}}</td>-->
|
|
179
|
+
<!--<!–f_cost: 0,f_glf: 0,f_ysfwf: 0,f_other_charge: 0,f_dhclf: 0,f_dhqtfy: 0–>-->
|
|
180
|
+
<!--</tr>-->
|
|
181
|
+
<!--</table>-->
|
|
182
|
+
<colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>
|
|
183
|
+
<modal :show.sync="printshow" v-ref:modal backdrop="false">
|
|
184
|
+
<header slot="modal-header" class="modal-header text-center">
|
|
185
|
+
<h4 class="modal-title">打印列选择</h4>
|
|
186
|
+
<input type="checkbox" class="" id="f_generations" v-model="all">
|
|
187
|
+
<label for="f_generations" class="font-size">全选</label>
|
|
188
|
+
</header>
|
|
189
|
+
<article slot="modal-body">
|
|
190
|
+
<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
|
|
191
|
+
<div class="col-sm-3" v-for="f in fields">
|
|
192
|
+
<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
|
|
193
|
+
<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
</article>
|
|
197
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
198
|
+
<center>
|
|
199
|
+
<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
|
|
200
|
+
<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
|
|
201
|
+
<print-table :model='model' v-show="false" v-ref:print
|
|
202
|
+
:top='40' :left='60' :right='40' :bottom='60'
|
|
203
|
+
:thead="thead" :tfoot='tfoot' :attach="yangsen"
|
|
204
|
+
:fields="modelval" :printpage="true">
|
|
205
|
+
</print-table>
|
|
206
|
+
</center>
|
|
207
|
+
</footer>
|
|
208
|
+
</modal>
|
|
209
|
+
</div>
|
|
210
|
+
</template>
|
|
211
|
+
|
|
212
|
+
<script>
|
|
213
|
+
import { PagedList } from 'vue-client'
|
|
214
|
+
import {HttpResetClass} from 'vue-client'
|
|
215
|
+
import getNowDate from '../../getNowDate.js'
|
|
216
|
+
import AppData from '../../../stores/AppData.js'
|
|
217
|
+
import Vue from 'vue'
|
|
218
|
+
|
|
219
|
+
// Date格式化
|
|
220
|
+
Date.prototype.Format = function (fmt) {
|
|
221
|
+
var o = {
|
|
222
|
+
"M+": this.getMonth() + 1, //月份
|
|
223
|
+
"d+": this.getDate(), //日
|
|
224
|
+
"H+": this.getHours(), //小时
|
|
225
|
+
"m+": this.getMinutes(), //分
|
|
226
|
+
"s+": this.getSeconds(), //秒
|
|
227
|
+
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
228
|
+
"S": this.getMilliseconds() //毫秒
|
|
229
|
+
};
|
|
230
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
231
|
+
for (var k in o)
|
|
232
|
+
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
233
|
+
return fmt;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
let readySomething = async function (self) {
|
|
237
|
+
await self.$MagLoadParams.loadParam(self.$login.f)
|
|
238
|
+
console.log("参数拿到了YYYYYYYYYYYYYY")
|
|
239
|
+
await self.$refs.cp.$refs.cri.search()
|
|
240
|
+
}
|
|
241
|
+
export default {
|
|
242
|
+
data() {
|
|
243
|
+
return {
|
|
244
|
+
f_is_gas: [{label:"全部",value:''}, {label:"符合规范要求",value:'符合规范要求'}, {label:"不符合规范要求",value:'不符合规范要求'}],
|
|
245
|
+
showinfo: false,
|
|
246
|
+
meterbrands: [],
|
|
247
|
+
businesstype: '流程监控全部查询',
|
|
248
|
+
data: {},
|
|
249
|
+
model: new PagedList('rs/sql/supervisory', 20, {
|
|
250
|
+
data: {
|
|
251
|
+
id: `${this.$login.f.name}`,
|
|
252
|
+
fengongsi: `${this.$login.f.f_fengongsi}`
|
|
253
|
+
}
|
|
254
|
+
}),
|
|
255
|
+
criteriaShow: true,
|
|
256
|
+
classname: 'table table-bordered table table-hover',
|
|
257
|
+
headData: ["当前办理人","报建编号","客户名称","用气性质","电话","地址","流程状态","报建日期","到达当前环节日期"],
|
|
258
|
+
bodyData: ["applysite","f_apply_num","f_user_name","f_gas_type","f_phone","f_address","defname","f_apply_date","sendtime"],
|
|
259
|
+
|
|
260
|
+
filialeNameStr: null,
|
|
261
|
+
filialeCodeStr: this.$login.f.f_orgids,
|
|
262
|
+
userid: this.$login.f.id,
|
|
263
|
+
source:`tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
|
|
264
|
+
defnames:[],
|
|
265
|
+
modelval: [],
|
|
266
|
+
printshow: false,
|
|
267
|
+
all: false,
|
|
268
|
+
fields: {},
|
|
269
|
+
thead: '',
|
|
270
|
+
tfoot: '',
|
|
271
|
+
buttonmsg: '查询'
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
async ready(){
|
|
275
|
+
this.$refs.cp.$refs.cri.model.startDate = new Date().Format('2019-06-30 00:00:00')
|
|
276
|
+
this.$refs.cp.$refs.cri.model.endDate = new Date().Format('yyyy-MM-dd 23:59:59')
|
|
277
|
+
let http = new HttpResetClass()
|
|
278
|
+
http.load('POST', 'rs/sql/getDefnamesForActivityins', {data:{}}, {
|
|
279
|
+
resolveMsg: null,
|
|
280
|
+
rejectMsg: null
|
|
281
|
+
}).then((res)=>{
|
|
282
|
+
// 先获取所有流程环节
|
|
283
|
+
this.defnames = [{label: '全部', value: ''}]
|
|
284
|
+
for(let i=0;i<res.data.length;i++){
|
|
285
|
+
this.defnames.push({label:res.data[i].defname,value:res.data[i].defname})
|
|
286
|
+
}
|
|
287
|
+
})
|
|
288
|
+
|
|
289
|
+
// let http2 = new HttpResetClass()
|
|
290
|
+
// http2.load('POST', 'rs/sql/getDefnameOperators', {}, {
|
|
291
|
+
// resolveMsg: null,
|
|
292
|
+
// rejectMsg: null
|
|
293
|
+
// }).then((res) => {
|
|
294
|
+
// // 先获取所有流程环节
|
|
295
|
+
// this.persons = [{label: '全部', value: ''}]
|
|
296
|
+
// for (let i = 0; i < res.data.length; i++) {
|
|
297
|
+
// this.persons.push({label: res.data[i].applysite, value: res.data[i].applysite})
|
|
298
|
+
// }
|
|
299
|
+
// })
|
|
300
|
+
|
|
301
|
+
// this.model = Object.assign(this.model,this.$parent.queryCondition)
|
|
302
|
+
readySomething(this).then(() => {
|
|
303
|
+
this.$emit('ready')
|
|
304
|
+
}).catch((error) => {
|
|
305
|
+
this.$emit('error', error)
|
|
306
|
+
})
|
|
307
|
+
this.$refs.cp.$refs.cri.model = Object.assign(this.$refs.cp.$refs.cri.model,this.$parent.$parent.$parent.queryCondition)
|
|
308
|
+
this.$refs.cp.$refs.cri.search()
|
|
309
|
+
},
|
|
310
|
+
methods: {
|
|
311
|
+
check(val) {
|
|
312
|
+
this.buttonmsg = '返回'
|
|
313
|
+
this.$dispatch('check', val)
|
|
314
|
+
},
|
|
315
|
+
compare(val) {
|
|
316
|
+
val === '完工'
|
|
317
|
+
console.log('完工', val)
|
|
318
|
+
return false
|
|
319
|
+
},
|
|
320
|
+
searchNow(){
|
|
321
|
+
this.buttonmsg = '查询'
|
|
322
|
+
this.$refs.cp.$refs.cri.search()
|
|
323
|
+
},
|
|
324
|
+
dblclick(obj) {
|
|
325
|
+
// this.data = obj
|
|
326
|
+
// this.showinfo = true
|
|
327
|
+
},
|
|
328
|
+
async selfSearch (args) {
|
|
329
|
+
let f_orgstr = this.filialeCodeStr
|
|
330
|
+
console.log('xxxx',f_orgstr)
|
|
331
|
+
args.condition = `${args.condition}`
|
|
332
|
+
console.log('我的阐述',JSON.stringify(args.condition))
|
|
333
|
+
await this.model.search(args.condition, args.model)
|
|
334
|
+
|
|
335
|
+
},
|
|
336
|
+
clear(){
|
|
337
|
+
Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
|
|
338
|
+
this.$refs.cp.$refs.cri.model[key] = []
|
|
339
|
+
this.$parent.$parent.$parent.queryCondition[key] = []
|
|
340
|
+
})
|
|
341
|
+
},
|
|
342
|
+
getRes(obj) {
|
|
343
|
+
this.filialeNameStr = obj.res
|
|
344
|
+
this.filialeCodeStr = obj.resids
|
|
345
|
+
},
|
|
346
|
+
stamp () {
|
|
347
|
+
this.all = false
|
|
348
|
+
//默认选择要打印的列
|
|
349
|
+
this.modelval = this.bodyData
|
|
350
|
+
this.fields = this.getfield
|
|
351
|
+
console.log('所有打印字段',this.fields)
|
|
352
|
+
this.printshow = true
|
|
353
|
+
this.put()
|
|
354
|
+
},
|
|
355
|
+
put () {
|
|
356
|
+
// 对Modelval进行排序
|
|
357
|
+
this.sortModelval()
|
|
358
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>报装收费统计报表</th></tr><tr>`
|
|
359
|
+
for (let key of this.modelval) {
|
|
360
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
361
|
+
}
|
|
362
|
+
this.thead += '</tr>'
|
|
363
|
+
},
|
|
364
|
+
print () {
|
|
365
|
+
this.$refs.print.PrintAsFile()
|
|
366
|
+
this.printshow = false
|
|
367
|
+
},
|
|
368
|
+
close () {
|
|
369
|
+
this.printshow = false
|
|
370
|
+
this.all = false
|
|
371
|
+
this.$dispatch('close')
|
|
372
|
+
},
|
|
373
|
+
// 对选择的列进行排序
|
|
374
|
+
sortModelval () {
|
|
375
|
+
let sortModel = []
|
|
376
|
+
Object.keys(this.fields).forEach((key) => {
|
|
377
|
+
if (this.modelval.includes(key)) {
|
|
378
|
+
sortModel.push(key)
|
|
379
|
+
}
|
|
380
|
+
})
|
|
381
|
+
this.modelval = sortModel
|
|
382
|
+
console.log('选择的打印的字段', this.modelval)
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
watch:{
|
|
386
|
+
'all' (val) {
|
|
387
|
+
if (val) {
|
|
388
|
+
this.modelval = this.bodyData
|
|
389
|
+
} else {
|
|
390
|
+
this.modelval = this.bodyData
|
|
391
|
+
this.put()
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
'modelval.length' () {
|
|
395
|
+
this.put()
|
|
396
|
+
},
|
|
397
|
+
},
|
|
398
|
+
computed:{
|
|
399
|
+
getCondition(){
|
|
400
|
+
this.$refs.cp.$refs.cri.condition = this.$refs.cp.$refs.cri.condition?this.$refs.cp.$refs.cri.condition:'1=1'
|
|
401
|
+
return {condition: `${this.$refs.cp.$refs.cri.condition}`}
|
|
402
|
+
},
|
|
403
|
+
getfield(){
|
|
404
|
+
let data = {}
|
|
405
|
+
this.bodyData.forEach((value, index)=>{
|
|
406
|
+
data[this.bodyData[index]] = this.headData[index]
|
|
407
|
+
})
|
|
408
|
+
|
|
409
|
+
//合计字段打印
|
|
410
|
+
// this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
|
|
411
|
+
// if(this.sumsmodel){
|
|
412
|
+
// Object.keys(this.sumsmodel).forEach((key) => {
|
|
413
|
+
// this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
|
|
414
|
+
// })
|
|
415
|
+
// }else{
|
|
416
|
+
// this.tfoot += '暂无'
|
|
417
|
+
// }
|
|
418
|
+
// this.tfoot += '</th></tr>'
|
|
419
|
+
return data
|
|
420
|
+
},
|
|
421
|
+
usertypes () {
|
|
422
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
423
|
+
},
|
|
424
|
+
gasproperties () {
|
|
425
|
+
let rs = []
|
|
426
|
+
if (this.$refs.cp.$refs.cri.model.f_user_type.length === 1) {
|
|
427
|
+
rs = this.$appdata.getParam(this.$refs.cp.$refs.cri.model.f_user_type[0])
|
|
428
|
+
}
|
|
429
|
+
if(rs.length==0){
|
|
430
|
+
rs=[{label: '居民用气', value: '居民用气'},{label: '商业用气', value: '商业用气'},{label: '工商业用气', value: '工商业用气'}]
|
|
431
|
+
}
|
|
432
|
+
return [{label: '全部', value: ''}, ...rs]
|
|
433
|
+
},
|
|
434
|
+
usertype() {
|
|
435
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
|
|
436
|
+
},
|
|
437
|
+
tablestate () {
|
|
438
|
+
return [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}]
|
|
439
|
+
},
|
|
440
|
+
payments () {
|
|
441
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式查询专用')]
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
</script>
|
|
446
|
+
<style>
|
|
447
|
+
tr.title {
|
|
448
|
+
background-color: #6666ff;
|
|
449
|
+
}
|
|
450
|
+
</style>
|