system-clients 3.2.72 → 3.2.74

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.
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-clients",
3
- "version": "3.2.72",
3
+ "version": "3.2.74",
4
4
  "description": "系统基础框架",
5
5
  "main": "src/index.js",
6
6
  "directories": {
package/src/App.vue CHANGED
@@ -1,24 +1,24 @@
1
- <template>
2
- <app-base class="bg">
3
- <div class='flex'>
4
- <article>
5
- <!--<route :comp="{name: 'check-model'}"></route>-->
6
- <!--<route :comp="{name: 'vender-management'}"></route>-->
7
- <route :comp="{name: 'login'}"></route>
8
- <!-- <route :comp="{name: 'load-data'}"></route> -->
9
- <!-- <route :comp="{name: 'load-params', props: {componentName: 'login'}}"></route> -->
10
- <!-- <route :comp="{name: 'load-params', props: {dataUrl: ['rs/sql/getMeterBrand','rs/sql/getPriceType','rs/sql/getMeterStyle'], componentName: 'login'}}"></route> -->
11
- </article>
12
- </div>
13
- </app-base>
14
- </template>
15
-
16
- <script>
17
- // import cardListen from './plugins/CardListen'
18
-
19
- export default {
20
- // ready () {
21
- // cardListen.startListen()
22
- // }
23
- }
24
- </script>
1
+ <template>
2
+ <app-base class="bg">
3
+ <div class='flex'>
4
+ <article>
5
+ <!--<route :comp="{name: 'check-model'}"></route>-->
6
+ <!--<route :comp="{name: 'vender-management'}"></route>-->
7
+ <route :comp="{name: 'login'}"></route>
8
+ <!-- <route :comp="{name: 'load-data'}"></route> -->
9
+ <!-- <route :comp="{name: 'load-params', props: {componentName: 'login'}}"></route> -->
10
+ <!-- <route :comp="{name: 'load-params', props: {dataUrl: ['rs/sql/getMeterBrand','rs/sql/getPriceType','rs/sql/getMeterStyle'], componentName: 'login'}}"></route> -->
11
+ </article>
12
+ </div>
13
+ </app-base>
14
+ </template>
15
+
16
+ <script>
17
+ // import cardListen from './plugins/CardListen'
18
+
19
+ export default {
20
+ // ready () {
21
+ // cardListen.startListen()
22
+ // }
23
+ }
24
+ </script>
@@ -10,8 +10,8 @@
10
10
  </button>
11
11
  <span v-if="$login.versionTime">>构建时间:{{ vTime }}</span>
12
12
  <div v-if="titleShow">
13
- <img src="../../../static/newStyle/login-info.png"/>
14
- <span @click="showus=true">关于我们</span>
13
+ <img src="../../../static/newStyle/login-info.png"/>
14
+ <span @click="showus=true">关于我们</span>
15
15
  </div>
16
16
  <!-- <img src="../../../static/newStyle/login-con.png"/>-->
17
17
  <!-- <span>联系我们</span>-->
@@ -37,7 +37,7 @@
37
37
  <div class="loginmain">
38
38
  <!-- <img src="../../../static/login_title1.png" alt="图片加载未完成" class="img-responsive" style="margin: 0 auto; padding-top: 150px;" /> -->
39
39
  <div class="loginmain-left">
40
- <img class="loginmain-left-img" src="../../../static/newStyle/login-left.png">
40
+ <img class="loginmain-left-img" src="../../../static/newStyle/1959d3b6480f4485b2e32446f762960c.jpg">
41
41
  </div>
42
42
  <div class="loginmain-right">
43
43
 
@@ -99,12 +99,12 @@
99
99
  <label class="col-sm-5 ">当前登录人:</label>
100
100
  <label style="font-weight:normal">{{$login.f.name}}</label>
101
101
  </div>
102
- <!--<div class="col-sm-12 form-group" v-if="$login.f.number">-->
103
- <!--<label class="col-sm-5 ">组&nbsp;织&nbsp;编&nbsp;码:</label>-->
104
- <!--<label style="font-weight:normal">{{$login.f.number}}</label>-->
105
- <!-- <div class="col-sm-7">
106
- <span >{{$login.f.number}}</span>
107
- </div> -->
102
+ <!--<div class="col-sm-12 form-group" v-if="$login.f.number">-->
103
+ <!--<label class="col-sm-5 ">组&nbsp;织&nbsp;编&nbsp;码:</label>-->
104
+ <!--<label style="font-weight:normal">{{$login.f.number}}</label>-->
105
+ <!-- <div class="col-sm-7">
106
+ <span >{{$login.f.number}}</span>
107
+ </div> -->
108
108
  <!--</div>-->
109
109
  <div class="col-sm-12 form-group">
110
110
  <label class="col-sm-5">所在销售点:</label>
@@ -114,7 +114,7 @@
114
114
  </div> -->
115
115
  </div>
116
116
  <div class="col-sm-12 " v-if="AppDaiBan !==''">
117
- <label class="col-sm-2">报装待办:</label>
117
+ <label class="col-sm-2">报装待办:</label>
118
118
  <span style="font-weight:normal">{{AppDaiBan}}</span>
119
119
  </div>
120
120
  <div class="col-sm-12 " v-if="OrderDaiBan !==''">
@@ -141,424 +141,424 @@
141
141
  </template>
142
142
 
143
143
  <script>
144
- import co from 'co'
145
- import $ from 'jquery'
146
- import Vue from 'vue'
147
- import {HttpResetClass} from 'vue-client'
144
+ import co from 'co'
145
+ import $ from 'jquery'
146
+ import Vue from 'vue'
147
+ import {HttpResetClass} from 'vue-client'
148
148
 
149
- let daibanJson = require('../../util/Daiban.json')
149
+ let daibanJson = require('../../util/Daiban.json')
150
150
 
151
151
 
152
- let saveGen = function *(self) {
153
- try {
154
- if(self.$login){
155
- // 账号ename,密码password,是否显示异地登陆
156
- yield self.$login.login(self.model.ename, self.model.password, self.$login.showYiDi)
157
- }
158
- if(self.$appdata){
159
- yield self.$appdata.load()
160
- }
161
- if (Vue.$heatCompatibility) {
162
- try {
163
- if(self.$loginHeat){
164
- yield self.$loginHeat.login(self.model.ename, self.model.password)
165
- }
166
- if(self.$appdataHeat){
167
- yield self.$appdataHeat.load()
168
- }
169
- } catch (e) {
170
- console.log('热力系统登陆失败!')
152
+ let saveGen = function *(self) {
153
+ try {
154
+ if(self.$login){
155
+ // 账号ename,密码password,是否显示异地登陆
156
+ yield self.$login.login(self.model.ename, self.model.password, self.$login.showYiDi)
171
157
  }
172
- }
173
- yield self.$getConfig(self, 'Login')
174
- console.log('登录配置', self.config)
175
- if (self.config.isMac) {
176
- // 获取该登录人分公司下的mac配置
177
- let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
178
- resolveMsg: null,
179
- rejectMsg: null
180
- }).catch(() => {
181
- throw new Error('获取mac配置失败')
182
- })
183
- console.log('MAC地址信息', getMacs)
184
- // 获取本地mac地址
185
- let getLocalMac = yield self.$resetget('http://127.0.0.1:8003/loadmac', {
186
- resolveMsg: null,
187
- rejectMsg: null
188
- }).catch(() => {
189
- throw new Error('获取本地mac配置失败')
190
- })
191
- console.log('本地MAC地址信息', getLocalMac)
192
- // 对Mac地址进行匹配
193
- let macValidate = false
194
- for (let i = 0; i < getLocalMac.data.mac.length; i++) {
195
- for (let j = 0; j < getMacs.data.length; j++) {
196
- if (getMacs.data[j].f_mac_number.toLocaleUpperCase() === getLocalMac.data.mac[i]) {
197
- macValidate = true
158
+ if(self.$appdata){
159
+ yield self.$appdata.load()
160
+ }
161
+ if (Vue.$heatCompatibility) {
162
+ try {
163
+ if(self.$loginHeat){
164
+ yield self.$loginHeat.login(self.model.ename, self.model.password)
165
+ }
166
+ if(self.$appdataHeat){
167
+ yield self.$appdataHeat.load()
198
168
  }
169
+ } catch (e) {
170
+ console.log('热力系统登陆失败!')
199
171
  }
200
172
  }
201
- if (!macValidate) {
202
- throw new Error('Mac地址验证失败, 请联系管理员!!')
173
+ yield self.$getConfig(self, 'Login')
174
+ console.log('登录配置', self.config)
175
+ if (self.config.isMac) {
176
+ // 获取该登录人分公司下的mac配置
177
+ let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
178
+ resolveMsg: null,
179
+ rejectMsg: null
180
+ }).catch(() => {
181
+ throw new Error('获取mac配置失败')
182
+ })
183
+ console.log('MAC地址信息', getMacs)
184
+ // 获取本地mac地址
185
+ let getLocalMac = yield self.$resetget('http://127.0.0.1:8003/loadmac', {
186
+ resolveMsg: null,
187
+ rejectMsg: null
188
+ }).catch(() => {
189
+ throw new Error('获取本地mac配置失败')
190
+ })
191
+ console.log('本地MAC地址信息', getLocalMac)
192
+ // 对Mac地址进行匹配
193
+ let macValidate = false
194
+ for (let i = 0; i < getLocalMac.data.mac.length; i++) {
195
+ for (let j = 0; j < getMacs.data.length; j++) {
196
+ if (getMacs.data[j].f_mac_number.toLocaleUpperCase() === getLocalMac.data.mac[i]) {
197
+ macValidate = true
198
+ }
199
+ }
200
+ }
201
+ if (!macValidate) {
202
+ throw new Error('Mac地址验证失败, 请联系管理员!!')
203
+ }
203
204
  }
204
- }
205
- console.log(self.$login.depPrompt)
206
- // 弱口令验证
207
- //跳转过来的不进行验证
208
- if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
209
- self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
210
- self.modifyPwShow = true
211
- })
212
- } else if ((!self.otherLogin) && self.$login.depPrompt) {
213
- self.depPromptShow = true
214
- if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
215
- // 获取待办
216
- self.getDaiBan()
205
+ console.log(self.$login.depPrompt)
206
+ // 弱口令验证
207
+ //跳转过来的不进行验证
208
+ if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
209
+ self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
210
+ self.modifyPwShow = true
211
+ })
212
+ } else if ((!self.otherLogin) && self.$login.depPrompt) {
213
+ self.depPromptShow = true
214
+ if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
215
+ // 获取待办
216
+ self.getDaiBan()
217
+ }
218
+ if (self.$login.showDaiBan && self.$login.r.includes('登录预约信息')){
219
+ // 获取待办 在util下有个Daiban.jsond 文件 ,在里面进行配置,在功能权限界面增加登录预约信息
220
+ self.getDaiBanA()
221
+ }
222
+ } else {
223
+ self.$goto('home-page', {functions: self.$login.f,config: self.config})
224
+ if (self.$login) {
225
+ console.log('登录信息', self.$login.f)
226
+ global.login=self.$login.f
227
+ console.log('登录信息', global.login)
228
+ }
217
229
  }
