safecheck-client 3.0.34-7 → 3.0.34-70

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. package/package.json +1 -1
  2. package/src/App-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.vue +55 -0
  3. package/src/App.vue +31 -31
  4. package/src/assets/123.png +0 -0
  5. package/src/assets/f8632d3c8c4c1cb68e99da754cab1a7.png +0 -0
  6. package/src/components/LoadData.vue +62 -0
  7. package/src/components/NewDefectList/DefectListNew.vue +1 -0
  8. package/src/components/android/AndroidDefectDeal.vue +1 -0
  9. package/src/components/android/AndroidDefectDealBeforeSafe.vue +502 -0
  10. package/src/components/android/AreaSelect.vue +198 -0
  11. package/src/components/android/BuildingSelect.vue +192 -0
  12. package/src/components/android/CheckPlanSelect.vue +229 -0
  13. package/src/components/android/PaperFeedback.vue +1514 -1481
  14. package/src/components/android/PaperFeedbackTemp.vue +1470 -1470
  15. package/src/components/android/QRCode/QRCodeBinding.vue +300 -0
  16. package/src/components/android/QRCode/QRCodePage.vue +212 -0
  17. package/src/components/android/SafePlanItem.vue +509 -509
  18. package/src/components/android/SafecheckDevices.vue +1298 -1298
  19. package/src/components/android/SafecheckDevicesTemp.vue +1333 -1333
  20. package/src/components/android/SafecheckOrderV.vue +8 -12
  21. package/src/components/android/UserinfoSelect.vue +702 -0
  22. package/src/components/android/examples/SafeListExamples.vue +96 -0
  23. package/src/components/android/examples/UserExamples.vue +130 -0
  24. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  25. package/src/components/rongcheng/AddPlanItem.vue +4 -0
  26. package/src/components/rongcheng/AspiratedUserInfo.vue +1 -1
  27. package/src/components/rongcheng/CheckSearchUser.vue +40 -14
  28. package/src/components/rongcheng/PaperStatem.vue +6 -1
  29. package/src/components/rongcheng/PhoneDevicesInfo.vue +16 -1
  30. package/src/components/rongcheng/PhoneUpUserinfo.vue +0 -92
  31. package/src/components/rongcheng/SafecheckOrderV.vue +12 -3
  32. package/src/components/rongcheng/SafecheckOrderVCli.vue +9 -0
  33. package/src/components/safecheckNew/android/SafecheckOrderV.vue +2731 -2731
  34. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +4 -4
  35. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -0
  36. package/src/filiale/baiyin/android.js +1 -0
  37. package/src/filiale/baiyin/pc/CheckSearchUser.vue +2 -2
  38. package/src/filiale/baiyin/pc/DefectListNew.vue +3 -3
  39. package/src/filiale/baiyin/pc/PaperList.vue +7 -7
  40. package/src/filiale/bayan/android/PaperFeedback.vue +1651 -1651
  41. package/src/filiale/bayan/android/SafecheckDevices.vue +1303 -1303
  42. package/src/filiale/bayan/android/SafecheckOrderV.vue +52 -29
  43. package/src/filiale/bayan/android/SafecheckUserInfo.vue +863 -863
  44. package/src/filiale/bayan/pc/PaperList.vue +1 -0
  45. package/src/filiale/dexin/android/SafecheckDevices.vue +1305 -1305
  46. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -15
  47. package/src/filiale/hanzhong/android/PaperFeedback.vue +1477 -1477
  48. package/src/filiale/hanzhong/android/SafecheckDevices.vue +1313 -1313
  49. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  50. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -0
  51. package/src/filiale/huaran/android.js +12 -0
  52. package/src/filiale/huaran/pc/CheckBook.vue +313 -0
  53. package/src/filiale/huaran/pc/CheckBookAll.vue +69 -0
  54. package/src/filiale/huaran/pc/CheckBookArea.vue +170 -0
  55. package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -0
  56. package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -0
  57. package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -0
  58. package/src/filiale/huaran/pc/CheckBookList.vue +386 -0
  59. package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -0
  60. package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -0
  61. package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -0
  62. package/src/filiale/huaran/pc/CheckBookUser.vue +112 -0
  63. package/src/filiale/huaran/pc/PaperList.vue +822 -0
  64. package/src/filiale/huaran/pc/PlanManage.vue +887 -0
  65. package/src/filiale/huaran/pc/checkPlanList.vue +419 -0
  66. package/src/filiale/huaran/pc/checkUserList.vue +867 -0
  67. package/src/filiale/huaran/pc.js +27 -0
  68. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -0
  69. package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -0
  70. package/src/filiale/jiaxian/android/SafecheckDevices.vue +1298 -1298
  71. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -0
  72. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -0
  73. package/src/filiale/jiaxian/android.js +4 -0
  74. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  75. package/src/filiale/jingyang/android/CurrentCreate.vue +1080 -1080
  76. package/src/filiale/jingyang/android/PaperFeedback.vue +1493 -1493
  77. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  78. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  79. package/src/filiale/jingyang/android.js +15 -15
  80. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +15 -7
  81. package/src/filiale/pingxiang/android/PaperFeedback.vue +1399 -1399
  82. package/src/filiale/qingjian/android/SafecheckDevices.vue +1269 -1269
  83. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  84. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -0
  85. package/src/filiale/qingtongxia/android/CurrentCreate.vue +1053 -0
  86. package/src/filiale/qingtongxia/android/PhoneUpUserinfo.vue +1230 -0
  87. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -0
  88. package/src/filiale/qingtongxia/android.js +14 -10
  89. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  90. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -0
  91. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -0
  92. package/src/filiale/ruihua/android.js +11 -0
  93. package/src/filiale/shanxian/pc/checkUserList.vue +4 -4
  94. package/src/filiale/shiquan/android/SafecheckDevices.vue +1269 -1269
  95. package/src/filiale/siyang/android/AddPlanItem.vue +446 -0
  96. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  97. package/src/filiale/siyang/android.js +1 -0
  98. package/src/filiale/siyang/pc/CheckBookSearchArea.vue +645 -0
  99. package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -0
  100. package/src/filiale/siyang/pc/CheckSearchUser.vue +982 -0
  101. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -0
  102. package/src/filiale/siyang/pc/NewCheckpaper.vue +1938 -1938
  103. package/src/filiale/siyang/pc/checkPlanList.vue +367 -0
  104. package/src/filiale/siyang/pc/checkUserList.vue +790 -786
  105. package/src/filiale/siyang/pc.js +21 -16
  106. package/src/filiale/tongchuan/android/Select.vue +421 -0
  107. package/src/filiale/tongchuan/android.js +1 -0
  108. package/src/filiale/tongchuan/pc/CheckPlanCountChartArea.vue +3 -1
  109. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +6 -2
  110. package/src/filiale/tongchuan/pc/HiddenSituation.vue +3 -1
  111. package/src/filiale/tongchuan/pc/NewCheckpaper.vue +13 -22
  112. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1 -1
  113. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +5 -2
  114. package/src/filiale/tongchuan/utils/EventListener.js +29 -0
  115. package/src/filiale/tongchuan/utils/coerceBoolean.js +7 -0
  116. package/src/filiale/weinan/android/SafecheckDevices.vue +1295 -1295
  117. package/src/filiale/weinan/android/SafecheckOrderV.vue +1 -1
  118. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +75 -62
  119. package/src/filiale/weinan/pc/CheckDetail.vue +11 -11
  120. package/src/filiale/weinan/pc/DefectPaperNew.vue +31 -0
  121. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -0
  122. package/src/filiale/weinan/pc/checkUserList.vue +49 -113
  123. package/src/filiale/weinan/pc.js +1 -0
  124. package/src/filiale/wuan/android/SafecheckOrderV.vue +1 -0
  125. package/src/filiale/wuan/android/SafecheckUserInfo.vue +4 -0
  126. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1731 -1731
  127. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +1332 -1332
  128. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  129. package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +13 -11
  130. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +269 -269
  131. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +96 -30
  132. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +10 -10
  133. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1128 -1128
  134. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +972 -972
  135. package/src/filiale/yangchunboneng/pc/PaperList.vue +773 -773
  136. package/src/filiale/yongzhou/android/PaperFeedback.vue +1519 -1519
  137. package/src/filiale/yongzhou/android/SafecheckDevices.vue +1294 -1294
  138. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  139. package/src/filiale/yuansheng/android/SafecheckDevices.vue +11 -1
  140. package/src/filiale/yuansheng/android/SwitchValve.vue +322 -322
  141. package/src/filiale/yuansheng/android.js +17 -17
  142. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +10 -2
  143. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1508 -1508
  144. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1270 -1270
  145. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +784 -784
  146. package/src/main-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.js +24 -0
  147. package/src/main.js +33 -33
  148. package/src/safecheck-android.js +9 -0
  149. package/src/safecheck-page.js +10 -0
