sale-client-xianyang 3.3.448 → 3.3.449

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-xianyang",
3
- "version": "3.3.448",
3
+ "version": "3.3.449",
4
4
  "description": "费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -348,6 +348,17 @@ export default {
348
348
  // }
349
349
  // }
350
350
  this.hascard = hascard
351
+ // 检查撤销剩余天数限制
352
+ let cancelDays = this.$appdata.getSingleValue('撤销剩余天数') ? this.$appdata.getSingleValue('撤销剩余天数') : 30
353
+ if (this.model.f_date) {
354
+ let chargeDate = new Date(this.model.f_date).getTime()
355
+ let currentDate = new Date().getTime()
356
+ let dayDiff = Math.floor((currentDate - chargeDate) / (1000 * 60 * 60 * 24))
357
+ if (dayDiff > cancelDays) {
358
+ this.$showAlert(`已超过撤销冲正退款时限:${cancelDays}天。`, 'warning', 2000)
359
+ return
360
+ }
361
+ }
351
362
  if (this.config.cancletime) {
352
363
  let a = this.$login.toStandardDateString() + ' 00:00:00'
353
364
  // console.log('当前时间',row.f_date>a)
File without changes
@@ -1,2 +0,0 @@
1
- #Thu Dec 18 17:45:08 CST 2025
2
- gradle.version=5.2.1
File without changes