218
- if (self.$login.showDaiBan && self.$login.r.includes('登录预约信息')){
219
- // 获取待办 在util下有个Daiban.jsond 文件 ,在里面进行配置,在功能权限界面增加登录预约信息
220
- self.getDaiBanA()
230
+ } catch (ret) {
231
+ console.error('登录失败', ret)
232
+ let msg
233
+ if (ret instanceof Error) {
234
+ msg = ret
221
235
  }
222
- } else {
223
- self.$goto('home-page', {functions: self.$login.f,config: self.config})
224
- if (self.$login) {
225
- console.log('登录信息', self.$login.f)
226
- global.login=self.$login.f
227
- console.log('登录信息', global.login)
236
+ if (ret.status === 0) {
237
+ msg = '服务连接错误,请确认服务状态'
238
+ } else if (ret.status === 401) {
239
+ msg = ret.data
240
+ } else if (ret.status === 710) {
241
+ msg = ret.data
242
+ } else if (ret.status === 555) {
243
+ msg = ret.data
228
244
  }
245
+ self.createCode()
246
+ self.picLyanzhengma = ''
247
+ yield self.$showMessage(msg)
248
+ self.model.ename = ''
249
+ self.model.password = ''
250
+ self.login = false
251
+ $('form').fadeIn(500)
229
252
  }
230
- } catch (ret) {
231
- console.error('登录失败', ret)
232
- let msg
233
- if (ret instanceof Error) {
234
- msg = ret
235
- }
236
- if (ret.status === 0) {
237
- msg = '服务连接错误,请确认服务状态'
238
- } else if (ret.status === 401) {
239
- msg = ret.data
240
- } else if (ret.status === 710) {
241
- msg = ret.data
242
- } else if (ret.status === 555) {
243
- msg = ret.data
244
- }
245
- self.createCode()
246
- self.picLyanzhengma = ''
247
- yield self.$showMessage(msg)
248
- self.model.ename = ''
249
- self.model.password = ''
250
- self.login = false
251
- $('form').fadeIn(500)
252
253
  }
