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,77 +1,77 @@
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
- </tr>
25
- </template>
26
- <template partial='body'>
27
- <td>{{row.f_checker}}</td>
28
- <td>{{row.task}}</td>
29
- <td>{{row.accomplished}}</td>
30
- <td v-on:click.stop.prevent='$parent.$parent.showDetail(row)'><span class="glyphicon glyphicon-option-horizontal"></span></td>
31
- </template>
32
- </data-grid>
33
- </div>
34
- <div style="height:50px;"></div>
35
- </div>
36
- </template>
37
-
38
- <script>
39
- import { PagedList } from 'vue-client'
40
- import Vue from 'vue'
41
-
42
- export default {
43
- title: '安检员年任务',
44
- props: ['f'],
45
- data() {
46
- let options = []
47
- let year = (new Date()).getFullYear()
48
- for(let i = year - 8; i <= year +1; i++ )
49
- options.push({label: i+'', value: i+''})
50
- 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'})
51
- model.chosenOrg = {id:0}
52
- return {
53
- c_plan_year: year + '',
54
- c_year_list: options,
55
- model: model
56
- }
57
- },
58
- ready () {
59
- this.model.id = this.f.id
60
- this.model.chosenOrg.id = this.f.parent.id
61
- this.model.f_plan_year = this.c_plan_year[0]
62
- this.model.f_subcompany = Vue.f_subcompany
63
- this.$watch('c_plan_year', function (val) {
64
- this.model.f_plan_year = val[0]
65
- })
66
- },
67
- methods: {
68
- showDetail (row) {
69
- this.$goto('task-annual-detail', {f_plan_year: this.model.f_plan_year, f_checker: row.f_checker, f_subcompany: this.model.f_subcompany}, 'self')
70
- },
71
- search () {
72
- this.model.rows = []
73
- this.model.search()
74
- }
75
- }
76
- }
77
- </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
+ </tr>
25
+ </template>
26
+ <template partial='body'>
27
+ <td>{{row.f_checker}}</td>
28
+ <td>{{row.task}}</td>
29
+ <td>{{row.accomplished}}</td>
30
+ <td v-on:click.stop.prevent='$parent.$parent.showDetail(row)'><span class="glyphicon glyphicon-option-horizontal"></span></td>
31
+ </template>
32
+ </data-grid>
33
+ </div>
34
+ <div style="height:50px;"></div>
35
+ </div>
36
+ </template>
37
+
38
+ <script>
39
+ import { PagedList } from 'vue-client'
40
+ import Vue from 'vue'
41
+
42
+ export default {
43
+ title: '安检员年任务',
44
+ props: ['f'],
45
+ data() {
46
+ let options = []
47
+ let year = (new Date()).getFullYear()
48
+ for(let i = year - 8; i <= year +1; i++ )
49
+ options.push({label: i+'', value: i+''})
50
+ 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'})
51
+ model.chosenOrg = {id:0}
52
+ return {
53
+ c_plan_year: year + '',
54
+ c_year_list: options,
55
+ model: model
56
+ }
57
+ },
58
+ ready () {
59
+ this.model.id = this.f.id
60
+ this.model.chosenOrg.id = this.f.parent.id
61
+ this.model.f_plan_year = this.c_plan_year[0]
62
+ this.model.f_subcompany = Vue.f_subcompany
63
+ this.$watch('c_plan_year', function (val) {
64
+ this.model.f_plan_year = val[0]
65
+ })
66
+ },
67
+ methods: {
68
+ showDetail (row) {
69
+ this.$goto('task-annual-detail', {f_plan_year: this.model.f_plan_year, f_checker: row.f_checker, f_subcompany: this.model.f_subcompany}, 'self')
70
+ },
71
+ search () {
72
+ this.model.rows = []
73
+ this.model.search()
74
+ }
75
+ }
76
+ }
77
+ </script>
@@ -1,47 +1,47 @@
1
- <template>
2
- <div class="flex">
3
- <div class="form-group auto">
4
- <label>{{f_checker}}{{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
- </tr>
16
- </template>
17
- <template partial='body'>
18
- <td>{{row.f_plan_year}}</td>
19
- <td>{{row.f_plan_month}}</td>
20
- <td>{{row.task}}</td>
21
- <td>{{row.accomplished}}</td>
22
- </template>
23
- </data-grid>
24
- </div>
25
- <div style="height:50px;"></div>
26
- </div>
27
- </template>
28
-
29
- <script>
30
- import { PagedList } from 'vue-client'
31
-
32
- export default {
33
- title: '安检员年任务明细',
34
- props: ['f_checker', 'f_plan_year', 'f_subcompany'],
35
- data() {
36
- return {
37
- model: new PagedList('rs/sql/跟踪安检员年任务明细', 20, {f_checker: 'this.f_checker', f_plan_year: 'this.f_plan_year', f_subcompany: 'this.f_subcompany'})
38
- }
39
- },
40
- ready () {
41
- this.model.f_checker = this.f_checker
42
- this.model.f_plan_year = this.f_plan_year
43
- this.model.f_subcompany = this.f_subcompany
44
- this.model.search()
45
- }
46
- }
47
- </script>
1
+ <template>
2
+ <div class="flex">
3
+ <div class="form-group auto">
4
+ <label>{{f_checker}}{{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
+ </tr>
16
+ </template>
17
+ <template partial='body'>
18
+ <td>{{row.f_plan_year}}</td>
19
+ <td>{{row.f_plan_month}}</td>
20
+ <td>{{row.task}}</td>
21
+ <td>{{row.accomplished}}</td>
22
+ </template>
23
+ </data-grid>
24
+ </div>
25
+ <div style="height:50px;"></div>
26
+ </div>
27
+ </template>
28
+
29
+ <script>
30
+ import { PagedList } from 'vue-client'
31
+
32
+ export default {
33
+ title: '安检员年任务明细',
34
+ props: ['f_checker', 'f_plan_year', 'f_subcompany'],
35
+ data() {
36
+ return {
37
+ model: new PagedList('rs/sql/跟踪安检员年任务明细', 20, {f_checker: 'this.f_checker', f_plan_year: 'this.f_plan_year', f_subcompany: 'this.f_subcompany'})
38
+ }
39
+ },
40
+ ready () {
41
+ this.model.f_checker = this.f_checker
42
+ this.model.f_plan_year = this.f_plan_year
43
+ this.model.f_subcompany = this.f_subcompany
44
+ this.model.search()
45
+ }
46
+ }
47
+ </script>
@@ -1,89 +1,89 @@
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
- </tr>
27
- </template>
28
- <template partial='body'>
29
- <td>{{row.f_checker}}</td>
30
- <td>{{row.task}}</td>
31
- <td>{{row.accomplished}}</td>
32
- </template>
33
- </data-grid>
34
- </span>
35
- <div style="height:50px;"></div>
36
- </div>
37
- </template>
38
-
39
- <script>
40
- import { PagedList } from 'vue-client'
41
- import Vue from 'vue'
42
-
43
- export default {
44
- title: '安检员月任务',
45
- props: ['f'],
46
- data() {
47
- let options = []
48
- let year = (new Date()).getFullYear()
49
- for(let i = year - 8; i <= year +1; i++ )
50
- options.push({label: i+'', value: i+''})
51
- let moptions = []
52
- for(let i=1; i<=12; i++)
53
- moptions.push({label: i + '', value: i + ''})
54
- let model = new PagedList('rs/sql/跟踪安检员月任务', 20,
55
- {id: 'this.id', org_id: 'this.chosenOrg.id', f_plan_year: 'this.f_plan_year', f_subcompany: 'this.f_subcompany',
56
- f_plan_month: 'this.f_plan_month', f_ym: 'this.f_ym'})
57
- model.chosenOrg = {id:0}
58
- return {
59
- c_plan_year: year + '',
60
- c_year_list: options,
61
- c_month_list: moptions,
62
- c_plan_month: moptions[new Date().getMonth()].value,
63
- model: model
64
- }
65
- },
66
- ready () {
67
- this.model.id = this.f.id
68
- this.model.chosenOrg.id = this.f.parent.id
69
- this.model.f_plan_year = this.c_plan_year[0]
70
- this.model.f_plan_month = this.c_plan_month[0]
71
- this.model.f_subcompany = Vue.f_subcompany
72
- 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])
73
- this.$watch('c_plan_year', function (val) {
74
- this.model.f_plan_year = val[0]
75
- this.model.f_ym = val[0] + '-' + (this.c_plan_month[0].length > 1 ? this.c_plan_month[0] : '0' + this.c_plan_month[0])
76
- })
77
- this.$watch('c_plan_month', function (val) {
78
- this.model.f_plan_month = val[0]
79
- this.model.f_ym = this.c_plan_year[0] + '-' + (val[0].length > 1 ? val[0] : '0' + val[0])
80
- })
81
- },
82
- methods: {
83
- search () {
84
- this.model.rows = []
85
- this.model.search()
86
- }
87
- }
88
- }
89
- </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
+ </tr>
27
+ </template>
28
+ <template partial='body'>
29
+ <td>{{row.f_checker}}</td>
30
+ <td>{{row.task}}</td>
31
+ <td>{{row.accomplished}}</td>
32
+ </template>
33
+ </data-grid>
34
+ </span>
35
+ <div style="height:50px;"></div>
36
+ </div>
37
+ </template>
38
+
39
+ <script>
40
+ import { PagedList } from 'vue-client'
41
+ import Vue from 'vue'
42
+
43
+ export default {
44
+ title: '安检员月任务',
45
+ props: ['f'],
46
+ data() {
47
+ let options = []
48
+ let year = (new Date()).getFullYear()
49
+ for(let i = year - 8; i <= year +1; i++ )
50
+ options.push({label: i+'', value: i+''})
51
+ let moptions = []
52
+ for(let i=1; i<=12; i++)
53
+ moptions.push({label: i + '', value: i + ''})
54
+ let model = new PagedList('rs/sql/跟踪安检员月任务', 20,
55
+ {id: 'this.id', org_id: 'this.chosenOrg.id', f_plan_year: 'this.f_plan_year', f_subcompany: 'this.f_subcompany',
56
+ f_plan_month: 'this.f_plan_month', f_ym: 'this.f_ym'})
57
+ model.chosenOrg = {id:0}
58
+ return {
59
+ c_plan_year: year + '',
60
+ c_year_list: options,
61
+ c_month_list: moptions,
62
+ c_plan_month: moptions[new Date().getMonth()].value,
63
+ model: model
64
+ }
65
+ },
66
+ ready () {
67
+ this.model.id = this.f.id
68
+ this.model.chosenOrg.id = this.f.parent.id
69
+ this.model.f_plan_year = this.c_plan_year[0]
70
+ this.model.f_plan_month = this.c_plan_month[0]
71
+ this.model.f_subcompany = Vue.f_subcompany
72
+ 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])
73
+ this.$watch('c_plan_year', function (val) {
74
+ this.model.f_plan_year = val[0]
75
+ this.model.f_ym = val[0] + '-' + (this.c_plan_month[0].length > 1 ? this.c_plan_month[0] : '0' + this.c_plan_month[0])
76
+ })
77
+ this.$watch('c_plan_month', function (val) {
78
+ this.model.f_plan_month = val[0]
79
+ this.model.f_ym = this.c_plan_year[0] + '-' + (val[0].length > 1 ? val[0] : '0' + val[0])
80
+ })
81
+ },
82
+ methods: {
83
+ search () {
84
+ this.model.rows = []
85
+ this.model.search()
86
+ }
87
+ }
88
+ }
89
+ </script>