sale-client 3.6.160 → 3.6.162

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 [ serverRul, localUrl ] = ['http://121.36.106.17:8400/', 'http://121.36.106.17:8400/']
2
+ const [ serverRul, localUrl ] = ['http://140.249.18.101:8400/', 'http://140.249.18.101: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.160",
3
+ "version": "3.6.162",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -225,6 +225,7 @@ export default {
225
225
  'row' (val) {
226
226
 
227
227
  },
228
+
228
229
  'success' (name, row, res) {
229
230
  this.setsustainMoney()
230
231
  // name === '发卡售气' ? this.$refs.list.toNext(this.index) : null
@@ -265,6 +266,9 @@ export default {
265
266
  'resflushrowdata' () {
266
267
  this.toBusiness(this.row)
267
268
  },
269
+ 'resflushdata' (data) {
270
+ this.toBusiness(data)
271
+ },
268
272
  'refreshrow' (val) {
269
273
  console.log(val)
270
274
  this.row = val
@@ -227,6 +227,18 @@ export default {
227
227
  // 发生换表成功
228
228
  getNewmetermsg(this, row)
229
229
  },
230
+ 'toroute' (buttonObj, data) {
231
+ console.log('指定按钮。。', buttonObj)
232
+ this.$resetpost('rs/sql/sale_getUser', {
233
+ data: {condition: `i.f_userinfo_code='${data.f_userinfo_code}' and u.f_filialeid = '${data.f_filialeid}'`, orderitem: `f_userinfo_id Desc`}
234
+ }, {resolveMsg: null, rejectMsg: '获取用户信息失败'}).then((res)=>{
235
+ if (buttonObj) {
236
+ this.$dispatch('resflushdata', res.data[0])
237
+ this.styleChange(buttonObj.name)
238
+ this.$refs.route.init(buttonObj.value, {row: res.data[0]})
239
+ }
240
+ })
241
+ },
230
242
  'button-specifies'(buttonObj, data) {
231
243
  console.log('指定按钮。。', buttonObj)
232
244
  // buttonObj 格式: {name:'机表收费', value: 'machine-meter-center'}
@@ -657,7 +657,6 @@
657
657
  // 校验发票信息
658
658
  checkInvoiceMsg (flag) {
659
659
  if (flag) return
660
- if (this.config.quickSale) {
661
660
  // 校验是否超出最大透支余额
662
661
  if (this.model.f_payment == '系统余额透支') {
663
662
  const maxOverdraftBalance = -(((this.$appdata.getSingleValue('最大透支余额') - 0) || 1000) - 0)
@@ -684,7 +683,6 @@
684
683
  this.confirm()
685
684
  }
686
685
 
687
- }
688
686
  },
689
687
  eticket_toggle () {
690
688
  this.eticket_show = false
@@ -45,6 +45,7 @@
45
45
  <th><nobr>生效时间</nobr></th>
46
46
  <th><nobr>操作时间</nobr></th>
47
47
  <th><nobr>操作人</nobr></th>
48
+ <th><nobr>变更原因</nobr></th>
48
49
  </tr>
49
50
  </template>
50
51
  <template partial='body' partial='list' v-ref:grid>
@@ -58,6 +59,7 @@
58
59
  <td style="text-align:center"><nobr>{{row.f_perform_date}}</nobr></td>
59
60
  <td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
60
61
  <td style="text-align:center"><nobr>{{row.f_operator}}</nobr></td>
62
+ <td style="text-align:center"><nobr>{{row.f_change_reason}}</nobr></td>
61
63
  </tr>
62
64
  </template>
63
65
  <template partial='foot'></template>
@@ -197,7 +197,12 @@
197
197
  </div>
198
198
 
199
199
  </div>
200
-
200
+ <div class="row" style="margin-top: 2%">
201
+ <div class="col-sm-12 flex-row" v-if="newinfo.f_comments==='其他原因'">
202
+ <label class="control-label">其他原因</label>
203
+ <input type="text" class="input_search" style="width:80%" v-model="newinfo.f_other_comments" placeholder='其他原因' >
204
+ </div>
205
+ </div>
201
206
  </div>
202
207
  </form>
203
208
  </div>
@@ -236,6 +241,7 @@
236
241
  f_gasproperties: '',
237
242
  pricetype: '',
238
243
  pricename: '',
244
+ f_other_comments: '',
239
245
  f_comments: ''
240
246
  },
241
247
  oldinfo: {
@@ -312,6 +318,7 @@
312
318
  })
313
319
  },
314
320
  async modifyUser () {
321
+
315
322
  let rowdata = this.$refs.paged.$refs.grid.getRowData()
316
323
  if (rowdata.length === 0) {
317
324
  // 提示
@@ -340,7 +347,7 @@
340
347
  f_perform_date: this.newinfo.pricename[0].f_perform_date,
341
348
  f_stairprice_id: this.newinfo.pricename[0].id,
342
349
  // 修改原因
343
- f_comments: this.newinfo.f_comments,
350
+ f_comments: this.newinfo.f_other_comments ? this.newinfo.f_other_comments:this.newinfo.f_comments,
344
351
  // 操作人组织机构信息
345
352
  f_operator: this.$login.f.name,
346
353
  f_operatorid: this.$login.f.id,
@@ -379,7 +386,7 @@
379
386
  },
380
387
  userTypeChange () {
381
388
  this.gasproperties = []
382
- if (this.newinfo.f_user_type.length === 1) {
389
+ if (this.newinfo.f_user_type && this.newinfo.f_user_type.length === 1) {
383
390
  this.gasproperties = this.$appdata.getParam(this.newinfo.f_user_type[0])
384
391
  }
385
392
  },
@@ -530,7 +530,7 @@ let asyncMachineMeterCenter = async function (self) {
530
530
  this.billData.bill = val.bill
531
531
  },
532
532
  printok () {
533
- this.$dispatch('success')
533
+ this.$dispatch('refresh')
534
534
  },
535
535
  checkOverdue () {
536
536
  this.$nextTick(() => {
@@ -864,12 +864,15 @@ export default {
864
864
  }
865
865
  this.$resetpost(url, {data: data}, {resolveMsg: '生成欠费成功', rejectMsg: '生成欠费失败'}).then((res) => {
866
866
  console.log('成功')
867
+ // this.$dispatch('resflushrowdata')
867
868
  if (this.row.f_meter_type.includes('物联网表')) {
868
- this.$dispatch('refresh')
869
+ this.$dispatch('toroute', {name: '物联网表收费', value: 'iot-meter-center'}, this.row)
869
870
  } else {
870
- this.$dispatch('resflushrowdata')
871
- // this.$dispatch('button-specifies', {name: '机表收费', value: 'machine-charge'}, this.row)
871
+ this.$dispatch('toroute', {name: '机表收费', value: 'machine-charge'}, this.row)
872
872
  }
873
+ // if (this.row.f_meter_type.includes('机表')) {
874
+ // this.$dispatch('button-specifies', {name: '机表收费', value: 'machine-charge'}, this.row)
875
+ // }
873
876
  })
874
877
  }
875
878
  })