sale-client 4.3.79 → 4.3.81

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.
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ #Wed May 13 15:19:48 CST 2026
2
+ gradle.version=5.2.1
File without changes
@@ -25,12 +25,12 @@ var devConfig = {
25
25
  // },
26
26
  // target: localUrl
27
27
  // },
28
- '/api/af-revenue/logic': {
29
- pathRewrite: {
30
- '/api/af-revenue/logic': '/logic'
31
- },
32
- target: localUrl
33
- },
28
+ // '/api/af-revenue/logic': {
29
+ // pathRewrite: {
30
+ // '/api/af-revenue/logic': '/logic'
31
+ // },
32
+ // target: localUrl
33
+ // },
34
34
  // '/api/af-revenue/file': {
35
35
  // // pathRewrite: {
36
36
  // // '/api/af-revenue/file': '/file'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "4.3.79",
3
+ "version": "4.3.81",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -391,9 +391,9 @@ export default {
391
391
  methods: {
392
392
  getnetworkValveOptions () {
393
393
  let networkValve = this.$appdata.getParam('阀控执行状态')
394
- if (networkValve.length > 1) {
394
+ if (Array.isArray(networkValve) && networkValve.length > 0) {
395
395
  networkValve.forEach(item => {
396
- this.networkValveOptions.put(item.value)
396
+ this.networkValveOptions.push(item.value)
397
397
  })
398
398
  } else {
399
399
  this.networkValveOptions = [
@@ -285,7 +285,7 @@
285
285
  asyncCardList(this)
286
286
  // this.search()
287
287
  },
288
- methods: {
288
+ methods:{
289
289
  dateDes (date) {
290
290
  return this.$login.dateDescripte(date)
291
291
  },
@@ -339,7 +339,7 @@
339
339
  }
340
340
  }
341
341
  if (row.type === '物联网收费' || row.type === '卡表赠气' || row.type === '物联网赠费' || row.type === '卡表赠费' || row.type === '物联网赠气') {
342
- let table_name = this.$appdata.getSingleValue('新抄表')? 't_web_handplan' : 't_handplan'
342
+ let table_name = this.$appdata.getSingleValue('新抄表') ? 't_web_handplan' : 't_handplan'
343
343
  let getWebHand = await this.$SqlService.singleTable(table_name, `f_hand_state = '有效' and f_input_date > '${row.f_operate_date}' and f_userfiles_id = '${row.f_userfiles_id}'`)
344
344
  console.log('长度', getWebHand)
345
345
  if (getWebHand.data.length > 0) {
@@ -369,32 +369,25 @@
369
369
  }
370
370
  if (this.authArr.includes('冲正权限')) {
371
371
 
372
- if (!this.config.cancletime && !this.$login.f.rolesnames.includes('财务退款')) {
373
- if (!this.config.cancleother) {
374
- if (row.f_operator != this.$login.f.name) {
375
- this.$showAlert('不能撤销不是自己进行的操作', 'warning', 1500)
376
- return
377
- }
378
- }
379
- let a = this.$login.toStandardYearMonth()
380
- console.log('当前时间', a < row.f_operate_date)
381
- // if (!this.authArr.includes('跨月撤销')) {
382
- // if (row.f_operate_date < a) {
383
- // this.$showAlert('不能撤销非本月的记录,请联系管理员获取【跨月撤销】的权限。', 'warning', 1500)
384
- // return
385
- // }
386
- a = this.$login.toStandardDateString() + ' 00:00:00'
387
- if (row.f_operate_date < a ) {
388
- this.$showAlert('不能撤销不是当天的操作', 'warning', 1500)
389
- return
390
- }
391
- // }
372
+ const canCancelOther = this.config.cancleother || this.authArr.includes('撤销他人记录') || this.$login.f.rolesnames.includes('财务退款')
373
+ if (!canCancelOther && row.f_operator !== this.$login.f.name) {
374
+ this.$showAlert('不能撤销不是自己进行的操作', 'warning', 1500)
375
+ return
392
376
  }
393
- } else {
394
- this.$showAlert('当前用户没有【冲正权限】', 'warning', 1500)
395
- return
377
+ const canCancelNonToday = this.config.cancletime || this.$login.f.rolesnames.includes('财务退款')
378
+ if (!canCancelNonToday) {
379
+ const todayStart = this.$login.toStandardDateString() + ' 00:00:00'
380
+ if (row.f_operate_date < todayStart) {
381
+ this.$showAlert('不能撤销不是当天的操作', 'warning', 1500)
382
+ return
383
+ }
384
+ // }
396
385
  }
386
+ } else {
387
+ this.$showAlert('当前用户没有【冲正权限】', 'warning', 1500)
388
+ return
397
389
  }
390
+ }
398
391
 
399
392
  if (title === '撤销') {
400
393
  this.cancel_show = true
package/src/main.js CHANGED
@@ -2,7 +2,7 @@ import Vue from 'vue'
2
2
  import all from 'vue-client/src/all'
3
3
  import App from './App'
4
4
  import system from 'system-clients/src/system'
5
- import FilialeSale from './filiale/liaoyuan/sale'
5
+ import FilialeSale from './filiale/yangchun/sale'
6
6
  import sale from './sale'
7
7
  import address from 'address-client/src/address'
8
8
  import ldap from 'ldap-clients/src/ldap'
@@ -24,7 +24,7 @@ system(false)
24
24
  sale()
25
25
  address()
26
26
  ldap()
27
- // FilialeSale()
27
+ FilialeSale()
28
28
  require('system-clients/src/styles/less/bootstrap.less')
29
29
 
30
30
  new Vue({