system-clients 3.3.3-old → 3.3.3
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.json +105 -105
- package/src/LodopFuncs.js +103 -71
- package/src/components/Main.vue +935 -927
- 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 +7 -11
- package/src/components/equipment/PosList.vue +3 -5
- 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 +575 -589
- package/src/components/server/ModifyPw.vue +1 -0
- package/src/components/server/PcdBuildingSelect.vue +8 -6
- package/src/components/server/ResSelect.vue +3 -0
- package/src/components/server/ResSelectGroup.vue +1 -1
- package/src/components/server/RoleSelector.vue +3 -2
- package/src/components/server/TestResSelectGroup.vue +1 -1
- package/src/filiale/baole/Login.vue +4 -2
- package/src/filiale/chengtou/Login.vue +4 -2
- package/src/filiale/dongguan/Login.vue +4 -2
- package/src/filiale/dongguan/Main.vue +4 -2
- package/src/filiale/furuike/Login.vue +7 -3
- package/src/filiale/furuike/Main.vue +38 -25
- package/src/filiale/gehua/Main.vue +4 -2
- package/src/filiale/konggang/Login.vue +4 -2
- package/src/filiale/qianneng/Login.vue +4 -2
- package/src/filiale/qianneng/Main.vue +4 -2
- package/src/filiale/qianneng/ModifyPw.vue +1 -0
- package/src/filiale/rizhao/Login.vue +3 -1
- package/src/filiale/rizhao/Main.vue +2 -2
- package/src/filiale/ruihua/Login.vue +576 -0
- package/src/filiale/ruihua/system.js +5 -0
- package/src/filiale/shiquan/Login.vue +4 -2
- package/src/filiale/tianyi/Login.vue +4 -2
- package/src/filiale/tongchuan/Login.vue +4 -2
- package/src/filiale/tongchuan/Main.vue +7 -5
- package/src/filiale/weinan/Main.vue +6 -5
- package/src/filiale/wenxi/Login.vue +4 -2
- package/src/filiale/wenxi/Main.vue +4 -2
- package/src/filiale/wuhai/Main.vue +5 -2
- package/src/filiale/yuchuan/Login.vue +5 -3
- package/src/filiale/yuchuan/Main.vue +4 -2
- package/src/filiale/zhoukou/Main.vue +4 -2
- package/src/plugins/GetLoginInfoService.js +17 -75
- package/src/stores/AppData.js +1 -1
- package/static/ruihua/logo.jpg +0 -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
@@ -62,6 +62,7 @@
|
|
62
62
|
// let res = yield self.$post('rs/db/modifypassword', {data: self.deliver})
|
63
63
|
// let res = yield self.$resetpost('/rs/db/modifypwd', {data: self.deliver})
|
64
64
|
// Util.f.password = self.deliver.newpassword
|
65
|
+
// todo v4
|
65
66
|
let res = yield self.$resetpost('/rs/user/modifypwd', {data: self.deliver }, {resolveMsg: null,rejectMsg: null})
|
66
67
|
self.$login.f.password = self.deliver.newpassword
|
67
68
|
if (res.data) {
|
@@ -66,7 +66,7 @@
|
|
66
66
|
self.arrays.pcd=[{label:'全部',value:''}]
|
67
67
|
if(self.show.pcdShow){
|
68
68
|
let HttpReset = new HttpResetClass()
|
69
|
-
var pcd = await HttpReset.load('POST', '
|
69
|
+
var pcd = await HttpReset.load('POST', 'api/af-revenue/sql/singleTable_OrderBy', {
|
70
70
|
data: {
|
71
71
|
items: 'f_pcd',
|
72
72
|
tablename: 't_pcd',
|
@@ -80,7 +80,7 @@
|
|
80
80
|
}else if(self.show.streetShow){
|
81
81
|
console.log("------------查街道")
|
82
82
|
let HttpReset = new HttpResetClass()
|
83
|
-
var street = await HttpReset.load('POST', '
|
83
|
+
var street = await HttpReset.load('POST', 'api/af-revenue/sql/singleTable_OrderBy', {
|
84
84
|
data: {
|
85
85
|
items: 'f_street',
|
86
86
|
tablename: 't_street',
|
@@ -93,7 +93,7 @@
|
|
93
93
|
}
|
94
94
|
}else if(self.show.areaShow){
|
95
95
|
let HttpReset = new HttpResetClass()
|
96
|
-
var area = await HttpReset.load('POST', '
|
96
|
+
var area = await HttpReset.load('POST', 'api/af-revenue/sql/singleTable_OrderBy', {
|
97
97
|
data: {
|
98
98
|
items: 'f_residential_area',
|
99
99
|
tablename: 't_area',
|
@@ -155,7 +155,8 @@
|
|
155
155
|
async pcdChange(){
|
156
156
|
this.arrays.street=[{label:'全部',value:''}]
|
157
157
|
var condition = `f_filialeid = '${this.$login.f.orgid}' and f_street is not null group by f_street`
|
158
|
-
|
158
|
+
// todo v4
|
159
|
+
let street = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {
|
159
160
|
data: {
|
160
161
|
items: 'f_street',
|
161
162
|
tablename: 't_street',
|
@@ -171,7 +172,7 @@
|
|
171
172
|
async streetChange(){
|
172
173
|
this.arrays.area=[{label:'全部',value:''}]
|
173
174
|
var condition = `f_street = '${this.model.f_street?this.model.f_street:null}' and f_residential_area is not null group by f_residential_area`
|
174
|
-
let area = await this.$resetpost('
|
175
|
+
let area = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {
|
175
176
|
data: {
|
176
177
|
items: 'f_residential_area',
|
177
178
|
tablename: 't_area',
|
@@ -192,7 +193,8 @@
|
|
192
193
|
}else{
|
193
194
|
condition = `f_filialeid = '${this.$login.f.orgid}' and f_building is not null group by f_building`
|
194
195
|
}
|
195
|
-
|
196
|
+
// todo v4
|
197
|
+
let build = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {
|
196
198
|
data: {
|
197
199
|
items: 'f_building',
|
198
200
|
tablename: 't_user_address',
|
@@ -80,6 +80,9 @@
|
|
80
80
|
//找到跟节点
|
81
81
|
ergodicList (val,parentname) {
|
82
82
|
if(val.children.length > 0 ){
|
83
|
+
if (val.name !== '组织机构' && parentname !== '资源管理'){
|
84
|
+
this.resoptions.push({label: parentname === '组织机构' ? val.name : val.name+' - '+parentname, value: val.id})
|
85
|
+
}
|
83
86
|
parentname=parentname+val.name
|
84
87
|
this.treetoList(val,parentname)
|
85
88
|
}else {
|
@@ -167,7 +167,7 @@ export default {
|
|
167
167
|
for (let row of this.$refs.department.resoptions) {
|
168
168
|
depids.push(row.value)
|
169
169
|
}
|
170
|
-
let depid = depids.length ? plugin.convertToIn(depids) : ('')
|
170
|
+
let depid = depids.length ? plugin.convertToIn(depids) : `('')`
|
171
171
|
condition += " and f_depid in " + depid;
|
172
172
|
}
|
173
173
|
}
|
@@ -51,6 +51,7 @@
|
|
51
51
|
}
|
52
52
|
},
|
53
53
|
ready() {
|
54
|
+
// todo v4
|
54
55
|
this.$resetpost('/rs/search', {data: {source: this.source, userid: this.$login.f.id}}, {resolveMsg: null, rejectMsg: null})
|
55
56
|
.then(res => {
|
56
57
|
console.log('res-->' + JSON.stringify(res))
|
@@ -65,7 +66,7 @@
|
|
65
66
|
this.$dispatch('re-res',obj)
|
66
67
|
},
|
67
68
|
filterUser(resids) {
|
68
|
-
// 处理第一次进入页面值异常问题
|
69
|
+
// 处理第一次进入页面值异常问题
|
69
70
|
if(resids.length > 0 && typeof resids[0] == "object"){
|
70
71
|
resids = resids[0]
|
71
72
|
}
|
@@ -86,4 +87,4 @@
|
|
86
87
|
|
87
88
|
<style scoped>
|
88
89
|
|
89
|
-
</style>
|
90
|
+
</style>
|
@@ -42,7 +42,7 @@
|
|
42
42
|
|
43
43
|
<export-excel :data="$parent.$parent.getCondition"
|
44
44
|
:field="$parent.$parent.getfield"
|
45
|
-
sqlurl="
|
45
|
+
sqlurl="api/af-revenue/logic/exportfile" sql-name="chargeQuery" template-name='收费查询导出'
|
46
46
|
:choose-col="true"></export-excel>
|
47
47
|
|
48
48
|
<print-data :model="$parent.model" :field="$parent.$parent.getfield"
|
@@ -175,6 +175,7 @@ let saveGen = function *(self) {
|
|
175
175
|
console.log('登录配置', self.config)
|
176
176
|
if (self.config.isMac) {
|
177
177
|
// 获取该登录人分公司下的mac配置
|
178
|
+
// todo v4
|
178
179
|
let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
|
179
180
|
resolveMsg: null,
|
180
181
|
rejectMsg: null
|
@@ -263,7 +264,7 @@ export default {
|
|
263
264
|
this.vTime = this.format(new Date(window.versionTime));
|
264
265
|
try{
|
265
266
|
let http = new HttpResetClass()
|
266
|
-
let res = await http.load('POST', '
|
267
|
+
let res = await http.load('POST', 'api/af-system/sql/singleTable',
|
267
268
|
{data:{
|
268
269
|
tablename: 't_changedeclare',
|
269
270
|
condition: ` f_type ='变更通知' `
|
@@ -363,7 +364,7 @@ export default {
|
|
363
364
|
} else {
|
364
365
|
condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
|
365
366
|
}
|
366
|
-
await http.load('POST', '/
|
367
|
+
await http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
367
368
|
tablename:'t_order_center',
|
368
369
|
condition:condition
|
369
370
|
}}, {
|
@@ -439,6 +440,7 @@ export default {
|
|
439
440
|
if (this.config.distanceLogin) {
|
440
441
|
if (this.$login && this.$login.getUrlParames('name') ) {
|
441
442
|
let ename = this.$login.getUrlParames('name');
|
443
|
+
// todo v4
|
442
444
|
let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
|
443
445
|
if(logininfo.data){
|
444
446
|
if(logininfo.data.ename && logininfo.data.password){
|
@@ -173,6 +173,7 @@ let saveGen = function *(self) {
|
|
173
173
|
console.log('登录配置', self.config)
|
174
174
|
if (self.config.isMac) {
|
175
175
|
// 获取该登录人分公司下的mac配置
|
176
|
+
// todo v4
|
176
177
|
let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
|
177
178
|
resolveMsg: null,
|
178
179
|
rejectMsg: null
|
@@ -261,7 +262,7 @@ export default {
|
|
261
262
|
this.vTime = this.format(new Date(window.versionTime));
|
262
263
|
try{
|
263
264
|
let http = new HttpResetClass()
|
264
|
-
let res = await http.load('POST', '
|
265
|
+
let res = await http.load('POST', 'api/af-system/sql/singleTable',
|
265
266
|
{data:{
|
266
267
|
tablename: 't_changedeclare',
|
267
268
|
condition: ` f_type ='变更通知' `
|
@@ -361,7 +362,7 @@ export default {
|
|
361
362
|
} else {
|
362
363
|
condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
|
363
364
|
}
|
364
|
-
await http.load('POST', '/
|
365
|
+
await http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
365
366
|
tablename:'t_order_center',
|
366
367
|
condition:condition
|
367
368
|
}}, {
|
@@ -437,6 +438,7 @@ export default {
|
|
437
438
|
if (this.config.distanceLogin) {
|
438
439
|
if (this.$login && this.$login.getUrlParames('name') ) {
|
439
440
|
let ename = this.$login.getUrlParames('name');
|
441
|
+
// todo v4
|
440
442
|
let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
|
441
443
|
if(logininfo.data){
|
442
444
|
if(logininfo.data.ename && logininfo.data.password){
|
@@ -179,6 +179,7 @@ let saveGen = function *(self) {
|
|
179
179
|
console.log('登录配置', self.config)
|
180
180
|
if (self.config.isMac) {
|
181
181
|
// 获取该登录人分公司下的mac配置
|
182
|
+
// todo v4
|
182
183
|
let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
|
183
184
|
resolveMsg: null,
|
184
185
|
rejectMsg: null
|
@@ -265,7 +266,7 @@ export default {
|
|
265
266
|
this.titleShow = true
|
266
267
|
try{
|
267
268
|
let http = new HttpResetClass()
|
268
|
-
let res = await http.load('POST', '
|
269
|
+
let res = await http.load('POST', 'api/af-system/sql/singleTable',
|
269
270
|
{data:{
|
270
271
|
tablename: 't_changedeclare',
|
271
272
|
condition: ` f_type ='变更通知' `
|
@@ -352,7 +353,7 @@ export default {
|
|
352
353
|
} else {
|
353
354
|
condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
|
354
355
|
}
|
355
|
-
await http.load('POST', '/
|
356
|
+
await http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
356
357
|
tablename:'t_order_center',
|
357
358
|
condition:condition
|
358
359
|
}}, {
|
@@ -428,6 +429,7 @@ export default {
|
|
428
429
|
if (this.config.distanceLogin) {
|
429
430
|
if (this.$login && this.$login.getUrlParames('name') ) {
|
430
431
|
let ename = this.$login.getUrlParames('name');
|
432
|
+
// todo v4
|
431
433
|
let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
|
432
434
|
if(logininfo.data){
|
433
435
|
if(logininfo.data.ename && logininfo.data.password){
|
@@ -97,7 +97,8 @@ let getwartermakr = async function (self) {
|
|
97
97
|
tablename: 't_singlevalue',
|
98
98
|
condition: " 1=1 and name=\'水印内容\'"
|
99
99
|
};
|
100
|
-
|
100
|
+
// todo v4
|
101
|
+
let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
101
102
|
if (result && result.data.length > 0) {
|
102
103
|
self.showwatermakeflag = true;
|
103
104
|
createWaterMark(result.data[0].value);
|
@@ -241,7 +242,7 @@ export default {
|
|
241
242
|
this.OrderDaiBan = ''
|
242
243
|
this.AppDaiBan = ''
|
243
244
|
let http = new HttpResetClass()
|
244
|
-
await http.load('POST', '/
|
245
|
+
await http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
245
246
|
tablename:'t_order_center',
|
246
247
|
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
247
248
|
}}, {
|
@@ -392,6 +393,7 @@ export default {
|
|
392
393
|
username: this.$login.f.name,
|
393
394
|
usertelephone: this.$login.f.f_user_telephone
|
394
395
|
}
|
396
|
+
// todo v4
|
395
397
|
await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
|
396
398
|
window.location.reload()
|
397
399
|
}
|
@@ -166,6 +166,7 @@ let saveGen = function *(self) {
|
|
166
166
|
console.log('登录配置', self.config)
|
167
167
|
if (self.config.isMac) {
|
168
168
|
// 获取该登录人分公司下的mac配置
|
169
|
+
// todo v4
|
169
170
|
let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
|
170
171
|
resolveMsg: null,
|
171
172
|
rejectMsg: null
|
@@ -263,12 +264,14 @@ export default {
|
|
263
264
|
st: obj.ticket,
|
264
265
|
serviceKey: this.config.serviceKey
|
265
266
|
}
|
267
|
+
// todo v4
|
266
268
|
this.$resetpost('/sso/logic/serviceValidate', params,{resolveMsg: null, rejectMsg: null}).then((re) => {
|
267
269
|
// this.$showMessage("re----" + JSON.stringify(re))
|
268
270
|
if (re.data.code === 200) {
|
269
271
|
this.showlogin = false
|
270
272
|
let condition = `ename = '${re.data.data.userName}'`
|
271
|
-
|
273
|
+
// todo v4
|
274
|
+
this.$resetpost('api/af-system/sql/singleTable', {data: { items: '*', tablename: 't_user', condition: condition}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
272
275
|
if (res.data && res.data.length > 0) {
|
273
276
|
this.model.ename = res.data[0].ename
|
274
277
|
this.model.password = res.data[0].password
|
@@ -294,7 +297,7 @@ export default {
|
|
294
297
|
this.vTime = this.format(new Date(window.versionTime));
|
295
298
|
try{
|
296
299
|
let http = new HttpResetClass()
|
297
|
-
let res = await http.load('POST', '
|
300
|
+
let res = await http.load('POST', 'api/af-system/sql/singleTable',
|
298
301
|
{data:{
|
299
302
|
tablename: 't_changedeclare',
|
300
303
|
condition: ` f_type ='变更通知' `
|
@@ -398,7 +401,7 @@ export default {
|
|
398
401
|
} else {
|
399
402
|
condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
|
400
403
|
}
|
401
|
-
await http.load('POST', '/
|
404
|
+
await http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
402
405
|
tablename:'t_order_center',
|
403
406
|
condition:condition
|
404
407
|
}}, {
|
@@ -474,6 +477,7 @@ export default {
|
|
474
477
|
if (this.config.distanceLogin) {
|
475
478
|
if (this.$login && this.$login.getUrlParames('name') ) {
|
476
479
|
let ename = this.$login.getUrlParames('name');
|
480
|
+
// todo v4
|
477
481
|
let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
|
478
482
|
if(logininfo.data){
|
479
483
|
if(logininfo.data.ename && logininfo.data.password){
|
@@ -178,7 +178,8 @@ let getwartermakr = async function (self) {
|
|
178
178
|
tablename: 't_singlevalue',
|
179
179
|
condition: " 1=1 and name=\'水印内容\'"
|
180
180
|
};
|
181
|
-
|
181
|
+
// todo v4
|
182
|
+
let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
182
183
|
if (result && result.data.length > 0) {
|
183
184
|
self.showwatermakeflag = true;
|
184
185
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
@@ -327,7 +328,7 @@ export default {
|
|
327
328
|
this.OrderDaiBan = ''
|
328
329
|
this.AppDaiBan = ''
|
329
330
|
let http = new HttpResetClass()
|
330
|
-
await http.load('POST', '/
|
331
|
+
await http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
331
332
|
tablename:'t_order_center',
|
332
333
|
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
333
334
|
}}, {
|
@@ -399,30 +400,41 @@ export default {
|
|
399
400
|
}
|
400
401
|
},
|
401
402
|
async workorderOverRemind(){
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
"items": "*",
|
406
|
-
"tablename": "t_organization",
|
407
|
-
"condition": `parentid = '${this.functions.orgid}'`
|
408
|
-
}
|
409
|
-
}, {resolveMsg: null, rejectMsg: null})
|
410
|
-
const f_filialeids = [this.functions.orgid]
|
411
|
-
for (const f of res.data) {
|
412
|
-
f_filialeids.push(f.id)
|
413
|
-
}
|
414
|
-
|
415
|
-
const data = {
|
416
|
-
condition: `f_filiale_id in (${f_filialeids.join(',')}) and overday >= 0`
|
417
|
-
}
|
418
|
-
new HttpResetClass().load('POST','rs/sql/serviceDetails/n', {data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
|
419
|
-
if(res.data && res.data.n !== 0){
|
420
|
-
/*this.$showMessage('你有'+res.data.n+'个工单已逾期,请尽快处理')*/
|
421
|
-
this.yuqitishi = true
|
422
|
-
this.num = res.data.n
|
423
|
-
}
|
424
|
-
})
|
403
|
+
var f_filialeids=this.$login.f.orgid
|
404
|
+
const data = {
|
405
|
+
condition: `f_filiale_id in ('${f_filialeids}') and overday >= 0`
|
425
406
|
}
|
407
|
+
new HttpResetClass().load('POST','rs/sql/serviceDetails/n', {data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
|
408
|
+
if(res.data && res.data.n !== 0){
|
409
|
+
// this.$showMessage('你有'+res.data.n+'个工单已逾期,请尽快处理')
|
410
|
+
this.yuqitishi = true
|
411
|
+
this.num = res.data.n
|
412
|
+
}
|
413
|
+
})
|
414
|
+
// if(this.functions && this.functions.f_role_name && this.functions.f_role_name.indexOf('管理员') !== -1 && this.functions.f_role_name.indexOf('管理人员') == -1){
|
415
|
+
// let res = await new HttpResetClass().load('POST', '/rs/sql/tel_singleTable', {
|
416
|
+
// "data": {
|
417
|
+
// "items": "*",
|
418
|
+
// "tablename": "t_organization",
|
419
|
+
// "condition": `parentid = '${this.functions.orgid}'`
|
420
|
+
// }
|
421
|
+
// }, {resolveMsg: null, rejectMsg: null})
|
422
|
+
// const f_filialeids = [this.functions.orgid]
|
423
|
+
// for (const f of res.data) {
|
424
|
+
// f_filialeids.push(f.id)
|
425
|
+
// }
|
426
|
+
//
|
427
|
+
// const data = {
|
428
|
+
// condition: `f_filiale_id in (${f_filialeids.join(',')}) and overday >= 0`
|
429
|
+
// }
|
430
|
+
// new HttpResetClass().load('POST','rs/sql/serviceDetails/n', {data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
|
431
|
+
// if(res.data && res.data.n !== 0){
|
432
|
+
// /*this.$showMessage('你有'+res.data.n+'个工单已逾期,请尽快处理')*/
|
433
|
+
// this.yuqitishi = true
|
434
|
+
// this.num = res.data.n
|
435
|
+
// }
|
436
|
+
// })
|
437
|
+
// }
|
426
438
|
},
|
427
439
|
openUrl() {
|
428
440
|
var url = `http://123.60.214.109:8406/submitTicket?contact=${this.$login.f.name}&orgName=${this.$login.f.orgs}&phone=${this.$login.f.f_user_telephone}`
|
@@ -504,6 +516,7 @@ export default {
|
|
504
516
|
username: this.$login.f.name,
|
505
517
|
usertelephone: this.$login.f.f_user_telephone
|
506
518
|
}
|
519
|
+
// todo v4
|
507
520
|
await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
|
508
521
|
window.location.reload()
|
509
522
|
}
|
@@ -151,7 +151,8 @@ let getwartermakr = async function (self) {
|
|
151
151
|
tablename: 't_singlevalue',
|
152
152
|
condition: " 1=1 and name=\'水印内容\'"
|
153
153
|
};
|
154
|
-
|
154
|
+
// todo v4
|
155
|
+
let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
155
156
|
if (result && result.data.length > 0) {
|
156
157
|
self.showwatermakeflag = true;
|
157
158
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
@@ -291,7 +292,7 @@ export default {
|
|
291
292
|
this.OrderDaiBan = ''
|
292
293
|
this.AppDaiBan = ''
|
293
294
|
let http = new HttpResetClass()
|
294
|
-
await http.load('POST', '/
|
295
|
+
await http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
295
296
|
tablename:'t_order_center',
|
296
297
|
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
297
298
|
}}, {
|
@@ -422,6 +423,7 @@ export default {
|
|
422
423
|
username: this.$login.f.name,
|
423
424
|
usertelephone: this.$login.f.f_user_telephone
|
424
425
|
}
|
426
|
+
// todo v4
|
425
427
|
await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
|
426
428
|
window.location.reload()
|
427
429
|
}
|
@@ -162,6 +162,7 @@
|
|
162
162
|
console.log('登录配置', self.config)
|
163
163
|
if (self.config.isMac) {
|
164
164
|
// 获取该登录人分公司下的mac配置
|
165
|
+
// todo v4
|
165
166
|
let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
|
166
167
|
resolveMsg: null,
|
167
168
|
rejectMsg: null
|
@@ -242,7 +243,7 @@
|
|
242
243
|
async ready () {
|
243
244
|
try{
|
244
245
|
let http = new HttpResetClass()
|
245
|
-
let res = await http.load('POST', '
|
246
|
+
let res = await http.load('POST', 'api/af-system/sql/singleTable',
|
246
247
|
{data:{
|
247
248
|
tablename: 't_changedeclare',
|
248
249
|
condition: ` f_type ='变更通知' `
|
@@ -326,7 +327,7 @@
|
|
326
327
|
} else {
|
327
328
|
condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
|
328
329
|
}
|
329
|
-
await http.load('POST', '/
|
330
|
+
await http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
330
331
|
tablename:'t_order_center',
|
331
332
|
condition:condition
|
332
333
|
}}, {
|
@@ -370,6 +371,7 @@
|
|
370
371
|
if (this.config.distanceLogin) {
|
371
372
|
if (this.$login && this.$login.getUrlParames('name') ) {
|
372
373
|
let ename = this.$login.getUrlParames('name');
|
374
|
+
// todo v4
|
373
375
|
let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
|
374
376
|
if(logininfo.data){
|
375
377
|
if(logininfo.data.ename && logininfo.data.password){
|
@@ -175,6 +175,7 @@ let saveGen = function *(self) {
|
|
175
175
|
console.log('登录配置', self.config)
|
176
176
|
if (self.config.isMac) {
|
177
177
|
// 获取该登录人分公司下的mac配置
|
178
|
+
// todo v4
|
178
179
|
let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
|
179
180
|
resolveMsg: null,
|
180
181
|
rejectMsg: null
|
@@ -260,7 +261,7 @@ export default {
|
|
260
261
|
this.vTime = this.format(new Date(window.versionTime));
|
261
262
|
try{
|
262
263
|
let http = new HttpResetClass()
|
263
|
-
let res = await http.load('POST', '
|
264
|
+
let res = await http.load('POST', 'api/af-system/sql/singleTable',
|
264
265
|
{data:{
|
265
266
|
tablename: 't_changedeclare',
|
266
267
|
condition: ` f_type ='变更通知' `
|
@@ -377,7 +378,7 @@ export default {
|
|
377
378
|
} else {
|
378
379
|
condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
|
379
380
|
}
|
380
|
-
await http.load('POST', '/
|
381
|
+
await http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
381
382
|
tablename:'t_order_center',
|
382
383
|
condition:condition
|
383
384
|
}}, {
|
@@ -453,6 +454,7 @@ export default {
|
|
453
454
|
if (this.config.distanceLogin) {
|
454
455
|
if (this.$login && this.$login.getUrlParames('name') ) {
|
455
456
|
let ename = this.$login.getUrlParames('name');
|
457
|
+
// todo v4
|
456
458
|
let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
|
457
459
|
if(logininfo.data){
|
458
460
|
if(logininfo.data.ename && logininfo.data.password){
|
@@ -161,7 +161,8 @@ let getwartermakr = async function (self) {
|
|
161
161
|
tablename: 't_singlevalue',
|
162
162
|
condition: " 1=1 and name=\'水印内容\'"
|
163
163
|
};
|
164
|
-
|
164
|
+
// todo v4
|
165
|
+
let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
165
166
|
if (result && result.data.length > 0) {
|
166
167
|
self.showwatermakeflag = true;
|
167
168
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
@@ -300,7 +301,7 @@ export default {
|
|
300
301
|
this.OrderDaiBan = ''
|
301
302
|
this.AppDaiBan = ''
|
302
303
|
let http = new HttpResetClass()
|
303
|
-
await http.load('POST', '/
|
304
|
+
await http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
304
305
|
tablename:'t_order_center',
|
305
306
|
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
306
307
|
}}, {
|
@@ -431,6 +432,7 @@ export default {
|
|
431
432
|
username: this.$login.f.name,
|
432
433
|
usertelephone: this.$login.f.f_user_telephone
|
433
434
|
}
|
435
|
+
// todo v4
|
434
436
|
await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
|
435
437
|
window.location.reload()
|
436
438
|
}
|
@@ -62,6 +62,7 @@
|
|
62
62
|
// let res = yield self.$post('rs/db/modifypassword', {data: self.deliver})
|
63
63
|
// let res = yield self.$resetpost('/rs/db/modifypwd', {data: self.deliver})
|
64
64
|
// Util.f.password = self.deliver.newpassword
|
65
|
+
// todo v4
|
65
66
|
let res = yield self.$resetpost('/rs/user/modifypwd', {data: self.deliver })
|
66
67
|
self.$login.f.password = self.deliver.newpassword
|
67
68
|
if (res.data) {
|
@@ -127,6 +127,7 @@ import {HttpResetClass} from 'vue-client'
|
|
127
127
|
|
128
128
|
|
129
129
|
|
130
|
+
// todo v4
|
130
131
|
let saveGen = function *(self) {
|
131
132
|
try {
|
132
133
|
if(self.$login){
|
@@ -229,7 +230,7 @@ export default {
|
|
229
230
|
async ready () {
|
230
231
|
try{
|
231
232
|
let http = new HttpResetClass()
|
232
|
-
let res = await http.load('POST', '
|
233
|
+
let res = await http.load('POST', 'api/af-system/sql/singleTable',
|
233
234
|
{data:{
|
234
235
|
tablename: 't_changedeclare',
|
235
236
|
condition: ` f_type ='变更通知' `
|
@@ -298,6 +299,7 @@ export default {
|
|
298
299
|
if (this.config.distanceLogin) {
|
299
300
|
if (this.$login && this.$login.getUrlParames('name') ) {
|
300
301
|
let ename = this.$login.getUrlParames('name');
|
302
|
+
// todo v4
|
301
303
|
let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
|
302
304
|
if(logininfo.data){
|
303
305
|
if(logininfo.data.ename && logininfo.data.password){
|
@@ -68,7 +68,7 @@ let getwartermakr = async function (self) {
|
|
68
68
|
tablename: 't_singlevalue',
|
69
69
|
condition: " 1=1 and name=\'水印内容\'"
|
70
70
|
};
|
71
|
-
let result = await self.$resetpost('
|
71
|
+
let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
72
72
|
if (result && result.data.length > 0) {
|
73
73
|
self.showwatermakeflag = true;
|
74
74
|
createWaterMark(result.data[0].value);
|
@@ -295,7 +295,7 @@ export default {
|
|
295
295
|
username: this.$login.f.name,
|
296
296
|
usertelephone: this.$login.f.f_user_telephone
|
297
297
|
}
|
298
|
-
await this.$resetpost('
|
298
|
+
await this.$resetpost('api/af-system/user/logout', data, {resolveMsg: '退出成功', rejectMsg: null})
|
299
299
|
window.location.reload()
|
300
300
|
}
|
301
301
|
})
|