sale-client 3.5.288 → 3.5.290
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/build/dev-server.js +4 -1
- package/package.json +1 -1
- package/src/components/charge/gasloss/gasLossManage.vue +0 -3
- package/src/components/charge/gasloss/gasLossOperate.vue +157 -135
- package/src/components/common/userinfo_detail/ic_detail/HandQueryUser.vue +7 -0
- package/src/components/revenue/base/rightview/carddetail/BlacklistDetail.vue +2 -5
- package/src/filiale/gehua/MeterinfoTest.vue +1 -1
- package/src/filiale/qianneng/eticket/EticketRecordList.vue +8 -1
- package/src/filiale/shanxian/FileUserAddress.vue +11 -4
- package/src/filiale/wenxi/GasPriceUser.vue +485 -0
- package/src/filiale/wenxi/sale.js +2 -0
- package/src/filiale/xinkang/ChargeQueryUser.vue +12 -12
- package/src/main.js +1 -1
package/build/dev-server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var path = require('path')
|
|
2
|
-
const [localUrl, serverRul] = ['
|
|
2
|
+
const [localUrl, serverRul] = ['https://qnjtkf.cn:7400/#', 'https://qnjtkf.cn:7400/#']
|
|
3
3
|
var merge = require('webpack-merge')
|
|
4
4
|
var baseConfig = require('./webpack.dev.conf')
|
|
5
5
|
var devConfig = {
|
|
@@ -20,6 +20,9 @@ var devConfig = {
|
|
|
20
20
|
'/rs/file': {
|
|
21
21
|
target: serverRul
|
|
22
22
|
},
|
|
23
|
+
'/invoice': {
|
|
24
|
+
target: serverRul
|
|
25
|
+
},
|
|
23
26
|
// 查找资源服务数据
|
|
24
27
|
'/rs/search': {
|
|
25
28
|
target: serverRul
|
package/package.json
CHANGED
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
</template>
|
|
15
15
|
|
|
16
16
|
<script>
|
|
17
|
-
import {HttpResetClass} from 'vue-client'
|
|
18
17
|
export default {
|
|
19
18
|
title: '气损收费',
|
|
20
19
|
name: 'gasLossManage',
|
|
@@ -22,8 +21,6 @@
|
|
|
22
21
|
return {
|
|
23
22
|
showupload: false,
|
|
24
23
|
showAddMssage: false,
|
|
25
|
-
|
|
26
|
-
|
|
27
24
|
showItem: false
|
|
28
25
|
}
|
|
29
26
|
},
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
<div style="height:550px;overflow-y: auto;">
|
|
8
8
|
<div style="margin-top:10px;" class="auto row" v-for="row in model.gaslossdetail">
|
|
9
9
|
<div class="panel panel-primary datapanel" style="background-color: #f4f6f8">
|
|
10
|
-
<!-- <div class="auto row">-->
|
|
11
10
|
<div class="col-sm-4 form-group" :class="{'has-success':row.f_type,'has-error':!row.f_type}">
|
|
12
11
|
<label for="f_brand_spec" class="font_normal_body" title="参数名称:气损分类">气损分类</label>
|
|
13
12
|
<input v-show="false" v-model="row.f_type" v-validate:f_type='{required: true }'>
|
|
@@ -50,107 +49,89 @@
|
|
|
50
49
|
<button type="button" class="glyphicon glyphicon-minus btn-danger" @click.stop="delthisdetail($index)"></button>
|
|
51
50
|
<button type="button" class="glyphicon glyphicon-plus btn-success" @click.stop="addadetail()"></button>
|
|
52
51
|
</div>
|
|
53
|
-
<!-- </div>-->
|
|
54
52
|
</div>
|
|
55
53
|
</div>
|
|
56
54
|
</div>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
<div class="col-sm-4 form-group" :class="{'has-success':model.f_charge_person,'has-error':!model.f_charge_person}">
|
|
67
|
-
<label class=" font_normal_body"> 缴 费 人 </label>
|
|
68
|
-
<input class="input_search" style="width:60%"
|
|
69
|
-
v-validate:f_charge_person='{required: true }'
|
|
70
|
-
v-model="model.f_charge_person"
|
|
71
|
-
placeholder="缴费人">
|
|
72
|
-
</div>
|
|
73
|
-
<div class="col-sm-4 form-group" :class="{'has-success':model.f_charge_phone,'has-error':!model.f_charge_phone}">
|
|
74
|
-
<label class=" font_normal_body"> 联系电话</label>
|
|
75
|
-
<input class="input_search" style="width:60%"
|
|
76
|
-
v-validate:f_charge_phone='{required: true }'
|
|
77
|
-
v-model="model.f_charge_phone"
|
|
78
|
-
placeholder="联系电话">
|
|
79
|
-
</div>
|
|
80
|
-
<div class="col-sm-12 form-group" :class="{'has-success':model.f_charge_address,'has-error':!model.f_charge_address}">
|
|
81
|
-
<label class=" font_normal_body">缴费人地址</label>
|
|
82
|
-
<input class="input_search" style="width:89%"
|
|
83
|
-
v-validate:f_charge_address='{required: true }'
|
|
84
|
-
v-model="model.f_charge_address"
|
|
85
|
-
placeholder="缴费人地址">
|
|
86
|
-
</div>
|
|
87
|
-
<div class="col-sm-4 form-group">
|
|
88
|
-
<label for="f_paytype" class="font_normal_body" title="参数名称:付款方式"> 收款方式</label>
|
|
89
|
-
<v-select id="f_payment"
|
|
90
|
-
v-model="f_payment"
|
|
91
|
-
placeholder='请选择'
|
|
92
|
-
:value.sync="model.f_payment"
|
|
93
|
-
:value-single="true"
|
|
94
|
-
:options='paytype'
|
|
95
|
-
close-on-select clear-button>
|
|
96
|
-
</v-select>
|
|
97
|
-
</div>
|
|
98
|
-
<div class="col-sm-4 form-group">
|
|
99
|
-
<label for="f_print" class="font_normal_body"> 打印格式</label>
|
|
100
|
-
<v-select id="print"
|
|
101
|
-
v-model="model.f_print"
|
|
102
|
-
placeholder='请选择'
|
|
103
|
-
:value.sync="model.f_print"
|
|
104
|
-
:options='printstyle'
|
|
105
|
-
:value-single="true"
|
|
106
|
-
close-on-select clear-button>
|
|
107
|
-
</v-select>
|
|
108
|
-
</div>
|
|
109
|
-
<div class="col-sm-4 auto">
|
|
110
|
-
<label for="f_collection" style="text-align:right;"><font size="6px" style="font-weight:bold;color:darkred">收 款:{{model.f_collection}}</font></label>
|
|
111
|
-
</div>
|
|
112
|
-
<div class="col-sm-9 form-group">
|
|
113
|
-
<label class=" font_normal_body"> 备  注</label>
|
|
114
|
-
<input class="input_search" style="width:70%"
|
|
115
|
-
v-model="model.f_comments"
|
|
116
|
-
placeholder="备注">
|
|
117
|
-
</div>
|
|
118
|
-
<div style="text-align:right;height: 25%;">
|
|
119
|
-
<button class="button_search btn-gn" type="button" @click="confirm()" :disabled='!$v.valid || validateOk'>确认</button>
|
|
120
|
-
<button class="button_clear btn-gn" type="button" @click="clean()">取消</button>
|
|
121
|
-
</div>
|
|
122
|
-
</div>
|
|
123
|
-
|
|
124
|
-
<!-- <payment-code-button :clickable="!$v.valid || validateOk"-->
|
|
125
|
-
<!-- :payment.sync="model.f_payment" :payment-data="paytype"-->
|
|
126
|
-
<!-- @confirm-payment="confirm()">-->
|
|
127
|
-
<!-- </payment-code-button>-->
|
|
128
|
-
|
|
129
|
-
|
|
55
|
+
</div>
|
|
56
|
+
<div class=" panel panel-primary datapanel" style="height:260px">
|
|
57
|
+
<div class="row">
|
|
58
|
+
<div class="col-sm-4 form-group">
|
|
59
|
+
<label class=" font_normal_body"> 客户编号</label>
|
|
60
|
+
<input class="input_search" style="width:60%"
|
|
61
|
+
v-model="model.f_userinfo_code"
|
|
62
|
+
@blur="codeChange()"
|
|
63
|
+
placeholder="客户编号">
|
|
130
64
|
</div>
|
|
131
|
-
|
|
132
|
-
|
|
65
|
+
<div class="col-sm-4 form-group" :class="{'has-success':model.f_charge_person,'has-error':!model.f_charge_person}">
|
|
66
|
+
<label class=" font_normal_body"> 缴 费 人 </label>
|
|
67
|
+
<input class="input_search" style="width:60%"
|
|
68
|
+
v-validate:f_charge_person='{required: true }'
|
|
69
|
+
v-model="model.f_charge_person"
|
|
70
|
+
placeholder="缴费人">
|
|
71
|
+
</div>
|
|
72
|
+
<div class="col-sm-4 form-group" :class="{'has-success':model.f_charge_phone,'has-error':!model.f_charge_phone}">
|
|
73
|
+
<label class=" font_normal_body"> 联系电话</label>
|
|
74
|
+
<input class="input_search" style="width:60%"
|
|
75
|
+
v-validate:f_charge_phone='{required: true }'
|
|
76
|
+
v-model="model.f_charge_phone"
|
|
77
|
+
placeholder="联系电话">
|
|
78
|
+
</div>
|
|
79
|
+
<div class="col-sm-12 form-group" :class="{'has-success':model.f_charge_address,'has-error':!model.f_charge_address}">
|
|
80
|
+
<label class=" font_normal_body">缴费人地址</label>
|
|
81
|
+
<input class="input_search" style="width:89%"
|
|
82
|
+
v-validate:f_charge_address='{required: true }'
|
|
83
|
+
v-model="model.f_charge_address"
|
|
84
|
+
placeholder="缴费人地址">
|
|
85
|
+
</div>
|
|
86
|
+
<div class="col-sm-4 form-group">
|
|
87
|
+
<label for="f_paytype" class="font_normal_body" title="参数名称:付款方式"> 收款方式</label>
|
|
88
|
+
<v-select id="f_payment"
|
|
89
|
+
v-model="f_payment"
|
|
90
|
+
placeholder='请选择'
|
|
91
|
+
:value.sync="model.f_payment"
|
|
92
|
+
:value-single="true"
|
|
93
|
+
:options='paytype'
|
|
94
|
+
close-on-select clear-button>
|
|
95
|
+
</v-select>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="col-sm-4 form-group">
|
|
98
|
+
<label for="f_print" class="font_normal_body"> 打印格式</label>
|
|
99
|
+
<v-select id="print"
|
|
100
|
+
v-model="model.f_print"
|
|
101
|
+
placeholder='请选择'
|
|
102
|
+
:value.sync="model.f_print"
|
|
103
|
+
:options='printstyle'
|
|
104
|
+
:value-single="true"
|
|
105
|
+
close-on-select clear-button>
|
|
106
|
+
</v-select>
|
|
107
|
+
</div>
|
|
108
|
+
<div class="col-sm-4 auto">
|
|
109
|
+
<label for="f_collection" style="text-align:right;"><font size="6px" style="font-weight:bold;color:darkred">收 款:{{model.f_collection}}</font></label>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="col-sm-9 form-group">
|
|
112
|
+
<label class=" font_normal_body"> 备  注</label>
|
|
113
|
+
<input class="input_search" style="width:70%"
|
|
114
|
+
v-model="model.f_comments"
|
|
115
|
+
placeholder="备注">
|
|
116
|
+
</div>
|
|
117
|
+
<div style="text-align:right;height: 25%;">
|
|
118
|
+
<button class="button_search btn-gn" type="button" @click="checkInvoiceMsg()" :disabled='!$v.valid || validateOk'>确认</button>
|
|
119
|
+
<button class="button_clear btn-gn" type="button" @click="clean()">取消</button>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
133
123
|
</form>
|
|
134
124
|
<validate-bill v-if="hasValidateBill" :data="model" @validate-bill="validateBill"></validate-bill>
|
|
135
125
|
<print-bill :show="print" :data='model' :bill-config='config' :bill-data='billData' v-on:toggle="close" @printok="printok" v-ref:printbill></print-bill>
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
126
|
+
<ticket-print :show="eticket_show" @toggle="eticket_toggle" v-ref:eticketbill></ticket-print>
|
|
127
|
+
<eticket-modal :show="eticket_msg" @close-modal-show="eticket_msg = false" :row="model" @confirm="confirm"></eticket-modal>
|
|
139
128
|
</validator>
|
|
140
|
-
|
|
141
129
|
</div>
|
|
142
|
-
|
|
143
130
|
<payment-code v-ref:paymentcode :payment="model.f_payment" :money="model.f_collection"></payment-code>
|
|
144
|
-
|
|
145
131
|
</div>
|
|
146
|
-
<!-- <div class="auto">-->
|
|
147
|
-
<!-- <upload isremark="true" fusetype="气损收费"></upload>-->
|
|
148
|
-
<!-- </div>-->
|
|
149
132
|
</template>
|
|
150
133
|
|
|
151
|
-
|
|
152
134
|
<script>
|
|
153
|
-
|
|
154
135
|
import {HttpResetClass} from 'vue-client'
|
|
155
136
|
import Vue from 'vue'
|
|
156
137
|
|
|
@@ -158,35 +139,28 @@
|
|
|
158
139
|
try {
|
|
159
140
|
// 加入扫码盒付款码支付流水号
|
|
160
141
|
self.model.f_serial_id = self.$refs.paymentcode.paymentCodeReturnData.f_out_trade_no
|
|
161
|
-
|
|
162
|
-
self.model.f_bill_style=self.model.f_print
|
|
142
|
+
self.model.f_bill_style = self.model.f_print
|
|
163
143
|
let http = new HttpResetClass()
|
|
164
|
-
self.model.f_describe
|
|
144
|
+
self.model.f_describe = `${Vue.$login.f.name}对${self.model.f_charge_person}进行气损收费`
|
|
165
145
|
let resid = await http.load('POST', 'rs/logic/gasLoss', self.model, {resolveMsg: '气损收费成功', rejectMsg: '气损收费失败'})
|
|
166
146
|
console.log('f_print:', resid)
|
|
167
|
-
if (
|
|
168
|
-
if (self.
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
self.print = true
|
|
177
|
-
}
|
|
178
|
-
} else if (self.model.f_print === '国税发票') {
|
|
179
|
-
// TODO
|
|
180
|
-
self.clean()
|
|
181
|
-
self.$dispatch('refresh')
|
|
182
|
-
} else if (self.model.f_print === '电子发票') {
|
|
183
|
-
self.$CommonService.openEticket(resid, '其他费用')
|
|
184
|
-
self.clean()
|
|
185
|
-
self.$dispatch('refresh')
|
|
147
|
+
if (self.model.f_print !== '电子发票') {
|
|
148
|
+
if (self.config.hasBillManage) {
|
|
149
|
+
self.model.id = resid.data
|
|
150
|
+
self.model.f_bill_type = '其他费用'
|
|
151
|
+
self.model.f_bill_style = self.model.f_print[0]
|
|
152
|
+
self.print = true
|
|
153
|
+
} else {
|
|
154
|
+
self.model.id = resid.data
|
|
155
|
+
self.print = true
|
|
186
156
|
}
|
|
187
|
-
} else {
|
|
157
|
+
} else if (self.model.f_print === '国税发票') {
|
|
158
|
+
// TODO
|
|
188
159
|
self.clean()
|
|
189
160
|
self.$dispatch('refresh')
|
|
161
|
+
} else if (self.model.f_print === '电子发票') {
|
|
162
|
+
self.eticket_show = true
|
|
163
|
+
await self.$refs.eticketbill.openETicket([resid.data], self.model, '气损收费')
|
|
190
164
|
}
|
|
191
165
|
} catch (error) {
|
|
192
166
|
self.$showAlert(error, 'danger', 0)
|
|
@@ -195,9 +169,9 @@
|
|
|
195
169
|
}
|
|
196
170
|
|
|
197
171
|
let asyncGasLoss = async function (self) {
|
|
198
|
-
try{
|
|
172
|
+
try {
|
|
199
173
|
await self.$getConfig(self, 'gasLossCharge')
|
|
200
|
-
} catch(error){
|
|
174
|
+
} catch (error) {
|
|
201
175
|
console.log('无配置文件')
|
|
202
176
|
}
|
|
203
177
|
self.model.f_print = self.config.printType
|
|
@@ -219,10 +193,13 @@
|
|
|
219
193
|
payment: '现金缴费', // 付款方式
|
|
220
194
|
f_type: '', // 气损分类
|
|
221
195
|
f_loss_type: '' // 气损类型
|
|
222
|
-
|
|
223
196
|
},
|
|
197
|
+
eticket_msg: false,
|
|
198
|
+
eticket_show: false,
|
|
199
|
+
invoice_is_pax: '征税',
|
|
200
|
+
is_pax: [{label: '征税', value: '征税'}, {label: '不征税', value: '不征税'}],
|
|
224
201
|
model: {
|
|
225
|
-
f_userinfo_id:null,
|
|
202
|
+
f_userinfo_id: null,
|
|
226
203
|
f_collection: 0,
|
|
227
204
|
f_payment: '',
|
|
228
205
|
f_bill_style: '',
|
|
@@ -239,7 +216,15 @@
|
|
|
239
216
|
f_depname: Vue.$login.f.deps,
|
|
240
217
|
f_operat_type: '气损收费',
|
|
241
218
|
f_print: '',
|
|
242
|
-
gaslossdetail:[{}]
|
|
219
|
+
gaslossdetail: [{}],
|
|
220
|
+
f_user_name: '',
|
|
221
|
+
f_user_phone: '',
|
|
222
|
+
f_address: '',
|
|
223
|
+
f_paper_name: '',
|
|
224
|
+
f_paper_account: '',
|
|
225
|
+
f_idnumber: '',
|
|
226
|
+
f_taxpayer_id: '',
|
|
227
|
+
f_address_phone: ''
|
|
243
228
|
},
|
|
244
229
|
print: false,
|
|
245
230
|
taxprint: false,
|
|
@@ -263,36 +248,64 @@
|
|
|
263
248
|
},
|
|
264
249
|
|
|
265
250
|
methods: {
|
|
266
|
-
|
|
267
|
-
if(this.model.
|
|
251
|
+
checkInvoiceMsg () {
|
|
252
|
+
if (this.model.f_print === '电子发票') {
|
|
253
|
+
if (!this.model.f_taxpayer_id) {
|
|
254
|
+
this.model.f_taxpayer_id = this.model.f_idnumber
|
|
255
|
+
}
|
|
256
|
+
if (!this.model.f_paper_name) {
|
|
257
|
+
this.model.f_paper_name = this.model.f_user_name
|
|
258
|
+
}
|
|
259
|
+
if (!this.model.f_address_phone) {
|
|
260
|
+
this.model.f_address_phone = this.model.f_address + ' ' + this.model.f_user_phone
|
|
261
|
+
}
|
|
262
|
+
this.eticket_msg = true
|
|
263
|
+
} else {
|
|
264
|
+
this.confirm()
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
eticket_toggle () {
|
|
268
|
+
this.eticket_show = false
|
|
269
|
+
this.$dispatch('success')
|
|
270
|
+
},
|
|
271
|
+
async codeChange () {
|
|
272
|
+
this.model.f_userinfo_code = this.model.f_userinfo_code.trim()
|
|
273
|
+
if (this.model.f_userinfo_code) {
|
|
268
274
|
let http = new HttpResetClass()
|
|
269
275
|
let res = await http.load('POST', 'rs/sql/singleTable_OrderBy', {
|
|
270
276
|
data: {
|
|
271
|
-
items: 'u.f_userinfo_id,u.f_user_name,u.f_user_phone,a.f_address',
|
|
277
|
+
items: 'u.f_userinfo_id,u.f_user_name,u.f_user_phone,a.f_address,u.f_paper_name,u.f_paper_account,u.f_idnumber,u.f_taxpayer_id,u.f_address_phone',
|
|
272
278
|
tablename: 't_userinfo u left join t_user_address a on u.f_userinfo_id = a.f_userinfo_id',
|
|
273
279
|
condition: `u.f_userinfo_code = '${this.model.f_userinfo_code}' and u.f_user_state = '正常'`,
|
|
274
280
|
orderitem: 'u.f_userinfo_id desc'
|
|
275
281
|
}
|
|
276
282
|
}, {resolveMsg: null, rejectMsg: '获取用户信息失败'})
|
|
277
|
-
if(res.data.length==0){
|
|
278
|
-
this.$showAlert('该客户编号不存在,请重新输入','warning',3000)
|
|
279
|
-
this.model.f_userinfo_code=null
|
|
280
|
-
}else{
|
|
281
|
-
this.model.f_userinfo_id=res.data[0].f_userinfo_id
|
|
282
|
-
this.model.f_charge_person=res.data[0].f_user_name
|
|
283
|
-
this.model.f_charge_phone=res.data[0].f_user_phone
|
|
284
|
-
this.model.f_charge_address=res.data[0].f_address
|
|
283
|
+
if (res.data.length == 0) {
|
|
284
|
+
this.$showAlert('该客户编号不存在,请重新输入', 'warning', 3000)
|
|
285
|
+
this.model.f_userinfo_code = null
|
|
286
|
+
} else {
|
|
287
|
+
this.model.f_userinfo_id = res.data[0].f_userinfo_id
|
|
288
|
+
this.model.f_charge_person = res.data[0].f_user_name
|
|
289
|
+
this.model.f_charge_phone = res.data[0].f_user_phone
|
|
290
|
+
this.model.f_charge_address = res.data[0].f_address
|
|
291
|
+
this.model.f_user_name = res.data[0].f_user_name
|
|
292
|
+
this.model.f_user_phone = res.data[0].f_user_phone
|
|
293
|
+
this.model.f_address = res.data[0].f_address
|
|
294
|
+
this.model.f_paper_name = res.data[0].f_paper_name
|
|
295
|
+
this.model.f_paper_account = res.data[0].f_paper_account
|
|
296
|
+
this.model.f_idnumber = res.data[0].f_idnumber
|
|
297
|
+
this.model.f_taxpayer_id = res.data[0].f_taxpayer_id
|
|
298
|
+
this.model.f_address_phone = res.data[0].f_address_phone
|
|
285
299
|
}
|
|
286
|
-
|
|
287
300
|
}
|
|
288
301
|
},
|
|
289
|
-
async clean(){
|
|
302
|
+
async clean () {
|
|
290
303
|
this.model = {}
|
|
291
304
|
await this.$nextTick()
|
|
292
|
-
this.model={
|
|
305
|
+
this.model = {
|
|
306
|
+
f_userinfo_id: null,
|
|
293
307
|
f_collection: 0,
|
|
294
|
-
f_payment:
|
|
295
|
-
f_print: this.config.printType,
|
|
308
|
+
f_payment: '',
|
|
296
309
|
f_bill_style: '',
|
|
297
310
|
f_comments: '',
|
|
298
311
|
f_charge_person: '',
|
|
@@ -306,16 +319,25 @@
|
|
|
306
319
|
f_depid: Vue.$login.f.depids,
|
|
307
320
|
f_depname: Vue.$login.f.deps,
|
|
308
321
|
f_operat_type: '气损收费',
|
|
309
|
-
|
|
322
|
+
f_print: '',
|
|
323
|
+
gaslossdetail: [{}],
|
|
324
|
+
f_user_name: '',
|
|
325
|
+
f_user_phone: '',
|
|
326
|
+
f_address: '',
|
|
327
|
+
f_paper_name: '',
|
|
328
|
+
f_paper_account: '',
|
|
329
|
+
f_idnumber: '',
|
|
330
|
+
f_taxpayer_id: '',
|
|
331
|
+
f_address_phone: ''
|
|
310
332
|
}
|
|
311
333
|
},
|
|
312
334
|
async confirm () {
|
|
335
|
+
this.eticket_msg = false
|
|
313
336
|
// // 先调用付款码支付组件流程
|
|
314
337
|
let ss = await this.$refs.paymentcode.flowPath()
|
|
315
338
|
this.$refs.paymentcode.paymentCodeShow = false
|
|
316
339
|
console.log('付款码操作返回', ss)
|
|
317
340
|
if (!ss.result) return
|
|
318
|
-
|
|
319
341
|
gasLossGen(this)
|
|
320
342
|
},
|
|
321
343
|
close () {
|
|
@@ -350,7 +372,7 @@
|
|
|
350
372
|
this.model.gaslossdetail.splice(index, 1)
|
|
351
373
|
this.getcollection()
|
|
352
374
|
}
|
|
353
|
-
}
|
|
375
|
+
}
|
|
354
376
|
},
|
|
355
377
|
computed: {
|
|
356
378
|
}
|
|
@@ -57,6 +57,13 @@
|
|
|
57
57
|
:starthead="$parent.$parent.starthead"
|
|
58
58
|
titletable="预存气费打印明细"
|
|
59
59
|
></print-data>
|
|
60
|
+
<export-excel :data="{condition:$parent.$parent.condition}"
|
|
61
|
+
:field="$parent.$parent.fields"
|
|
62
|
+
sqlurl="rs/logic/exportfile" sql-name="sale_HandplanQuery" template-name='抄表查询'
|
|
63
|
+
v-ref:exports
|
|
64
|
+
:choose-col="true">
|
|
65
|
+
|
|
66
|
+
</export-excel>
|
|
60
67
|
</div>
|
|
61
68
|
</div>
|
|
62
69
|
|
|
@@ -43,12 +43,9 @@ export default {
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
ready () {
|
|
46
|
-
let sql = '
|
|
46
|
+
let sql = 'getBlack'
|
|
47
47
|
let condition = {
|
|
48
|
-
|
|
49
|
-
tablename: 't_userinfo',
|
|
50
|
-
condition: ' f_userinfo_id = ' + this.data.f_userinfo_id,
|
|
51
|
-
orderitem: 'f_userinfo_id'
|
|
48
|
+
condition: ' tr.id = ' + this.data.id
|
|
52
49
|
}
|
|
53
50
|
this.$info(`加载数据中..., sql:${sql}`)
|
|
54
51
|
this.$refs.pv.load('rs/logic/getOneData', {data: {sql: sql, params: condition}}).then((a) => {
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
<div class="col-sm-4 form-group" :class="[$m.way.required ? 'has-error' : '']" v-if="row.gasbrand.length > 0 && row.gasbrand[0].f_meter_type == '物联网表' && row.gasbrand[0].f_hascard == '是'">
|
|
103
103
|
<label for="f_open_way" class="font_normal_body">开户方式</label>
|
|
104
104
|
<v-select :value.sync="row.f_open_way" v-model='row.f_open_way'
|
|
105
|
-
placeholder='开户方式' :options='openWay'
|
|
105
|
+
placeholder='开户方式' :options='openWay' :value-single="true"
|
|
106
106
|
close-on-select :disabled="false" v-ref:way></v-select>
|
|
107
107
|
<input type="text" v-show="false" v-model="$refs.way.selectedItems" v-validate:way='{required: true }'>
|
|
108
108
|
</div>
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
</th>
|
|
136
136
|
<th style="text-align:center">
|
|
137
137
|
<template v-if="row.f_invoice_source !== '外部录入'">
|
|
138
|
-
<button class="btn btn-link" v-if="row.f_bill_state==='开票成功'"
|
|
138
|
+
<button class="btn btn-link" v-if="row.f_bill_state==='开票成功' && row.f_tax_money > 0"
|
|
139
139
|
@click="$parent.$parent.$parent.fp_ch(row)">发票冲红
|
|
140
140
|
</button>
|
|
141
141
|
<button class="btn btn-link" v-if="row.f_bill_state==='待开票'"
|
|
@@ -144,6 +144,9 @@
|
|
|
144
144
|
<button class="btn btn-link" v-if="row.f_bill_state==='开票失败'"
|
|
145
145
|
@click="$parent.$parent.$parent.kp(row)">重新开票
|
|
146
146
|
</button>
|
|
147
|
+
<button class="btn btn-link" v-if="row.f_bill_state==='冲红失败'"
|
|
148
|
+
@click="$parent.$parent.$parent.kp(row)">重新冲红
|
|
149
|
+
</button>
|
|
147
150
|
<button class="btn btn-link" v-if="['查询失败','等待查询'].includes(row.f_bill_state)"
|
|
148
151
|
@click="$parent.$parent.$parent.fp_search(row)">电票查询
|
|
149
152
|
</button>
|
|
@@ -252,6 +255,10 @@ export default {
|
|
|
252
255
|
this.eticket_show = true
|
|
253
256
|
this.$refs.eticketbill.openEticketGen(row.id)
|
|
254
257
|
},
|
|
258
|
+
ch (row) {
|
|
259
|
+
this.eticket_show = true
|
|
260
|
+
this.$refs.eticketbill.rushRedInvoice(row.id)
|
|
261
|
+
},
|
|
255
262
|
eticket_toggle () {
|
|
256
263
|
this.eticket_show = false
|
|
257
264
|
this.show = false
|
|
@@ -73,23 +73,30 @@
|
|
|
73
73
|
close-on-select v-ref:slice>
|
|
74
74
|
</v-select>
|
|
75
75
|
</div>
|
|
76
|
-
<div v-if="!usertype" class="col-sm-6 form-group "
|
|
76
|
+
<div v-if="!usertype" class="col-sm-6 form-group "
|
|
77
|
+
:class="[$v.f_building.required ? 'has-error' : 'has-success']">
|
|
77
78
|
<label for="f_address" class="font_normal_body">楼  号</label>
|
|
78
79
|
<input type="text" style="width:40%" v-model="model.f_building" class="input_search"
|
|
80
|
+
v-validate:f_building='{required: true }'
|
|
79
81
|
placeholder="楼号"/>
|
|
80
82
|
<input type="text" style="width:20%" v-model="model.f_building_suffix" class="input_search"
|
|
81
83
|
/>
|
|
82
84
|
|
|
83
85
|
</div>
|
|
84
|
-
<div v-if="!usertype" class="col-sm-6 form-group "
|
|
86
|
+
<div v-if="!usertype" class="col-sm-6 form-group "
|
|
87
|
+
:class="[$v.f_unit.required ? 'has-error' : 'has-success']">
|
|
85
88
|
<label for="f_address" class="font_normal_body">单  元</label>
|
|
86
|
-
<input type="text" style="width:40%" v-model="model.f_unit" class="input_search"
|
|
89
|
+
<input type="text" style="width:40%" v-model="model.f_unit" class="input_search"
|
|
90
|
+
v-validate:f_unit='{required: true }'
|
|
91
|
+
placeholder="单元"/>
|
|
87
92
|
<input type="text" style="width:20%" v-model="model.f_unit_suffix" class="input_search"
|
|
88
93
|
/>
|
|
89
94
|
</div>
|
|
90
|
-
<div v-if="!usertype" class="col-sm-6 form-group "
|
|
95
|
+
<div v-if="!usertype" class="col-sm-6 form-group "
|
|
96
|
+
:class="[$v.f_floor.required ? 'has-error' : 'has-success']">
|
|
91
97
|
<label for="f_address" class="font_normal_body">楼  层</label>
|
|
92
98
|
<input type="text" style="width:40%" v-model="model.f_floor" class="input_search"
|
|
99
|
+
v-validate:f_floor='{required: true }'
|
|
93
100
|
placeholder="楼层" />
|
|
94
101
|
<input type="text" style="width:20%" v-model="model.f_floor_suffix" class="input_search"
|
|
95
102
|
/>
|
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
+
<div class="row">
|
|
7
|
+
<div class="form-group col-sm-3" >
|
|
8
|
+
<label class="font_normal_body">客户编号</label>
|
|
9
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" placeholder='客户编号'
|
|
10
|
+
condition="f_userinfo_code = '{}'" @keyup.enter="search()">
|
|
11
|
+
</div>
|
|
12
|
+
<!-- <div class="form-group col-sm-3">-->
|
|
13
|
+
<!-- <label class="font_normal_body">客户状态</label>-->
|
|
14
|
+
<!-- <v-select :value.sync="model.f_user_state" v-model="model.f_user_state"-->
|
|
15
|
+
<!-- :options='$parent.$parent.userstates' placeholder='客户状态'-->
|
|
16
|
+
<!-- close-on-select condition="f_user_state='{}'"></v-select>-->
|
|
17
|
+
<!-- </div>-->
|
|
18
|
+
<div class="form-group col-sm-3" >
|
|
19
|
+
<label class="font_normal_body">表  号</label>
|
|
20
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_meternumber" placeholder='表号'
|
|
21
|
+
condition="f_meternumber = '{}'" @keyup.enter="search()">
|
|
22
|
+
</div>
|
|
23
|
+
<div class="form-group col-sm-4 button-range" >
|
|
24
|
+
<button class="button_search" style="margin-right: 10px" @click="$parent.$parent.changeprice()" v-el:cba>批量调价</button>
|
|
25
|
+
<button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
|
|
26
|
+
<export-excel
|
|
27
|
+
:data="{condition: $parent.$parent.condition}"
|
|
28
|
+
:field="$parent.$parent.getfield"
|
|
29
|
+
sqlurl="rs/logic/exportfile" sql-name="salegetGasUser" :template-name="$parent.$parent.pricename+'气价使用人'"
|
|
30
|
+
:choose-col="true"></export-excel>
|
|
31
|
+
<div style="float: right" class="button_spacing"
|
|
32
|
+
:class="{'button_shrink_top': $parent.$parent.criteriaShow2,'button_shrink_bottom': !$parent.$parent.criteriaShow2}"
|
|
33
|
+
@click="$parent.$parent.criteriaShow2 = !$parent.$parent.criteriaShow2"></div>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
<div class="row" v-show="$parent.$parent.criteriaShow2">
|
|
37
|
+
<div class="form-group col-sm-3" >
|
|
38
|
+
<label class="font_normal_body">气表状态</label>
|
|
39
|
+
<v-select style="width:60%" :value.sync="model.f_table_state"
|
|
40
|
+
v-model="model.f_table_state"
|
|
41
|
+
:options='$parent.$parent.gasStates' placeholder='气表状态'
|
|
42
|
+
condition="f_table_state ='{}'"></v-select>
|
|
43
|
+
</div>
|
|
44
|
+
<div class="col-sm-3 form-group">
|
|
45
|
+
<label class="font_normal_body">客户类型</label>
|
|
46
|
+
<v-select :value.sync="model.f_user_type"
|
|
47
|
+
@change="$parent.$parent.userTypeChange1()"
|
|
48
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
49
|
+
condition="f_user_type = '{}'"
|
|
50
|
+
close-on-select></v-select>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="col-sm-3 form-group">
|
|
53
|
+
<label class="font_normal_body">用气性质</label>
|
|
54
|
+
<v-select :value.sync="model.f_gasproperties1" v-model="model.f_gasproperties1"
|
|
55
|
+
:options='$parent.$parent.gasproperties1' placeholder='请选择'
|
|
56
|
+
condition="f_gasproperties = '{}'"
|
|
57
|
+
close-on-select></v-select>
|
|
58
|
+
</div>
|
|
59
|
+
<div class="col-sm-3 form-group">
|
|
60
|
+
<label class="font_normal_body">用气类别</label>
|
|
61
|
+
<v-select :value.sync="model.f_gongye_type" v-model='model.f_gongye_type'
|
|
62
|
+
:options='$parent.$parent.gongyetype' placeholder='用气类别'
|
|
63
|
+
condition="f_gongye_type = '{}'"
|
|
64
|
+
close-on-select
|
|
65
|
+
v-el:cc></v-select>
|
|
66
|
+
</div>
|
|
67
|
+
<div class="form-group col-sm-3">
|
|
68
|
+
<label class="font_normal_body">气表类型</label>
|
|
69
|
+
<v-select :value.sync="model.f_meter_classify" v-model="model.f_meter_classify"
|
|
70
|
+
:options='$parent.$parent.meters' placeholder='气表类型'
|
|
71
|
+
close-on-select
|
|
72
|
+
condition="f_meter_classify = '{}'"
|
|
73
|
+
style="width: 60%"
|
|
74
|
+
>
|
|
75
|
+
</v-select>
|
|
76
|
+
</div>
|
|
77
|
+
<div class="form-group col-sm-3">
|
|
78
|
+
<label class="font_normal_body">小区名称</label>
|
|
79
|
+
<v-select :value.sync="model.f_residential_area_id" v-model="model.f_residential_area_id"
|
|
80
|
+
:options='$parent.$parent.areaList' placeholder='小区名称'
|
|
81
|
+
close-on-select @select-search="$parent.$parent.getAreaList"
|
|
82
|
+
condition="f_residential_area_id = '{}'"
|
|
83
|
+
style="width: 60%"
|
|
84
|
+
>
|
|
85
|
+
</v-select>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="col-sm-3 form-group">
|
|
88
|
+
<label class="font_normal_body">气表品牌</label>
|
|
89
|
+
<v-select :value.sync="model.f_meter_brand"
|
|
90
|
+
v-model="model.f_meter_brand"
|
|
91
|
+
:options="$parent.$parent.meterbrands"
|
|
92
|
+
condition="f_meter_brand = '{}'"
|
|
93
|
+
close-on-select></v-select>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</criteria>
|
|
98
|
+
<data-grid :model="model" class="table_sy" partial='list' v-ref:grid :optional="true">
|
|
99
|
+
<template partial='head'>
|
|
100
|
+
<th><nobr>客户编号</nobr></th>
|
|
101
|
+
<th><nobr>表号</nobr></th>
|
|
102
|
+
<th><nobr>气价名称</nobr></th>
|
|
103
|
+
<th><nobr>气价类型</nobr></th>
|
|
104
|
+
<th><nobr>客户类型</nobr></th>
|
|
105
|
+
<th><nobr>用气性质</nobr></th>
|
|
106
|
+
<th><nobr>客户名称</nobr></th>
|
|
107
|
+
<th><nobr>客户地址</nobr></th>
|
|
108
|
+
</template>
|
|
109
|
+
<template partial='body'>
|
|
110
|
+
<td style="text-align:center"><span @click="$parent.$parent.$parent.dealmsg(row)"><a><b>{{row.f_userinfo_code}}</b></a></span></td>
|
|
111
|
+
<td style="text-align:center">{{row.f_meternumber}}</td>
|
|
112
|
+
<td style="text-align:center">{{row.f_price_name}}</td>
|
|
113
|
+
<td style="text-align:center">{{row.f_price_type}}</td>
|
|
114
|
+
<td style="text-align:center">{{row.f_user_type}}</td>
|
|
115
|
+
<td style="text-align:center">{{row.f_gasproperties}}</td>
|
|
116
|
+
<td style="text-align:center">{{row.f_user_name}}</td>
|
|
117
|
+
<td style="text-align:center;white-space: nowrap;">{{row.f_address}}</td>
|
|
118
|
+
</template>
|
|
119
|
+
<template partial='foot'></template>
|
|
120
|
+
</data-grid>
|
|
121
|
+
</criteria-paged>
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
<modal :show.sync="show" width="50%" backdrop="false">
|
|
125
|
+
|
|
126
|
+
<header slot="modal-header" class="modal-header">
|
|
127
|
+
<h4 class="modal-title" style="text-align: center;">气价调整</h4>
|
|
128
|
+
</header>
|
|
129
|
+
<article slot="modal-body" class="modal-body">
|
|
130
|
+
<div class="panel panel-primary datapanel">
|
|
131
|
+
<form class="form-horizontal select-overspread">
|
|
132
|
+
<div class="form-group">
|
|
133
|
+
<div class="row bg-info text-center text-center" style="height:35px">
|
|
134
|
+
<div style="float: left">
|
|
135
|
+
<label class="font_normal_body">旧气价信息</label>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
<div class="row" style="margin-top: 2%">
|
|
139
|
+
<div class="col-sm-3 flex-row ">
|
|
140
|
+
<label class="control-label">客户类型</label>
|
|
141
|
+
<p class="form-control-static">{{oldinfo.f_user_type}}</p>
|
|
142
|
+
</div>
|
|
143
|
+
<div class="col-sm-3 flex-row ">
|
|
144
|
+
<label class="control-label">用气性质</label>
|
|
145
|
+
<p class="form-control-static">{{oldinfo.f_gasproperties}}</p>
|
|
146
|
+
</div>
|
|
147
|
+
<div class="col-sm-3 flex-row ">
|
|
148
|
+
<label class="control-label">气价类型</label>
|
|
149
|
+
<p class="form-control-static">{{oldinfo.f_price_type}}</p>
|
|
150
|
+
</div>
|
|
151
|
+
<div class="col-sm-3 flex-row ">
|
|
152
|
+
<label class="control-label">气价名称</label>
|
|
153
|
+
<p class="form-control-static">{{oldinfo.f_price_name}}</p>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
<div class="row bg-info text-center text-center" style="height:35px">
|
|
157
|
+
<div style="float: left">
|
|
158
|
+
<label class="font_normal_body">新气价信息</label>
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
<div class="row" style="margin-top: 2%">
|
|
162
|
+
<div class="col-sm-4 flex-row" >
|
|
163
|
+
<label class="control-label">用户类型</label>
|
|
164
|
+
<v-select :value.sync="newinfo.f_user_type"
|
|
165
|
+
:options='usertypes' placeholder='用户类型'
|
|
166
|
+
@change="userTypeChange()"
|
|
167
|
+
close-on-select></v-select>
|
|
168
|
+
</div>
|
|
169
|
+
<div class="col-sm-4 flex-row">
|
|
170
|
+
<label class="control-label">用气性质</label>
|
|
171
|
+
<v-select :value.sync="newinfo.f_gasproperties" v-model="newinfo.f_gasproperties"
|
|
172
|
+
:options='gasproperties' placeholder='用气性质'
|
|
173
|
+
close-on-select v-ref:gas></v-select>
|
|
174
|
+
</div>
|
|
175
|
+
<div class="col-sm-4 flex-row">
|
|
176
|
+
<label class="control-label">气价类型</label>
|
|
177
|
+
<v-select :value.sync="newinfo.pricetype" v-model="newinfo.pricetype"
|
|
178
|
+
placeholder='气价类型' :options="pricetypes"
|
|
179
|
+
close-on-select v-ref:type>
|
|
180
|
+
</v-select>
|
|
181
|
+
</div>
|
|
182
|
+
</div>
|
|
183
|
+
<div class="row" style="margin-top: 2%">
|
|
184
|
+
|
|
185
|
+
<div class="col-sm-4 flex-row" >
|
|
186
|
+
<label class="control-label">气价名称</label>
|
|
187
|
+
<v-select :value.sync="newinfo.pricename" v-model="newinfo.pricename"
|
|
188
|
+
placeholder='气价名称' :options="getPricenames()" @change="priceChange"
|
|
189
|
+
close-on-select :disabled='newinfo.pricetype.length === 0 ' v-ref:name></v-select>
|
|
190
|
+
<span class="col-sm-3" v-if="newinfo.pricetype.length === 1 && gasproperties.length === 0"
|
|
191
|
+
style="color:red;text-align:right">请确定用气性质已选择!!</span>
|
|
192
|
+
</div>
|
|
193
|
+
|
|
194
|
+
<div class="col-sm-4 flex-row">
|
|
195
|
+
<label class="control-label">气价备注</label>
|
|
196
|
+
<input type="text" class="input_search" style="width:60%" v-model="newinfo.f_price_comments" placeholder='气价备注' disabled>
|
|
197
|
+
</div>
|
|
198
|
+
|
|
199
|
+
<div class="col-sm-4 flex-row">
|
|
200
|
+
<label class="control-label">调价原因</label>
|
|
201
|
+
<v-select :value.sync="newinfo.f_comments" v-model="newinfo.f_comments"
|
|
202
|
+
placeholder='调价原因' :options="adjustpricereasons" :value-single="true"
|
|
203
|
+
close-on-select v-ref:type>
|
|
204
|
+
</v-select>
|
|
205
|
+
</div>
|
|
206
|
+
|
|
207
|
+
</div>
|
|
208
|
+
|
|
209
|
+
</div>
|
|
210
|
+
</form>
|
|
211
|
+
</div>
|
|
212
|
+
|
|
213
|
+
<upload :blodid="blodid" :businessid="blodid" isremark="true" fusetype="批量调价" v-ref:fileupload></upload>
|
|
214
|
+
</article>
|
|
215
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
216
|
+
<button class="button_search" @click="modifyUser">确定</button>
|
|
217
|
+
<button type="button" class="button_clear" @click='close'>取消</button>
|
|
218
|
+
</footer>
|
|
219
|
+
|
|
220
|
+
</modal>
|
|
221
|
+
</div>
|
|
222
|
+
</template>
|
|
223
|
+
|
|
224
|
+
<script>
|
|
225
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
226
|
+
|
|
227
|
+
let loadParamGem = async function (self) {
|
|
228
|
+
await self.$LoadParams.loadParam(self.priceorgid ? self.priceorgid : self.f_filialeid)
|
|
229
|
+
await self.$MagLoadParams.loadParam()
|
|
230
|
+
self.initParams()
|
|
231
|
+
}
|
|
232
|
+
export default {
|
|
233
|
+
title: '气价使用人',
|
|
234
|
+
data () {
|
|
235
|
+
return {
|
|
236
|
+
model: new PagedList('rs/sql/getGasUser', 20, {}),
|
|
237
|
+
condition: '',
|
|
238
|
+
criteriaShow2: false,
|
|
239
|
+
gasproperties1: [],
|
|
240
|
+
getfield: {},
|
|
241
|
+
show: false,
|
|
242
|
+
gasproperties: [],
|
|
243
|
+
f_filialeid: this.$login.f.orgid,
|
|
244
|
+
newinfo: {
|
|
245
|
+
f_user_type: '',
|
|
246
|
+
f_gasproperties: '',
|
|
247
|
+
pricetype: '',
|
|
248
|
+
pricename: '',
|
|
249
|
+
f_comments: ''
|
|
250
|
+
},
|
|
251
|
+
oldinfo: {
|
|
252
|
+
f_user_type: '',
|
|
253
|
+
f_gasproperties: '',
|
|
254
|
+
f_price_type: '',
|
|
255
|
+
f_price_name: '',
|
|
256
|
+
f_price_id: '',
|
|
257
|
+
f_stairprice_id: ''
|
|
258
|
+
},
|
|
259
|
+
areaList: [],
|
|
260
|
+
gongyetype: this.$appdata.getParam('用气类别') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类别')] : [],
|
|
261
|
+
usertypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
|
|
262
|
+
pricetypes: this.$appdata.getParam('气价类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')] : [],
|
|
263
|
+
meters: this.$appdata.getParam('气表类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')] : [],
|
|
264
|
+
adjustpricereasons: this.$appdata.getParam('批量调价原因'),
|
|
265
|
+
config: {
|
|
266
|
+
excelHeaders: {
|
|
267
|
+
'f_price_name': '气价名称',
|
|
268
|
+
'f_userinfo_code': '客户编号',
|
|
269
|
+
'f_user_name': '客户姓名',
|
|
270
|
+
'f_address': '客户地址',
|
|
271
|
+
'f_orgname': '组织机构'
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
blodid: '临时id' + Date.now()
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
props: ['priceid', 'pricename', 'priceorgid'],
|
|
278
|
+
ready () {
|
|
279
|
+
this.search()
|
|
280
|
+
this.getfield = this.config.excelHeaders
|
|
281
|
+
loadParamGem(this)
|
|
282
|
+
this.getAreaList()
|
|
283
|
+
},
|
|
284
|
+
methods: {
|
|
285
|
+
initParams () {
|
|
286
|
+
// 初始化气表品牌
|
|
287
|
+
let brandArr = []
|
|
288
|
+
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
289
|
+
let temp = {}
|
|
290
|
+
temp.label = item.label
|
|
291
|
+
temp.value = item.value.f_meter_brand
|
|
292
|
+
brandArr.push(temp)
|
|
293
|
+
})
|
|
294
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
295
|
+
},
|
|
296
|
+
getAreaList (searchText) {
|
|
297
|
+
let condition = ' 1 = 1 '
|
|
298
|
+
if (searchText) {
|
|
299
|
+
condition = ` f_residential_area like '%${searchText}%' `
|
|
300
|
+
}
|
|
301
|
+
let HttpReset = new HttpResetClass()
|
|
302
|
+
HttpReset.load('POST', 'rs/sql/saleSingleTable?pageNo=1&pageSize=100', {
|
|
303
|
+
data: {
|
|
304
|
+
items: 'f_residential_area, id',
|
|
305
|
+
tablename: 't_area',
|
|
306
|
+
orderitem: 'id desc',
|
|
307
|
+
condition: condition
|
|
308
|
+
}
|
|
309
|
+
}, {resolveMsg: null, rejectMsg: '获取小区信息失败!'}).then((req) => {
|
|
310
|
+
let redata = []
|
|
311
|
+
req.data.forEach((row, n) => {
|
|
312
|
+
redata[n] = {
|
|
313
|
+
label: row.f_residential_area,
|
|
314
|
+
value: row.id
|
|
315
|
+
}
|
|
316
|
+
})
|
|
317
|
+
this.areaList = [{label: '全部', value: ''}, ...redata]
|
|
318
|
+
})
|
|
319
|
+
},
|
|
320
|
+
userTypeChange1 () {
|
|
321
|
+
this.gasproperties1 = []
|
|
322
|
+
if (this.$refs.paged.$refs.criteria.model !== null) {
|
|
323
|
+
this.$refs.paged.$refs.criteria.model.f_gasproperties1 = ''
|
|
324
|
+
this.gasproperties1 = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
|
|
325
|
+
} else {
|
|
326
|
+
this.gasproperties1 = [{label: '全部', value: ''}]
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
close () {
|
|
330
|
+
this.show = false
|
|
331
|
+
Object.keys(this.newinfo).forEach(key => {
|
|
332
|
+
this.newinfo[key] = ''
|
|
333
|
+
})
|
|
334
|
+
},
|
|
335
|
+
async modifyUser () {
|
|
336
|
+
let rowdata = this.$refs.paged.$refs.grid.getRowData()
|
|
337
|
+
let condition = rowdata.length == 0 ? this.condition : ''
|
|
338
|
+
let com = rowdata.map((row) => { return row.f_userfiles_id }).join(',')
|
|
339
|
+
let fileuploadid = this.$refs.fileupload.fileInfoData.map((row) => { return row.id }).join(',')
|
|
340
|
+
|
|
341
|
+
let param = {
|
|
342
|
+
// 新气价信息
|
|
343
|
+
f_user_type: this.newinfo.f_user_type[0],
|
|
344
|
+
f_gasproperties: this.newinfo.f_gasproperties[0],
|
|
345
|
+
f_price_type: this.newinfo.pricetype[0],
|
|
346
|
+
f_price_name: this.newinfo.pricename[0].f_price_name,
|
|
347
|
+
f_price_id: this.newinfo.pricename[0].f_price_id,
|
|
348
|
+
f_perform_date: this.newinfo.pricename[0].f_perform_date,
|
|
349
|
+
f_stairprice_id: this.newinfo.pricename[0].id,
|
|
350
|
+
// 修改原因
|
|
351
|
+
f_comments: this.newinfo.f_comments,
|
|
352
|
+
// 操作人组织机构信息
|
|
353
|
+
f_operator: this.$login.f.name,
|
|
354
|
+
f_operatorid: this.$login.f.id,
|
|
355
|
+
f_orgid: this.$login.f.orgid,
|
|
356
|
+
f_orgname: this.$login.f.orgs,
|
|
357
|
+
f_depid: this.$login.f.depids,
|
|
358
|
+
f_depname: this.$login.f.deps,
|
|
359
|
+
// 修改条件
|
|
360
|
+
con: com,
|
|
361
|
+
condition: condition,
|
|
362
|
+
fileuploadid: fileuploadid
|
|
363
|
+
}
|
|
364
|
+
if (this.priceid) {
|
|
365
|
+
if (this.newinfo.pricename[0].f_price_id == this.model.rows[0].f_price_id) {
|
|
366
|
+
this.$showMessage('选择的气价和当前气价相同, 请重新选择')
|
|
367
|
+
return
|
|
368
|
+
}
|
|
369
|
+
// 旧气价信息
|
|
370
|
+
param.f_user_type_old = this.model.rows[0].f_user_type
|
|
371
|
+
param.f_gasproperties_old = this.model.rows[0].f_gasproperties
|
|
372
|
+
param.f_price_type_old = this.model.rows[0].f_price_type
|
|
373
|
+
param.f_price_name_old = this.model.rows[0].f_price_name
|
|
374
|
+
param.f_price_id_old = this.model.rows[0].f_price_id
|
|
375
|
+
param.f_stairprice_id_old = this.model.rows[0].f_stairprice_id
|
|
376
|
+
let res = await this.$resetpost('rs/logic/pricechangeall', {data: param}, {resolveMsg: '更新成功', rejectMsg: '更新失败'})
|
|
377
|
+
this.$showMessage(`成功批量修改了${res.data}位用户的气价`)
|
|
378
|
+
} else {
|
|
379
|
+
param.oldinfo = this.param
|
|
380
|
+
let res = await this.$resetpost('rs/logic/pricechangebatch', {data: param}, {resolveMsg: '更新成功', rejectMsg: '更新失败'})
|
|
381
|
+
this.$showMessage(`成功批量修改了${res.data}位用户的气价`)
|
|
382
|
+
}
|
|
383
|
+
this.criteriaShow = false
|
|
384
|
+
this.close()
|
|
385
|
+
this.search()
|
|
386
|
+
},
|
|
387
|
+
userTypeChange () {
|
|
388
|
+
this.gasproperties = []
|
|
389
|
+
if (this.newinfo.f_user_type.length === 1) {
|
|
390
|
+
this.gasproperties = this.$appdata.getParam(this.newinfo.f_user_type[0])
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
search () {
|
|
394
|
+
this.$refs.paged.$refs.criteria.search()
|
|
395
|
+
},
|
|
396
|
+
changeprice () {
|
|
397
|
+
let rowdata = this.$refs.paged.$refs.grid.getRowData().length > 0 ? this.$refs.paged.$refs.grid.getRowData() : this.model.rows
|
|
398
|
+
if (this.priceid && this.model.rows.length > 0) {
|
|
399
|
+
this.oldinfo = {
|
|
400
|
+
f_user_type: this.model.rows[0].f_user_type,
|
|
401
|
+
f_gasproperties: this.model.rows[0].f_gasproperties,
|
|
402
|
+
f_price_type: this.model.rows[0].f_price_type,
|
|
403
|
+
f_price_name: this.model.rows[0].f_price_name,
|
|
404
|
+
f_price_id: this.model.rows[0].f_price_id,
|
|
405
|
+
f_stairprice_id: this.model.rows[0].f_stairprice_id
|
|
406
|
+
}
|
|
407
|
+
} else {
|
|
408
|
+
this.oldinfo = {
|
|
409
|
+
f_user_type: rowdata[0].f_user_type,
|
|
410
|
+
f_gasproperties: rowdata[0].f_gasproperties,
|
|
411
|
+
f_price_type: rowdata[0].f_price_type,
|
|
412
|
+
f_price_name: rowdata[0].f_price_name
|
|
413
|
+
}
|
|
414
|
+
for (var i = 1; i < rowdata.length; i++) {
|
|
415
|
+
if (rowdata[i].f_user_type !== rowdata[i - 1].f_user_type) {
|
|
416
|
+
this.oldinfo.f_user_type = ''
|
|
417
|
+
}
|
|
418
|
+
if (rowdata[i].f_gasproperties !== rowdata[i - 1].f_gasproperties) {
|
|
419
|
+
this.oldinfo.f_gasproperties = ''
|
|
420
|
+
}
|
|
421
|
+
if (rowdata[i].f_price_type !== rowdata[i - 1].f_price_type) {
|
|
422
|
+
this.oldinfo.f_price_type = ''
|
|
423
|
+
}
|
|
424
|
+
if (rowdata[i].f_price_name != rowdata[i - 1].f_price_name) {
|
|
425
|
+
this.oldinfo.f_price_name = ''
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
this.show = true
|
|
430
|
+
},
|
|
431
|
+
selfSearch (args) {
|
|
432
|
+
this.$refs.paged.$refs.grid.selectInit()
|
|
433
|
+
if (this.priceid) {
|
|
434
|
+
args.condition = `${args.condition} and f_price_id = '${this.priceid}'`
|
|
435
|
+
} else {
|
|
436
|
+
args.condition = `${args.condition} and f_orgid = '${this.$login.f.orgid}'`
|
|
437
|
+
}
|
|
438
|
+
this.condition = args.condition
|
|
439
|
+
this.model.search(args.condition, args.model)
|
|
440
|
+
},
|
|
441
|
+
dealmsg (val) {
|
|
442
|
+
this.$parent.f_userinfo_id = val.f_userinfo_id
|
|
443
|
+
this.$parent.listpage = false
|
|
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
|
+
}
|
|
454
|
+
rs = this.$GetSaleParam.getPriceAll(params)
|
|
455
|
+
}
|
|
456
|
+
if (rs.length === 0) {
|
|
457
|
+
this.newinfo.pricename = ''
|
|
458
|
+
}
|
|
459
|
+
return rs
|
|
460
|
+
},
|
|
461
|
+
priceChange (val) {
|
|
462
|
+
if (val && val.length > 0) {
|
|
463
|
+
// 展示气价备注
|
|
464
|
+
this.$set('newinfo.f_price_comments', val[0].f_comments ? val[0].f_comments : '无')
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
watch: {
|
|
469
|
+
'priceid' () {
|
|
470
|
+
this.search()
|
|
471
|
+
},
|
|
472
|
+
'priceorgid' () {
|
|
473
|
+
this.$LoadParams.loadParam(this.priceorgid ? this.priceorgid : this.f_filialeid)
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
computed: {
|
|
477
|
+
userstates () {
|
|
478
|
+
return [{label: '全部', value: ''}, {label: '销户', value: '销户'}, {label: '停用', value: '停用'}, ...this.$appdata.getParam('客户状态')]
|
|
479
|
+
},
|
|
480
|
+
gasStates () {
|
|
481
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
</script>
|
|
@@ -37,4 +37,6 @@ export default function () {
|
|
|
37
37
|
Vue.component('charge-list', (resolve) => { require(['./ChargeList'], resolve) })
|
|
38
38
|
// 过户
|
|
39
39
|
Vue.component('transfer-manage', (resolve) => { require(['./TransferManage'], resolve) })
|
|
40
|
+
// 使用该气价的用户信息
|
|
41
|
+
Vue.component('gasprice-user', (resolve) => { require(['./GasPriceUser'], resolve) })
|
|
40
42
|
}
|
|
@@ -48,20 +48,20 @@
|
|
|
48
48
|
:field="$parent.$parent.isIot?$parent.$parent.iotFields:$parent.$parent.fields"
|
|
49
49
|
:is-selected="true" :model="$parent.$parent.printModel"
|
|
50
50
|
@print-data="$parent.$parent.print()" print-name="购气流水"></print-data>
|
|
51
|
-
<export-excel :data="{condition:$parent.$parent.condition,f_user_id: model.f_user_id}" v-if="model.f_meter_type === '物联网表'"
|
|
52
|
-
:field="$parent.$parent.iotFields"
|
|
53
|
-
sqlurl="rs/logic/exportfile" sql-name="sale_WebChargeQuery" template-name='收费查询'
|
|
54
|
-
v-ref:exports
|
|
55
|
-
:choose-col="true"
|
|
51
|
+
<!-- <export-excel :data="{condition:$parent.$parent.condition,f_user_id: model.f_user_id}" v-if="model.f_meter_type === '物联网表'"-->
|
|
52
|
+
<!-- :field="$parent.$parent.iotFields"-->
|
|
53
|
+
<!-- sqlurl="rs/logic/exportfile" sql-name="sale_WebChargeQuery" template-name='收费查询'-->
|
|
54
|
+
<!-- v-ref:exports-->
|
|
55
|
+
<!-- :choose-col="true">-->
|
|
56
56
|
|
|
57
|
-
</export-excel
|
|
58
|
-
<export-excel :data="{condition:$parent.$parent.condition,f_user_id: model.f_user_id}" v-else
|
|
59
|
-
:field="$parent.$parent.fields"
|
|
60
|
-
sqlurl="rs/logic/exportfile" sql-name="sale_ChargeQuery" template-name='收费查询'
|
|
61
|
-
v-ref:exports
|
|
62
|
-
:choose-col="true"
|
|
57
|
+
<!-- </export-excel>-->
|
|
58
|
+
<!-- <export-excel :data="{condition:$parent.$parent.condition,f_user_id: model.f_user_id}" v-else-->
|
|
59
|
+
<!-- :field="$parent.$parent.fields"-->
|
|
60
|
+
<!-- sqlurl="rs/logic/exportfile" sql-name="sale_ChargeQuery" template-name='收费查询'-->
|
|
61
|
+
<!-- v-ref:exports-->
|
|
62
|
+
<!-- :choose-col="true">-->
|
|
63
63
|
|
|
64
|
-
</export-excel
|
|
64
|
+
<!-- </export-excel>-->
|
|
65
65
|
</div>
|
|
66
66
|
</div>
|
|
67
67
|
</div>
|
package/src/main.js
CHANGED
|
@@ -3,7 +3,7 @@ import all from 'vue-client/src/all'
|
|
|
3
3
|
import App from './App'
|
|
4
4
|
import system from 'system-clients/src/system'
|
|
5
5
|
import sale from './sale'
|
|
6
|
-
import wenxi from './filiale/
|
|
6
|
+
import wenxi from './filiale/qianneng/sale'
|
|
7
7
|
// import FilialeSale from './filiale/yuansheng/sale'
|
|
8
8
|
import address from 'address-client/src/address'
|
|
9
9
|
import ldap from 'ldap-clients/src/ldap'
|