apply-clients 3.3.49 → 3.3.50

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