sale-client 3.6.72 → 3.6.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.72",
3
+ "version": "3.6.74",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="auto basic-main" style="height:95%">
3
- <criteria-paged :model="model" v-ref:paged>
3
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
4
4
  <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
5
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
6
  <div class="row">
@@ -16,6 +16,12 @@
16
16
  condition="f_user_name = '{}'" placeholder="用户姓名"
17
17
  >
18
18
  </div>
19
+ <div class="form-group col-sm-2">
20
+ <label class="font_normal_body">客户地址</label>
21
+ <input type="text" class="form-control" v-model="model.f_buy_address_phone" style="width:60%"
22
+ condition="f_buy_address_phone like '%{}%'" placeholder="用户姓名"
23
+ >
24
+ </div>
19
25
  <div class="form-group col-sm-2">
20
26
  <label class="font_normal_body">票据状态</label>
21
27
  <v-select id="f_bill_state"
@@ -32,6 +38,12 @@
32
38
  <div style="float: right">
33
39
  <button class="button_search" @click="search()">查 询</button>
34
40
  <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
41
+ <export-excel :data="$parent.$parent.getCondition"
42
+ :field="$parent.$parent.fields"
43
+ sqlurl="rs/logic/saleExport" sql-name="eticket_query"
44
+ template-name='发票记录导出'
45
+ :choose-col="true">
46
+ </export-excel>
35
47
  <div
36
48
  :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
37
49
  @click="$parent.$parent.criteriaShow=!$parent.$parent.criteriaShow"
@@ -63,6 +75,28 @@
63
75
  style="width:60%">
64
76
  </datepicker>
65
77
  </div>
78
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
79
+ <label class="font_normal_body">发票金额</label>
80
+ <div class="row">
81
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_collection_small"
82
+ condition="f_total_money >= {} " placeholder="">
83
+ <label class="font_normal_body"> ≤ x ≤ </label>
84
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_collection_big"
85
+ condition="f_total_money <= {} " placeholder="">
86
+ </div>
87
+ </div>
88
+ <div class="form-group col-sm-2">
89
+ <label class="font_normal_body">开票人&nbsp;&nbsp;</label>
90
+ <input type="text" class="form-control" v-model="model.f_operator" style="width:60%"
91
+ condition="f_operator = '{}' " placeholder="开票人"
92
+ >
93
+ </div>
94
+ <div class="form-group col-sm-2">
95
+ <label class="font_normal_body">收款人&nbsp;&nbsp;</label>
96
+ <input type="text" class="form-control" v-model="model.sell_operator" style="width:60%"
97
+ condition="sell_operator = '{}'" placeholder="收款人"
98
+ >
99
+ </div>
66
100
  </div>
67
101
  </div>
68
102
  </criteria>
@@ -79,7 +113,8 @@
79
113
  <nobr>客户地址电话</nobr>
80
114
  </th>
81
115
  <th>
82
- <nobr>实收金额</nobr>
116
+ <data-order field="f_total_money" name="实收金额"
117
+ :order.sync="$parent.$parent.$parent.orderFields.f_total_money"></data-order>
83
118
  </th>
84
119
  <th>
85
120
  <nobr>不含税金额</nobr>
@@ -105,6 +140,12 @@
105
140
  <th>
106
141
  <nobr>开票时间</nobr>
107
142
  </th>
143
+ <th>
144
+ <nobr>开票人</nobr>
145
+ </th>
146
+ <th>
147
+ <nobr>收款人</nobr>
148
+ </th>
108
149
  <th>
109
150
  <nobr>查看发票</nobr>
110
151
  </th>
@@ -127,6 +168,8 @@
127
168
  <th style="text-align:center">{{ row.f_bill_state }}</th>
128
169
  <th style="text-align:center">{{ row.f_charge_type }}</th>
129
170
  <th style="text-align:center">{{ row.f_operate_date }}</th>
171
+ <th style="text-align:center">{{ row.f_operator }}</th>
172
+ <th style="text-align:center">{{ row.sell_operator }}</th>
130
173
  <th style="text-align:center">
131
174
  <button class="btn btn-link" v-if="row.f_bill_url"
132
175
  @click="$parent.$parent.$parent.watch_ch(row.f_bill_url)">
