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
|
@@ -174,11 +174,7 @@ import co from 'co'
|
|
|
174
174
|
import {HttpResetClass} from "vue-client";
|
|
175
175
|
|
|
176
176
|
let getwartermakr = async function (self) {
|
|
177
|
-
let
|
|
178
|
-
tablename: 't_singlevalue',
|
|
179
|
-
condition: " 1=1 and name=\'水印内容\'"
|
|
180
|
-
};
|
|
181
|
-
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
|
177
|
+
let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
|
|
182
178
|
if (result && result.data.length > 0) {
|
|
183
179
|
self.showwatermakeflag = true;
|
|
184
180
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
|
@@ -327,10 +323,7 @@ export default {
|
|
|
327
323
|
this.OrderDaiBan = ''
|
|
328
324
|
this.AppDaiBan = ''
|
|
329
325
|
let http = new HttpResetClass()
|
|
330
|
-
await http.load('POST', '/rs/sql/
|
|
331
|
-
tablename:'t_order_center',
|
|
332
|
-
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
|
333
|
-
}}, {
|
|
326
|
+
await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
|
|
334
327
|
resolveMsg: null,
|
|
335
328
|
rejectMsg: null
|
|
336
329
|
}).then((res) => {
|
|
@@ -400,12 +393,8 @@ export default {
|
|
|
400
393
|
},
|
|
401
394
|
async workorderOverRemind(){
|
|
402
395
|
if(this.functions && this.functions.f_role_name && this.functions.f_role_name.indexOf('管理员') !== -1 && this.functions.f_role_name.indexOf('管理人员') == -1){
|
|
403
|
-
let res = await new HttpResetClass().load('POST', '/rs/sql/
|
|
404
|
-
|
|
405
|
-
"items": "*",
|
|
406
|
-
"tablename": "t_organization",
|
|
407
|
-
"condition": `parentid = '${this.functions.orgid}'`
|
|
408
|
-
}
|
|
396
|
+
let res = await new HttpResetClass().load('POST', '/rs/sql/safeOrganizationQueryByParentId', {
|
|
397
|
+
parentid: this.functions.orgid
|
|
409
398
|
}, {resolveMsg: null, rejectMsg: null})
|
|
410
399
|
const f_filialeids = [this.functions.orgid]
|
|
411
400
|
for (const f of res.data) {
|
|
@@ -413,7 +402,8 @@ export default {
|
|
|
413
402
|
}
|
|
414
403
|
|
|
415
404
|
const data = {
|
|
416
|
-
|
|
405
|
+
f_filiale_ids: f_filialeids.join(','),
|
|
406
|
+
overday: 0
|
|
417
407
|
}
|
|
418
408
|
new HttpResetClass().load('POST','rs/sql/serviceDetails/n', {data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
|
|
419
409
|
if(res.data && res.data.n !== 0){
|
|
@@ -425,7 +415,7 @@ export default {
|
|
|
425
415
|
}
|
|
426
416
|
},
|
|
427
417
|
openUrl() {
|
|
428
|
-
var url = `
|
|
418
|
+
var url = `https://liuli.aofengcloud.com:31467`
|
|
429
419
|
window.open(url, '_blank')
|
|
430
420
|
},
|
|
431
421
|
hindsetting() {
|
|
@@ -147,11 +147,7 @@ import co from 'co'
|
|
|
147
147
|
import {HttpResetClass} from "vue-client";
|
|
148
148
|
|
|
149
149
|
let getwartermakr = async function (self) {
|
|
150
|
-
let
|
|
151
|
-
tablename: 't_singlevalue',
|
|
152
|
-
condition: " 1=1 and name=\'水印内容\'"
|
|
153
|
-
};
|
|
154
|
-
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
|
150
|
+
let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
|
|
155
151
|
if (result && result.data.length > 0) {
|
|
156
152
|
self.showwatermakeflag = true;
|
|
157
153
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
|
@@ -291,10 +287,7 @@ export default {
|
|
|
291
287
|
this.OrderDaiBan = ''
|
|
292
288
|
this.AppDaiBan = ''
|
|
293
289
|
let http = new HttpResetClass()
|
|
294
|
-
await http.load('POST', '/rs/sql/
|
|
295
|
-
tablename:'t_order_center',
|
|
296
|
-
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
|
297
|
-
}}, {
|
|
290
|
+
await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
|
|
298
291
|
resolveMsg: null,
|
|
299
292
|
rejectMsg: null
|
|
300
293
|
}).then((res) => {
|
|
@@ -363,7 +356,7 @@ export default {
|
|
|
363
356
|
}
|
|
364
357
|
},
|
|
365
358
|
openUrl() {
|
|
366
|
-
var url = `
|
|
359
|
+
var url = `https://liuli.aofengcloud.com:31467`
|
|
367
360
|
window.open(url, '_blank')
|
|
368
361
|
},
|
|
369
362
|
hindsetting() {
|
|
@@ -134,6 +134,7 @@
|
|
|
134
134
|
import $ from 'jquery'
|
|
135
135
|
import Vue from 'vue'
|
|
136
136
|
import {HttpResetClass} from 'vue-client'
|
|
137
|
+
import {isPasswordModificationExpired} from '../../components/Util'
|
|
137
138
|
|
|
138
139
|
|
|
139
140
|
|
|
@@ -191,12 +192,15 @@
|
|
|
191
192
|
}
|
|
192
193
|
}
|
|
193
194
|
console.log(self.$login.depPrompt)
|
|
194
|
-
//
|
|
195
|
-
|
|
196
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
195
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
196
|
+
if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
197
197
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
198
198
|
self.modifyPwShow = true
|
|
199
199
|
})
|
|
200
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
201
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
202
|
+
self.modifyPwShow = true
|
|
203
|
+
})
|
|
200
204
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
201
205
|
self.depPromptShow = true
|
|
202
206
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -217,6 +221,8 @@
|
|
|
217
221
|
|
|
218
222
|
} catch (ret) {
|
|
219
223
|
console.error('登录失败', ret)
|
|
224
|
+
self.$login.s = null
|
|
225
|
+
self.$login['v3-session-key'] = null
|
|
220
226
|
let msg
|
|
221
227
|
if (ret instanceof Error) {
|
|
222
228
|
msg = ret
|
|
@@ -240,19 +246,19 @@
|
|
|
240
246
|
export default {
|
|
241
247
|
title: '登录',
|
|
242
248
|
async ready () {
|
|
243
|
-
try{
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}catch(e){}
|
|
249
|
+
// try{
|
|
250
|
+
// let http = new HttpResetClass()
|
|
251
|
+
// let res = await http.load('POST', 'rs/sql/singleTable',
|
|
252
|
+
// {data:{
|
|
253
|
+
// tablename: 't_changedeclare',
|
|
254
|
+
// condition: ` f_type ='变更通知' `
|
|
255
|
+
// }
|
|
256
|
+
// }, {resolveMsg: null, rejectMsg: null})
|
|
257
|
+
// if(res.data.length>0){
|
|
258
|
+
// console.log("---------------获取通知",res.data[0].f_change_message)
|
|
259
|
+
// this.notice=res.data[0].f_change_message
|
|
260
|
+
// }
|
|
261
|
+
// }catch(e){}
|
|
256
262
|
|
|
257
263
|
this.loginother();
|
|
258
264
|
$('#login-button').click(function (event) {
|
|
@@ -261,10 +267,8 @@
|
|
|
261
267
|
})
|
|
262
268
|
if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
|
|
263
269
|
const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
|
|
264
|
-
console.log(subUrl)
|
|
265
270
|
this.model.ename = window.atob(subUrl[0])
|
|
266
271
|
this.model.password = window.atob(subUrl[1])
|
|
267
|
-
console.log('this.model.ename',this.model.ename)
|
|
268
272
|
this.otherLogin = true
|
|
269
273
|
this.confirm()
|
|
270
274
|
}else{
|
|
@@ -320,37 +324,28 @@
|
|
|
320
324
|
methods: {
|
|
321
325
|
async getDaiBan(){
|
|
322
326
|
let http = new HttpResetClass()
|
|
323
|
-
let
|
|
327
|
+
let res
|
|
324
328
|
if(this.$login.f.deps!=='柠条塔'){
|
|
325
|
-
|
|
329
|
+
res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
|
|
330
|
+
resolveMsg: null,
|
|
331
|
+
rejectMsg: null
|
|
332
|
+
})
|
|
326
333
|
} else {
|
|
327
|
-
|
|
328
|
-
}
|
|
329
|
-
await http.load('POST', '/rs/sql/singleTable', {data: {
|
|
330
|
-
tablename:'t_order_center',
|
|
331
|
-
condition:condition
|
|
332
|
-
}}, {
|
|
334
|
+
res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
|
|
333
335
|
resolveMsg: null,
|
|
334
336
|
rejectMsg: null
|
|
335
|
-
}).then((res) => {
|
|
336
|
-
let OrderDaiBan = {}
|
|
337
|
-
res.data.forEach(item=>{
|
|
338
|
-
OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
|
|
339
|
-
OrderDaiBan[item.f_ordertype].push(item)
|
|
340
|
-
})
|
|
341
|
-
this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
|
|
342
|
-
if (res.data.length> 0){
|
|
343
|
-
this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
|
|
344
|
-
}
|
|
345
337
|
})
|
|
346
|
-
let data = {
|
|
347
|
-
condition: '1 = 1',
|
|
348
|
-
data: {
|
|
349
|
-
orgid: this.$login.f.orgid,
|
|
350
|
-
id: this.$login.f.id
|
|
351
|
-
}
|
|
352
338
|
}
|
|
353
|
-
|
|
339
|
+
let OrderDaiBan = {}
|
|
340
|
+
res.data.forEach(item=>{
|
|
341
|
+
OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
|
|
342
|
+
OrderDaiBan[item.f_ordertype].push(item)
|
|
343
|
+
})
|
|
344
|
+
this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
|
|
345
|
+
if (res.data.length> 0){
|
|
346
|
+
this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
|
|
347
|
+
}
|
|
348
|
+
},
|
|
354
349
|
resolveMsg: null,
|
|
355
350
|
rejectMsg: null
|
|
356
351
|
}).then((res) => {
|
|
@@ -145,6 +145,7 @@ import co from 'co'
|
|
|
145
145
|
import $ from 'jquery'
|
|
146
146
|
import Vue from 'vue'
|
|
147
147
|
import {HttpResetClass} from 'vue-client'
|
|
148
|
+
import {isPasswordModificationExpired} from '../../components/Util'
|
|
148
149
|
import cryptJS from "../../plugins/EncryptUtil";
|
|
149
150
|
|
|
150
151
|
let daibanJson = require('../../util/Daiban.json')
|
|
@@ -204,12 +205,15 @@ let saveGen = function *(self) {
|
|
|
204
205
|
}
|
|
205
206
|
}
|
|
206
207
|
console.log(self.$login.depPrompt)
|
|
207
|
-
//
|
|
208
|
-
|
|
209
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?!.*(.)(\1)+)(?!.*(123|321|abc|cba))[a-zA-Z\d!@#$%^&*()_+-=<>?]{8,16}$/.test(self.model.password))) {
|
|
208
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
209
|
+
if ((!self.otherLogin) && !(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?!.*(.)(\1)+)(?!.*(123|321|abc|cba))[a-zA-Z\d!@#$%^&*()_+-=<>?]{8,16}$/.test(self.model.password))) {
|
|
210
210
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
211
211
|
self.modifyPwShow = true
|
|
212
212
|
})
|
|
213
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
214
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
215
|
+
self.modifyPwShow = true
|
|
216
|
+
})
|
|
213
217
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
214
218
|
self.depPromptShow = true
|
|
215
219
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -230,6 +234,8 @@ let saveGen = function *(self) {
|
|
|
230
234
|
}
|
|
231
235
|
} catch (ret) {
|
|
232
236
|
console.error('登录失败', ret)
|
|
237
|
+
self.$login.s = null
|
|
238
|
+
self.$login['v3-session-key'] = null
|
|
233
239
|
let msg
|
|
234
240
|
if (ret instanceof Error) {
|
|
235
241
|
msg = ret
|
|
@@ -258,19 +264,19 @@ export default {
|
|
|
258
264
|
this.titleShow = this.$appdata.getSingleValue('关于我们')
|
|
259
265
|
window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
|
|
260
266
|
this.vTime = this.format(new Date(window.versionTime));
|
|
261
|
-
try{
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
}catch(e){}
|
|
267
|
+
// try{
|
|
268
|
+
// let http = new HttpResetClass()
|
|
269
|
+
// let res = await http.load('POST', 'rs/sql/singleTable',
|
|
270
|
+
// {data:{
|
|
271
|
+
// tablename: 't_changedeclare',
|
|
272
|
+
// condition: ` f_type ='变更通知' `
|
|
273
|
+
// }
|
|
274
|
+
// }, {resolveMsg: null, rejectMsg: null})
|
|
275
|
+
// if(res.data.length>0){
|
|
276
|
+
// console.log("---------------获取通知",res.data[0].f_change_message)
|
|
277
|
+
// this.notice=res.data[0].f_change_message
|
|
278
|
+
// }
|
|
279
|
+
// }catch(e){}
|
|
274
280
|
|
|
275
281
|
this.loginother();
|
|
276
282
|
$('#login-button').click(function (event) {
|
|
@@ -294,10 +300,8 @@ export default {
|
|
|
294
300
|
this.confirm()
|
|
295
301
|
} else if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
|
|
296
302
|
const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
|
|
297
|
-
console.log(subUrl)
|
|
298
303
|
this.model.ename = window.atob(subUrl[0])
|
|
299
304
|
this.model.password = window.atob(subUrl[1])
|
|
300
|
-
console.log('this.model.ename',this.model.ename)
|
|
301
305
|
this.otherLogin = true
|
|
302
306
|
this.confirm()
|
|
303
307
|
}else{
|
|
@@ -371,37 +375,28 @@ export default {
|
|
|
371
375
|
},
|
|
372
376
|
async getDaiBan(){
|
|
373
377
|
let http = new HttpResetClass()
|
|
374
|
-
let
|
|
378
|
+
let res
|
|
375
379
|
if(this.$login.f.deps!=='柠条塔'){
|
|
376
|
-
|
|
380
|
+
res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
|
|
381
|
+
resolveMsg: null,
|
|
382
|
+
rejectMsg: null
|
|
383
|
+
})
|
|
377
384
|
} else {
|
|
378
|
-
|
|
379
|
-
}
|
|
380
|
-
await http.load('POST', '/rs/sql/singleTable', {data: {
|
|
381
|
-
tablename:'t_order_center',
|
|
382
|
-
condition:condition
|
|
383
|
-
}}, {
|
|
385
|
+
res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
|
|
384
386
|
resolveMsg: null,
|
|
385
387
|
rejectMsg: null
|
|
386
|
-
}).then((res) => {
|
|
387
|
-
let OrderDaiBan = {}
|
|
388
|
-
res.data.forEach(item=>{
|
|
389
|
-
OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
|
|
390
|
-
OrderDaiBan[item.f_ordertype].push(item)
|
|
391
|
-
})
|
|
392
|
-
this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
|
|
393
|
-
if (res.data.length> 0){
|
|
394
|
-
this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
|
|
395
|
-
}
|
|
396
388
|
})
|
|
397
|
-
let data = {
|
|
398
|
-
condition: '1 = 1',
|
|
399
|
-
data: {
|
|
400
|
-
orgid: this.$login.f.orgid,
|
|
401
|
-
id: this.$login.f.id
|
|
402
|
-
}
|
|
403
389
|
}
|
|
404
|
-
|
|
390
|
+
let OrderDaiBan = {}
|
|
391
|
+
res.data.forEach(item=>{
|
|
392
|
+
OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
|
|
393
|
+
OrderDaiBan[item.f_ordertype].push(item)
|
|
394
|
+
})
|
|
395
|
+
this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
|
|
396
|
+
if (res.data.length> 0){
|
|
397
|
+
this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
|
|
398
|
+
}
|
|
399
|
+
},
|
|
405
400
|
resolveMsg: null,
|
|
406
401
|
rejectMsg: null
|
|
407
402
|
}).then((res) => {
|
|
@@ -157,11 +157,7 @@ import co from 'co'
|
|
|
157
157
|
import {HttpResetClass} from "vue-client";
|
|
158
158
|
|
|
159
159
|
let getwartermakr = async function (self) {
|
|
160
|
-
let
|
|
161
|
-
tablename: 't_singlevalue',
|
|
162
|
-
condition: " 1=1 and name=\'水印内容\'"
|
|
163
|
-
};
|
|
164
|
-
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
|
160
|
+
let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
|
|
165
161
|
if (result && result.data.length > 0) {
|
|
166
162
|
self.showwatermakeflag = true;
|
|
167
163
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
|
@@ -300,10 +296,7 @@ export default {
|
|
|
300
296
|
this.OrderDaiBan = ''
|
|
301
297
|
this.AppDaiBan = ''
|
|
302
298
|
let http = new HttpResetClass()
|
|
303
|
-
await http.load('POST', '/rs/sql/
|
|
304
|
-
tablename:'t_order_center',
|
|
305
|
-
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
|
306
|
-
}}, {
|
|
299
|
+
await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
|
|
307
300
|
resolveMsg: null,
|
|
308
301
|
rejectMsg: null
|
|
309
302
|
}).then((res) => {
|
|
@@ -372,7 +365,7 @@ export default {
|
|
|
372
365
|
}
|
|
373
366
|
},
|
|
374
367
|
openUrl() {
|
|
375
|
-
var url = `
|
|
368
|
+
var url = `https://liuli.aofengcloud.com:31467`
|
|
376
369
|
window.open(url, '_blank')
|
|
377
370
|
},
|
|
378
371
|
hindsetting() {
|
|
@@ -124,6 +124,7 @@ import co from 'co'
|
|
|
124
124
|
import $ from 'jquery'
|
|
125
125
|
import Vue from 'vue'
|
|
126
126
|
import {HttpResetClass} from 'vue-client'
|
|
127
|
+
import {isPasswordModificationExpired} from '../../components/Util'
|
|
127
128
|
|
|
128
129
|
|
|
129
130
|
|
|
@@ -182,12 +183,15 @@ let saveGen = function *(self) {
|
|
|
182
183
|
}
|
|
183
184
|
}
|
|
184
185
|
console.log(self.$login.depPrompt)
|
|
185
|
-
//
|
|
186
|
-
|
|
187
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
186
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
187
|
+
if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
188
188
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
189
189
|
self.modifyPwShow = true
|
|
190
190
|
})
|
|
191
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
192
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
193
|
+
self.modifyPwShow = true
|
|
194
|
+
})
|
|
191
195
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
192
196
|
self.depPromptShow = true
|
|
193
197
|
} else {
|
|
@@ -204,6 +208,8 @@ let saveGen = function *(self) {
|
|
|
204
208
|
|
|
205
209
|
} catch (ret) {
|
|
206
210
|
console.error('登录失败', ret)
|
|
211
|
+
self.$login.s = null
|
|
212
|
+
self.$login['v3-session-key'] = null
|
|
207
213
|
let msg
|
|
208
214
|
if (ret instanceof Error) {
|
|
209
215
|
msg = ret
|
|
@@ -227,19 +233,19 @@ let saveGen = function *(self) {
|
|
|
227
233
|
export default {
|
|
228
234
|
title: '登录',
|
|
229
235
|
async ready () {
|
|
230
|
-
try{
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}catch(e){}
|
|
236
|
+
// try{
|
|
237
|
+
// let http = new HttpResetClass()
|
|
238
|
+
// let res = await http.load('POST', 'rs/sql/singleTable',
|
|
239
|
+
// {data:{
|
|
240
|
+
// tablename: 't_changedeclare',
|
|
241
|
+
// condition: ` f_type ='变更通知' `
|
|
242
|
+
// }
|
|
243
|
+
// }, {resolveMsg: null, rejectMsg: null})
|
|
244
|
+
// if(res.data.length>0){
|
|
245
|
+
// console.log("---------------获取通知",res.data[0].f_change_message)
|
|
246
|
+
// this.notice=res.data[0].f_change_message
|
|
247
|
+
// }
|
|
248
|
+
// }catch(e){}
|
|
243
249
|
|
|
244
250
|
this.loginother();
|
|
245
251
|
$('#login-button').click(function (event) {
|
|
@@ -248,10 +254,8 @@ export default {
|
|
|
248
254
|
})
|
|
249
255
|
if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
|
|
250
256
|
const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
|
|
251
|
-
console.log(subUrl)
|
|
252
257
|
this.model.ename = window.atob(subUrl[0])
|
|
253
258
|
this.model.password = window.atob(subUrl[1])
|
|
254
|
-
console.log('this.model.ename',this.model.ename)
|
|
255
259
|
this.otherLogin = true
|
|
256
260
|
this.confirm()
|
|
257
261
|
}else{
|
|
@@ -64,11 +64,7 @@ import co from 'co'
|
|
|
64
64
|
import {HttpResetClass} from "vue-client";
|
|
65
65
|
|
|
66
66
|
let getwartermakr = async function (self) {
|
|
67
|
-
let
|
|
68
|
-
tablename: 't_singlevalue',
|
|
69
|
-
condition: " 1=1 and name=\'水印内容\'"
|
|
70
|
-
};
|
|
71
|
-
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
|
67
|
+
let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
|
|
72
68
|
if (result && result.data.length > 0) {
|
|
73
69
|
self.showwatermakeflag = true;
|
|
74
70
|
createWaterMark(result.data[0].value);
|
|
@@ -216,7 +212,7 @@ export default {
|
|
|
216
212
|
}
|
|
217
213
|
},
|
|
218
214
|
openUrl() {
|
|
219
|
-
var url = `
|
|
215
|
+
var url = `https://liuli.aofengcloud.com:31467`
|
|
220
216
|
window.open(url, '_blank')
|
|
221
217
|
},
|
|
222
218
|
hindsetting() {
|
|
@@ -145,6 +145,7 @@
|
|
|
145
145
|
import $ from 'jquery'
|
|
146
146
|
import Vue from 'vue'
|
|
147
147
|
import {HttpResetClass} from 'vue-client'
|
|
148
|
+
import {isPasswordModificationExpired} from '../../components/Util'
|
|
148
149
|
|
|
149
150
|
let daibanJson = require('../../util/Daiban.json')
|
|
150
151
|
|
|
@@ -203,12 +204,15 @@
|
|
|
203
204
|
}
|
|
204
205
|
}
|
|
205
206
|
console.log(self.$login.depPrompt)
|
|
206
|
-
//
|
|
207
|
-
|
|
208
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
207
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
208
|
+
if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
209
209
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
210
210
|
self.modifyPwShow = true
|
|
211
211
|
})
|
|
212
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
213
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
214
|
+
self.modifyPwShow = true
|
|
215
|
+
})
|
|
212
216
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
213
217
|
self.depPromptShow = true
|
|
214
218
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -229,6 +233,8 @@
|
|
|
229
233
|
}
|
|
230
234
|
} catch (ret) {
|
|
231
235
|
console.error('登录失败', ret)
|
|
236
|
+
self.$login.s = null
|
|
237
|
+
self.$login['v3-session-key'] = null
|
|
232
238
|
let msg
|
|
233
239
|
if (ret instanceof Error) {
|
|
234
240
|
msg = ret
|
|
@@ -257,19 +263,19 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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) => {
|