safecheck-client 3.0.35-6 → 3.0.35-61

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +31 -31
  3. package/src/components/NewDefectList/DefectPaperNew.vue +3 -3
  4. package/src/components/Util/SafecheckUpload.vue +4 -0
  5. package/src/components/android/AddPlanItemYy.vue +451 -451
  6. package/src/components/android/CheckPlanDown.vue +1 -1
  7. package/src/components/android/CivilCurrentCreate.vue +56 -41
  8. package/src/components/android/Insurance/PhoneInsurancePurchaseDetail.vue +7 -9
  9. package/src/components/android/NoCivilCurrentCreate.vue +10 -0
  10. package/src/components/android/PaperFeedback.vue +1 -1
  11. package/src/components/android/PhoneSellInfo.vue +100 -65
  12. package/src/components/android/PhoneUpUserinfo.vue +25 -6
  13. package/src/components/android/PhoneotherInfo.vue +0 -14
  14. package/src/components/android/PhoneotherInfov3.vue +118 -0
  15. package/src/components/android/SafecheckDevices.vue +2 -2
  16. package/src/components/android/SafecheckOrderV.vue +2 -529
  17. package/src/components/android/examples/SafeListExamples.vue +296 -296
  18. package/src/components/pc/AddPlanItemYyChange.vue +743 -0
  19. package/src/components/pc/NewCheckpaper.vue +58 -3
  20. package/src/components/pc/SecurityCheckLedger.vue +143 -0
  21. package/src/components/pc/SecurityCheckList.vue +160 -0
  22. package/src/components/pc/SecurityCheckManage.vue +113 -0
  23. package/src/components/pc/SecurityCheckUser.vue +440 -0
  24. package/src/components/planmanage/PlanManage.vue +47 -1
  25. package/src/components/report/CheckPlanAreaList.vue +25 -5
  26. package/src/components/rongcheng/AddPlanItem.vue +1 -1
  27. package/src/components/rongcheng/AspiratedAreaPlan.vue +575 -574
  28. package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +4 -0
  29. package/src/components/rongcheng/AspiratedUserInfo.vue +12 -4
  30. package/src/components/rongcheng/CheckSearchUser.vue +1 -1
  31. package/src/components/rongcheng/PhoneUpUserinfo.vue +1236 -1236
  32. package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
  33. package/src/components/rongcheng/SafecheckUserInfo.vue +12 -12
  34. package/src/components/userfile/InfoModifyModal.vue +1 -0
  35. package/src/components/userfile/UserInfoAudit.vue +2 -0
  36. package/src/components/userfile/UserinfoModify.vue +6 -0
  37. package/src/filiale/bayan/android/AddPlanItem.vue +450 -430
  38. package/src/filiale/bayan/android/CurrentCreate.vue +10 -0
  39. package/src/filiale/bayan/android/PhoneUpUserinfo.vue +1380 -1380
  40. package/src/filiale/bayan/android/SafecheckOrderV.vue +9 -0
  41. package/src/filiale/bayan/android/SafecheckUserInfo.vue +882 -868
  42. package/src/filiale/bayan/pc/DefectPaperNew.vue +22 -1
  43. package/src/filiale/bayan/pc/SelectCheckPlan.vue +6 -1
  44. package/src/filiale/bayan/pc/usergashistory.vue +149 -0
  45. package/src/filiale/bayan/pc/usergashistorynian.vue +149 -0
  46. package/src/filiale/bayan/pc.js +24 -22
  47. package/src/filiale/dexin/android/SafecheckOrderV.vue +7 -11
  48. package/src/filiale/dexin/pc/DefectListNew.vue +643 -0
  49. package/src/filiale/dexin/pc/DefectMainNew.vue +63 -0
  50. package/src/filiale/dexin/pc/DefectPaperNew.vue +1066 -0
  51. package/src/filiale/dexin/pc.js +1 -0
  52. package/src/filiale/huaran/android/CheckPlanDown.vue +212 -0
  53. package/src/filiale/huaran/android.js +1 -0
  54. package/src/filiale/huaran/pc/PaperList.vue +22 -1
  55. package/src/filiale/huaran/pc/PlanManage.vue +66 -7
  56. package/src/filiale/huaran/pc/checkUserList.vue +55 -22
  57. package/src/filiale/huaran/pc.js +1 -0
  58. package/src/filiale/minsheng/android/PhoneUpUserinfo.vue +21 -1
  59. package/src/filiale/qianneng/android/SwitchValve.vue +1 -0
  60. package/src/filiale/rizhao/pc/NewCheckpaper.vue +10 -5
  61. package/src/filiale/shanxian/android/SafecheckOrderV.vue +1 -1
  62. package/src/filiale/shanxian/pc/SelectCheckPlan.vue +21 -0
  63. package/src/filiale/shanxian/pc/checkUserList.vue +1 -1
  64. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  65. package/src/filiale/siyang/android/PaperFeedback.vue +1514 -0
  66. package/src/filiale/siyang/android.js +1 -0
  67. package/src/filiale/siyang/pc/PlanManage.vue +26 -16
  68. package/src/filiale/siyang/pc/checkUserList.vue +123 -148
  69. package/src/filiale/tianke/pc/DefectListNew.vue +10 -3
  70. package/src/filiale/tongchuan/android/SafecheckOrderV.vue +3 -3
  71. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +5 -13
  72. package/src/filiale/weinan/android/PaperFeedback.vue +34 -8
  73. package/src/filiale/weinan/android/SafecheckOrderV.vue +6 -2
  74. package/src/filiale/weinan/android/SafecheckUserInfo.vue +14 -0
  75. package/src/filiale/weinan/pc/NewCheckpaper.vue +20 -0
  76. package/src/filiale/weinan/pc/PaperList.vue +14 -1
  77. package/src/filiale/xilan/android/CurrentCreate.vue +0 -14
  78. package/src/filiale/xilan/android.js +10 -11
  79. package/src/filiale/xilan/pc/PaperList.vue +795 -0
  80. package/src/filiale/xilan/pc.js +1 -0
  81. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +1 -1
  82. package/src/filiale/zhongsheng/android/SafecheckDevices.vue +4 -4
  83. package/src/filiale/zhongsheng/pc/CheckPlanAreaList.vue +33 -1
  84. package/src/main.js +1 -1
  85. package/src/safecheck-android.js +303 -307
  86. package/src/safecheck.js +15 -0
  87. package/src/filiale/xilan/android/AddPlanItem.vue +0 -461
