system-clients 3.2.1-15 → 3.2.1-18

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.
@@ -103,6 +103,14 @@
103
103
  <span >{{$login.f.deps}}</span>
104
104
  </div> -->
105
105
  </div>
106
+ <div class="col-sm-12 " v-if="AppDaiBan !==''">
107
+ <label class="col-sm-2">报装待办:</label>
108
+ <span style="font-weight:normal">{{AppDaiBan}}</span>
109
+ </div>
110
+ <div class="col-sm-12 " v-if="OrderDaiBan !==''">
111
+ <label class="col-sm-2">预约待办:</label>
112
+ <span style="font-weight:normal">{{OrderDaiBan}}</span>
113
+ </div>
106
114
  </div>
107
115
  </form>
108
116
  </article>
@@ -189,6 +197,10 @@ let saveGen = function *(self) {
189
197
  })
190
198
  } else if ((!self.otherLogin) && self.$login.depPrompt) {
191
199
  self.depPromptShow = true
200
+ if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
201
+ // 获取待办
202
+ self.getDaiBan()
203
+ }
192
204
  } else {
193
205
  self.$goto('home-page', {functions: self.$login.f})
194
206
  // if (self.otherLogin){
@@ -289,10 +301,56 @@ export default {
289
301
  logoandroid:false,
290
302
  showus:false,
291
303
  notice:'',
292
- loginotherflag :true
304
+ loginotherflag :true,
305
+ // 报建待办
306
+ AppDaiBan: '',
307
+ // 预约待处理
308
+ OrderDaiBan: ''
293
309
  }
294
310
  },
295
311
  methods: {
312
+ async getDaiBan(){
313
+ let http = new HttpResetClass()
314
+ let data = {
315
+ condition: '1 = 1',
316
+ data: {
317
+ orgid: this.$login.f.orgid,
318
+ id: this.$login.f.id
319
+ }
320
+ }
321
+ await http.load('POST', '/rs/sql/checkuser', {data: data}, {
322
+ resolveMsg: null,
323
+ rejectMsg: null
324
+ }).then((res) => {
325
+ let AppDaiBan = {}
326
+ res.data.forEach(item=>{
327
+ AppDaiBan[item.defname] = AppDaiBan[item.defname] || []
328
+ AppDaiBan[item.defname].push(item)
329
+ })
330
+ this.AppDaiBan = `您有${res.data.length}条需要处理的报建待办业务!`
331
+ if (res.data.length> 0){
332
+ this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
333
+ }
334
+ })
335
+ await http.load('POST', '/rs/sql/singleTable', {data: {
336
+ tablename:'t_order_center',
337
+ condition:` f_orderstate != '预约成功' and f_orderstate != '预约失败'`
338
+
339
+ }}, {
340
+ resolveMsg: null,
341
+ rejectMsg: null
342
+ }).then((res) => {
343
+ let OrderDaiBan = {}
344
+ res.data.forEach(item=>{
345
+ OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
346
+ OrderDaiBan[item.f_ordertype].push(item)
347
+ })
348
+ this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
349
+ if (res.data.length> 0){
350
+ this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
351
+ }
352
+ })
353
+ },
296
354
  async loginother(){
297
355
  if (this.config.distanceLogin) {
298
356
  if (this.$login && this.$login.getUrlParames('name') ) {