system-clients 3.3.3-v3-test1 → 3.3.4-v3

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 (40) hide show
  1. package/package.json +1 -1
  2. package/src/components/Main.vue +17 -4
  3. package/src/components/equipment/PosList.vue +3 -2
  4. package/src/components/equipment/PosParamAdd.vue +3 -2
  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 +3 -4
  11. package/src/components/server/ChangeDeclare.vue +9 -2
  12. package/src/components/server/Login.vue +15 -11
  13. package/src/components/server/ModifyPw.vue +105 -34
  14. package/src/components/server/PcdBuildingSelect.vue +53 -8
  15. package/src/filiale/baole/Login.vue +15 -11
  16. package/src/filiale/chengtou/Login.vue +15 -11
  17. package/src/filiale/dongguan/Login.vue +15 -11
  18. package/src/filiale/dongguan/Main.vue +9 -2
  19. package/src/filiale/furuike/Login.vue +23 -18
  20. package/src/filiale/furuike/Main.vue +16 -6
  21. package/src/filiale/gehua/Main.vue +9 -2
  22. package/src/filiale/konggang/Login.vue +21 -17
  23. package/src/filiale/qianneng/Login.vue +21 -17
  24. package/src/filiale/qianneng/Main.vue +9 -2
  25. package/src/filiale/qianneng/ModifyPw.vue +105 -31
  26. package/src/filiale/rizhao/Login.vue +2 -1
  27. package/src/filiale/rizhao/Main.vue +5 -1
  28. package/src/filiale/shiquan/Login.vue +21 -17
  29. package/src/filiale/tianyi/Login.vue +15 -11
  30. package/src/filiale/tongchuan/Login.vue +15 -11
  31. package/src/filiale/tongchuan/Main.vue +47 -22
  32. package/src/filiale/weinan/Main.vue +17 -4
  33. package/src/filiale/wenxi/Login.vue +21 -17
  34. package/src/filiale/wenxi/Main.vue +9 -2
  35. package/src/filiale/wuhai/Main.vue +18 -4
  36. package/src/filiale/yuchuan/Login.vue +15 -11
  37. package/src/filiale/yuchuan/Main.vue +9 -2
  38. package/src/filiale/zhoukou/Main.vue +9 -2
  39. package/src/plugins/validation.js +12 -8
  40. package/src/util/password-validation.js +185 -0
@@ -140,6 +140,7 @@
140
140
 
141
141
  <script>
142
142
  import co from 'co'
143
+ import { isStrongPassword } from '../../util/password-validation'
143
144
  import $ from 'jquery'
144
145
  import Vue from 'vue'
145
146
  import {HttpResetClass} from 'vue-client'
@@ -204,7 +205,7 @@ let saveGen = function *(self) {
204
205
  }
205
206
  console.log(self.$login.depPrompt)
206
207
  // 弱口令验证(默认开启,跳转过来的不进行验证)
207
- if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
208
+ if ((!self.otherLogin) && !isStrongPassword(self.model.password)) {
208
209
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
209
210
  self.modifyPwShow = true
210
211
  })
@@ -359,20 +360,21 @@ export default {
359
360
  },
360
361
  async getDaiBan(){
361
362
  let http = new HttpResetClass()
362
- let res
363
+ let condition = ''
363
364
  if(this.$login.f.deps!=='柠条塔'){
364
- res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
365
- resolveMsg: null,
366
- rejectMsg: null
367
- })
365
+ condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
368
366
  } else {
369
- res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
367
+ condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
368
+ }
369
+ await http.load('POST', '/rs/sql/singleTable', {data: {
370
+ tablename:'t_order_center',
371
+ condition:condition
372
+ }}, {
370
373
  resolveMsg: null,
371
374
  rejectMsg: null
372
- })
373
- }
374
- let OrderDaiBan = {}
375
- res.data.forEach(item=>{
375
+ }).then((res) => {
376
+ let OrderDaiBan = {}
377
+ res.data.forEach(item=>{
376
378
  OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
377
379
  OrderDaiBan[item.f_ordertype].push(item)
378
380
  })
@@ -380,6 +382,7 @@ export default {
380
382
  if (res.data.length> 0){
381
383
  this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
382
384
  }
385
+ })
383
386
  let data = {
384
387
  condition: '1 = 1',
385
388
  data: {
@@ -401,6 +404,7 @@ export default {
401
404
  this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
402
405
  }
403
406
  })
407
+
404
408
  },