@@ -4,6 +4,7 @@ import Vue from "vue";
4
4
  //手机特殊目录注册到该文件中
5
5
  let specialComp = {
6
6
  'paper-main': (resolve) => {require(['./pc/PaperList.vue'], resolve)},
7
+ 'defect-main-new2': (resolve) => {require(['./pc/DefectMainNew'], resolve)},
7
8
  }
8
9
  exports.specialComp = specialComp
9
10
 
@@ -0,0 +1,212 @@
1
+ <template>
2
+ <div class="auto">
3
+
4
+ <div class="auto">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
7
+ <div partial>
8
+ <div class="row app-row">
9
+ <div class="col-xs-4">
10
+ <img src="../../../assets/档案信息.png" style="width: 20px;margin-bottom: 5px" alt="">
11
+ <label for="f_plan_name" class="font text-left">计划名称:</label>
12
+ </div>
13
+ <div class="col-xs-8" >
14
+ <input id="f_plan_name" class="search_input input-font"
15
+ v-model="model.f_plan_name" condition="f_plan_name like '%{}%'" />
16
+ </div>
17
+ </div>
18
+ <div class="row text-center" style="margin-top: 20px;">
19
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="search">查询</button>
20
+ </div>
21
+ <!--<div class="row app-btn">-->
22
+ <!--<button class="btn btn-primary col-xs-6" type="button" @click="search"><span class="glyphicon glyphicon-search" style="margin-right: 20px;">查询</span></button>-->
23
+ <!--</div>-->
24
+ <div style="height:30px;"></div>
25
+ </div>
26
+ </criteria>
27
+ <list :model="model" partial='list'>
28
+ <div partial>
29
+ <div class="auto app-text" style="margin-top: 5px;">
30
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
31
+ <div class="panel-body panel-self">
32
+ <div class="row">
33
+ <p class="panel-title col-xs-4 text-left font">计划名称</p>
34
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_name }}</p>
35
+ </div>
36
+ <div class="row">
37
+ <p class="panel-title col-xs-4 text-left font">计划时间</p>
38
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_year }}/{{row.f_plan_month}}</p>
39
+ </div>
40
+ <!--<div class="row">-->
41
+ <!--<p class="panel-title col-xs-4 text-left font">生成人员</p>-->
42
+ <!--<p class="panel-title col-xs-8 text-left input-font">{{ row.f_create_operator }}/{{row.f_plan_month}}</p>-->
43
+ <!--</div>-->
44
+ <!--<div class="row">-->
45
+ <!--<p class="panel-title col-xs-4 text-left font">下发人员</p>-->
46
+ <!--<p class="panel-title col-xs-8 text-left input-font">{{ row.f_send_operator }}/{{row.f_plan_month}}</p>-->
47
+ <!--</div>-->
48
+ <div class="row text-right" >
49
+ <button type="button" class="btn yybtn-color" v-on:click.stop.prevent='$parent.$parent.$parent.downloadHand(row)' v-if="$parent.$parent.$parent.isDown(row)">下载</button>&nbsp;
50
+ </div>
51
+ </div>
52
+ </div>
53
+
54
+ </div>
55
+ </div>
56
+ </list>
57
+ </criteria-paged>
58
+ </div>
59
+ <!--<div class="row text-center" style="margin-top: 20px;">-->
60
+ <!--<button type="' 正在进行共享计划下载,请确认!' btn-lg btn-font btn-color" style="width: 45%;" @click="downHand()">共享计划下载</button>-->
61
+ <!--&lt;!&ndash;<button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="database()">数据库导出</button>&ndash;&gt;-->
62
+ <!--</div>-->
63
+ <!-- <div class="auto" style="padding-top: 20px;" v-if='show'>
64
+ <p class="text-warning" style="padding: 0 10px">正在下载抄表单...</p>
65
+ </div> -->
66
+ <!-- <hand-info v-if="show" :data="handinfo"></hand-info> -->
67
+ <!-- <div class="auto" v-if="!show">
68
+ <p class="text-warning" style="padding: 0 10px">
69
+ 暂无可操作的抄表信息
70
+ </p>
71
+ </div> -->
72
+ </div>
73
+ <!-- <back-page :need-back='true' @flag="$back()"></back-page>-->
74
+ </template>
75
+ <script>
76
+ import { PagedList } from 'vue-client'
77
+ import co from 'co'
78
+ import Vue from 'vue'
79
+ // const downloadHand = function * (self, row) {
80
+ //
81
+ // }
82
+
83
+ export default {
84
+ title: '共享计划下载',
85
+ data () {
86
+ return {
87
+ model: new PagedList( `${this.$androidUtil.getProxyUrl()}/rs/sql/getShareCheckPlan`,5,{f_fengongsi:`'${Vue.user.orgid}'`,f_fengongsi_name:`'${Vue.user.orgs.split('.').pop()}'`}),
88
+ checkPlanInfo: [],
89
+ localcheckPlanInfo:[]
90
+ }
91
+ },
92
+ ready () {
93
+
94
+ this.getlocalCheckPlan()
95
+ },
96
+ methods: {
97
+ reload() {
98
+ //tag
99
+ this.$refs.paged.loadPage(this.$refs.paged.model.pageIndex)
100
+ },
101
+ getlocalCheckPlan() {
102
+ let value = this.$androidUtil.path({alias: 'getLocalCheckPlan', data: {}})
103
+ //tag
104
+ this.localcheckPlanInfo = value.data
105
+ // this.$androidUtil.path({alias: 'getLocalCheckPlan', data:{}}).then((value)=>{
106
+ // //tag
107
+ // this.localcheckPlanInfo = value.data
108
+ // })
109
+ },
110
+ downloadHand(row) {
111
+ HostApp.__this__ =this
112
+ this.$showMessage('正在进行共享计划下载,请确认!', ['confirm', 'cancel']).then((res) => {
113
+ if (res === 'confirm') {
114
+ HostApp.logicWithHint({
115
+ 'logic': 'DownCheckPlanInfo',
116
+ 'callback': 'javascript: HostApp.__this__.downloadHandCallback()',
117
+ 'data': {id: row.id},
118
+ 'backresult': 1
119
+ })
120
+ }
121
+ })
122
+ },
123
+ downloadHandCallback(jo) {
124
+ // 安卓端
125
+ //tag
126
+ if (jo.state == 'ok') {
127
+ let result = JSON.parse(jo.result)
128
+ if (result.state == 0) {
129
+ if (result.data.length > 0) {
130
+ this.getlocalCheckPlan()
131
+ this.$showMessage('下载成功,您可前往计划导航进行查看!')
132
+ } else {
133
+ this.$showMessage('无可下载的共享计划!')
134
+ }
135
+ } else {
136
+ this.$showMessage('下载失败!')
137
+ }
138
+ } else {
139
+ this.$showMessage('下载失败,请重试!')
140
+ }
141
+ }
142
+ },
143
+ computed: {
144
+ isDown () {
145
+ return function (row) {
146
+ for (let info of this.localcheckPlanInfo) {
147
+ if (info.id == row.id) {
148
+ return false
149
+ }
150
+ }
151
+ return true
152
+ }
153
+ }
154
+ }
155
+ }
156
+ </script>
157
+ <style>
158
+ .bg {
159
+ background-color: blue;
160
+ height: 1px;
161
+ border: 0;
162
+ }
163
+ .app-row {
164
+ background-color: white;
165
+ padding: 10px 10px 0 10px;
166
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
167
+ }
168
+ .search_input {
169
+ border: 0;
170
+ outline: none;
171
+ }
172
+ .font{
173
+ font: 15px PingFang-SC-Medium;
174
+ color: #666666;
175
+ }
176
+ .input-font{
177
+ font: 15px PingFang-SC-Medium;
178
+ color: #333333;
179
+ }
180
+ .btn-font{
181
+ font:600 16px PingFang-SC-Bold;
182
+ color: #499EDF;
183
+ }
184
+ .btn-color{
185
+ background-color: #FFFFFF;
186
+ border-radius: 10px ;
187
+ border: 1px solid #499EDF;
188
+ }
189
+ .app-text {
190
+ font-size: 12px;
191
+ }
192
+ .panel-self{
193
+ border-radius: 10px;
194
+ border:1px solid #499EDF;
195
+ background-color: #F8F8F8;
196
+ }
197
+ .yybtn-color{
198
+ background-color:#499edf;
199
+ border-radius: 4px ;
200
+ border: 1px solid #499EDF;
201
+ color: #FFFFFF;
202
+ font: 14px PingFang-SC-Bold;
203
+ }
204
+ .qxbtn-color{
205
+ background-color: #FFFFFF;
206
+ border-radius: 4px ;
207
+ color: #499edf;
208
+ font: 14px PingFang-SC-Bold;
209
+ border: 1px solid #499EDF;
210
+ }
211
+
212
+ </style>
@@ -4,6 +4,7 @@ import Vue from "vue";
4
4
  //手机特殊目录注册到该文件中
