sale-client 4.3.2 → 4.3.4
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/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/build/dev-server.js +1 -1
- package/package.json +1 -1
- package/src/components/FilesManageNew/FileUserFiles.vue +23 -2
- package/src/components/charge/ChargeList.vue +16 -7
- package/src/components/revenue/HandManager/CardHand.vue +15 -5
- package/src/components/revenue/batchDeduction/batchDeductionList.vue +33 -4
- package/src/components/revenue/comprehen/Message/AllUser.vue +15 -4
- package/src/filiale/dexin/FileUserFiles.vue +11 -5
- package/src/filiale/dexin/cardsHand.vue +15 -5
- package/src/filiale/xihu/UserPriceChangeManage.vue +690 -0
- package/src/filiale/xihu/sale.js +3 -1
|
Binary file
|
|
Binary file
|
|
File without changes
|
package/build/dev-server.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var path = require('path')
|
|
2
2
|
var checkVersion = require('./versionCheck.js')
|
|
3
3
|
checkVersion()
|
|
4
|
-
const [ serverRul, localUrl ] = ['http://
|
|
4
|
+
const [ serverRul, localUrl ] = ['http://192.168.50.67:31567/', 'http://192.168.50.67:31567/']
|
|
5
5
|
var merge = require('webpack-merge')
|
|
6
6
|
var baseConfig = require('./webpack.dev.conf')
|
|
7
7
|
var devConfig = {
|
package/package.json
CHANGED
|
@@ -116,6 +116,14 @@
|
|
|
116
116
|
type="text"
|
|
117
117
|
v-model="model.f_olduserinfo_code">
|
|
118
118
|
</div>
|
|
119
|
+
<div
|
|
120
|
+
:class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
|
|
121
|
+
class="form-group">
|
|
122
|
+
<label class="font_normal_body">客户类型</label>
|
|
123
|
+
<v-select :options='$parent.$parent.user_type' :value.sync="model.f_user_type"
|
|
124
|
+
close-on-select condition="f_user_type='{}'" :value-single="true" @change="$parent.$parent.userTypeChange()"
|
|
125
|
+
placeholder='客户类型' v-model="model.f_user_type"></v-select>
|
|
126
|
+
</div>
|
|
119
127
|
<div
|
|
120
128
|
:class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
|
|
121
129
|
class="form-group">
|
|
@@ -374,7 +382,11 @@ let loadParamGem = async function (self) {
|
|
|
374
382
|
orderFields: {
|
|
375
383
|
f_userinfo_id: 'no'
|
|
376
384
|
},
|
|
377
|
-
|
|
385
|
+
user_type: this.$appdata.getParam('用户类型') ? [{
|
|
386
|
+
label: '全部',
|
|
387
|
+
value: ''
|
|
388
|
+
}, ...this.$appdata.getParam('用户类型')] : [],
|
|
389
|
+
gasproperties: [],
|
|
378
390
|
createFile: false,
|
|
379
391
|
|
|
380
392
|
curorgid: [this.$login.f.orgid],
|
|
@@ -396,7 +408,7 @@ let loadParamGem = async function (self) {
|
|
|
396
408
|
|
|
397
409
|
criteriaShow: false,
|
|
398
410
|
|
|
399
|
-
gasproperties: this.$appdata.getParam('用气性质') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')] : [],
|
|
411
|
+
// gasproperties: this.$appdata.getParam('用气性质') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')] : [],
|
|
400
412
|
userstates: this.$appdata.getParam('预备客户状态参数') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('预备客户状态参数')] : [{label: '预备', value: '预备'}],
|
|
401
413
|
f_user_state: '预备',
|
|
402
414
|
showselectaddress: false,
|
|
@@ -457,6 +469,15 @@ let loadParamGem = async function (self) {
|
|
|
457
469
|
},
|
|
458
470
|
showFileInfo () {
|
|
459
471
|
|
|
472
|
+
},
|
|
473
|
+
userTypeChange () {
|
|
474
|
+
this.gasproperties = []
|
|
475
|
+
if (this.$refs.paged.$refs.criteria.model !== null) {
|
|
476
|
+
this.$refs.paged.$refs.criteria.model.f_gasproperties = ''
|
|
477
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type)
|
|
478
|
+
} else {
|
|
479
|
+
this.gasproperties = [{label: '全部', value: ''}]
|
|
480
|
+
}
|
|
460
481
|
},
|
|
461
482
|
closemodal () {
|
|
462
483
|
this.batchMeterShow = false
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
condition="f_meter_brand = '{}'"
|
|
81
81
|
close-on-select style="width: 60%"></v-select>
|
|
82
82
|
</div>
|
|
83
|
+
<div class="form-group col-sm-3">
|
|
84
|
+
<label class="font_normal_body">客户类型</label>
|
|
85
|
+
<v-select :options='$parent.$parent.user_type' :value.sync="model.f_user_type" style="width: 60%"
|
|
86
|
+
close-on-select condition="u.f_user_type='{}'" @change="$parent.$parent.userTypeChange()"
|
|
87
|
+
placeholder='客户类型' v-model="model.f_user_type"></v-select>
|
|
88
|
+
</div>
|
|
83
89
|
<div class="form-group col-sm-3">
|
|
84
90
|
<label class="font_normal_body">用气性质</label>
|
|
85
91
|
<v-select v-model="model.f_gasproperties"
|
|
@@ -687,6 +693,11 @@ let cardBtnGen = async function (self, val) {
|
|
|
687
693
|
orderFields: {
|
|
688
694
|
f_userinfo_id: 'no'
|
|
689
695
|
},
|
|
696
|
+
gasproperties: [],
|
|
697
|
+
user_type: this.$appdata.getParam('用户类型') ? [{
|
|
698
|
+
label: '全部',
|
|
699
|
+
value: ''
|
|
700
|
+
}, ...this.$appdata.getParam('用户类型')] : [],
|
|
690
701
|
filiale: '',
|
|
691
702
|
outlet: '',
|
|
692
703
|
fields: {
|
|
@@ -713,7 +724,7 @@ let cardBtnGen = async function (self, val) {
|
|
|
713
724
|
fileStates: this.$appdata.getParam('档案状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('档案状态')] : [],
|
|
714
725
|
|
|
715
726
|
// userTypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
|
|
716
|
-
gasproperties: this.$appdata.getParam('用气性质') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')] : [],
|
|
727
|
+
// gasproperties: this.$appdata.getParam('用气性质') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')] : [],
|
|
717
728
|
|
|
718
729
|
meterbrand: [],
|
|
719
730
|
userlevel: this.$appdata.getParam('用户等级') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')] : [],
|
|
@@ -865,12 +876,10 @@ let cardBtnGen = async function (self, val) {
|
|
|
865
876
|
},
|
|
866
877
|
userTypeChange () {
|
|
867
878
|
this.gasproperties = []
|
|
868
|
-
if (this.$refs.paged.$refs.cri.model.f_user_type
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
this.$refs.paged.$refs.cri.model.f_gasproperties = ''
|
|
873
|
-
}
|
|
879
|
+
if (this.$refs.paged.$refs.cri.model.f_user_type !== null) {
|
|
880
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type)
|
|
881
|
+
} else {
|
|
882
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties = ''
|
|
874
883
|
}
|
|
875
884
|
},
|
|
876
885
|
async hasGasContinue () {
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
<label class="font_normal_body">用户类型</label>
|
|
144
144
|
<v-select :value.sync="model.f_user_type" v-model="model.f_user_type"
|
|
145
145
|
:options='$parent.$parent.usertypes' placeholder='用户类型'
|
|
146
|
-
close-on-select :search='true'
|
|
146
|
+
close-on-select :search='true' @change="$parent.$parent.userTypeChange()"
|
|
147
147
|
condition="f_user_type = '{}'"></v-select>
|
|
148
148
|
</div>
|
|
149
149
|
<div class="col-sm-2 form-group">
|
|
@@ -483,7 +483,8 @@ import {HttpResetClass, PagedList} from 'vue-client'
|
|
|
483
483
|
user: []
|
|
484
484
|
},
|
|
485
485
|
shengyu: this.$appdata.getSingleValue('在线抄表计算剩余气量') ? this.$appdata.getSingleValue('在线抄表计算剩余气量') : 'true',
|
|
486
|
-
orgCondtionStr: ''
|
|
486
|
+
orgCondtionStr: '',
|
|
487
|
+
gasproperties: []
|
|
487
488
|
}
|
|
488
489
|
},
|
|
489
490
|
ready () {
|
|
@@ -497,6 +498,15 @@ import {HttpResetClass, PagedList} from 'vue-client'
|
|
|
497
498
|
})
|
|
498
499
|
},
|
|
499
500
|
methods: {
|
|
501
|
+
userTypeChange () {
|
|
502
|
+
this.gasproperties = []
|
|
503
|
+
if (this.$refs.paged.$refs.criteria.model !== null) {
|
|
504
|
+
this.$refs.paged.$refs.criteria.model.f_gasproperties = ''
|
|
505
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type)
|
|
506
|
+
} else {
|
|
507
|
+
this.gasproperties = [{label: '全部', value: ''}]
|
|
508
|
+
}
|
|
509
|
+
},
|
|
500
510
|
hidden () {
|
|
501
511
|
this.criteriaShow = !this.criteriaShow
|
|
502
512
|
},
|
|
@@ -782,9 +792,9 @@ import {HttpResetClass, PagedList} from 'vue-client'
|
|
|
782
792
|
ventilationstate () {
|
|
783
793
|
return [{label: '全部', value: ''}, ...this.$appdata.getParam('通气手续')]
|
|
784
794
|
},
|
|
785
|
-
gasproperties () {
|
|
786
|
-
|
|
787
|
-
},
|
|
795
|
+
// gasproperties () {
|
|
796
|
+
// return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
|
|
797
|
+
// },
|
|
788
798
|
pricenames () {
|
|
789
799
|
let arr = []
|
|
790
800
|
AppData.getOnlyPrice().forEach((item) => {
|
|
@@ -13,11 +13,26 @@
|
|
|
13
13
|
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
14
14
|
condition="tbd.f_user_name = '{}'" placeholder='用户姓名'>
|
|
15
15
|
</div>
|
|
16
|
-
<div
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
<div
|
|
17
|
+
:class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
|
|
18
|
+
class="form-group">
|
|
19
|
+
<label class="font_normal_body">客户类型</label>
|
|
20
|
+
<v-select :options='$parent.$parent.user_type' :value.sync="model.f_user_type"
|
|
21
|
+
close-on-select condition="f_user_type='{}'" :value-single="true" @change="$parent.$parent.userTypeChange()"
|
|
22
|
+
placeholder='客户类型' v-model="model.f_user_type"></v-select>
|
|
23
|
+
</div>
|
|
24
|
+
<div
|
|
25
|
+
class="form-group col-sm-2" v-if="!$parent.$parent.chargeShow">
|
|
26
|
+
<label class="font_normal_body">用气性质</label>
|
|
27
|
+
<v-select :options='$parent.$parent.gasproperties' :value.sync="model.f_gasproperties"
|
|
28
|
+
close-on-select condition="uf.f_gasproperties='{}'"
|
|
29
|
+
placeholder='用气性质' v-model="model.f_gasproperties"></v-select>
|
|
20
30
|
</div>
|
|
31
|
+
<!-- <div class="form-group col-sm-2" v-if="!$parent.$parent.chargeShow" >-->
|
|
32
|
+
<!-- <label class="font_normal_body"><nobr>用气性质</nobr></label>-->
|
|
33
|
+
<!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_gasproperties"-->
|
|
34
|
+
<!-- condition="uf.f_gasproperties='{}'" placeholder='用气性质'>-->
|
|
35
|
+
<!-- </div>-->
|
|
21
36
|
|
|
22
37
|
<div class="span" style="float:right;">
|
|
23
38
|
<button class="button_export button_spacing" @click="$parent.$parent.importToSuccess()">一键生成补扣费记录</button>
|
|
@@ -114,6 +129,11 @@ export default {
|
|
|
114
129
|
return {
|
|
115
130
|
criteriaShow: false,
|
|
116
131
|
model: new PagedList('api/af-revenue/sql/getDeductionRecord', 30 ,{}),
|
|
132
|
+
gasproperties: [],
|
|
133
|
+
user_type: this.$appdata.getParam('用户类型') ? [{
|
|
134
|
+
label: '全部',
|
|
135
|
+
value: ''
|
|
136
|
+
}, ...this.$appdata.getParam('用户类型')] : [],
|
|
117
137
|
fileShow: false,
|
|
118
138
|
condition: '',
|
|
119
139
|
searchEd: false,
|
|
@@ -134,6 +154,15 @@ export default {
|
|
|
134
154
|
let downurl = 'api/af-revenue/downloadfile/file?filename=' + this.templateName
|
|
135
155
|
this.$downFile(downurl, this.templateName + '.xlsx')
|
|
136
156
|
},
|
|
157
|
+
userTypeChange () {
|
|
158
|
+
this.gasproperties = []
|
|
159
|
+
if (this.$refs.paged.$refs.criteria.model !== null) {
|
|
160
|
+
this.$refs.paged.$refs.criteria.model.f_gasproperties = ''
|
|
161
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type)
|
|
162
|
+
} else {
|
|
163
|
+
this.gasproperties = [{label: '全部', value: ''}]
|
|
164
|
+
}
|
|
165
|
+
},
|
|
137
166
|
selfSearch (args) {
|
|
138
167
|
this.condition = args.condition
|
|
139
168
|
this.model.search(args.condition, this.model)
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
placeholder='用户类型'
|
|
60
60
|
:value.sync="model.f_user_type"
|
|
61
61
|
:options='$parent.$parent.getusertype'
|
|
62
|
+
@change="$parent.$parent.userTypeChange()"
|
|
62
63
|
condition="f_user_type = '{}'"
|
|
63
64
|
style="width: 60%"
|
|
64
65
|
close-on-select >
|
|
@@ -356,10 +357,11 @@ export default {
|
|
|
356
357
|
|
|
357
358
|
{ label: '民用', value: '民用' },
|
|
358
359
|
{ label: '非民用', value: '非民用' }],
|
|
359
|
-
gasproperties: this.$appdata.getParam('用气性质') ? [{
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
}, ...this.$appdata.getParam('用气性质')] : [],
|
|
360
|
+
// gasproperties: this.$appdata.getParam('用气性质') ? [{
|
|
361
|
+
// label: '全部',
|
|
362
|
+
// value: ''
|
|
363
|
+
// }, ...this.$appdata.getParam('用气性质')] : [],
|
|
364
|
+
gasproperties: [],
|
|
363
365
|
f_whether: '全部',
|
|
364
366
|
pcdslist: [],
|
|
365
367
|
isFirst: true
|
|
@@ -397,6 +399,15 @@ export default {
|
|
|
397
399
|
}
|
|
398
400
|
},
|
|
399
401
|
methods: {
|
|
402
|
+
userTypeChange () {
|
|
403
|
+
this.gasproperties = []
|
|
404
|
+
if (this.$refs.paged.$refs.cri.model !== null) {
|
|
405
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties = ''
|
|
406
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type)
|
|
407
|
+
} else {
|
|
408
|
+
this.gasproperties = [{label: '全部', value: ''}]
|
|
409
|
+
}
|
|
410
|
+
},
|
|
400
411
|
loadMeterBooks () {
|
|
401
412
|
let meterbrand = this.$GetSaleParam.getGasbrand()
|
|
402
413
|
for (let row of meterbrand) {
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
class="form-group">
|
|
131
131
|
<label class="font_normal_body">客户类型</label>
|
|
132
132
|
<v-select :options='$parent.$parent.user_type' :value.sync="model.f_user_type"
|
|
133
|
-
close-on-select condition="f_user_type='{}'"
|
|
133
|
+
close-on-select condition="f_user_type='{}'" :value-single="true" @change="$parent.$parent.userTypeChange()"
|
|
134
134
|
placeholder='客户类型' v-model="model.f_user_type"></v-select>
|
|
135
135
|
</div>
|
|
136
136
|
<div
|
|
@@ -640,10 +640,7 @@ let loadParamGem = async function (self) {
|
|
|
640
640
|
label: '全部',
|
|
641
641
|
value: ''
|
|
642
642
|
}, ...this.$appdata.getParam('工业备注')] : [],
|
|
643
|
-
gasproperties:
|
|
644
|
-
label: '全部',
|
|
645
|
-
value: ''
|
|
646
|
-
}, ...this.$appdata.getParam('用气性质')] : [],
|
|
643
|
+
gasproperties: [],
|
|
647
644
|
user_type: this.$appdata.getParam('用户类型') ? [{
|
|
648
645
|
label: '全部',
|
|
649
646
|
value: ''
|
|
@@ -734,6 +731,15 @@ let loadParamGem = async function (self) {
|
|
|
734
731
|
cancel () {
|
|
735
732
|
this.isShowDetailInfo = false
|
|
736
733
|
},
|
|
734
|
+
userTypeChange () {
|
|
735
|
+
this.gasproperties = []
|
|
736
|
+
if (this.$refs.paged.$refs.criteria.model !== null) {
|
|
737
|
+
this.$refs.paged.$refs.criteria.model.f_gasproperties = ''
|
|
738
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type)
|
|
739
|
+
} else {
|
|
740
|
+
this.gasproperties = [{label: '全部', value: ''}]
|
|
741
|
+
}
|
|
742
|
+
},
|
|
737
743
|
/**
|
|
738
744
|
* 展示用户详细信息
|
|
739
745
|
* @param obj 传递的row
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
<label class="font_normal_body">用户类型</label>
|
|
145
145
|
<v-select :value.sync="model.f_user_type" v-model="model.f_user_type"
|
|
146
146
|
:options='$parent.$parent.usertypes' placeholder='用户类型'
|
|
147
|
-
close-on-select :search='true'
|
|
147
|
+
close-on-select :search='true' @change="$parent.$parent.userTypeChange()"
|
|
148
148
|
condition="f_user_type = '{}'"></v-select>
|
|
149
149
|
</div>
|
|
150
150
|
<div class="col-sm-2 form-group">
|
|
@@ -517,7 +517,8 @@ export default {
|
|
|
517
517
|
},
|
|
518
518
|
meterbrands: [{label: '全部', value: ''}],
|
|
519
519
|
upshow: false,
|
|
520
|
-
orgCondtionStr: ''
|
|
520
|
+
orgCondtionStr: '',
|
|
521
|
+
gasproperties: []
|
|
521
522
|
}
|
|
522
523
|
},
|
|
523
524
|
beforeDestroy () {
|
|
@@ -530,6 +531,15 @@ export default {
|
|
|
530
531
|
loadParamGem(this)
|
|
531
532
|
},
|
|
532
533
|
methods: {
|
|
534
|
+
userTypeChange () {
|
|
535
|
+
this.gasproperties = []
|
|
536
|
+
if (this.$refs.paged.$refs.criteria.model !== null) {
|
|
537
|
+
this.$refs.paged.$refs.criteria.model.f_gasproperties = ''
|
|
538
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type)
|
|
539
|
+
} else {
|
|
540
|
+
this.gasproperties = [{label: '全部', value: ''}]
|
|
541
|
+
}
|
|
542
|
+
},
|
|
533
543
|
downloadFiles () {
|
|
534
544
|
let downurl = 'api/af-revenue/downloadfile/file?filename=德信卡表批量抄表导入模板'
|
|
535
545
|
this.$downFile(downurl,'卡表批量抄表导入模板.xlsx')
|
|
@@ -814,9 +824,9 @@ export default {
|
|
|
814
824
|
ventilationstate () {
|
|
815
825
|
return [{label: '全部', value: ''}, ...this.$appdata.getParam('通气手续')]
|
|
816
826
|
},
|
|
817
|
-
gasproperties () {
|
|
818
|
-
|
|
819
|
-
},
|
|
827
|
+
// gasproperties () {
|
|
828
|
+
// return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
|
|
829
|
+
// },
|
|
820
830
|
pricenames () {
|
|
821
831
|
let arr = []
|
|
822
832
|
AppData.getOnlyPrice().forEach((item) => {
|
|
@@ -0,0 +1,690 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<validator name='m'>
|
|
4
|
+
<div class="basic-main" style="margin-left: 1%;" >
|
|
5
|
+
|
|
6
|
+
<criteria-paged :model="model" v-ref:paged @sort="sort" >
|
|
7
|
+
<criteria partial='criteria' v-ref:criteria @condition-changed="$parent.selfSearch">
|
|
8
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
9
|
+
<div class="row">
|
|
10
|
+
<div class="form-group col-sm-2">
|
|
11
|
+
<label class="font_normal_body">组织机构</label>
|
|
12
|
+
<res-select
|
|
13
|
+
restype='organization'
|
|
14
|
+
@res-select="$parent.$parent.getorg"
|
|
15
|
+
is-mul="false"
|
|
16
|
+
:initresid='$parent.$parent.curorgid'
|
|
17
|
+
>
|
|
18
|
+
</res-select>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="form-group col-sm-2">
|
|
21
|
+
<label class="font_normal_body">客户编号</label>
|
|
22
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
|
|
23
|
+
@keyup.enter="search()" condition="f_userinfo_code = '{}'" placeholder='客户编号'>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="form-group col-sm-2">
|
|
26
|
+
<label class="font_normal_body">客户名称</label>
|
|
27
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_user_name"
|
|
28
|
+
@keyup.enter="search()" condition="f_user_name like '%{}%'" placeholder='客户姓名'>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<div style="float:right">
|
|
32
|
+
<button class="button_search" @click="search(), $parent.$parent.clean()">查询</button>
|
|
33
|
+
<button class="button_clear" @click="$parent.$parent.clear()">清空</button>
|
|
34
|
+
<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>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="row" v-if="$parent.$parent.criteriaShow">
|
|
38
|
+
<div class="form-group col-sm-2" >
|
|
39
|
+
<label class="font_normal_body">旧客户号</label>
|
|
40
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_olduserinfo_code" placeholder='客户编号'
|
|
41
|
+
condition="f_olduserinfo_code = '{}'">
|
|
42
|
+
</div>
|
|
43
|
+
<div class="form-group col-sm-2">
|
|
44
|
+
<label class="font_normal_body">表  号</label>
|
|
45
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_meternumber" placeholder='表号'
|
|
46
|
+
condition="f_meternumber = '{}'">
|
|
47
|
+
</div>
|
|
48
|
+
<div class="form-group col-sm-2">
|
|
49
|
+
<label class="font_normal_body">卡  号</label>
|
|
50
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_card_id" placeholder='卡号'
|
|
51
|
+
condition="f_card_id = '{}'">
|
|
52
|
+
</div>
|
|
53
|
+
<div class="form-group col-sm-2">
|
|
54
|
+
<label class="font_normal_body">用气性质</label>
|
|
55
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
56
|
+
:options='$parent.$parent.gasproperties2' placeholder='用气性质'
|
|
57
|
+
close-on-select condition="f_gasproperties='{}'"></v-select>
|
|
58
|
+
</div>
|
|
59
|
+
<div class="form-group col-sm-2">
|
|
60
|
+
<label class="font_normal_body">客户电话</label>
|
|
61
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_user_phone" placeholder='客户电话'
|
|
62
|
+
condition="f_user_phone = '{}'">
|
|
63
|
+
</div>
|
|
64
|
+
<div class="form-group col-sm-2">
|
|
65
|
+
<label class="font_normal_body">客户地址</label>
|
|
66
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_address"
|
|
67
|
+
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
</criteria>
|
|
72
|
+
<data-grid :model="model" class="list_area table_sy" v-ref:grid partial='list'>
|
|
73
|
+
<template partial='head'>
|
|
74
|
+
<tr>
|
|
75
|
+
<th>
|
|
76
|
+
<nobr>序号</nobr>
|
|
77
|
+
</th>
|
|
78
|
+
<th>
|
|
79
|
+
<nobr>客户编号</nobr>
|
|
80
|
+
</th>
|
|
81
|
+
<th>
|
|
82
|
+
<nobr>客户信息</nobr>
|
|
83
|
+
</th>
|
|
84
|
+
<th>
|
|
85
|
+
<nobr>表号</nobr>
|
|
86
|
+
</th>
|
|
87
|
+
<th>
|
|
88
|
+
<nobr>卡号</nobr>
|
|
89
|
+
</th>
|
|
90
|
+
<th>
|
|
91
|
+
<nobr>客户地址</nobr>
|
|
92
|
+
</th>
|
|
93
|
+
<th>
|
|
94
|
+
<nobr>气价名称</nobr>
|
|
95
|
+
</th>
|
|
96
|
+
<th>
|
|
97
|
+
<nobr>表具信息</nobr>
|
|
98
|
+
</th>
|
|
99
|
+
<th>
|
|
100
|
+
<nobr>状态</nobr>
|
|
101
|
+
</th>
|
|
102
|
+
<th>
|
|
103
|
+
<nobr>操作</nobr>
|
|
104
|
+
</th>
|
|
105
|
+
<th>
|
|
106
|
+
<nobr>历史操作</nobr>
|
|
107
|
+
</th>
|
|
108
|
+
</tr>
|
|
109
|
+
</template>
|
|
110
|
+
<template partial='body'>
|
|
111
|
+
<td style="text-align: center;">{{$index + 1}}</td>
|
|
112
|
+
<td style="text-align: center;white-space: nowrap;">{{row.f_userinfo_code}}</td>
|
|
113
|
+
<td style="text-align: center;white-space: nowrap;">{{row.f_user_name}}</td>
|
|
114
|
+
<td style="text-align: center;white-space: nowrap;">{{row.f_meternumber}}</td>
|
|
115
|
+
<td style="text-align: center;white-space: nowrap;">{{row.f_card_id}}</td>
|
|
116
|
+
<td style="text-align: center;white-space: nowrap;">{{row.f_address}}</td>
|
|
117
|
+
<td style="text-align: center;white-space: nowrap;">{{row.f_price_name}}</td>
|
|
118
|
+
<td style="text-align: center;white-space: nowrap;">{{row.f_meter_brand}}</td>
|
|
119
|
+
<td style="text-align: center;white-space: nowrap;">{{row.f_user_state}}</td>
|
|
120
|
+
<td style="text-align: center;white-space: nowrap;">
|
|
121
|
+
<button type="button" name="button" class="button_search button_spacing width-60" v-if="row.f_user_state === '正常'"
|
|
122
|
+
@click.stop="$parent.$parent.$parent.priceshow(row)">调价
|
|
123
|
+
</button>
|
|
124
|
+
</td>
|
|
125
|
+
<td style="text-align: center;white-space: nowrap;">
|
|
126
|
+
<button type="button" name="button" class="button_search button_spacing width-60" v-if="row.f_user_state === '正常'"
|
|
127
|
+
@click.stop="$parent.$parent.$parent.lookOver(row)">查看
|
|
128
|
+
</button>
|
|
129
|
+
</td>
|
|
130
|
+
</template>
|
|
131
|
+
</data-grid>
|
|
132
|
+
</criteria-paged>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
<modal :show.sync="show" width="50%" backdrop="false" style="overflow: scroll;">
|
|
136
|
+
|
|
137
|
+
<header slot="modal-header" class="modal-header">
|
|
138
|
+
<h4 class="modal-title" style="text-align: center;">气价调整</h4>
|
|
139
|
+
</header>
|
|
140
|
+
<article slot="modal-body" class="modal-body">
|
|
141
|
+
<div class="panel panel-primary datapanel">
|
|
142
|
+
<form class="form-horizontal">
|
|
143
|
+
<div class="form-group">
|
|
144
|
+
<div class="row">
|
|
145
|
+
<div class="col-sm-4 flex-row ">
|
|
146
|
+
<label class="control-label">客户编号</label>
|
|
147
|
+
<p class="form-control-static">{{row.f_userinfo_code}}</p>
|
|
148
|
+
</div>
|
|
149
|
+
<div class="col-sm-4 flex-row ">
|
|
150
|
+
<label class="control-label">客户名称</label>
|
|
151
|
+
<p class="form-control-static">{{row.f_user_name}}</p>
|
|
152
|
+
</div>
|
|
153
|
+
<div class="col-sm-4 flex-row ">
|
|
154
|
+
<label class="control-label">客户电话</label>
|
|
155
|
+
<p class="form-control-static">{{row.f_user_phone}}</p>
|
|
156
|
+
</div>
|
|
157
|
+
</div>
|
|
158
|
+
<div class="row">
|
|
159
|
+
<div class="col-sm-12 flex-row ">
|
|
160
|
+
<label class="control-label">客户地址</label>
|
|
161
|
+
<p class="form-control-static">{{row.f_address}}</p>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
</form>
|
|
166
|
+
|
|
167
|
+
</div>
|
|
168
|
+
|
|
169
|
+
<div class="panel panel-primary datapanel">
|
|
170
|
+
<div class="form-group">
|
|
171
|
+
<div class="row bg-info text-center text-center" style="height:35px">
|
|
172
|
+
<div style="float: left">
|
|
173
|
+
<label class="font_normal_body">旧气价信息</label>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
<div class="row" style="margin-top: 2%">
|
|
177
|
+
<div class="col-sm-3 flex-row ">
|
|
178
|
+
<label class="control-label">客户类型</label>
|
|
179
|
+
<p class="form-control-static">{{row.f_user_type}}</p>
|
|
180
|
+
</div>
|
|
181
|
+
<div class="col-sm-3 flex-row ">
|
|
182
|
+
<label class="control-label">用气性质</label>
|
|
183
|
+
<p class="form-control-static">{{row.f_gasproperties}}</p>
|
|
184
|
+
</div>
|
|
185
|
+
<div class="col-sm-3 flex-row ">
|
|
186
|
+
<label class="control-label">气价类型</label>
|
|
187
|
+
<p class="form-control-static">{{row.f_price_type}}</p>
|
|
188
|
+
</div>
|
|
189
|
+
<div class="col-sm-3 flex-row ">
|
|
190
|
+
<label class="control-label">气价名称</label>
|
|
191
|
+
<p class="form-control-static">{{row.f_price_name}}</p>
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
|
|
195
|
+
<div class="row bg-info text-center text-center" style="height:35px">
|
|
196
|
+
<div style="float: left">
|
|
197
|
+
<label class="font_normal_body">新气价信息</label>
|
|
198
|
+
</div>
|
|
199
|
+
</div>
|
|
200
|
+
|
|
201
|
+
<div class="row" style="margin-top: 2%">
|
|
202
|
+
<label class="radio-inline col-sm-3">
|
|
203
|
+
<input type="radio" value="系统气价" v-model="model.type" class="magic-radio" checked id="type_two">
|
|
204
|
+
<label for="type_two">系统气价</label>
|
|
205
|
+
<!-- <strong>IC卡丢失或损坏</strong> -->
|
|
206
|
+
</label>
|
|
207
|
+
<label class="radio-inline col-sm-4">
|
|
208
|
+
<input type="radio" value="自定义气价" v-model="model.type" class="magic-radio" id="type_three">
|
|
209
|
+
<label for="type_three">自定义气价</label>
|
|
210
|
+
<!-- <strong>IC卡信息错乱</strong> -->
|
|
211
|
+
</label>
|
|
212
|
+
</div>
|
|
213
|
+
<div class="row" style="margin-top: 2%" v-if="model.type ==='自定义气价'">
|
|
214
|
+
|
|
215
|
+
<div :class="[$m.f_price_type.required ? 'has-error' : '']" class="col-sm-4 form-group">
|
|
216
|
+
<input class="input_search" style="width:60%" type="text" v-model="newinfo.f_price_type" v-show="false"
|
|
217
|
+
v-validate:f_price_type='{required: true }'>
|
|
218
|
+
<label title="参数:气价类型" class="font_normal_body" for="f_price_type">气价类型</label>
|
|
219
|
+
<v-select :disabled='isEdit'
|
|
220
|
+
:options='pricetype'
|
|
221
|
+
:value-single="true"
|
|
222
|
+
:value.sync="newinfo.f_price_type"
|
|
223
|
+
close-on-select
|
|
224
|
+
id="f_price_type"
|
|
225
|
+
placeholder='请选择'
|
|
226
|
+
v-model="newinfo.f_price_type">
|
|
227
|
+
</v-select>
|
|
228
|
+
</div>
|
|
229
|
+
<div class="col-sm-4" :class="[$m.f_price_name.required ? 'has-error' : 'has-success']">
|
|
230
|
+
<label for="f_price_name" class="font_normal_body">气价名称</label>
|
|
231
|
+
<input style="width:60%" class="input_search" type="text" v-model="newinfo.f_price_name"
|
|
232
|
+
v-validate:f_price_name='{required: true }' placeholder="气价名称">
|
|
233
|
+
</div>
|
|
234
|
+
<div :class="[$m.f_stairmonths.required || $v.f_stairmonths.dctest ? 'has-error' : 'has-success']" class="col-sm-4 form-group"v-if="newinfo.f_price_type ==='阶梯气价'">
|
|
235
|
+
<label class="font_normal_body" for="f_stairmonths">阶段月数</label>
|
|
236
|
+
<input class="input_search" style="width:60%" type="number"
|
|
237
|
+
v-model="newinfo.f_stairmonths" v-validate:f_stairmonths='{required: true, dctest: [ 12, "<=" ] }'>
|
|
238
|
+
</div>
|
|
239
|
+
<div :class="[$m.f_stair_start_date.required ? 'has-error' : 'has-success']" class="col-sm-4 form-group" v-if="newinfo.f_price_type ==='阶梯气价'">
|
|
240
|
+
<input class="input_search" style="width:60%" type="text" v-model="newinfo.f_stair_start_date" v-show="false"
|
|
241
|
+
v-validate:f_stair_start_date='{required: true }'>
|
|
242
|
+
<label class="font_normal_body" for="f_stair_start_date">开始日期</label>
|
|
243
|
+
<datepicker :format="'yyyy-MM-dd'"
|
|
244
|
+
:value.sync="newinfo.f_stair_start_date"
|
|
245
|
+
class="datepicker"
|
|
246
|
+
id="f_stair_start_date"
|
|
247
|
+
placeholder="阶梯开始日期"
|
|
248
|
+
style="width: 60%"
|
|
249
|
+
v-model="newinfo.f_stair_start_date">
|
|
250
|
+
</datepicker>
|
|
251
|
+
</div>
|
|
252
|
+
<div class="col-sm-4" :class="[$m.f_price.required ? 'has-error' : 'has-success']" v-if="newinfo.f_price_type ==='固定气价'">
|
|
253
|
+
<label for="f_price" class="font_normal_body"> 单价 </label>
|
|
254
|
+
<input style="width:60%" class="input_search" type="number" v-model="detailprice[0].f_price"
|
|
255
|
+
v-validate:f_price='{required: true }' placeholder="单价">
|
|
256
|
+
</div>
|
|
257
|
+
<div class='auto' style="margin-top: 10px;">
|
|
258
|
+
<stair-price :isheat.sync="model.f_isheat" :stairmodel.sync='detailprice'
|
|
259
|
+
v-if="newinfo.f_price_type ==='阶梯气价'"></stair-price>
|
|
260
|
+
</div>
|
|
261
|
+
</div>
|
|
262
|
+
<div class="row" style="margin-top: 2%" v-if="model.type ==='自定义气价'">
|
|
263
|
+
<div class="col-sm-4 flex-row">
|
|
264
|
+
<label class="control-label">调价原因</label>
|
|
265
|
+
<v-select :value.sync="newinfo.f_comments" v-model="newinfo.f_comments"
|
|
266
|
+
placeholder='调价原因' :options="adjustpricereasons" :value-single="true"
|
|
267
|
+
close-on-select v-ref:type>
|
|
268
|
+
</v-select>
|
|
269
|
+
</div>
|
|
270
|
+
</div>
|
|
271
|
+
<div class="row" style="margin-top: 2%" v-if="model.type ==='自定义气价'">
|
|
272
|
+
<div class="col-sm-12 flex-row" >
|
|
273
|
+
<label class="control-label">备注</label>
|
|
274
|
+
<input type="text" class="input_search" style="width:80%" v-model="newinfo.f_other_comments" placeholder='备注' >
|
|
275
|
+
</div>
|
|
276
|
+
</div>
|
|
277
|
+
<div class="row" style="margin-top: 2%" v-if="model.type ==='系统气价'">
|
|
278
|
+
<div class="col-sm-4 flex-row" >
|
|
279
|
+
<label class="control-label">用户类型</label>
|
|
280
|
+
<v-select :value.sync="newinfo.f_user_type"
|
|
281
|
+
:options='usertypes' placeholder='用户类型'
|
|
282
|
+
@change="userTypeChange()"
|
|
283
|
+
close-on-select></v-select>
|
|
284
|
+
</div>
|
|
285
|
+
<div class="col-sm-4 flex-row"
|
|
286
|
+
:class="[$m.gas.required ? 'has-error' : '']">
|
|
287
|
+
<label class="control-label">用气性质</label>
|
|
288
|
+
<input type="text" v-show="false" v-model="$refs.gas.selectedItems" v-validate:gas='{required: true }'>
|
|
289
|
+
<v-select :value.sync="newinfo.f_gasproperties" v-model="newinfo.f_gasproperties"
|
|
290
|
+
:options='gasproperties' placeholder='用气性质'
|
|
291
|
+
close-on-select v-ref:gas></v-select>
|
|
292
|
+
</div>
|
|
293
|
+
<div class="col-sm-4 flex-row" :class="[$m.type.required ? 'has-error' : '']">
|
|
294
|
+
<label class="control-label">气价类型</label>
|
|
295
|
+
<v-select :value.sync="newinfo.pricetype" v-model="newinfo.pricetype"
|
|
296
|
+
placeholder='气价类型' :options="pricetypes"
|
|
297
|
+
close-on-select v-ref:type>
|
|
298
|
+
</v-select>
|
|
299
|
+
<input type="text" v-show="false" v-model="$refs.type.selectedItems" v-validate:type='{required: true }'>
|
|
300
|
+
</div>
|
|
301
|
+
</div>
|
|
302
|
+
<div class="row" style="margin-top: 2%" v-if="model.type ==='系统气价'">
|
|
303
|
+
|
|
304
|
+
<div class="col-sm-4 flex-row" :class="[$m.name.required ? 'has-error' : '']">
|
|
305
|
+
<label class="control-label">气价名称</label>
|
|
306
|
+
<v-select :value.sync="newinfo.pricename" v-model="newinfo.pricename"
|
|
307
|
+
placeholder='气价名称' :options="getPricenames()" @change="priceChange"
|
|
308
|
+
close-on-select :disabled='newinfo.pricetype.length === 0 ' v-ref:name></v-select>
|
|
309
|
+
<input type="text" v-show="false" v-model="$refs.name.selectedItems" v-validate:name='{required: true }'>
|
|
310
|
+
<span class="col-sm-3" v-if="newinfo.pricetype.length === 1 && gasproperties.length === 0"
|
|
311
|
+
style="color:red;text-align:right">请确定用气性质已选择!!</span>
|
|
312
|
+
</div>
|
|
313
|
+
|
|
314
|
+
<div class="col-sm-4 flex-row">
|
|
315
|
+
<label class="control-label">气价备注</label>
|
|
316
|
+
<input type="text" class="input_search" style="width:60%" v-model="newinfo.f_price_comments" placeholder='气价备注' disabled>
|
|
317
|
+
</div>
|
|
318
|
+
|
|
319
|
+
<div class="col-sm-4 flex-row" >
|
|
320
|
+
<label class="control-label" >生效日期</label>
|
|
321
|
+
<input class="input_search" style="width:60%" type="text" v-model="preformdate"
|
|
322
|
+
:disabled="true">
|
|
323
|
+
</div>
|
|
324
|
+
</div>
|
|
325
|
+
<div class="row" style="margin-top: 2%" v-if="model.type ==='系统气价'">
|
|
326
|
+
<div class="col-sm-4 flex-row">
|
|
327
|
+
<label class="control-label">调价原因</label>
|
|
328
|
+
<v-select :value.sync="newinfo.f_comments" v-model="newinfo.f_comments"
|
|
329
|
+
placeholder='调价原因' :options="adjustpricereasons" :value-single="true"
|
|
330
|
+
close-on-select vkk-ref:type>
|
|
331
|
+
</v-select>
|
|
332
|
+
</div>
|
|
333
|
+
</div>
|
|
334
|
+
<div class="row" style="margin-top: 2%" v-if="model.type ==='系统气价'">
|
|
335
|
+
<div class="col-sm-12 flex-row" >
|
|
336
|
+
<label class="control-label">备注</label>
|
|
337
|
+
<input type="text" class="input_search" style="width:80%" v-model="newinfo.f_other_comments" placeholder='备注' >
|
|
338
|
+
</div>
|
|
339
|
+
</div>
|
|
340
|
+
</div>
|
|
341
|
+
</div>
|
|
342
|
+
|
|
343
|
+
<upload :blodid="row.f_userinfo_id" v-if="config.showupload" isremark="true" fusetype="单户调价"></upload>
|
|
344
|
+
</article>
|
|
345
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
346
|
+
<button class="button_search" :disabled='!$m.valid ' @click="modifyUser">确定</button>
|
|
347
|
+
<button type="button" class="button_clear" @click='close'>取消</button>
|
|
348
|
+
</footer>
|
|
349
|
+
|
|
350
|
+
</modal>
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
<modal :backdrop="false" :show.sync="showPopUps" v-if="showPopUps" width="1000px">
|
|
354
|
+
<header class="modal-header" slot="modal-header">
|
|
355
|
+
<button @click="showPopUps=!showPopUps" class="close" type="button"><span>×</span></button>
|
|
356
|
+
<h4 class="modal-title">历史记录</h4>
|
|
357
|
+
</header>
|
|
358
|
+
<article class="modal-body" slot="modal-body" style="height:100%;width:100%" title="历史记录">
|
|
359
|
+
<user-price-change-history :row="row" :show.sync="showPopUps" v-on:toggle="close"></user-price-change-history>
|
|
360
|
+
</article>
|
|
361
|
+
<footer class="modal-footer" slot="modal-footer">
|
|
362
|
+
|
|
363
|
+
</footer>
|
|
364
|
+
</modal>
|
|
365
|
+
</validator>
|
|
366
|
+
|
|
367
|
+
</div>
|
|
368
|
+
|
|
369
|
+
</template>
|
|
370
|
+
|
|
371
|
+
<script>
|
|
372
|
+
import {PagedList} from 'vue-client'
|
|
373
|
+
import Vue from 'vue'
|
|
374
|
+
|
|
375
|
+
let loadParamGem = async function (self) {
|
|
376
|
+
if (!self.f_filialeid) {
|
|
377
|
+
self.f_filialeid = self.$login.f.orgid
|
|
378
|
+
}
|
|
379
|
+
await self.$LoadParams.loadParam(self.f_filialeid)
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export default {
|
|
383
|
+
title: '单户调价',
|
|
384
|
+
data () {
|
|
385
|
+
return {
|
|
386
|
+
model: new PagedList('api/af-revenue/sql/sale_getUserPrice', 30, {orderitem: '"f_userinfo_id DESC"'}),
|
|
387
|
+
row: null, // 选择一条客户信息,对其进行修改
|
|
388
|
+
rows: [], // 客户档案选择一条时,将只显示一条信息,rows用来存放整页的数据
|
|
389
|
+
orderDefault: 'f_createfile_date desc',
|
|
390
|
+
orderFields: {
|
|
391
|
+
f_userinfo_id: 'no'
|
|
392
|
+
},
|
|
393
|
+
config: {
|
|
394
|
+
showupload: true
|
|
395
|
+
},
|
|
396
|
+
detailprice: [],
|
|
397
|
+
newinfo: {
|
|
398
|
+
f_user_type: '',
|
|
399
|
+
f_gasproperties: '',
|
|
400
|
+
pricetype: '',
|
|
401
|
+
pricename: '',
|
|
402
|
+
f_comments: '',
|
|
403
|
+
f_perform_date: this.$login.toStandardDateString() + ' 00:00:00' // 操作时间
|
|
404
|
+
},
|
|
405
|
+
preformdate: this.$login.toStandardDateString() + ' 00:00:00',
|
|
406
|
+
showPerformDate: false,
|
|
407
|
+
show: false,
|
|
408
|
+
showPopUps: false,
|
|
409
|
+
curorgid: [this.$login.f.orgid],
|
|
410
|
+
f_filialeid: this.$login.f.orgid,
|
|
411
|
+
criteriaShow: false,
|
|
412
|
+
valid: false,
|
|
413
|
+
pricetype: [{label: '固定气价', value: '固定气价'}, {label: '阶梯气价', value: '阶梯气价'}],
|
|
414
|
+
gasproperties: [],
|
|
415
|
+
gasproperties2: this.$appdata.getParam('用气性质') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')] : [],
|
|
416
|
+
usertypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
|
|
417
|
+
pricetypes: this.$appdata.getParam('气价类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')] : [],
|
|
418
|
+
adjustpricereasons: this.$appdata.getParam('批量调价原因')
|
|
419
|
+
// userstates: [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
methods: {
|
|
423
|
+
userTypeChange () {
|
|
424
|
+
this.gasproperties = []
|
|
425
|
+
if (this.newinfo.f_user_type.length === 1) {
|
|
426
|
+
this.gasproperties = this.$appdata.getParam(this.newinfo.f_user_type[0])
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
|
|
430
|
+
hidden () {
|
|
431
|
+
this.criteriaShow = !this.criteriaShow
|
|
432
|
+
},
|
|
433
|
+
search () {
|
|
434
|
+
this.$refs.paged.$refs.criteria.search()
|
|
435
|
+
},
|
|
436
|
+
priceshow (row) {
|
|
437
|
+
this.show = true
|
|
438
|
+
this.showPerformDate = (row.f_calculation == '表端结算')
|
|
439
|
+
this.row = row
|
|
440
|
+
},
|
|
441
|
+
lookOver (row) {
|
|
442
|
+
this.showPopUps = true
|
|
443
|
+
this.row = row
|
|
444
|
+
},
|
|
445
|
+
getPricenames () {
|
|
446
|
+
console.log('气价。,。。', this.newinfo.pricetype, this.newinfo.f_user_type, this.newinfo.f_gasproperties)
|
|
447
|
+
let rs = []
|
|
448
|
+
if (this.newinfo.f_user_type.length === 1 && this.newinfo.f_gasproperties.length === 1 && this.newinfo.pricetype.length === 1) {
|
|
449
|
+
let params = {
|
|
450
|
+
f_user_type: this.newinfo.f_user_type[0],
|
|
451
|
+
f_gasproperties: this.newinfo.f_gasproperties[0],
|
|
452
|
+
f_price_type: this.newinfo.pricetype[0],
|
|
453
|
+
filter: this.f_filialeid
|
|
454
|
+
}
|
|
455
|
+
rs = this.$GetSaleParam.getPriceAll(params)
|
|
456
|
+
}
|
|
457
|
+
if (rs.length === 0) {
|
|
458
|
+
this.newinfo.f_price_name = ''
|
|
459
|
+
}
|
|
460
|
+
return rs
|
|
461
|
+
},
|
|
462
|
+
priceChange (val) {
|
|
463
|
+
if (val && val.length > 0) {
|
|
464
|
+
// 展示气价备注
|
|
465
|
+
this.$set('newinfo.f_price_comments', val[0].f_comments ? val[0].f_comments : '无')
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
close () {
|
|
469
|
+
this.showPerformDate = false
|
|
470
|
+
this.show = false
|
|
471
|
+
this.row = null
|
|
472
|
+
this.newinfo = {
|
|
473
|
+
f_user_type: '',
|
|
474
|
+
f_gasproperties: '',
|
|
475
|
+
pricetype: '',
|
|
476
|
+
pricename: ''
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
async modifyUser () {
|
|
480
|
+
if (this.model.type === '系统气价') {
|
|
481
|
+
let param = {
|
|
482
|
+
f_userinfo_id: this.row.f_userinfo_id,
|
|
483
|
+
f_userfiles_id: this.row.f_userfiles_id,
|
|
484
|
+
f_user_id: this.row.f_user_id,
|
|
485
|
+
f_user_name: this.row.f_user_name,
|
|
486
|
+
f_user_type: this.newinfo.f_user_type[0],
|
|
487
|
+
f_gasproperties: this.newinfo.f_gasproperties[0],
|
|
488
|
+
f_price_type: this.newinfo.pricetype[0],
|
|
489
|
+
f_price_id: this.newinfo.pricename[0].f_price_id,
|
|
490
|
+
f_filialeid: this.f_filialeid,
|
|
491
|
+
f_operator: this.$login.f.name,
|
|
492
|
+
f_operatorid: this.$login.f.id,
|
|
493
|
+
f_orgid: this.$login.f.orgid,
|
|
494
|
+
f_orgname: this.$login.f.orgs,
|
|
495
|
+
f_depid: this.$login.f.depids,
|
|
496
|
+
f_depname: this.$login.f.deps,
|
|
497
|
+
f_perform_date: this.row.f_perform_date,
|
|
498
|
+
f_change_reason: this.newinfo.f_comments,
|
|
499
|
+
f_comments: this.newinfo.f_other_comments ? this.newinfo.f_comments + ':' + this.newinfo.f_other_comments : this.newinfo.f_comments
|
|
500
|
+
}
|
|
501
|
+
await this.$resetpost('api/af-revenue/logic/user_pricechange', {data: param}, {resolveMsg: '更新成功', rejectMsg: '更新失败'}).then(() => {
|
|
502
|
+
this.criteriaShow = false
|
|
503
|
+
this.close()
|
|
504
|
+
this.search()
|
|
505
|
+
})
|
|
506
|
+
} else if (this.model.type === '自定义气价') {
|
|
507
|
+
let data = {
|
|
508
|
+
f_userinfo_id: this.row.f_userinfo_id,
|
|
509
|
+
f_userfiles_id: this.row.f_userfiles_id,
|
|
510
|
+
f_user_id: this.row.f_user_id,
|
|
511
|
+
f_user_name: this.row.f_user_name,
|
|
512
|
+
f_price_type: this.newinfo.f_price_type,
|
|
513
|
+
f_price_name: this.newinfo.f_price_name,
|
|
514
|
+
f_user_type: this.row.f_user_type,
|
|
515
|
+
f_gasproperties: this.row.f_gasproperties,
|
|
516
|
+
f_perform_date: '2021-01-01 00:00:00',
|
|
517
|
+
f_perform_date_change: this.row.f_perform_date,
|
|
518
|
+
f_end_date: '2099-12-31 23:59:59',
|
|
519
|
+
f_islow_income: 0,
|
|
520
|
+
f_limit_cycle: 0,
|
|
521
|
+
f_limit_gas: 0,
|
|
522
|
+
f_stairmonths: null,
|
|
523
|
+
f_population_base: null,
|
|
524
|
+
f_stair_start_date: null,
|
|
525
|
+
f_isheat: 0,
|
|
526
|
+
f_deduction_way: 'cycle',
|
|
527
|
+
f_heat_start_date: null,
|
|
528
|
+
f_heat_cycle: null,
|
|
529
|
+
f_priority: 100,
|
|
530
|
+
f_comments: this.newinfo.f_other_comments ? this.newinfo.f_other_comments : this.newinfo.f_comments,
|
|
531
|
+
f_state: '有效',
|
|
532
|
+
f_filialeid: this.f_filialeid,
|
|
533
|
+
f_operator: this.$login.f.name,
|
|
534
|
+
f_operatorid: this.$login.f.id,
|
|
535
|
+
f_orgid: this.$login.f.orgid,
|
|
536
|
+
f_orgname: this.$login.f.orgs,
|
|
537
|
+
f_depid: this.$login.f.depids,
|
|
538
|
+
f_depname: this.$login.f.deps,
|
|
539
|
+
userid: this.$login.f.id,
|
|
540
|
+
audit: false,
|
|
541
|
+
type: '添加',
|
|
542
|
+
detailprice: this.detailprice,
|
|
543
|
+
f_custom: '自定义气价'
|
|
544
|
+
}
|
|
545
|
+
if (this.newinfo.f_price_type === '阶梯气价') {
|
|
546
|
+
data.f_stairmonths = this.newinfo.f_stairmonths
|
|
547
|
+
data.f_population_base = 0
|
|
548
|
+
data.f_stair_start_date = this.newinfo.f_stair_start_date
|
|
549
|
+
}
|
|
550
|
+
if (data.f_price_type === '固定气价') {
|
|
551
|
+
if (data.detailprice[0].id) {
|
|
552
|
+
delete data.detailprice[0].id
|
|
553
|
+
}
|
|
554
|
+
data.detailprice[0].f_price_name = 1
|
|
555
|
+
} else if (data.f_price_type === '阶梯气价') {
|
|
556
|
+
data.detailprice.forEach((item, index) => {
|
|
557
|
+
data.detailprice[index].f_price_name = index + 1
|
|
558
|
+
if (data.detailprice[index].id) {
|
|
559
|
+
if (delete data.detailprice[index].id) {
|
|
560
|
+
delete data.detailprice[index].id
|
|
561
|
+
}
|
|
562
|
+
} else if (data.detailprice[index].f_ratio) {
|
|
563
|
+
data.detailprice[index].f_ratio = null
|
|
564
|
+
} else if (!data.detailprice[index].f_add_gas) {
|
|
565
|
+
data.detailprice[index].f_add_gas = 0
|
|
566
|
+
} else if (!data.detailprice[index].f_add_gas_heat) {
|
|
567
|
+
data.detailprice[index].f_add_gas_heat = 0
|
|
568
|
+
}
|
|
569
|
+
})
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
this.$resetpost('api/af-revenue/logic/customprice', {data: data}, {resolveMsg: '更新成功', rejectMsg: '更新失败'}).then(() => {
|
|
573
|
+
this.criteriaShow = false
|
|
574
|
+
this.close()
|
|
575
|
+
this.search()
|
|
576
|
+
})
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
clean () {
|
|
580
|
+
this.row = null
|
|
581
|
+
this.areainfo = null
|
|
582
|
+
this.$refs.paged.$refs.grid.select(null)
|
|
583
|
+
this.$refs.paged.$refs.grid.model.rows = this.rows
|
|
584
|
+
},
|
|
585
|
+
|
|
586
|
+
selfSearch (args) {
|
|
587
|
+
console.log('开始查询档案', this.f_filialeid)
|
|
588
|
+
if (this.f_filialeid && this.f_filialeid !== '') {
|
|
589
|
+
args.condition = `${args.condition} and f_filialeid = '${this.f_filialeid}'`
|
|
590
|
+
} else {
|
|
591
|
+
args.condition = `${args.condition} and f_filialeid = '${this.$login.f.orgid}'`
|
|
592
|
+
}
|
|
593
|
+
this.criteriaShow = false
|
|
594
|
+
this.$refs.paged.$refs.grid.$el.scrollTop = 0
|
|
595
|
+
this.model.search(args.condition, args.model)
|
|
596
|
+
this.clean()
|
|
597
|
+
},
|
|
598
|
+
sort (field, rule) {
|
|
599
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
|
600
|
+
for (let key in this.orderFields) {
|
|
601
|
+
if (key === field) {
|
|
602
|
+
this.orderFields[key] = rule
|
|
603
|
+
} else {
|
|
604
|
+
this.orderFields[key] = 'no'
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
// 如果新规则不排序,还原为默认排序
|
|
608
|
+
if (rule === 'no') {
|
|
609
|
+
this.model.paramSource.orderitem = `'${this.orderDefault}'`
|
|
610
|
+
} else {
|
|
611
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
this.search()
|
|
615
|
+
},
|
|
616
|
+
|
|
617
|
+
clear () {
|
|
618
|
+
Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
|
|
619
|
+
this.$refs.paged.$refs.criteria.model[key] = []
|
|
620
|
+
})
|
|
621
|
+
},
|
|
622
|
+
getorg (val) {
|
|
623
|
+
this.f_filialeid = val[0]
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
ready () {
|
|
627
|
+
// this.search()
|
|
628
|
+
},
|
|
629
|
+
watch: {
|
|
630
|
+
// 每次查询将查询到的数据存储起来,供选择操作后的替换
|
|
631
|
+
'model.state' (val) {
|
|
632
|
+
if (val === '正确') {
|
|
633
|
+
this.rows = this.model.rows
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
'newinfo.f_price_type' (val) {
|
|
637
|
+
if (val === '固定气价') {
|
|
638
|
+
this.detailprice = []
|
|
639
|
+
} else if (val === '阶梯气价') {
|
|
640
|
+
this.detailprice = [{f_gas: '', f_price: '', f_add_gas: 0, f_add_gas_heat: 0}]
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
'show' (val) {
|
|
644
|
+
if (!val) {
|
|
645
|
+
this.newinfo = {
|
|
646
|
+
f_user_type: '',
|
|
647
|
+
f_gasproperties: '',
|
|
648
|
+
pricetype: '',
|
|
649
|
+
pricename: ''
|
|
650
|
+
}
|
|
651
|
+
this.row = null
|
|
652
|
+
} else {
|
|
653
|
+
this.newinfo = {
|
|
654
|
+
f_user_type: [this.row.f_user_type],
|
|
655
|
+
f_gasproperties: [this.row.f_gasproperties],
|
|
656
|
+
pricetype: [this.row.f_price_type],
|
|
657
|
+
pricename: ''
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
'f_filialeid' (val) {
|
|
662
|
+
loadParamGem(this)
|
|
663
|
+
},
|
|
664
|
+
async 'newinfo.pricename' () {
|
|
665
|
+
if (this.newinfo.pricename == null || !(this.newinfo.pricename instanceof Array) || this.newinfo.pricename.length == 0) return
|
|
666
|
+
let qij = await this.$resetpost('api/af-revenue/sql/saleSingleTable', {
|
|
667
|
+
data: {
|
|
668
|
+
tablename: 't_stairprice',
|
|
669
|
+
condition: ` f_price_id = ${this.newinfo.pricename[0].f_price_id} and getDate()>= f_perform_date and getDate()<f_end_date `
|
|
670
|
+
}
|
|
671
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
672
|
+
if (qij.data && qij.data.length > 0) {
|
|
673
|
+
this.preformdate = qij.data[0].f_perform_date
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
</script>
|
|
679
|
+
<style scoped>
|
|
680
|
+
|
|
681
|
+
.datapanel {
|
|
682
|
+
color: #333;
|
|
683
|
+
background-color: white;
|
|
684
|
+
box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
|
|
685
|
+
padding: 10px 30px 10px 30px;
|
|
686
|
+
height: auto;
|
|
687
|
+
border-radius:15px;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
</style>
|
package/src/filiale/xihu/sale.js
CHANGED
|
@@ -35,6 +35,8 @@ export default function () {
|
|
|
35
35
|
Vue.component('meter-operate-maintain', (resolve) => { require(['./MeterOperatemain'], resolve) })
|
|
36
36
|
Vue.component('user-base-info-new', (resolve) => { require(['./UserBaseInfoNew'], resolve) }) // 清零
|
|
37
37
|
Vue.component('reset-meter', (resolve) => { require(['./ResetMeter'], resolve) })
|
|
38
|
-
|
|
38
|
+
// 掉气补气
|
|
39
39
|
Vue.component('off-gas-add-gas', (resolve) => { require(['./OffGasAddGas'], resolve) })
|
|
40
|
+
// 调价
|
|
41
|
+
Vue.component('user-pricechange-manage', (resolve) => { require(['./UserPriceChangeManage'], resolve) })
|
|
40
42
|
}
|