405
409
  async getDaiBanA(){
406
410
  // 是否全局开启待办通知
@@ -146,6 +146,7 @@
146
146
 
147
147
  <script>
148
148
  import co from 'co'
149
+ import { isStrongPassword } from '../../util/password-validation'
149
150
  import $ from 'jquery'
150
151
  import Vue from 'vue'
151
152
  import {HttpResetClass} from 'vue-client'
@@ -210,7 +211,7 @@ let saveGen = function *(self) {
210
211
  }
211
212
  console.log(self.$login.depPrompt)
212
213
  // 弱口令验证(默认开启,跳转过来的不进行验证)
213
- if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
214
+ if ((!self.otherLogin) && !isStrongPassword(self.model.password)) {
214
215
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
215
216
  self.modifyPwShow = true
216
217
  })
@@ -350,20 +351,21 @@ export default {
350
351
  methods: {
351
352
  async getDaiBan(){
352
353
  let http = new HttpResetClass()
353
- let res
354
+ let condition = ''
354
355
  if(this.$login.f.deps!=='柠条塔'){
355
- res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
356
- resolveMsg: null,
357
- rejectMsg: null
358
- })
356
+ condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
359
357
  } else {
360
- res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
358
+ condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
359
+ }
360
+ await http.load('POST', '/rs/sql/singleTable', {data: {
361
+ tablename:'t_order_center',
362
+ condition:condition
363
+ }}, {
361
364
  resolveMsg: null,
362
365
  rejectMsg: null
363
- })
364
- }
365
- let OrderDaiBan = {}
366
- res.data.forEach(item=>{
366
+ }).then((res) => {
367
+ let OrderDaiBan = {}
368
+ res.data.forEach(item=>{
367
369
  OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
368
370
  OrderDaiBan[item.f_ordertype].push(item)
369
371
  })
@@ -371,6 +373,7 @@ export default {
371
373
  if (res.data.length> 0){
372
374
  this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
373
375
  }
376
+ })
374
377
  let data = {
375
378
  condition: '1 = 1',
376
379
  data: {
@@ -392,6 +395,7 @@ export default {
392
395
  this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
393
396
  }
394
397
  })
398
+
395
399
  },
