manage-client 3.2.25 → 3.2.29

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,477 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex">
5
+ <div style="flex:1;" class="flex" v-if="!show">
6
+ <criteria-paged :model="model" v-ref:paged>
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group" >
11
+ <label class="font_normal_body">客户编号</label>
12
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
+ </div>
15
+ <div class="col-sm-2 form-group" >
16
+ <label class="font_normal_body">客户名称</label>
17
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
19
+ </div>
20
+ <div class="col-sm-2 form-group" >
21
+ <label class="font_normal_body">客户电话</label>
22
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
23
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
24
+ </div>
25
+ <div class="span" style = "float:right;">
26
+ <button class="button_search button_spacing" @click="search()">查询</button>
27
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
28
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
29
+
30
+ <!-- <export-excel :data="$parent.$parent.getCondition"-->
31
+ <!-- :field="$parent.$parent.getExportField"-->
32
+ <!-- :header="$parent.$parent.other"-->
33
+ <!-- v-if="$parent.$parent.authArr.includes('档案查询导出')"-->
34
+ <!-- sqlurl="rs/logic/exportfile" sql-name="deviceQuery" template-name='表具设备查询导出' :choose-col="true"></export-excel>-->
35
+ <!-- <print-data :sum-field="$parent.$parent.getExportField" :model="$parent.model" :field="$parent.$parent.getExportField"-->
36
+ <!-- :defaultfield="$parent.$parent.defaultfield"-->
37
+ <!-- titletable="表具设备查询"-->
38
+ <!-- :sumsmodel="$parent.$parent.sumsmodel"></print-data>-->
39
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
40
+ </div>
41
+ </div>
42
+ <div class="row" v-show="$parent.$parent.criteriaShow">
43
+ <div class="col-sm-2 form-group" >
44
+ <label class="font_normal_body">客户地址</label>
45
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
46
+ condition="f_address like '%{}%'" placeholder='客户地址'>
47
+ </div>
48
+ <!-- <div class="col-sm-2 form-group" >-->
49
+ <!-- <label class="font_normal_body">客户状态</label>-->
50
+ <!-- <v-select :value.sync="model.f_user_state"-->
51
+ <!-- v-model="model.f_user_state"-->
52
+ <!-- :options='$parent.$parent.userstates' placeholder='请选择'-->
53
+ <!-- condition="f_user_state = '{}'"-->
54
+ <!-- close-on-select></v-select>-->
55
+ <!-- </div>-->
56
+ <div class="col-sm-2 form-group">
57
+ <label class="font_normal_body">客户类型</label>
58
+ <v-select :value.sync="model.f_user_type"
59
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
60
+ condition="f_user_type = '{}'"
61
+ close-on-select></v-select>
62
+ </div>
63
+ <div class="col-sm-2 form-group" >
64
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
65
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
66
+ condition="f_meternumber like '%{}%'" placeholder='表号'>
67
+ </div>
68
+
69
+ <div class="col-sm-2 form-group" >
70
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
71
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
72
+ condition="f_card_id like '%{}%'" placeholder='表号'>
73
+ </div>
74
+ <div class="col-sm-2 form-group" >
75
+ <label class="font_normal_body" title="交付日期大于">交付日期</label>
76
+ <datepicker placeholder="交付日期大于" style="width:60%"
77
+ v-model="model.f_input_start_date"
78
+ :value.sync="model.f_input_start_date"
79
+ :format="'yyyy-MM-dd'"
80
+ :show-reset-button="true"
81
+ condition="f_deliver_date >= '{} 00:00:00'">
82
+ </datepicker>
83
+ </div>
84
+ <div class="col-sm-2 form-group" >
85
+ <label class="font_normal_body" title="交付日期小于">交付日期</label>
86
+ <datepicker placeholder="交付日期小于" style="width:60%"
87
+ v-model="model.f_input_end_date"
88
+ :value.sync="model.f_input_end_date"
89
+ :format="'yyyy-MM-dd'"
90
+ :show-reset-button="true"
91
+ condition="f_deliver_date <= '{} 23:59:59'">
92
+ </datepicker>
93
+ </div>
94
+
95
+ <div class="col-sm-2 form-group">
96
+ <label class="font_normal_body" >抄表员&emsp;</label>
97
+ <v-select :value.sync="model.f_inputtor"
98
+ v-model="model.f_inputtor"
99
+ :options='$parent.$parent.inputtores' placeholder='请选择'
100
+ condition="f_inputtor = '{}'"
101
+ close-on-select :search="false">
102
+ </v-select>
103
+ </div>
104
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
105
+ </div>
106
+ </div>
107
+ </criteria>
108
+
109
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
110
+ <template partial='head'>
111
+ <tr>
112
+ <th><nobr>客户编号</nobr></th>
113
+ <th><nobr>客户名称</nobr></th>
114
+ <th><nobr>客户电话</nobr></th>
115
+ <th><nobr>客户地址</nobr></th>
116
+ <th><nobr>客户状态</nobr></th>
117
+
118
+ <th><nobr>表号</nobr></th>
119
+ <th><nobr>卡号</nobr></th>
120
+ <th><nobr>气表品牌</nobr></th>
121
+ <th><nobr>气表型号</nobr></th>
122
+ <th><nobr>表向</nobr></th>
123
+ <!--民用-->
124
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>镀锌管</nobr></th>
125
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>三通</nobr></th>
126
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>对丝</nobr></th>
127
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>弯头</nobr></th>
128
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>表前阀</nobr></th>
129
+
130
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>管卡</nobr></th>
131
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>灶前阀</nobr></th>
132
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>胶管</nobr></th>
133
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>自闭阀</nobr></th>
134
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>燃气具</nobr></th>
135
+
136
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>报警器</nobr></th>
137
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>热水器</nobr></th>
138
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>壁挂锅炉</nobr></th>
139
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>型号</nobr></th>
140
+
141
+ <!-- 非民用-->
142
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>非民用气表品牌</nobr></th>
143
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>非民用气表型号</nobr></th>
144
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>流量计范围</nobr></th>
145
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>控制器品牌</nobr></th>
146
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>控制器型号</nobr></th>
147
+
148
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>控制器出厂日期</nobr></th>
149
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>控制器表编码</nobr></th>
150
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>控制器表封号</nobr></th>
151
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>燃气具类型</nobr></th>
152
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>燃气具品牌</nobr></th>
153
+
154
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>燃气具型号</nobr></th>
155
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>报警控制箱品牌、数量</nobr></th>
156
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>探测器数量</nobr></th>
157
+ <!--公共-->
158
+ <th><nobr>设施检验结论</nobr></th>
159
+ <th><nobr>交付日期</nobr></th>
160
+ <th><nobr>操作人</nobr></th>
161
+ <th><nobr>操作日期</nobr></th>
162
+ </tr>
163
+ </template>
164
+ <template partial='body'>
165
+ <td style="text-align: center;"><nobr>
166
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
167
+ </nobr> </td>
168
+ <td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
169
+ <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
170
+ <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
171
+ <td style="text-align: center;"><nobr>{{row.f_user_state}}</nobr></td>
172
+ <!--民用-->
173
+ <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
174
+ <td style="text-align: center;"><nobr>{{row.f_card_id}}</nobr></td>
175
+ <td style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></td>
176
+ <td style="text-align: center;"><nobr>{{row.f_meter_style}}</nobr></td>
177
+ <td style="text-align: center;"><nobr>{{row.f_aroundmeter}}</nobr></td>
178
+
179
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_galvanize_pipe}}</nobr></td>
180
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_tee}}</nobr></td>
181
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_nipple}}</nobr></td>
182
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_elbow}}</nobr></td>
183
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_bqf_type}}</nobr></td>
184
+
185
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_pipe_strap}}</nobr></td>
186
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_zqf}}</nobr></td>
187
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_sebific_duct}}</nobr></td>
188
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_alarm_code}}</nobr></td>
189
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_zbf}}</nobr></td>
190
+
191
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_gas_appliance}}</nobr></td>
192
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_geyser}}</nobr></td>
193
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_bgl}}</nobr></td>
194
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_bgl_style}}</nobr></td>
195
+
196
+ <!--非民用-->
197
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_fire_gasbrand}}</nobr></td>
198
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_fire_gasmodel}}</nobr></td>
199
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_llj_scope}}</nobr></td>
200
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_control_brand}}</nobr></td>
201
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_control_model}}</nobr></td>
202
+
203
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_control_date}}</nobr></td>
204
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_control_code}}</nobr></td>
205
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_control_number}}</nobr></td>
206
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_appliance_type}}</nobr></td>
207
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_appliance_brand}}</nobr></td>
208
+
209
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_appliance_model}}</nobr></td>
210
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_alarm_info}}</nobr></td>
211
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_detector_number}}</nobr></td>
212
+
213
+ <td style="text-align: center;"><nobr>{{row.f_fic}}</nobr></td>
214
+ <td style="text-align: center;"><nobr>{{row.f_deliver_date}}</nobr></td>
215
+ <td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
216
+ <td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
217
+ </template>
218
+ <template partial='foot'>
219
+
220
+ </template>
221
+ </data-grid>
222
+ </criteria-paged>
223
+
224
+ <table class="table-hover">
225
+ <tr style="position: relative" class="table-bordered">
226
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
227
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">暂无合计字段</td>
228
+ </tr>
229
+ </table>
230
+
231
+ <modal :show.sync="printshow" v-ref:modal backdrop="false">
232
+ <header slot="modal-header" class="modal-header text-center">
233
+ <h4 class="modal-title">打印列选择</h4>
234
+ <input type="checkbox" class="" id="f_generations" v-model="all">
235
+ <label for="f_generations" class="font-size">全选</label>
236
+ </header>
237
+ <article slot="modal-body">
238
+ <div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
239
+ <div class="col-sm-3" v-for="f in fields">
240
+ <input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
241
+ <label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>
242
+ </div>
243
+ </div>
244
+ </article>
245
+ <footer slot="modal-footer" class="modal-footer">
246
+ <center>
247
+ <button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
248
+ <button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
249
+ <print-table :model='model' v-show="false" v-ref:print
250
+ :top='40' :left='60' :right='40' :bottom='60'
251
+ :thead="thead" :tfoot='tfoot' :attach="yangsen"
252
+ :fields="modelval" :printpage="true">
253
+ </print-table>
254
+ </center>
255
+ </footer>
256
+ </modal>
257
+ </div>
258
+ <div class="flex" v-if="show">
259
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
260
+ </div>
261
+ </div></div></div>
262
+ </template>
263
+
264
+ <script>
265
+ import { PagedList } from 'vue-client'
266
+ import defaultPrint from '../config/DefaultPrint'
267
+ import exportConfig from '../config/exportConfig'
268
+
269
+ let readySomething = async function (self) {
270
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
271
+ self.$MagGetSaleParam.initinputtor();
272
+ self.getinputtores();
273
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
274
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
275
+ // await self.$refs.paged.$refs.cri.search()
276
+ }
277
+ export default {
278
+ title: '表具用气查询',
279
+ data() {
280
+ return {
281
+ other:[],
282
+ footer:[],
283
+ model: new PagedList('rs/sql/fireQuery', 20),
284
+ criteriaShow: false,
285
+ orgCondtionStr: '',
286
+ modelval: [],
287
+ printshow: false,
288
+ all: false,
289
+ fields: {},
290
+ thead: '',
291
+ tfoot: '',
292
+ defaultfield: [],
293
+ config: {
294
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
295
+ },
296
+ show:false,
297
+ rowdata:{},
298
+ // 下拉框参数
299
+ inputtores:[],
300
+ usertypes:this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
301
+ userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
302
+ deviceTypes: this.$appdata.getParam('设备类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')] : [],
303
+ // brand: this.$appdata.getParam('设备品牌') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备品牌')] : [],
304
+ watchpurchases: this.$appdata.getParam('购买方式') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('购买方式')] : [],
305
+ pipetype: this.$appdata.getParam('管道类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('管道类型')] : [],
306
+ initres: {
307
+ org:[this.$login.f.orgid],
308
+ dep:[],
309
+ user:[],
310
+ },
311
+ // 合计数据
312
+ sumsmodel: {},
313
+ usertype:'全部'
314
+ }
315
+ },
316
+ ready(){
317
+ readySomething(this).then(() => {
318
+ this.$emit('ready')
319
+ }).catch((error) => {
320
+ this.$emit('error', error)
321
+ })
322
+ },
323
+ methods: {
324
+ async getinputtores () {
325
+ // 获取抄表员
326
+ let rs = []
327
+ if (this.$login.f.f_gasman.length > 0) {
328
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
329
+ let temp = {
330
+ label: this.$login.f.f_gasman[i].name,
331
+ value: this.$login.f.f_gasman[i].name
332
+ }
333
+ rs.push(temp)
334
+ }
335
+ }
336
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
337
+ },
338
+ getotherfooter () {
339
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
340
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
341
+ this.other = [];
342
+ this.footer = [];
343
+ let exportdata = this.getCondition;
344
+ let otherInData = [];
345
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
346
+ // let footerData = [], exportfield = this.getExportField;
347
+ // footerData.push("合计");
348
+ // let self = this;
349
+ // for (var field in self.sumsmodel) {
350
+ // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
351
+ // }
352
+ // this.footer.push(footerData);
353
+ this.other.push(otherInData);
354
+ },
355
+ search(){
356
+ this.$refs.paged.$refs.cri.search()
357
+ },
358
+ cancel() {
359
+ this.show = false
360
+ },
361
+ showmsg(obj){
362
+ this.rowdata=obj
363
+ this.show=true
364
+ },
365
+ selfSearch (args) {
366
+ if (!this.orgCondtionStr) {
367
+ args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
368
+ } else {
369
+ args.condition = `${args.condition}` + this.orgCondtionStr
370
+ }
371
+ if(this.$refs.paged.$refs.cri.model.f_user_type){
372
+ this.usertype=this.$refs.paged.$refs.cri.model.f_user_type
373
+ }else{
374
+ this.usertype='全部'
375
+ }
376
+ this.model.search(args.condition, args.model)
377
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
378
+ console.log('合计字段',this.sumsmodel)
379
+ },
380
+ clear(){
381
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
382
+ this.$refs.paged.$refs.cri.model[key] = []
383
+ })
384
+ },
385
+ hidden(){
386
+ this.criteriaShow = !this.criteriaShow
387
+ },
388
+ getRes(obj) {
389
+ this.orgCondtionStr = obj
390
+ },
391
+ stamp () {
392
+ this.all = false
393
+ //默认选择要打印的列
394
+ this.modelval = defaultPrint.config
395
+ this.fields = this.getfield
396
+ console.log('所有打印字段',this.fields)
397
+ this.printshow = true
398
+ this.put()
399
+ },
400
+ put () {
401
+ // 对Modelval进行排序
402
+ this.sortModelval()
403
+ this.thead = `<tr><th colspan=${this.modelval.length}>设备查询统计报表</th></tr><tr>`
404
+ for (let key of this.modelval) {
405
+ this.thead += '<th>' + this.fields[key] + '</th>'
406
+ }
407
+ this.thead += '</tr>'
408
+ },
409
+ print () {
410
+ this.$refs.print.PrintAsFile()
411
+ this.printshow = false
412
+ },
413
+ close () {
414
+ this.printshow = false
415
+ this.all = false
416
+ },
417
+ // 对选择的列进行排序
418
+ sortModelval () {
419
+ let sortModel = []
420
+ Object.keys(this.fields).forEach((key) => {
421
+ if (this.modelval.includes(key)) {
422
+ sortModel.push(key)
423
+ }
424
+ })
425
+ this.modelval = sortModel
426
+ console.log('选择的打印的字段', this.modelval)
427
+ }
428
+ },
429
+ watch:{
430
+ 'all' (val) {
431
+ if (val) {
432
+ this.modelval = this.bodyData
433
+ } else {
434
+ this.modelval = defaultPrint.config
435
+ this.put()
436
+ }
437
+ },
438
+ sumsmodel:{
439
+ handler: function(val) {
440
+ this.getotherfooter();
441
+ },
442
+ deep: true
443
+ },
444
+ 'modelval.length' () {
445
+ this.put()
446
+ },
447
+ },
448
+ computed:{
449
+ authArr () {
450
+ return this.$login.r ? this.$login.r : []
451
+ },
452
+ getCondition(){
453
+ return {condition: `${this.$refs.paged.$refs.cri.condition}`+this.orgCondtionStr}
454
+ },
455
+ getfield(){
456
+ let data = {}
457
+ this.bodyData.forEach((value, index)=>{
458
+ data[this.bodyData[index]] = this.headData[index]
459
+ })
460
+ //合计字段打印
461
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
462
+ if(this.sumsmodel){
463
+ Object.keys(this.sumsmodel).forEach((key) => {
464
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
465
+ })
466
+ }else{
467
+ this.tfoot += '暂无'
468
+ }
469
+ this.tfoot += '</th></tr>'
470
+ return data
471
+ },
472
+ getExportField() {
473
+ return exportConfig.deviceConfig
474
+ }
475
+ }
476
+ }
477
+ </script>
@@ -70,11 +70,12 @@
70
70
  v-el:meternumber v-model="model.f_meternumber" v-next-el='meternumber'
