apply-clients 3.5.4-76 → 3.5.4-78
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.
- package/build/dev-server.js +10 -5
- package/package.json +1 -1
- package/src/App.vue +25 -25
- package/src/apply.js +137 -137
- package/src/components/android/AppCheckTakePic.vue +168 -168
- package/src/components/android/Process/AppServiceControl.vue +1755 -1755
- package/src/components/product/Material/MaterialDetailed.vue +268 -268
- package/src/components/product/PcZhihuanManagement.vue +160 -160
- package/src/filiale/fugou/android/AppAddMaterialScience.vue +448 -448
- package/src/filiale/fugou/android/AppAddReplacement.vue +341 -341
- package/src/filiale/fugou/android/AppChargeManagement.vue +739 -739
- package/src/filiale/fugou/android/AppDevicesManagement.vue +519 -519
- package/src/filiale/fugou/android/AppServiceControl.vue +1843 -1843
- package/src/filiale/fugou/android/AppZhihuanManagement.vue +191 -191
- package/src/filiale/fugou/android.js +15 -15
- package/src/filiale/fugou/pc/AddReplacement.vue +340 -340
- package/src/filiale/fugou/pc/ExplorationSelect.vue +525 -515
- package/src/filiale/fugou/pc/InstallationDetails.vue +646 -646
- package/src/filiale/fugou/pc/ServiceControl.vue +1703 -1704
- package/src/filiale/fugou/pc/ServiceView.vue +941 -0
- package/src/filiale/fugou/pc/addMaterialScience.vue +481 -481
- package/src/filiale/fugou/pc/addressAndUserinfoManagement.vue +216 -216
- package/src/filiale/fugou/pc/devicesManagement.vue +483 -483
- package/src/filiale/fugou/pc.js +2 -1
- package/src/filiale/gongyi/android/AppAddMaterialScience.vue +493 -493
- package/src/filiale/qianneng/android/AppChargeManagement.vue +686 -686
- package/src/filiale/qianneng/android.js +15 -15
- package/src/filiale/qianneng/pc/Applydetail.vue +378 -378
- package/src/filiale/qianneng/pc/InstallFunction.vue +188 -188
- package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +526 -526
- package/src/filiale/yangchunboneng/android/AppDevicesManagement.vue +639 -639
- package/src/filiale/yangchunboneng/android/AppServiceControl.vue +1681 -1681
- package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +548 -548
- package/src/filiale/yangchunboneng/pc/ServiceControl.vue +2075 -2075
- package/src/filiale/yangchunboneng/pc/chargeManagement.vue +1058 -1058
- package/src/main.js +3 -2
|
@@ -1,646 +1,646 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<work-busy :is-busy="showWork" v-show="showWork"></work-busy>
|
|
3
|
-
|
|
4
|
-
<div class="col-sm-12" style="margin: 20px 0px;">
|
|
5
|
-
<criteria-paged :model="model" v-ref:cp :pager="pager">
|
|
6
|
-
<criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
|
|
7
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
-
</div>
|
|
9
|
-
</criteria>
|
|
10
|
-
<data-grid :model="model" v-ref:grid partial='list' class="list_area table_sy" style="padding: 0px">
|
|
11
|
-
<template partial='head'>
|
|
12
|
-
<tr>
|
|
13
|
-
<th>序号</th>
|
|
14
|
-
<th>气表类型</th>
|
|
15
|
-
<th>气表品牌</th>
|
|
16
|
-
<th>气表型号</th>
|
|
17
|
-
<th>表号</th>
|
|
18
|
-
<th>安装位置</th>
|
|
19
|
-
<th>安装人</th>
|
|
20
|
-
<th>安装时间</th>
|
|
21
|
-
<th>操作</th>
|
|
22
|
-
</tr>
|
|
23
|
-
</template>
|
|
24
|
-
<template partial='body'>
|
|
25
|
-
<tr>
|
|
26
|
-
<td style="text-align: center;">
|
|
27
|
-
<nobr>{{$index+1}}</nobr>
|
|
28
|
-
</td>
|
|
29
|
-
<td style="text-align: center;">
|
|
30
|
-
<nobr>{{row.f_meter_classify}}</nobr>
|
|
31
|
-
</td>
|
|
32
|
-
<td style="text-align: center;">
|
|
33
|
-
<nobr>{{row.f_gasbrand}}</nobr>
|
|
34
|
-
</td>
|
|
35
|
-
<td style="text-align: center;">
|
|
36
|
-
<nobr>{{row.f_gasmodel}}</nobr>
|
|
37
|
-
</td>
|
|
38
|
-
<td style="text-align: center;">
|
|
39
|
-
<nobr>{{row.f_meternumber}}</nobr>
|
|
40
|
-
</td>
|
|
41
|
-
<td style="text-align: center;">
|
|
42
|
-
<nobr>{{row.f_position}}</nobr>
|
|
43
|
-
</td>
|
|
44
|
-
<td style="text-align: center;">
|
|
45
|
-
<nobr>{{row.f_install_person}}</nobr>
|
|
46
|
-
</td>
|
|
47
|
-
<td style="text-align: center;">
|
|
48
|
-
<nobr>{{row.f_install_date}}</nobr>
|
|
49
|
-
</td>
|
|
50
|
-
<td style="text-align: center;">
|
|
51
|
-
<nobr>
|
|
52
|
-
<button
|
|
53
|
-
type="button" name="button" class="btn btn-link"
|
|
54
|
-
:disabled="row.f_cumulative_payment_money < $parent.$parent.$parent.selectdata.f_price && $parent.$parent.$parent.selectdata.f_apply_type !== '开发商集体报建'"
|
|
55
|
-
@click="$parent.$parent.$parent.showUserFileModal(row)">
|
|
56
|
-
{{$parent.$parent.$parent.mark === 1 ? '查看' : row.f_gasbrand ? '修正' : '添加'}}
|
|
57
|
-
</button>
|
|
58
|
-
</nobr>
|
|
59
|
-
</td>
|
|
60
|
-
</tr>
|
|
61
|
-
</template>
|
|
62
|
-
</data-grid>
|
|
63
|
-
</criteria-paged>
|
|
64
|
-
</div>
|
|
65
|
-
<modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
|
|
66
|
-
<header slot="modal-header" class="modal-header">
|
|
67
|
-
<button type="button" class="close" @click="closeFile"><span>×</span></button>
|
|
68
|
-
<h4 class="modal-title">选择文件</h4>
|
|
69
|
-
</header>
|
|
70
|
-
<article slot="modal-body" class="modal-body">
|
|
71
|
-
<div class="form-group">
|
|
72
|
-
<file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" v-ref:file></file-upload>
|
|
73
|
-
</div>
|
|
74
|
-
</article>
|
|
75
|
-
<footer slot="modal-footer" class="modal-footer"></footer>
|
|
76
|
-
</modal>
|
|
77
|
-
|
|
78
|
-
<modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false" title="安装明细">
|
|
79
|
-
<header slot="modal-header" class="modal-header">
|
|
80
|
-
<button type="button" class="close" @click="closeUserFile"><span>×</span></button>
|
|
81
|
-
<h4 class="modal-title">安装明细</h4>
|
|
82
|
-
</header>
|
|
83
|
-
<article slot="modal-body" class="modal-body clearfix">
|
|
84
|
-
<!-- <div class="form-group col-sm-12">-->
|
|
85
|
-
<!-- <label class="col-sm-2 control-label">地址信息:</label>-->
|
|
86
|
-
<!-- <div class="col-sm-10">-->
|
|
87
|
-
<!-- <input class="form-control input_view" style=""-->
|
|
88
|
-
<!-- v-model="useradders.f_address"-->
|
|
89
|
-
<!-- :value="useradders.f_address"-->
|
|
90
|
-
<!-- :readonly="true"/>-->
|
|
91
|
-
<!-- </div>-->
|
|
92
|
-
<!-- </div>-->
|
|
93
|
-
<div v-for="(i, item) in userinfo.userfiles" class="form-group col-sm-12 panel panel-info">
|
|
94
|
-
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
95
|
-
<div class="col-sm-6 text-left">表具{{$index+1}}信息</div>
|
|
96
|
-
<div class="col-sm-6 text-right"><button
|
|
97
|
-
class="button_delete button_spacing"
|
|
98
|
-
v-if="!item.f_userfiles_id"
|
|
99
|
-
@click.prevent="deleteUserFile(i)"
|
|
100
|
-
>删除</button></div>
|
|
101
|
-
</div>
|
|
102
|
-
<div class="form-group col-sm-6" :class="[item.gasbrand ? '' : 'has-error']">
|
|
103
|
-
<label class="col-sm-4 control-label">气表品牌:</label>
|
|
104
|
-
<div class="col-sm-8">
|
|
105
|
-
<input-select
|
|
106
|
-
class="select select_list"
|
|
107
|
-
:value.sync="item.gasbrand"
|
|
108
|
-
v-model="item.gasbrand"
|
|
109
|
-
:options="meterbrands"
|
|
110
|
-
@change="gasbrandChange(i)"
|
|
111
|
-
:disable="mark === 1"
|
|
112
|
-
:valueSingle="true"></input-select>
|
|
113
|
-
</div>
|
|
114
|
-
</div>
|
|
115
|
-
<div class="form-group col-sm-6" :class="[item.gasmodel ? '' : 'has-error']">
|
|
116
|
-
<label class="col-sm-4 control-label">气表型号:</label>
|
|
117
|
-
<div class="col-sm-8">
|
|
118
|
-
<input-select
|
|
119
|
-
class="select select_list"
|
|
120
|
-
:value.sync="item.gasmodel"
|
|
121
|
-
v-model="item.gasmodel"
|
|
122
|
-
:options.sync="item.gasbrand.gasmodel"
|
|
123
|
-
@change="gasmodelChange(i)"
|
|
124
|
-
:disable="mark === 1"
|
|
125
|
-
:valueSingle="true"></input-select>
|
|
126
|
-
</div>
|
|
127
|
-
</div>
|
|
128
|
-
<div class="form-group col-sm-6" :class="[item.f_meternumber ? '' : 'has-error']">
|
|
129
|
-
<label class="col-sm-4 control-label">表  号:</label>
|
|
130
|
-
<div class="col-sm-8">
|
|
131
|
-
<input class="form-control input_view" style=""
|
|
132
|
-
placeholder="表号"
|
|
133
|
-
type="number"
|
|
134
|
-
οnkeyup="this.value=this.value.replace(/\s+/g,'')"
|
|
135
|
-
v-model="item.f_meternumber"
|
|
136
|
-
:value="item.f_meternumber"
|
|
137
|
-
@change="meternumberValidate(i)"
|
|
138
|
-
:readonly="mark === 1"/>
|
|
139
|
-
</div>
|
|
140
|
-
</div>
|
|
141
|
-
<div class="form-group col-sm-6">
|
|
142
|
-
<label class="col-sm-4 control-label">表 封 号:</label>
|
|
143
|
-
<div class="col-sm-8">
|
|
144
|
-
<input class="form-control input_view" style=""
|
|
145
|
-
placeholder="表封号"
|
|
146
|
-
v-model="item.f_metertitles"
|
|
147
|
-
:value="item.f_metertitles"
|
|
148
|
-
@change="metertitlesValidate(i)"
|
|
149
|
-
:readonly="mark === 1"/>
|
|
150
|
-
</div>
|
|
151
|
-
</div>
|
|
152
|
-
<div class="form-group col-sm-6">
|
|
153
|
-
<label class="col-sm-4 control-label">表 读 数:</label>
|
|
154
|
-
<div class="col-sm-8">
|
|
155
|
-
<input class="form-control input_view" style=""
|
|
156
|
-
type="number"
|
|
157
|
-
placeholder="表读数"
|
|
158
|
-
v-model="item.f_meter_base"
|
|
159
|
-
:value="item.f_meter_base"
|
|
160
|
-
:readonly="mark === 1"/>
|
|
161
|
-
</div>
|
|
162
|
-
</div>
|
|
163
|
-
<div class="form-group col-sm-6">
|
|
164
|
-
<label class="col-sm-4 control-label">初始底数:</label>
|
|
165
|
-
<div class="col-sm-8">
|
|
166
|
-
<input class="form-control input_view" style=""
|
|
167
|
-
type="number"
|
|
168
|
-
v-model="item.f_initial_base"
|
|
169
|
-
:value="item.f_initial_base"
|
|
170
|
-
placeholder="初始底数"
|
|
171
|
-
:readonly="mark === 1"/>
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
<div class="form-group col-sm-6" :class="[item.f_aroundmeter ? '' : 'has-error']">
|
|
175
|
-
<label class="col-sm-4 control-label">表  向:</label>
|
|
176
|
-
<div class="col-sm-8">
|
|
177
|
-
<input-select
|
|
178
|
-
class="select select_list"
|
|
179
|
-
:value.sync="item.f_aroundmeter"
|
|
180
|
-
v-model="item.f_aroundmeter"
|
|
181
|
-
:options="aroundmeters"
|
|
182
|
-
:disable="mark === 1"
|
|
183
|
-
:valueSingle="true"></input-select>
|
|
184
|
-
</div>
|
|
185
|
-
</div>
|
|
186
|
-
<div class="form-group col-sm-6">
|
|
187
|
-
<label class="col-sm-4 control-label">安装位置:</label>
|
|
188
|
-
<div class="col-sm-8">
|
|
189
|
-
<input-select
|
|
190
|
-
class="select select_list"
|
|
191
|
-
:value.sync="item.f_position"
|
|
192
|
-
v-model="item.f_position"
|
|
193
|
-
:options="positions"
|
|
194
|
-
:disable="mark === 1"
|
|
195
|
-
:valueSingle="true"></input-select>
|
|
196
|
-
</div>
|
|
197
|
-
</div>
|
|
198
|
-
<div class="form-group col-sm-6">
|
|
199
|
-
<label class="col-sm-4 control-label">安 装 人:</label>
|
|
200
|
-
<div class="col-sm-8">
|
|
201
|
-
<input class="form-control input_view" style=""
|
|
202
|
-
v-model="item.f_install_person"
|
|
203
|
-
:value.sync="installperson(item.f_install_person)"
|
|
204
|
-
placeholder="安装人"
|
|
205
|
-
readonly/>
|
|
206
|
-
<!-- <input-select-->
|
|
207
|
-
<!-- class="select select_list"-->
|
|
208
|
-
<!-- :value.sync="item.f_install_person"-->
|
|
209
|
-
<!-- v-model="item.f_install_person"-->
|
|
210
|
-
<!-- :options="installperson"-->
|
|
211
|
-
<!-- :disable="mark === 1"-->
|
|
212
|
-
<!-- :valueSingle="true"></input-select>-->
|
|
213
|
-
</div>
|
|
214
|
-
</div>
|
|
215
|
-
<div class="form-group col-sm-6">
|
|
216
|
-
<label class="col-sm-4 control-label">安装日期:</label>
|
|
217
|
-
<div class="col-sm-8">
|
|
218
|
-
<input class="form-control input_view" style=""
|
|
219
|
-
v-model="item.f_install_date"
|
|
220
|
-
:value.sync="installdate(item.f_install_date)"
|
|
221
|
-
placeholder="安装日期"
|
|
222
|
-
readonly/>
|
|
223
|
-
<!-- <datepicker-->
|
|
224
|
-
<!-- placeholder="安装日期"-->
|
|
225
|
-
<!-- :value.sync="item.f_install_date"-->
|
|
226
|
-
<!-- v-model="item.f_install_date"-->
|
|
227
|
-
<!-- format="yyyy-MM-dd HH:mm:ss"-->
|
|
228
|
-
<!-- :disabled="mark === 1"-->
|
|
229
|
-
<!-- :show-reset-button="reset">-->
|
|
230
|
-
<!-- </datepicker>-->
|
|
231
|
-
</div>
|
|
232
|
-
</div>
|
|
233
|
-
</div>
|
|
234
|
-
|
|
235
|
-
</article>
|
|
236
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
237
|
-
<template v-if="mark !== 1">
|
|
238
|
-
<!-- 去除一户多表 -->
|
|
239
|
-
<button type="button" class="btn btn-primary" @click="addUserFile" v-if="false">添加表具</button>
|
|
240
|
-
<button type="button" class="btn btn-primary" @click="saveUserFile" :disabled="!$v.valid">确认</button>
|
|
241
|
-
</template>
|
|
242
|
-
</footer>
|
|
243
|
-
</modal>
|
|
244
|
-
</template>
|
|
245
|
-
<script>
|
|
246
|
-
import Vue from 'vue'
|
|
247
|
-
import {PagedList} from 'vue-client'
|
|
248
|
-
import {HttpResetClass} from 'vue-client'
|
|
249
|
-
import {isEmpty} from '../../../components/Util'
|
|
250
|
-
// Date格式化
|
|
251
|
-
Date.prototype.Format = function (fmt) {
|
|
252
|
-
var o = {
|
|
253
|
-
'M+': this.getMonth() + 1, // 月份
|
|
254
|
-
'd+': this.getDate(), // 日
|
|
255
|
-
'H+': this.getHours(), // 小时
|
|
256
|
-
'm+': this.getMinutes(), // 分
|
|
257
|
-
's+': this.getSeconds(), // 秒
|
|
258
|
-
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
259
|
-
'S': this.getMilliseconds() // 毫秒
|
|
260
|
-
}
|
|
261
|
-
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
262
|
-
for (var k in o) {
|
|
263
|
-
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
264
|
-
}
|
|
265
|
-
return fmt
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
export default {
|
|
269
|
-
title: '安装明细',
|
|
270
|
-
props: {
|
|
271
|
-
selectdata: {
|
|
272
|
-
type: Object
|
|
273
|
-
},
|
|
274
|
-
mark: {
|
|
275
|
-
type: Number,
|
|
276
|
-
default: 0
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
data () {
|
|
280
|
-
return {
|
|
281
|
-
showFile: false,
|
|
282
|
-
showUserFile: false,
|
|
283
|
-
model: new PagedList('rs/sql/getAddresAndUserinfoAndUserfilesAmount', 20, null),
|
|
284
|
-
meterbrands: [], // 气表品牌
|
|
285
|
-
useradders: null,
|
|
286
|
-
userinfo: {},
|
|
287
|
-
getfield: {
|
|
288
|
-
'f_address': '地址',
|
|
289
|
-
'f_user_name': '用户姓名/单位名称',
|
|
290
|
-
'f_meternumber': '表号',
|
|
291
|
-
'f_gasbrand': '气表品牌',
|
|
292
|
-
'f_gasmodel': '气表型号',
|
|
293
|
-
'f_metertitles': '表封号',
|
|
294
|
-
'f_meter_base': '表读数',
|
|
295
|
-
'f_initial_base': '初始底数',
|
|
296
|
-
'f_aroundmeter': '表向',
|
|
297
|
-
'f_user_phone': '电话',
|
|
298
|
-
'f_userinfo_comments': '备注',
|
|
299
|
-
'f_position': '安装位置',
|
|
300
|
-
'f_userinfo_code': '用户编号',
|
|
301
|
-
'f_material_name': '材料名称',
|
|
302
|
-
'f_material_style': '材料型号',
|
|
303
|
-
'f_material_price': '材料价格',
|
|
304
|
-
'f_material_unit': '材料单位',
|
|
305
|
-
'f_material_number': '材料数量'
|
|
306
|
-
},
|
|
307
|
-
showWork: false
|
|
308
|
-
}
|
|
309
|
-
},
|
|
310
|
-
ready () {
|
|
311
|
-
this.search()
|
|
312
|
-
this.getMeterbrands()
|
|
313
|
-
if (this.selectdata.f_apply_type === '团购报建') {
|
|
314
|
-
this.notInstalled()
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
|
-
methods: {
|
|
318
|
-
// 删除未保存的表具
|
|
319
|
-
async deleteUserFile (index) {
|
|
320
|
-
this.userinfo.userfiles.splice(index, 1)
|
|
321
|
-
},
|
|
322
|
-
// 追加表具
|
|
323
|
-
addUserFile() {
|
|
324
|
-
this.userinfo.userfiles.push({})
|
|
325
|
-
},
|
|
326
|
-
// 保存档案
|
|
327
|
-
async saveUserFile() {
|
|
328
|
-
// 检查必填项
|
|
329
|
-
for (let i = 0; i < this.userinfo.userfiles.length; i++) {
|
|
330
|
-
let userfile = this.userinfo.userfiles[i]
|
|
331
|
-
if (userfile.f_gasbrand_id === null || userfile.f_gasbrand_id === '') {
|
|
332
|
-
this.$showMessage(`表具${i+1}气表品牌没有选择!!!`)
|
|
333
|
-
return
|
|
334
|
-
}
|
|
335
|
-
if (userfile.f_gasmodel_id === null || userfile.f_gasmodel_id === '') {
|
|
336
|
-
this.$showMessage(`表具${i+1}气表型号没有选择!!!`)
|
|
337
|
-
return
|
|
338
|
-
}
|
|
339
|
-
if (userfile.f_meternumber === null || userfile.f_meternumber === '') {
|
|
340
|
-
this.$showMessage(`表具${i+1}表号没有填写!!!`)
|
|
341
|
-
return
|
|
342
|
-
}
|
|
343
|
-
if (isEmpty(userfile.f_initial_base)) {
|
|
344
|
-
this.$showMessage(`表具${i+1}表底数没有填写!!!`)
|
|
345
|
-
return
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
if (!isEmpty(this.userinfo.userfiles[0].f_initial_base)){
|
|
349
|
-
let temp = parseFloat(this.$appdata.getSingleValue('初始表底数'))
|
|
350
|
-
let initial_base = parseFloat(this.userinfo.userfiles[0].f_initial_base)
|
|
351
|
-
if (initial_base > temp){
|
|
352
|
-
let row = await this.$showMessage(`请确认初始表底数是否正确,当前表底数:${initial_base},系统默认表底数:${temp}`)
|
|
353
|
-
if (row == 'confirm') {
|
|
354
|
-
let data = {
|
|
355
|
-
user: this.$login.f,
|
|
356
|
-
useradders: this.useradders,
|
|
357
|
-
userinfo: this.userinfo,
|
|
358
|
-
selectdata: this.selectdata
|
|
359
|
-
}
|
|
360
|
-
let res = await this.$resetpost('rs/logic/addInstallationDetails', {data:data}, {
|
|
361
|
-
resolveMsg: null,
|
|
362
|
-
rejectMsg: '表具添加失败!!!'
|
|
363
|
-
})
|
|
364
|
-
this.$dispatch('breakControl', this.selectdata)
|
|
365
|
-
}
|
|
366
|
-
}else {
|
|
367
|
-
let data = {
|
|
368
|
-
user: this.$login.f,
|
|
369
|
-
useradders: this.useradders,
|
|
370
|
-
userinfo: this.userinfo,
|
|
371
|
-
selectdata: this.selectdata
|
|
372
|
-
}
|
|
373
|
-
let res = await this.$resetpost('rs/logic/addInstallationDetails', {data:data}, {
|
|
374
|
-
resolveMsg: null,
|
|
375
|
-
rejectMsg: '表具添加失败!!!'
|
|
376
|
-
})
|
|
377
|
-
this.$dispatch('breakControl', this.selectdata)
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
},
|
|
381
|
-
// 检查表号是否存在
|
|
382
|
-
async meternumberValidate(i) {
|
|
383
|
-
if (!this.userinfo.userfiles[i].f_gasbrand_id) {
|
|
384
|
-
this.userinfo.userfiles[i].f_meternumber = ''
|
|
385
|
-
this.$showAlert('请先选择气表品牌!!!', 'warning', 3000)
|
|
386
|
-
return
|
|
387
|
-
}
|
|
388
|
-
if (this.userinfo.userfiles[i].f_gasbrand_id && this.userinfo.userfiles[i].f_meternumber) {
|
|
389
|
-
let data = {
|
|
390
|
-
f_meternumber: this.userinfo.userfiles[i].f_meternumber,
|
|
391
|
-
f_gasbrand_id: this.userinfo.userfiles[i].f_gasbrand_id
|
|
392
|
-
}
|
|
393
|
-
if (this.userinfo.userfiles[i].f_userfiles_id) {
|
|
394
|
-
data.f_userfiles_id = this.userinfo.userfiles[i].f_userfiles_id
|
|
395
|
-
}
|
|
396
|
-
let res = await this.$resetpost('rs/logic/meterbrandsNumberValidate', {data:data}, {
|
|
397
|
-
resolveMsg: null,
|
|
398
|
-
rejectMsg: '表号验证失败!!'
|
|
399
|
-
})
|
|
400
|
-
if (res.data) {
|
|
401
|
-
this.userinfo.userfiles[i].f_meternumber = ''
|
|
402
|
-
this.$showAlert('表号已存在!!', 'warning', 3000)
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
},
|
|
406
|
-
// 检查表封号是否存在
|
|
407
|
-
async metertitlesValidate(i) {
|
|
408
|
-
if (!this.userinfo.userfiles[i].f_gasbrand_id) {
|
|
409
|
-
this.userinfo.userfiles[i].f_meternumber = ''
|
|
410
|
-
this.$showAlert('请先选择气表品牌!!!', 'warning', 3000)
|
|
411
|
-
return
|
|
412
|
-
}
|
|
413
|
-
if (this.userinfo.userfiles[i].f_gasbrand_id && this.userinfo.userfiles[i].f_metertitles) {
|
|
414
|
-
let data = {
|
|
415
|
-
tablename: 't_userfiles',
|
|
416
|
-
condition: `f_metertitles = '${this.userinfo.userfiles[i].f_metertitles}' and f_gasbrand_id = '${this.userinfo.userfiles[i].f_gasbrand_id}' and f_table_state in ('正常','待开通') `
|
|
417
|
-
}
|
|
418
|
-
let res = await this.$resetpost('rs/sql/apply_singleTable', {data:data}, {
|
|
419
|
-
resolveMsg: null,
|
|
420
|
-
rejectMsg: '表封号验证失败!!'
|
|
421
|
-
})
|
|
422
|
-
if (res.data.length > 0) {
|
|
423
|
-
this.$showAlert('表封号已存在!!', 'warning', 3000)
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
},
|
|
427
|
-
// 选择气表型号
|
|
428
|
-
gasmodelChange(i) {
|
|
429
|
-
if (this.userinfo.userfiles[i].gasmodel) {
|
|
430
|
-
this.userinfo.userfiles[i].f_gasmodel_id = this.userinfo.userfiles[i].gasmodel.id
|
|
431
|
-
}
|
|
432
|
-
},
|
|
433
|
-
// 选择气表品牌
|
|
434
|
-
gasbrandChange(i) {
|
|
435
|
-
// 清空已保存的气表型号
|
|
436
|
-
this.userinfo.userfiles[i].f_gasmodel_id = null
|
|
437
|
-
this.userinfo.userfiles[i].gasmodel = null
|
|
438
|
-
|
|
439
|
-
if (this.userinfo.userfiles[i].gasbrand) {
|
|
440
|
-
// 气表品牌id
|
|
441
|
-
this.userinfo.userfiles[i].f_gasbrand_id = this.userinfo.userfiles[i].gasbrand.id
|
|
442
|
-
// 气表分类
|
|
443
|
-
this.userinfo.userfiles[i].f_meter_classify = this.userinfo.userfiles[i].gasbrand.f_meter_type
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
// 打开安装明细
|
|
447
|
-
async showUserFileModal (row) {
|
|
448
|
-
this.useradders = row
|
|
449
|
-
|
|
450
|
-
let http = new HttpResetClass()
|
|
451
|
-
let data = {
|
|
452
|
-
condition: `f_userinfo_id = '${row.f_userinfo_id}'`
|
|
453
|
-
}
|
|
454
|
-
let res = await http.load('POST', 'rs/logic/getUserinfoAndUserfiles', {data:data}, {
|
|
455
|
-
resolveMsg: null,
|
|
456
|
-
rejectMsg: null
|
|
457
|
-
})
|
|
458
|
-
|
|
459
|
-
this.userinfo = res.data
|
|
460
|
-
|
|
461
|
-
// 已有表具的 气表信息补充
|
|
462
|
-
for (let i = 0; i < this.userinfo.userfiles.length; i++) {
|
|
463
|
-
for (const item of this.meterbrands) {
|
|
464
|
-
if (item.value.id === this.userinfo.userfiles[i].f_gasbrand_id) {
|
|
465
|
-
// this.userinfo.userfiles[i].gasbrand = item.value // 防止双向绑定失败
|
|
466
|
-
Vue.set(this.userinfo.userfiles[i], 'gasbrand', item.value)
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
if (this.userinfo.userfiles[i].gasbrand) {
|
|
470
|
-
for (const item of this.userinfo.userfiles[i].gasbrand.gasmodel) {
|
|
471
|
-
if (item.value.id === this.userinfo.userfiles[i].f_gasmodel_id) {
|
|
472
|
-
// this.userinfo.userfiles[i].gasmodel = item.value
|
|
473
|
-
Vue.set(this.userinfo.userfiles[i], 'gasmodel', item.value)
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
this.showUserFile = true
|
|
480
|
-
},
|
|
481
|
-
// 获取气表品牌
|
|
482
|
-
async getMeterbrands() {
|
|
483
|
-
let http = new HttpResetClass()
|
|
484
|
-
let data = {
|
|
485
|
-
f_orgid: this.$login.f.orgid
|
|
486
|
-
}
|
|
487
|
-
let res = await http.load('POST', 'rs/logic/getMeterbrands', {data:data}, {
|
|
488
|
-
resolveMsg: null,
|
|
489
|
-
rejectMsg: null
|
|
490
|
-
})
|
|
491
|
-
this.meterbrands = res.data
|
|
492
|
-
},
|
|
493
|
-
async notInstalled () {
|
|
494
|
-
let http = new HttpResetClass()
|
|
495
|
-
let data = {
|
|
496
|
-
condition: `ui.f_process_id = '${this.selectdata.f_process_id}' and uf.f_table_state != '待开通'`
|
|
497
|
-
}
|
|
498
|
-
let res = await http.load(
|
|
499
|
-
'POST',
|
|
500
|
-
'rs/sql/countApplyUserinfo',
|
|
501
|
-
{data: data},
|
|
502
|
-
{
|
|
503
|
-
resolveMsg: null,
|
|
504
|
-
rejectMsg: '安装数量查询失败!!!'
|
|
505
|
-
})
|
|
506
|
-
|
|
507
|
-
for (const item of this.selectdata.fields) {
|
|
508
|
-
if (item.label === '已安装户数') {
|
|
509
|
-
item.value = this.selectdata.f_apply_count - res.data[0].num
|
|
510
|
-
}
|
|
511
|
-
if (item.label === '未安装户数') {
|
|
512
|
-
item.value = res.data[0].num
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
},
|
|
516
|
-
searchCondition (args) {
|
|
517
|
-
var tablestate=''
|
|
518
|
-
if(this.selectdata.f_sub_state==='完工'){
|
|
519
|
-
tablestate='正常'
|
|
520
|
-
}else{
|
|
521
|
-
tablestate='待开通'
|
|
522
|
-
}
|
|
523
|
-
if (this.selectdata.f_apply_type === '团购转散户' || this.selectdata.f_apply_type === '改管报建' || this.selectdata.f_apply_type === '增容报建' || this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建') {
|
|
524
|
-
args.condition = args.condition + `and ui.f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
|
|
525
|
-
} else {
|
|
526
|
-
args.condition = args.condition + `and ua.f_process_id = '${this.selectdata.f_process_id}'`
|
|
527
|
-
}
|
|
528
|
-
this.model.search(args.condition, args.model,tablestate)
|
|
529
|
-
},
|
|
530
|
-
// 查询
|
|
531
|
-
async search () {
|
|
532
|
-
this.$refs.cp.$refs.cri.search()
|
|
533
|
-
},
|
|
534
|
-
// 关闭安装明细
|
|
535
|
-
closeUserFile() {
|
|
536
|
-
this.showUserFile = false
|
|
537
|
-
this.useradders = null
|
|
538
|
-
this.userinfo = {}
|
|
539
|
-
this.search()
|
|
540
|
-
},
|
|
541
|
-
// 关闭文件上传对话框
|
|
542
|
-
closeFile() {
|
|
543
|
-
this.showWork = false
|
|
544
|
-
this.showFile = false
|
|
545
|
-
// 将选的文件清空
|
|
546
|
-
this.$refs.file.$el.querySelector('input').value = ''
|
|
547
|
-
this.search()
|
|
548
|
-
}
|
|
549
|
-
},
|
|
550
|
-
events: {
|
|
551
|
-
'beforeFileUpload' (file) {
|
|
552
|
-
this.showWork = true
|
|
553
|
-
},
|
|
554
|
-
async 'onFileUpload'(file, result) {
|
|
555
|
-
let data = {
|
|
556
|
-
selectdata: this.selectdata,
|
|
557
|
-
filepath: result.f_downloadpath,
|
|
558
|
-
user: this.$login.f
|
|
559
|
-
}
|
|
560
|
-
try {
|
|
561
|
-
let res = await this.$resetpost(`rs/logic/importAddInstallationDetails`, {data: data}, {
|
|
562
|
-
resolveMsg: null,
|
|
563
|
-
rejectMsg: '导入失败!!!',
|
|
564
|
-
silent: true
|
|
565
|
-
}, 0)
|
|
566
|
-
} catch (e) {
|
|
567
|
-
this.closeFile()
|
|
568
|
-
}
|
|
569
|
-
this.$dispatch('breakControl', this.selectdata)
|
|
570
|
-
}
|
|
571
|
-
},
|
|
572
|
-
computed: {
|
|
573
|
-
pager () {
|
|
574
|
-
return this.selectdata.f_apply_type === '团购报建'
|
|
575
|
-
},
|
|
576
|
-
getCondition () {
|
|
577
|
-
let condition = `ua.f_process_id = '${this.selectdata.f_process_id}'`
|
|
578
|
-
|
|
579
|
-
return {
|
|
580
|
-
condition: condition
|
|
581
|
-
}
|
|
582
|
-
},
|
|
583
|
-
// 安装人
|
|
584
|
-
installperson() {
|
|
585
|
-
return function (f_install_person) {
|
|
586
|
-
if (isEmpty(f_install_person)) {
|
|
587
|
-
return this.$login.f.name
|
|
588
|
-
}
|
|
589
|
-
return f_install_person
|
|
590
|
-
}
|
|
591
|
-
},
|
|
592
|
-
installdate() {
|
|
593
|
-
return function (f_install_date) {
|
|
594
|
-
if (isEmpty(f_install_date)) {
|
|
595
|
-
return new Date().Format('yyyy-MM-dd HH:mm:ss')
|
|
596
|
-
}
|
|
597
|
-
return f_install_date
|
|
598
|
-
}
|
|
599
|
-
},
|
|
600
|
-
// 表向
|
|
601
|
-
aroundmeters() {
|
|
602
|
-
return this.$appdata.getParam('左右表')
|
|
603
|
-
},
|
|
604
|
-
// 安装位置
|
|
605
|
-
positions() {
|
|
606
|
-
return this.$appdata.getParam('安装位置')
|
|
607
|
-
}
|
|
608
|
-
},
|
|
609
|
-
watch: {
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
</script>
|
|
613
|
-
<style scoped>
|
|
614
|
-
.head-but{
|
|
615
|
-
margin-left: 5px;
|
|
616
|
-
height: 34px;
|
|
617
|
-
/*background-color: #6aa6e2;*/
|
|
618
|
-
border-radius: 4px;
|
|
619
|
-
font-family: PingFang;
|
|
620
|
-
color: #ffffff;
|
|
621
|
-
}
|
|
622
|
-
/*清除model中的浮动*/
|
|
623
|
-
.clearfix:after,.clearfix:before{
|
|
624
|
-
display: table;
|
|
625
|
-
}
|
|
626
|
-
.clearfix:after{
|
|
627
|
-
clear: both;
|
|
628
|
-
}
|
|
629
|
-
.input_view{
|
|
630
|
-
padding: 8px;
|
|
631
|
-
background-color: #ffffff;
|
|
632
|
-
border-radius: 2px;
|
|
633
|
-
border: solid 1px #c7c7c7!important;
|
|
634
|
-
color: #333333!important;
|
|
635
|
-
font-size: 15px!important;
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
.input_view[readonly]{
|
|
639
|
-
border: 1px solid #DDD!important;
|
|
640
|
-
color:#ACA899!important;
|
|
641
|
-
}
|
|
642
|
-
.input_view:disabled{
|
|
643
|
-
border: 1px solid #DDD!important;
|
|
644
|
-
color:#ACA899!important;
|
|
645
|
-
}
|
|
646
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<work-busy :is-busy="showWork" v-show="showWork"></work-busy>
|
|
3
|
+
|
|
4
|
+
<div class="col-sm-12" style="margin: 20px 0px;">
|
|
5
|
+
<criteria-paged :model="model" v-ref:cp :pager="pager">
|
|
6
|
+
<criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
|
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
+
</div>
|
|
9
|
+
</criteria>
|
|
10
|
+
<data-grid :model="model" v-ref:grid partial='list' class="list_area table_sy" style="padding: 0px">
|
|
11
|
+
<template partial='head'>
|
|
12
|
+
<tr>
|
|
13
|
+
<th>序号</th>
|
|
14
|
+
<th>气表类型</th>
|
|
15
|
+
<th>气表品牌</th>
|
|
16
|
+
<th>气表型号</th>
|
|
17
|
+
<th>表号</th>
|
|
18
|
+
<th>安装位置</th>
|
|
19
|
+
<th>安装人</th>
|
|
20
|
+
<th>安装时间</th>
|
|
21
|
+
<th>操作</th>
|
|
22
|
+
</tr>
|
|
23
|
+
</template>
|
|
24
|
+
<template partial='body'>
|
|
25
|
+
<tr>
|
|
26
|
+
<td style="text-align: center;">
|
|
27
|
+
<nobr>{{$index+1}}</nobr>
|
|
28
|
+
</td>
|
|
29
|
+
<td style="text-align: center;">
|
|
30
|
+
<nobr>{{row.f_meter_classify}}</nobr>
|
|
31
|
+
</td>
|
|
32
|
+
<td style="text-align: center;">
|
|
33
|
+
<nobr>{{row.f_gasbrand}}</nobr>
|
|
34
|
+
</td>
|
|
35
|
+
<td style="text-align: center;">
|
|
36
|
+
<nobr>{{row.f_gasmodel}}</nobr>
|
|
37
|
+
</td>
|
|
38
|
+
<td style="text-align: center;">
|
|
39
|
+
<nobr>{{row.f_meternumber}}</nobr>
|
|
40
|
+
</td>
|
|
41
|
+
<td style="text-align: center;">
|
|
42
|
+
<nobr>{{row.f_position}}</nobr>
|
|
43
|
+
</td>
|
|
44
|
+
<td style="text-align: center;">
|
|
45
|
+
<nobr>{{row.f_install_person}}</nobr>
|
|
46
|
+
</td>
|
|
47
|
+
<td style="text-align: center;">
|
|
48
|
+
<nobr>{{row.f_install_date}}</nobr>
|
|
49
|
+
</td>
|
|
50
|
+
<td style="text-align: center;">
|
|
51
|
+
<nobr>
|
|
52
|
+
<button
|
|
53
|
+
type="button" name="button" class="btn btn-link"
|
|
54
|
+
:disabled="row.f_cumulative_payment_money < $parent.$parent.$parent.selectdata.f_price && $parent.$parent.$parent.selectdata.f_apply_type !== '开发商集体报建'"
|
|
55
|
+
@click="$parent.$parent.$parent.showUserFileModal(row)">
|
|
56
|
+
{{$parent.$parent.$parent.mark === 1 ? '查看' : row.f_gasbrand ? '修正' : '添加'}}
|
|
57
|
+
</button>
|
|
58
|
+
</nobr>
|
|
59
|
+
</td>
|
|
60
|
+
</tr>
|
|
61
|
+
</template>
|
|
62
|
+
</data-grid>
|
|
63
|
+
</criteria-paged>
|
|
64
|
+
</div>
|
|
65
|
+
<modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
|
|
66
|
+
<header slot="modal-header" class="modal-header">
|
|
67
|
+
<button type="button" class="close" @click="closeFile"><span>×</span></button>
|
|
68
|
+
<h4 class="modal-title">选择文件</h4>
|
|
69
|
+
</header>
|
|
70
|
+
<article slot="modal-body" class="modal-body">
|
|
71
|
+
<div class="form-group">
|
|
72
|
+
<file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" v-ref:file></file-upload>
|
|
73
|
+
</div>
|
|
74
|
+
</article>
|
|
75
|
+
<footer slot="modal-footer" class="modal-footer"></footer>
|
|
76
|
+
</modal>
|
|
77
|
+
|
|
78
|
+
<modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false" title="安装明细">
|
|
79
|
+
<header slot="modal-header" class="modal-header">
|
|
80
|
+
<button type="button" class="close" @click="closeUserFile"><span>×</span></button>
|
|
81
|
+
<h4 class="modal-title">安装明细</h4>
|
|
82
|
+
</header>
|
|
83
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
84
|
+
<!-- <div class="form-group col-sm-12">-->
|
|
85
|
+
<!-- <label class="col-sm-2 control-label">地址信息:</label>-->
|
|
86
|
+
<!-- <div class="col-sm-10">-->
|
|
87
|
+
<!-- <input class="form-control input_view" style=""-->
|
|
88
|
+
<!-- v-model="useradders.f_address"-->
|
|
89
|
+
<!-- :value="useradders.f_address"-->
|
|
90
|
+
<!-- :readonly="true"/>-->
|
|
91
|
+
<!-- </div>-->
|
|
92
|
+
<!-- </div>-->
|
|
93
|
+
<div v-for="(i, item) in userinfo.userfiles" class="form-group col-sm-12 panel panel-info">
|
|
94
|
+
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
95
|
+
<div class="col-sm-6 text-left">表具{{$index+1}}信息</div>
|
|
96
|
+
<div class="col-sm-6 text-right"><button
|
|
97
|
+
class="button_delete button_spacing"
|
|
98
|
+
v-if="!item.f_userfiles_id"
|
|
99
|
+
@click.prevent="deleteUserFile(i)"
|
|
100
|
+
>删除</button></div>
|
|
101
|
+
</div>
|
|
102
|
+
<div class="form-group col-sm-6" :class="[item.gasbrand ? '' : 'has-error']">
|
|
103
|
+
<label class="col-sm-4 control-label">气表品牌:</label>
|
|
104
|
+
<div class="col-sm-8">
|
|
105
|
+
<input-select
|
|
106
|
+
class="select select_list"
|
|
107
|
+
:value.sync="item.gasbrand"
|
|
108
|
+
v-model="item.gasbrand"
|
|
109
|
+
:options="meterbrands"
|
|
110
|
+
@change="gasbrandChange(i)"
|
|
111
|
+
:disable="mark === 1"
|
|
112
|
+
:valueSingle="true"></input-select>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
<div class="form-group col-sm-6" :class="[item.gasmodel ? '' : 'has-error']">
|
|
116
|
+
<label class="col-sm-4 control-label">气表型号:</label>
|
|
117
|
+
<div class="col-sm-8">
|
|
118
|
+
<input-select
|
|
119
|
+
class="select select_list"
|
|
120
|
+
:value.sync="item.gasmodel"
|
|
121
|
+
v-model="item.gasmodel"
|
|
122
|
+
:options.sync="item.gasbrand.gasmodel"
|
|
123
|
+
@change="gasmodelChange(i)"
|
|
124
|
+
:disable="mark === 1"
|
|
125
|
+
:valueSingle="true"></input-select>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
<div class="form-group col-sm-6" :class="[item.f_meternumber ? '' : 'has-error']">
|
|
129
|
+
<label class="col-sm-4 control-label">表  号:</label>
|
|
130
|
+
<div class="col-sm-8">
|
|
131
|
+
<input class="form-control input_view" style=""
|
|
132
|
+
placeholder="表号"
|
|
133
|
+
type="number"
|
|
134
|
+
οnkeyup="this.value=this.value.replace(/\s+/g,'')"
|
|
135
|
+
v-model="item.f_meternumber"
|
|
136
|
+
:value="item.f_meternumber"
|
|
137
|
+
@change="meternumberValidate(i)"
|
|
138
|
+
:readonly="mark === 1"/>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
<div class="form-group col-sm-6" :class="[item.f_metertitles ? '' : 'has-error']">
|
|
142
|
+
<label class="col-sm-4 control-label">表 封 号:</label>
|
|
143
|
+
<div class="col-sm-8">
|
|
144
|
+
<input class="form-control input_view" style=""
|
|
145
|
+
placeholder="表封号"
|
|
146
|
+
v-model="item.f_metertitles"
|
|
147
|
+
:value="item.f_metertitles"
|
|
148
|
+
@change="metertitlesValidate(i)"
|
|
149
|
+
:readonly="mark === 1"/>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
<div class="form-group col-sm-6">
|
|
153
|
+
<label class="col-sm-4 control-label">表 读 数:</label>
|
|
154
|
+
<div class="col-sm-8">
|
|
155
|
+
<input class="form-control input_view" style=""
|
|
156
|
+
type="number"
|
|
157
|
+
placeholder="表读数"
|
|
158
|
+
v-model="item.f_meter_base"
|
|
159
|
+
:value="item.f_meter_base"
|
|
160
|
+
:readonly="mark === 1"/>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
<div class="form-group col-sm-6">
|
|
164
|
+
<label class="col-sm-4 control-label">初始底数:</label>
|
|
165
|
+
<div class="col-sm-8">
|
|
166
|
+
<input class="form-control input_view" style=""
|
|
167
|
+
type="number"
|
|
168
|
+
v-model="item.f_initial_base"
|
|
169
|
+
:value="item.f_initial_base"
|
|
170
|
+
placeholder="初始底数"
|
|
171
|
+
:readonly="mark === 1"/>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
<div class="form-group col-sm-6" :class="[item.f_aroundmeter ? '' : 'has-error']">
|
|
175
|
+
<label class="col-sm-4 control-label">表  向:</label>
|
|
176
|
+
<div class="col-sm-8">
|
|
177
|
+
<input-select
|
|
178
|
+
class="select select_list"
|
|
179
|
+
:value.sync="item.f_aroundmeter"
|
|
180
|
+
v-model="item.f_aroundmeter"
|
|
181
|
+
:options="aroundmeters"
|
|
182
|
+
:disable="mark === 1"
|
|
183
|
+
:valueSingle="true"></input-select>
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
<div class="form-group col-sm-6">
|
|
187
|
+
<label class="col-sm-4 control-label">安装位置:</label>
|
|
188
|
+
<div class="col-sm-8">
|
|
189
|
+
<input-select
|
|
190
|
+
class="select select_list"
|
|
191
|
+
:value.sync="item.f_position"
|
|
192
|
+
v-model="item.f_position"
|
|
193
|
+
:options="positions"
|
|
194
|
+
:disable="mark === 1"
|
|
195
|
+
:valueSingle="true"></input-select>
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
<div class="form-group col-sm-6">
|
|
199
|
+
<label class="col-sm-4 control-label">安 装 人:</label>
|
|
200
|
+
<div class="col-sm-8">
|
|
201
|
+
<input class="form-control input_view" style=""
|
|
202
|
+
v-model="item.f_install_person"
|
|
203
|
+
:value.sync="installperson(item.f_install_person)"
|
|
204
|
+
placeholder="安装人"
|
|
205
|
+
readonly/>
|
|
206
|
+
<!-- <input-select-->
|
|
207
|
+
<!-- class="select select_list"-->
|
|
208
|
+
<!-- :value.sync="item.f_install_person"-->
|
|
209
|
+
<!-- v-model="item.f_install_person"-->
|
|
210
|
+
<!-- :options="installperson"-->
|
|
211
|
+
<!-- :disable="mark === 1"-->
|
|
212
|
+
<!-- :valueSingle="true"></input-select>-->
|
|
213
|
+
</div>
|
|
214
|
+
</div>
|
|
215
|
+
<div class="form-group col-sm-6">
|
|
216
|
+
<label class="col-sm-4 control-label">安装日期:</label>
|
|
217
|
+
<div class="col-sm-8">
|
|
218
|
+
<input class="form-control input_view" style=""
|
|
219
|
+
v-model="item.f_install_date"
|
|
220
|
+
:value.sync="installdate(item.f_install_date)"
|
|
221
|
+
placeholder="安装日期"
|
|
222
|
+
readonly/>
|
|
223
|
+
<!-- <datepicker-->
|
|
224
|
+
<!-- placeholder="安装日期"-->
|
|
225
|
+
<!-- :value.sync="item.f_install_date"-->
|
|
226
|
+
<!-- v-model="item.f_install_date"-->
|
|
227
|
+
<!-- format="yyyy-MM-dd HH:mm:ss"-->
|
|
228
|
+
<!-- :disabled="mark === 1"-->
|
|
229
|
+
<!-- :show-reset-button="reset">-->
|
|
230
|
+
<!-- </datepicker>-->
|
|
231
|
+
</div>
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
|
|
235
|
+
</article>
|
|
236
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
237
|
+
<template v-if="mark !== 1">
|
|
238
|
+
<!-- 去除一户多表 -->
|
|
239
|
+
<button type="button" class="btn btn-primary" @click="addUserFile" v-if="false">添加表具</button>
|
|
240
|
+
<button type="button" class="btn btn-primary" @click="saveUserFile" :disabled="!$v.valid">确认</button>
|
|
241
|
+
</template>
|
|
242
|
+
</footer>
|
|
243
|
+
</modal>
|
|
244
|
+
</template>
|
|
245
|
+
<script>
|
|
246
|
+
import Vue from 'vue'
|
|
247
|
+
import {PagedList} from 'vue-client'
|
|
248
|
+
import {HttpResetClass} from 'vue-client'
|
|
249
|
+
import {isEmpty} from '../../../components/Util'
|
|
250
|
+
// Date格式化
|
|
251
|
+
Date.prototype.Format = function (fmt) {
|
|
252
|
+
var o = {
|
|
253
|
+
'M+': this.getMonth() + 1, // 月份
|
|
254
|
+
'd+': this.getDate(), // 日
|
|
255
|
+
'H+': this.getHours(), // 小时
|
|
256
|
+
'm+': this.getMinutes(), // 分
|
|
257
|
+
's+': this.getSeconds(), // 秒
|
|
258
|
+
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
259
|
+
'S': this.getMilliseconds() // 毫秒
|
|
260
|
+
}
|
|
261
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
262
|
+
for (var k in o) {
|
|
263
|
+
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
264
|
+
}
|
|
265
|
+
return fmt
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export default {
|
|
269
|
+
title: '安装明细',
|
|
270
|
+
props: {
|
|
271
|
+
selectdata: {
|
|
272
|
+
type: Object
|
|
273
|
+
},
|
|
274
|
+
mark: {
|
|
275
|
+
type: Number,
|
|
276
|
+
default: 0
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
data () {
|
|
280
|
+
return {
|
|
281
|
+
showFile: false,
|
|
282
|
+
showUserFile: false,
|
|
283
|
+
model: new PagedList('rs/sql/getAddresAndUserinfoAndUserfilesAmount', 20, null),
|
|
284
|
+
meterbrands: [], // 气表品牌
|
|
285
|
+
useradders: null,
|
|
286
|
+
userinfo: {},
|
|
287
|
+
getfield: {
|
|
288
|
+
'f_address': '地址',
|
|
289
|
+
'f_user_name': '用户姓名/单位名称',
|
|
290
|
+
'f_meternumber': '表号',
|
|
291
|
+
'f_gasbrand': '气表品牌',
|
|
292
|
+
'f_gasmodel': '气表型号',
|
|
293
|
+
'f_metertitles': '表封号',
|
|
294
|
+
'f_meter_base': '表读数',
|
|
295
|
+
'f_initial_base': '初始底数',
|
|
296
|
+
'f_aroundmeter': '表向',
|
|
297
|
+
'f_user_phone': '电话',
|
|
298
|
+
'f_userinfo_comments': '备注',
|
|
299
|
+
'f_position': '安装位置',
|
|
300
|
+
'f_userinfo_code': '用户编号',
|
|
301
|
+
'f_material_name': '材料名称',
|
|
302
|
+
'f_material_style': '材料型号',
|
|
303
|
+
'f_material_price': '材料价格',
|
|
304
|
+
'f_material_unit': '材料单位',
|
|
305
|
+
'f_material_number': '材料数量'
|
|
306
|
+
},
|
|
307
|
+
showWork: false
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
ready () {
|
|
311
|
+
this.search()
|
|
312
|
+
this.getMeterbrands()
|
|
313
|
+
if (this.selectdata.f_apply_type === '团购报建') {
|
|
314
|
+
this.notInstalled()
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
methods: {
|
|
318
|
+
// 删除未保存的表具
|
|
319
|
+
async deleteUserFile (index) {
|
|
320
|
+
this.userinfo.userfiles.splice(index, 1)
|
|
321
|
+
},
|
|
322
|
+
// 追加表具
|
|
323
|
+
addUserFile() {
|
|
324
|
+
this.userinfo.userfiles.push({})
|
|
325
|
+
},
|
|
326
|
+
// 保存档案
|
|
327
|
+
async saveUserFile() {
|
|
328
|
+
// 检查必填项
|
|
329
|
+
for (let i = 0; i < this.userinfo.userfiles.length; i++) {
|
|
330
|
+
let userfile = this.userinfo.userfiles[i]
|
|
331
|
+
if (userfile.f_gasbrand_id === null || userfile.f_gasbrand_id === '') {
|
|
332
|
+
this.$showMessage(`表具${i+1}气表品牌没有选择!!!`)
|
|
333
|
+
return
|
|
334
|
+
}
|
|
335
|
+
if (userfile.f_gasmodel_id === null || userfile.f_gasmodel_id === '') {
|
|
336
|
+
this.$showMessage(`表具${i+1}气表型号没有选择!!!`)
|
|
337
|
+
return
|
|
338
|
+
}
|
|
339
|
+
if (userfile.f_meternumber === null || userfile.f_meternumber === '') {
|
|
340
|
+
this.$showMessage(`表具${i+1}表号没有填写!!!`)
|
|
341
|
+
return
|
|
342
|
+
}
|
|
343
|
+
if (isEmpty(userfile.f_initial_base)) {
|
|
344
|
+
this.$showMessage(`表具${i+1}表底数没有填写!!!`)
|
|
345
|
+
return
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
if (!isEmpty(this.userinfo.userfiles[0].f_initial_base)){
|
|
349
|
+
let temp = parseFloat(this.$appdata.getSingleValue('初始表底数'))
|
|
350
|
+
let initial_base = parseFloat(this.userinfo.userfiles[0].f_initial_base)
|
|
351
|
+
if (initial_base > temp){
|
|
352
|
+
let row = await this.$showMessage(`请确认初始表底数是否正确,当前表底数:${initial_base},系统默认表底数:${temp}`)
|
|
353
|
+
if (row == 'confirm') {
|
|
354
|
+
let data = {
|
|
355
|
+
user: this.$login.f,
|
|
356
|
+
useradders: this.useradders,
|
|
357
|
+
userinfo: this.userinfo,
|
|
358
|
+
selectdata: this.selectdata
|
|
359
|
+
}
|
|
360
|
+
let res = await this.$resetpost('rs/logic/addInstallationDetails', {data:data}, {
|
|
361
|
+
resolveMsg: null,
|
|
362
|
+
rejectMsg: '表具添加失败!!!'
|
|
363
|
+
})
|
|
364
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
365
|
+
}
|
|
366
|
+
}else {
|
|
367
|
+
let data = {
|
|
368
|
+
user: this.$login.f,
|
|
369
|
+
useradders: this.useradders,
|
|
370
|
+
userinfo: this.userinfo,
|
|
371
|
+
selectdata: this.selectdata
|
|
372
|
+
}
|
|
373
|
+
let res = await this.$resetpost('rs/logic/addInstallationDetails', {data:data}, {
|
|
374
|
+
resolveMsg: null,
|
|
375
|
+
rejectMsg: '表具添加失败!!!'
|
|
376
|
+
})
|
|
377
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
// 检查表号是否存在
|
|
382
|
+
async meternumberValidate(i) {
|
|
383
|
+
if (!this.userinfo.userfiles[i].f_gasbrand_id) {
|
|
384
|
+
this.userinfo.userfiles[i].f_meternumber = ''
|
|
385
|
+
this.$showAlert('请先选择气表品牌!!!', 'warning', 3000)
|
|
386
|
+
return
|
|
387
|
+
}
|
|
388
|
+
if (this.userinfo.userfiles[i].f_gasbrand_id && this.userinfo.userfiles[i].f_meternumber) {
|
|
389
|
+
let data = {
|
|
390
|
+
f_meternumber: this.userinfo.userfiles[i].f_meternumber,
|
|
391
|
+
f_gasbrand_id: this.userinfo.userfiles[i].f_gasbrand_id
|
|
392
|
+
}
|
|
393
|
+
if (this.userinfo.userfiles[i].f_userfiles_id) {
|
|
394
|
+
data.f_userfiles_id = this.userinfo.userfiles[i].f_userfiles_id
|
|
395
|
+
}
|
|
396
|
+
let res = await this.$resetpost('rs/logic/meterbrandsNumberValidate', {data:data}, {
|
|
397
|
+
resolveMsg: null,
|
|
398
|
+
rejectMsg: '表号验证失败!!'
|
|
399
|
+
})
|
|
400
|
+
if (res.data) {
|
|
401
|
+
this.userinfo.userfiles[i].f_meternumber = ''
|
|
402
|
+
this.$showAlert('表号已存在!!', 'warning', 3000)
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
// 检查表封号是否存在
|
|
407
|
+
async metertitlesValidate(i) {
|
|
408
|
+
if (!this.userinfo.userfiles[i].f_gasbrand_id) {
|
|
409
|
+
this.userinfo.userfiles[i].f_meternumber = ''
|
|
410
|
+
this.$showAlert('请先选择气表品牌!!!', 'warning', 3000)
|
|
411
|
+
return
|
|
412
|
+
}
|
|
413
|
+
if (this.userinfo.userfiles[i].f_gasbrand_id && this.userinfo.userfiles[i].f_metertitles) {
|
|
414
|
+
let data = {
|
|
415
|
+
tablename: 't_userfiles',
|
|
416
|
+
condition: `f_metertitles = '${this.userinfo.userfiles[i].f_metertitles}' and f_gasbrand_id = '${this.userinfo.userfiles[i].f_gasbrand_id}' and f_table_state in ('正常','待开通') `
|
|
417
|
+
}
|
|
418
|
+
let res = await this.$resetpost('rs/sql/apply_singleTable', {data:data}, {
|
|
419
|
+
resolveMsg: null,
|
|
420
|
+
rejectMsg: '表封号验证失败!!'
|
|
421
|
+
})
|
|
422
|
+
if (res.data.length > 0) {
|
|
423
|
+
this.$showAlert('表封号已存在!!', 'warning', 3000)
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
// 选择气表型号
|
|
428
|
+
gasmodelChange(i) {
|
|
429
|
+
if (this.userinfo.userfiles[i].gasmodel) {
|
|
430
|
+
this.userinfo.userfiles[i].f_gasmodel_id = this.userinfo.userfiles[i].gasmodel.id
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
// 选择气表品牌
|
|
434
|
+
gasbrandChange(i) {
|
|
435
|
+
// 清空已保存的气表型号
|
|
436
|
+
this.userinfo.userfiles[i].f_gasmodel_id = null
|
|
437
|
+
this.userinfo.userfiles[i].gasmodel = null
|
|
438
|
+
|
|
439
|
+
if (this.userinfo.userfiles[i].gasbrand) {
|
|
440
|
+
// 气表品牌id
|
|
441
|
+
this.userinfo.userfiles[i].f_gasbrand_id = this.userinfo.userfiles[i].gasbrand.id
|
|
442
|
+
// 气表分类
|
|
443
|
+
this.userinfo.userfiles[i].f_meter_classify = this.userinfo.userfiles[i].gasbrand.f_meter_type
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
// 打开安装明细
|
|
447
|
+
async showUserFileModal (row) {
|
|
448
|
+
this.useradders = row
|
|
449
|
+
|
|
450
|
+
let http = new HttpResetClass()
|
|
451
|
+
let data = {
|
|
452
|
+
condition: `f_userinfo_id = '${row.f_userinfo_id}'`
|
|
453
|
+
}
|
|
454
|
+
let res = await http.load('POST', 'rs/logic/getUserinfoAndUserfiles', {data:data}, {
|
|
455
|
+
resolveMsg: null,
|
|
456
|
+
rejectMsg: null
|
|
457
|
+
})
|
|
458
|
+
|
|
459
|
+
this.userinfo = res.data
|
|
460
|
+
|
|
461
|
+
// 已有表具的 气表信息补充
|
|
462
|
+
for (let i = 0; i < this.userinfo.userfiles.length; i++) {
|
|
463
|
+
for (const item of this.meterbrands) {
|
|
464
|
+
if (item.value.id === this.userinfo.userfiles[i].f_gasbrand_id) {
|
|
465
|
+
// this.userinfo.userfiles[i].gasbrand = item.value // 防止双向绑定失败
|
|
466
|
+
Vue.set(this.userinfo.userfiles[i], 'gasbrand', item.value)
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
if (this.userinfo.userfiles[i].gasbrand) {
|
|
470
|
+
for (const item of this.userinfo.userfiles[i].gasbrand.gasmodel) {
|
|
471
|
+
if (item.value.id === this.userinfo.userfiles[i].f_gasmodel_id) {
|
|
472
|
+
// this.userinfo.userfiles[i].gasmodel = item.value
|
|
473
|
+
Vue.set(this.userinfo.userfiles[i], 'gasmodel', item.value)
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
this.showUserFile = true
|
|
480
|
+
},
|
|
481
|
+
// 获取气表品牌
|
|
482
|
+
async getMeterbrands() {
|
|
483
|
+
let http = new HttpResetClass()
|
|
484
|
+
let data = {
|
|
485
|
+
f_orgid: this.$login.f.orgid
|
|
486
|
+
}
|
|
487
|
+
let res = await http.load('POST', 'rs/logic/getMeterbrands', {data:data}, {
|
|
488
|
+
resolveMsg: null,
|
|
489
|
+
rejectMsg: null
|
|
490
|
+
})
|
|
491
|
+
this.meterbrands = res.data
|
|
492
|
+
},
|
|
493
|
+
async notInstalled () {
|
|
494
|
+
let http = new HttpResetClass()
|
|
495
|
+
let data = {
|
|
496
|
+
condition: `ui.f_process_id = '${this.selectdata.f_process_id}' and uf.f_table_state != '待开通'`
|
|
497
|
+
}
|
|
498
|
+
let res = await http.load(
|
|
499
|
+
'POST',
|
|
500
|
+
'rs/sql/countApplyUserinfo',
|
|
501
|
+
{data: data},
|
|
502
|
+
{
|
|
503
|
+
resolveMsg: null,
|
|
504
|
+
rejectMsg: '安装数量查询失败!!!'
|
|
505
|
+
})
|
|
506
|
+
|
|
507
|
+
for (const item of this.selectdata.fields) {
|
|
508
|
+
if (item.label === '已安装户数') {
|
|
509
|
+
item.value = this.selectdata.f_apply_count - res.data[0].num
|
|
510
|
+
}
|
|
511
|
+
if (item.label === '未安装户数') {
|
|
512
|
+
item.value = res.data[0].num
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
searchCondition (args) {
|
|
517
|
+
var tablestate=''
|
|
518
|
+
if(this.selectdata.f_sub_state==='完工'){
|
|
519
|
+
tablestate='正常'
|
|
520
|
+
}else{
|
|
521
|
+
tablestate='待开通'
|
|
522
|
+
}
|
|
523
|
+
if (this.selectdata.f_apply_type === '团购转散户' || this.selectdata.f_apply_type === '改管报建' || this.selectdata.f_apply_type === '增容报建' || this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建') {
|
|
524
|
+
args.condition = args.condition + `and ui.f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
|
|
525
|
+
} else {
|
|
526
|
+
args.condition = args.condition + `and ua.f_process_id = '${this.selectdata.f_process_id}'`
|
|
527
|
+
}
|
|
528
|
+
this.model.search(args.condition, args.model,tablestate)
|
|
529
|
+
},
|
|
530
|
+
// 查询
|
|
531
|
+
async search () {
|
|
532
|
+
this.$refs.cp.$refs.cri.search()
|
|
533
|
+
},
|
|
534
|
+
// 关闭安装明细
|
|
535
|
+
closeUserFile() {
|
|
536
|
+
this.showUserFile = false
|
|
537
|
+
this.useradders = null
|
|
538
|
+
this.userinfo = {}
|
|
539
|
+
this.search()
|
|
540
|
+
},
|
|
541
|
+
// 关闭文件上传对话框
|
|
542
|
+
closeFile() {
|
|
543
|
+
this.showWork = false
|
|
544
|
+
this.showFile = false
|
|
545
|
+
// 将选的文件清空
|
|
546
|
+
this.$refs.file.$el.querySelector('input').value = ''
|
|
547
|
+
this.search()
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
events: {
|
|
551
|
+
'beforeFileUpload' (file) {
|
|
552
|
+
this.showWork = true
|
|
553
|
+
},
|
|
554
|
+
async 'onFileUpload'(file, result) {
|
|
555
|
+
let data = {
|
|
556
|
+
selectdata: this.selectdata,
|
|
557
|
+
filepath: result.f_downloadpath,
|
|
558
|
+
user: this.$login.f
|
|
559
|
+
}
|
|
560
|
+
try {
|
|
561
|
+
let res = await this.$resetpost(`rs/logic/importAddInstallationDetails`, {data: data}, {
|
|
562
|
+
resolveMsg: null,
|
|
563
|
+
rejectMsg: '导入失败!!!',
|
|
564
|
+
silent: true
|
|
565
|
+
}, 0)
|
|
566
|
+
} catch (e) {
|
|
567
|
+
this.closeFile()
|
|
568
|
+
}
|
|
569
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
computed: {
|
|
573
|
+
pager () {
|
|
574
|
+
return this.selectdata.f_apply_type === '团购报建'
|
|
575
|
+
},
|
|
576
|
+
getCondition () {
|
|
577
|
+
let condition = `ua.f_process_id = '${this.selectdata.f_process_id}'`
|
|
578
|
+
|
|
579
|
+
return {
|
|
580
|
+
condition: condition
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
// 安装人
|
|
584
|
+
installperson() {
|
|
585
|
+
return function (f_install_person) {
|
|
586
|
+
if (isEmpty(f_install_person)) {
|
|
587
|
+
return this.$login.f.name
|
|
588
|
+
}
|
|
589
|
+
return f_install_person
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
installdate() {
|
|
593
|
+
return function (f_install_date) {
|
|
594
|
+
if (isEmpty(f_install_date)) {
|
|
595
|
+
return new Date().Format('yyyy-MM-dd HH:mm:ss')
|
|
596
|
+
}
|
|
597
|
+
return f_install_date
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
// 表向
|
|
601
|
+
aroundmeters() {
|
|
602
|
+
return this.$appdata.getParam('左右表')
|
|
603
|
+
},
|
|
604
|
+
// 安装位置
|
|
605
|
+
positions() {
|
|
606
|
+
return this.$appdata.getParam('安装位置')
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
watch: {
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
</script>
|
|
613
|
+
<style scoped>
|
|
614
|
+
.head-but{
|
|
615
|
+
margin-left: 5px;
|
|
616
|
+
height: 34px;
|
|
617
|
+
/*background-color: #6aa6e2;*/
|
|
618
|
+
border-radius: 4px;
|
|
619
|
+
font-family: PingFang;
|
|
620
|
+
color: #ffffff;
|
|
621
|
+
}
|
|
622
|
+
/*清除model中的浮动*/
|
|
623
|
+
.clearfix:after,.clearfix:before{
|
|
624
|
+
display: table;
|
|
625
|
+
}
|
|
626
|
+
.clearfix:after{
|
|
627
|
+
clear: both;
|
|
628
|
+
}
|
|
629
|
+
.input_view{
|
|
630
|
+
padding: 8px;
|
|
631
|
+
background-color: #ffffff;
|
|
632
|
+
border-radius: 2px;
|
|
633
|
+
border: solid 1px #c7c7c7!important;
|
|
634
|
+
color: #333333!important;
|
|
635
|
+
font-size: 15px!important;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
.input_view[readonly]{
|
|
639
|
+
border: 1px solid #DDD!important;
|
|
640
|
+
color:#ACA899!important;
|
|
641
|
+
}
|
|
642
|
+
.input_view:disabled{
|
|
643
|
+
border: 1px solid #DDD!important;
|
|
644
|
+
color:#ACA899!important;
|
|
645
|
+
}
|
|
646
|
+
</style>
|