253
- }
254
- export default {
255
- title: '登录',
256
- async ready () {
257
- this.titleShow = this.$appdata.getSingleValue('关于我们')
258
- window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
259
- this.vTime = this.format(new Date(window.versionTime));
260
- try{
261
- let http = new HttpResetClass()
262
- let res = await http.load('POST', 'rs/sql/singleTable',
263
- {data:{
264
- tablename: 't_changedeclare',
265
- condition: ` f_type ='变更通知' `
266
- }
267
- }, {resolveMsg: null, rejectMsg: null})
268
- if(res.data.length>0){
269
- console.log("---------------获取通知",res.data[0].f_change_message)
270
- this.notice=res.data[0].f_change_message
271
- }
272
- }catch(e){}
273
-
274
- this.loginother();
275
- $('#login-button').click(function (event) {
276
- event.preventDefault()
277
- $('form').fadeOut(500)
278
- })
279
- if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
280
- const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
281
- console.log(subUrl)
282
- this.model.ename = window.atob(subUrl[0])
283
- this.model.password = window.atob(subUrl[1])
284
- console.log('this.model.ename',this.model.ename)
285
- this.otherLogin = true
286
- this.confirm()
287
- }else{
288
- //跳转不需要验证码
289
- this.createCode()
290
- }
291
- console.log(this.$login)
292
- },
293
- data () {
294
- return {
295
- vTime: '',
296
- image:{
297
- img1: '/images/newStyle/login-info.png',
298
- img2: '/images/newStyle/login-con.png',
299
- img3: '/images/newStyle/login-left.png',
300
- img4: '/images/newStyle/login-user.png',
301
- img5: '/images/newStyle/login-pwd.png',
302
- img6: '/images/newStyle/login-check.png',
303
- img7: '/images/newStyle/login-do.png',
304
- },
305
- config: {
306
- isMac: false,
307
- depPrompt: false,
308
- weakPassword: false,
309
- title: '潮午天然气客服系统',
310
- distanceLogin: false,
311
- // 那些角色可以定时获取预约提示
312
- isTip : false,
313
- // 那些角色可以定时获取预约提示
314
- msgRole : '预约处理人员',
315
- // 定时获取提示间隔 单位:分钟
316
- times: 25,
317
- },
318
- titleShow: true, //标题显示
319
- otherLogin:false,
320
- login: false,
321
- depPromptShow: false,
322
- model: {},
323
- show: false,
324
- checkCode: '',
325
- login_do:true,
326
- picLyanzhengma: '',
327
- // 修改密码弹框展示
328
- modifyPwShow: false,
329
- logoandroid:false,
330
- showus:false,
331
- notice:'',
332
- loginotherflag :true,
333
- // 报建待办
334
- AppDaiBan: '',
335
- //安检待办
336
- safecheckDaiBan:[],
337
- // 预约待处理
338
- OrderDaiBan: ''
339
- }
340
- },
341
- methods: {
342
- //格式化时间
343
- format(dat){
344
- //获取年月日,时间
345
- const year = dat.getFullYear();
346
- const mon = (dat.getMonth()+1) < 10 ? "0"+(dat.getMonth()+1) : dat.getMonth()+1;
347
- const data = dat.getDate() < 10 ? "0"+(dat.getDate()) : dat.getDate();
348
- const hour = dat.getHours() < 10 ? "0"+(dat.getHours()) : dat.getHours();
349
- const min = dat.getMinutes() < 10 ? "0"+(dat.getMinutes()) : dat.getMinutes();
350
- const seon = dat.getSeconds() < 10 ? "0"+(dat.getSeconds()) : dat.getSeconds();
254
+ export default {
255
+ title: '登录',
256
+ async ready () {
257
+ this.titleShow = this.$appdata.getSingleValue('关于我们')
258
+ window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
259
+ this.vTime = this.format(new Date(window.versionTime));
260
+ try{
261
+ let http = new HttpResetClass()
262
+ let res = await http.load('POST', 'rs/sql/singleTable',
263
+ {data:{
264
+ tablename: 't_changedeclare',
265
+ condition: ` f_type ='变更通知' `
266
+ }
267
+ }, {resolveMsg: null, rejectMsg: null})
268
+ if(res.data.length>0){
269
+ console.log("---------------获取通知",res.data[0].f_change_message)
270
+ this.notice=res.data[0].f_change_message
271
+ }
272
+ }catch(e){}
351
273
 
352
- return year + "-" + mon + "-" + data + " " + hour + ":" + min + ":" + seon;
353
- },
354
- async getDaiBan(){
355
- let http = new HttpResetClass()
356
- let condition = ''
357
- if(this.$login.f.deps!=='柠条塔'){
358
- condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
359
- } else {
360
- condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
361
- }
362
- await http.load('POST', '/rs/sql/singleTable', {data: {
363
- tablename:'t_order_center',
364
- condition:condition
365
- }}, {
366
- resolveMsg: null,
367
- rejectMsg: null
368
- }).then((res) => {
369
- let OrderDaiBan = {}
370
- res.data.forEach(item=>{
371
- OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
372
- OrderDaiBan[item.f_ordertype].push(item)
274
+ this.loginother();
275
+ $('#login-button').click(function (event) {
276
+ event.preventDefault()
277
+ $('form').fadeOut(500)
373
278
  })
374
- this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
375
- if (res.data.length> 0){
376
- this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
377
- }
378
- })
379
- let data = {
380
- condition: '1 = 1',
381
- data: {
382
- orgid: this.$login.f.orgid,
383
- id: this.$login.f.id
384
- }
279
+ if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
280
+ const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
281
+ console.log(subUrl)
282
+ this.model.ename = window.atob(subUrl[0])
283
+ this.model.password = window.atob(subUrl[1])
284
+ console.log('this.model.ename',this.model.ename)
285
+ this.otherLogin = true
286
+ this.confirm()
287
+ }else{
288
+ //跳转不需要验证码
289
+ this.createCode()
385
290
  }
386
- await http.load('POST', '/rs/sql/checkuser', {data: data}, {
387
- resolveMsg: null,
388
- rejectMsg: null
389
- }).then((res) => {
390
- let AppDaiBan = {}
391
- res.data.forEach(item=>{
392
- AppDaiBan[item.defname] = AppDaiBan[item.defname] || []
393
- AppDaiBan[item.defname].push(item)
394
- })
395
- this.AppDaiBan = `您有${res.data.length}条需要处理的报建待办业务!`
396
- if (res.data.length> 0){
397
- this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
291
+ console.log(this.$login)
292
+ },
293
+ data () {
294
+ return {
295
+ vTime: '',
296
+ image:{
297
+ img1: '/images/newStyle/login-info.png',
298
+ img2: '/images/newStyle/login-con.png',
299
+ img3: '/images/newStyle/login-left.png',
300
+ img4: '/images/newStyle/login-user.png',
301
+ img5: '/images/newStyle/login-pwd.png',
302
+ img6: '/images/newStyle/login-check.png',
303
+ img7: '/images/newStyle/login-do.png',
304
+ },
305
+ config: {
306
+ isMac: false,
307
+ depPrompt: false,
308
+ weakPassword: false,
309
+ title: '潮午天然气客服系统',
310
+ distanceLogin: false,
311
+ // 那些角色可以定时获取预约提示
312
+ isTip : false,
313
+ // 那些角色可以定时获取预约提示
314
+ msgRole : '预约处理人员',
315
+ // 定时获取提示间隔 单位:分钟
316
+ times: 25,
317
+ },
318
+ titleShow: true, //标题显示
319
+ otherLogin:false,
320
+ login: false,
321
+ depPromptShow: false,
322
+ model: {},
323
+ show: false,
324
+ checkCode: '',
325
+ login_do:true,
326
+ picLyanzhengma: '',
327
+ // 修改密码弹框展示
328
+ modifyPwShow: false,
329
+ logoandroid:false,
330
+ showus:false,
331
+ notice:'',
332
+ loginotherflag :true,
333
+ // 报建待办
334
+ AppDaiBan: '',
335
+ //安检待办
336
+ safecheckDaiBan:[],
337
+ // 预约待处理
338
+ OrderDaiBan: ''
398
339
  }
399
- })
400
-
401
340
  },
402
- async getDaiBanA(){
403
- // 是否全局开启待办通知
404
- if (daibanJson.enable) {
405
- console.log("当前获取到待办配置为" + JSON.stringify(daibanJson))
341
+ methods: {
342
+ //格式化时间
343
+ format(dat){
344
+ //获取年月日,时间
345
+ const year = dat.getFullYear();
346
+ const mon = (dat.getMonth()+1) < 10 ? "0"+(dat.getMonth()+1) : dat.getMonth()+1;
347
+ const data = dat.getDate() < 10 ? "0"+(dat.getDate()) : dat.getDate();
348
+ const hour = dat.getHours() < 10 ? "0"+(dat.getHours()) : dat.getHours();
349
+ const min = dat.getMinutes() < 10 ? "0"+(dat.getMinutes()) : dat.getMinutes();
350
+ const seon = dat.getSeconds() < 10 ? "0"+(dat.getSeconds()) : dat.getSeconds();
351
+
352
+ return year + "-" + mon + "-" + data + " " + hour + ":" + min + ":" + seon;
353
+ },
354
+ async getDaiBan(){
406
355
  let http = new HttpResetClass()
407
- let daibanArray = []
408
- for (let daibanItem of daibanJson.daiban) {
409
- console.log("开始处理待办任务:" + daibanItem.title + "当前任务状态:" + daibanItem.enable?"开启":"关闭" )
410
- if (daibanItem.enable) { // 控制每一项通知是否开启
411
- let postResult = ''; //提示信息为
412
- await http.load("POST",daibanItem.url,{data:daibanItem.data},{ resolveMsg: null, rejectMsg: null})
413
- .then((res)=>{
414
- let responseData = res.data
415
- for (let item of responseData) {
416
- postResult += eval(daibanItem.text) + "\n"
417
- }
418
- postResult += '\t'
419
- daibanArray.push({text:postResult,oldData:daibanItem})
420
- })
356
+ let condition = ''
357
+ if(this.$login.f.deps!=='柠条塔'){
358
+ condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
359
+ } else {
360
+ condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
361
+ }
362
+ await http.load('POST', '/rs/sql/singleTable', {data: {
363
+ tablename:'t_order_center',
364
+ condition:condition
365
+ }}, {
366
+ resolveMsg: null,
367
+ rejectMsg: null
368
+ }).then((res) => {
369
+ let OrderDaiBan = {}
370
+ res.data.forEach(item=>{
371
+ OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
372
+ OrderDaiBan[item.f_ordertype].push(item)
373
+ })
374
+ this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
375
+ if (res.data.length> 0){
376
+ this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
377
+ }
378
+ })
379
+ let data = {
380
+ condition: '1 = 1',
381
+ data: {
382
+ orgid: this.$login.f.orgid,
383
+ id: this.$login.f.id
421
384
  }
422
385
  }
423
- console.log("安检数据为:"+JSON.stringify(daibanArray))
424
- this.safecheckDaiBan = daibanArray
425
- }else {
426
- console.log("待办提醒全局关闭。")
427
- }
386
+ await http.load('POST', '/rs/sql/checkuser', {data: data}, {
387
+ resolveMsg: null,
388
+ rejectMsg: null
389
+ }).then((res) => {
390
+ let AppDaiBan = {}
391
+ res.data.forEach(item=>{
392
+ AppDaiBan[item.defname] = AppDaiBan[item.defname] || []
393
+ AppDaiBan[item.defname].push(item)
394
+ })
395
+ this.AppDaiBan = `您有${res.data.length}条需要处理的报建待办业务!`
396
+ if (res.data.length> 0){
397
+ this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
398
+ }
399
+ })
400
+
401
+ },
402
+ async getDaiBanA(){
403
+ // 是否全局开启待办通知
404
+ if (daibanJson.enable) {
405
+ console.log("当前获取到待办配置为" + JSON.stringify(daibanJson))
406
+ let http = new HttpResetClass()
407
+ let daibanArray = []
408
+ for (let daibanItem of daibanJson.daiban) {
409
+ console.log("开始处理待办任务:" + daibanItem.title + "当前任务状态:" + daibanItem.enable?"开启":"关闭" )
410
+ if (daibanItem.enable) { // 控制每一项通知是否开启
411
+ let postResult = ''; //提示信息为
412
+ await http.load("POST",daibanItem.url,{data:daibanItem.data},{ resolveMsg: null, rejectMsg: null})
413
+ .then((res)=>{
414
+ let responseData = res.data
415
+ for (let item of responseData) {
416
+ postResult += eval(daibanItem.text) + "\n"
417
+ }
418
+ postResult += '\t'
419
+ daibanArray.push({text:postResult,oldData:daibanItem})
420
+ })
421
+ }
422
+ }
423
+ console.log("安检数据为:"+JSON.stringify(daibanArray))
424
+ this.safecheckDaiBan = daibanArray
425
+ }else {
426
+ console.log("待办提醒全局关闭。")
427
+ }
428
428
 
429
429
 
430
430
 
431
431
 
432
- },
432
+ },
433
433
 
434
- async loginother(){
435
- if (this.config.distanceLogin) {
436
- if (this.$login && this.$login.getUrlParames('name') ) {
437
- let ename = this.$login.getUrlParames('name');
438
- let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
439
- if(logininfo.data){
440
- if(logininfo.data.ename && logininfo.data.password){
441
- this.model.ename = logininfo.data.ename
442
- this.model.password =logininfo.data.password
443
- let gen = saveGen(this)
444
- return co(gen)
434
+ async loginother(){
435
+ if (this.config.distanceLogin) {
436
+ if (this.$login && this.$login.getUrlParames('name') ) {
437
+ let ename = this.$login.getUrlParames('name');
438
+ let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
439
+ if(logininfo.data){
440
+ if(logininfo.data.ename && logininfo.data.password){
441
+ this.model.ename = logininfo.data.ename
442
+ this.model.password =logininfo.data.password
443
+ let gen = saveGen(this)
444
+ return co(gen)
445
+ }
445
446
  }
446
447
  }
447
448
  }
448
- }
449
- },
450
- theme(){
451
- // var elementList = document.querySelectorAll('body');
452
- // console.log(elementList)
453
- // document.querySelectorAll('body')[0].className='themeTwo'
454
- // var elementList = document.querySelectorAll('body');
455
- // console.log(elementList)
456
- },
457
- onReady () {
458
- this.$emit('ready')
459
- },
460
- confirm (key) {
461
- this.login_do=!this.login_do
462
- // return
463
- if (key == 'key') {
464
- $('form').fadeOut(500)
465
- }
466
- this.login = true
467
- // let gen = saveGen(this)
468
- // return co(gen)
469
- if((!this.otherLogin) && this.$login && this.$login.Verification){
470
- console.log('跳转过来的不走验证')
471
- if(this.picLyanzhengma == '') {
472
- this.$showMessage("请输入验证码!").then(()=>{
473
- this.login = false
474
- $('form').fadeIn(500)
475
- this.createCode()
476
- })
477
- }else if(this.picLyanzhengma.toUpperCase() != this.checkCode ) {
478
- //若输入的验证码与产生的验证码不一致时
479
- this.$showMessage("验证码不正确").then(()=>{
480
- this.login = false
481
- $('form').fadeIn(500)
482
- this.createCode();//刷新验证码
483
- this.picLyanzhengma = '';
484
- })
449
+ },
450
+ theme(){
451
+ // var elementList = document.querySelectorAll('body');
452
+ // console.log(elementList)
453
+ // document.querySelectorAll('body')[0].className='themeTwo'
454
+ // var elementList = document.querySelectorAll('body');
455
+ // console.log(elementList)
456
+ },
457
+ onReady () {
458
+ this.$emit('ready')
459
+ },
460
+ confirm (key) {
461
+ this.login_do=!this.login_do
462
+ // return
463
+ if (key == 'key') {
464
+ $('form').fadeOut(500)
465
+ }
466
+ this.login = true
467
+ // let gen = saveGen(this)
468
+ // return co(gen)
469
+ if((!this.otherLogin) && this.$login && this.$login.Verification){
470
+ console.log('跳转过来的不走验证')
471
+ if(this.picLyanzhengma == '') {
472
+ this.$showMessage("请输入验证码!").then(()=>{
473
+ this.login = false
474
+ $('form').fadeIn(500)
475
+ this.createCode()
476
+ })
477
+ }else if(this.picLyanzhengma.toUpperCase() != this.checkCode ) {
478
+ //若输入的验证码与产生的验证码不一致时
479
+ this.$showMessage("验证码不正确").then(()=>{
480
+ this.login = false
481
+ $('form').fadeIn(500)
482
+ this.createCode();//刷新验证码
483
+ this.picLyanzhengma = '';
484
+ })
485
+ }else {
486
+ this.login = true
487
+ let gen = saveGen(this)
488
+ return co(gen)
489
+ }
485
490
  }else {
486
491
  this.login = true
487
492
  let gen = saveGen(this)
488
493
  return co(gen)
489
494
  }
490
- }else {
491
- this.login = true
492
- let gen = saveGen(this)
493
- return co(gen)
494
- }
495
- },
496
- createCode(){
497
- let code = "";
498
- let codeLength = 4;//验证码的长度
499
- let random = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
500
- 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');//随机数
501
- for (let i = 0; i < codeLength; i++) {
502
- //循环操作
503
- let index = Math.floor(Math.random() * 36);//取得随机数的索引(0~35)
504
- code += random[index];//根据索引取得随机数加到code上
505
- }
506
- this.checkCode = code;//把code值赋给验证码
507
- },
495
+ },
496
+ createCode(){
497
+ let code = "";
498
+ let codeLength = 4;//验证码的长度
499
+ let random = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
500
+ 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');//随机数
501
+ for (let i = 0; i < codeLength; i++) {
502
+ //循环操作
503
+ let index = Math.floor(Math.random() * 36);//取得随机数的索引(0~35)
504
+ code += random[index];//根据索引取得随机数加到code上
505
+ }
506
+ this.checkCode = code;//把code值赋给验证码
507
+ },
508
508
 
509
- async depPromptConfirm () {
510
- this.depPromptShow = false
511
- return this.$goto('home-page', {functions: this.$login.f,config: this.config})
512
- },
509
+ async depPromptConfirm () {
510
+ this.depPromptShow = false
511
+ return this.$goto('home-page', {functions: this.$login.f,config: this.config})
512
+ },
513
513
 
514
- depPromptCancel () {
515
- this.depPromptShow = false
516
- this.createCode()
517
- this.picLyanzhengma = ''
518
- this.model.ename = ''
519
- this.model.password = ''
520
- this.login = false
521
- $('form').fadeIn(500)
522
- },
523
- delCookie() {
524
- let cookies = document.cookie.split(";");
525
- console.log("点击触发了")
526
- for (let i = 0; i < cookies.length; i++) {
527
- let cookie = cookies[i];
528
- let eqPos = cookie.indexOf("=");
529
- let name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
530
- document.cookie =
531
- name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";
532
- }
533
- if (cookies.length > 0) {
514
+ depPromptCancel () {
515
+ this.depPromptShow = false
516
+ this.createCode()
517
+ this.picLyanzhengma = ''
518
+ this.model.ename = ''
519
+ this.model.password = ''
520
+ this.login = false
521
+ $('form').fadeIn(500)
522
+ },
523
+ delCookie() {
524
+ let cookies = document.cookie.split(";");
525
+ console.log("点击触发了")
534
526
  for (let i = 0; i < cookies.length; i++) {
535
527
  let cookie = cookies[i];
536
528
  let eqPos = cookie.indexOf("=");
537
529
  let name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
538
- let domain = location.host.substr(location.host.indexOf("."));
539
530
  document.cookie =
540
- name +
541
- "=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=" +
542
- domain;
531
+ name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";
532
+ }
533
+ if (cookies.length > 0) {
534
+ for (let i = 0; i < cookies.length; i++) {
535
+ let cookie = cookies[i];
536
+ let eqPos = cookie.indexOf("=");
537
+ let name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
538
+ let domain = location.host.substr(location.host.indexOf("."));
539
+ document.cookie =
540
+ name +
541
+ "=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=" +
542
+ domain;
543
+ }
543
544
  }
545
+ localStorage.clear()
546
+ sessionStorage.clear()
547
+ window.location.reload()
544
548
  }
545
- localStorage.clear()
546
- sessionStorage.clear()
547
- window.location.reload()
548
- }
549
549
 
550
- },
551
- watch: {
552
- 'modifyPwShow' (val){
553
- if (!val) {
554
- window.location.reload()
550
+ },
551
+ watch: {
552
+ 'modifyPwShow' (val){
553
+ if (!val) {
554
+ window.location.reload()
555
+ }
555
556
  }
556
557
  }
557
558
  }
558
- }
559
559
  </script>
560
560
 
561
561
  <style>
562
- .my_button_search{width: 100px; height: 25px;position: relative; padding-left:2px;top: 0px;line-height: 25px; background:rgba(0,0,0,0); border-radius: 4px; border:none; font-family: PingFang; font-size: 15px}
563
- .my_button_search:hover img{ filter: opacity(0.8);}
562
+ .my_button_search{width: 100px; height: 25px;position: relative; padding-left:2px;top: 0px;line-height: 25px; background:rgba(0,0,0,0); border-radius: 4px; border:none; font-family: PingFang; font-size: 15px}
563
+ .my_button_search:hover img{ filter: opacity(0.8);}
564
564
  </style>
@@ -40,10 +40,10 @@
40
40
  .fonttitle(@i - 1, @type, @colortype);
41
41
  }
42
42
 
43
- .fonttitle(40, 'bold', 'title');
44
- .fonttitle(40, 'bold', 'body');
45
- .fonttitle(40, 'bold', 'title1');
46
- .fonttitle(40, 'bold', 'button');
43
+ .fonttitle(40, bold, title);
44
+ .fonttitle(40, bold, body);
45
+ .fonttitle(40, bold, title1);
46
+ .fonttitle(40, bold, button);
47
47
  .fonttitle(40, bold, blue);
48
48
  .fonttitle(40, normal, title);
49
49
  .fonttitle(40, normal, body);