sale-client 3.6.269 → 3.6.270
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/.npmignore +12 -0
- package/package.json +1 -1
- package/src/.npmignore +1 -0
- package/src/components/revenue/comprehen/Bill/EticketV4/EticketManage.vue +4 -4
- package/src/components/revenue/comprehen/Bill/EticketV4/EticketOpenJBPage.vue +35 -33
- package/src/filiale/meihekou/ChargeList.vue +21 -11
- package/src/filiale/meihekou/HandManager.vue +4 -0
- package/src/filiale/meihekou/UserBaseInfoNew.vue +488 -0
- package/src/filiale/meihekou/meterinfodetail.vue +244 -0
- package/src/filiale/meihekou/sale.js +3 -0
- package/src/filiale/shangluo/ChangeMeter.vue +1184 -0
- package/src/filiale/shangluo/sale.js +2 -0
- package/src/filiale/tongchuan/EticketManage.vue +3 -3
- package/src/filiale/tongchuan/bill/EticketOpenIotSalePage.vue +333 -0
- package/src/filiale/tongchuan/bill/EticketOpenPage.vue +8 -8
- package/src/filiale/tongchuan/bill/EticketPrint.vue +4 -1
- package/src/filiale/tongchuan/sale.js +2 -0
- package/src/sale.js +1 -1
- package/yarn.lock +12035 -0
- package/.gradle/7.4/checksums/checksums.lock +0 -0
- package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
- package/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
- package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
- package/.gradle/7.4/fileChanges/last-build.bin +0 -0
- package/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
- package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
- package/.gradle/7.4/gc.properties +0 -0
package/.npmignore
ADDED
package/package.json
CHANGED
package/src/.npmignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
<tabs header="开票记录" v-if="permission('开票记录查询')">
|
|
4
4
|
<e-ticket-record-list-query-v4></e-ticket-record-list-query-v4>
|
|
5
5
|
</tabs>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
<!--<tabs header="物联网表结算" v-if="permission('物联网表结算开票')">-->
|
|
7
|
+
<!-- <e-ticket-open-iot-query-v4></e-ticket-open-iot-query-v4>-->
|
|
8
|
+
<!--</tabs>-->
|
|
9
9
|
<tabs header="卡表结算" v-if="permission('卡表结算开票')">
|
|
10
10
|
<e-ticket-open-card-query-v4></e-ticket-open-card-query-v4>
|
|
11
11
|
</tabs>
|
|
12
|
-
<tabs header="
|
|
12
|
+
<tabs header="抄表结算" v-if="permission('抄表结算开票')">
|
|
13
13
|
<e-ticket-open-hand-query-v4></e-ticket-open-hand-query-v4>
|
|
14
14
|
</tabs>
|
|
15
15
|
<tabs header="自定义开票" v-if="permission('自定义开票')">
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
</div>
|
|
51
51
|
<div style="float: right">
|
|
52
52
|
<button class="button_search" @click="search()">查 询</button>
|
|
53
|
-
|
|
53
|
+
<button class="button_search" @click="$parent.$parent.open_eTicket()">开票</button>
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
56
|
</div>
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
60
60
|
<template partial='head'>
|
|
61
61
|
<tr>
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
<th>
|
|
63
|
+
<input type="checkbox" @click="$parent.$parent.$parent.addOrRemove($parent.$parent.$parent.selectAll)"
|
|
64
|
+
style="width: 22px;height: 22px" :checked="$parent.$parent.$parent.selectAll">
|
|
65
|
+
</th>
|
|
66
66
|
<th>客户编号</th>
|
|
67
67
|
<th>客户姓名</th>
|
|
68
68
|
<th>客户地址</th>
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
</template>
|
|
79
79
|
<template partial='body' :model="model">
|
|
80
80
|
<tr>
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
<td style="text-align:center">
|
|
82
|
+
<input type="checkbox" v-model="$parent.$parent.$parent.selecteds" :value="row"
|
|
83
|
+
style="width: 22px;height: 22px" @click="$parent.$parent.$parent.checkbox($index, $event)">
|
|
84
|
+
</td>
|
|
85
85
|
<th style="text-align:center">{{ row.f_userinfo_code }}</th>
|
|
86
86
|
<th style="text-align:center">{{ row.f_user_name }}</th>
|
|
87
87
|
<th style="text-align:center">{{ row.f_address }}</th>
|
|
@@ -93,7 +93,8 @@
|
|
|
93
93
|
<th style="text-align:center">{{ row.is_bill }}</th>
|
|
94
94
|
<th style="text-align:center">{{ row.f_hand_date }}</th>
|
|
95
95
|
<th>
|
|
96
|
-
<button class="btn btn-link" @click="$parent.$parent.$parent.kp(row)"
|
|
96
|
+
<button class="btn btn-link" @click="$parent.$parent.$parent.kp(row)">开具发票
|
|
97
|
+
</button>
|
|
97
98
|
</th>
|
|
98
99
|
</tr>
|
|
99
100
|
</template>
|
|
@@ -113,7 +114,7 @@
|
|
|
113
114
|
<input class="form-control col-sm-2"
|
|
114
115
|
v-model="row.f_paper_name" placeholder="开票名称">
|
|
115
116
|
</div>
|
|
116
|
-
<div class="col-sm-6 form-group form-input-group"
|
|
117
|
+
<div class="col-sm-6 form-group form-input-group">
|
|
117
118
|
<nobr class="col-sm-4"><label class="control-label">是否征税:</label></nobr>
|
|
118
119
|
<v-select v-model="invoice_is_pax"
|
|
119
120
|
placeholder='请选择'
|
|
@@ -125,7 +126,7 @@
|
|
|
125
126
|
:options='is_pax' clear-button>
|
|
126
127
|
</v-select>
|
|
127
128
|
</div>
|
|
128
|
-
<div class="col-sm-6 form-group form-input-group"
|
|
129
|
+
<div class="col-sm-6 form-group form-input-group" :class="[!row.f_paper_type ? 'has-error' : '']">
|
|
129
130
|
<label class="control-label">发票种类:</label>
|
|
130
131
|
<v-select v-model="row.f_paper_type"
|
|
131
132
|
placeholder='请选择'
|
|
@@ -167,8 +168,8 @@
|
|
|
167
168
|
</article>
|
|
168
169
|
<footer slot="modal-footer" class="modal-footer">
|
|
169
170
|
<button type="button" class="btn button_search"
|
|
170
|
-
:disabled="!(row.f_paper_name&&row.
|
|
171
|
-
@click='confirm'
|
|
171
|
+
:disabled="!(row.f_paper_name&&row.f_address_phone)"
|
|
172
|
+
@click='confirm'>确认收费
|
|
172
173
|
</button>
|
|
173
174
|
</footer>
|
|
174
175
|
</modal>
|
|
@@ -177,7 +178,6 @@
|
|
|
177
178
|
<script>
|
|
178
179
|
import {HttpResetClass, PagedList} from 'vue-client'
|
|
179
180
|
import * as Util from '../../../../../Util'
|
|
180
|
-
|
|
181
181
|
let asyncReadyGen = async function (self) {
|
|
182
182
|
self.$refs.paged.$refs.cri.model.f_start_date = Util.toStandardDateString()
|
|
183
183
|
self.$refs.paged.$refs.cri.model.f_end_date = Util.toStandardDateString()
|
|
@@ -185,7 +185,7 @@ let asyncReadyGen = async function (self) {
|
|
|
185
185
|
}
|
|
186
186
|
export default {
|
|
187
187
|
title: '发票管理',
|
|
188
|
-
data() {
|
|
188
|
+
data () {
|
|
189
189
|
return {
|
|
190
190
|
model: new PagedList('rs/sql/open_eticket_JBquery', 20,
|
|
191
191
|
{}),
|
|
@@ -218,15 +218,15 @@ export default {
|
|
|
218
218
|
mid: [{label: '全部', value: ''}, {label: '是', value: ' > 0 '}, {label: '否', value: ' is null'}]
|
|
219
219
|
}
|
|
220
220
|
},
|
|
221
|
-
ready() {
|
|
222
|
-
this.$refs.paged.$refs.cri.model.mid
|
|
221
|
+
ready () {
|
|
222
|
+
this.$refs.paged.$refs.cri.model.mid=[' is null']
|
|
223
223
|
asyncReadyGen(this)
|
|
224
224
|
},
|
|
225
225
|
methods: {
|
|
226
|
-
search() {
|
|
226
|
+
search () {
|
|
227
227
|
this.$refs.paged.$refs.cri.search()
|
|
228
228
|
},
|
|
229
|
-
async kp(row) {
|
|
229
|
+
async kp (row) {
|
|
230
230
|
let HttpReset = new HttpResetClass()
|
|
231
231
|
let _row = await HttpReset.load('POST', 'rs/sql/sale_getUser', {
|
|
232
232
|
data: {
|
|
@@ -236,6 +236,7 @@ export default {
|
|
|
236
236
|
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
237
237
|
this.row = _row.data[0]
|
|
238
238
|
this.row.id = row.id
|
|
239
|
+
this.selecteds = [{id: row.id}]
|
|
239
240
|
this.invoice_show_gas = this.row.f_collection_type == '按气量' ? '是' : '否'
|
|
240
241
|
if (!this.row.f_taxpayer_id) {
|
|
241
242
|
this.row.f_taxpayer_id = this.row.f_idnumber
|
|
@@ -251,7 +252,7 @@ export default {
|
|
|
251
252
|
}
|
|
252
253
|
this.eticket_msg = true
|
|
253
254
|
},
|
|
254
|
-
async open_eTicket() {
|
|
255
|
+
async open_eTicket () {
|
|
255
256
|
if ([...new Set(this.selecteds.map(item => item.f_userinfo_code))].length > 1) {
|
|
256
257
|
this.$showAlert('所选择用户不是同一用户!!', 'warning', 2000)
|
|
257
258
|
return
|
|
@@ -263,7 +264,7 @@ export default {
|
|
|
263
264
|
//
|
|
264
265
|
// }
|
|
265
266
|
// })
|
|
266
|
-
return this.$showAlert('已结算的记录不能再次结算开票',
|
|
267
|
+
return this.$showAlert('已结算的记录不能再次结算开票','warning',3000)
|
|
267
268
|
}
|
|
268
269
|
let HttpReset = new HttpResetClass()
|
|
269
270
|
let row = await HttpReset.load('POST', 'rs/sql/sale_getUser', {
|
|
@@ -283,27 +284,28 @@ export default {
|
|
|
283
284
|
if (!this.row.f_address_phone) {
|
|
284
285
|
this.row.f_address_phone = this.row.f_address + ' ' + this.row.f_user_phone
|
|
285
286
|
}
|
|
286
|
-
if
|
|
287
|
+
if(!this.row.f_email){
|
|
287
288
|
this.row.f_email = this.row.f_email
|
|
288
289
|
}
|
|
289
290
|
this.eticket_msg = true
|
|
290
291
|
},
|
|
291
|
-
confirm() {
|
|
292
|
+
confirm () {
|
|
292
293
|
this.eticket_msg = false
|
|
293
294
|
this.eticket_show = true
|
|
294
|
-
|
|
295
|
+
console.log('>>> 抄表结算开票')
|
|
296
|
+
this.$refs.eticketbill.openETicket(this.selecteds.map(item => item.id), this.row, this.invoice_show_gas, this.invoice_is_pax, '机表结算')
|
|
295
297
|
},
|
|
296
|
-
selfSearch(args) {
|
|
298
|
+
selfSearch (args) {
|
|
297
299
|
this.selecteds = []
|
|
298
300
|
// let f_orgstr = this.orgCondtionStr
|
|
299
301
|
// args.condition = `${args.condition} ` + f_orgstr
|
|
300
302
|
this.model.search(args.condition, args.model)
|
|
301
303
|
},
|
|
302
|
-
eticket_toggle() {
|
|
304
|
+
eticket_toggle () {
|
|
303
305
|
this.eticket_show = false
|
|
304
306
|
this.search()
|
|
305
307
|
},
|
|
306
|
-
addOrRemove(is) {
|
|
308
|
+
addOrRemove (is) {
|
|
307
309
|
this.selecteds = []
|
|
308
310
|
if (!is) { // 添加本页所有数据到ids中
|
|
309
311
|
this.model.rows.forEach((row) => {
|
|
@@ -319,7 +321,7 @@ export default {
|
|
|
319
321
|
this.selectAll = false
|
|
320
322
|
}
|
|
321
323
|
},
|
|
322
|
-
checkbox(val, event) {
|
|
324
|
+
checkbox (val, event) {
|
|
323
325
|
// this.selecteds = []
|
|
324
326
|
if (event.target.checked === true) {
|
|
325
327
|
// for (let i = 0; i <= val; i++) {
|
|
@@ -334,18 +336,18 @@ export default {
|
|
|
334
336
|
}
|
|
335
337
|
},
|
|
336
338
|
computed: {
|
|
337
|
-
getPayee() {
|
|
339
|
+
getPayee () {
|
|
338
340
|
return this.$GetSaleParam.getPayee()
|
|
339
341
|
},
|
|
340
|
-
getReviewer() {
|
|
342
|
+
getReviewer () {
|
|
341
343
|
return this.$GetSaleParam.getReviewer()
|
|
342
344
|
},
|
|
343
|
-
getDrawer() {
|
|
345
|
+
getDrawer () {
|
|
344
346
|
return this.$GetSaleParam.getDrawer()
|
|
345
347
|
}
|
|
346
348
|
},
|
|
347
349
|
events: {
|
|
348
|
-
'search'() {
|
|
350
|
+
'search' () {
|
|
349
351
|
this.search()
|
|
350
352
|
}
|
|
351
353
|
},
|
|
@@ -154,26 +154,36 @@
|
|
|
154
154
|
<th style="white-space: nowrap;">客户编号</th>
|
|
155
155
|
<th style="white-space: nowrap;">客户基本信息</th>
|
|
156
156
|
<th style="white-space: nowrap;">表具信息</th>
|
|
157
|
-
<th style="white-space: nowrap;"
|
|
158
|
-
|
|
157
|
+
<th style="white-space: nowrap;">表具品牌</th>
|
|
158
|
+
<th style="white-space: nowrap;">气价名称</th>
|
|
159
|
+
<th style="white-space: nowrap;">气表类型</th>
|
|
160
|
+
<th style="white-space: nowrap;">表具状态</th>
|
|
161
|
+
<th style="white-space: nowrap;">档案状态</th>
|
|
159
162
|
</tr>
|
|
160
163
|
</template>
|
|
161
164
|
<template partial='body'>
|
|
162
|
-
<td :class="{'bg-danger' : row.f_table_state === '停用' }" style="text-align: center;">{{$index + 1}}</td>
|
|
163
|
-
<td :class="{'bg-danger' : row.f_table_state === '停用' }">
|
|
165
|
+
<td :class="{'bg-danger' : row.f_table_state === '停用' || row.f_user_state === '销户' }" style="text-align: center;">{{$index + 1}}</td>
|
|
166
|
+
<td :class="{'bg-danger' : row.f_table_state === '停用' || row.f_user_state === '销户' }">
|
|
164
167
|
<nobr>
|
|
165
168
|
<span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
|
|
166
169
|
</nobr>
|
|
167
170
|
</td>
|
|
168
|
-
<td style="white-space: nowrap;" :class="{'bg-danger' : row.f_table_state === '停用' }">{{row.f_user_name}} {{row.f_user_phone}} {{row.f_address}}</td>
|
|
169
|
-
<td style="white-space: nowrap;" :class="{'bg-danger' : row.f_table_state === '停用' }">{{row.f_user_id}} {{row.f_gasproperties}}
|
|
170
|
-
{{row.f_meter_style}} {{row.f_price_type}}
|
|
171
|
+
<td style="white-space: nowrap;" :class="{'bg-danger' : row.f_table_state === '停用' || row.f_user_state === '销户' }">{{row.f_user_name}} {{row.f_user_phone}} {{row.f_address}}</td>
|
|
172
|
+
<td style="white-space: nowrap;" :class="{'bg-danger' : row.f_table_state === '停用' || row.f_user_state === '销户' }">{{row.f_user_id}} {{row.f_gasproperties}}
|
|
173
|
+
{{row.f_meter_style}} {{row.f_price_type}}
|
|
171
174
|
</td>
|
|
172
|
-
<td style="white-space: nowrap;" :class="{'bg-danger' : row.f_table_state === '停用' }"
|
|
173
|
-
|
|
174
|
-
|
|
175
|
+
<td style="white-space: nowrap;" :class="{'bg-danger' : row.f_table_state === '停用' || row.f_user_state === '销户' }">{{row.f_meter_brand}}
|
|
176
|
+
</td>
|
|
177
|
+
<td style="white-space: nowrap;" :class="{'bg-danger' : row.f_table_state === '停用' || row.f_user_state === '销户' }">{{row.f_price_name}}
|
|
178
|
+
</td>
|
|
179
|
+
<td style="white-space: nowrap;" :class="{'bg-danger' : row.f_table_state === '停用' || row.f_user_state === '销户' }"
|
|
180
|
+
style="text-align: center;">{{row.f_meter_type}}
|
|
181
|
+
</td>
|
|
182
|
+
<td style="white-space: nowrap;" :class="{'bg-danger' : row.f_table_state === '停用' || row.f_user_state === '销户' }">{{row.f_meter_type.includes('物联网表') ?
|
|
183
|
+
row.f_table_state : row.f_whether_hairpin }}
|
|
184
|
+
</td>
|
|
185
|
+
<td style="white-space: nowrap;" :class="{'bg-danger' : row.f_table_state === '停用' || row.f_user_state === '销户' }">{{row.f_user_state}}
|
|
175
186
|
</td>
|
|
176
|
-
|
|
177
187
|
</template>
|
|
178
188
|
</data-grid>
|
|
179
189
|
<!--<meter-charge-record-query partial='list' v-if="$parent.row" :searchdata="$parent.row"></meter-charge-record-query>-->
|
|
@@ -899,6 +899,10 @@
|
|
|
899
899
|
this.$showAlert(res.data.length === 0 ? '没有查询到用户' : '查询到多条用户信息', 'warning', 3000)
|
|
900
900
|
return
|
|
901
901
|
}
|
|
902
|
+
if (!(res.data[0].f_meter_classify === '机表')) {
|
|
903
|
+
this.$showAlert('只能进行机表抄表', 'warning', 3000)
|
|
904
|
+
return
|
|
905
|
+
}
|
|
902
906
|
if (res.data[0].f_meter_state === '未抄表') {
|
|
903
907
|
this.$showAlert('用户有已下发未抄表的记录', 'warning', 3000)
|
|
904
908
|
}
|