sale-client 3.6.116 → 3.6.118

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.116",
3
+ "version": "3.6.118",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -262,6 +262,9 @@ export default {
262
262
  'resflushvalue' () {
263
263
  this.$refs.info.$refs.valueaddinfo.reflush()
264
264
  },
265
+ 'resflushrowdata' () {
266
+ this.toBusiness(this.row)
267
+ },
265
268
  'refreshrow' (val) {
266
269
  console.log(val)
267
270
  this.row = val
@@ -852,7 +852,8 @@ export default {
852
852
  if (this.row.f_meter_type.includes('物联网表')) {
853
853
  this.$dispatch('refresh')
854
854
  } else {
855
- this.$dispatch('button-specifies', {name: '机表收费', value: 'machine-charge'}, this.row)
855
+ this.$dispatch('resflushrowdata')
856
+ // this.$dispatch('button-specifies', {name: '机表收费', value: 'machine-charge'}, this.row)
856
857
  }
857
858
  })
858
859
  }
@@ -319,6 +319,24 @@ export default {
319
319
  this.$dispatch('success', '换表', this.row)
320
320
  },
321
321
  async confirmbefore () {
322
+ if (this.model.metermessage.f_meter_type[0] === '物联网表') {
323
+ let param = {
324
+ f_userfiles_id: this.row.f_userfiles_id,
325
+ f_meternumber: this.model.metermessage.f_meternumber,
326
+ f_gasbrand_id: this.model.metermessage.gasbrand[0].id
327
+ }
328
+
329
+ let res = await this.$resetpost('rs/logic/meternumberValidate', param, {
330
+ resolveMsg: null,
331
+ rejectMsg: '表号验证失败!!'
332
+ })
333
+ console.log('标号验证返回:', res)
334
+ if (res.data) {
335
+ this.metermessage.f_meternumber = ''
336
+ this.$showAlert('表号已存在!!', 'warning', 3000)
337
+ return
338
+ }
339
+ }
322
340
  if (this.model.metermessage.f_meter_type[0] != '机表') {
323
341
  console.log('进来了')
324
342
  if (this.books.data.length > 0) {
@@ -97,6 +97,9 @@
97
97
  <th>
98
98
  <nobr>气价编号</nobr>
99
99
  </th>
100
+ <th>
101
+ <nobr>气价ID</nobr>
102
+ </th>
100
103
  <th v-show="!$parent.$parent.$parent.$parent.usershow && !($parent.$parent.$parent.$parent.isdetail && !$parent.$parent.$parent.$parent.usershow)">
101
104
  <nobr>气价名称</nobr>
102
105
  </th>
@@ -139,6 +142,7 @@
139
142
  <tr>
140
143
  <td style="text-align:center">{{$index + 1}}</td>
141
144
  <td style="text-align:center">{{row.f_price_id}}</td>
145
+ <td style="text-align:center">{{row.id}}</td>
142
146
  <td style="text-align:center" v-show="!$parent.$parent.$parent.$parent.usershow && !($parent.$parent.$parent.$parent.isdetail && !$parent.$parent.$parent.$parent.usershow)"><nobr>{{row.f_price_name}}</nobr></td>
143
147
  <td style="text-align:center" v-show="!$parent.$parent.$parent.$parent.usershow && !($parent.$parent.$parent.$parent.isdetail && !$parent.$parent.$parent.$parent.usershow)">{{row.f_user_type}}</td>
144
148
  <td style="text-align:center" v-show="!$parent.$parent.$parent.$parent.usershow && !($parent.$parent.$parent.$parent.isdetail && !$parent.$parent.$parent.$parent.usershow)">{{row.f_gasproperties}}</td>