71
71
  >
72
72
  </div>
73
- <div class="col-sm-2">
74
- <label class="font_normal_body">公&emsp;&emsp;司</label>
75
- <right-tree @re-res="$parent.$parent.getorg"
76
- :initresid='$parent.$parent.orgid'></right-tree>
77
- </div>
73
+ <!-- <div class="col-sm-2">-->
74
+ <!-- <label class="font_normal_body">公&emsp;&emsp;司</label>-->
75
+ <!-- <right-tree @re-res="$parent.$parent.getorg"-->
76
+ <!-- :initresid='$parent.$parent.orgid'></right-tree>-->
77
+ <!-- </div>-->
78
+ <res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
78
79
  <!-- <div class="col-sm-2 form-group">-->
79
80
  <!-- <label class="font_normal_body">组织机构</label>-->
80
81
  <!-- <res-select :initresid="$parent.$parent.orgid"-->
@@ -360,6 +361,7 @@ import {HttpResetClass, PagedList} from 'vue-client'
360
361
  components: {UserGasEcharts},
361
362
  data() {
362
363
  return {
364
+ resshow:['company','slicearea'],
363
365
  model: new PagedList('rs/sql/webmeter_getUserGasList', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
364
366
  f_oughtamount: 0,
365
367
  f_oughtfee: 0,
@@ -423,7 +425,8 @@ import {HttpResetClass, PagedList} from 'vue-client'
423
425
  // orgCondtionStr: ' and h.f_orgid in (' + this.$login.f.orgid + ')',
424
426
  orgCondtionStr: '(' + this.$login.f.orgid + ')',
425
427
  orgid:[this.$login.f.orgid],
426
- usetypes: [{label: '全部', value: ''},{label: '是', value: `= '壁挂炉'`},{label: '否', value: `!= '壁挂炉'`}]
428
+ usetypes: [{label: '全部', value: ''},{label: '是', value: `= '壁挂炉'`},{label: '否', value: `!= '壁挂炉'`}],
429
+ zonesdata:''
427
430
  }
428
431
  },
429
432
  ready() {
@@ -495,6 +498,9 @@ import {HttpResetClass, PagedList} from 'vue-client'
495
498
  this.condition = this.$refs.paged.$refs.cri.condition + ` and f_orgid in ${this.orgCondtionStr}`
496
499
  else
497
500
  this.condition = this.$refs.paged.$refs.cri.condition + ` and f_orgid = ${this.$login.f.orgid}`
501
+ if(this.zonesdata){
502
+ this.condition = this.$refs.paged.$refs.cri.condition + ` and ${this.zonesdata}`
503
+ }
498
504
  args.condition = this.condition
499
505
  this.model.search(args.condition, args.model)
500
506
  },
@@ -522,6 +528,11 @@ import {HttpResetClass, PagedList} from 'vue-client'
522
528
  },