5
5
  let specialComp = {
6
6
  'safecheck-order-v': (resolve) => { require(['./android/SafecheckOrderV'], resolve) },
7
+ 'check-plan-down': (resolve) => { require(['./android/CheckPlanDown'], resolve) }
7
8
  }
8
9
  exports.specialComp = specialComp
9
10
 
@@ -282,6 +282,14 @@
282
282
  :value-single="true">
283
283
  </v-select>
284
284
  </div>
285
+ <div class="form-group col-sm-2" >
286
+ <label class="font_normal_body">用户分公司</label>
287
+ <right-tree-safe @re-res="$parent.$parent.getResm" v-model="model.f_user_orgid" condition="f_user_orgid in {}"></right-tree-safe>
288
+ </div>
289
+ <div class="form-group col-sm-2" >
290
+ <label class="font_normal_body">安检员分公司</label>
291
+ <right-tree-safe @re-res="$parent.$parent.getResm2" v-model="model.f_orgid" condition="f_orgid in {}"></right-tree-safe>
292
+ </div>
285
293
  </div>
286
294
  <modal :show.sync="$parent.$parent.showModal" v-ref:modal backdrop="false">
287
295
  <div slot="modal-header" class="modal-header">
@@ -308,6 +316,12 @@
308
316
  <th>
