system-clients 3.3.3-v3 → 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.
Files changed (36) hide show
  1. package/package.json +1 -1
  2. package/src/components/Main.vue +4 -17
  3. package/src/components/equipment/PosList.vue +2 -3
  4. package/src/components/equipment/PosParamAdd.vue +2 -3
  5. package/src/components/materialManage/materialList.vue +1 -1
  6. package/src/components/parammanage/ParamPage.vue +1 -1
  7. package/src/components/parammanage/ParamPages.vue +2 -2
  8. package/src/components/parammanage/SinglePage.vue +1 -1
  9. package/src/components/parammanage/SinglePages.vue +2 -2
  10. package/src/components/server/AddChangeMsg.vue +4 -3
  11. package/src/components/server/ChangeDeclare.vue +2 -9
  12. package/src/components/server/Login.vue +11 -12
  13. package/src/components/server/PcdBuildingSelect.vue +8 -53
  14. package/src/filiale/baole/Login.vue +11 -12
  15. package/src/filiale/chengtou/Login.vue +11 -20
  16. package/src/filiale/dongguan/Login.vue +11 -12
  17. package/src/filiale/dongguan/Main.vue +2 -9
  18. package/src/filiale/furuike/Login.vue +18 -20
  19. package/src/filiale/furuike/Main.vue +6 -16
  20. package/src/filiale/gehua/Main.vue +2 -9
  21. package/src/filiale/konggang/Login.vue +16 -25
  22. package/src/filiale/qianneng/Login.vue +16 -25
  23. package/src/filiale/qianneng/Main.vue +2 -9
  24. package/src/filiale/rizhao/Main.vue +1 -5
  25. package/src/filiale/shiquan/Login.vue +16 -25
  26. package/src/filiale/tianyi/Login.vue +11 -20
  27. package/src/filiale/tongchuan/Login.vue +11 -20
  28. package/src/filiale/tongchuan/Main.vue +21 -46
  29. package/src/filiale/weinan/Main.vue +4 -17
  30. package/src/filiale/wenxi/Login.vue +16 -25
  31. package/src/filiale/wenxi/Main.vue +2 -9
  32. package/src/filiale/wuhai/Main.vue +4 -18
  33. package/src/filiale/yuchuan/Login.vue +11 -12
  34. package/src/filiale/yuchuan/Main.vue +2 -9
  35. package/src/filiale/zhoukou/Main.vue +2 -9
  36. package/src/stores/AppData.js +1 -0
@@ -324,37 +324,28 @@
324
324
  methods: {
325
325
  async getDaiBan(){
326
326
  let http = new HttpResetClass()
327
- let condition = ''
327
+ let res
328
328
  if(this.$login.f.deps!=='柠条塔'){
329
- condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
329
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
330
+ resolveMsg: null,
331
+ rejectMsg: null
332
+ })
330
333
  } else {
331
- condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
332
- }
333
- await http.load('POST', '/rs/sql/singleTable', {data: {
334
- tablename:'t_order_center',
335
- condition:condition
336
- }}, {
334
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
337
335
  resolveMsg: null,
338
336
  rejectMsg: null
339
- }).then((res) => {
340
- let OrderDaiBan = {}
341
- res.data.forEach(item=>{
342
- OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
343
- OrderDaiBan[item.f_ordertype].push(item)
344
- })
345
- this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
346
- if (res.data.length> 0){
347
- this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
348
- }
349
337
  })
350
- let data = {
351
- condition: '1 = 1',
352
- data: {
353
- orgid: this.$login.f.orgid,
354
- id: this.$login.f.id
355
- }
356
338
  }