396
400
  async getDaiBanA(){
397
401
  // 是否全局开启待办通知
@@ -93,7 +93,11 @@ import co from 'co'
93
93
  import {HttpResetClass} from "vue-client";
94
94
 
95
95
  let getwartermakr = async function (self) {
96
- let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
96
+ let param = {
97
+ tablename: 't_singlevalue',
98
+ condition: " 1=1 and name=\'水印内容\'"
99
+ };
100
+ let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
97
101
  if (result && result.data.length > 0) {
98
102
  self.showwatermakeflag = true;
99
103
  createWaterMark(result.data[0].value);
@@ -237,7 +241,10 @@ export default {
237
241
  this.OrderDaiBan = ''
238
242
  this.AppDaiBan = ''
239
243
  let http = new HttpResetClass()
240
- await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
244
+ await http.load('POST', '/rs/sql/singleTable', {data: {
245
+ tablename:'t_order_center',
246
+ condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
247
+ }}, {
241
248
  resolveMsg: null,
242
249
  rejectMsg: null
243
250
  }).then((res) => {
@@ -133,6 +133,7 @@
133
133
 
134
134
  <script>
135
135
  import co from 'co'
136
+ import { isStrongPassword } from '../../util/password-validation'
136
137
  import $ from 'jquery'
137
138
  import Vue from 'vue'
138
139
  import {HttpResetClass} from 'vue-client'
@@ -197,7 +198,7 @@ let saveGen = function *(self) {
197
198
  }
198
199
  console.log(self.$login.depPrompt)
199
200
  // 弱口令验证(默认开启,跳转过来的不进行验证)
200
- if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
201
+ if ((!self.otherLogin) && !isStrongPassword(self.model.password)) {
201
202
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
202
203
  self.modifyPwShow = true
203
204
  })
@@ -273,7 +274,8 @@ export default {
273
274
  // this.$showMessage("re----" + JSON.stringify(re))
274
275
  if (re.data.code === 200) {
275
276
  this.showlogin = false
276
- this.$resetpost('rs/sql/safeUserQueryByEname', {ename: re.data.data.userName}, {resolveMsg: null, rejectMsg: null}).then((res) => {
277
+ let condition = `ename = '${re.data.data.userName}'`
278
+ this.$resetpost('rs/sql/singleTable', {data: { items: '*', tablename: 't_user', condition: condition}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
277
279
  if (res.data && res.data.length > 0) {
278
280
  this.model.ename = res.data[0].ename
279
281
  this.model.password = res.data[0].password
@@ -395,27 +397,29 @@ export default {
395
397
  },
396
398
  async getDaiBan(){
397
399
  let http = new HttpResetClass()
398
- let res
400
+ let condition = ''
399
401
  if(this.$login.f.deps!=='柠条塔'){
400
- res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
401
- resolveMsg: null,
402
- rejectMsg: null
403
- })
402
+ condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
404
403
  } else {
405
- res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
404
+ condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
405
+ }
406
+ await http.load('POST', '/rs/sql/singleTable', {data: {
407
+ tablename:'t_order_center',
408
+ condition:condition
409
+ }}, {
406
410
  resolveMsg: null,
407
411
  rejectMsg: null
412
+ }).then((res) => {
413
+ let OrderDaiBan = {}
414
+ res.data.forEach(item=>{
415
+ OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
416
+ OrderDaiBan[item.f_ordertype].push(item)
417
+ })
418
+ this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
419
+ if (res.data.length> 0){
420
+ this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
421
+ }
408
422
  })
409
- }
410
- let OrderDaiBan = {}
411
- res.data.forEach(item=>{
412
- OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
413
- OrderDaiBan[item.f_ordertype].push(item)
414
- })
415
- this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
416
- if (res.data.length> 0){
417
- this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
418
- }
419
423
  let data = {
420
424
  condition: '1 = 1',
421
425
  data: {
@@ -437,6 +441,7 @@ export default {
437
441
  this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
438
442
  }
439
443
  })
444
+
440
445
  },
441
446
  async getDaiBanA(){
442
447
  // 是否全局开启待办通知
@@ -174,7 +174,11 @@ import co from 'co'
174
174
  import {HttpResetClass} from "vue-client";
175
175
 
176
176
  let getwartermakr = async function (self) {
177
- let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
177
+ let param = {
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});
178
182
  if (result && result.data.length > 0) {
179
183
  self.showwatermakeflag = true;
180
184
  createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
@@ -323,7 +327,10 @@ export default {
323
327
  this.OrderDaiBan = ''
324
328
  this.AppDaiBan = ''
325
329
  let http = new HttpResetClass()
326
- await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
330
+ await http.load('POST', '/rs/sql/singleTable', {data: {
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
+ }}, {
327
334
  resolveMsg: null,
328
335
  rejectMsg: null
329
336
  }).then((res) => {
@@ -393,8 +400,12 @@ export default {
393
400
  },
394
401
  async workorderOverRemind(){
395
402
  if(this.functions && this.functions.f_role_name && this.functions.f_role_name.indexOf('管理员') !== -1 && this.functions.f_role_name.indexOf('管理人员') == -1){
396
- let res = await new HttpResetClass().load('POST', '/rs/sql/safeOrganizationQueryByParentId', {
397
- parentid: this.functions.orgid
403
+ let res = await new HttpResetClass().load('POST', '/rs/sql/tel_singleTable', {
404
+ "data": {
405
+ "items": "*",
406
+ "tablename": "t_organization",
407
+ "condition": `parentid = '${this.functions.orgid}'`
408
+ }
398
409
  }, {resolveMsg: null, rejectMsg: null})
399
410
  const f_filialeids = [this.functions.orgid]
400
411
  for (const f of res.data) {
@@ -402,8 +413,7 @@ export default {
402
413
  }
403
414
 
404
415
  const data = {
405
- f_filiale_ids: f_filialeids.join(','),
406
- overday: 0
416
+ condition: `f_filiale_id in (${f_filialeids.join(',')}) and overday >= 0`
407
417
  }
408
418
  new HttpResetClass().load('POST','rs/sql/serviceDetails/n', {data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
409
419
  if(res.data && res.data.n !== 0){
@@ -147,7 +147,11 @@ import co from 'co'
147
147
  import {HttpResetClass} from "vue-client";
148
148
 
149
149
  let getwartermakr = async function (self) {
150
- let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
150
+ let param = {
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});
151
155
  if (result && result.data.length > 0) {
152
156
  self.showwatermakeflag = true;
153
157
  createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
@@ -287,7 +291,10 @@ export default {
287
291
  this.OrderDaiBan = ''
288
292
  this.AppDaiBan = ''
289
293
  let http = new HttpResetClass()
290
- await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
294
+ await http.load('POST', '/rs/sql/singleTable', {data: {
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
+ }}, {
291
298
  resolveMsg: null,
292
299
  rejectMsg: null
293
300
  }).then((res) => {
@@ -131,6 +131,7 @@
131
131
 
132
132
  <script>
133
133
  import co from 'co'
134
+ import { isStrongPassword } from '../../util/password-validation'
134
135
  import $ from 'jquery'
135
136
  import Vue from 'vue'
136
137
  import {HttpResetClass} from 'vue-client'
@@ -193,7 +194,7 @@
193
194
  }
194
195
  console.log(self.$login.depPrompt)
195
196
  // 弱口令验证(默认开启,跳转过来的不进行验证)
196
- if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
197
+ if ((!self.otherLogin) && !isStrongPassword(self.model.password)) {
197
198
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
198
199
  self.modifyPwShow = true
199
200
  })
@@ -324,27 +325,29 @@
324
325
  methods: {
325
326
  async getDaiBan(){
326
327
  let http = new HttpResetClass()
327
- let res
328
+ let condition = ''
328
329
  if(this.$login.f.deps!=='柠条塔'){
329
- res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
330
- resolveMsg: null,
331
- rejectMsg: null
332
- })
330
+ condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
333
331
  } else {
334
- res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
332
+ condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
333
+ }
334
+ await http.load('POST', '/rs/sql/singleTable', {data: {
335
+ tablename:'t_order_center',
336
+ condition:condition
337
+ }}, {
335
338
  resolveMsg: null,
336
339
  rejectMsg: null
340
+ }).then((res) => {
341
+ let OrderDaiBan = {}
342
+ res.data.forEach(item=>{
343
+ OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
344
+ OrderDaiBan[item.f_ordertype].push(item)
345
+ })
346
+ this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
347
+ if (res.data.length> 0){
348
+ this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
349
+ }
337
350
  })
338
- }
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
351
  let data = {
349
352
  condition: '1 = 1',
350
353
  data: {
@@ -366,6 +369,7 @@
366
369
  this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
367
370
  }
368
371
  })
372
+
369
373
  },
370
374
  async loginother(){
371
375
  if (this.config.distanceLogin) {
@@ -142,6 +142,7 @@
142
142
 
143
143
  <script>
144
144
  import co from 'co'
145
+ import { isStrongPassword } from '../../util/password-validation'
145
146
  import $ from 'jquery'
146
147
  import Vue from 'vue'
147
148
  import {HttpResetClass} from 'vue-client'
@@ -206,7 +207,7 @@ let saveGen = function *(self) {
206
207
  }
207
208
  console.log(self.$login.depPrompt)
208
209
  // 弱口令验证(默认开启,跳转过来的不进行验证)
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
+ if ((!self.otherLogin) && !isStrongPassword(self.model.password)) {
210
211
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
211
212
  self.modifyPwShow = true
212
213
  })
@@ -375,27 +376,29 @@ export default {
375
376
  },
376
377
  async getDaiBan(){
377
378
  let http = new HttpResetClass()
378
- let res
379
+ let condition = ''
379
380
  if(this.$login.f.deps!=='柠条塔'){
380
- res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
381
- resolveMsg: null,
382
- rejectMsg: null
383
- })
381
+ condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
384
382
  } else {
385
- res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
383
+ condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
384
+ }
385
+ await http.load('POST', '/rs/sql/singleTable', {data: {
386
+ tablename:'t_order_center',
387
+ condition:condition
388
+ }}, {
386
389
  resolveMsg: null,
387
390
  rejectMsg: null
391
+ }).then((res) => {
392
+ let OrderDaiBan = {}
393
+ res.data.forEach(item=>{
394
+ OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
395
+ OrderDaiBan[item.f_ordertype].push(item)
396
+ })
397
+ this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
398
+ if (res.data.length> 0){
399
+ this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
400
+ }
388
401
  })
389
- }
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
402
  let data = {
400
403
  condition: '1 = 1',
401
404
  data: {
@@ -417,6 +420,7 @@ export default {
417
420
  this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
418
421
  }
419
422
  })
423
+
420
424
  },
421
425
  async getDaiBanA(){
422
426
  // 是否全局开启待办通知
@@ -157,7 +157,11 @@ import co from 'co'
157
157
  import {HttpResetClass} from "vue-client";
158
158
 
159
159
  let getwartermakr = async function (self) {
160
- let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
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});
161
165
  if (result && result.data.length > 0) {
162
166
  self.showwatermakeflag = true;
163
167
  createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
@@ -296,7 +300,10 @@ export default {
296
300
  this.OrderDaiBan = ''
297
301
  this.AppDaiBan = ''
298
302
  let http = new HttpResetClass()
299
- await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
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
+ }}, {
300
307
  resolveMsg: null,
301
308
  rejectMsg: null
302
309
  }).then((res) => {