309
317
  <nobr>客户名称</nobr>
310
318
  </th>
319
+ <th >
320
+ <nobr>用户分公司</nobr>
321
+ </th>
322
+ <th >
323
+ <nobr>安检员分公司</nobr>
324
+ </th>
311
325
  <th>
312
326
  <nobr>客户表号</nobr>
313
327
  </th>
@@ -370,6 +384,8 @@
370
384
  <template partial='body'>
371
385
  <td style="text-align: center">{{ row.f_userinfo_code }}</td>
372
386
  <td style="text-align: center">{{ row.f_user_name }}</td>
387
+ <td style="text-align: center" >{{ row.f_orgname}}</td>
388
+ <td style="text-align: center" >{{ row.f_filiale_name}}</td>
373
389
  <td style="text-align: center">{{ row.f_meternumber }}</td>
374
390
  <td style="text-align: center">{{ row.f_meter_brand }}</td>
375
391
  <td style="text-align: center">{{ row.f_user_phone }}</td>
@@ -678,7 +694,12 @@ export default {
678
694
  this.getPcd(this.model.f_filialeid)
679
695
  //this.$refs.paged.$refs.criteria.search()
680
696
  },
681
-
697
+ getResm (obj) {
698
+ this.$refs.paged.$refs.criteria.model.f_user_orgid= this.$login.convertToIn(obj.resids)
699
+ },
700
+ getResm2(obj) {
701
+ this.$refs.paged.$refs.criteria.model.f_orgid= this.$login.convertToIn(obj.resids)
702
+ },
682
703
  change(row) {
683
704
  asyncReady(this).then(() => {
684
705
  if (row.f_safe_type == '已挂表未办卡安检') {
@@ -20,7 +20,7 @@
20
20
  v-for="row in checkplan.list.data" @click="selectPlanChange(row)">
21
21
  <table style="width:100%;table-layout:fixed">
22
22
  <tr class="safe-planfont">
23
- <td rowspan="6"><input type="checkbox" style="pointer-events:auto"
23
+ <td rowspan="8"><input type="checkbox" style="pointer-events:auto"
24
24
  v-show="row.plan_count == 0 || row.f_issued == '未下发'"
25
25
  onClick="event.cancelBubble = true"
26
26
  :checked="checkplan.check.isChecked(row.f_check_item_id)"
@@ -58,6 +58,24 @@
58
58
  :title="row.f_safecheck_type">{{ row.f_safecheck_type }}
59
59
  </td>
60
60
  </tr>
61
+ <tr class="safe-bodyfont" v-if="row.f_share_type">
62
+ <td colspan="3">共享公司 :</td>
63
+ <td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"
64
+ :title="row.f_share_type">{{ row.f_share_type }}
65
+ </td>
66
+ </tr>
67
+ <tr class="safe-bodyfont" v-if="row.f_share_company_name">
68
+ <td colspan="3">分公司名称 :</td>
69
+ <td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"
70
+ :title="row.f_share_company_name">{{ row.f_share_company_name }}
71
+ </td>
72
+ </tr>
73
+ <tr class="safe-bodyfont" v-if="row.f_schedule_type">
74
+ <td colspan="3">任务性质 :</td>
75
+ <td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"
76
+ :title="row.f_schedule_type">{{ row.f_schedule_type }}
77
+ </td>
78
+ </tr>
61
79
  </table>
62
80
  </div>
63
81
  </div>
@@ -210,6 +228,13 @@
210
228
  value-single>
211
229
  </v-select>
212
230
  </div>
231
+ <div class="form-group col-sm-4">
232
+ <label class="font_normal_body">任务性质:</label>
233
+ <v-select class="select select_list" :search="false" :value.sync="createPlan.f_schedule_type"
234
+ v-model="createPlan.f_schedule_type" :options='schedule_types' placeholder='请选择' close-on-select
235
+ value-single>
236
+ </v-select>
237
+ </div>
213
238
  <div class="form-group col-sm-4" v-show="createPlan.isShare == '否'">
214
239
  <label class="font_normal_body">部&ensp;&ensp;&ensp;&ensp;门:</label>
215
240
  <v-select class="select select_list" :search="false" :value.sync="createPlan.f_department_id"
@@ -233,13 +258,13 @@
233
258
  value-single>
234
259
  </v-select>
235
260
  </div>
236
- <div class="form-group col-sm-4">
261
+ <div class="form-group col-sm-4" v-if="createPlan.isShare == '是' && isSeePlanShare">
237
262
  <label class="font_normal_body">共享公司:</label>
238
263
  <v-select class="select select_list" :value.sync="createPlan.f_share_type" v-model="createPlan.f_share_type"
239
264
  :search="false" :options='isAndNot' placeholder='请选择' close-on-select value-single>
240
265
  </v-select>
241
266
  </div>
242
- <div class="form-group col-sm-4" v-if="createPlan.f_share_type == '是'">
267
+ <div class="form-group col-sm-4" v-if="createPlan.isShare == '是' && isSeePlanShare && createPlan.f_share_type == '是'">
243
268
  <label class="font_normal_body">分公司名称:</label>
244
269
  <v-select class="select select_list" :value.sync="createPlan.f_share_company_name"
245
270
  v-model="createPlan.f_share_company_name" :search="false" :options='companyNameList'
@@ -298,6 +323,20 @@
298
323
  v-model="upCheckPlan.f_safecheck_type" :options='ntoway' close-on-select value-single>
299
324
  </v-select>
300
325
  </div>
326
+ <div class="form-group col-sm-4" v-if="upCheckPlan.isShare == '是' && isSeePlanShare">
327
+ <label class="font_normal_body">共享公司:</label>
328
+ <v-select class="select select_list" :value.sync="upCheckPlan.f_share_type" v-model="upCheckPlan.f_share_type"
329
+ :search="false" :options='isAndNot' placeholder='请选择' close-on-select value-single>
330
+ </v-select>
331
+ </div>
332
+ <div class="form-group col-sm-6" v-if="upCheckPlan.isShare == '是' && isSeePlanShare && upCheckPlan.f_share_type == '是'">
333
+ <label class="font_normal_body">分公司名称:</label>
334
+ <v-select class="select select_list" :value.sync="upCheckPlan.f_share_company_name"
335
+ v-model="upCheckPlan.f_share_company_name" :search="false" :options='companyNameList'
336
+ placeholder='请选择'
337
+ close-on-select value-single>
338
+ </v-select>
339
+ </div>
301
340
  </div>
302
341
  </div>
303
342
  <div slot="modal-footer" class="modal-footer" style="text-align: center">
@@ -322,7 +361,10 @@ export default {
322
361
  totalTaskList: [],
323
362
  departments: [],
324
363
  companyNameList: [],
364
+ // isSeePlanShare: this.$login.r ? this.$login.r.includes("安检任务共享公司") : true,
365
+ isSeePlanShare: true,
325
366
  opt: [{label: "按时间降序", value: "按时间降序"}, {label: "按时间升序", value: "按时间升序"}],
367
+ schedule_types: [{label: "民用", value: "民用"}, {label: "非民用", value: "非民用"}],
326
368
  currentorder: '按时间降序',
327
369
  isdelete: this.$login.r ? this.$login.r.includes("安检任务删除") : false,
328
370
  checkplan: new SearchList(true),
@@ -331,6 +373,8 @@ export default {
331
373
  f_plan_name: '',
332
374
  f_safecheck_type: '',
333
375
  f_plan_year: '',
376
+ f_share_type:'',
377
+ f_share_company_name:'',
334
378
  f_plan_month: '',
335
379
  f_checker_id: '',
336
380
  isShare: '',
@@ -342,6 +386,7 @@ export default {
342
386
  f_plan_name: '',
343
387
  f_total_task_id:'',
344
388
  f_plan_year: '',
389
+ f_schedule_type:'民用',
345
390
  f_department_id: '',
346
391
  f_plan_month: '',
347
392
  isShare: '否',
@@ -557,6 +602,8 @@ export default {
557
602
  } else {
558
603
  this.createPlan.f_checker_id = this.createPlan.checker.id
559
604
  this.createPlan.f_checker = this.createPlan.checker.name
605
+ this.createPlan.f_share_type = '否'
606
+ this.createPlan.f_share_company_name = ''
560
607
  }
561
608
  if (this.createPlan.f_total_task){
562
609
  this.createPlan.f_total_task_id = this.createPlan.f_total_task.id
@@ -576,6 +623,7 @@ export default {
576
623
  f_plan_name: '',
577
624
  f_plan_year: '',
578
625
  f_plan_month: '',
626
+ f_schedule_type:'民用',
579
627
  isShare: '否',
580
628
  f_issued: '否',
581
629
  f_checker_id: null,
@@ -601,6 +649,10 @@ export default {
601
649
  Vue.showMessage("请选择安检月份!")
602
650
  return false
603
651
  }
652
+ if (!this.createPlan.f_schedule_type) {
653
+ Vue.showMessage("请选择任务性质!")
654
+ return false
655
+ }
604
656
  if (this.createPlan.isShare == "否") {
605
657
  if (JSON.stringify(this.createPlan.checker) == '{}') {
606
658
  Vue.showMessage("请选择安检人员!")
@@ -691,14 +743,16 @@ export default {
691
743
  this.upCheckPlan.f_checker = row.f_checker ? row.f_checker : null
692
744
  this.upCheckPlan.isShare = row.f_checker_id ? '否' : '是'
693
745
  this.upCheckPlan.f_issued = row.f_issued
746
+ this.upCheckPlan.f_share_type = row.f_share_type
747
+ this.upCheckPlan.f_share_company_name = row.f_share_company_name
694
748
  this.upCheckPlan.checker = {id: row.f_checker_id, name: row.f_checker}
695
749
  this.showUpPlan = true
696
750
  },
697
751
  async upPlan() {
698
- if (this.upCheckPlan.f_issued == '已下发') {
699
- this.$showMessage("该任务已下发,无法进行修改!")
700
- return
701
- }
752
+ // if (this.upCheckPlan.f_issued == '已下发') {
753
+ // this.$showMessage("该任务已下发,无法进行修改!")
754
+ // return
755
+ // }
702
756
  if (!this.upCheckPlan.f_plan_name) {
703
757
  Vue.showMessage("请输入安检任务名称!")
704
758
  return false
@@ -719,6 +773,8 @@ export default {
719
773
  } else {
720
774
  this.upCheckPlan.f_checker_id = this.upCheckPlan.checker.id
721
775
  this.upCheckPlan.f_checker = this.upCheckPlan.checker.name
776
+ this.createPlan.f_share_type = '否'
777
+ this.createPlan.f_share_company_name = ''
722
778
  }
723
779
  this.isSend = true
724
780
  let res = await new HttpResetClass().load("POST", "/rs/logic/updateCheckPlan", {
@@ -729,6 +785,9 @@ export default {
729
785
  f_plan_name: this.upCheckPlan.f_plan_name,
730
786
  f_plan_year: this.upCheckPlan.f_plan_year,
731
787
  f_plan_month: this.upCheckPlan.f_plan_month,
788
+ f_share_type: this.upCheckPlan.f_share_type,
789
+ f_share_company_name: this.upCheckPlan.f_share_type == '否' ? '' : this.upCheckPlan.f_share_company_name,
790
+ issued:"是",
732
791
  f_plan_id: this.upCheckPlan.id
733
792
  }
734
793
  }, {resolveMsg: null, rejectMsg: null})
@@ -34,6 +34,18 @@
34
34
  >
35
35
  </v-select>
36
36
  </div>
37
+ <div class="form-group col-sm-1 upuserinfo_sel">
38
+ <v-select class="select select_list"
39
+ :width="'95%'"
40
+ class="select select_list"
41
+ :value.sync="model.checkBook"
42
+ v-model="model.checkBook"
43
+ :options='$parent.$parent.checkBooks'
44
+ placeholder='安&ensp;检&ensp;册'
45
+ :multiple="true"
46
+ >
47
+ </v-select>
48
+ </div>
37
49
  <div class="form-group col-sm-4">
38
50
  <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">
39
51
  更多条件
@@ -273,20 +285,20 @@
273
285
  >
274
286
  </v-select>
275
287
  </div>
276
- <div class="form-group col-sm-4">
277
- <label class="font_normal_body">安&ensp;检&ensp;册:</label>
278
- <v-select
279
- class="select select_list"
280
- :value.sync="model.checkBook"
281
- v-model="model.checkBook"
282
- :options='$parent.$parent.checkBooks'
283
- placeholder='请选择'
284
- :search="false"
285
- close-on-select
286
- value-single
287
- >
288
- </v-select>
289
- </div>
288
+ <!-- <div class="form-group col-sm-4">-->
289
+ <!-- <label class="font_normal_body">安&ensp;检&ensp;册:</label>-->
290
+ <!-- <v-select-->
291
+ <!-- class="select select_list"-->
292
+ <!-- :value.sync="model.checkBook"-->
293
+ <!-- v-model="model.checkBook"-->
294
+ <!-- :options='$parent.$parent.checkBooks'-->
295
+ <!-- placeholder='请选择'-->
296
+ <!-- :search="false"-->
297
+ <!-- close-on-select-->
298
+ <!-- value-single-->
299
+ <!-- >-->
300
+ <!-- </v-select>-->
301
+ <!-- </div>-->
290
302
  <div class="form-group col-sm-4">
291
303
  <label class="font_normal_body">通气起始:</label>
292
304
  <datepicker
@@ -513,6 +525,8 @@ export default {
513
525
  },
514
526
  props: ["selectplan", "userlogin"],
515
527
  ready() {
528
+ console.log('-====')
529
+ console.log(this.$login.f)
516
530
  this.$refs.paged.$refs.criteria.model.f_user_state = '正常'
517
531
  // this.hasCheckBooks=this.$appdata.getSingleValue('是否使用安检册')
518
532
  // this.$refs.paged.$refs.criteria.model.f_endfile_time=Util.toStartDateYearString()
@@ -533,7 +547,7 @@ export default {
533
547
  orderitem: 'id desc'
534
548
  }
535
549
  }, {resolveMsg: null, rejectMsg: null}).then(res => {
536
- this.checkBooks.push({label: '全部', value: ''})
550
+ // this.checkBooks.push({label: '全部', value: ''})
537
551
  res.data.forEach(ress => {
538
552
  this.checkBooks.push({
539
553
  label: ress.f_check_book_name,
@@ -590,13 +604,26 @@ export default {
590
604
  args.condition += ` and ui.f_last_check_date <='${args.model.f_end_time} 23:59:59' `
591
605
  }
592
606
  }
593
-
594
- if (args.model.checkBook) {
595
- let arr = args.model.checkBook.split('-')
596
- if (arr[1] == '用户') {
597
- args.condition += ` and ua.f_check_book_id='${arr[0]}'`
598
- } else {
599
- args.condition += ` and area.f_check_book_id=${arr[0]} and ua.f_check_book_id is null`
607
+ debugger
608
+ if (args.model.checkBook && Array.isArray(args.model.checkBook)) {
609
+ let userIds = [];
610
+ let areaIds = [];
611
+ args.model.checkBook.forEach(checkBook => {
612
+ let arr = checkBook.split('-');
613
+ if (arr[1] == '用户') {
614
+ userIds.push(arr[0]);
615
+ } else {
616
+ areaIds.push(arr[0]);
617
+ }
618
+ });
619
+ if (userIds.length > 0 && areaIds.length == 0) {
620
+ args.condition += ` and ua.f_check_book_id in (${userIds.map(id => `'${id}'`).join(',')})`;
621
+ }
622
+ if (areaIds.length > 0 && userIds.length == 0) {
623
+ args.condition += ` and area.f_check_book_id in (${areaIds.map(id => `'${id}'`).join(',')}) and ua.f_check_book_id is null`;
624
+ }
625
+ if (userIds.length > 0 && areaIds.length > 0){
626
+ args.condition += ` and (ua.f_check_book_id in (${userIds.map(id => `'${id}'`).join(',')}) or area.f_check_book_id in (${areaIds.map(id => `'${id}'`).join(',')}))`;
600
627
  }
601
628
  }
602
629
  if (this.uploadCodeCondition) {
@@ -812,6 +839,12 @@ export default {
812
839
  })
813
840
  },
814
841
 
842
+ },
843
+ watch:{
844
+ 'userlogin.orgid'(){
845
+ this.getCheckBook()
846
+ this.loadpage()
847
+ }
815
848
  }
816
849
  }
817
850
  </script>
@@ -16,6 +16,7 @@ let specialComp = {
16
16
  'check-book-list': (resolve) => { require(['./pc/CheckBookList.vue'], resolve) },
17
17
  'check-book-all': (resolve) => { require(['./pc/CheckBookAll.vue'], resolve) },
18
18
  'check-book': (resolve) => { require(['./pc/CheckBook.vue'], resolve) },
19
+ 'check-book-entry': (resolve) => { require(['./pc/CheckBookEntry.vue'], resolve) },
19
20
  'check-plan-list': (resolve) => { require(['./pc/checkPlanList'], resolve) },
20
21
  'check-user-list': (resolve) => { require(['./pc/checkUserList'], resolve) },
21
22
 
@@ -272,7 +272,8 @@
272
272
  </div>
273
273
  <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_bqf_state == '关阀'">
274
274
  <label class="righttxt">关阀原因:</label>
275
- <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].bqf_states_reason"
275
+ <v-select class="rightipt"
276
+ :value.sync="userinfo.meterinfo[0].bqf_states_reason"
276
277
  v-model="userinfo.meterinfo[0].bqf_states_reason"
277
278
  placeholder='请选择'
278
279
  :width='wid'
@@ -281,6 +282,18 @@
281
282
  close-on-select value-single></v-select>
282
283
  <input type="text" style="float: left;margin-left: 31%;" v-if="userinfo.meterinfo[0].bqf_states_reason == '其他'" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_bqf_states_reason"/>
283
284
  </div>
285
+ <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_bqf_state == '开阀'">
286
+ <label class="righttxt">开阀原因:</label>
287
+ <v-select class="rightipt"
288
+ :value.sync="userinfo.meterinfo[0].bqf_states_reason"
289
+ v-model="userinfo.meterinfo[0].bqf_states_reason"
290
+ placeholder='请选择'
291
+ :width='wid'
292
+ readonly
293
+ :options="kf_states_reasons"
294
+ close-on-select value-single></v-select>
295
+ <input type="text" style="float: left;margin-left: 31%;" v-if="userinfo.meterinfo[0].bqf_states_reason == '其他'" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_bqf_states_reason"/>
296
+ </div>
284
297
  <!-- <div class="row auto" style="margin: 5px 0">
285
298
  <div style="display: flex;justify-content: center;">
286
299
  <button v-if="userinfo.meterinfo[0].f_meter_classify=='机表'" class="col-sm-3 btn btn-primary" @click="upUserState()">机表关阀停用</button>
@@ -418,6 +431,7 @@ export default {
418
431
  cityTypes: [{label: '市区', value: '市区'}, {label: '城镇', value: '城镇'}],
419
432
  bqf_states: [{label: '开阀', value: '开阀'}, {label: '关阀', value: '关阀'}],
420
433
  bqf_states_reasons: Vue.$appdata.getParam('关阀原因'),
434
+ kf_states_reasons: Vue.$appdata.getParam('开阀原因'),
421
435
  pcds: [],
422
436
  streets: [],
423
437
  update: false,
@@ -655,6 +669,9 @@ export default {
655
669
  if(this.userinfo.meterinfo[0].f_bqf_state === '关阀'){
656
670
  this.userinfo_old.meterinfo[0].f_off_valve_reason = this.userinfo.meterinfo[0].bqf_states_reason !== '其他' ? this.userinfo.meterinfo[0].bqf_states_reason : this.userinfo.meterinfo[0].f_bqf_states_reason
657
671
  }
672
+ if(this.userinfo.meterinfo[0].f_bqf_state === '开阀'){
673
+ this.userinfo_old.meterinfo[0].f_off_valve_reason = this.userinfo.meterinfo[0].bqf_states_reason !== '其他' ? this.userinfo.meterinfo[0].bqf_states_reason : this.userinfo.meterinfo[0].f_bqf_states_reason
674
+ }
658
675
  this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
659
676
  userinfoms.userfiles = []
660
677
  this.userinfo_old.meterinfo[0].devicesinfo = this.model
@@ -727,6 +744,9 @@ export default {
727
744
  if(this.userinfo.meterinfo[0].f_bqf_state === '关阀'){
728
745
  this.userinfo_old.meterinfo[0].f_off_valve_reason = this.userinfo.meterinfo[0].bqf_states_reason !== '其他' ? this.userinfo.meterinfo[0].bqf_states_reason : this.userinfo.meterinfo[0].f_bqf_states_reason
729
746
  }
747
+ if(this.userinfo.meterinfo[0].f_bqf_state === '开阀'){
748
+ this.userinfo_old.meterinfo[0].f_off_valve_reason = this.userinfo.meterinfo[0].bqf_states_reason !== '其他' ? this.userinfo.meterinfo[0].bqf_states_reason : this.userinfo.meterinfo[0].f_bqf_states_reason
749
+ }
730
750
  this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
731
751
  userinfoms.userfiles = []
732
752
  this.userinfo_old.meterinfo[0].devicesinfo = this.model
@@ -303,6 +303,7 @@ export default {
303
303
  // let condition = ` uf.f_filialeid = '${this.filialeid}'`
304
304
  let condition = ` 1=1 `
305
305
  condition += this.condition
306
+ condition += ` and f_filialeid = '${this.filialeid}'`
306
307
  condition += this.f_meternumber ? ` and f_meternumber = '${this.f_meternumber}'` : ""
307
308
  condition += this.f_userinfo_code ? ` and f_userinfo_code = '${this.f_userinfo_code}'` : ""
308
309
  condition += this.f_enter_number ? ` and f_enter_number = '${this.f_enter_number}'` : ""