sale-client 3.6.128 → 3.6.130

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://192.168.50.4:8400/', 'http://192.168.50.4:8400/']
2
+ const [ serverRul, localUrl ] = ['https://qnjtkf.cn:7400/#', 'https://qnjtkf.cn:7400/#']
3
3
  var merge = require('webpack-merge')
4
4
  var baseConfig = require('./webpack.dev.conf')
5
5
  var devConfig = {
@@ -20,6 +20,9 @@ var devConfig = {
20
20
  '/rs/file': {
21
21
  target: serverRul
22
22
  },
23
+ '/rs/business': {
24
+ target: localUrl
25
+ },
23
26
  '/rs/sql/singleTable': {
24
27
  target: serverRul
25
28
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.128",
3
+ "version": "3.6.130",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -193,6 +193,22 @@
193
193
  */
194
194
  let reprintBatchGen = function *(self, row) {
195
195
  try {
196
+ // 验证是否全部收完
197
+ let res = yield self.$resetpost('rs/sql/querySingleTable',
198
+ {
199
+ data: {
200
+ items: 'count(id) count',
201
+ tablename: 't_sellinggas',
202
+ condition: `f_batch_id = '${row.id}' and f_operate_date >= '${row.f_operate_date}'`
203
+ }
204
+ },
205
+ {resolveMsg: null, rejectMsg: null}).catch((error) => {
206
+ console.log('异常提示:' + error)
207
+ })
208
+ if (res.data[0].count !== row.f_charge_user) {
209
+ self.$showMessage('该批次未全部收完,不能打印票据明细')
210
+ return
211
+ }
196
212
  row.f_bill_type = row.type
197
213
  row.f_bill_style = '普通收据'
198
214
  row.f_operator = self.$login.f.name
@@ -387,7 +403,7 @@ and th.f_userfiles_id = '${row.f_userfiles_id}' and tsh.f_state='有效'`
387
403
  this.cancel_show = false
388
404
  },
389
405
  cancelSucc () {
390
- console.log("-----------------------------撤销成功了,隐藏掉")
406
+ console.log('-----------------------------撤销成功了,隐藏掉')
391
407
  this.cancel_show = false
392
408
  this.$dispatch('refresh')
393
409
  },
@@ -388,7 +388,7 @@
388
388
  networkvalves: this.$appdata.getParam('阀控状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('阀控状态')] : [],
389
389
  valvestates: this.$appdata.getParam('阀门状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('阀门状态')] : [],
390
390
  searchshow: false,
391
- orgcondition: ' and f_filialeid = ' + this.$login.f.orgid,
391
+ orgcondition: ' and f_filialeid = ' + `'${this.$login.f.orgid}'`,
392
392
  getfield: {},
393
393
  // 排序
394
394
  orderitem: 'f_userinfo_id desc',