@@ -0,0 +1,166 @@
1
+ <template>
2
+ <div class="auto select-overspread">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="form-group col-sm-3">
8
+ <label class="font_normal_body">单位名称</label>
9
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_residential_area"
10
+ placeholder='单位名称'
11
+ condition="f_company_name like '%{}%'" @keyup.enter="search()">
12
+ </div>
13
+ <div class="form-group col-sm-2 button-range">
14
+ <button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
15
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.send()" v-el:cba>下发
16
+ </button>
17
+ </div>
18
+ </div>
19
+ </div>
20
+ </criteria>
21
+ <data-grid :model="model" class="table_sy" partial='list' v-ref:grid>
22
+ <template partial='head'>
23
+ <tr>
24
+ <th>
25
+ <nobr><input type="checkbox" onClick="event.cancelBubble = true"
26
+ :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/>全选
27
+ </nobr>
28
+ </th>
29
+ <th>
30
+ <nobr>省市区/县</nobr>
31
+ </th>
32
+ <th>
33
+ <nobr>街道/乡镇</nobr>
34
+ </th>
35
+ <th>
36
+ <nobr>单位名称</nobr>
37
+ </th>
38
+ <th>
39
+ <nobr>用户数量</nobr>
40
+ </th>
41
+ <th>
42
+ <nobr>详细地址</nobr>
43
+ </th>
44
+ </tr>
45
+ </template>
46
+ <template partial='body'>
47
+ <tr>
48
+ <td style="text-align: center;"><input type="checkbox" onClick="event.cancelBubble = true"
49
+ :checked="$parent.$parent.$parent.isChecked(row.id)"
50
+ @change="$parent.$parent.$parent.setCheckes(row.id)"/></td>
51
+ <td style="text-align:center">{{ row.f_rea }}</td>
52
+ <td style="text-align:center">{{ row.f_company_street }}</td>
53
+ <td style="text-align:center">{{ row.f_company_name }}</td>
54
+ <td style="text-align:center">
55
+ <button @click.stop="$parent.$parent.$parent.details(row)" class="btn btn-link">
56
+ <b>{{ row.num ? row.num : 0 }}</b></button>
57
+ </td>
58
+ <td style="text-align:center">{{ row.f_company_position }}</td>
59
+ </tr>
60
+ </template>
61
+ <template partial='foot'></template>
62
+ </data-grid>
63
+ </criteria-paged>
64
+ <modal :show.sync="showSendModal" :backdrop="false" width="90%" height="90%">
65
+ <article slot="modal-body" class="modal-body" style="height: 80vh">
66
+ <check-book-search-user-list v-if="showSendModal" :row="row" :addcondata="addcondata"
67
+ :bookrowsdata="{bookrows:checkes,checkAll:checkAll}" :needprops="needprops"
68
+ :userlogin="userlogin"></check-book-search-user-list>
69
+ </article>
70
+ <footer slot="modal-footer">
71
+ </footer>
72
+
73
+ </modal>
74
+ </div>
75
+ </template>
76
+
77
+ <script>
78
+ import {HttpResetClass, PagedList} from 'vue-client'
79
+
80
+ export default {
81
+ title: '非民用安检册单位',
82
+ props: ['row', 'needprops'],
83
+ data() {
84
+ return {
85
+ rowdata: this.row,
86
+ showSendModal: false,
87
+ checkBookRow: {},
88
+ userlogin: {
89
+ id: this.$login.f.id,
90
+ name: this.$login.f.name,
91
+ orgid: this.$login.f.orgid,
92
+ orgstr: this.$login.f.orgs,
93
+ },
94
+ model: new PagedList('rs/sql/getCheckBookCompany', 50),
95
+ checkAll: false,
96
+ checkes: [],
97
+ addcondata: '',
98
+ }
99
+ },
100
+ ready() {
101
+ console.log(this.row)
102
+ const val = this.row
103
+ if (val) {
104
+ this.checkAll = false
105
+ this.checkes = []
106
+ this.rowdata = val
107
+ const condition = `f_check_book_id =${val.id}`
108
+ this.model.search(condition)
109
+ }
110
+ },
111
+ watch: {
112
+ 'row'(val) {
113
+ if (val) {
114
+ this.checkAll = false
115
+ this.checkes = []
116
+ this.rowdata = val
117
+ const condition = `f_check_book_id =${val.id}`
118
+ this.model.search(condition)
119
+ }
120
+ }
121
+ },
122
+ methods: {
123
+ setCheckAll() {
124
+ this.checkAll = this.checkAll ? false : true;
125
+ // 全选改变后,清空选中数据
126
+ this.checkes = []
127
+ },
128
+ isChecked(v) {
129
+ // 如果全选,不在的按选中算,否则,在的按选中算
130
+ if (this.checkAll) {
131
+ return this.checkes.indexOf(v) == -1
132
+ } else {
133
+ return this.checkes.indexOf(v) != -1
134
+ }
135
+ },
136
+ setCheckes(id) {
137
+ let index = this.checkes.indexOf(id)
138
+ if (index < 0) {
139
+ this.checkes.push(id)
140
+ } else {
141
+ this.checkes.splice(index, 1)
142
+ }
143
+ },
144
+ send() {
145
+ if (!this.checkAll && this.checkes.length == 0) {
146
+ return this.$showMessage('请选择单位')
147
+ }
148
+ this.showSendModal = true
149
+ },
150
+ details(row) {
151
+ this.$emit('showuser', row)
152
+ },
153
+ selfSearch(args) {
154
+ if (this.rowdata.id) {
155
+ this.checkAll = false
156
+ this.checkes = []
157
+ args.condition += `and f_check_book_id =${this.rowdata.id}`
158
+ this.model.search(args.condition)
159
+ this.addcondata = args.model.f_residential_area ? ` and tc.f_company_name like '%${args.model.f_residential_area}%'` : ''
160
+ } else {
161
+ this.$showMessage('请选择安检册')
162
+ }
163
+ }
164
+ }
165
+ }
166
+ </script>
@@ -0,0 +1,196 @@
1
+ <template>
2
+ <div class="auto select-overspread">
3
+ <validator name='v'>
4
+ <form class="form-horizontal" novalidate>
5
+ <ul class="nav nav-tabs" style="margin-bottom: 10px">
6
+ <li class="active"><a href="#">安检册信息</a></li>
7
+ </ul>
8
+ <div class="row" style="margin-top: 10px">
9
+ <div class="col-sm-12 form-group" style="margin: 0">
10
+ <role-selector-safe
11
+ @alluser="getUsers"
12
+ @re-res="getRes"
13
+ role-name="安检员"
14
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
15
+ :value.sync="checkBook.f_checker_name"
16
+ v-model="checkBook.f_checker_name">
17
+ </role-selector-safe>
18
+ </div>
19
+ <!-- <div class="form-group col-sm-6" style="margin-top: 20px" :class="[$v.f_check_book_type.required ? 'has-error' : '']">-->
20
+ <!-- <label class="font_normal_body">表册类型</label>-->
21
+ <!-- <input type="text" v-show="false" v-model="checkBook.f_check_book_type"-->
22
+ <!-- :value.sync="checkBook.f_check_book_type"-->
23
+ <!-- v-validate:f_check_book_type='{required: true }'>-->
24
+ <!-- <v-select :value.sync="checkBook.f_check_book_type" v-model='checkBook.f_check_book_type'-->
25
+ <!-- :value-single="true" style="width: 60%"-->
26
+ <!-- class="select_list select"-->
27
+ <!-- :options='bookTypes' placeholder=''-->
28
+ <!-- close-on-select></v-select>-->
29
+ <!-- </div>-->
30
+ <div class="form-group col-sm-6" style="margin-top: 20px"
31
+ :class="[$v.f_user_type.required ? 'has-error' : '']">
32
+ <label class="font_normal_body">用户类型</label>
33
+ <input type="text" v-show="false" v-model="checkBook.f_user_type"
34
+ v-validate:f_user_type='{required: true }'>
35
+ <v-select :value.sync="checkBook.f_user_type" v-model='checkBook.f_user_type'
36
+ :value-single="true" style="width: 60%"
37
+ class="select_list select"
38
+ :options='userTypes' placeholder=''
39
+ close-on-select></v-select>
40
+ </div>
41
+ <div class="form-group col-sm-6" style="margin-top: 20px"
42
+ :class="[$v.f_check_book_name.required ? 'has-error' : '']">
43
+ <label class="font_normal_body">安检册名称</label>
44
+ <input type="text" class="input_search" v-model="checkBook.f_check_book_name"
45
+ style="width: 60%" v-validate:f_check_book_name='{ required: true }'>
46
+ </div>
47
+ <div class="form-group col-sm-6" style="margin-top: 20px">
48
+ <label class="font_normal_body">执行日期</label>
49
+ <datepicker
50
+ :value.sync="checkBook.f_run_date"
51
+ style="width: 60%"
52
+ :format="'yyyy-MM-dd'"
53
+ v-model="checkBook.f_run_date"
54
+ >
55
+ </datepicker>
56
+ </div>
57
+ <div class="form-group col-sm-6" style="margin-top: 20px">
58
+ <label class="font_normal_body">执行周期</label>
59
+ <input type="number" class="input_search" v-model="checkBook.f_around_time"
60
+ style="width: 60%">
61
+ </div>
62
+ <div class="form-group col-sm-6" style="margin-top: 20px">
63
+ <label class="font_normal_body">周期单位</label>
64
+ <v-select :value.sync="checkBook.f_around_unit" v-model='checkBook.f_around_unit'
65
+ :value-single="true" style="width: 60%"
66
+ class="select_list select"
67
+ :options='aroundUnit' placeholder=''
68
+ close-on-select></v-select>
69
+ </div>
70
+
71
+
72
+ <!-- <div class="form-group col-sm-6" style="margin-top: 20px">-->
73
+ <!-- <label class="font_normal_body">自动下发</label>-->
74
+ <!-- <v-select :value.sync="checkBook.f_is_auto" v-model='checkBook.f_is_auto'-->
75
+ <!-- :value-single="true" style="width: 60%"-->
76
+ <!-- class="select_list select"-->
77
+ <!-- :options='autos' placeholder=''-->
78
+ <!-- close-on-select></v-select>-->
79
+ <!-- </div>-->
80
+ </div>
81
+ </form>
82
+ <div style="text-align:right;height:auto;margin-top:6px;margin-right: 10%">
83
+ <button @click="confirm()" class="button_search">确认</button>
84
+ <!-- <button @click="deleteBook()" class="button_delete">删除</button>-->
85
+ <button @click="close()" class="button_clear">取消</button>
86
+ </div>
87
+ </validator>
88
+ </div>
89
+ </template>
90
+ <script>
91
+ import * as Util from "../../../components/Util";
92
+ import bus from "../../../bus";
93
+ import {HttpResetClass} from 'vue-client'
94
+
95
+ export default {
96
+ data() {
97
+ return {
98
+ aroundUnit: [{label: '年', value: '年'}, {label: '月', value: '月'}, {label: '日', value: '日'}],
99
+ bookTypes: [{label: '用户', value: '用户'}, {label: '小区', value: '小区'}],
100
+ userTypes: [{label: '民用', value: '民用'}, {label: '非民用', value: '非民用'}],
101
+ autos: [{label: '是', value: '是'}, {label: '否', value: '否'}],
102
+ allUsers: [],
103
+ checkBook: {
104
+ f_check_book_name: '',
105
+ f_run_date: '',
106
+ f_around_time: '',
107
+ f_around_unit: '',
108
+ f_create_date: '',
109
+ f_create_person: '',
110
+ f_user_type: '',
111
+ f_orgid: '',
112
+ f_is_auto: '否',
113
+ f_check_book_type: "小区",
114
+ f_checker_name: '',
115
+ f_checker_id: '',
116
+ }
117
+ }
118
+ },
119
+ props: ['row', 'showtype'],
120
+ watch: {
121
+ 'checkBook.f_checker_name'(val) {
122
+ const user = this.allUsers.filter(item => item.name == val);
123
+ if (user.length > 0) {
124
+ this.checkBook.f_checker_id = user[0]["id"]
125
+ }
126
+ console.log("777", this.checkBook)
127
+ },
128
+ row(row) {
129
+ this.changeCheckBook(row)
130
+ }
131
+ },
132
+ ready() {
133
+ // console.log(this.$login.f.orgid)
134
+ this.changeCheckBook(this.row)
135
+ this.checkBook.f_user_type = this.showtype
136
+ console.log('row', JSON.stringify(this.row))
137
+ },
138
+ methods: {
139
+ changeCheckBook(row) {
140
+ console.log('row改变了', row)
141
+ if (row && row.id) {
142
+ console.log('进入修改赋值')
143
+ this.checkBook = row
144
+ }
145
+ },
146
+ deleteBook() {
147
+ console.log('delete', this.row)
148
+ },
149
+ close() {
150
+ console.log('关闭')
151
+ this.$parent.showItem = false
152
+ },
153
+ confirm() {
154
+ if (!this.checkBook.f_check_book_name) {
155
+ this.$showMessage('请填写安检册名称')
156
+ return
157
+ }
158
+ // if(!this.checkBook.f_check_book_type){
159
+ // this.$showMessage('请选择表册类型')
160
+ // return
161
+ // }
162
+ if (!this.checkBook.f_user_type) {
163
+ this.$showMessage('请选择用户类型')
164
+ return
165
+
166
+ }
167
+ this.checkBook.f_orgid = this.$login.f.orgid
168
+ this.checkBook.f_create_person = this.$login.f.name
169
+ this.checkBook.f_create_date = Util.toStandardDateString()
170
+ console.log('checkbook', this.checkBook)
171
+ let http = new HttpResetClass()
172
+ http.load('POST', 'rs/logic/safeEntity', {data: {tableName: 't_check_book', entityData: this.checkBook}},
173
+ {resolveMsg: '保存安检册信息成功', rejectMsg: '保存安检册信息失败'}).then(res => {
174
+ if (res.data.code === 200) {
175
+ this.$showMessage('保存安检册信息成功', ['confirm']).then(res => {
176
+ if (res === 'confirm') {
177
+ bus.$emit('fresh-main')
178
+ }
179
+ })
180
+ } else {
181
+ this.$showMessage('保存安检册信息失败')
182
+ }
183
+ })
184
+ },
185
+ getRes(obj) {
186
+ if (obj.resids) {
187
+ this.checkBook.f_orgid = obj.resids[0]
188
+ console.log('id', this.checkBook.f_orgid)
189
+ }
190
+ },
191
+ getUsers(obj) {
192
+ this.allUsers = obj
193
+ }
194
+ }
195
+ }
196
+ </script>
@@ -0,0 +1,61 @@
1
+ <template>
2
+ <div id='checkbookEntry' class="flex-row binary">
3
+ <div class="binary-left">
4
+ <tabset v-ref:tabs :close="false" class="nav-tabss">
5
+ <tab header="小区查询">
6
+ <check-book-search-area @book-list="setBookList" @book-all="setBookAll" @book-condition="setCondition"></check-book-search-area>
7
+ </tab>
8
+ <!-- <tab header="单位查询">-->
9
+ <!-- <check-book-search-unit @book-list="setBookList" @book-all="setBookAll" @book-condition="setCondition"></check-book-search-unit>-->
10
+ <!-- </tab>-->
11
+ <tab header="用户查询">
12
+ <check-book-search-user @book-list="setBookList" @book-all="setBookAll" @book-condition="setCondition"></check-book-search-user>
13
+ </tab>
14
+ </tabset>
15
+ </div>
16
+ <div class="binary-right">
17
+ <add-to-check-book @book-list="setBookList" @book-all="setBookAll" @book-condition="setCondition"></add-to-check-book>
18
+ </div>
19
+ </div>
20
+ </template>
21
+
22
+ <script>
23
+
24
+ export default {
25
+ name: 'checkBookEntry',
26
+ title: '添加用户到安检册',
27
+ data () {
28
+ return {
29
+ bookList: [],
30
+ bookCondition:"",
31
+ bookAll: false
32
+ }
33
+ },
34
+ created () {
35
+ },
36
+ ready () {
37
+ },
38
+ methods: {
39
+ setBookList(val){
40
+ console.log("555555")
41
+ // console.log("66666",val)
42
+ this.bookList = val
43
+ },
44
+ setBookAll(val){
45
+ this.bookAll = val
46
+ },
47
+ setCondition(val){
48
+ this.bookCondition = val
49
+ },
50
+ },
51
+ events: {
52
+
53
+ }
54
+ }
55
+ </script>
56
+
57
+ <style lang="less">
58
+ #checkbookEntry {
59
+ height: 700px;
60
+ }
61
+ </style>