sale-client 3.6.97 → 3.6.98

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://113.219.193.157:8100/', 'http://113.219.193.157:8100/']
2
+ const [serverRul, localUrl ] = ['http://192.168.50.4:8400/', 'http://192.168.50.4: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.97",
3
+ "version": "3.6.98",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -365,28 +365,32 @@
365
365
  this.$showAlert('此次机表收费之后有自动下账,不能撤销此纪录', 'warning', 1500)
366
366
  return
367
367
  }
368
- } else {
369
- if (this.authArr.includes('冲正权限')) {
370
- if (this.config.cancleother) {
371
- if (row.f_operator != this.$login.f.name) {
372
- this.$showAlert('不能撤销不是自己进行的操作', 'warning', 1500)
368
+ }
369
+ if (this.authArr.includes('冲正权限')) {
370
+ if (this.config.cancleother) {
371
+ if (row.f_operator != this.$login.f.name) {
372
+ this.$showAlert('不能撤销不是自己进行的操作', 'warning', 1500)
373
+ return
374
+ }
375
+ }
376
+ if (this.config.cancletime && !this.$login.f.rolesnames.includes('管理员')) {
377
+ let a = this.$login.toStandardYearMonth()
378
+ console.log('当前时间', a < row.f_operate_date)
379
+ if (!this.authArr.includes('跨月撤销')) {
380
+ if (row.f_operate_date < a) {
381
+ this.$showAlert('不能撤销非本月的记录,请联系管理员获取【跨月撤销】的权限。', 'warning', 1500)
373
382
  return
374
383
  }
375
- }
376
- if (this.config.cancletime && !this.$login.f.rolesnames.includes('管理员')) {
377
- let a = this.$login.toStandardYearMonth()
378
- console.log('当前时间', a < row.f_operate_date)
379
- if (!this.authArr.includes('跨月撤销')) {
380
- if (row.f_operate_date < a) {
381
- this.$showAlert('不能撤销非本月的记录,请联系管理员获取【跨月撤销】的权限。', 'warning', 1500)
382
- return
383
- }
384
+ a = this.$login.toStandardDateString() + ' 00:00:00'
385
+ if (row.f_operate_date < a) {
386
+ this.$showAlert('不能撤销不是当天的操作', 'warning', 1500)
387
+ return
384
388
  }
385
389
  }
386
- } else {
387
- this.$showAlert('当前用户没有【冲正权限】', 'warning', 1500)
388
- return
389
390
  }
391
+ } else {
392
+ this.$showAlert('当前用户没有【冲正权限】', 'warning', 1500)
393
+ return
390
394
  }
391
395
  }
392
396
 
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/rizhao/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'
@@ -15,7 +15,7 @@ Vue.config.silent = true
15
15
  all()
16
16
  system(false)
17
17
  sale()
18
- wenxi()
18
+ // wenxi()
19
19
  // FilialeSale()
20
20
  address()
21
21
  ldap()