sale-client 4.2.143 → 4.2.144

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.
Files changed (56) hide show
  1. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  2. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  3. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  4. package/.gradle/vcs-1/gc.properties +0 -0
  5. package/.project +6 -0
  6. package/build/dev-server.js +27 -19
  7. package/hs_err_pid255736.log +796 -0
  8. package/package.json +1 -1
  9. package/src/components/FilesManage/addressts/FileUserFilests.vue +671 -0
  10. package/src/components/FilesManage/ncUserinfoList.vue +315 -0
  11. package/src/components/SellGasCharge/MeterCharge/CardDataRewrite.vue +107 -0
  12. package/src/components/SendCard/SendCardData.vue +208 -0
  13. package/src/components/accounts/accountAdd.vue +276 -0
  14. package/src/components/accounts/accountsList.vue +183 -0
  15. package/src/components/accounts/accountsManage.vue +87 -0
  16. package/src/components/common/chargeinfo/chargeinfo.vue +55 -0
  17. package/src/components/common/userinfo_detail/config/exportConfig.js +85 -0
  18. package/src/components/ncarchives/ncArchivesAdd.vue +468 -0
  19. package/src/components/ncarchives/ncArchivesList.vue +159 -0
  20. package/src/components/ncarchives/ncUserfilesList.vue +373 -0
  21. package/src/components/ncarchives/ncarchivesmanage.vue +80 -0
  22. package/src/components/revenue/IOTArrears/arrears.vue +323 -0
  23. package/src/components/revenue/IOTArrears/iotRechargeAudit.vue +369 -0
  24. package/src/components/revenue/base/CardServer/ReadCard.vue +98 -98
  25. package/src/components/revenue/base/rightview/carddetail/cardiotfeeChangeDetail.vue +59 -0
  26. package/src/components/revenue/base/rightview/carddetail/reduceChangeDetail.vue +59 -0
  27. package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchCancellationts.vue +73 -0
  28. package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchEnablets.vue +73 -0
  29. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/ReduceAddGas.vue +199 -0
  30. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionManage.vue +24 -0
  31. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionYSManage.vue +24 -0
  32. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeDeduction.vue +185 -0
  33. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeYSDeduction.vue +185 -0
  34. package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeFlowMeter.vue +356 -0
  35. package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/CorrectionMeter.vue +148 -0
  36. package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackUserList.vue +136 -0
  37. package/src/components/revenue/recordMainten/sellinggas/AddWarehousemain.vue +65 -0
  38. package/src/components/revenue/recordMainten/sellinggas/MeterOperateAdd.vue +483 -0
  39. package/src/components/revenue/recordMainten/sellinggas/MeterOperatemain.vue +279 -0
  40. package/src/components/revenue/recordMainten/sellinggas/MeterOperatemainImport.vue +265 -0
  41. package/src/components/thirdapply/thirdAdd.vue +289 -0
  42. package/src/components/thirdapply/thirdList.vue +162 -0
  43. package/src/components/thirdapply/thirdManage.vue +74 -0
  44. package/src/components/webMeter/InstructQuery.vue +414 -0
  45. package/src/components/webMeter/ParamSet/ParamSet.vue +556 -0
  46. package/src/components/webMeter/ParamSet/ParamSetForm.vue +296 -0
  47. package/src/components/webMeter/WebUserHand.vue +483 -0
  48. package/src/components/webMeter/instructionView/NewQueryInstruct.vue +509 -0
  49. package/src/components/webMeter/instructionView/NewQueryInstructMain.vue +48 -0
  50. package/src/components/webMeter/webManage/NewMeterList.vue +461 -0
  51. package/src/filiale/yuncheng/ChangeMeter.vue +1149 -1149
  52. package/src/filiale/yuncheng/FileManageService.js +469 -469
  53. package/src/filiale/yuncheng/ParamSetForm.vue +55 -13
  54. package/src/main.js +1 -1
  55. package/src/plugins/FileManageServicets.js +214 -0
  56. package/src/plugins/GetImg.js +53 -0
