sale-client 3.6.544 → 3.6.545-2

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,7 +1,7 @@
1
1
  var path = require('path')
2
2
  var checkVersion = require('./versionCheck.js')
3
3
  checkVersion()
4
- const [ serverRul, localUrl, v4Url ] = ['http://192.168.50.67:30785/', 'http://localhost:8080/', 'http://192.168.50.67:30785']
4
+ const [ serverRul, localUrl, v4Url ] = ['http://192.168.50.67:30785/', 'http://192.168.50.67:30785/', 'http://192.168.50.67:30785']
5
5
  var merge = require('webpack-merge')
6
6
  var baseConfig = require('./webpack.dev.conf')
7
7
  var devConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.544",
3
+ "version": "3.6.545-2",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/Util.js CHANGED
@@ -21,19 +21,19 @@ export function getAttendanceState (item, timeToWork, timeToGo) {
21
21
  }
22
22
  }
23
23
 
24
- //获取随机uuid
25
- export function generateUUID() {
24
+ // 获取随机uuid
25
+ export function generateUUID () {
26
26
  // 'x' 代表数字与大小写字母中的任意一个
27
- const chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
28
- let uuid = '';
27
+ const chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
28
+ let uuid = ''
29
29
  // 第一个字符是 '0'-'7' 之间的随机数字,用于版本标识
30
- uuid += chars.charAt(Math.floor(Math.random() * 8) + Math.floor(Math.random() * 8) % 8);
30
+ uuid += chars.charAt(Math.floor(Math.random() * 8) + Math.floor(Math.random() * 8) % 8)
31
31
  for (let i = 0; i < 31; i++) {
32
32
  // 随机选择字符
33
- uuid += chars.charAt(Math.random() * chars.length | 0);
33
+ uuid += chars.charAt(Math.random() * chars.length | 0)
34
34
  }
35
35
  // 修正长度和格式,以确保它看起来像是一个标准的UUID
36
- return uuid.substr(0, 8) + uuid.substr(8, 4) + uuid.substr(12, 4) + uuid.substr(16, 4) + uuid.substr(20, 12);
36
+ return uuid.substr(0, 8) + uuid.substr(8, 4) + uuid.substr(12, 4) + uuid.substr(16, 4) + uuid.substr(20, 12)
37
37
  }
38
38
 
39
39
  export function toStandardYearMonth () {
@@ -53,29 +53,29 @@ export function toStandardDateString () {
53
53
  let date = dt.getDate()
54
54
  return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
55
55
  }
56
- export function getLastDayOfMonth(dateString) {
56
+ export function getLastDayOfMonth (dateString) {
57
57
  // 解析输入日期字符串
58
- var parts = dateString.split('-');
59
- var year = parseInt(parts[0], 10);
60
- var month = parseInt(parts[1], 10);
58
+ var parts = dateString.split('-')
59
+ var year = parseInt(parts[0], 10)
60
+ var month = parseInt(parts[1], 10)
61
61
 
62
62
  // 创建一个日期对象,表示下个月的第一天
63
- var nextMonthFirstDay = new Date(year, month, 1);
63
+ var nextMonthFirstDay = new Date(year, month, 1)
64
64
 
65
65
  // 减去一天,得到本月的最后一天
66
- nextMonthFirstDay.setDate(nextMonthFirstDay.getDate() - 1);
66
+ nextMonthFirstDay.setDate(nextMonthFirstDay.getDate() - 1)
67
67
 
68
68
  // 获取年、月、日
69
- var lastDay = nextMonthFirstDay.getDate();
70
- var lastMonth = nextMonthFirstDay.getMonth() + 1; // 月份从0开始,需要加1
71
- var lastYear = nextMonthFirstDay.getFullYear();
69
+ var lastDay = nextMonthFirstDay.getDate()
70
+ var lastMonth = nextMonthFirstDay.getMonth() + 1 // 月份从0开始,需要加1
71
+ var lastYear = nextMonthFirstDay.getFullYear()
72
72
 
73
73
  // 格式化日期为 YYYY-MM-DD
74
74
  var formattedDate = lastYear + '-' +
75
75
  (lastMonth < 10 ? '0' + lastMonth : lastMonth) + '-' +
76
- (lastDay < 10 ? '0' + lastDay : lastDay);
76
+ (lastDay < 10 ? '0' + lastDay : lastDay)
77
77
 
78
- return formattedDate;
78
+ return formattedDate
79
79
  }
80
80
 
81
81
  export function toStartAndEndDateString () {
@@ -80,7 +80,7 @@
80
80
 
81
81
  <script>
82
82
  import { PagedList } from 'vue-client'
83
- import * as Util from "../../../../../Util";
83
+ import * as Util from '../../../../../Util'
84
84
 
85
85
  export default {
86
86
  data () {
@@ -174,13 +174,13 @@ export default {
174
174
  for (let i = 0; i < this.devicesinfonew.length; i++) {
175
175
  if (this.devicesinfonew[i].f_devices_type == '报警器') {
176
176
  this.alarmExpireDate(i)
177
- } else if (this.devicesinfonew[i].f_devices_type == '切断阀') {
177
+ } else if (this.devicesinfonew[i].f_devices_type == '切断阀' || this.devicesinfonew[i].f_devices_type == '自闭阀') {
178
178
  this.expireDate(i)
179
179
  }
180
180
  }
181
181
  },
182
182
  expireDate (index) {
183
- if (this.devicesinfonew[index].f_devices_type == '切断阀') {
183
+ if (this.devicesinfonew[index].f_devices_type == '切断阀' || this.devicesinfonew[index].f_devices_type == '自闭阀') {
184
184
  if (this.devicesinfonew[index].f_input_date === '' || this.devicesinfonew[index].f_input_date === undefined) {
185
185
  } else {
186
186
  let b = new Date(this.devicesinfonew[index].f_input_date)
@@ -199,7 +199,7 @@ export default {
199
199
  if (this.devicesinfonew[index].f_firstcheck_date === '' || this.devicesinfonew[index].f_firstcheck_date === undefined || this.devicesinfonew[index].f_firstcheck_date === null) {
200
200
  } else {
201
201
  let b = new Date(this.devicesinfonew[index].f_firstcheck_date)
202
- let year = (b.getFullYear() - 0) + 3
202
+ let year = (b.getFullYear() - 0) + 5
203
203
  let year2 = (b.getFullYear() - 0) + 1
204
204
  let month = (b.getMonth() - 0) + 1
205
205
  var day = b.getDate()
@@ -235,7 +235,8 @@ export default {
235
235
  console.log('设备信息', this.devicesinfonew)
236
236
  this.devicesinfonew.push({
237
237
  f_devices_type: '调压器',
238
- f_input_date: this.$login.toStandardTimeString()
238
+ f_input_date: this.$login.toStandardTimeString(),
239
+ f_firstcheck_date: this.$login.toStandardTimeString()
239
240
  })
240
241
  }
241
242
  }
@@ -222,7 +222,7 @@
222
222
  }
223
223
  })
224
224
  this.$watch(() => device.f_devices_type, (newType) => {
225
- if (newType === '自闭阀' && device.f_input_date) {
225
+ if (device.f_input_date) {
226
226
  this.updateExpireDate(device)
227
227
  } else {
228
228
  device.f_expire_date = ''
@@ -68,7 +68,7 @@
68
68
  <script>
69
69
  import UserPaperInfoTest from './UserPaperInfoTest'
70
70
  import {HttpResetClass} from 'vue-client'
71
- import * as Util from '../../util'
71
+ import * as Util from '../../Util'
72
72
 
73
73
  let getFileGen = async function (self, data) {
74
74
  let http = new HttpResetClass()
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/bayan/sale'
5
+ import FilialeSale from './filiale/rongcheng/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'
@@ -1,2 +0,0 @@
1
- #Thu May 15 14:43:19 CST 2025
2
- gradle.version=5.2.1
File without changes