safecheck-client 3.0.35-56 → 3.0.35-58

Sign up to get free protection for your applications and to get access to all the features.
@@ -56,19 +56,25 @@
56
56
  <th>
57
57
  <nobr>距离下周期时间(天)</nobr>
58
58
  </th>
59
+ <th>
60
+ <nobr>操作</nobr>
61
+ </th>
59
62
  </tr>
60
63
  </template>
61
64
  <template partial='body'>
62
- <td style="text-align: center">{{row.f_residential_area}}</td>
63
- <td style="text-align: center">{{row.area_num}}</td>
64
- <td style="text-align: center">{{row.f_plan_name}}</td>
65
- <td style="text-align: center">{{row.plan_num}}</td>
66
- <td style="text-align: center">{{row.f_issue_time}}</td>
67
- <td style="text-align: center">{{row.first_check_date}}</td>
68
- <td style="text-align: center">{{row.f_use_end_time}}</td>
69
- <td style="text-align: center">{{row.zq_value}}</td>
70
- <td style="text-align: center">{{row.dw_value}}</td>
71
- <td :style="{ 'text-align': 'center', color: row.difference_day <= 100 ? 'red' : '' }">{{ row.difference_day }}</td>
65
+ <td style="text-align: center" @click="$parent.$parent.$parent.showList(row)">{{row.f_residential_area}}</td>
66
+ <td style="text-align: center" @click="$parent.$parent.$parent.showList(row)">{{row.area_num}}</td>
67
+ <td style="text-align: center" @click="$parent.$parent.$parent.showList(row)">{{row.f_plan_name}}</td>
68
+ <td style="text-align: center" @click="$parent.$parent.$parent.showList(row)">{{row.plan_num}}</td>
69
+ <td style="text-align: center" @click="$parent.$parent.$parent.showList(row)">{{row.f_issue_time}}</td>
70
+ <td style="text-align: center" @click="$parent.$parent.$parent.showList(row)">{{row.first_check_date}}</td>
71
+ <td style="text-align: center " @click="$parent.$parent.$parent.showList(row)">{{row.f_use_end_time}}</td>
72
+ <td style="text-align: center" @click="$parent.$parent.$parent.showList(row)">{{row.zq_value}}</td>
73
+ <td style="text-align: center" @click="$parent.$parent.$parent.showList(row)">{{row.dw_value}}</td>
74
+ <td :style="{ 'text-align': 'center', color: row.difference_day <= 100 ? 'red' : '' }" @click="$parent.$parent.$parent.showList(row)">{{ row.difference_day }}</td>
75
+ <td style="text-align: center">
76
+ <button class="button_spacing button_search" @click="$parent.$parent.$parent.showUser(row)">计划下发</button>
77
+ </td>
72
78
  </template>
73
79
  </data-grid>
74
80
  </criteria-paged>
@@ -109,6 +115,10 @@ export default {
109
115
  row.val = row
110
116
  this.$parent.selected(row)
111
117
  },
118
+ showUser(row){
119
+ row.val = row
120
+ this.$parent.selected2(row)
121
+ },
112
122
  selfSearch(args) {
113
123
  this.model.search(args.condition, args.model, args.condValue)
114
124
  }
@@ -1,11 +1,14 @@
1
1
  <template>
2
2
  <div id="unit" class="flex-row" v-if="listpage" >
3
- <div :class="{'basic-main':((!isdetail) && (!usershow)),'binary-left':isdetail||usershow}" >
4
- <security-check-ledger1 v-ref:list :row="row" @select-changed="selected"></security-check-ledger1>
3
+ <div :class="{'basic-main':((!isdetail) && (!usershow) && (!isdetail2)),'binary-left':isdetail||usershow||isdetail2}" >
4
+ <security-check-ledger1 v-ref:list :row="row"></security-check-ledger1>
5
5
  </div>
6
6
  <div class="binary-right" style="overflow-y: scroll" v-if="isdetail">
7
7
  <security-check-ledger2 :checkrow="checkrow" ></security-check-ledger2>
8
8
  </div>
