manage-client 3.2.240 → 3.2.241
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/filiale/WEINAN/CancellationQuery.vue +141 -5
- package/src/filiale/qianneng/QnJgqReport.vue +3 -0
- package/src/filiale/qianneng/QnJgqXsjgbbWs.vue +624 -0
- package/src/filiale/qianneng/exportConfig.js +5 -0
- package/src/filiale/qianneng/reportManage.js +37 -68
- package/src/filiale/qianneng/sale.js +13 -17
- package/src/filiale/qianneng/webmeterManage.js +4 -8
- package/src/filiale/wenxi/RecordInfoQuery.vue +1420 -0
- package/src/filiale/wenxi/sale.js +2 -1
package/package.json
CHANGED
|
@@ -68,6 +68,41 @@
|
|
|
68
68
|
<input type="text" style="width:60%" class="input_search" v-model="model.f_address"
|
|
69
69
|
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
70
70
|
</div>
|
|
71
|
+
|
|
72
|
+
<div class="col-sm-2 form-group">
|
|
73
|
+
<label class="font_normal_body">气价名称</label>
|
|
74
|
+
<v-select :value.sync="model.f_price_name"
|
|
75
|
+
v-model="model.f_price_name"
|
|
76
|
+
:options="$parent.$parent.getPricenames"
|
|
77
|
+
condition="f_price_name = '{}'"
|
|
78
|
+
close-on-select></v-select>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="col-sm-2 form-group">
|
|
81
|
+
<label class="font_normal_body">气表品牌</label>
|
|
82
|
+
<v-select :value.sync="model.f_meter_brand" multiple
|
|
83
|
+
v-model="model.f_meter_brand"
|
|
84
|
+
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
|
85
|
+
condition="f_meter_brand in {}"
|
|
86
|
+
close-on-select></v-select>
|
|
87
|
+
</div>
|
|
88
|
+
<div class="col-sm-2 form-group">
|
|
89
|
+
<label class="font_normal_body">小区名称</label>
|
|
90
|
+
<v-select :value.sync="model.f_residential_area"
|
|
91
|
+
class="select_list select"
|
|
92
|
+
enter-push
|
|
93
|
+
multiple = "true"
|
|
94
|
+
v-model="model.f_residential_area"
|
|
95
|
+
style="width: 60%"
|
|
96
|
+
:options='$parent.$parent.residentialArea' placeholder='选择小区'
|
|
97
|
+
close-on-select>
|
|
98
|
+
|
|
99
|
+
</v-select>
|
|
100
|
+
</div>
|
|
101
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
102
|
+
<!-- <label class="font_normal_body">小区名称</label>-->
|
|
103
|
+
<!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"-->
|
|
104
|
+
<!-- condition="f_residential_area like '%{}%'" placeholder="小区名称">-->
|
|
105
|
+
<!-- </div>-->
|
|
71
106
|
<!-- <div class="col-sm-2 form-group">-->
|
|
72
107
|
<!-- <label class="font_normal_body">操作类型</label>-->
|
|
73
108
|
<!-- <v-select :value.sync="model.f_operat_type"-->
|
|
@@ -127,6 +162,15 @@
|
|
|
127
162
|
<th>
|
|
128
163
|
<nobr>公司</nobr>
|
|
129
164
|
</th>
|
|
165
|
+
<th>
|
|
166
|
+
<nobr>气价名称</nobr>
|
|
167
|
+
</th>
|
|
168
|
+
<th>
|
|
169
|
+
<nobr>气表品牌</nobr>
|
|
170
|
+
</th>
|
|
171
|
+
<th>
|
|
172
|
+
<nobr>小区名称</nobr>
|
|
173
|
+
</th>
|
|
130
174
|
<th>
|
|
131
175
|
<nobr>操作</nobr>
|
|
132
176
|
</th>
|
|
@@ -179,6 +223,15 @@
|
|
|
179
223
|
<td style="text-align: center;">
|
|
180
224
|
<nobr>{{row.f_orgname}}</nobr>
|
|
181
225
|
</td>
|
|
226
|
+
<td style="text-align: center;">
|
|
227
|
+
<nobr>{{row.f_price_name}}</nobr>
|
|
228
|
+
</td>
|
|
229
|
+
<td style="text-align: center;">
|
|
230
|
+
<nobr>{{row.f_meter_brand}}</nobr>
|
|
231
|
+
</td>
|
|
232
|
+
<td style="text-align: center;">
|
|
233
|
+
<nobr>{{row.f_residential_area}}</nobr>
|
|
234
|
+
</td>
|
|
182
235
|
<td style="text-align: center;" v-else>
|
|
183
236
|
<nobr><a href="#" @click="$parent.$parent.$parent.enable(row)">启用</a> | <a href="#" @click="$parent.$parent.$parent.modifyAddress(row)">修改地址</a></nobr>
|
|
184
237
|
</td>
|
|
@@ -219,15 +272,16 @@
|
|
|
219
272
|
<footer slot="modal-footer" class="modal-footer">
|
|
220
273
|
</footer>
|
|
221
274
|
</modal>
|
|
222
|
-
|
|
275
|
+
</div>
|
|
276
|
+
<modal :show.sync="enbaleShow" v-if="enbaleShow" width="50%" style="width:auto;" v-ref:modal backdrop="false">
|
|
223
277
|
<article slot="modal-body" class="modal-body">
|
|
224
278
|
<div class="auto">
|
|
225
279
|
<validator name='v'>
|
|
226
280
|
<form class="form-horizontal">
|
|
227
281
|
<p class="bg-info text-center" style="padding: 8px;">启用信息</p>
|
|
228
282
|
<div class="form-group" style="margin-top:10px;">
|
|
229
|
-
|
|
230
|
-
|
|
283
|
+
<label for="f_reason" class=" font_normal_body">销户原因:</label>
|
|
284
|
+
<input class="input_search" style="width:80%" v-model="enableData.f_comments" disabled="">
|
|
231
285
|
</div>
|
|
232
286
|
<div class="form-group" style="margin-top:10px;">
|
|
233
287
|
<div :class="[$v.f_reason.required ? 'has-error' : 'has-success']">
|
|
@@ -250,7 +304,7 @@
|
|
|
250
304
|
</template>
|
|
251
305
|
|
|
252
306
|
<script>
|
|
253
|
-
|
|
307
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
254
308
|
import defaultPrint from './config/DefaultPrint'
|
|
255
309
|
import exportConfig from './config/exportConfig'
|
|
256
310
|
|
|
@@ -261,7 +315,7 @@
|
|
|
261
315
|
// await self.$refs.paged.$refs.cri.search()
|
|
262
316
|
//self.$refs.paged.$refs.cri.model.f_sendsuccess = ['有效']
|
|
263
317
|
await self.$MagLoadParams.loadParam()
|
|
264
|
-
|
|
318
|
+
self.initParams()
|
|
265
319
|
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
266
320
|
}
|
|
267
321
|
export default {
|
|
@@ -281,6 +335,13 @@
|
|
|
281
335
|
f_filialeids: this.$login.f.orgid,
|
|
282
336
|
useraddressShow: false,
|
|
283
337
|
addressId: '',
|
|
338
|
+
// 下拉框
|
|
339
|
+
meterbrands: [],
|
|
340
|
+
f_price_name: [],
|
|
341
|
+
pricenames: [],
|
|
342
|
+
prices: [],
|
|
343
|
+
//小区
|
|
344
|
+
residentialArea: [],
|
|
284
345
|
rowdata:{},
|
|
285
346
|
enableData: {
|
|
286
347
|
f_reason: ''
|
|
@@ -315,6 +376,7 @@
|
|
|
315
376
|
}
|
|
316
377
|
},
|
|
317
378
|
ready() {
|
|
379
|
+
this.getaddress()
|
|
318
380
|
readySomething(this).then(() => {
|
|
319
381
|
this.$emit('ready')
|
|
320
382
|
}).catch((error) => {
|
|
@@ -322,6 +384,44 @@
|
|
|
322
384
|
})
|
|
323
385
|
},
|
|
324
386
|
methods: {
|
|
387
|
+
initParams() {
|
|
388
|
+
// 初始化气表品牌
|
|
389
|
+
let brandArr = []
|
|
390
|
+
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
391
|
+
let temp = {}
|
|
392
|
+
temp.label = item.label
|
|
393
|
+
temp.value = item.value.f_meter_brand
|
|
394
|
+
brandArr.push(temp)
|
|
395
|
+
})
|
|
396
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
397
|
+
//初始化气表价格
|
|
398
|
+
this.prices = this.$MagGetSaleParam.getPrices();
|
|
399
|
+
},
|
|
400
|
+
pricetypechanged(){
|
|
401
|
+
this.$refs.paged.$refs.cri.model.f_price_name = []
|
|
402
|
+
},
|
|
403
|
+
async getaddress(){
|
|
404
|
+
let HttpReset = new HttpResetClass()
|
|
405
|
+
var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
|
|
406
|
+
data: {
|
|
407
|
+
condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
|
|
408
|
+
}
|
|
409
|
+
}, {resolveMsg: null, rejectMsg: '获取小区失败!'})
|
|
410
|
+
console.log('小区',data)
|
|
411
|
+
let house = [{label: '全部', value: ''}]
|
|
412
|
+
for (let row of data.data){
|
|
413
|
+
house.push({label: row.f_residential_area, value: row.f_residential_area})
|
|
414
|
+
}
|
|
415
|
+
this.residentialArea = house
|
|
416
|
+
},
|
|
417
|
+
//把数据库查询数据转换为下拉数据
|
|
418
|
+
calculate(rows){
|
|
419
|
+
let data = []
|
|
420
|
+
rows.forEach((row, n) => {
|
|
421
|
+
data[n] = {label: row.f_residential_area, value: row.id}
|
|
422
|
+
})
|
|
423
|
+
return data
|
|
424
|
+
},
|
|
325
425
|
modifyAddress(obj) {
|
|
326
426
|
this.addressId=obj.addrid
|
|
327
427
|
this.useraddressShow=true
|
|
@@ -344,7 +444,14 @@
|
|
|
344
444
|
}
|
|
345
445
|
},
|
|
346
446
|
enable(row) {
|
|
447
|
+
let obj = {data: {name: ''}}
|
|
448
|
+
if (this.$refs.paged.$refs.grid.selectStore.selected==null){
|
|
449
|
+
this.$refs.paged.$refs.grid.selectStore.selected = obj
|
|
450
|
+
}else if(this.$refs.paged.$refs.grid.selectStore.selected.data==null){
|
|
451
|
+
Object.assign(this.$refs.paged.$refs.grid.selectStore.selected, obj)
|
|
452
|
+
}
|
|
347
453
|
Object.assign(this.enableData, row)
|
|
454
|
+
|
|
348
455
|
this.enbaleShow = true
|
|
349
456
|
},
|
|
350
457
|
confirmEnable() {
|
|
@@ -507,6 +614,35 @@
|
|
|
507
614
|
},
|
|
508
615
|
},
|
|
509
616
|
computed: {
|
|
617
|
+
getPricenames() {
|
|
618
|
+
let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
|
|
619
|
+
let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
|
|
620
|
+
let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
|
|
621
|
+
console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
|
|
622
|
+
if(this.$refs.paged.$refs.cri.model !==null) {
|
|
623
|
+
let rs = []
|
|
624
|
+
let priceArr = []
|
|
625
|
+
if ( pricetype.length >0) {
|
|
626
|
+
let params = {
|
|
627
|
+
f_price_type: pricetype[0],
|
|
628
|
+
filter: this.f_filialeid,
|
|
629
|
+
prices: this.prices
|
|
630
|
+
}
|
|
631
|
+
this.$MagGetSaleParam.getPrice(params).forEach((item) => {
|
|
632
|
+
let temp = {}
|
|
633
|
+
temp.label = item.label
|
|
634
|
+
temp.value = item.value.f_price_name
|
|
635
|
+
priceArr.push(temp)
|
|
636
|
+
})
|
|
637
|
+
rs = [{label: '全部', value: ''}, ...priceArr]
|
|
638
|
+
}
|
|
639
|
+
if (rs.length === 0) {
|
|
640
|
+
console.log('rs读出来是空')
|
|
641
|
+
this.$refs.paged.$refs.cri.model.f_price_name = ''
|
|
642
|
+
}
|
|
643
|
+
return rs
|
|
644
|
+
}
|
|
645
|
+
},
|
|
510
646
|
getCondition() {
|
|
511
647
|
return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
|
|
512
648
|
orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
<tabs header="销售结构报表" v-if="permission('结构气销售结构报表')">
|
|
22
22
|
<qn-jgq-xsjgbb v-if="show.includes('销售结构报表')" @deal-msg="dealMsg" :data="data"></qn-jgq-xsjgbb>
|
|
23
23
|
</tabs>
|
|
24
|
+
<tabs header="销售结构报表" v-if="permission('结构气销售结构报表汶上')">
|
|
25
|
+
<qn-jgq-xsjgbbws v-if="show.includes('销售结构报表')" @deal-msg="dealMsg" :data="data"></qn-jgq-xsjgbbws>
|
|
26
|
+
</tabs>
|
|
24
27
|
<tabs header="用户数报表" v-if="permission('结构气用户数报表')"> <!-- 成武使用 -->
|
|
25
28
|
<qn-jgq-yhsbb v-if="show.includes('用户数报表')" @deal-msg="dealMsg" :data="data"></qn-jgq-yhsbb>
|
|
26
29
|
</tabs>
|