safecheck-client 3.0.34-4 → 3.0.34-43

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 (122) hide show
  1. package/docs/FormPrint.md +18 -18
  2. package/docs/GridTree.md +47 -47
  3. package/docs/PrintFile.md +38 -38
  4. package/docs/tree.md +40 -40
  5. package/package.json +1 -1
  6. package/src/App-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.vue +55 -0
  7. package/src/assets/123.png +0 -0
  8. package/src/assets/f8632d3c8c4c1cb68e99da754cab1a7.png +0 -0
  9. package/src/components/LoadData.vue +62 -0
  10. package/src/components/android/AddGas.vue +147 -147
  11. package/src/components/android/AndroidDefectDeal.vue +1 -0
  12. package/src/components/android/AreaPlan.vue +566 -572
  13. package/src/components/android/CheckerMonthly.vue +84 -84
  14. package/src/components/android/LcheckUnplan.vue +108 -108
  15. package/src/components/android/PaperFeedback.vue +1 -1
  16. package/src/components/android/PaperFeedbackTemp.vue +1 -1
  17. package/src/components/android/QRCode/QRCodeBinding.vue +300 -0
  18. package/src/components/android/QRCode/QRCodePage.vue +212 -0
  19. package/src/components/android/SafecheckDevices.vue +1 -1
  20. package/src/components/android/SafecheckDevicesTemp.vue +1 -1
  21. package/src/components/android/SafecheckOrderV.vue +2809 -2809
  22. package/src/components/android/SwitchValve.vue +323 -323
  23. package/src/components/android/examples/SafeListExamples.vue +96 -0
  24. package/src/components/android/examples/UserExamples.vue +126 -0
  25. package/src/components/android/userinfo/SafecheckUserInfo.vue +1 -1
  26. package/src/components/checkerphonestate/Checker.vue +32 -32
  27. package/src/components/checkerphonestate/CheckerState.vue +97 -97
  28. package/src/components/defects/AddDefectModal.vue +120 -120
  29. package/src/components/defects/AddDevice.vue +95 -95
  30. package/src/components/defects/DevicesSeting.vue +106 -106
  31. package/src/components/metterfiles/AddUserfiles.vue +246 -246
  32. package/src/components/metterfiles/MetterFiles.vue +104 -104
  33. package/src/components/notice/NoticeQuery.vue +76 -76
  34. package/src/components/paper/RepairVerifyForm.vue +76 -76
  35. package/src/components/phonestate/DailyTraffic.vue +57 -57
  36. package/src/components/phonestate/LastKnownState.vue +74 -74
  37. package/src/components/task/RepairAnnual.vue +79 -79
  38. package/src/components/task/RepairAnnualDetail.vue +49 -49
  39. package/src/components/task/RepairMonthly.vue +91 -91
  40. package/src/components/task/TaskAnnual.vue +77 -77
  41. package/src/components/task/TaskAnnualDetail.vue +47 -47
  42. package/src/components/task/TaskMonthly.vue +89 -89
  43. package/src/components/userfile/UserfileChange.vue +277 -277
  44. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2798 -0
  45. package/src/filiale/baiyin/android.js +1 -0
  46. package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
  47. package/src/filiale/baiyin/pc.js +21 -21
  48. package/src/filiale/bayan/android/PaperFeedback.vue +1 -1
  49. package/src/filiale/bayan/android/SafecheckDevices.vue +1 -1
  50. package/src/filiale/bayan/android/SafecheckOrderV.vue +52 -29
  51. package/src/filiale/bayan/android/SafecheckUserInfo.vue +1 -1
  52. package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
  53. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -15
  54. package/src/filiale/hanzhong/android/PaperFeedback.vue +1 -1
  55. package/src/filiale/hanzhong/android/SafecheckDevices.vue +1 -1
  56. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +1 -1
  57. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -0
  58. package/src/filiale/huaran/android.js +12 -0
  59. package/src/filiale/huaran/pc/CheckBook.vue +313 -0
  60. package/src/filiale/huaran/pc/CheckBookAll.vue +69 -0
  61. package/src/filiale/huaran/pc/CheckBookArea.vue +170 -0
  62. package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -0
  63. package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -0
  64. package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -0
  65. package/src/filiale/huaran/pc/CheckBookList.vue +386 -0
  66. package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -0
  67. package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -0
  68. package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -0
  69. package/src/filiale/huaran/pc/CheckBookUser.vue +112 -0
  70. package/src/filiale/huaran/pc/PaperList.vue +822 -0
  71. package/src/filiale/huaran/pc/PlanManage.vue +887 -0
  72. package/src/filiale/huaran/pc/checkPlanList.vue +419 -0
  73. package/src/filiale/huaran/pc/checkUserList.vue +867 -0
  74. package/src/filiale/huaran/pc.js +27 -0
  75. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -0
  76. package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -0
  77. package/src/filiale/jiaxian/android/SafecheckDevices.vue +4 -4
  78. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2811 -0
  79. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -0
  80. package/src/filiale/jiaxian/android.js +4 -0
  81. package/src/filiale/jingyang/android/PaperFeedback.vue +1 -1
  82. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +1 -1
  83. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +15 -7
  84. package/src/filiale/pingxiang/android/PaperFeedback.vue +1 -1
  85. package/src/filiale/qingjian/android/SafecheckDevices.vue +1 -1
  86. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +1 -1
  87. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -0
  88. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -0
  89. package/src/filiale/ruihua/android.js +11 -0
  90. package/src/filiale/shiquan/android/SafecheckDevices.vue +1 -1
  91. package/src/filiale/siyang/android/SafecheckUserInfo.vue +1 -1
  92. package/src/filiale/tongchuan/android/Select.vue +421 -0
  93. package/src/filiale/tongchuan/android.js +1 -0
  94. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
  95. package/src/filiale/tongchuan/utils/EventListener.js +29 -0
  96. package/src/filiale/tongchuan/utils/coerceBoolean.js +7 -0
  97. package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
  98. package/src/filiale/weinan/android/SafecheckOrderV.vue +1 -1
  99. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +57 -59
  100. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  101. package/src/filiale/weinan/pc/DefectMainNew.vue +63 -63
  102. package/src/filiale/weinan/pc/DefectPaperNew.vue +31 -0
  103. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -0
  104. package/src/filiale/weinan/pc/checkUserList.vue +34 -113
  105. package/src/filiale/weinan/pc.js +47 -46
  106. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1192 -1200
  107. package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +472 -480
  108. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1 -1
  109. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +2 -2
  110. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +1 -1
  111. package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +473 -481
  112. package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +9 -7
  113. package/src/filiale/yongzhou/android/PaperFeedback.vue +1 -1
  114. package/src/filiale/yongzhou/android/SafecheckDevices.vue +1 -1
  115. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +1 -1
  116. package/src/filiale/yuansheng/android/SafecheckDevices.vue +11 -1
  117. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +10 -2
  118. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1 -1
  119. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1 -1
  120. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +1 -1
  121. package/src/main-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.js +24 -0
  122. package/src/safecheck-android.js +4 -0