@@ -0,0 +1,59 @@
1
+ <template>
2
+ <div class="auto">
3
+ <partial-view v-ref:pv>
4
+ <div class="row">
5
+ <label class = "col-sm-4">客户名称:</label>
6
+ <span class = "col-sm-6">{{model.f_user_name}}</span>
7
+ </div>
8
+ <div class="row">
9
+ <label class = "col-sm-4">补气量</label>
10
+ <span class = "col-sm-2" style="text-align:left">{{model.f_pregas}}</span>
11
+ </div>
12
+ <div class="row">
13
+ <label class = "col-sm-4">备注:</label>
14
+ <span class = "col-sm-8" style="text-align:left">{{model.f_comments}}</span>
15
+ </div>
16
+ <div class="row">
17
+ <label class = "col-sm-4">操作人:</label>
18
+ <span class = "col-sm-8" style="text-align:left">{{model.f_operator}}</span>
19
+ </div>
20
+ <div class="row">
21
+ <label class = "col-sm-4">操作时间:</label>
22
+ <span class = "col-sm-8" style="text-align:left">{{data.f_operate_date}}</span>
23
+ </div>
24
+ </partial-view>
25
+ </div>
26
+ </template>
27
+
28
+ <script>
29
+ export default {
30
+ title: '超用收费详情',
31
+ props: ['data'],
32
+ data () {
33
+ return {
34
+ model: {}
35
+ }
36
+ },
37
+ ready () {
38
+ let sql = 'singleTable_OrderBy'
39
+ let params = {
40
+ items: 'f_user_name, f_pregas, f_preamount, f_comments, f_operator, f_operate_date',
41
+ tablename: 't_sellinggas',
42
+ condition: 'id = ' + this.data.id,
43
+ orderitem: 'id'
44
+ }
45
+ this.$info(`加载数据中..., sql:${sql}`)
46
+ console.log("我走的这里啊")
47
+ this.$refs.pv.load('rs/logic/getOneData', {data: {sql: sql, params: params}}).then((a) => {
48
+ this.$info(`成功获取到数据!, data:${JSON.stringify(a.data)}`)
49
+ this.model = a.data
50
+ }).catch((error) => {
51
+ if (error.status) {
52
+ this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
53
+ return
54
+ }
55
+ throw error
56
+ })
57
+ }
58
+ }
59
+ </script>
@@ -0,0 +1,73 @@
1
+ <template>
2
+ <div class="auto">
3
+ <validator name='v'>
4
+ <form class="form-horizontal">
5
+ <p class="bg-info text-center" style="padding: 8px;">销户信息</p>
6
+ <div class="row" style="margin-top:10px;">
7
+ <span class="col-sm-2 col-sm-offset-1"><strong>已选中户数: {{model.count}}</strong></span>
8
+ </div>
9
+ <div class="row" style="margin-top:10px;">
10
+ <div :class="[$v.f_reason.required ? 'has-error' : 'has-success']">
11
+ <label for="f_reason" class=" font_normal_body">销户原因</label>
12
+ <input class="input_search" style="width:80%" v-model="model.f_reason" v-validate:f_reason='{required: true }' rows="3" placeholder="请填写原因">
13
+ </div>
14
+ </div>
15
+ </form>
16
+ <div style="text-align:right;height:auto;margin-top:30px;margin-right:50px;">
17
+ <button class="button_search" @click="confirm()" :disabled='!$v.valid'>确认</button>
18
+ <button class="button_clear" @click="clean()">取消</button>
19
+ </div>
20
+ </validator>
21
+ </div>
22
+ </template>
23
+ <script>
24
+ /**
25
+ *综合业务
26
+ 表具停用组件
27
+ */
28
+ export default {
29
+ title: '批量销户',
30
+ data () {
31
+ return {
32
+ model: {
33
+ count: 0,
34
+ discount: 0,
35
+ f_reason: '',
36
+ userinfo: {}
37
+ }
38
+ }
39
+ },
40
+ props: ['useraccount'],
41
+ ready () {
42
+ this.useraccount.forEach((item) => {
43
+ if (item.f_user_state === '正常') {
44
+ this.model.count = this.model.count + 1
45
+ this.model.userinfo = item
46
+ } else if (item.f_user_state = '销户') {
47
+ this.model.discount = this.model.discount + 1
48
+ }
49
+ })
50
+ },
51
+ methods: {
52
+ confirm () {
53
+ this.model.f_reality_count = this.model.count
54
+ this.$FileService.batchOperatets(this.model, '销户').then((res) => {
55
+ this.$dispatch('success')
56
+ }).catch((error) => {
57
+ if (error.state === 603) {
58
+ this.$error('重复提交')
59
+ return
60
+ }
61
+ this.$dispatch('error', '批量销户', this.row, error)
62
+ })
63
+ },
64
+ clean () {
65
+ this.$info('取消操作')
66
+ this.$dispatch('clean', '批量销户', this.row)
67
+ }
68
+ }
69
+ }
70
+ </script>
71
+
72
+ <style>
73
+ </style>
@@ -0,0 +1,73 @@
1
+ <template>
2
+ <div class="auto">
3
+ <validator name='v'>
4
+ <form class="form-horizontal">
5
+ <p class="bg-info text-center" style="padding: 8px;">启用信息</p>
6
+ <div class="row" style="margin-top:10px;">
7
+ <span class="col-sm-2 col-sm-offset-1"><strong>已选中户数: {{model.discount}}</strong></span>
8
+ </div>
9
+ <div class="row" style="margin-top:10px;">
10
+ <div :class="[$v.f_reason.required ? 'has-error' : 'has-success']">
11
+ <label for="f_reason" class=" font_normal_body">启用原因:</label>
12
+ <input class="input_search" style="width:80%" v-model="model.f_reason" v-validate:f_reason='{required: true }' rows="3" placeholder="请填写原因">
13
+ </div>
14
+ </div>
15
+ </form>
16
+ <div style="text-align:right;height:auto;margin-top:30px;margin-right:50px;">
17
+ <button class="button_search" @click="confirm()" :disabled='!$v.valid'>确认</button>
18
+ <button class="button_clear" @click="clean()">取消</button>
19
+ </div>
20
+ </validator>
21
+ </div>
22
+ </template>
23
+ <script>
24
+ /**
25
+ *综合业务
26
+ 表具停用组件
27
+ */
28
+ export default {
29
+ title: '批量启用',
30
+ data () {
31
+ return {
32
+ model: {
33
+ count: 0,
34
+ discount: 0,
35
+ f_reason: '',
36
+ userinfo: {}
37
+ }
38
+ }
39
+ },
40
+ props: ['useraccount'],
41
+ ready () {
42
+ this.useraccount.forEach((item) => {
43
+ if (item.f_user_state === '正常') {
44
+ this.model.count = this.model.count + 1
45
+ } else if (item.f_user_state = '销户') {
46
+ this.model.discount = this.model.discount + 1
47
+ this.model.userinfo = item
48
+ }
49
+ })
50
+ },
51
+ methods: {
52
+ confirm () {
53
+ this.model.f_reality_count = this.model.discount
54
+ this.$FileService.batchOperatets(this.model, '启用').then((res) => {
55
+ this.$dispatch('success')
56
+ }).catch((error) => {
57
+ if (error.state === 603) {
58
+ this.$error('重复提交')
59
+ return
60
+ }
61
+ this.$dispatch('error', '批量启用', this.useraccount, error)
62
+ })
63
+ },
64
+ clean () {
65
+ this.$info('取消操作')
66
+ this.$dispatch('clean', '批量启用', this.row)
67
+ }
68
+ }
69
+ }
70
+ </script>
71
+
72
+ <style>
73
+ </style>
@@ -0,0 +1,199 @@
1
+ <template>
2
+ <div class="auto">
3
+ <validator name='v'>
4
+ <form novalidate class="form-horizontal">
5
+ <div class="row">
6
+ <!-- <div class="col-sm-4 form-group" :class="[$v.f_payment.required ? 'has-error' : '']">-->
7
+ <!-- <label class=" font_normal_body">付款方式</label>-->
8
+ <!-- <input type="text" v-show="false" v-model="model.f_payment" v-validate:f_payment='{required: true }'>-->
9
+ <!-- <v-select v-model="f_payment"-->
10
+ <!-- placeholder='请选择'-->
11
+ <!-- :value.sync="model.f_payment"-->
12
+ <!-- :options='paytype' clear-button v-ref:payment></v-select>-->
13
+ <!-- </div>-->
14
+ <div class="col-sm-4 form-group">
15
+ <label for="f_print" class="font_normal_body">打印格式</label>
16
+ <input type="text" v-show="false" v-model="model.f_print" v-validate:printstyle='{required: true }'>
17
+ <v-select id="print"
18
+ v-model="f_print"
19
+ placeholder='请选择'
20
+ :multiple="mulPrint"
21
+ :value.sync="model.f_print"
22
+ :options='printstyle'
23
+ close-on-select clear-button v-ref:printstyle>
24
+ </v-select>
25
+ </div>
26
+ <div class="col-sm-4 form-group">
27
+ <label class="font_normal_body">操作类型</label>
28
+ <input v-show="false" v-model="model.f_operat_type"
29
+ v-validate:f_operat_type='{required: true}'>
30
+ <v-select :value.sync="model.f_operat_type"
31
+ :options='operator_type' placeholder='请选择'
32
+
33
+ :value-single="true"
34
+ style="width:60%"
35
+ close-on-select></v-select>
36
+ </div>
37
+ <div class="col-sm-4 form-group" v-if="model.f_operat_type!=='涨价补费'"
38
+ :class="[$v.f_pregas.required || $v.f_pregas.dctest ? 'has-error' : 'has-success']">
39
+ <label class="font_normal_body">扣补气量</label>
40
+ <input class="input_search" type="number" v-model="model.f_pregas" style="width:60%"
41
+ v-validate:f_pregas='{required: true, f_pregas: [0, ">" ]}' placeholder="气量">
42
+ </div>
43
+ </div>
44
+
45
+ <div class="row">
46
+ <div class="col-sm-12">
47
+ <label for="f_paper_account" class="font_normal_body ">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
48
+ <input class="input_search" style="width:86%" rows="1" v-model="model.f_comments"></input>
49
+ </div>
50
+ </div>
51
+ </form>
52
+ <div style="text-align:right;margin-top: 46px;">
53
+ <button class="btn button_search" @click="confirm()" :disabled='!$v.valid'>确认</button>
54
+ <button class="btn button_clear" @click="clean()">取消</button>
55
+ </div>
56
+ </validator>
57
+ <div class="alert alert-warning" role="alert" style="color:darkred">
58
+ <dl>
59
+ <dt style="font-size:18px;line-height: 30px;"><span class="glyphicon glyphicon-alert"></span>&nbsp;&nbsp;&nbsp;降价补气使用情景:</dt>
60
+ <dd style="line-height:30px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1. 此功能仅针对卡表</dd>
61
+ <dd style="line-height:30px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2. 该操作会进行写卡操作,不需进行收费!</dd>
62
+ <dd style="line-height:30px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3. 使用场景为因气价价格下调,需要给用户补气的情况!</dd>
63
+ </dl>
64
+ </div>
65
+ <!--<validate-bill v-if="hasValidateBill" :data="model" @validate-bill="validateBill"></validate-bill>-->
66
+ <!--<print-bill :show="print" :bill-manager='config.hasBillManage' v-ref:printbill :bill-url='billUrl' v-on:toggle="clean" @printok="printok" :data='printModel'></print-bill>-->
67
+ <!--<print-bill :show="print" :bill-config='config' :bill-data='billData' v-on:toggle="clean" @printok="printok" :data='printModel' v-ref:printbill></print-bill>-->
68
+ <print-bill :show="print" :bill-config='config' :bill-data='billData' :data='data' @toggle="close" @printok="printok" v-ref:printbill></print-bill>
69
+ </div>
70
+ <upload :blodid="blodid" v-if="false" isremark="true" fusetype="降价补气"></upload>
71
+ </template>
72
+
73
+
74
+ <script>
75
+
76
+
77
+
78
+ import Vue from "vue";
79
+
80
+ // let asyncCardMeterCenter = async function(self){
81
+ // await self.$getConfig(self,'icfeeDeduction')
82
+ // }
83
+
84
+ export default {
85
+ title: '降价补气',
86
+ data () {
87
+ return {
88
+ paytype: this.$appdata.getParam('付款方式'),
89
+ printstyle: this.$appdata.getParam('打印格式'),
90
+ blodid: '',
91
+ showupload:false,
92
+ operator_type:[{label:'降价补气',value:'降价补气'}],
93
+ config: {
94
+ hasPrint : true, //默认打票
95
+ hasBillManage : false
96
+ },
97
+ print: false,
98
+ billData: {
99
+ url: 'rs/report/overuse_bill',
100
+ billnumber: ''
101
+ },
102
+ data:{},
103
+ model: {
104
+ f_operat_type: '降价补气',
105
+ f_pregas:0,
106
+ f_preamount:0,
107
+ f_payment: [''],
108
+ f_comments: '',
109
+ f_print:['普通收据']
110
+ }
111
+
112
+ }
113
+ },
114
+ props: ['row','cardData'],
115
+
116
+ ready () {
117
+ this.row.cardInfo = this.cardData
118
+ this.data = this.row
119
+
120
+ },
121
+ methods: {
122
+ close() {
123
+ this.print = false
124
+ this.clean()
125
+ },
126
+ confirm () {
127
+ this.pushdata();
128
+ },
129
+ printok () {
130
+ // 收据打完,判断是否还有其他票据进行请求
131
+ for (let i = 0; i < this.model.f_print.length; i++) {
132
+ if (this.model.f_print[i] === '电子发票') {
133
+ this.$CommonService.openEticket(this.row.id, '售气收费')
134
+ }
135
+ }
136
+ this.$dispatch('success')
137
+ },
138
+ async pushdata(){
139
+ this.row.cardInfo = this.cardData
140
+ this.data = this.row
141
+ let param = {
142
+ fillmoney:{
143
+ f_payment: this.model.f_payment[0],
144
+ f_print: this.model.f_print[0],
145
+ f_userfiles_id: this.data.f_userfiles_id,
146
+ f_preamount:this.model.f_preamount,
147
+ f_pregas:this.model.f_pregas,
148
+ f_operat_type:this.model.f_operat_type,
149
+ f_type: this.model.f_operat_type,
150
+ f_comments: this.model.f_comments,
151
+ f_operator: Vue.$login.f.name,
152
+ f_operatorid: Vue.$login.f.id,
153
+ f_orgid: Vue.$login.f.orgid,
154
+ f_orgname: Vue.$login.f.orgs,
155
+ f_depid: Vue.$login.f.depids,
156
+ f_depname: Vue.$login.f.deps,
157
+ f_zoneid: Vue.$login.f.zoneid,
158
+ f_zones: Vue.$login.f.zones
159
+ }
160
+ }
161
+ if(this.model.f_operat_type==='降价补气'){
162
+ this.$CardService.reduceaddgas(this.model,this.data,param).then((res)=>{
163
+ console.log(res)
164
+ console.log(JSON.stringify(res))
165
+ if (this.config.hasPrint) {
166
+ if (this.model.f_print[0].indexOf('普通收据') !== -1) {
167
+ if (this.config.hasBillManage) {
168
+ // 启用发票管理,获取票据管理中的票号并存储记录
169
+ this.data.id = res
170
+ this.data.f_bill_type = '降价补气'
171
+ this.data.f_bill_style = this.model.f_print[0]
172
+ this.print = true
173
+ } else {
174
+ this.data.id = res
175
+ this.print = true
176
+ }
177
+ }
178
+ } else {
179
+ // this.clean();
180
+ this.$dispatch('success')
181
+ }
182
+ })
183
+ }
184
+
185
+
186
+ },
187
+ clean () {
188
+ this.$dispatch('refresh')
189
+ }
190
+ // printok () {
191
+ // this.$dispatch('success')
192
+ // },
193
+ // validateBill (val) {
194
+ // this.validateOk = !val.isOk
195
+ // this.billData.bill = val.bill
196
+ // }
197
+ }
198
+ }
199
+ </script>
@@ -0,0 +1,24 @@
1
+ <template>
2
+ <div class="auto">
3
+ <ic-fee-deduction v-if="row.f_meter_type === '气量卡表' ||row.f_meter_type === '机表' || row.f_meter_type === '物联网表' " :data="row"></ic-fee-deduction>
4
+ </div>
5
+ </template>
6
+ <script>
7
+
8
+ import icFeeDeduction from './icfeeDeduction'
9
+
10
+ export default {
11
+ title: '涨价补费',
12
+ components: {
13
+ icFeeDeduction
14
+ },
15
+ data () {
16
+ return {
17
+ }
18
+ },
19
+ props: ['row'],
20
+ ready() {
21
+
22
+ }
23
+ }
24
+ </script>
@@ -0,0 +1,24 @@
1
+ <template>
2
+ <div class="auto">
3
+ <ic-fee-ys-deduction v-if="row.f_meter_type === '气量卡表' ||row.f_meter_type === '机表' " :data="row"></ic-fee-ys-deduction>
4
+ </div>
5
+ </template>
6
+ <script>
7
+
8
+ import icFeeYsDeduction from './icfeeYSDeduction'
9
+
10
+ export default {
11
+ title: '预收款',
12
+ components: {
13
+ icFeeYsDeduction
14
+ },
15
+ data () {
16
+ return {
17
+ }
18
+ },
19
+ props: ['row'],
20
+ ready() {
21
+
22
+ }
23
+ }
24
+ </script>
@@ -0,0 +1,185 @@
1
+ <template>
2
+ <div class="auto">
3
+ <validator name='v'>
4
+ <form novalidate class="form-horizontal">
5
+ <div class="row">
6
+ <div class="col-sm-4 form-group" :class="[$v.f_payment.required ? 'has-error' : '']">
7
+ <label class=" font_normal_body">付款方式</label>
8
+ <input type="text" v-show="false" v-model="model.f_payment" v-validate:f_payment='{required: true }'>
9
+ <v-select v-model="f_payment"
10
+ placeholder='请选择'
11
+ :value.sync="model.f_payment"
12
+ :options='paytype' clear-button v-ref:payment></v-select>
13
+ </div>
14
+ <div class="col-sm-4 form-group">
15
+ <label for="f_print" class="font_normal_body">打印格式</label>
16
+ <input type="text" v-show="false" v-model="model.f_print" v-validate:printstyle='{required: true }'>
17
+ <v-select id="print"
18
+ v-model="f_print"
19
+ placeholder='请选择'
20
+ :multiple="mulPrint"
21
+ :value.sync="model.f_print"
22
+ :options='printstyle'
23
+ close-on-select clear-button v-ref:printstyle>
24
+ </v-select>
25
+ </div>
26
+ <div class="col-sm-4 form-group">
27
+ <label class="font_normal_body">操作类型</label>
28
+ <input v-show="false" v-model="model.f_operat_type"
29
+ v-validate:f_operat_type='{required: true}'>
30
+ <v-select :value.sync="model.f_operat_type"
31
+ :options='operator_type' placeholder='请选择'
32
+ selected="涨价补费"
33
+ style="width:60%"
34
+ close-on-select></v-select>
35
+ </div>
36
+ <div class="col-sm-4 form-group"
37
+ :class="[$v.f_preamount.required || $v.f_preamount.dctest ? 'has-error' : 'has-success']">
38
+ <label class="font_normal_body">补费金额</label>
39
+ <input class="input_search" type="number" v-model="model.f_preamount" style="width:60%"
40
+ v-validate:f_preamount='{required: true, dctest: [0, ">" ]}' placeholder="金额">
41
+ </div>
42
+ </div>
43
+
44
+ <div class="row">
45
+ <div class="col-sm-12">
46
+ <label for="f_paper_account" class="font_normal_body ">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
47
+ <input class="input_search" style="width:86%" rows="1" v-model="model.f_comments"></input>
48
+ </div>
49
+ </div>
50
+ </form>
51
+ <div style="text-align:right;margin-top: 46px;">
52
+ <button class="btn button_search" @click="confirm()" :disabled='!$v.valid'>确认</button>
53
+ <button class="btn button_clear" @click="clean()">取消</button>
54
+ </div>
55
+ </validator>
56
+ <div class="alert alert-warning" role="alert" style="color:darkred">
57
+ <dl>
58
+ <dt style="font-size:18px;line-height: 30px;"><span class="glyphicon glyphicon-alert"></span>&nbsp;&nbsp;&nbsp;涨价补费使用情景:</dt>
59
+ <dd style="line-height:30px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1. 气价价格上调,用户需要补费的情况!</dd>
60
+ <dd style="line-height:30px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1. 此次不进行写卡,需进行收费!</dd>
61
+ </dl>
62
+ </div>
63
+ <!--<validate-bill v-if="hasValidateBill" :data="model" @validate-bill="validateBill"></validate-bill>-->
64
+ <!--<print-bill :show="print" :bill-manager='config.hasBillManage' v-ref:printbill :bill-url='billUrl' v-on:toggle="clean" @printok="printok" :data='printModel'></print-bill>-->
65
+ <!--<print-bill :show="print" :bill-config='config' :bill-data='billData' v-on:toggle="clean" @printok="printok" :data='printModel' v-ref:printbill></print-bill>-->
66
+ <print-bill :show="print" :bill-config='config' :bill-data='billData' :data='data' @toggle="close" @printok="printok" v-ref:printbill></print-bill>
67
+ </div>
68
+ <upload :blodid="blodid" v-if="false" isremark="true" fusetype="涨价补费"></upload>
69
+ </template>
70
+
71
+
72
+ <script>
73
+
74
+
75
+
76
+ import Vue from "vue";
77
+
78
+ // let asyncCardMeterCenter = async function(self){
79
+ // await self.$getConfig(self,'icfeeDeduction')
80
+ // }
81
+
82
+ export default {
83
+ title: '涨价补费',
84
+ data () {
85
+ return {
86
+ paytype: this.$appdata.getParam('付款方式'),
87
+ printstyle: this.$appdata.getParam('打印格式'),
88
+ blodid: '',
89
+ showupload:false,
90
+ operator_type:[{label:'涨价补费',value:'涨价补费'}],
91
+ config: {
92
+ hasPrint : true, //默认打票
93
+ hasBillManage : false
94
+ },
95
+ print: false,
96
+ billData: {
97
+ url: 'rs/report/overuse_bill',
98
+ billnumber: ''
99
+ },
100
+ model: {
101
+ f_operat_type: ['涨价补费'],
102
+ f_pregas:0,
103
+ f_preamount:0,
104
+ f_payment: [''],
105
+ f_comments: '',
106
+ f_print:['普通收据']
107
+ }
108
+
109
+ }
110
+ },
111
+ props: ['data'],
112
+ ready () {
113
+
114
+ },
115
+ methods: {
116
+ close() {
117
+ this.print = false
118
+ this.clean()
119
+ },
120
+ confirm () {
121
+ this.pushdata();
122
+ },
123
+ printok () {
124
+ // 收据打完,判断是否还有其他票据进行请求
125
+ for (let i = 0; i < this.model.f_print.length; i++) {
126
+ if (this.model.f_print[i] === '电子发票') {
127
+ this.$CommonService.openEticket(this.row.id, '售气收费')
128
+ }
129
+ }
130
+ this.$dispatch('success')
131
+ },
132
+ async pushdata(){
133
+ let param = {
134
+ fillmoney:{
135
+ f_payment: this.model.f_payment[0],
136
+ f_print: this.model.f_print[0],
137
+ f_userfiles_id: this.data.f_userfiles_id,
138
+ f_preamount:this.model.f_preamount,
139
+ f_type: this.model.f_operat_type[0],
140
+ f_comments: this.model.f_comments,
141
+ f_operator: Vue.$login.f.name,
142
+ f_operatorid: Vue.$login.f.id,
143
+ f_orgid: Vue.$login.f.orgid,
144
+ f_orgname: Vue.$login.f.orgs,
145
+ f_depid: Vue.$login.f.depids,
146
+ f_depname: Vue.$login.f.deps,
147
+ f_zoneid: Vue.$login.f.zoneid,
148
+ f_zones: Vue.$login.f.zones
149
+ }
150
+ }
151
+ let res = await this.$resetpost('rs/logic/ICfeededuction', {data: param},
152
+ {warnMsg: `确定要对用户${this.data.f_user_name}进行${this.model.f_operat_type}吗?`,
153
+ resolveMsg: `${this.model.f_operat_type}成功!!`, rejectMsg: `${this.model.f_operat_type}失败!!请重试!!`});
154
+ // 开始打票
155
+ if (this.config.hasPrint) {
156
+ if (this.model.f_print[0].indexOf('普通收据') !== -1) {
157
+ if (this.config.hasBillManage) {
158
+ // 启用发票管理,获取票据管理中的票号并存储记录
159
+ this.data.id = res.data.id
160
+ this.data.f_bill_type = '涨价补费'
161
+ this.data.f_bill_style = this.model.f_print[0]
162
+ this.print = true
163
+ } else {
164
+ this.data.id = res.data.id
165
+ this.print = true
166
+ }
167
+ }
168
+ } else {
169
+ // this.clean();
170
+ this.$dispatch('success')
171
+ }
172
+ },
173
+ clean () {
174
+ this.$dispatch('refresh')
175
+ }
176
+ // printok () {
177
+ // this.$dispatch('success')
178
+ // },
179
+ // validateBill (val) {
180
+ // this.validateOk = !val.isOk
181
+ // this.billData.bill = val.bill
182
+ // }
183
+ }
184
+ }
185
+ </script>