sale-client 3.6.70 → 3.6.72

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.
@@ -1,5 +1,5 @@
1
1
  var path = require('path')
2
- const [localUrl, serverRul] = ['http://127.0.0.1:8080/', 'http://192.168.50.4:8400/']
2
+ const [localUrl, serverRul] = ['http://kf.yidagas.com:8400/', 'http://kf.yidagas.com:8400/']
3
3
  var merge = require('webpack-merge')
4
4
  var baseConfig = require('./webpack.dev.conf')
5
5
  var devConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.70",
3
+ "version": "3.6.72",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -265,7 +265,7 @@
265
265
  <payment-code v-ref:paymentcode :payment="model.f_payment" :row="row"
266
266
  :money="model.f_after_discount"></payment-code>
267
267
  </div>
268
- <upload v-if="config.showupload" :blodid="blodid" isremark="true" fusetype="发卡售气"></upload>
268
+ <upload v-if="config.showupload" :blodid="row.f_userinfo_id" isremark="true" fusetype="发卡售气"></upload>
269
269
  </template>
270
270
  <script>
271
271
  /**
@@ -78,7 +78,7 @@
78
78
  <saletab header="流量计参数查看" v-if="permission('流量计参数查看')">
79
79
  <meter-param :row="row" v-if="show == '流量计参数查看'" @deal-msg="dealMsg"></meter-param>
80
80
  </saletab>
81
- <saletab header="表使用量图表">
81
+ <saletab header="表使用量图表" v-if="permission('流量计参数查看')">
82
82
  <table-usage-chart :row="row" v-if="show == '表使用量图表'" @deal-msg="dealMsg"></table-usage-chart>
83
83
  </saletab>
84
84
  <saletab header="用户设备查询" v-if="permission('用户设备查看')">
@@ -110,9 +110,9 @@
110
110
  <th><nobr>开始抄表时间</nobr></th>
111
111
  <th><nobr>结束抄表时间</nobr></th>
112
112
  <th><nobr>气价名称</nobr></th>
113
- <th><nobr>系统气价</nobr></th>
114
- <th><nobr>输入气价</nobr></th>
115
- <th><nobr>单价差值</nobr></th>
113
+ <!-- <th><nobr>系统气价</nobr></th>-->
114
+ <!-- <th><nobr>输入气价</nobr></th>-->
115
+ <th><nobr>补差单价</nobr></th>
116
116
  <th><nobr>上期底数</nobr></th>
117
117
  <th><nobr>本期底数</nobr></th>
118
118
  <th><nobr>补差气量</nobr></th>
@@ -132,30 +132,37 @@
132
132
  <th style="text-align: center;"><nobr>{{row.f_end_date}}</nobr></th>
133
133
  <th style="text-align: center;">{{row.f_price_name}}</th>
134
134
  <!-- <th style="text-align: center;">{{row.f_address}}</th>-->
135
+ <!-- <th style="text-align: center;">-->
136
+ <!-- <div class="form-group" style="margin-bottom:0px;"-->
137
+ <!-- v-if="!row.f_new_price>0">-->
138
+ <!-- <input type="text" class="form-control" v-model="row.oldprice"-->
139
+ <!-- v-next-el="{id: $index+1}" :id="$index" style="width: 100px;padding: 6px;" :disabled="row.state === '开始'">-->
140
+ <!-- </div>-->
141
+ <!-- <div v-else>{{row.f_old_price}}</div>-->
142
+ <!-- </th>-->
143
+ <!-- <th style="text-align: center;">-->
144
+ <!-- <div class="form-group" style="margin-bottom:0px;"-->
145
+ <!-- v-if="!row.f_new_price>0">-->
146
+ <!-- <input type="text" class="form-control" v-model="row.newprice" @blur="$parent.$parent.$parent.enter(row)"-->
147
+ <!-- v-next-el="{id: $index+1}" :id="$index" style="width: 100px;padding: 6px;" :disabled="row.state === '开始'">-->
148
+ <!-- </div>-->
149
+ <!-- <div v-else>{{row.f_new_price}}</div>-->
150
+ <!-- </th>-->
135
151
  <th style="text-align: center;">
136
- <div class="form-group" style="margin-bottom:0px;"
137
- v-if="!row.f_new_price>0">
138
- <input type="text" class="form-control" v-model="row.oldprice"
152
+ <div class="form-group" style="margin-bottom:0px;" v-if="!row.f_surplus_id">
153
+ <input type="number" class="form-control" v-model="row.f_change_price" @blur="$parent.$parent.$parent.enter(row)"
139
154
  v-next-el="{id: $index+1}" :id="$index" style="width: 100px;padding: 6px;" :disabled="row.state === '开始'">
140
155
  </div>
141
- <div v-else>{{row.f_old_price}}</div>
156
+ <div v-else>{{row.f_change_price}}</div>
142
157
  </th>
143
- <th style="text-align: center;">
144
- <div class="form-group" style="margin-bottom:0px;"
145
- v-if="!row.f_new_price>0">
146
- <input type="text" class="form-control" v-model="row.newprice" @blur="$parent.$parent.$parent.enter(row)"
147
- v-next-el="{id: $index+1}" :id="$index" style="width: 100px;padding: 6px;" :disabled="row.state === '开始'">
148
- </div>
149
- <div v-else>{{row.f_new_price}}</div>
150
- </th>
151
- <th style="text-align: center;">{{row.f_change_price}}</th>
158
+ <!-- <th style="text-align: center;">{{row.f_change_price}}</th>-->
152
159
  <th style="text-align: center;">{{row.f_last_tablebase}}</th>
153
160
  <th style="text-align: center;">{{row.f_tablebase}}</th>
154
161
  <th style="text-align: center;">{{row.pregas}}</th>
155
162
  <th style="text-align: center;">{{row.f_surplus_fee}}</th>
156
163
  <th style="text-align: center;">{{row.f_source}}</th>
157
164
  <th style="text-align: center;">
158
- <button type="button" name="button" class="btn btn-link" v-if="row.f_new_price"
165
+ <button type="button" name="button" class="btn btn-link" v-if="row.f_surplus_id"
159
166
  @click.stop="$parent.$parent.$parent.delectHand(row) && row.states === 1">冲正
160
167
  </button>
161
168
  </th>
@@ -168,12 +175,8 @@
168
175
  </header>
169
176
  <article slot="modal-body" class="modal-body">
170
177
  <div class="form-group">
171
- <p>旧单价:</p>
172
- <input type="text" class="form-control" v-model="f_old_price" >
173
- </div>
174
- <div class="form-group">
175
- <p>新单价:</p>
176
- <input type="text" class="form-control" v-model="f_new_price" >
178
+ <p>补差单价:</p>
179
+ <input type="text" class="form-control" v-model="f_change_price" >
177
180
  </div>
178
181
  </article>
179
182
  <footer slot="modal-footer" class="modal-footer">
@@ -229,6 +232,7 @@
229
232
  model: new PagedList('rs/sql/get_WebUserCharge', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate', price_states: 'this.model.price_states[0]', addSelectParam: 'this.model.addSelectParam'}),
230
233
  f_new_price: 0.0,
231
234
  f_old_price:0.0,
235
+ f_change_price:0.0,
232
236
  show: false,
233
237
  addSelectParam: ''
234
238
  // joinTable:'',
@@ -282,7 +286,7 @@
282
286
  row.f_orgname = this.$login.f.orgs
283
287
  row.f_depid = this.$login.f.depids
284
288
  row.f_depname = this.$login.f.deps
285
- this.$resetpost('rs/logic/priceAdjustmentOffset', {data: row}).then(() => {
289
+ this.$resetpost('rs/logic/priceAdjustmentOffsetWebmeter', {data: row}).then(() => {
286
290
  // this.$dispatch('refresh', '正在处理', row)
287
291
  this.selfSearch(this.model)
288
292
  })
@@ -307,14 +311,17 @@
307
311
  })
308
312
  },
309
313
  async enter (row) {
310
- if(row.oldprice && row.newprice){
311
- this.$showMessage('是否确认对此记录进行调价补差操作?', ['confirm', 'cancel']).then((res) => {
314
+ if(row.f_change_price){
315
+ let money = parseFloat(row.pregas * row.f_change_price)
316
+ let message = `是否确认对此记录进行调价补差${money}元`
317
+ this.$showMessage(message, ['confirm', 'cancel']).then((res) => {
312
318
  if (res === 'confirm') {
313
319
  let http2 = new HttpResetClass()
314
320
  let param = {
315
321
  f_state: '有效',
316
- f_old_price:parseFloat(row.oldprice),
317
- f_new_price: parseFloat(row.newprice),
322
+ f_old_price:null,
323
+ f_new_price: null,
324
+ f_change_price:row.f_change_price,
318
325
  f_operator: this.$login.f.name,
319
326
  f_operatorid: this.$login.f.id,
320
327
  f_orgid: this.$login.f.orgid,
@@ -329,6 +336,8 @@
329
336
  this.selfSearch(this.model)
330
337
  })
331
338
 
339
+ }else{
340
+ // row.f_change_price = null
332
341
  }
333
342
  })
334
343
 
@@ -345,8 +354,9 @@
345
354
  console.log(detail.data)
346
355
  let param = {
347
356
  f_state: '有效',
348
- f_old_price:parseFloat(this.oldprice),
349
- f_new_price: parseFloat(this.f_new_price),
357
+ f_old_price:null,
358
+ f_new_price: null,
359
+ f_change_price:this.f_change_price,
350
360
  f_operator: this.$login.f.name,
351
361
  f_operatorid: this.$login.f.id,
352
362
  f_orgid: this.$login.f.orgid,
@@ -42,16 +42,21 @@
42
42
  <label for="gasbrand" class="font_normal_body">气表品牌</label>
43
43
  <input type="text" class="input_search" style="width:60%" v-show="false" v-model="$refs.brand.selectedItems"
44
44
  v-validate:brand='{required: true }'>
45
+ <!-- <v-select :value.sync="row.gasbrand" :options='meterbrands' placeholder='气表品牌' close-on-select
46
+ search @change='brandChange' v-model='row.gasbrand' :disabled="!((row.f_meter_classify.indexOf('卡表') !== -1&&row.f_user_state === '预备') || (row.f_meter_classify.indexOf('卡表') !== -1&&row.f_whether_hairpin === '未发'))" v-ref:brand></v-select>-->
45
47
  <v-select :value.sync="row.gasbrand" :options='meterbrands' placeholder='气表品牌' close-on-select
46
- search @change='brandChange' v-model='row.gasbrand' :disabled="!((row.f_meter_classify.indexOf('卡表') !== -1&&row.f_user_state === '预备') || (row.f_meter_classify.indexOf('卡表') !== -1&&row.f_whether_hairpin === '未发'))" v-ref:brand></v-select>
48
+ search @change='brandChange' v-model='row.gasbrand' :disabled="!((row.f_user_state === '预备' ||user_State === '预备') || (user_State === undefined || user_State === ''))" v-ref:brand></v-select>
47
49
  </div>
48
50
  <div class="col-sm-4 form-group" :class="[$m.model.required ? 'has-error' : '']">
49
51
  <label for="gasmodel" class="font_normal_body">气表型号</label>
50
52
  <input type="text" v-show="false" v-model="$refs.model.selectedItems"
51
53
  v-validate:model='{required: true }'>
54
+ <!-- <v-select :value.sync="row.gasmodel" :options='row.gasbrand[0].gasmodel' placeholder='气表型号'-->
55
+ <!-- close-on-select-->
56
+ <!-- v-model='row.gasmodel' :disabled="!(row.gasbrand.length !== 0 && ((row.f_meter_classify.indexOf('卡表') !== -1&&row.f_user_state === '预备') || (row.f_meter_classify.indexOf('卡表') !== -1&&row.f_whether_hairpin === '未发')))" v-ref:model></v-select>-->
52
57
  <v-select :value.sync="row.gasmodel" :options='row.gasbrand[0].gasmodel' placeholder='气表型号'
53
58
  close-on-select
54
- v-model='row.gasmodel' :disabled="!(row.gasbrand.length !== 0 && ((row.f_meter_classify.indexOf('卡表') !== -1&&row.f_user_state === '预备') || (row.f_meter_classify.indexOf('卡表') !== -1&&row.f_whether_hairpin === '未发')))" v-ref:model></v-select>
59
+ v-model='row.gasmodel' :disabled="!(row.gasbrand.length !== 0 && ((row.f_user_state === '预备' || user_State === '预备') || (user_State === undefined || user_State === '')))" v-ref:model></v-select>
55
60
  </div>
56
61
  <div class="col-sm-4 form-group">
57
62
  <label for="f_meter_base" class="font_normal_body">&ensp;累购气量</label>
@@ -564,18 +569,22 @@
564
569
  overdueset:[],
565
570
  isiot: true,
566
571
  templng: '', // 临时经度
567
- templat: '' // 临时纬度
572
+ templat: '', // 临时纬度
573
+ user_State: ''
568
574
  }
569
575
  },
570
576
  props: ['f_filialeid', 'meter', 'isdecimal', 'valid', 'f_userinfo_id', 'overdueset', 'curuser'],
571
577
  async ready () {
572
578
  console.log('看看meter里面的数据', this.meter, this.row)
579
+ this.user_State = this.curuser.f_user_state
580
+ console.log(this.user_State)
581
+ console.log(this.curuser.f_user_state)
573
582
  this.row = Object.assign(this.row, this.meter, {f_use_limit : this.$appdata.getSingleValue('报废年限')})
574
- if(this.row.f_meter_classify){
575
- if(this.row.f_meter_classify==='物联网表'){
576
- this.isiot=true
577
- }else{
578
- this.isiot=false
583
+ if (this.row.f_meter_classify) {
584
+ if (this.row.f_meter_classify === '物联网表') {
585
+ this.isiot = true
586
+ } else {
587
+ this.isiot = false
579
588
  }
580
589
  }
581
590
  this.oldrow = this.row
@@ -586,6 +595,13 @@
586
595
  }
587
596
  await this.getConcentrators()
588
597
  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---------------------')
589
605
  },
590
606
  methods: {
591
607
  gasDateChange () {
@@ -665,6 +681,13 @@
665
681
  co(brandChangeGen(this))
666
682
  }
667
683
  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('----------------------------------------')
668
691
  },
669
692
  userTypeChange () {
670
693
  this.gasproperties = []
@@ -90,6 +90,9 @@
90
90
  <th>
91
91
  <nobr>实收金额</nobr>
92
92
  </th>
93
+ <th>
94
+ <nobr>发票金额</nobr>
95
+ </th>
93
96
  <th>
94
97
  <nobr>不含税金额</nobr>
95
98
  </th>
@@ -99,9 +102,9 @@
99
102
  <th>
100
103
  <nobr>发票代码</nobr>
101
104
  </th>
102
- <th>
103
- <nobr>发票流水号</nobr>
104
- </th>
105
+ <!-- <th>-->
106
+ <!-- <nobr>发票流水号</nobr>-->
107
+ <!-- </th>-->
105
108
  <th>
106
109
  <nobr>发票号码</nobr>
107
110
  </th>
@@ -111,6 +114,9 @@
111
114
  <th>
112
115
  <nobr>发票类型</nobr>
113
116
  </th>
117
+ <th>
118
+ <nobr>收费时间</nobr>
119
+ </th>
114
120
  <th>
115
121
  <nobr>开票时间</nobr>
116
122
  </th>
@@ -127,14 +133,16 @@
127
133
  <th style="text-align:center">{{ row.f_userinfo_code }}</th>
128
134
  <th style="text-align:center">{{ row.f_user_name }}</th>
129
135
  <th style="text-align:center">{{ row.f_buy_address_phone }}</th>
136
+ <th style="text-align:center">{{ row.f_collection }}</th>
130
137
  <th style="text-align:center">{{ row.f_total_money }}</th>
131
138
  <th style="text-align:center">{{ row.f_tax_money }}</th>
132
139
  <th style="text-align:center">{{ row.f_invoice_type }}</th>
133
140
  <th style="text-align:center">{{ row.f_bill_code }}</th>
134
- <th style="text-align:center">{{ row.f_fpqqlsh }}</th>
141
+ <!-- <th style="text-align:center">{{ row.f_fpqqlsh }}</th>-->
135
142
  <th style="text-align:center">{{ row.f_bill_number }}</th>
136
143
  <th style="text-align:center">{{ row.f_bill_state }}</th>
137
144
  <th style="text-align:center">{{ row.f_charge_type }}</th>
145
+ <th style="text-align:center">{{ row.sell_operate_date }}</th>
138
146
  <th style="text-align:center">{{ row.f_operate_date }}</th>
139
147
  <th style="text-align:center">
140
148
  <button class="btn btn-link" v-if="row.f_bill_url"
@@ -166,6 +174,20 @@
166
174
  </data-grid>
167
175
  </criteria-paged>
168
176
  </div>
177
+ <table class="table-hover">
178
+ <tr style="position: relative" class="table-bordered">
179
+ <td
180
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
181
+ 汇总信息
182
+ </td>
183
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
184
+ 气量合计:&emsp;{{sumsmodel.f_collection}}
185
+ </td>
186
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
187
+ 应交金额合计:&emsp;{{sumsmodel.f_total_money}}
188
+ </td>
189
+ </tr>
190
+ </table>
169
191
  <modal v-if="show" :show.sync="show" v-ref:modal backdrop="false">
170
192
  <header slot="modal-header" class="modal-header">
171
193
  <h4 class="modal-title">撤销原因</h4>
@@ -198,7 +220,10 @@ export default {
198
220
  title: '发票管理',
199
221
  data () {
200
222
  return {
201
- model: new PagedList('rs/sql/eticket_query', 20),
223
+ model: new PagedList('rs/sql/eticket_query', 20, {}, {
224
+ f_collection: 0,
225
+ f_total_money: 0
226
+ }),
202
227
  curorgid: [this.$login.f.orgid],
203
228
  criteriaShow: false,
204
229
  eticket_show: false,
@@ -216,7 +241,11 @@ export default {
216
241
  bz: '',
217
242
  row: {},
218
243
  install_show: false,
219
- f_orgid: ''
244
+ f_orgid: '',
245
+ sumsmodel: {
246
+ f_collection: 0,
247
+ f_total_money: 0
248
+ },
220
249
  }
221
250
  },
222
251
  ready () {
@@ -236,6 +265,7 @@ export default {
236
265
  args.condition = `uf.f_filialeid in ${this.f_orgid} and ${args.condition}`
237
266
  }
238
267
  this.model.search(args.condition, args.model)
268
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
239
269
  },
240
270
  async confirm () {
241
271
  // 修改发票状态
@@ -441,6 +441,7 @@
441
441
  self.model.rows = getUser.data
442
442
  self.$dispatch('dblclick', getUser.data[0], 0, self.cardInfo) // 这里的0是角标位置(暂无用)
443
443
  } else if (getUser.data.length > 1) {
444
+ getUser.data = getUser.data.filter((res)=> {return res.f_filialeid===self.$login.f.orgid})
444
445
  if (self.model.rows.length == 1) {
445
446
  // 处理读卡时需要卡密码的问题:此时已经查出一户数据来,验证此数据的卡号和读出的卡号是否一致,一致则不用去查询
446
447
  let hasMatchingData = false
@@ -628,6 +629,7 @@
628
629
  self.model.rows = getUser.data
629
630
  self.$dispatch('dblclick', getUser.data[0], 0, self.cardInfo) // 这里的0是角标位置(暂无用)
630
631
  } else if (getUser.data.length > 1) {
632
+ getUser.data = getUser.data.filter((res)=> {return res.f_filialeid===self.$login.f.orgid})
631
633
  if (self.model.rows.length == 1) {
632
634
  // 处理读卡时需要卡密码的问题:此时已经查出一户数据来,验证此数据的卡号和读出的卡号是否一致,一致则不用去查询
633
635
  let hasMatchingData = false
@@ -264,7 +264,7 @@
264
264
  <payment-code v-ref:paymentcode :payment="model.f_payment" :row="row"
265
265
  :money="model.f_after_discount"></payment-code>
266
266
  </div>
267
- <upload v-if="config.showupload" isremark="true" fusetype="发卡售气"></upload>
267
+ <upload v-if="config.showupload" :blodid="row.f_userinfo_id" isremark="true" fusetype="发卡售气"></upload>
268
268
  </template>
269
269
  <script>
270
270
  /**
@@ -26,6 +26,4 @@ export default function () {
26
26
  Vue.component('iot-refund', (resolve) => { require(['./IOTRefund'], resolve) })
27
27
  // 物联网赠气
28
28
  Vue.component('iotTable', (resolve) => { require(['./iotTable'], resolve) })
29
- // 卡表赠气
30
- Vue.component('icTable', (resolve) => { require(['./icTable'], resolve) })
31
29
  }
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/yuansheng/sale'
6
+ import wenxi from './filiale/rizhao/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'