@@ -1,74 +1,74 @@
1
- <template>
2
- <div>
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='search'>
5
- <div novalidate class="form-inline auto" partial>
6
- <button class="btn btn-default" @click="search()">刷新</button>
7
- <button type="button" class="btn btn-default" @click="$parent.$parent.lastKnownPos">位置地图&nbsp;&nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-map-marker"></span></button>
8
- <div class="form-group">
9
- 部门:
10
- <chooser :userid.sync='$parent.$parent.f.id' resource-type="organization" :width='200' :select-data.sync='$parent.$parent.model.chosenOrg'></chooser>
11
- </div>
12
- {{$parent.$parent.model.chosenOrg.fullname}}
13
- </div>
14
- </criteria>
15
- <data-grid :model="model" partial='list' v-ref:grid>
16
- <template partial='head'>
17
- <tr>
18
- <th>时间</th>
19
- <th>手机使用者</th>
20
- <th>手机串码</th>
21
- <th>经度</th>
22
- <th>纬度</th>
23
- <th>海拔(米)</th>
24
- <th>电量%</th>
25
- <th>信号强度</th>
26
- <th>剩余空间M</th>
27
- <th>流量Kb</th>
28
- </tr>
29
- </template>
30
- <template partial='body'>
31
- <td>{{row.f_datetime}}</td>
32
- <td v-on:click.stop.prevent='$parent.$parent.$parent.footprint(row)'>{{row.f_user_name}}&nbsp;&nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-option-horizontal"></span></td>
33
- <td>{{row.f_sn}}</td>
34
- <td>{{row.f_longitude}}</td>
35
- <td>{{row.f_latitude}}</td>
36
- <td>{{row.f_altitude}}</td>
37
- <td>{{row.f_battery_level}}</td>
38
- <td>{{row.f_signal_strength}}</td>
39
- <td>{{row.f_internal_quote}}</td>
40
- <td>{{row.f_traffic/1000}}</td>
41
- </template>
42
- </data-grid>
43
- </criteria-paged>
44
- </div>
45
- </template>
46
-
47
- <script>
48
- import { PagedList } from 'vue-client'
49
-
50
- export default {
51
- title: '足迹及手机状态监控',
52
- props: ['f'],
53
- data () {
54
- let model = new PagedList('rs/sql/最后在线位置及状态', 20, {f_loggedOnUserId: 'this.f_loggedOnUserId', f_loggedOnOrgId: 'this.chosenOrg.id'})
55
- model.chosenOrg = {id:0}
56
- return {
57
- model: model
58
- }
59
- },
60
- methods: {
61
- lastKnownPos () {
62
- this.$goto('post-map', {lonlats: this.model.rows}, 'self')
63
- },
64
- footprint (row) {
65
- this.$goto('footprint-map', {f_userinfoid: row.f_userinfoid, f_user_name: row.f_user_name}, 'self')
66
- }
67
- },
68
- ready () {
69
- this.model.f_loggedOnUserId = this.f.id
70
- this.model.chosenOrg.id = this.f.parent.id
71
- this.model.search()
72
- }
73
- }
74
- </script>
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='search'>
5
+ <div novalidate class="form-inline auto" partial>
6
+ <button class="btn btn-default" @click="search()">刷新</button>
7
+ <button type="button" class="btn btn-default" @click="$parent.$parent.lastKnownPos">位置地图&nbsp;&nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-map-marker"></span></button>
8
+ <div class="form-group">
9
+ 部门:
10
+ <chooser :userid.sync='$parent.$parent.f.id' resource-type="organization" :width='200' :select-data.sync='$parent.$parent.model.chosenOrg'></chooser>
11
+ </div>
12
+ {{$parent.$parent.model.chosenOrg.fullname}}
13
+ </div>
14
+ </criteria>
15
+ <data-grid :model="model" partial='list' v-ref:grid>
16
+ <template partial='head'>
17
+ <tr>
18
+ <th>时间</th>
19
+ <th>手机使用者</th>
20
+ <th>手机串码</th>
21
+ <th>经度</th>
22
+ <th>纬度</th>
23
+ <th>海拔(米)</th>
24
+ <th>电量%</th>
25
+ <th>信号强度</th>
26
+ <th>剩余空间M</th>
27
+ <th>流量Kb</th>
28
+ </tr>
29
+ </template>
30
+ <template partial='body'>
31
+ <td>{{row.f_datetime}}</td>
32
+ <td v-on:click.stop.prevent='$parent.$parent.$parent.footprint(row)'>{{row.f_user_name}}&nbsp;&nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-option-horizontal"></span></td>
33
+ <td>{{row.f_sn}}</td>
34
+ <td>{{row.f_longitude}}</td>
35
+ <td>{{row.f_latitude}}</td>
36
+ <td>{{row.f_altitude}}</td>
37
+ <td>{{row.f_battery_level}}</td>
38
+ <td>{{row.f_signal_strength}}</td>
39
+ <td>{{row.f_internal_quote}}</td>
40
+ <td>{{row.f_traffic/1000}}</td>
41
+ </template>
42
+ </data-grid>
43
+ </criteria-paged>
44
+ </div>
45
+ </template>
46
+
47
+ <script>
48
+ import { PagedList } from 'vue-client'
49
+
50
+ export default {
51
+ title: '足迹及手机状态监控',
52
+ props: ['f'],
53
+ data () {
54
+ let model = new PagedList('rs/sql/最后在线位置及状态', 20, {f_loggedOnUserId: 'this.f_loggedOnUserId', f_loggedOnOrgId: 'this.chosenOrg.id'})
55
+ model.chosenOrg = {id:0}
56
+ return {
57
+ model: model
58
+ }
59
+ },
60
+ methods: {
61
+ lastKnownPos () {
62
+ this.$goto('post-map', {lonlats: this.model.rows}, 'self')
63
+ },
64
+ footprint (row) {
65
+ this.$goto('footprint-map', {f_userinfoid: row.f_userinfoid, f_user_name: row.f_user_name}, 'self')
66
+ }
67
+ },
68
+ ready () {
69
+ this.model.f_loggedOnUserId = this.f.id
70
+ this.model.chosenOrg.id = this.f.parent.id
71
+ this.model.search()
72
+ }
73
+ }
74
+ </script>
@@ -1,79 +1,79 @@
1
- <template>
2
- <div class="flex">
3
- <form class="form-inline">
4
- <div class="form-group">
5
- <label for="c_plan_year">年份:</label>
6
- <v-select id="c_plan_year" :value.sync="c_plan_year"
7
- :options='c_year_list' close-on-select clear-button></v-select>
8
- <button type="button" class="btn btn-default" @click="search()">查询</button>
9
- </div>
10
- <div class="form-group">
11
- 部门:
12
- <chooser :userid.sync='f.id' resource-type="organization" :width='200' :select-data.sync='model.chosenOrg'></chooser>
13
- </div>
14
- {{model.chosenOrg.fullname}}
15
- </form>
16
- <div class="span">
17
- <data-grid :model="model" partial='list' v-ref:grid>
18
- <template partial='head'>
19
- <tr>
20
- <th>维修员</th>
21
- <th>已维修</th>
22
- <th>在维修</th>
23
- <th>未维修</th>
24
- <th></th>
25
- </tr>
26
- </template>
27
- <template partial='body'>
28
- <td>{{row.f_repairman}}</td>
29
- <td>{{row.checked}}</td>
30
- <td>{{row.checking}}</td>
31
- <td>{{row.unchecked}}</td>
32
- <td v-on:click.stop.prevent='$parent.$parent.showDetail(row)'><span class="glyphicon glyphicon-option-horizontal"></span></td>
33
- </template>
34
- </data-grid>
35
- </span>
36
- <div style="height:50px;"></div>
37
- </div>
38
- </template>
39
-
40
- <script>
41
- import { PagedList } from 'vue-client'
42
- import Vue from 'vue'
43
-
44
- export default {
45
- title: '维修员年任务',
46
- props: ['f'],
47
- data() {
48
- let options = []
49
- let year = (new Date()).getFullYear()
50
- for(let i = year - 8; i <= year +1; i++ )
51
- options.push({label: i+'', value: i+''})
52
- let model = new PagedList('rs/sql/跟踪维修员年任务', 20, {id: 'this.id', org_id: 'this.chosenOrg.id', f_plan_year: 'this.f_plan_year', f_subcompany: 'this.f_subcompany'})
53
- model.chosenOrg = {id:0}
54
- return {
55
- c_plan_year: year + '',
56
- c_year_list: options,
57
- model: model
58
- }
59
- },
60
- ready () {
61
- this.model.id = this.f.id
62
- this.model.chosenOrg.id = this.f.parent.id
63
- this.model.f_plan_year = this.c_plan_year[0]
64
- this.model.f_subcompany = Vue.f_subcompany
65
- this.$watch('c_plan_year', function (val) {
66
- this.model.f_plan_year = val[0]
67
- })
68
- },
69
- methods: {
70
- showDetail (row) {
71
- this.$goto('repair-annual-detail', {f_plan_year: this.model.f_plan_year, f_repairman: row.f_repairman, f_subcompany: this.model.f_subcompany}, 'self')
72
- },
73
- search () {
74
- this.model.rows = []
75
- this.model.search()
76
- }
77
- }
78
- }
79
- </script>
1
+ <template>
2
+ <div class="flex">
3
+ <form class="form-inline">
4
+ <div class="form-group">
5
+ <label for="c_plan_year">年份:</label>
6
+ <v-select id="c_plan_year" :value.sync="c_plan_year"
7
+ :options='c_year_list' close-on-select clear-button></v-select>
8
+ <button type="button" class="btn btn-default" @click="search()">查询</button>
9
+ </div>
10
+ <div class="form-group">
11
+ 部门:
12
+ <chooser :userid.sync='f.id' resource-type="organization" :width='200' :select-data.sync='model.chosenOrg'></chooser>
13
+ </div>
14
+ {{model.chosenOrg.fullname}}
15
+ </form>
16
+ <div class="span">
17
+ <data-grid :model="model" partial='list' v-ref:grid>
18
+ <template partial='head'>
19
+ <tr>
20
+ <th>维修员</th>
21
+ <th>已维修</th>
22
+ <th>在维修</th>
23
+ <th>未维修</th>
24
+ <th></th>
25
+ </tr>
26
+ </template>
27
+ <template partial='body'>
28
+ <td>{{row.f_repairman}}</td>
29
+ <td>{{row.checked}}</td>
30
+ <td>{{row.checking}}</td>
31
+ <td>{{row.unchecked}}</td>
32
+ <td v-on:click.stop.prevent='$parent.$parent.showDetail(row)'><span class="glyphicon glyphicon-option-horizontal"></span></td>
33
+ </template>
34
+ </data-grid>
35
+ </span>
36
+ <div style="height:50px;"></div>
37
+ </div>
38
+ </template>
39
+
40
+ <script>
41
+ import { PagedList } from 'vue-client'
42
+ import Vue from 'vue'
43
+
44
+ export default {
45
+ title: '维修员年任务',
46
+ props: ['f'],
47
+ data() {
48
+ let options = []
49
+ let year = (new Date()).getFullYear()
50
+ for(let i = year - 8; i <= year +1; i++ )
51
+ options.push({label: i+'', value: i+''})
52
+ let model = new PagedList('rs/sql/跟踪维修员年任务', 20, {id: 'this.id', org_id: 'this.chosenOrg.id', f_plan_year: 'this.f_plan_year', f_subcompany: 'this.f_subcompany'})
53
+ model.chosenOrg = {id:0}
54
+ return {
55
+ c_plan_year: year + '',
56
+ c_year_list: options,
57
+ model: model
58
+ }
59
+ },
60
+ ready () {
61
+ this.model.id = this.f.id
62
+ this.model.chosenOrg.id = this.f.parent.id
63
+ this.model.f_plan_year = this.c_plan_year[0]
64
+ this.model.f_subcompany = Vue.f_subcompany
65
+ this.$watch('c_plan_year', function (val) {
66
+ this.model.f_plan_year = val[0]
67
+ })
68
+ },
69
+ methods: {
70
+ showDetail (row) {
71
+ this.$goto('repair-annual-detail', {f_plan_year: this.model.f_plan_year, f_repairman: row.f_repairman, f_subcompany: this.model.f_subcompany}, 'self')
72
+ },
73
+ search () {
74
+ this.model.rows = []
75
+ this.model.search()
76
+ }
77
+ }
78
+ }
79
+ </script>
@@ -1,49 +1,49 @@
1
- <template>
2
- <div class="flex">
3
- <div class="auto">
4
- <label>{{f_repairman}}{{f_plan_year}}任务月完成情况</label>
5
- <button type="button" class="btn btn-default" @click="this.$back('asd')">&lt;&lt;</button>
6
- </div>
7
- <div class="span">
8
- <data-grid :model="model" partial='list' v-ref:grid>
9
- <template partial='head'>
10
- <tr>
11
- <th>年</th>
12
- <th>月</th>
13
- <th>已检</th>
14
- <th>在检</th>
15
- <th>未检</th>
16
- </tr>
17
- </template>
18
- <template partial='body'>
19
- <td>{{row.f_plan_year}}</td>
20
- <td>{{row.f_plan_month}}</td>
21
- <td>{{row.checked}}</td>
22
- <td>{{row.checking}}</td>
23
- <td>{{row.unchecked}}</td>
24
- </template>
25
- </data-grid>
26
- </div>
27
- <div style="height:50px;"></div>
28
- </div>
29
- </template>
30
-
31
- <script>
32
- import { PagedList } from 'vue-client'
33
-
34
- export default {
35
- title: '维修员年任务明细',
36
- props: ['f_repairman', 'f_plan_year', 'f_subcompany'],
37
- data() {
38
- return {
39
- model: new PagedList('rs/sql/跟踪维修员年任务明细', 20, {f_repairman: 'this.f_repairman', f_plan_year: 'this.f_plan_year', f_subcompany: 'this.f_subcompany'})
40
- }
41
- },
42
- ready () {
43
- this.model.f_repairman = this.f_repairman
44
- this.model.f_plan_year = this.f_plan_year
45
- this.model.f_subcompany = this.f_subcompany
46
- this.model.search()
47
- }
48
- }
49
- </script>
1
+ <template>
2
+ <div class="flex">
3
+ <div class="auto">
4
+ <label>{{f_repairman}}{{f_plan_year}}任务月完成情况</label>
5
+ <button type="button" class="btn btn-default" @click="this.$back('asd')">&lt;&lt;</button>
6
+ </div>
7
+ <div class="span">
8
+ <data-grid :model="model" partial='list' v-ref:grid>
9
+ <template partial='head'>
10
+ <tr>
11
+ <th>年</th>
12
+ <th>月</th>
13
+ <th>已检</th>
14
+ <th>在检</th>
15
+ <th>未检</th>
16
+ </tr>
17
+ </template>
18
+ <template partial='body'>
19
+ <td>{{row.f_plan_year}}</td>
20
+ <td>{{row.f_plan_month}}</td>
21
+ <td>{{row.checked}}</td>
22
+ <td>{{row.checking}}</td>
23
+ <td>{{row.unchecked}}</td>
24
+ </template>
25
+ </data-grid>
26
+ </div>
27
+ <div style="height:50px;"></div>
28
+ </div>
29
+ </template>
30
+
31
+ <script>
32
+ import { PagedList } from 'vue-client'
33
+
34
+ export default {
35
+ title: '维修员年任务明细',
36
+ props: ['f_repairman', 'f_plan_year', 'f_subcompany'],
37
+ data() {
38
+ return {
39
+ model: new PagedList('rs/sql/跟踪维修员年任务明细', 20, {f_repairman: 'this.f_repairman', f_plan_year: 'this.f_plan_year', f_subcompany: 'this.f_subcompany'})
40
+ }
41
+ },
42
+ ready () {
43
+ this.model.f_repairman = this.f_repairman
44
+ this.model.f_plan_year = this.f_plan_year
45
+ this.model.f_subcompany = this.f_subcompany
46
+ this.model.search()
47
+ }
48
+ }
49
+ </script>
@@ -1,91 +1,91 @@
1
- <template>
2
- <div class="flex">
3
- <form class="form-inline">
4
- <div class="form-group">
5
- <label for="c_plan_year">年份:</label>
6
- <v-select id="c_plan_year" :value.sync="c_plan_year"
7
- :options='c_year_list' close-on-select clear-button></v-select>
8
- <label for="c_plan_month">月份:</label>
9
- <v-select id="c_plan_month" :value.sync="c_plan_month"
10
- :options='c_month_list' close-on-select clear-button></v-select>
11
- <button type="button" class="btn btn-default" @click="search()">查询</button>
12
- </div>
13
- <div class="form-group">
14
- 部门:
15
- <chooser :userid.sync='f.id' resource-type="organization" :width='200' :select-data.sync='model.chosenOrg'></chooser>
16
- </div>
17
- {{model.chosenOrg.fullname}}
18
- </form>
19
- <div class="span">
20
- <data-grid :model="model" partial='list' v-ref:grid>
21
- <template partial='head'>
22
- <tr>
23
- <th>维修员</th>
24
- <th>已维修</th>
25
- <th>在维修</th>
26
- <th>未维修</th>
27
- </tr>
28
- </template>
29
- <template partial='body'>
30
- <td>{{row.f_repairman}}</td>
31
- <td>{{row.checked}}</td>
32
- <td>{{row.checking}}</td>
33
- <td>{{row.unchecked}}</td>
34
- </template>
35
- </data-grid>
36
- </span>
37
- <div style="height:50px;"></div>
38
- </div>
39
- </template>
40
-
41
- <script>
42
- import { PagedList } from 'vue-client'
43
- import Vue from 'vue'
44
-
45
- export default {
46
- title: '维修员月任务',
47
- props: ['f'],
48
- data() {
49
- let options = []
50
- let year = (new Date()).getFullYear()
51
- for(let i = year - 8; i <= year +1; i++ )
52
- options.push({label: i+'', value: i+''})
53
- let moptions = []
54
- for(let i=1; i<=12; i++)
55
- moptions.push({label: i + '', value: i + ''})
56
- let model = new PagedList('rs/sql/跟踪维修员月任务', 20,
57
- {id: 'this.id', org_id: 'this.chosenOrg.id', f_plan_year: 'this.f_plan_year', f_subcompany: 'this.f_subcompany',
58
- f_plan_month: 'this.f_plan_month', f_ym: 'this.f_ym'})
59
- model.chosenOrg = {id:0}
60
- return {
61
- c_plan_year: year + '',
62
- c_year_list: options,
63
- c_month_list: moptions,
64
- c_plan_month: moptions[new Date().getMonth()].value,
65
- model: model
66
- }
67
- },
68
- ready () {
69
- this.model.id = this.f.id
70
- this.model.chosenOrg.id = this.f.parent.id
71
- this.model.f_plan_year = this.c_plan_year[0]
72
- this.model.f_plan_month = this.c_plan_month[0]
73
- this.model.f_subcompany = Vue.f_subcompany
74
- this.model.f_ym = this.c_plan_year[0] + '-' + (this.c_plan_month[0].length > 1 ? this.c_plan_month[0] : '0' + this.c_plan_month[0])
75
- this.$watch('c_plan_year', function (val) {
76
- this.model.f_plan_year = val[0]
77
- this.model.f_ym = val[0] + '-' + (this.c_plan_month[0].length > 1 ? this.c_plan_month[0] : '0' + this.c_plan_month[0])
78
- })
79
- this.$watch('c_plan_month', function (val) {
80
- this.model.f_plan_month = val[0]
81
- this.model.f_ym = this.c_plan_year[0] + '-' + (val[0].length > 1 ? val[0] : '0' + val[0])
82
- })
83
- },
84
- methods: {
85
- search () {
86
- this.model.rows = []
87
- this.model.search()
88
- }
89
- }
90
- }
91
- </script>
1
+ <template>
2
+ <div class="flex">
3
+ <form class="form-inline">
4
+ <div class="form-group">
5
+ <label for="c_plan_year">年份:</label>
6
+ <v-select id="c_plan_year" :value.sync="c_plan_year"
7
+ :options='c_year_list' close-on-select clear-button></v-select>
8
+ <label for="c_plan_month">月份:</label>
9
+ <v-select id="c_plan_month" :value.sync="c_plan_month"
10
+ :options='c_month_list' close-on-select clear-button></v-select>
11
+ <button type="button" class="btn btn-default" @click="search()">查询</button>
12
+ </div>
13
+ <div class="form-group">
14
+ 部门:
15
+ <chooser :userid.sync='f.id' resource-type="organization" :width='200' :select-data.sync='model.chosenOrg'></chooser>
16
+ </div>
17
+ {{model.chosenOrg.fullname}}
18
+ </form>
19
+ <div class="span">
20
+ <data-grid :model="model" partial='list' v-ref:grid>
21
+ <template partial='head'>
22
+ <tr>
23
+ <th>维修员</th>
24
+ <th>已维修</th>
25
+ <th>在维修</th>
26
+ <th>未维修</th>
27
+ </tr>
28
+ </template>
29
+ <template partial='body'>
30
+ <td>{{row.f_repairman}}</td>
31
+ <td>{{row.checked}}</td>
32
+ <td>{{row.checking}}</td>
33
+ <td>{{row.unchecked}}</td>
34
+ </template>
35
+ </data-grid>
36
+ </span>
37
+ <div style="height:50px;"></div>
38
+ </div>
39
+ </template>
40
+
41
+ <script>
42
+ import { PagedList } from 'vue-client'
43
+ import Vue from 'vue'
44
+
45
+ export default {
46
+ title: '维修员月任务',
47
+ props: ['f'],
48
+ data() {
49
+ let options = []
50
+ let year = (new Date()).getFullYear()
51
+ for(let i = year - 8; i <= year +1; i++ )
52
+ options.push({label: i+'', value: i+''})
53
+ let moptions = []
54
+ for(let i=1; i<=12; i++)
55
+ moptions.push({label: i + '', value: i + ''})
56
+ let model = new PagedList('rs/sql/跟踪维修员月任务', 20,
57
+ {id: 'this.id', org_id: 'this.chosenOrg.id', f_plan_year: 'this.f_plan_year', f_subcompany: 'this.f_subcompany',
58
+ f_plan_month: 'this.f_plan_month', f_ym: 'this.f_ym'})
59
+ model.chosenOrg = {id:0}
60
+ return {
61
+ c_plan_year: year + '',
62
+ c_year_list: options,
63
+ c_month_list: moptions,
64
+ c_plan_month: moptions[new Date().getMonth()].value,
65
+ model: model
66
+ }
67
+ },
68
+ ready () {
69
+ this.model.id = this.f.id
70
+ this.model.chosenOrg.id = this.f.parent.id
71
+ this.model.f_plan_year = this.c_plan_year[0]
72
+ this.model.f_plan_month = this.c_plan_month[0]
73
+ this.model.f_subcompany = Vue.f_subcompany
74
+ this.model.f_ym = this.c_plan_year[0] + '-' + (this.c_plan_month[0].length > 1 ? this.c_plan_month[0] : '0' + this.c_plan_month[0])
75
+ this.$watch('c_plan_year', function (val) {
76
+ this.model.f_plan_year = val[0]
77
+ this.model.f_ym = val[0] + '-' + (this.c_plan_month[0].length > 1 ? this.c_plan_month[0] : '0' + this.c_plan_month[0])
78
+ })
79
+ this.$watch('c_plan_month', function (val) {
80
+ this.model.f_plan_month = val[0]
81
+ this.model.f_ym = this.c_plan_year[0] + '-' + (val[0].length > 1 ? val[0] : '0' + val[0])
82
+ })
83
+ },
84
+ methods: {
85
+ search () {
86
+ this.model.rows = []
87
+ this.model.search()
88
+ }
89
+ }
90
+ }
91
+ </script>