system-clients 3.3.3-old → 3.3.3-v3-test
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.info +1 -0
- package/package.json +105 -105
- package/src/components/Main.vue +910 -927
- package/src/components/Util.js +15 -0
- package/src/components/equipment/PosList.vue +2 -3
- package/src/components/equipment/PosParamAdd.vue +2 -3
- package/src/components/materialManage/materialList.vue +1 -1
- package/src/components/parammanage/ParamPage.vue +1 -1
- package/src/components/parammanage/ParamPages.vue +2 -2
- package/src/components/parammanage/SinglePage.vue +1 -1
- package/src/components/parammanage/SinglePages.vue +2 -2
- package/src/components/server/AddChangeMsg.vue +4 -3
- package/src/components/server/ChangeDeclare.vue +2 -9
- package/src/components/server/Login.vue +557 -589
- package/src/components/server/PcdBuildingSelect.vue +8 -53
- package/src/filiale/baole/Login.vue +33 -30
- package/src/filiale/chengtou/Login.vue +33 -38
- package/src/filiale/dongguan/Login.vue +33 -30
- package/src/filiale/dongguan/Main.vue +3 -10
- package/src/filiale/furuike/Login.vue +40 -38
- package/src/filiale/furuike/Main.vue +7 -17
- package/src/filiale/gehua/Main.vue +3 -10
- package/src/filiale/konggang/Login.vue +38 -43
- package/src/filiale/qianneng/Login.vue +38 -43
- package/src/filiale/qianneng/Main.vue +3 -10
- package/src/filiale/rizhao/Login.vue +22 -18
- package/src/filiale/rizhao/Main.vue +2 -6
- package/src/filiale/shiquan/Login.vue +38 -43
- package/src/filiale/tianyi/Login.vue +33 -38
- package/src/filiale/tongchuan/Login.vue +33 -38
- package/src/filiale/tongchuan/Main.vue +22 -47
- package/src/filiale/weinan/Main.vue +5 -18
- package/src/filiale/wenxi/Login.vue +38 -43
- package/src/filiale/wenxi/Main.vue +3 -10
- package/src/filiale/wuhai/Main.vue +5 -19
- package/src/filiale/yuchuan/Login.vue +33 -30
- package/src/filiale/yuchuan/Main.vue +3 -10
- package/src/filiale/zhoukou/Main.vue +3 -10
- package/src/plugins/EncryptUtil.js +1 -1
- package/src/plugins/GetLoginInfoService.js +10 -3
- package/src/stores/AppData.js +1 -0
- package/.gradle/7.4/checksums/checksums.lock +0 -0
- package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
- package/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
- package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
- package/.gradle/7.4/fileChanges/last-build.bin +0 -0
- package/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
- package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
- package/.gradle/7.4/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/file-system.probe +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/build.gradle +0 -6
|
@@ -148,6 +148,7 @@ import co from 'co'
|
|
|
148
148
|
import $ from 'jquery'
|
|
149
149
|
import Vue from 'vue'
|
|
150
150
|
import {HttpResetClass} from 'vue-client'
|
|
151
|
+
import {isPasswordModificationExpired} from '../../components/Util'
|
|
151
152
|
|
|
152
153
|
let daibanJson = require('../../util/Daiban.json')
|
|
153
154
|
|
|
@@ -207,12 +208,15 @@ let saveGen = function *(self) {
|
|
|
207
208
|
}
|
|
208
209
|
}
|
|
209
210
|
console.log(self.$login.depPrompt)
|
|
210
|
-
//
|
|
211
|
-
|
|
212
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
211
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
212
|
+
if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
213
213
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
214
214
|
self.modifyPwShow = true
|
|
215
215
|
})
|
|
216
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
217
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
218
|
+
self.modifyPwShow = true
|
|
219
|
+
})
|
|
216
220
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
217
221
|
self.depPromptShow = true
|
|
218
222
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -238,6 +242,8 @@ let saveGen = function *(self) {
|
|
|
238
242
|
|
|
239
243
|
} catch (ret) {
|
|
240
244
|
console.error('登录失败', ret)
|
|
245
|
+
self.$login.s = null
|
|
246
|
+
self.$login['v3-session-key'] = null
|
|
241
247
|
let msg
|
|
242
248
|
if (ret instanceof Error) {
|
|
243
249
|
msg = ret
|
|
@@ -264,19 +270,19 @@ export default {
|
|
|
264
270
|
this.titleShow = this.$appdata.getSingleValue('关于我们')
|
|
265
271
|
window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
|
|
266
272
|
this.vTime = this.format(new Date(window.versionTime));
|
|
267
|
-
try{
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
}catch(e){}
|
|
273
|
+
// try{
|
|
274
|
+
// let http = new HttpResetClass()
|
|
275
|
+
// let res = await http.load('POST', 'rs/sql/singleTable',
|
|
276
|
+
// {data:{
|
|
277
|
+
// tablename: 't_changedeclare',
|
|
278
|
+
// condition: ` f_type ='变更通知' `
|
|
279
|
+
// }
|
|
280
|
+
// }, {resolveMsg: null, rejectMsg: null})
|
|
281
|
+
// if(res.data.length>0){
|
|
282
|
+
// console.log("---------------获取通知",res.data[0].f_change_message)
|
|
283
|
+
// this.notice=res.data[0].f_change_message
|
|
284
|
+
// }
|
|
285
|
+
// }catch(e){}
|
|
280
286
|
|
|
281
287
|
this.loginother();
|
|
282
288
|
$('#login-button').click(function (event) {
|
|
@@ -285,10 +291,8 @@ export default {
|
|
|
285
291
|
})
|
|
286
292
|
if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
|
|
287
293
|
const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
|
|
288
|
-
console.log(subUrl)
|
|
289
294
|
this.model.ename = window.atob(subUrl[0])
|
|
290
295
|
this.model.password = window.atob(subUrl[1])
|
|
291
|
-
console.log('this.model.ename',this.model.ename)
|
|
292
296
|
this.otherLogin = true
|
|
293
297
|
this.confirm()
|
|
294
298
|
}else{
|
|
@@ -360,21 +364,20 @@ export default {
|
|
|
360
364
|
},
|
|
361
365
|
async getDaiBan(){
|
|
362
366
|
let http = new HttpResetClass()
|
|
363
|
-
let
|
|
367
|
+
let res
|
|
364
368
|
if(this.$login.f.deps!=='柠条塔'){
|
|
365
|
-
|
|
369
|
+
res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
|
|
370
|
+
resolveMsg: null,
|
|
371
|
+
rejectMsg: null
|
|
372
|
+
})
|
|
366
373
|
} else {
|
|
367
|
-
|
|
368
|
-
}
|
|
369
|
-
await http.load('POST', '/rs/sql/singleTable', {data: {
|
|
370
|
-
tablename:'t_order_center',
|
|
371
|
-
condition:condition
|
|
372
|
-
}}, {
|
|
374
|
+
res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
|
|
373
375
|
resolveMsg: null,
|
|
374
376
|
rejectMsg: null
|
|
375
|
-
})
|
|
376
|
-
|
|
377
|
-
|
|
377
|
+
})
|
|
378
|
+
}
|
|
379
|
+
let OrderDaiBan = {}
|
|
380
|
+
res.data.forEach(item=>{
|
|
378
381
|
OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
|
|
379
382
|
OrderDaiBan[item.f_ordertype].push(item)
|
|
380
383
|
})
|
|
@@ -382,15 +385,7 @@ export default {
|
|
|
382
385
|
if (res.data.length> 0){
|
|
383
386
|
this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
|
|
384
387
|
}
|
|
385
|
-
}
|
|
386
|
-
let data = {
|
|
387
|
-
condition: '1 = 1',
|
|
388
|
-
data: {
|
|
389
|
-
orgid: this.$login.f.orgid,
|
|
390
|
-
id: this.$login.f.id
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
await http.load('POST', '/rs/sql/checkuser', {data: data}, {
|
|
388
|
+
},
|
|
394
389
|
resolveMsg: null,
|
|
395
390
|
rejectMsg: null
|
|
396
391
|
}).then((res) => {
|
|
@@ -141,6 +141,7 @@ import co from 'co'
|
|
|
141
141
|
import $ from 'jquery'
|
|
142
142
|
import Vue from 'vue'
|
|
143
143
|
import {HttpResetClass} from 'vue-client'
|
|
144
|
+
import {isPasswordModificationExpired} from '../../components/Util'
|
|
144
145
|
|
|
145
146
|
let daibanJson = require('../../util/Daiban.json')
|
|
146
147
|
|
|
@@ -200,12 +201,15 @@ let saveGen = function *(self) {
|
|
|
200
201
|
}
|
|
201
202
|
}
|
|
202
203
|
console.log(self.$login.depPrompt)
|
|
203
|
-
//
|
|
204
|
-
|
|
205
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
204
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
205
|
+
if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
206
206
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
207
207
|
self.modifyPwShow = true
|
|
208
208
|
})
|
|
209
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
210
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
211
|
+
self.modifyPwShow = true
|
|
212
|
+
})
|
|
209
213
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
210
214
|
self.depPromptShow = true
|
|
211
215
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -231,6 +235,8 @@ let saveGen = function *(self) {
|
|
|
231
235
|
|
|
232
236
|
} catch (ret) {
|
|
233
237
|
console.error('登录失败', ret)
|
|
238
|
+
self.$login.s = null
|
|
239
|
+
self.$login['v3-session-key'] = null
|
|
234
240
|
let msg
|
|
235
241
|
if (ret instanceof Error) {
|
|
236
242
|
msg = ret
|
|
@@ -255,19 +261,19 @@ export default {
|
|
|
255
261
|
title: '登录',
|
|
256
262
|
async ready () {
|
|
257
263
|
this.titleShow = this.$appdata.getSingleValue('关于我们')
|
|
258
|
-
try{
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}catch(e){}
|
|
264
|
+
// try{
|
|
265
|
+
// let http = new HttpResetClass()
|
|
266
|
+
// let res = await http.load('POST', 'rs/sql/singleTable',
|
|
267
|
+
// {data:{
|
|
268
|
+
// tablename: 't_changedeclare',
|
|
269
|
+
// condition: ` f_type ='变更通知' `
|
|
270
|
+
// }
|
|
271
|
+
// }, {resolveMsg: null, rejectMsg: null})
|
|
272
|
+
// if(res.data.length>0){
|
|
273
|
+
// console.log("---------------获取通知",res.data[0].f_change_message)
|
|
274
|
+
// this.notice=res.data[0].f_change_message
|
|
275
|
+
// }
|
|
276
|
+
// }catch(e){}
|
|
271
277
|
|
|
272
278
|
this.loginother();
|
|
273
279
|
$('#login-button').click(function (event) {
|
|
@@ -276,10 +282,8 @@ export default {
|
|
|
276
282
|
})
|
|
277
283
|
if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
|
|
278
284
|
const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
|
|
279
|
-
console.log(subUrl)
|
|
280
285
|
this.model.ename = window.atob(subUrl[0])
|
|
281
286
|
this.model.password = window.atob(subUrl[1])
|
|
282
|
-
console.log('this.model.ename',this.model.ename)
|
|
283
287
|
this.otherLogin = true
|
|
284
288
|
this.confirm()
|
|
285
289
|
}else{
|
|
@@ -365,21 +369,20 @@ export default {
|
|
|
365
369
|
},
|
|
366
370
|
async getDaiBan(){
|
|
367
371
|
let http = new HttpResetClass()
|
|
368
|
-
let
|
|
372
|
+
let res
|
|
369
373
|
if(this.$login.f.deps!=='柠条塔'){
|
|
370
|
-
|
|
374
|
+
res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
|
|
375
|
+
resolveMsg: null,
|
|
376
|
+
rejectMsg: null
|
|
377
|
+
})
|
|
371
378
|
} else {
|
|
372
|
-
|
|
373
|
-
}
|
|
374
|
-
await http.load('POST', '/rs/sql/singleTable', {data: {
|
|
375
|
-
tablename:'t_order_center',
|
|
376
|
-
condition:condition
|
|
377
|
-
}}, {
|
|
379
|
+
res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
|
|
378
380
|
resolveMsg: null,
|
|
379
381
|
rejectMsg: null
|
|
380
|
-
})
|
|
381
|
-
|
|
382
|
-
|
|
382
|
+
})
|
|
383
|
+
}
|
|
384
|
+
let OrderDaiBan = {}
|
|
385
|
+
res.data.forEach(item=>{
|
|
383
386
|
OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
|
|
384
387
|
OrderDaiBan[item.f_ordertype].push(item)
|
|
385
388
|
})
|
|
@@ -387,15 +390,7 @@ export default {
|
|
|
387
390
|
if (res.data.length> 0){
|
|
388
391
|
this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
|
|
389
392
|
}
|
|
390
|
-
}
|
|
391
|
-
let data = {
|
|
392
|
-
condition: '1 = 1',
|
|
393
|
-
data: {
|
|
394
|
-
orgid: this.$login.f.orgid,
|
|
395
|
-
id: this.$login.f.id
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
await http.load('POST', '/rs/sql/checkuser', {data: data}, {
|
|
393
|
+
},
|
|
399
394
|
resolveMsg: null,
|
|
400
395
|
rejectMsg: null
|
|
401
396
|
}).then((res) => {
|
|
@@ -208,11 +208,7 @@ import co from 'co'
|
|
|
208
208
|
import {HttpResetClass} from "vue-client";
|
|
209
209
|
|
|
210
210
|
let getwartermakr = async function (self) {
|
|
211
|
-
let
|
|
212
|
-
tablename: 't_singlevalue',
|
|
213
|
-
condition: " 1=1 and name=\'水印内容\'"
|
|
214
|
-
};
|
|
215
|
-
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
|
211
|
+
let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
|
|
216
212
|
if (result && result.data.length > 0) {
|
|
217
213
|
self.showwatermakeflag = true;
|
|
218
214
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
|
@@ -386,41 +382,29 @@ let createWaterMark = function (userName) {
|
|
|
386
382
|
},
|
|
387
383
|
isNotarize (stopId,userid) {
|
|
388
384
|
let http = new HttpResetClass()
|
|
389
|
-
var
|
|
390
|
-
let
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
orderitem: 'f_id desc'
|
|
395
|
-
}
|
|
396
|
-
http.load('POST', 'rs/sql/singleTable_OrderBy', {data: data}, {
|
|
385
|
+
var f_stopgas_id = stopId
|
|
386
|
+
let res = await http.load('POST', 'rs/sql/safeNoticeNotarizeQuery', {
|
|
387
|
+
f_stopgas_id: f_stopgas_id,
|
|
388
|
+
f_user_id: userid
|
|
389
|
+
}, {
|
|
397
390
|
resolveMsg: null,
|
|
398
391
|
rejectMsg: null
|
|
399
|
-
}).then((res) => {
|
|
400
|
-
if (res.data.length === 0) {
|
|
401
|
-
this.shownotices = true
|
|
402
|
-
}else if (res.data[0].f_pcstate !== '已确认' ){
|
|
403
|
-
this.model.f_id = res.data[0].f_id
|
|
404
|
-
this.shownotices = false
|
|
405
|
-
} else {
|
|
406
|
-
this.shownotices = false
|
|
407
|
-
}
|
|
408
|
-
}).catch((e)=>{
|
|
409
|
-
console.log('报错了!!')
|
|
410
|
-
console.error(e)
|
|
411
392
|
})
|
|
412
|
-
|
|
393
|
+
if (res.data.length === 0) {
|
|
394
|
+
this.shownotices = true
|
|
395
|
+
}else if (res.data[0].f_pcstate !== '已确认' ){
|
|
396
|
+
this.model.f_id = res.data[0].f_id
|
|
397
|
+
this.shownotices = false
|
|
398
|
+
} else {
|
|
399
|
+
this.shownotices = false
|
|
400
|
+
}
|
|
413
401
|
},
|
|
414
402
|
async stopsPC () {
|
|
415
403
|
let http = new HttpResetClass()
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
condition: condition,
|
|
421
|
-
orderitem: 'f_date desc'
|
|
422
|
-
}
|
|
423
|
-
await http.load('POST', 'rs/sql/singleTable_OrderBy', {data: data}, {
|
|
404
|
+
await http.load('POST', 'rs/sql/safeStopgasQuery', {
|
|
405
|
+
f_orgstr: this.$login.f.orgid,
|
|
406
|
+
f_typeofreceipt: 'PC端'
|
|
407
|
+
}, {
|
|
424
408
|
resolveMsg: null,
|
|
425
409
|
rejectMsg: null
|
|
426
410
|
}).then((res) => {
|
|
@@ -493,10 +477,7 @@ let createWaterMark = function (userName) {
|
|
|
493
477
|
this.OrderDaiBan = ''
|
|
494
478
|
this.AppDaiBan = ''
|
|
495
479
|
let http = new HttpResetClass()
|
|
496
|
-
await http.load('POST', '/rs/sql/
|
|
497
|
-
tablename:'t_order_center',
|
|
498
|
-
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
|
499
|
-
}}, {
|
|
480
|
+
await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
|
|
500
481
|
resolveMsg: null,
|
|
501
482
|
rejectMsg: null
|
|
502
483
|
}).then((res) => {
|
|
@@ -541,10 +522,7 @@ let createWaterMark = function (userName) {
|
|
|
541
522
|
async getExpireDate(){
|
|
542
523
|
// 获取分公司的表品牌id
|
|
543
524
|
let http = new HttpResetClass()
|
|
544
|
-
await http.load('POST', '/rs/sql/
|
|
545
|
-
tablename:'t_gasbrand_orgid',
|
|
546
|
-
condition:`f_using_orgid ='${this.$login.f.orgid}'`
|
|
547
|
-
}}, {
|
|
525
|
+
await http.load('POST', '/rs/sql/safeGasbrandOrgidQueryByOrgId', {f_using_orgid: this.$login.f.orgid}, {
|
|
548
526
|
resolveMsg: null,
|
|
549
527
|
rejectMsg: null
|
|
550
528
|
}).then((res) => {
|
|
@@ -555,10 +533,7 @@ let createWaterMark = function (userName) {
|
|
|
555
533
|
}
|
|
556
534
|
if (this.gasbrandIdData.length > 0) {
|
|
557
535
|
// 获取卡表到期时间
|
|
558
|
-
http.load('POST', '/rs/sql/
|
|
559
|
-
tablename:'t_gasbrand',
|
|
560
|
-
condition:`id in (${this.gasbrandIdData}) and f_meter_type like '%卡表%'`
|
|
561
|
-
}}, {
|
|
536
|
+
http.load('POST', '/rs/sql/safeGasbrandQueryByIds', {ids: this.gasbrandIdData.join(',')}, {
|
|
562
537
|
resolveMsg: null,
|
|
563
538
|
rejectMsg: null
|
|
564
539
|
}).then((res) => {
|
|
@@ -617,7 +592,7 @@ let createWaterMark = function (userName) {
|
|
|
617
592
|
}
|
|
618
593
|
},
|
|
619
594
|
openUrl() {
|
|
620
|
-
var url = `
|
|
595
|
+
var url = `https://liuli.aofengcloud.com:31467`
|
|
621
596
|
window.open(url, '_blank')
|
|
622
597
|
},
|
|
623
598
|
hindsetting() {
|
|
@@ -185,11 +185,7 @@ import co from 'co'
|
|
|
185
185
|
import {HttpResetClass} from "vue-client";
|
|
186
186
|
|
|
187
187
|
let getwartermakr = async function (self) {
|
|
188
|
-
let
|
|
189
|
-
tablename: 't_singlevalue',
|
|
190
|
-
condition: " 1=1 and name=\'水印内容\'"
|
|
191
|
-
};
|
|
192
|
-
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
|
188
|
+
let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
|
|
193
189
|
if (result && result.data.length > 0) {
|
|
194
190
|
self.showwatermakeflag = true;
|
|
195
191
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
|
@@ -397,10 +393,7 @@ export default {
|
|
|
397
393
|
this.OrderDaiBan = ''
|
|
398
394
|
this.AppDaiBan = ''
|
|
399
395
|
let http = new HttpResetClass()
|
|
400
|
-
await http.load('POST', '/rs/sql/
|
|
401
|
-
tablename:'t_order_center',
|
|
402
|
-
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
|
403
|
-
}}, {
|
|
396
|
+
await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
|
|
404
397
|
resolveMsg: null,
|
|
405
398
|
rejectMsg: null
|
|
406
399
|
}).then((res) => {
|
|
@@ -445,10 +438,7 @@ export default {
|
|
|
445
438
|
async getExpireDate(){
|
|
446
439
|
// 获取分公司的表品牌id
|
|
447
440
|
let http = new HttpResetClass()
|
|
448
|
-
await http.load('POST', '/rs/sql/
|
|
449
|
-
tablename:'t_gasbrand_orgid',
|
|
450
|
-
condition:`f_using_orgid ='${this.$login.f.orgid}'`
|
|
451
|
-
}}, {
|
|
441
|
+
await http.load('POST', '/rs/sql/safeGasbrandOrgidQueryByOrgId', {f_using_orgid: this.$login.f.orgid}, {
|
|
452
442
|
resolveMsg: null,
|
|
453
443
|
rejectMsg: null
|
|
454
444
|
}).then((res) => {
|
|
@@ -459,10 +449,7 @@ export default {
|
|
|
459
449
|
}
|
|
460
450
|
if (this.gasbrandIdData.length > 0) {
|
|
461
451
|
// 获取卡表到期时间
|
|
462
|
-
http.load('POST', '/rs/sql/
|
|
463
|
-
tablename:'t_gasbrand',
|
|
464
|
-
condition:`id in (${this.gasbrandIdData}) and f_meter_type like '%卡表%'`
|
|
465
|
-
}}, {
|
|
452
|
+
http.load('POST', '/rs/sql/safeGasbrandQueryByIds', {ids: this.gasbrandIdData.join(',')}, {
|
|
466
453
|
resolveMsg: null,
|
|
467
454
|
rejectMsg: null
|
|
468
455
|
}).then((res) => {
|
|
@@ -521,7 +508,7 @@ export default {
|
|
|
521
508
|
}
|
|
522
509
|
},
|
|
523
510
|
openUrl() {
|
|
524
|
-
var url = `
|
|
511
|
+
var url = `https://liuli.aofengcloud.com:31467`
|
|
525
512
|
window.open(url, '_blank')
|
|
526
513
|
},
|
|
527
514
|
hindsetting() {
|
|
@@ -141,6 +141,7 @@ import co from 'co'
|
|
|
141
141
|
import $ from 'jquery'
|
|
142
142
|
import Vue from 'vue'
|
|
143
143
|
import {HttpResetClass} from 'vue-client'
|
|
144
|
+
import {isPasswordModificationExpired} from '../../components/Util'
|
|
144
145
|
|
|
145
146
|
let daibanJson = require('../../util/Daiban.json')
|
|
146
147
|
|
|
@@ -200,12 +201,15 @@ let saveGen = function *(self) {
|
|
|
200
201
|
}
|
|
201
202
|
}
|
|
202
203
|
console.log(self.$login.depPrompt)
|
|
203
|
-
//
|
|
204
|
-
|
|
205
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
204
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
205
|
+
if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
206
206
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
207
207
|
self.modifyPwShow = true
|
|
208
208
|
})
|
|
209
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
210
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
211
|
+
self.modifyPwShow = true
|
|
212
|
+
})
|
|
209
213
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
210
214
|
self.depPromptShow = true
|
|
211
215
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -231,6 +235,8 @@ let saveGen = function *(self) {
|
|
|
231
235
|
|
|
232
236
|
} catch (ret) {
|
|
233
237
|
console.error('登录失败', ret)
|
|
238
|
+
self.$login.s = null
|
|
239
|
+
self.$login['v3-session-key'] = null
|
|
234
240
|
let msg
|
|
235
241
|
if (ret instanceof Error) {
|
|
236
242
|
msg = ret
|
|
@@ -257,19 +263,19 @@ export default {
|
|
|
257
263
|
this.titleShow = this.$appdata.getSingleValue('关于我们')
|
|
258
264
|
window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
|
|
259
265
|
this.vTime = this.format(new Date(window.versionTime));
|
|
260
|
-
try{
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}catch(e){}
|
|
266
|
+
// try{
|
|
267
|
+
// let http = new HttpResetClass()
|
|
268
|
+
// let res = await http.load('POST', 'rs/sql/singleTable',
|
|
269
|
+
// {data:{
|
|
270
|
+
// tablename: 't_changedeclare',
|
|
271
|
+
// condition: ` f_type ='变更通知' `
|
|
272
|
+
// }
|
|
273
|
+
// }, {resolveMsg: null, rejectMsg: null})
|
|
274
|
+
// if(res.data.length>0){
|
|
275
|
+
// console.log("---------------获取通知",res.data[0].f_change_message)
|
|
276
|
+
// this.notice=res.data[0].f_change_message
|
|
277
|
+
// }
|
|
278
|
+
// }catch(e){}
|
|
273
279
|
|
|
274
280
|
this.loginother();
|
|
275
281
|
$('#login-button').click(function (event) {
|
|
@@ -278,10 +284,8 @@ export default {
|
|
|
278
284
|
})
|
|
279
285
|
if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
|
|
280
286
|
const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
|
|
281
|
-
console.log(subUrl)
|
|
282
287
|
this.model.ename = window.atob(subUrl[0])
|
|
283
288
|
this.model.password = window.atob(subUrl[1])
|
|
284
|
-
console.log('this.model.ename',this.model.ename)
|
|
285
289
|
this.otherLogin = true
|
|
286
290
|
this.confirm()
|
|
287
291
|
}else{
|
|
@@ -353,37 +357,28 @@ export default {
|
|
|
353
357
|
},
|
|
354
358
|
async getDaiBan(){
|
|
355
359
|
let http = new HttpResetClass()
|
|
356
|
-
let
|
|
360
|
+
let res
|
|
357
361
|
if(this.$login.f.deps!=='柠条塔'){
|
|
358
|
-
|
|
362
|
+
res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
|
|
363
|
+
resolveMsg: null,
|
|
364
|
+
rejectMsg: null
|
|
365
|
+
})
|
|
359
366
|
} else {
|
|
360
|
-
|
|
361
|
-
}
|
|
362
|
-
await http.load('POST', '/rs/sql/singleTable', {data: {
|
|
363
|
-
tablename:'t_order_center',
|
|
364
|
-
condition:condition
|
|
365
|
-
}}, {
|
|
367
|
+
res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
|
|
366
368
|
resolveMsg: null,
|
|
367
369
|
rejectMsg: null
|
|
368
|
-
}).then((res) => {
|
|
369
|
-
let OrderDaiBan = {}
|
|
370
|
-
res.data.forEach(item=>{
|
|
371
|
-
OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
|
|
372
|
-
OrderDaiBan[item.f_ordertype].push(item)
|
|
373
|
-
})
|
|
374
|
-
this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
|
|
375
|
-
if (res.data.length> 0){
|
|
376
|
-
this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
|
|
377
|
-
}
|
|
378
370
|
})
|
|
379
|
-
let data = {
|
|
380
|
-
condition: '1 = 1',
|
|
381
|
-
data: {
|
|
382
|
-
orgid: this.$login.f.orgid,
|
|
383
|
-
id: this.$login.f.id
|
|
384
|
-
}
|
|
385
371
|
}
|
|
386
|
-
|
|
372
|
+
let OrderDaiBan = {}
|
|
373
|
+
res.data.forEach(item=>{
|
|
374
|
+
OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
|
|
375
|
+
OrderDaiBan[item.f_ordertype].push(item)
|
|
376
|
+
})
|
|
377
|
+
this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
|
|
378
|
+
if (res.data.length> 0){
|
|
379
|
+
this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
|
|
380
|
+
}
|
|
381
|
+
},
|
|
387
382
|
resolveMsg: null,
|
|
388
383
|
rejectMsg: null
|
|
389
384
|
}).then((res) => {
|
|
@@ -161,11 +161,7 @@ import co from 'co'
|
|
|
161
161
|
import {HttpResetClass} from "vue-client";
|
|
162
162
|
|
|
163
163
|
let getwartermakr = async function (self) {
|
|
164
|
-
let
|
|
165
|
-
tablename: 't_singlevalue',
|
|
166
|
-
condition: " 1=1 and name=\'水印内容\'"
|
|
167
|
-
};
|
|
168
|
-
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
|
164
|
+
let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
|
|
169
165
|
if (result && result.data.length > 0) {
|
|
170
166
|
self.showwatermakeflag = true;
|
|
171
167
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
|
@@ -311,10 +307,7 @@ export default {
|
|
|
311
307
|
this.OrderDaiBan = ''
|
|
312
308
|
this.AppDaiBan = ''
|
|
313
309
|
let http = new HttpResetClass()
|
|
314
|
-
await http.load('POST', '/rs/sql/
|
|
315
|
-
tablename:'t_order_center',
|
|
316
|
-
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
|
317
|
-
}}, {
|
|
310
|
+
await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
|
|
318
311
|
resolveMsg: null,
|
|
319
312
|
rejectMsg: null
|
|
320
313
|
}).then((res) => {
|
|
@@ -383,7 +376,7 @@ export default {
|
|
|
383
376
|
}
|
|
384
377
|
},
|
|
385
378
|
openUrl() {
|
|
386
|
-
var url = `
|
|
379
|
+
var url = `https://liuli.aofengcloud.com:31467`
|
|
387
380
|
window.open(url, '_blank')
|
|
388
381
|
},
|
|
389
382
|
hindsetting() {
|
|
@@ -161,11 +161,7 @@ import co from 'co'
|
|
|
161
161
|
import {HttpResetClass} from "vue-client";
|
|
162
162
|
|
|
163
163
|
let getwartermakr = async function (self) {
|
|
164
|
-
let
|
|
165
|
-
tablename: 't_singlevalue',
|
|
166
|
-
condition: " 1=1 and name=\'水印内容\'"
|
|
167
|
-
};
|
|
168
|
-
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
|
164
|
+
let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
|
|
169
165
|
if (result && result.data.length > 0) {
|
|
170
166
|
self.showwatermakeflag = true;
|
|
171
167
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
|
@@ -316,10 +312,7 @@ export default {
|
|
|
316
312
|
this.OrderDaiBan = ''
|
|
317
313
|
this.AppDaiBan = ''
|
|
318
314
|
let http = new HttpResetClass()
|
|
319
|
-
await http.load('POST', '/rs/sql/
|
|
320
|
-
tablename:'t_order_center',
|
|
321
|
-
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
|
322
|
-
}}, {
|
|
315
|
+
await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
|
|
323
316
|
resolveMsg: null,
|
|
324
317
|
rejectMsg: null
|
|
325
318
|
}).then((res) => {
|
|
@@ -388,7 +381,7 @@ export default {
|
|
|
388
381
|
}
|
|
389
382
|
},
|
|
390
383
|
openUrl() {
|
|
391
|
-
var url = `
|
|
384
|
+
var url = `https://liuli.aofengcloud.com:31467`
|
|
392
385
|
window.open(url, '_blank')
|
|
393
386
|
},
|
|
394
387
|
hindsetting() {
|
|
@@ -475,16 +468,9 @@ export default {
|
|
|
475
468
|
// 微信统计投诉和咨询的条数
|
|
476
469
|
async WechatOfComplaintAndConsult () {
|
|
477
470
|
console.log('开始执行')
|
|
478
|
-
let WeChatData = await this.$resetpost('rs/sql/
|
|
479
|
-
data:{
|
|
480
|
-
items: 'f_isreply',
|
|
481
|
-
tablename: 't_comment',
|
|
482
|
-
condition: 'f_isreply = 0',
|
|
483
|
-
orderitem: 'f_isreply'
|
|
484
|
-
}
|
|
485
|
-
},{resolveMsg: null, rejectMsg: null});
|
|
471
|
+
let WeChatData = await this.$resetpost('rs/sql/safeCommentUnrepliedCount', {}, {resolveMsg: null, rejectMsg: null});
|
|
486
472
|
if (WeChatData.data.length > 0){
|
|
487
|
-
this.WeChatNub = WeChatData.data.
|
|
473
|
+
this.WeChatNub = WeChatData.data[0].cnt
|
|
488
474
|
}
|
|
489
475
|
console.log('获取数值为:'+ this.WeChatNub)
|
|
490
476
|
this.$refs.tree.setNum(this.WeChatNub)
|