@@ -186,7 +229,7 @@ export default {
186
229
  title: '发票管理',
187
230
  data () {
188
231
  return {
189
- model: new PagedList('rs/sql/eticket_query', 20),
232
+ model: new PagedList('rs/sql/eticket_query', 20, {orderitem: this.orderitem ? '"' + this.orderitem + ' "' : `'f_operate_date desc'`}),
190
233
  criteriaShow: false,
191
234
  eticket_show: false,
192
235
  orgCondtionStr: '',
@@ -202,6 +245,27 @@ export default {
202
245
  show: false,
203
246
  bz: '',
204
247
  row: {},
248
+ orderFields: {
249
+ f_operate_date: 'desc'
250
+ },
251
+ // 排序
252
+ orderitem: '',
253
+ fields: {
254
+ 'f_userinfo_code': '客户编号',
255
+ 'f_user_name': '客户姓名',
256
+ 'f_buy_address_phone': '用户地址',
257
+ 'f_total_money': '实收金额',
258
+ 'f_tax_money': '不含税金额',
259
+ 'f_invoice_type': '发票类型',
260
+ 'f_bill_code': '发票代码',
261
+ 'f_fpqqlsh': '发票流水号',
262
+ 'f_bill_number': '发票号码',
263
+ 'f_bill_state': '发票状态',
264
+ 'f_charge_type': '发票类型',
265
+ 'f_operate_date': '开票时间',
266
+ 'f_operator': '开票人',
267
+ 'sell_operator': '收款人'
268
+ },
205
269
  install_show: false
206
270
  }
207
271
  },
@@ -223,6 +287,23 @@ export default {
223
287
  selfSearch (args) {
224
288
  this.model.search(args.condition, args.model)
225
289
  },
290
+ sort (field, rule) {
291
+ // 将所有排序方式设为不排序,实现相互排斥
292
+ for (let key in this.orderFields) {
293
+ if (key === field) {
294
+ this.orderFields[key] = rule
295
+ } else {
296
+ this.orderFields[key] = 'no'
297
+ }
298
+ }
299
+ // 如果新规则不排序,还原为默认排序
300
+ if (rule === 'no') {
301
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
302
+ } else {
303
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
304
+ }
305
+ this.search()
306
+ },
226
307
  async confirm () {
227
308
  this.eticket_show = true
228
309
  await this.$refs.eticketbill.rushRedInvoice({id: this.row.f_sell_id, eticket_id: this.row.id, bz: this.bz})
@@ -256,6 +337,12 @@ export default {
256
337
  }
257
338
  },
258
339
  computed: {
340
+ getCondition () {
341
+ return {
342
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
343
+ orderitem: this.orderitem ? `${this.orderitem}` : " f_operate_date desc"
344
+ }
345
+ }
259
346
  },
260
347
  events: {
261
348
  'search' () {
@@ -114,6 +114,7 @@ export default {
114
114
  f_add_gas: this.model.f_add_gas,
115
115
  f_userinfo_id: this.data.f_userinfo_id,
116
116
  f_user_id: this.data.f_user_id,
117
+ f_calculation:this.data.f_calculation,
117
118
  f_userfiles_id: this.data.f_userfiles_id,
118
119
  f_user_name: this.data.f_user_name,
119
120
  f_user_type: this.data.f_user_type,
@@ -104,13 +104,21 @@
104
104
 
105
105
  </div>
106
106
  <div class="col-sm-4 form-group" v-if="gasmessage.f_meter_type[0].includes('卡表')||gasmessage.f_meter_type[0].includes('物联网表')">
107
- <label for="hasCard" class="font_normal_body">支持累购</label>
107
+ <label for="hasCard" class="font_normal_body">是否累购</label>
108
108
  <v-select :value.sync="gasmessage.f_support_purchase"
109
109
  :value-single="true"
110
110
  v-model="gasmessage.f_support_purchase"
111
111
  :options='isdecimal' placeholder='是否支持累购'
112
112
  close-on-select style="width: 60%"></v-select>
113
113
  </div>
114
+ <div class="col-sm-4 form-group" v-if="gasmessage.f_meter_type[0].includes('物联网表')">
115
+ <label for="hasCard" class="font_normal_body">是否扣费</label>
116
+ <v-select :value.sync="gasmessage.f_issupport_feededuction"
117
+ :value-single="true"
118
+ v-model="gasmessage.f_issupport_feededuction"
119
+ :options='isdecimal' placeholder='是否支持扣费'
120
+ close-on-select style="width: 60%"></v-select>
121
+ </div>
114
122
  <div v-if="gasmessage.f_meter_type[0].includes('卡表') || gasmessage.f_hascard[0]==='是'" class="row">
115
123
  <div class="col-sm-4 form-group" :class="[$v.f_cardnumber.required ? 'has-error' : 'has-success']">
116
124
  <label for="f_card_password" class="font_normal_body">&nbsp;&nbsp;&nbsp;卡号&nbsp;&nbsp;&nbsp;</label>
@@ -199,6 +207,7 @@ export default {
199
207
  f_hascard: '',
200
208
  f_support_bluetooth: '',
201
209
  f_support_purchase: '',
210
+ f_issupport_feededuction: '',
202
211
  f_share_times: '',
203
212
  f_share_open: '',
204
213
  f_priority: 100,
@@ -391,6 +400,7 @@ export default {
391
400
  f_hascard: '',
392
401
  f_support_bluetooth: '',
393
402
  f_support_purchase: '',
403
+ f_issupport_feededuction: '',
394
404
  f_police_gas: '',
395
405
  f_overdr_lines: '',
396
406
  f_share_times: '',
@@ -575,10 +575,7 @@
575
575
  },
576
576
  props: ['f_filialeid', 'meter', 'isdecimal', 'valid', 'f_userinfo_id', 'overdueset', 'curuser'],
577
577
  async ready () {
578
- console.log('看看meter里面的数据', this.meter, this.row)
579
578
  this.user_State = this.curuser.f_user_state
580
- console.log(this.user_State)
581
- console.log(this.curuser.f_user_state)
582
579
  this.row = Object.assign(this.row, this.meter, {f_use_limit : this.$appdata.getSingleValue('报废年限')})
583
580
  if (this.row.f_meter_classify) {
584
581
  if (this.row.f_meter_classify === '物联网表') {
@@ -595,13 +592,6 @@
595
592
  }
596
593
  await this.getConcentrators()
597
594
  co(meterBookGen(this))
598
- console.log('-----------------111111111-----------------------')
599
- console.log(this.curuser)
600
- console.log(this.row.f_user_state)
601
- console.log(this.row.meter)
602
- console.log(this.row.f_meter_classify)
603
- console.log(this.user_State)
604
- console.log('-------------------11111111---------------------')
605
595
  },
606
596
  methods: {
607
597
  gasDateChange () {
@@ -681,13 +671,6 @@
681
671
  co(brandChangeGen(this))
682
672
  }
683
673
  this.meternumberValidate()
684
- console.log('----------------------------------------')
685
- console.log(this.user_State)
686
- console.log(this.row.f_whether_hairpin)
687
- console.log(this.row.f_user_state)
688
- console.log(this.row.gasbrand.length)
689
- console.log(this.row.gasbrand)
690
- console.log('----------------------------------------')
691
674
  },
692
675
  userTypeChange () {
693
676
  this.gasproperties = []
@@ -78,7 +78,7 @@
78
78
  <th v-show="false"><nobr>抄表月份</nobr></th>
79
79
  <th v-show="false"><nobr>用气周期</nobr></th>
80
80
  <th><nobr>上传日期</nobr></th>
81
- <th><nobr>下发日期</nobr></th>
81
+ <th><nobr>录入日期</nobr></th>
82
82
  <th><nobr>上期底数</nobr></th>
83
83
  <th><nobr>本期底数</nobr></th>
84
84
  <th><nobr>上期余额</nobr></th>
@@ -71,7 +71,7 @@
71
71
  <th v-show="false"><nobr>抄表月份</nobr></th>
72
72
  <th v-show="false"><nobr>用气周期</nobr></th>
73
73
  <th><nobr>上传日期</nobr></th>
74
- <th><nobr>下发日期</nobr></th>
74
+ <th><nobr>录入日期</nobr></th>
75
75
  <th><nobr>上期底数</nobr></th>
76
76
  <th><nobr>本期底数</nobr></th>
77
77
  <th><nobr>上期余额</nobr></th>
@@ -236,6 +236,7 @@ let LogicService = {
236
236
  f_is_step: model.f_is_step,
237
237
  f_priority: model.f_priority,
238
238
  f_support_purchase: model.f_support_purchase,
239
+ f_issupport_feededuction: model.f_issupport_feededuction,
239
240
  f_hascard: model.f_hascard,
240
241
  f_share_times: model.f_share_times,
241
242
  f_share_open: model.f_share_open,