357
- await http.load('POST', '/rs/sql/checkuser', {data: data}, {
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
+ },
358
349
  resolveMsg: null,
359
350
  rejectMsg: null
360
351
  }).then((res) => {
@@ -375,37 +375,28 @@ export default {
375
375
  },
376
376
  async getDaiBan(){
377
377
  let http = new HttpResetClass()
378
- let condition = ''
378
+ let res
379
379
  if(this.$login.f.deps!=='柠条塔'){
380
- condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
380
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
381
+ resolveMsg: null,
382
+ rejectMsg: null
383
+ })
381
384
  } else {
382
- condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
383
- }
384
- await http.load('POST', '/rs/sql/singleTable', {data: {
385
- tablename:'t_order_center',
386
- condition:condition
387
- }}, {
385
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
388
386
  resolveMsg: null,
389
387
  rejectMsg: null
390
- }).then((res) => {
391
- let OrderDaiBan = {}
392
- res.data.forEach(item=>{
393
- OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
394
- OrderDaiBan[item.f_ordertype].push(item)
395
- })
396
- this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
397
- if (res.data.length> 0){
398
- this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
399
- }
400
388
  })
401
- let data = {
402
- condition: '1 = 1',
403
- data: {
404
- orgid: this.$login.f.orgid,
405
- id: this.$login.f.id
406
- }
407
389
  }
408
- await http.load('POST', '/rs/sql/checkuser', {data: data}, {
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
+ },
409
400
  resolveMsg: null,
410
401
  rejectMsg: null
411
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 param = {
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/singleTable', {data: {
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) => {
@@ -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 param = {
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);
@@ -357,37 +357,28 @@
357
357
  },
358
358
  async getDaiBan(){
359
359
  let http = new HttpResetClass()
360
- let condition = ''
360
+ let res
361
361
  if(this.$login.f.deps!=='柠条塔'){
362
- condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
362
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
363
+ resolveMsg: null,
364
+ rejectMsg: null
365
+ })
363
366
  } else {
364
- 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
- await http.load('POST', '/rs/sql/singleTable', {data: {
367
- tablename:'t_order_center',
368
- condition:condition
369
- }}, {
367
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
370
368
  resolveMsg: null,
371
369
  rejectMsg: null
372
- }).then((res) => {
373
- let OrderDaiBan = {}
374
- res.data.forEach(item=>{
375
- OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
376
- OrderDaiBan[item.f_ordertype].push(item)
377
- })
378
- this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
379
- if (res.data.length> 0){
380
- this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
381
- }
382
370
  })
383
- let data = {
384
- condition: '1 = 1',
385
- data: {
386
- orgid: this.$login.f.orgid,
387
- id: this.$login.f.id
388
- }
389
371
  }
390
- await http.load('POST', '/rs/sql/checkuser', {data: data}, {
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
+ },
391
382
  resolveMsg: null,
392
383
  rejectMsg: null
393
384
  }).then((res) => {
@@ -364,21 +364,20 @@ export default {
364
364
  },
365
365
  async getDaiBan(){
366
366
  let http = new HttpResetClass()
367
- let condition = ''
367
+ let res
368
368
  if(this.$login.f.deps!=='柠条塔'){
369
- condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
369
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
370
+ resolveMsg: null,
371
+ rejectMsg: null
372
+ })
370
373
  } else {
371
- condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
372
- }
373
- await http.load('POST', '/rs/sql/singleTable', {data: {
374
- tablename:'t_order_center',
375
- condition:condition
376
- }}, {
374
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
377
375
  resolveMsg: null,
378
376
  rejectMsg: null
379
- }).then((res) => {
380
- let OrderDaiBan = {}
381
- res.data.forEach(item=>{
377
+ })
378
+ }
379
+ let OrderDaiBan = {}
380
+ res.data.forEach(item=>{
382
381
  OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
383
382
  OrderDaiBan[item.f_ordertype].push(item)
384
383
  })
@@ -386,15 +385,7 @@ export default {
386
385
  if (res.data.length> 0){
387
386
  this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
388
387
  }
389
- })
390
- let data = {
391
- condition: '1 = 1',
392
- data: {
393
- orgid: this.$login.f.orgid,
394
- id: this.$login.f.id
395
- }
396
- }
397
- await http.load('POST', '/rs/sql/checkuser', {data: data}, {
388
+ },
398
389
  resolveMsg: null,
399
390
  rejectMsg: null
400
391
  }).then((res) => {
@@ -369,21 +369,20 @@ export default {
369
369
  },
370
370
  async getDaiBan(){
371
371
  let http = new HttpResetClass()
372
- let condition = ''
372
+ let res
373
373
  if(this.$login.f.deps!=='柠条塔'){
374
- condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
374
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
375
+ resolveMsg: null,
376
+ rejectMsg: null
377
+ })
375
378
  } else {
376
- condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
377
- }
378
- await http.load('POST', '/rs/sql/singleTable', {data: {
379
- tablename:'t_order_center',
380
- condition:condition
381
- }}, {
379
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
382
380
  resolveMsg: null,
383
381
  rejectMsg: null
384
- }).then((res) => {
385
- let OrderDaiBan = {}
386
- res.data.forEach(item=>{
382
+ })
383
+ }
384
+ let OrderDaiBan = {}
385
+ res.data.forEach(item=>{
387
386
  OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
388
387
  OrderDaiBan[item.f_ordertype].push(item)
389
388
  })
@@ -391,15 +390,7 @@ export default {
391
390
  if (res.data.length> 0){
392
391
  this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
393
392
  }
394
- })
395
- let data = {
396
- condition: '1 = 1',
397
- data: {
398
- orgid: this.$login.f.orgid,
399
- id: this.$login.f.id
400
- }
401
- }
402
- await http.load('POST', '/rs/sql/checkuser', {data: data}, {
393
+ },
403
394
  resolveMsg: null,
404
395
  rejectMsg: null
405
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 param = {
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 condition = `f_stopgas_id = '${stopId}' and f_user_id = '${userid}'`
390
- let data = {
391
- items: '*',
392
- tablename: 't_notice_notarize',
393
- condition: condition,
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
- var condition = `f_orgstr = '${this.$login.f.orgid}' and f_state = '公告中' and f_typeofreceipt = 'PC端'`
417
- let data = {
418
- items: '*',
419
- tablename: 't_stopgas',
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/singleTable', {data: {
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/singleTable', {data: {
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/singleTable', {data: {
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) => {
@@ -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 param = {
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/singleTable', {data: {
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/singleTable', {data: {
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/singleTable', {data: {
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) => {
@@ -357,37 +357,28 @@ export default {
357
357
  },
358
358
  async getDaiBan(){
359
359
  let http = new HttpResetClass()
360
- let condition = ''
360
+ let res
361
361
  if(this.$login.f.deps!=='柠条塔'){
362
- condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
362
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
363
+ resolveMsg: null,
364
+ rejectMsg: null
365
+ })
363
366
  } else {
364
- 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
- await http.load('POST', '/rs/sql/singleTable', {data: {
367
- tablename:'t_order_center',
368
- condition:condition
369
- }}, {
367
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
370
368
  resolveMsg: null,
371
369
  rejectMsg: null
372
- }).then((res) => {
373
- let OrderDaiBan = {}
374
- res.data.forEach(item=>{
375
- OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
376
- OrderDaiBan[item.f_ordertype].push(item)
377
- })
378
- this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
379
- if (res.data.length> 0){
380
- this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
381
- }
382
370
  })
383
- let data = {
384
- condition: '1 = 1',
385
- data: {
386
- orgid: this.$login.f.orgid,
387
- id: this.$login.f.id
388
- }
389
371
  }
390
- await http.load('POST', '/rs/sql/checkuser', {data: data}, {
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
+ },
391
382
  resolveMsg: null,
392
383
  rejectMsg: null
393
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 param = {
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/singleTable', {data: {
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) => {
@@ -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 param = {
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/singleTable', {data: {
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) => {
@@ -475,16 +468,9 @@ export default {
475
468
  // 微信统计投诉和咨询的条数
476
469
  async WechatOfComplaintAndConsult () {
477
470
  console.log('开始执行')
478
- let WeChatData = await this.$resetpost('rs/sql/singleTable_OrderBy',{
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.length
473
+ this.WeChatNub = WeChatData.data[0].cnt
488
474
  }
489
475
  console.log('获取数值为:'+ this.WeChatNub)
490
476
  this.$refs.tree.setNum(this.WeChatNub)
@@ -341,21 +341,20 @@ export default {
341
341
  methods: {
342
342
  async getDaiBan(){
343
343
  let http = new HttpResetClass()
344
- let condition = ''
344
+ let res
345
345
  if(this.$login.f.deps!=='柠条塔'){
346
- condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
346
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
347
+ resolveMsg: null,
348
+ rejectMsg: null
349
+ })
347
350
  } else {
348
- condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
349
- }
350
- await http.load('POST', '/rs/sql/singleTable', {data: {
351
- tablename:'t_order_center',
352
- condition:condition
353
- }}, {
351
+ res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
354
352
  resolveMsg: null,
355
353
  rejectMsg: null
356
- }).then((res) => {
357
- let OrderDaiBan = {}
358
- res.data.forEach(item=>{
354
+ })
355
+ }
356
+ let OrderDaiBan = {}
357
+ res.data.forEach(item=>{
359
358
  OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
360
359
  OrderDaiBan[item.f_ordertype].push(item)
361
360
  })
@@ -363,7 +362,7 @@ export default {
363
362
  if (res.data.length> 0){
364
363
  this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
365
364
  }
366
- })
365
+ },
367
366
  let data = {
368
367
  condition: '1 = 1',
369
368
  data: {
@@ -151,11 +151,7 @@ import co from 'co'
151
151
  import {HttpResetClass} from "vue-client";
152
152
 
153
153
  let getwartermakr = async function (self) {
154
- let param = {
155
- tablename: 't_singlevalue',
156
- condition: " 1=1 and name=\'水印内容\'"
157
- };
158
- let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
154
+ let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
159
155
  if (result && result.data.length > 0) {
160
156
  self.showwatermakeflag = true;
161
157
  createWaterMark(result.data[0].value);
@@ -390,10 +386,7 @@ export default {
390
386
  this.OrderDaiBan = ''
391
387
  this.AppDaiBan = ''
392
388
  let http = new HttpResetClass()
393
- await http.load('POST', '/rs/sql/singleTable', {data: {
394
- tablename:'t_order_center',
395
- condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
396
- }}, {
389
+ await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
397
390
  resolveMsg: null,
398
391
  rejectMsg: null
399
392
  }).then((res) => {