system-clients 3.3.1 → 3.3.3-old
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/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 +2 -0
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/file-system.probe +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/package.json +105 -105
- package/src/LodopFuncs.js +71 -103
- package/src/components/Main.vue +927 -931
- package/src/components/equipment/PcAdd.vue +1 -1
- package/src/components/equipment/PcList.vue +3 -3
- package/src/components/equipment/PhoneAdd.vue +1 -1
- package/src/components/equipment/PhoneList.vue +2 -2
- package/src/components/equipment/PosAdd.vue +11 -7
- package/src/components/equipment/PosList.vue +5 -3
- package/src/components/equipment/PosManage.vue +1 -1
- package/src/components/equipment/PosParamAdd.vue +2 -2
- package/src/components/equipment/PosParamList.vue +2 -2
- package/src/components/materialManage/materialList.vue +1 -1
- package/src/components/parammanage/ParamPage.vue +12 -12
- package/src/components/parammanage/ParamPages.vue +2 -2
- package/src/components/parammanage/SinglePage.vue +8 -8
- package/src/components/parammanage/SinglePages.vue +2 -2
- package/src/components/server/AddChangeMsg.vue +1 -1
- package/src/components/server/ChangeDeclare.vue +1 -1
- package/src/components/server/Login.vue +589 -548
- package/src/components/server/ModifyPw.vue +0 -1
- package/src/components/server/PcdBuildingSelect.vue +6 -8
- package/src/components/server/ResSelect.vue +0 -3
- package/src/components/server/ResSelectGroup.vue +1 -1
- package/src/components/server/RoleSelector.vue +2 -3
- package/src/components/server/TestResSelectGroup.vue +1 -1
- package/src/filiale/baole/Login.vue +2 -4
- package/src/filiale/chengtou/Login.vue +2 -4
- package/src/filiale/dongguan/Login.vue +2 -4
- package/src/filiale/dongguan/Main.vue +2 -4
- package/src/filiale/furuike/Login.vue +3 -7
- package/src/filiale/furuike/Main.vue +25 -38
- package/src/filiale/gehua/Main.vue +2 -4
- package/src/filiale/konggang/Login.vue +2 -4
- package/src/filiale/qianneng/Login.vue +2 -4
- package/src/filiale/qianneng/Main.vue +2 -4
- package/src/filiale/qianneng/ModifyPw.vue +0 -1
- package/src/filiale/rizhao/Login.vue +1 -3
- package/src/filiale/rizhao/Main.vue +2 -2
- package/src/filiale/shiquan/Login.vue +2 -4
- package/src/filiale/tianyi/Login.vue +2 -4
- package/src/filiale/tongchuan/Login.vue +2 -4
- package/src/filiale/tongchuan/Main.vue +5 -7
- package/src/filiale/weinan/Main.vue +5 -6
- package/src/filiale/wenxi/Login.vue +2 -4
- package/src/filiale/wenxi/Main.vue +2 -4
- package/src/filiale/wuhai/Main.vue +2 -5
- package/src/filiale/yuchuan/Login.vue +3 -5
- package/src/filiale/yuchuan/Main.vue +2 -4
- package/src/filiale/zhoukou/Main.vue +2 -4
- package/src/plugins/GetLoginInfoService.js +75 -17
- package/src/stores/AppData.js +1 -1
- package/src/filiale/ruihua/Login.vue +0 -549
- package/src/filiale/ruihua/system.js +0 -5
@@ -171,7 +171,6 @@ let saveGen = function *(self) {
|
|
171
171
|
console.log('登录配置', self.config)
|
172
172
|
if (self.config.isMac) {
|
173
173
|
// 获取该登录人分公司下的mac配置
|
174
|
-
// todo v4
|
175
174
|
let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
|
176
175
|
resolveMsg: null,
|
177
176
|
rejectMsg: null
|
@@ -258,7 +257,7 @@ export default {
|
|
258
257
|
this.titleShow = this.$appdata.getSingleValue('关于我们')
|
259
258
|
try{
|
260
259
|
let http = new HttpResetClass()
|
261
|
-
let res = await http.load('POST', '
|
260
|
+
let res = await http.load('POST', 'rs/sql/singleTable',
|
262
261
|
{data:{
|
263
262
|
tablename: 't_changedeclare',
|
264
263
|
condition: ` f_type ='变更通知' `
|
@@ -372,7 +371,7 @@ export default {
|
|
372
371
|
} else {
|
373
372
|
condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
|
374
373
|
}
|
375
|
-
await http.load('POST', '/
|
374
|
+
await http.load('POST', '/rs/sql/singleTable', {data: {
|
376
375
|
tablename:'t_order_center',
|
377
376
|
condition:condition
|
378
377
|
}}, {
|
@@ -448,7 +447,6 @@ export default {
|
|
448
447
|
if (this.config.distanceLogin) {
|
449
448
|
if (this.$login && this.$login.getUrlParames('name') ) {
|
450
449
|
let ename = this.$login.getUrlParames('name');
|
451
|
-
// todo v4
|
452
450
|
let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
|
453
451
|
if(logininfo.data){
|
454
452
|
if(logininfo.data.ename && logininfo.data.password){
|
@@ -212,8 +212,7 @@ let getwartermakr = async function (self) {
|
|
212
212
|
tablename: 't_singlevalue',
|
213
213
|
condition: " 1=1 and name=\'水印内容\'"
|
214
214
|
};
|
215
|
-
|
216
|
-
let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
215
|
+
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
217
216
|
if (result && result.data.length > 0) {
|
218
217
|
self.showwatermakeflag = true;
|
219
218
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
@@ -377,7 +376,6 @@ let createWaterMark = function (userName) {
|
|
377
376
|
this.model.f_stopgas_id = this.notices.id
|
378
377
|
this.model.f_user_id = this.$login.f.id
|
379
378
|
console.log('保存', this.model)
|
380
|
-
// todo v4
|
381
379
|
this.$resetpost('rs/logic/savenoticenotarize', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
382
380
|
this.model.f_stopgas_id = ''
|
383
381
|
this.model.f_user_id = ''
|
@@ -495,7 +493,7 @@ let createWaterMark = function (userName) {
|
|
495
493
|
this.OrderDaiBan = ''
|
496
494
|
this.AppDaiBan = ''
|
497
495
|
let http = new HttpResetClass()
|
498
|
-
await http.load('POST', '/
|
496
|
+
await http.load('POST', '/rs/sql/singleTable', {data: {
|
499
497
|
tablename:'t_order_center',
|
500
498
|
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
501
499
|
}}, {
|
@@ -543,7 +541,7 @@ let createWaterMark = function (userName) {
|
|
543
541
|
async getExpireDate(){
|
544
542
|
// 获取分公司的表品牌id
|
545
543
|
let http = new HttpResetClass()
|
546
|
-
await http.load('POST', '/
|
544
|
+
await http.load('POST', '/rs/sql/singleTable', {data: {
|
547
545
|
tablename:'t_gasbrand_orgid',
|
548
546
|
condition:`f_using_orgid ='${this.$login.f.orgid}'`
|
549
547
|
}}, {
|
@@ -557,7 +555,7 @@ let createWaterMark = function (userName) {
|
|
557
555
|
}
|
558
556
|
if (this.gasbrandIdData.length > 0) {
|
559
557
|
// 获取卡表到期时间
|
560
|
-
http.load('POST', '/
|
558
|
+
http.load('POST', '/rs/sql/singleTable', {data: {
|
561
559
|
tablename:'t_gasbrand',
|
562
560
|
condition:`id in (${this.gasbrandIdData}) and f_meter_type like '%卡表%'`
|
563
561
|
}}, {
|
@@ -568,6 +566,7 @@ let createWaterMark = function (userName) {
|
|
568
566
|
res.data.forEach(itre => {
|
569
567
|
let band = null
|
570
568
|
if ('f_dynamic_expire' in itre) {
|
569
|
+
console.log(itre.f_dynamic_expire)
|
571
570
|
if (itre.f_dynamic_expire !== null && itre.f_dynamic_expire !== '') {
|
572
571
|
let todayold = new Date(itre.f_dynamic_expire)
|
573
572
|
todayold.setDate(todayold.getDate() - parseInt(this.$appdata.getSingleValue('动态库提醒天数设置')))
|
@@ -697,7 +696,6 @@ let createWaterMark = function (userName) {
|
|
697
696
|
username: this.$login.f.name,
|
698
697
|
usertelephone: this.$login.f.f_user_telephone
|
699
698
|
}
|
700
|
-
// todo v4
|
701
699
|
await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
|
702
700
|
window.location.reload()
|
703
701
|
}
|
@@ -189,8 +189,7 @@ let getwartermakr = async function (self) {
|
|
189
189
|
tablename: 't_singlevalue',
|
190
190
|
condition: " 1=1 and name=\'水印内容\'"
|
191
191
|
};
|
192
|
-
|
193
|
-
let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
192
|
+
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
194
193
|
if (result && result.data.length > 0) {
|
195
194
|
self.showwatermakeflag = true;
|
196
195
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
@@ -398,7 +397,7 @@ export default {
|
|
398
397
|
this.OrderDaiBan = ''
|
399
398
|
this.AppDaiBan = ''
|
400
399
|
let http = new HttpResetClass()
|
401
|
-
await http.load('POST', '/
|
400
|
+
await http.load('POST', '/rs/sql/singleTable', {data: {
|
402
401
|
tablename:'t_order_center',
|
403
402
|
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
404
403
|
}}, {
|
@@ -446,7 +445,7 @@ export default {
|
|
446
445
|
async getExpireDate(){
|
447
446
|
// 获取分公司的表品牌id
|
448
447
|
let http = new HttpResetClass()
|
449
|
-
await http.load('POST', '/
|
448
|
+
await http.load('POST', '/rs/sql/singleTable', {data: {
|
450
449
|
tablename:'t_gasbrand_orgid',
|
451
450
|
condition:`f_using_orgid ='${this.$login.f.orgid}'`
|
452
451
|
}}, {
|
@@ -460,7 +459,7 @@ export default {
|
|
460
459
|
}
|
461
460
|
if (this.gasbrandIdData.length > 0) {
|
462
461
|
// 获取卡表到期时间
|
463
|
-
http.load('POST', '/
|
462
|
+
http.load('POST', '/rs/sql/singleTable', {data: {
|
464
463
|
tablename:'t_gasbrand',
|
465
464
|
condition:`id in (${this.gasbrandIdData}) and f_meter_type like '%卡表%'`
|
466
465
|
}}, {
|
@@ -471,6 +470,7 @@ export default {
|
|
471
470
|
res.data.forEach(itre => {
|
472
471
|
let band = null
|
473
472
|
if ('f_dynamic_expire' in itre) {
|
473
|
+
console.log(itre.f_dynamic_expire)
|
474
474
|
if (itre.f_dynamic_expire !== null && itre.f_dynamic_expire !== '') {
|
475
475
|
let todayold = new Date(itre.f_dynamic_expire)
|
476
476
|
todayold.setDate(todayold.getDate() - parseInt(this.$appdata.getSingleValue('动态库提醒天数设置')))
|
@@ -600,7 +600,6 @@ export default {
|
|
600
600
|
username: this.$login.f.name,
|
601
601
|
usertelephone: this.$login.f.f_user_telephone
|
602
602
|
}
|
603
|
-
// todo v4
|
604
603
|
await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
|
605
604
|
window.location.reload()
|
606
605
|
}
|
@@ -171,7 +171,6 @@ let saveGen = function *(self) {
|
|
171
171
|
console.log('登录配置', self.config)
|
172
172
|
if (self.config.isMac) {
|
173
173
|
// 获取该登录人分公司下的mac配置
|
174
|
-
// todo v4
|
175
174
|
let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
|
176
175
|
resolveMsg: null,
|
177
176
|
rejectMsg: null
|
@@ -260,7 +259,7 @@ export default {
|
|
260
259
|
this.vTime = this.format(new Date(window.versionTime));
|
261
260
|
try{
|
262
261
|
let http = new HttpResetClass()
|
263
|
-
let res = await http.load('POST', '
|
262
|
+
let res = await http.load('POST', 'rs/sql/singleTable',
|
264
263
|
{data:{
|
265
264
|
tablename: 't_changedeclare',
|
266
265
|
condition: ` f_type ='变更通知' `
|
@@ -360,7 +359,7 @@ export default {
|
|
360
359
|
} else {
|
361
360
|
condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
|
362
361
|
}
|
363
|
-
await http.load('POST', '/
|
362
|
+
await http.load('POST', '/rs/sql/singleTable', {data: {
|
364
363
|
tablename:'t_order_center',
|
365
364
|
condition:condition
|
366
365
|
}}, {
|
@@ -436,7 +435,6 @@ export default {
|
|
436
435
|
if (this.config.distanceLogin) {
|
437
436
|
if (this.$login && this.$login.getUrlParames('name') ) {
|
438
437
|
let ename = this.$login.getUrlParames('name');
|
439
|
-
// todo v4
|
440
438
|
let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
|
441
439
|
if(logininfo.data){
|
442
440
|
if(logininfo.data.ename && logininfo.data.password){
|
@@ -165,8 +165,7 @@ let getwartermakr = async function (self) {
|
|
165
165
|
tablename: 't_singlevalue',
|
166
166
|
condition: " 1=1 and name=\'水印内容\'"
|
167
167
|
};
|
168
|
-
|
169
|
-
let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
168
|
+
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
170
169
|
if (result && result.data.length > 0) {
|
171
170
|
self.showwatermakeflag = true;
|
172
171
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
@@ -312,7 +311,7 @@ export default {
|
|
312
311
|
this.OrderDaiBan = ''
|
313
312
|
this.AppDaiBan = ''
|
314
313
|
let http = new HttpResetClass()
|
315
|
-
await http.load('POST', '/
|
314
|
+
await http.load('POST', '/rs/sql/singleTable', {data: {
|
316
315
|
tablename:'t_order_center',
|
317
316
|
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
318
317
|
}}, {
|
@@ -463,7 +462,6 @@ export default {
|
|
463
462
|
username: this.$login.f.name,
|
464
463
|
usertelephone: this.$login.f.f_user_telephone
|
465
464
|
}
|
466
|
-
// todo v4
|
467
465
|
await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
|
468
466
|
window.location.reload()
|
469
467
|
}
|
@@ -165,8 +165,7 @@ let getwartermakr = async function (self) {
|
|
165
165
|
tablename: 't_singlevalue',
|
166
166
|
condition: " 1=1 and name=\'水印内容\'"
|
167
167
|
};
|
168
|
-
|
169
|
-
let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
168
|
+
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
170
169
|
if (result && result.data.length > 0) {
|
171
170
|
self.showwatermakeflag = true;
|
172
171
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
@@ -317,7 +316,7 @@ export default {
|
|
317
316
|
this.OrderDaiBan = ''
|
318
317
|
this.AppDaiBan = ''
|
319
318
|
let http = new HttpResetClass()
|
320
|
-
await http.load('POST', '/
|
319
|
+
await http.load('POST', '/rs/sql/singleTable', {data: {
|
321
320
|
tablename:'t_order_center',
|
322
321
|
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
323
322
|
}}, {
|
@@ -468,7 +467,6 @@ export default {
|
|
468
467
|
username: this.$login.f.name,
|
469
468
|
usertelephone: this.$login.f.f_user_telephone
|
470
469
|
}
|
471
|
-
// todo v4
|
472
470
|
await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
|
473
471
|
window.location.reload()
|
474
472
|
}
|
@@ -477,7 +475,6 @@ export default {
|
|
477
475
|
// 微信统计投诉和咨询的条数
|
478
476
|
async WechatOfComplaintAndConsult () {
|
479
477
|
console.log('开始执行')
|
480
|
-
// todo v4
|
481
478
|
let WeChatData = await this.$resetpost('rs/sql/singleTable_OrderBy',{
|
482
479
|
data:{
|
483
480
|
items: 'f_isreply',
|
@@ -170,7 +170,6 @@ let saveGen = function *(self) {
|
|
170
170
|
console.log('登录配置', self.config)
|
171
171
|
if (self.config.isMac) {
|
172
172
|
// 获取该登录人分公司下的mac配置
|
173
|
-
// todo v4
|
174
173
|
let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
|
175
174
|
resolveMsg: null,
|
176
175
|
rejectMsg: null
|
@@ -257,7 +256,7 @@ export default {
|
|
257
256
|
this.titleShow = this.$appdata.getSingleValue('关于我们')
|
258
257
|
try{
|
259
258
|
let http = new HttpResetClass()
|
260
|
-
let res = await http.load('POST', '
|
259
|
+
let res = await http.load('POST', 'rs/sql/singleTable',
|
261
260
|
{data:{
|
262
261
|
tablename: 't_changedeclare',
|
263
262
|
condition: ` f_type ='变更通知' `
|
@@ -303,7 +302,7 @@ export default {
|
|
303
302
|
isMac: false,
|
304
303
|
depPrompt: false,
|
305
304
|
weakPassword: false,
|
306
|
-
title: '
|
305
|
+
title: '燃气客服系统',
|
307
306
|
distanceLogin: false,
|
308
307
|
// 那些角色可以定时获取预约提示
|
309
308
|
isTip : false,
|
@@ -344,7 +343,7 @@ export default {
|
|
344
343
|
} else {
|
345
344
|
condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
|
346
345
|
}
|
347
|
-
await http.load('POST', '/
|
346
|
+
await http.load('POST', '/rs/sql/singleTable', {data: {
|
348
347
|
tablename:'t_order_center',
|
349
348
|
condition:condition
|
350
349
|
}}, {
|
@@ -420,7 +419,6 @@ export default {
|
|
420
419
|
if (this.config.distanceLogin) {
|
421
420
|
if (this.$login && this.$login.getUrlParames('name') ) {
|
422
421
|
let ename = this.$login.getUrlParames('name');
|
423
|
-
// todo v4
|
424
422
|
let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
|
425
423
|
if(logininfo.data){
|
426
424
|
if(logininfo.data.ename && logininfo.data.password){
|
@@ -155,8 +155,7 @@ let getwartermakr = async function (self) {
|
|
155
155
|
tablename: 't_singlevalue',
|
156
156
|
condition: " 1=1 and name=\'水印内容\'"
|
157
157
|
};
|
158
|
-
|
159
|
-
let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
158
|
+
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
160
159
|
if (result && result.data.length > 0) {
|
161
160
|
self.showwatermakeflag = true;
|
162
161
|
createWaterMark(result.data[0].value);
|
@@ -391,7 +390,7 @@ export default {
|
|
391
390
|
this.OrderDaiBan = ''
|
392
391
|
this.AppDaiBan = ''
|
393
392
|
let http = new HttpResetClass()
|
394
|
-
await http.load('POST', '/
|
393
|
+
await http.load('POST', '/rs/sql/singleTable', {data: {
|
395
394
|
tablename:'t_order_center',
|
396
395
|
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
397
396
|
}}, {
|
@@ -542,7 +541,6 @@ export default {
|
|
542
541
|
username: this.$login.f.name,
|
543
542
|
usertelephone: this.$login.f.f_user_telephone
|
544
543
|
}
|
545
|
-
// todo v4
|
546
544
|
await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
|
547
545
|
window.location.reload()
|
548
546
|
}
|
@@ -151,8 +151,7 @@ let getwartermakr = async function (self) {
|
|
151
151
|
tablename: 't_singlevalue',
|
152
152
|
condition: " 1=1 and name=\'水印内容\'"
|
153
153
|
};
|
154
|
-
|
155
|
-
let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
154
|
+
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
156
155
|
if (result && result.data.length > 0) {
|
157
156
|
self.showwatermakeflag = true;
|
158
157
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
@@ -292,7 +291,7 @@ export default {
|
|
292
291
|
this.OrderDaiBan = ''
|
293
292
|
this.AppDaiBan = ''
|
294
293
|
let http = new HttpResetClass()
|
295
|
-
await http.load('POST', '/
|
294
|
+
await http.load('POST', '/rs/sql/singleTable', {data: {
|
296
295
|
tablename:'t_order_center',
|
297
296
|
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
298
297
|
}}, {
|
@@ -423,7 +422,6 @@ export default {
|
|
423
422
|
username: this.$login.f.name,
|
424
423
|
usertelephone: this.$login.f.f_user_telephone
|
425
424
|
}
|
426
|
-
// todo v4
|
427
425
|
await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
|
428
426
|
window.location.reload()
|
429
427
|
}
|
@@ -2,21 +2,33 @@ import Vue from 'vue'
|
|
2
2
|
import {HttpResetClass} from 'vue-client'
|
3
3
|
import cryptJS from './EncryptUtil'
|
4
4
|
|
5
|
-
let loginGen = async function (
|
6
|
-
let data = {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
if (getLogin.data) {
|
5
|
+
let loginGen = async function (name, password, cue) {
|
6
|
+
let data = {name: name, password: password}
|
7
|
+
data = '$' + cryptJS.RSAEncrypt(JSON.stringify(data))
|
8
|
+
const getLogin = await Vue.resetpost('/rs/logic/getLogin', data, {resolveMsg: null, rejectMsg: null})
|
9
|
+
if (getLogin.data.states === '登录成功') {
|
11
10
|
//获取jwt
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
11
|
+
Vue.$login.jwt = getLogin.data.jwt
|
12
|
+
Vue.$login.jwtNew = getLogin.data.jwtNew
|
13
|
+
// 调用远程登录服务,获取所有有权访问的功能
|
14
|
+
data = {username: name, password: password}
|
15
|
+
data = cryptJS.RSAEncrypt(JSON.stringify(data))
|
16
|
+
const resource = await Vue.resetpost(`/rs/user/userLogin/客服系统`, data, {
|
17
|
+
resolveMsg: null,
|
18
|
+
rejectMsg: null
|
19
|
+
})
|
20
|
+
// 兼容旧版ldao
|
21
|
+
if ((JSON.stringify(resource.data).startsWith("{") || JSON.stringify(resource.data).startsWith("[")) && resource.data.code && resource.data.msg && resource.data.code !== 200) {
|
22
|
+
throw {status: 555, data: resource.data.msg}
|
23
|
+
}
|
24
|
+
console.log('登陆获取Util', JSON.stringify(resource.data))
|
25
|
+
|
26
|
+
// 兼容旧版ldao,旧版不返回code
|
27
|
+
if ((JSON.stringify(resource.data).startsWith("{") || JSON.stringify(resource.data).startsWith("[")) && resource.data.code && resource.data.msg) {
|
28
|
+
Vue.$login.f = resource.data.data
|
29
|
+
} else {
|
30
|
+
Vue.$login.f = resource.data
|
18
31
|
}
|
19
|
-
Vue.$login.jwtNew = getLogin.data.access_token
|
20
32
|
// 把登录用户添加到cookie里
|
21
33
|
Vue.cookie.set('loginId', Vue.$login.f.id)
|
22
34
|
try {
|
@@ -25,6 +37,7 @@ let loginGen = async function (username, password, cue) {
|
|
25
37
|
source: "tool.getFullTree(this.getRights().where(row.getType() == $function$))",
|
26
38
|
userid: Vue.$login.f.id
|
27
39
|
}, { resolveMsg: null, rejectMsg: null })
|
40
|
+
console.log('有权限功能返回数据', JSON.stringify(hasRight.data))
|
28
41
|
//准备替换功能树
|
29
42
|
var fun = []
|
30
43
|
hasRight.data[0].children[0].children.forEach((item) => {
|
@@ -34,6 +47,8 @@ let loginGen = async function (username, password, cue) {
|
|
34
47
|
})
|
35
48
|
}
|
36
49
|
})
|
50
|
+
// console.log('替换前', JSON.stringify(Vue.$login.f.functions))
|
51
|
+
// console.log('替换后', JSON.stringify(fun))
|
37
52
|
Vue.$login.f.functions = fun
|
38
53
|
} catch (error) {
|
39
54
|
}
|
@@ -84,6 +99,21 @@ let loginGen = async function (username, password, cue) {
|
|
84
99
|
Vue.$login.f.f_installman = []
|
85
100
|
console.log('安装人模块', error)
|
86
101
|
}
|
102
|
+
// 获取换表员
|
103
|
+
// try {
|
104
|
+
// let getChangeMeterman = await Vue.resetpost('/rs/search', {
|
105
|
+
// source: 'this.getParentByType($organization$).getChildByName($换表员$).getUsers()',
|
106
|
+
// userid: Vue.$login.f.id
|
107
|
+
// }, {resolveMsg: null, rejectMsg: null})
|
108
|
+
// let changemeterman = []
|
109
|
+
// for (let i = 0; i < getChangeMeterman.data.length; i++) {
|
110
|
+
// changemeterman.push(getChangeMeterman.data[i])
|
111
|
+
// }
|
112
|
+
// Vue.$login.f.f_changemeterman = changemeterman
|
113
|
+
// }catch (error) {
|
114
|
+
// Vue.$login.f.f_changemeterman = []
|
115
|
+
// console.log('换表员模块',error)
|
116
|
+
// }
|
87
117
|
// 获取资源服务权限
|
88
118
|
try {
|
89
119
|
let getLic = await Vue.resetpost('/rs/search', {
|
@@ -101,6 +131,37 @@ let loginGen = async function (username, password, cue) {
|
|
101
131
|
Vue.$login.f.f_gasman = []
|
102
132
|
console.log('资源服务权限', error)
|
103
133
|
}
|
134
|
+
// // 票据使用人
|
135
|
+
// try {
|
136
|
+
// let getPaperUseman = await Vue.resetpost('/rs/search', {
|
137
|
+
// source: 'this.getParentByType($organization$).getChildByName($票据使用人$).getUsers()',
|
138
|
+
// userid: Vue.$login.f.id
|
139
|
+
// }, {resolveMsg: null, rejectMsg: null})
|
140
|
+
// let perperuseman = []
|
141
|
+
// for (let i = 0; i < getPaperUseman.data.length; i++) {
|
142
|
+
// perperuseman.push(getPaperUseman.data[i])
|
143
|
+
// }
|
144
|
+
// Vue.$login.f.f_paperUseman = perperuseman
|
145
|
+
// }catch (error) {
|
146
|
+
// Vue.$login.f.f_paperUseman = []
|
147
|
+
// console.log('票据使用人模块',error)
|
148
|
+
//
|
149
|
+
// }
|
150
|
+
// // 票据分配人
|
151
|
+
// try {
|
152
|
+
// let getPaperAllotman = await Vue.resetpost('/rs/search', {
|
153
|
+
// source: 'this.getParentByType($organization$).getChildByName($票据分配人$).getUsers()',
|
154
|
+
// userid: Vue.$login.f.id
|
155
|
+
// }, {resolveMsg: null, rejectMsg: null})
|
156
|
+
// let paperallotman = []
|
157
|
+
// for (let i = 0; i < getPaperAllotman.data.length; i++) {
|
158
|
+
// paperallotman.push(getPaperAllotman.data[i])
|
159
|
+
// }
|
160
|
+
// Vue.$login.f.f_paperAllotman = paperallotman
|
161
|
+
// }catch (error) {
|
162
|
+
// Vue.$login.f.f_paperAllotman = []
|
163
|
+
// console.log('票据分配人模块',error)
|
164
|
+
// }
|
104
165
|
// TODO 处理界面细节
|
105
166
|
try {
|
106
167
|
let viewDetails = await Vue.resetpost('rs/search', {
|
@@ -144,10 +205,7 @@ let loginGen = async function (username, password, cue) {
|
|
144
205
|
}
|
145
206
|
|
146
207
|
} else {
|
147
|
-
let error = {status: 401, data:
|
148
|
-
if (getLogin.data.code !== 500) {
|
149
|
-
error = {status: getLogin.data.code, data: getLogin.data.msg}
|
150
|
-
}
|
208
|
+
let error = {status: 401, data: getLogin.data.states}
|
151
209
|
// 抛出错误
|
152
210
|
throw error
|
153
211
|
}
|
package/src/stores/AppData.js
CHANGED
@@ -9,7 +9,7 @@ let GetAppDataService = {
|
|
9
9
|
|
10
10
|
// 开启卡监听
|
11
11
|
load () {
|
12
|
-
return Vue.resetpost('
|
12
|
+
return Vue.resetpost('rs/logic/getInitData', {data: {f_filialeids: Vue.$login.f.orgid}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
13
13
|
res.data.singleValues.forEach((item) => {
|
14
14
|
this.singleValues[item.name] = item.value
|
15
15
|
})
|