system-clients 3.2.1-16 → 3.2.1-19

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-clients",
3
- "version": "3.2.1-16",
3
+ "version": "3.2.1-19",
4
4
  "description": "系统基础框架",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -267,11 +267,7 @@ export default {
267
267
  }
268
268
  new HttpResetClass().load('POST','rs/path/operatorService/n', {data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
269
269
  if(res.data && res.data.n !== 0){
270
- this.$showMessage('你有'+res.data.n+'个工单待处理,是否跳转到站点工单页面',['confirm','cancel']).then((res) => {
271
- if(res === 'confirm'){
272
- this.$refs.route.init('stand-work', {})
273
- }
274
- })
270
+ this.$showMessage('你有'+res.data.n+'个工单待处理,请尽快前往站点工单页面进行处理')
275
271
  }
276
272
  })
277
273
  }
@@ -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') ) {
package/src/system.js CHANGED
@@ -26,7 +26,7 @@ import ResSelectGroup from './components/server/ResSelectGroup'
26
26
  //资源选择测试
27
27
  import TestResSelect from './components/server/TestResSelect'
28
28
  import RoleSelector from "./components/server/RoleSelector";
29
- export default function (val,filiale,showLogin) {
29
+ export default function (val,filiale,showLogin,show_daiBan) {
30
30
  console.log(val,filiale,showLogin)
31
31
  //验证码开关赋值
32
32
  if(val!=null){
@@ -36,6 +36,10 @@ export default function (val,filiale,showLogin) {
36
36
  if(showLogin!=null){
37
37
  GetLoginInfoService.depPrompt=showLogin
38
38
  }
39
+ //展示待办赋值
40
+ if(show_daiBan!=null){
41
+ GetLoginInfoService.showDaiBan=!!show_daiBan
42
+ }
39
43
  Vue.use(GetLoginInfoService)
40
44
  Vue.use(GetAppDataService)
41
45
  Vue.use(HeatGetLoginInfoService)
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- #Fri Mar 13 10:30:51 GMT+08:00 2020
2
- gradle.version=3.5
File without changes