9
+ <div class="binary-right" style="overflow-y: scroll" v-if="isdetail2">
10
+ <security-check-ledger3 :checkrow="checkrow" ></security-check-ledger3>
11
+ </div>
9
12
  </div>
10
13
  </template>
11
14
  <script>
@@ -28,6 +31,7 @@ export default {
28
31
  checkrow: null,
29
32
  parentData: '',
30
33
  isdetail: false,
34
+ isdetail2: false,
31
35
  gasPriceShow: false,
32
36
  usershow: false,
33
37
  // 控制气价信息界面和变更操作记录界面的展示
@@ -47,15 +51,18 @@ export default {
47
51
  this.f_userinfo_id = val.f_userinfo_id
48
52
  },
49
53
  selected (obj) {
50
- //tag)
51
- //tag)
52
54
  this.checkrow = obj.val
53
55
  this.isdetail = true
56
+ this.isdetail2 = false
54
57
  this.usershow = false
55
58
  this.listpage = true
56
59
  },
57
60
  selected2 (obj) {
58
-
61
+ this.checkrow = obj.val
62
+ this.isdetail = false
63
+ this.isdetail2 = true
64
+ this.usershow = false
65
+ this.listpage = true
59
66
  },
60
67
  refresh () {
61
68
  this.row = null
@@ -0,0 +1,440 @@
1
+ <template>
2
+ <div class="flex">
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-4">
8
+ <label class="font_normal_body">用户名称</label>
9
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_user_name" placeholder='用户名称'
10
+ condition="ui.f_user_name like '%{}%'">
11
+ </div>
12
+ <div class="form-group col-sm-4">
13
+ <label class="font_normal_body">用户编号</label>
14
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
15
+ placeholder='用户编号' condition="ui.f_userinfo_code like '%{}%'">
16
+ </div>
17
+ <div class="form-group col-sm-4">
18
+ <label class="font_normal_body">用户地址</label>
19
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
20
+ placeholder='用户地址' condition="ua.f_address like '%{}%'">
21
+ </div>
22
+ <div class="form-group col-sm-4">
23
+ <label class="font_normal_body">用户类型:</label>
24
+ <v-select class="select select_list" :value.sync="model.f_user_type" v-model="model.f_user_type"
25
+ :options='$parent.$parent.userTypes' placeholder='请选择' condition="uf.f_user_type='{}'" :search="false"
26
+ close-on-select value-single>
27
+ </v-select>
28
+ </div>
29
+ <div class="form-group col-sm-4">
30
+ <label class="font_normal_body">用户状态:</label>
31
+ <v-select class="select select_list" :value.sync="model.f_user_state" v-model="model.f_user_state"
32
+ :options='$parent.$parent.userStates' placeholder='请选择' condition="ui.f_user_state='{}'" :search="false"
33
+ close-on-select value-single>
34
+ </v-select>
35
+ </div>
36
+ <div class="form-group col-sm-4">
37
+ <label class="font_normal_body">用气性质:</label>
38
+ <v-select class="select select_list" :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
39
+ :options='$parent.$parent.gasproperties' placeholder='请选择' condition="uf.f_gasproperties='{}'"
40
+ :search="false" close-on-select value-single>
41
+ </v-select>
42
+ </div>
43
+ <div class="form-group col-sm-4">
44
+ <label class="font_normal_body">开户起始:</label>
45
+ <datepicker placeholder='请选择' style="width:60%" :disabled-days-of-week="[]" :format="'yyyy-MM-dd'"
46
+ :show-rest-button="reset" :value.sync="model.f_startfile_time" v-model="model.f_startfile_time"
47
+ condition="ui.f_createfile_date >= '{} 00:00:00'">
48
+ </datepicker>
49
+ </div>
50
+ <div class="form-group col-sm-4">
51
+ <label class="font_normal_body">开户截止:</label>
52
+ <datepicker placeholder='请选择' :disabled-days-of-week="[]" style="width:60%" :format="'yyyy-MM-dd'"
53
+ :show-rest-button="reset" :value.sync="model.f_endfile_time" v-model="model.f_endfile_time"
54
+ condition="ui.f_createfile_date <= '{} 23:59:59'">
55
+ </datepicker>
56
+ </div>
57
+ <div class="form-group col-sm-4">
58
+ <label class="font_normal_body">派发情况:</label>
59
+ <v-select class="select select_list" :value.sync="model.yearCheck" v-model="model.yearCheck"
60
+ :options='$parent.$parent.yearCheckList' placeholder='请选择' condition="{}" :search="false"
61
+ close-on-select value-single>
62
+ </v-select>
63
+ </div>
64
+ <div class="form-group col-sm-4">
65
+ <label class="font_normal_body">安检起始:</label>
66
+ <datepicker placeholder='请选择' style="width:60%" :disabled-days-of-week="[]" :format="'yyyy-MM-dd'"
67
+ :show-rest-button="reset" :value.sync="model.f_start_time" v-model="model.f_start_time">
68
+ </datepicker>
69
+ </div>
70
+ <div class="form-group col-sm-4">
71
+ <label class="font_normal_body">安检截止:</label>
72
+ <datepicker placeholder='请选择' :disabled-days-of-week="[]" style="width:60%" :format="'yyyy-MM-dd'"
73
+ :show-rest-button="reset" :value.sync="model.f_end_time" v-model="model.f_end_time">
74
+ </datepicker>
75
+ </div>
76
+ <div class="form-group col-sm-4">
77
+ <label class="font_normal_body">安检状态:</label>
78
+ <v-select class="select select_list" :value.sync="model.f_last_check_state"
79
+ v-model="model.f_last_check_state" :options='$parent.$parent.entry_status' placeholder='请选择'
80
+ :search="false" close-on-select value-single>
81
+ </v-select>
82
+ </div>
83
+ <div class="form-group col-sm-4">
84
+ <label class="font_normal_body">安检时间:</label>
85
+ <input type="number" class="input_search" v-model="model.month" style="width: 60%"
86
+ placeholder="距上次安检时间(月)">
87
+ </div>
88
+ <div class="form-group col-sm-4">
89
+ <label class="font_normal_body">入户次数</label>
90
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
91
+ placeholder='入户次数' condition="f_num = '{}'">
92
+ </div>
93
+ </div>
94
+ <div class="row">
95
+ <div class="form-group col-sm-2 button-range">
96
+ <button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
97
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.showCreateCheckPlan()"
98
+ v-el:cba>生成并下发</button>
99
+ </div>
100
+ </div>
101
+ </div>
102
+ </criteria>
103
+ <data-grid :model="model" class="table_sy" partial='list' v-ref:grid>
104
+ <template partial='head'>
105
+ <tr>
106
+ <th>
107
+ <nobr>
108
+ <input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll"
109
+ @change="$parent.$parent.$parent.setCheckAll()" /> 全选
110
+ </nobr>
111
+ </th>
112
+ <th>
113
+ <nobr>用户编号</nobr>
114
+ </th>
115
+ <th>
116
+ <nobr>用户名称</nobr>
117
+ </th>
118
+ <th>
119
+ <nobr>用户类型</nobr>
120
+ </th>
121
+ <th>
122
+ <nobr>用户电话</nobr>
123
+ </th>
124
+ <th>
125
+ <nobr>表具类型</nobr>
126
+ </th>
127
+ <th>
128
+ <nobr>安检日期</nobr>
129
+ </th>
130
+ <th>
131
+ <nobr>详细地址</nobr>
132
+ </th>
133
+ </tr>
134
+ </template>
135
+ <template partial='body'>
136
+ <tr>
137
+ <td style="text-align: center;white-space:nowrap;">
138
+ <input v-if="!row.f_plan_id" type="checkbox" onClick="event.cancelBubble = true"
139
+ :checked="$parent.$parent.$parent.isChecked(row.id)"
140
+ @change="$parent.$parent.$parent.setCheckes(row.id)" />
141
+ </td>
142
+ <td style="text-align:center"><span>{{ row.f_userinfo_code }}</span></td>
143
+ <td style="text-align:center"><span>{{ row.f_user_name }}</span></td>
144
+ <td style="text-align:center"><span>{{ row.f_user_type }}</span></td>
145
+ <td style="text-align:center"><span>{{ row.f_user_phone }}</span></td>
146
+ <td style="text-align:center"><span>{{ row.f_meter_classify }}</span></td>
147
+ <td style="text-align:center"><span>{{ row.f_last_check_date }}</span></td>
148
+ <td style="text-align:center"><span>{{ row.f_address }}</span></td>
149
+ </tr>
150
+ </template>
151
+ <template partial='foot'></template>
152
+ </data-grid>
153
+ </criteria-paged>
154
+ <modal :show.sync="showCreatePlan" v-ref:modal1 :width="'50%'" :backdrop="false">
155
+ <div slot="modal-header" class="modal-header">
156
+ <h4 class="modal-title">
157
+ 新建计划
158
+ </h4>
159
+ </div>
160
+ <div slot="modal-body" class="modal-body">
161
+ <div class="row">
162
+ <div class="form-group col-sm-4">
163
+ <label class="font_normal_body">计划名称:</label>
164
+ <input type="text" class="input_search" v-model="createPlan.f_plan_name" style="width: 60%"
165
+ placeholder="请选择" />
166
+ </div>
167
+ <div class="form-group col-sm-4">
168
+ <label class="font_normal_body">计划年份:</label>
169
+ <v-select class="select select_list" :value.sync="createPlan.f_plan_year" v-model="createPlan.f_plan_year"
170
+ :search="false" :options='yearList' placeholder='请选择' close-on-select value-single>
171
+ </v-select>
172
+ </div>
173
+ <div class="form-group col-sm-4">
174
+ <label class="font_normal_body">计划月份:</label>
175
+ <v-select class="select select_list" :value.sync="createPlan.f_plan_month" v-model="createPlan.f_plan_month"
176
+ :search="false" :options='monthList' placeholder='请选择' close-on-select value-single>
177
+ </v-select>
178
+ </div>
179
+ <div class="form-group col-sm-4">
180
+ <label class="font_normal_body">是否共享:</label>
181
+ <v-select class="select select_list" :search="false" :value.sync="createPlan.isShare"
182
+ v-model="createPlan.isShare" :options='isAndNot' placeholder='请选择' close-on-select value-single>
183
+ </v-select>
184
+ </div>
185
+ <div class="form-group col-sm-4" v-show="createPlan.isShare == '否'">
186
+ <label class="font_normal_body">安&ensp;检&ensp;员:</label>
187
+ <v-select class="select select_list" :value.sync="createPlan.checker" v-model="createPlan.checker"
188
+ :options='checker' placeholder='请选择' close-on-select value-single>
189
+ </v-select>
190
+ </div>
191
+
192
+ <div class="form-group col-sm-4">
193
+ <label class="font_normal_body">安检类型:</label>
194
+ <v-select class="select select_list" :value.sync="createPlan.f_safecheck_type"
195
+ v-model="createPlan.f_safecheck_type" :search="false" :options='ntoway' placeholder='请选择' close-on-select
196
+ value-single>
197
+ </v-select>
198
+ </div>
199
+ <!-- <div class="form-group col-sm-4" v-show="createPlan.isShare=='是'">-->
200
+ <!-- <label class="font_normal_body">安&ensp;检&ensp;员:</label>-->
201
+ <!-- <v-select-->
202
+ <!-- class="select select_list"-->
203
+ <!-- :value.sync="createPlan.checkers"-->
204
+ <!-- v-model="createPlan.checkers"-->
205
+ <!-- :options='checker'-->
206
+ <!-- placeholder='请选择'-->
207
+ <!-- :multiple="true"-->
208
+ <!-- >-->
209
+ <!-- </v-select>-->
210
+ <!-- </div>-->
211
+ </div>
212
+ </div>
213
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
214
+ <button class="button_search" style="margin-right: 15px" @click="addNewPlan()">创建计划</button>
215
+ <button class="button_search" @click="cancel">取消</button>
216
+ </div>
217
+ </modal>
218
+ <work-busy :is-busy="isBusy"></work-busy>
219
+
220
+ </div>
221
+ </template>
222
+
223
+ <script>
224
+ import { HttpResetClass, PagedList } from 'vue-client'
225
+ import Vue from "vue";
226
+ import * as Util from "./../Util";
227
+ export default {
228
+ title: '安检情况明细',
229
+ data() {
230
+ return {
231
+ checkAll: false,
232
+ searchCondition: '',
233
+ isBusy:false,
234
+ createPlan: {
235
+ f_plan_name: '',
236
+ f_plan_year: '',
237
+ checkers: [],
238
+ f_plan_month: '',
239
+ isShare: '否',
240
+ f_issued: '否',
241
+ f_checker_id: null,
242
+ checker: {},
243
+ f_checker: null,
244
+ f_safecheck_type: '',
245
+ },
246
+ yearList: [{ label: 2020, value: 2020 }, { label: 2021, value: 2021 }, { label: 2022, value: 2022 }, { label: 2023, value: 2023 }, { label: 2024, value: 2024 }, { label: 2025, value: 2025 }, { label: 2026, value: 2026 }, { label: 2027, value: 2027 }, { label: 2028, value: 2028 }, { label: 2029, value: 2029 }, { label: 2030, value: 2030 }],
247
+ monthList: [{ label: "1", value: 1 }, { label: "2", value: 2 }, { label: "3", value: 3 }, { label: "4", value: 4 }, { label: "5", value: 5 }, { label: "6", value: 6 }, { label: "7", value: 7 }, { label: "8", value: 8 }, { label: "9", value: 9 }, { label: "10", value: 10 }, { label: "11", value: 11 }, { label: "12", value: 12 }],
248
+ isAndNot: [{ label: '是', value: '是' }, { label: '否', value: '否' }],
249
+ checker: [],
250
+ checkes: [],
251
+ showCreatePlan: false,
252
+ entry_status: this.$appdata.getParam('安检状态') ? [{ label: '全部', value: '' }, ...this.$appdata.getParam('安检状态')] : [{ label: '全部', value: '' }],
253
+ yearCheckList: [{ label: "全部", value: "" }, { label: "已在计划中", value: "ua.f_plan_id is not null" }, { label: "未在计划中", value: "ua.f_plan_id is null" }],
254
+ gasproperties: this.$appdata.getParam('用气性质') ? [{ label: '全部', value: '' }, ...this.$appdata.getParam('用气性质')] : [{ label: '全部', value: '' }],
255
+ userStates: this.$appdata.getParam('安检用户状态') ? [{ label: '全部', value: '' }, ...this.$appdata.getParam('安检用户状态')] : [{ label: '全部', value: '' }],
256
+ userTypes: this.$appdata.getParam('用户类型') ? [{ label: '全部', value: '' }, ...this.$appdata.getParam('用户类型')] : [{ label: '全部', value: '' }],
257
+ model: new PagedList('rs/sql/FetchUserFileByOrgNoRuHuSXQ', 50, { orderitem: '"f_residential_area,f_building,f_unit,f_floor,f_room"' }),
258
+ }
259
+ },
260
+ props: ['checkrow'],
261
+ async ready() {
262
+ this.search()
263
+ await this.searchChecker()
264
+ },
265
+ computed: {
266
+ ntoway() {
267
+ return this.$appdata.getParam('安检类型')
268
+ }
269
+ },
270
+ methods: {
271
+ isChecked(v) {
272
+ // 如果全选,不在的按选中算,否则,在的按选中算
273
+ if (this.checkAll) {
274
+ return this.checkes.indexOf(v) == -1
275
+ } else {
276
+ return this.checkes.indexOf(v) != -1
277
+ }
278
+ },
279
+ setCheckes(id) {
280
+ let index = this.checkes.indexOf(id)
281
+ if (index < 0) {
282
+ this.checkes.push(id)
283
+ } else {
284
+ this.checkes.splice(index, 1)
285
+ }
286
+ },
287
+ async searchChecker() {
288
+ let res = await new HttpResetClass().load('POST', '/rs/search', {
289
+ source: `root.getResourceById($${this.$login.f.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)`,
290
+ userid: this.$login.f.id
291
+ }, { resolveMsg: null, rejectMsg: null })
292
+ let arr = []
293
+ res.data.forEach((resRow) => {
294
+ if (!arr.includes(resRow.name) && resRow.state == '在职') {
295
+ arr.push(resRow.name)
296
+ this.checker.push({ label: resRow.name, value: resRow })
297
+ }
298
+ })
299
+ },
300
+ setCheckAll() {
301
+ this.checkAll = !this.checkAll
302
+ this.checkes = []
303
+ },
304
+ showCreateCheckPlan() {
305
+ if (this.model.rows.length == 0) {
306
+ Vue.showMessage("未检测到列表中有用户!")
307
+ return
308
+ }
309
+ if (!this.checkAll && this.checkes.length == 0) {
310
+ Vue.showMessage("请先勾选用户!")
311
+ return
312
+ }
313
+ this.showCreatePlan = true
314
+ },
315
+ validationCreatePlan() {
316
+ if (!this.createPlan.f_plan_name) {
317
+ Vue.showMessage("请输入安检计划名称!")
318
+ return false
319
+ }
320
+ if (!this.createPlan.f_plan_year) {
321
+ Vue.showMessage("请选择安检年份!")
322
+ return false
323
+ }
324
+ if (!this.createPlan.f_plan_month) {
325
+ Vue.showMessage("请选择安检月份!")
326
+ return false
327
+ }
328
+ if (this.createPlan.isShare == "否") {
329
+ if (JSON.stringify(this.createPlan.checker) == '{}') {
330
+ Vue.showMessage("请选择安检人员!")
331
+ return false
332
+ }
333
+ } else {
334
+ this.createPlan.f_checker = ''
335
+ }
336
+ if (!this.createPlan.f_safecheck_type) {
337
+ Vue.showMessage("请选择安检类型!")
338
+ return false
339
+ }
340
+ return true
341
+ },
342
+ async addNewPlan() {
343
+ if (!this.validationCreatePlan()) {
344
+ return
345
+ }
346
+ this.isBusy = true
347
+ let res = await new HttpResetClass().load("POST", "/rs/sql/getCheckplan", { data: { condition: "f_plan_name='" + this.createPlan.f_plan_name + "'", sortfield: 'f_create_time desc' } })
348
+ if (res.data.length > 0) {
349
+ Vue.showMessage("计划名称不能重复!")
350
+ this.isBusy = false
351
+ return
352
+ }
353
+ if (this.createPlan.isShare == "是") {
354
+ if (this.createPlan.checkers.length > 0) {
355
+ this.createPlan.checkers.forEach((value) => {
356
+ this.createPlan.f_checkerstr += `${value},`
357
+ })
358
+ this.createPlan.f_checkerstr = this.createPlan.f_checkerstr.slice(0, -1)
359
+ }
360
+ this.createPlan.f_checker_id = null
361
+ this.createPlan.f_checker = null
362
+ } else {
363
+ this.createPlan.f_checker_id = this.createPlan.checker.id
364
+ this.createPlan.f_checker = this.createPlan.checker.name
365
+ }
366
+ this.createPlan.f_plan_type = '预约计划'
367
+ this.createPlan.f_subcompany = this.$login.f.orgs
368
+ this.createPlan.f_filialeid = this.$login.f.orgid
369
+ this.createPlan.f_create_operator = this.$login.f.name
370
+ this.createPlan.f_create_time = Util.toStandardTimeString()
371
+ this.createPlan.checkAll = this.checkAll
372
+ this.createPlan.searchCondition = this.searchCondition
373
+ this.createPlan.checkes = this.checkes.join()
374
+
375
+ new HttpResetClass().load('POST', "/rs/logic/createCheckPlanAndAddPlanItem", {
376
+ data: this.createPlan
377
+ }, { resolveMsg: '新建计划成功!', rejectMsg: '新建计划失败!' })
378
+ .then(() => {
379
+ this.checkAll = false
380
+ this.checkes = []
381
+ this.showCreatePlan = false
382
+ this.$showMessage('创建计划成功')
383
+ this.isBusy = false
384
+ }).catch(() => {
385
+ this.checkAll = false
386
+ this.checkes = []
387
+ this.showCreatePlan = false
388
+ this.$showMessage('创建计划失败')
389
+ this.isBusy = false
390
+ })
391
+ this.createPlan = {
392
+ f_plan_name: '',
393
+ f_plan_year: '',
394
+ f_plan_month: '',
395
+ isShare: '否',
396
+ f_issued: '否',
397
+ f_checker_id: null,
398
+ checker: {},
399
+ checkers: [],
400
+ f_checker: null,
401
+ f_checkerstr: null,
402
+ f_safecheck_type: '',
403
+ f_create_operator: ''
404
+ }
405
+ },
406
+ cancel() {
407
+ this.showCreatePlan = false
408
+ this.checkes = []
409
+ this.createPlan = {
410
+ f_plan_name: '',
411
+ f_plan_year: '',
412
+ f_plan_month: '',
413
+ isShare: '否',
414
+ f_issued: '否',
415
+ f_checker_id: null,
416
+ checker: {},
417
+ f_checker: null,
418
+ f_safecheck_type: '',
419
+ }
420
+ },
421
+ search() {
422
+ this.$refs.paged.$refs.criteria.search()
423
+ },
424
+ async selfSearch(args) {
425
+ if (!this.checkrow) {
426
+ return
427
+ }
428
+ let condition = ''
429
+ condition = args.condition += `and area.f_residential_area = '${this.checkrow.f_residential_area}'`
430
+ this.searchCondition = condition
431
+ this.model.search(condition)
432
+ },
433
+ },
434
+ watch: {
435
+ 'checkrow'() {
436
+ this.search()
437
+ }
438
+ }
439
+ }
440
+ </script>
@@ -98,6 +98,7 @@
98
98
  f_userinfo_code:this.userinfome.baseinfo.base.f_userinfo_code,
99
99
  f_user_name:this.userinfome.baseinfo.base.f_user_name,
100
100
  f_user_phone:this.userinfome.baseinfo.base.f_user_phone,
101
+ f_zuhu_phone:this.userinfome.baseinfo.base.f_zuhu_phone,
101
102
  f_remark:this.userinfome.baseinfo.base.f_remark,
102
103
  f_used_name:this.userinfome.baseinfo.base.f_used_name,
103
104
  f_rent_phone:this.userinfome.baseinfo.base.f_rent_phone,
@@ -214,6 +214,8 @@ export default {
214
214
  let userinfoms=Object.assign({},this.userInformation.baseinfo.base)
215
215
  //userinfoms.f_user_name=row.f_user_name
216
216
  userinfoms.f_operator_record=row.f_modifier
217
+ userinfoms.f_user_phone=row.f_user_phone
218
+ userinfoms.f_zuhu_phone=row.f_zuhu_phone
217
219
  userinfoms.f_operatorid_record=row.f_modifier_id
218
220
  //userinfoms.f_remark=row.f_remark
219
221
  //tag
@@ -17,6 +17,12 @@
17
17
  <input type="text" class="form-control" v-model="content.f_user_phone" readonly="true">
18
18
  </div>
19
19
  </div>
20
+ <div class="form-group">
21
+ <label class="col-sm-4">租户电话:</label>
22
+ <div class="col-sm-6">
23
+ <input type="text" class="form-control" v-model="content.f_zuhu_phone" readonly="true">
24
+ </div>
25
+ </div>
20
26
  <!-- <div class="form-group">-->
21
27
  <!-- <label class="col-sm-4">备用电话:</label>-->
22
28
  <!-- <div class="col-sm-6">-->
@@ -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,
@@ -727,6 +741,9 @@ export default {
727
741
  if(this.userinfo.meterinfo[0].f_bqf_state === '关阀'){
728
742
  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
743
  }
744
+ if(this.userinfo.meterinfo[0].f_bqf_state === '开阀'){
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
746
+ }
730
747
  this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
731
748
  userinfoms.userfiles = []
732
749
  this.userinfo_old.meterinfo[0].devicesinfo = this.model