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.
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/build/dev-server.js +1 -1
- package/package.json +1 -1
- package/src/Util.js +18 -18
- package/src/components/revenue/comprehen/Maintenance/T+MoneyDocking/moneyDockingTow.vue +1 -1
- package/src/filiale/rongcheng/CustomerDeviceInfoTest.vue +5 -4
- package/src/filiale/rongcheng/UserDeviceInfoTest.vue +1 -1
- package/src/filiale/rongcheng/UserGeneralInfoTest.vue +1 -1
- package/src/main.js +1 -1
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/vcs-1/gc.properties +0 -0
|
Binary file
|
package/build/dev-server.js
CHANGED
|
@@ -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://
|
|
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
package/src/Util.js
CHANGED
|
@@ -21,19 +21,19 @@ export function getAttendanceState (item, timeToWork, timeToGo) {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
|
|
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)
|
|
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
|
|
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 () {
|
|
@@ -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) +
|
|
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
|
}
|
|
@@ -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 '../../
|
|
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/
|
|
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'
|
|
Binary file
|
|
File without changes
|