safecheck-client 3.0.35-42 → 3.0.35-44

Sign up to get free protection for your applications and to get access to all the features.
@@ -108,6 +108,9 @@
108
108
  <label for="f_checker_name">安检员</label>
109
109
  <input type="checkbox" id="f_user_number" value="f_user_number" v-model="$parent.$parent.nameForSql"/>
110
110
  <label for="f_checker_name">档案数量</label>
111
+ <label style="float: right">计划用户数:{{$parent.$parent.plan_num}}</label>
112
+ <label style="float: right">已检数:{{$parent.$parent.yes_safe_num}}</label>
113
+ <label style="float: right">未检数:{{$parent.$parent.no_safe_num}}</label>
111
114
  </div>
112
115
  </div>
113
116
  </div>
@@ -198,6 +201,9 @@ export default {
198
201
  listflag:false,
199
202
  nameflag:false,
200
203
  criteriaShow: false,
204
+ plan_num:0,
205
+ yes_safe_num:0,
206
+ no_safe_num:0,
201
207
  f_check_start:'',
202
208
  f_check_end:'',
203
209
  planName:[{label: '全部', value: ''}],
@@ -307,13 +313,17 @@ export default {
307
313
  if (!this.f_orgid) {
308
314
  this.getorg([this.$login.f.orgid])
309
315
  }
316
+ let condition = '1=1'
310
317
  if (this.f_orgid) {
311
318
  args.condition = `f_filialeid in ${this.f_orgid} and ${args.condition}`
319
+ condition += ` and tcpi.f_filialeid in ${this.f_orgid}`
312
320
  }
313
321
  if(this.f_check_start){
322
+ condition += ` and f_plan_year>=${new Date(this.f_check_start).getFullYear()} and f_plan_month>=${new Date(this.f_check_start).getMonth()+1} `
314
323
  args.condition += ` and f_year>=${new Date(this.f_check_start).getFullYear()} and f_month>=${new Date(this.f_check_start).getMonth()+1} `
315
324
  }
316
325
  if(this.f_check_end){
326
+ condition += ` and f_plan_year<=${new Date(this.f_check_end).getFullYear()} and f_plan_month<=${new Date(this.f_check_end).getMonth()+1} `
317
327
  args.condition += ` and f_year<=${new Date(this.f_check_end).getFullYear()} and f_month<=${new Date(this.f_check_end).getMonth()+1} `
318
328
  }
319
329
  this.$refs.paged.$refs.grid.$el.scrollTop = 0
@@ -322,10 +332,32 @@ export default {
322
332
  this.$showMessage("请至少选择一项进行汇总")
323
333
  return
324
334
  }
335
+ if (args.model.f_residential_area){
336
+ condition += ` and tcpi.f_residential_area like '%${args.model.f_residential_area}%'`
337
+ }
338
+ if (args.model.f_plan_name){
339
+ condition += ` and tcp.id = '${args.model.f_plan_name}'`
340
+ }
325
341
  this.model.paramSource = {groupName: `'${this.groupNameForSql}'`}
326
342
  this.model.search(args.condition, args.model)
343
+ this.initNum(condition)
344
+ },
345
+ initNum(condition){
346
+ new HttpResetClass().load('POST', `rs/sql/safe_singleTable_OrderBy`, {
347
+ data: {
348
+ items: "count(0) as num,sum(case when f_state = '已检' then 1 else 0 end) as yj,sum(case when f_state = '未检' then 1 else 0 end) as wj",
349
+ tablename: "t_check_plan_item tcpi left join t_check_plan tcp on tcpi.f_plan_id = tcp.id",
350
+ condition: `${condition}`,
351
+ orderitem: "1"
352
+ }
353
+ }, {resolveMsg: null, rejectMsg: null}).then(response=>{
354
+ this.plan_num = response.data[0].num || 0
355
+ this.yes_safe_num = response.data[0].yj || 0
356
+ this.no_safe_num = response.data[0].wj || 0
357
+ }).catch(error=>{
358
+ debugger
359
+ })
327
360
  },
328
-
329
361
  // 拼接groupName1
330
362
  getGroupName1 () {
331
363
  var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_checker_name','f_user_number']
package/src/main.js CHANGED
@@ -1,33 +1,33 @@
1
- import Vue from 'vue'
2
- import App from './App'
3
- import { all } from 'vue-client'
4
- import { system } from 'system-clients'
5
- import safecheck from './safecheck'
6
- import echarts from 'echarts'
7
- // import safecheck from './rongcheng'
8
-
9
- all()
10
- // 验证码开关赋值
11
- var Verificationfalg = false
12
- system(Verificationfalg)
13
- // system()
14
- safecheck('siyang')
15
- // safecheck('rizhao')
16
- require('./bootstrap/less/bootstrap.less')
17
- require('./expandcss.less')
18
-
19
- Vue.prototype.$echarts = echarts
20
- Vue.android = false
21
-
22
- Vue.url = '/SafeCheck/rs/'
23
- if(Vue.android)
24
- Vue.url = Vue.staticUrl
25
- Vue.interval = 1*60*1000
26
- Vue.nopic = 'file:///android_asset/nopic.png'
27
- Vue.mapSetup = false
28
-
29
- /* eslint-disable no-new */
30
- new Vue({
31
- el: 'body',
32
- components: { App }
33
- })
1
+ import Vue from 'vue'
2
+ import App from './App'
3
+ import { all } from 'vue-client'
4
+ import { system } from 'system-clients'
5
+ import safecheck from './safecheck'
6
+ import echarts from 'echarts'
7
+ // import safecheck from './rongcheng'
8
+
9
+ all()
10
+ // 验证码开关赋值
11
+ var Verificationfalg = false
12
+ system(Verificationfalg)
13
+ // system()
14
+ safecheck('bayan')
15
+ // safecheck('rizhao')
16
+ require('./bootstrap/less/bootstrap.less')
17
+ require('./expandcss.less')
18
+
19
+ Vue.prototype.$echarts = echarts
20
+ Vue.android = false
21
+
22
+ Vue.url = '/SafeCheck/rs/'
23
+ if(Vue.android)
24
+ Vue.url = Vue.staticUrl
25
+ Vue.interval = 1*60*1000
26
+ Vue.nopic = 'file:///android_asset/nopic.png'
27
+ Vue.mapSetup = false
28
+
29
+ /* eslint-disable no-new */
30
+ new Vue({
31
+ el: 'body',
32
+ components: { App }
33
+ })