sale-client 3.6.87 → 3.6.88

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.87",
3
+ "version": "3.6.88",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -235,7 +235,7 @@ let readyGen = async function (self) {
235
235
  // this.radio[index].$set(i,true)
236
236
  }
237
237
  }
238
- if (self.config.todayLimit) {
238
+ if (self.config.cancletime && !self.$login.f.rolesnames.includes('管理员')) {
239
239
  self.isToday = new Date().toDateString() !== new Date(res.data[0].f_date).toDateString()
240
240
  }
241
241
 
@@ -260,10 +260,10 @@ export default {
260
260
  return {
261
261
  config: {
262
262
  cancleother: false, // 默认可以撤销别人的操作
263
- cancletime: false, // 默认可以冲正今天以前的操作
263
+ // cancletime: false, // 默认可以冲正今天以前的操作
264
264
  hasBillManage: false, // 默认不启用发票管理
265
265
  cancelType: 'newBill',
266
- todayLimit: false // 是否限制当天不能冲正
266
+ cancletime: true // 是否限制当天不能冲正
267
267
  },
268
268
  model: {
269
269
  f_payment: '',
@@ -330,15 +330,14 @@ export default {
330
330
  },
331
331
  methods: {
332
332
  cancel () {
333
- if (this.config.cancleother) {
333
+ if (this.config.cancleother && !this.$login.f.rolesnames.includes('管理员')) {
334
334
  if (this.model.f_operator != this.$login.f.name) {
335
335
  this.$showAlert('不能撤销不是自己进行的操作', 'warning', 1500)
336
336
  return
337
337
  }
338
338
  }
339
- if (this.config.cancletime) {
339
+ if (this.config.cancletime && !this.$login.f.rolesnames.includes('管理员')) {
340
340
  let a = this.$login.toStandardDateString() + ' 00:00:00'
341
- // console.log('当前时间',row.f_date>a)
342
341
  if (this.model.f_date < a) {
343
342
  this.$showAlert('不能撤销不是当天的操作', 'warning', 1500)
344
343
  return
@@ -366,14 +366,14 @@
366
366
  return
367
367
  }
368
368
  } else {
369
- if (this.authArr.includes('冲正权限')) {
369
+ if (this.authArr.includes('冲正权限') && !this.$login.f.rolesnames.includes('管理员')) {
370
370
  if (this.config.cancleother) {
371
371
  if (row.f_operator != this.$login.f.name) {
372
372
  this.$showAlert('不能撤销不是自己进行的操作', 'warning', 1500)
373
373
  return
374
374
  }
375
375
  }
376
- if (this.config.cancletime) {
376
+ if (this.config.cancletime && !this.$login.f.rolesnames.includes('管理员')) {
377
377
  let a = this.$login.toStandardYearMonth()
378
378
  console.log('当前时间', a < row.f_operate_date)
379
379
  if (!this.authArr.includes('跨月撤销')) {