523
529
  getRes(obj) {
524
530
  this.orgCondtionStr = plugins.convertToIn(obj)
531
+ if(obj.indexOf("f_zones = ")>0){
532
+ this.zonesdata = obj.substring(obj.indexOf("f_zones = "))
533
+ }else{
534
+ this.zonesdata='';
535
+ }
525
536
  },
526
537
  getorg(obj) {
527
538
  this.orgCondtionStr = plugin.convertToIn(obj.resids)?plugin.convertToIn(obj.resids):'(' + this.$login.f.orgid + ')'
@@ -445,7 +445,7 @@
445
445
  上期余额合计:&emsp;{{sumsmodel.f_balance}}
446
446
  </td>
447
447
  <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
448
- 合计欠费:&emsp;{{parseFloat((sumsmodel.f_oughtfee_all.toFixed(2)-sumsmodel.f_balance.toFixed(2)).toFixed(2))}}
448
+ 合计欠费:&emsp;{{sumsmodel.f_oughtfee_all}}
449
449
  </td>
450
450
  </tr>
451
451
  </table>
@@ -122,6 +122,14 @@
122
122
  condition="f_type in {}"
123
123
  v-model="model.f_type"></v-select>
124
124
  </div>
125
+ <!-- <div class="col-sm-2 form-group">-->
126
+ <!-- <label class="font_normal_body">票据类型</label>-->
127
+ <!-- <v-select :options='$parent.$parent.papertype'-->
128
+ <!-- condition="f_paper_type = '{}'"-->
129
+ <!-- v-model="model.f_paper_type"-->
130
+ <!-- :value.sync="model.f_paper_type" close-on-select-->
131
+ <!-- placeholder='请选择'></v-select>-->
132
+ <!-- </div>-->
125
133
  <div class="col-sm-2 form-group">
126
134
  <label class="font_normal_body">客户类型</label>
127
135
  <v-select :value.sync="model.f_user_type"
@@ -214,7 +222,7 @@
214
222
  <div class="col-sm-2 form-group">
215
223
  <label class="font_normal_body">&nbsp;&nbsp;&nbsp;流水号</label>
216
224
  <input type="text" style="width:60%" class="input_search" v-model="model.f_serial_id"
217
- condition="f_serial_id = '{}'" placeholder='流水号'>
225
+ condition="f_serial_id like '%{}%'" placeholder='流水号'>
218
226
  </div>
219
227
  <div class="col-sm-2 form-group">
220
228
  <label class="font_normal_body">发票号码</label>
@@ -451,6 +459,9 @@
451
459
  <th>
452
460
  <nobr>开票时间</nobr>
453
461
  </th>
462
+ <th>
463
+ <nobr>是否征税</nobr>
464
+ </th>
454
465
  <th>
455
466
  <nobr>累计写卡气量</nobr>
456
467
  </th>
@@ -634,6 +645,9 @@
634
645
  <td style="text-align: center;">
635
646
  <nobr>{{row.f_invoice_date}}</nobr>
636
647
  </td>
648
+ <td style="text-align: center;">
649
+ <nobr>{{row.f_tax_logotype}}</nobr>
650
+ </td>
637
651
  <td style="text-align: center;">
638
652
  <nobr>{{row.f_write_totalgas}}</nobr>
639
653
  </td>
@@ -807,6 +821,10 @@
807
821
  },
808
822
  //f_price_name:[],
809
823
  gasproperties:[],
824
+ // papertype: this.$appdata.getParam('票据类型') ? [{
825
+ // label: '全部',
826
+ // value: ''
827
+ // }, ...this.$appdata.getParam('票据类型')] : [],
810
828
  gaspropertiessecond: this.$appdata.getParam('二级用气性质') ? [{
811
829
  label: '全部',
812
830
  value: ''