apply-clients 3.2.32 → 3.2.37
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/package.json +1 -1
- package/src/AndroidApp.vue +26 -26
- package/src/App.vue +20 -20
- package/src/apply.js +67 -67
- package/src/applyAndroid.js +24 -24
- package/src/components/Util.js +359 -359
- package/src/components/app_apply/AppOnetomany.vue +90 -90
- package/src/components/app_apply/AppServiceView.vue +664 -664
- package/src/components/app_apply/AppTakePic.vue +112 -112
- package/src/components/app_apply/Process/AppExplorationUser.vue +310 -310
- package/src/components/app_apply/Process/AppServiceControl.vue +409 -409
- package/src/components/app_apply/Process/Processes/AppInstallationDetails.vue +456 -456
- package/src/components/app_apply/Supervisory/AppProcessSupervisory.vue +300 -300
- package/src/components/app_apply/Supervisory/AppSupervisoryCart.vue +121 -121
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +251 -251
- package/src/components/product/ApplyCharge/ApplyChargeReport.vue +107 -107
- package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +30 -30
- package/src/components/product/Function/InstallFunction.vue +147 -147
- package/src/components/product/Function/InstallInfoSelect.vue +281 -281
- package/src/components/product/Function/Service/FunctionServiceControl.vue +245 -245
- package/src/components/product/Function/StopApplyCrrdList.vue +176 -176
- package/src/components/product/Function/functions/StopInstall.vue +106 -106
- package/src/components/product/Process/ExplorationSelect.vue +346 -346
- package/src/components/product/Process/ExplorationUser.vue +134 -134
- package/src/components/product/Process/Processes/InstallationDetails.vue +243 -233
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +201 -201
- package/src/components/product/Process/Processes/chargeManagement.vue +555 -555
- package/src/components/product/Process/Processes/printCharge.vue +133 -133
- package/src/components/product/Process/Processes/supplementalAgreement.vue +297 -297
- package/src/components/product/Process/ShowBackReason.vue +32 -32
- package/src/components/product/ServiceView.vue +759 -759
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +199 -199
- package/src/components/product/Supervisory/SupervisoryControl.vue +119 -119
- package/src/components/product/Supervisory/SupervisoryList.vue +208 -208
- package/src/components/product/Supervisory/SupervisoryhCart.vue +103 -103
- package/src/components/product/VueUtils/ApplyUpload.vue +261 -261
- package/src/main.js +23 -23
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
type="button"
|
|
72
72
|
name="button"
|
|
73
73
|
class="btn btn-link"
|
|
74
|
-
:disabled="(row.f_cumulative_payment_money < $parent.$parent.$parent.selectdata.f_price && ($parent.$parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.$parent.selectdata.f_apply_type === '煤改气报建'))
|
|
74
|
+
:disabled="(row.f_cumulative_payment_money < $parent.$parent.$parent.selectdata.f_price && ($parent.$parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.$parent.selectdata.f_apply_type === '煤改气报建'))"
|
|
75
75
|
@click="$parent.$parent.$parent.showUserFileModal(row)">
|
|
76
|
-
{{row.f_userfiles_num > 0 ? '修正' : '添加'}}
|
|
76
|
+
{{$parent.$parent.$parent.mark===1 ? '查看': row.f_userfiles_num > 0 ? '修正' : '添加'}}
|
|
77
77
|
</button>
|
|
78
78
|
</nobr>
|
|
79
79
|
</td>
|
|
@@ -121,6 +121,7 @@
|
|
|
121
121
|
:value.sync="item.gasbrand"
|
|
122
122
|
v-model="item.gasbrand"
|
|
123
123
|
:options="meterbrands"
|
|
124
|
+
:disable="mark===1"
|
|
124
125
|
@change="gasbrandChange(i)"
|
|
125
126
|
:valueSingle="true"></input-select>
|
|
126
127
|
</div>
|
|
@@ -133,6 +134,7 @@
|
|
|
133
134
|
:value.sync="item.gasmodel"
|
|
134
135
|
v-model="item.gasmodel"
|
|
135
136
|
:options="item.gasbrand.gasmodel"
|
|
137
|
+
:disable="mark===1"
|
|
136
138
|
@change="gasmodelChange(i)"
|
|
137
139
|
:valueSingle="true"></input-select>
|
|
138
140
|
</div>
|
|
@@ -144,8 +146,9 @@
|
|
|
144
146
|
placeholder="表号"
|
|
145
147
|
v-model="item.f_meternumber"
|
|
146
148
|
:value="item.f_meternumber"
|
|
149
|
+
:disable="mark===1"
|
|
147
150
|
@change="meternumberValidate(i)"
|
|
148
|
-
:readonly="
|
|
151
|
+
:readonly="mark===1"/>
|
|
149
152
|
</div>
|
|
150
153
|
</div>
|
|
151
154
|
<div class="form-group col-sm-6">
|
|
@@ -155,7 +158,8 @@
|
|
|
155
158
|
placeholder="表封号"
|
|
156
159
|
v-model="item.f_metertitles"
|
|
157
160
|
:value="item.f_metertitles"
|
|
158
|
-
:
|
|
161
|
+
:disable="mark===1"
|
|
162
|
+
:readonly="mark===1"/>
|
|
159
163
|
</div>
|
|
160
164
|
</div>
|
|
161
165
|
<div class="form-group col-sm-6">
|
|
@@ -166,7 +170,8 @@
|
|
|
166
170
|
placeholder="表读数"
|
|
167
171
|
v-model="item.f_meter_base"
|
|
168
172
|
:value="item.f_meter_base"
|
|
169
|
-
:
|
|
173
|
+
:disable="mark===1"
|
|
174
|
+
:readonly="mark===1"/>
|
|
170
175
|
</div>
|
|
171
176
|
</div>
|
|
172
177
|
<div class="form-group col-sm-6">
|
|
@@ -176,8 +181,9 @@
|
|
|
176
181
|
type="number"
|
|
177
182
|
v-model="item.f_initial_base"
|
|
178
183
|
:value="item.f_initial_base"
|
|
184
|
+
:disable="mark===1"
|
|
179
185
|
placeholder="初始底数"
|
|
180
|
-
:readonly="
|
|
186
|
+
:readonly="mark===1"/>
|
|
181
187
|
</div>
|
|
182
188
|
</div>
|
|
183
189
|
<div class="form-group col-sm-6">
|
|
@@ -187,6 +193,7 @@
|
|
|
187
193
|
class="select select_list"
|
|
188
194
|
:value.sync="item.f_aroundmeter"
|
|
189
195
|
v-model="item.f_aroundmeter"
|
|
196
|
+
:disable="mark===1"
|
|
190
197
|
:options="aroundmeters"
|
|
191
198
|
:valueSingle="true"></input-select>
|
|
192
199
|
</div>
|
|
@@ -198,6 +205,7 @@
|
|
|
198
205
|
class="select select_list"
|
|
199
206
|
:value.sync="item.f_position"
|
|
200
207
|
v-model="item.f_position"
|
|
208
|
+
:disable="mark===1"
|
|
201
209
|
:options="positions"
|
|
202
210
|
:valueSingle="true"></input-select>
|
|
203
211
|
</div>
|
|
@@ -209,22 +217,24 @@
|
|
|
209
217
|
class="select select_list"
|
|
210
218
|
:value.sync="item.f_install_person"
|
|
211
219
|
v-model="item.f_install_person"
|
|
220
|
+
:disable="mark===1"
|
|
212
221
|
:options="installperson"
|
|
213
222
|
:valueSingle="true"></input-select>
|
|
214
223
|
</div>
|
|
215
224
|
</div>
|
|
216
225
|
<div class="form-group col-sm-6">
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
</
|
|
226
|
+
<label class="col-sm-4 control-label">安装日期:</label>
|
|
227
|
+
<div class="col-sm-8">
|
|
228
|
+
<datepicker
|
|
229
|
+
placeholder="安装日期"
|
|
230
|
+
:value.sync="item.f_install_date"
|
|
231
|
+
v-model="item.f_install_date"
|
|
232
|
+
format="yyyy-MM-dd HH:mm:ss"
|
|
233
|
+
:disable="mark===1"
|
|
234
|
+
:show-reset-button="reset">
|
|
235
|
+
</datepicker>
|
|
227
236
|
</div>
|
|
237
|
+
</div>
|
|
228
238
|
</div>
|
|
229
239
|
|
|
230
240
|
</article>
|
|
@@ -236,255 +246,255 @@
|
|
|
236
246
|
</modal>
|
|
237
247
|
</template>
|
|
238
248
|
<script>
|
|
239
|
-
import Vue from 'vue'
|
|
240
|
-
import {PagedList} from 'vue-client'
|
|
241
|
-
import {HttpResetClass} from 'vue-client'
|
|
242
|
-
import {isEmpty} from '../../../Util'
|
|
249
|
+
import Vue from 'vue'
|
|
250
|
+
import {PagedList} from 'vue-client'
|
|
251
|
+
import {HttpResetClass} from 'vue-client'
|
|
252
|
+
import {isEmpty} from '../../../Util'
|
|
243
253
|
|
|
244
|
-
export default {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
data () {
|
|
256
|
-
return {
|
|
257
|
-
showFile: false,
|
|
258
|
-
showUserFile: false,
|
|
259
|
-
model: new PagedList('rs/sql/getAddresAndUserinfoAndUserfilesAmount', 30, {
|
|
260
|
-
data: {
|
|
261
|
-
f_process_id: this.selectdata.f_process_id
|
|
262
|
-
}
|
|
263
|
-
}),
|
|
264
|
-
meterbrands: [], // 气表品牌
|
|
265
|
-
useradders: null,
|
|
266
|
-
userinfo: {}
|
|
267
|
-
}
|
|
268
|
-
},
|
|
269
|
-
ready () {
|
|
270
|
-
this.search()
|
|
271
|
-
this.getMeterbrands()
|
|
272
|
-
this.notInstalled()
|
|
273
|
-
},
|
|
274
|
-
methods: {
|
|
275
|
-
async notInstalled () {
|
|
276
|
-
let http = new HttpResetClass()
|
|
277
|
-
let data = {
|
|
278
|
-
condition: null
|
|
254
|
+
export default {
|
|
255
|
+
title: '安装明细',
|
|
256
|
+
props: {
|
|
257
|
+
selectdata: {
|
|
258
|
+
type: Object
|
|
259
|
+
},
|
|
260
|
+
mark: {
|
|
261
|
+
type: Number,
|
|
262
|
+
default: 0
|
|
279
263
|
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
264
|
+
},
|
|
265
|
+
data () {
|
|
266
|
+
return {
|
|
267
|
+
showFile: false,
|
|
268
|
+
showUserFile: false,
|
|
269
|
+
model: new PagedList('rs/sql/getAddresAndUserinfoAndUserfilesAmount', 30, {
|
|
270
|
+
data: {
|
|
271
|
+
f_process_id: this.selectdata.f_process_id
|
|
272
|
+
}
|
|
273
|
+
}),
|
|
274
|
+
meterbrands: [], // 气表品牌
|
|
275
|
+
useradders: null,
|
|
276
|
+
userinfo: {}
|
|
284
277
|
}
|
|
278
|
+
},
|
|
279
|
+
ready () {
|
|
280
|
+
this.search()
|
|
281
|
+
this.getMeterbrands()
|
|
282
|
+
this.notInstalled()
|
|
283
|
+
},
|
|
284
|
+
methods: {
|
|
285
|
+
async notInstalled () {
|
|
286
|
+
let http = new HttpResetClass()
|
|
287
|
+
let data = {
|
|
288
|
+
condition: null
|
|
289
|
+
}
|
|
290
|
+
if (this.selectdata.f_apply_type === '开发商集体报建') {
|
|
291
|
+
data.condition = `ui.f_process_id = '${this.selectdata.f_process_id}'`
|
|
292
|
+
} else {
|
|
293
|
+
data.condition = `ui.f_process_id = '${this.selectdata.f_process_id}' and uf.f_table_state != '无效'`
|
|
294
|
+
}
|
|
285
295
|
|
|
286
|
-
|
|
296
|
+
let res = await http.load('POST', 'rs/sql/notInstalled', {data: data}, {resolveMsg: null, rejectMsg: null})
|
|
287
297
|
|
|
288
298
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
}
|
|
297
|
-
},
|
|
298
|
-
// 保存档案
|
|
299
|
-
async saveUserFile() {
|
|
300
|
-
if (this.userinfo.userfiles.length > 1) {
|
|
301
|
-
this.$showAlert('该地址下已有表具信息,暂不支持一户多表!!!', 'warning', 3000)
|
|
302
|
-
return
|
|
303
|
-
}
|
|
304
|
-
// 检查必填项
|
|
305
|
-
for (let i = 0; i < this.userinfo.userfiles.length; i++) {
|
|
306
|
-
let userfile = this.userinfo.userfiles[i]
|
|
307
|
-
if (userfile.f_gasbrand_id === null || userfile.f_gasbrand_id === '') {
|
|
308
|
-
this.$showAlert(`表具${i+1}气表品牌没有选择!!!`, 'warning', 3000)
|
|
309
|
-
return
|
|
299
|
+
for (const item of this.selectdata.fields) {
|
|
300
|
+
if (item.label === '已安装户数') {
|
|
301
|
+
item.value = res.data[0].num
|
|
302
|
+
}
|
|
303
|
+
if (item.label === '未安装户数') {
|
|
304
|
+
item.value = this.selectdata.f_apply_count - res.data[0].num
|
|
305
|
+
}
|
|
310
306
|
}
|
|
311
|
-
|
|
312
|
-
|
|
307
|
+
},
|
|
308
|
+
// 保存档案
|
|
309
|
+
async saveUserFile() {
|
|
310
|
+
if (this.userinfo.userfiles.length > 1) {
|
|
311
|
+
this.$showAlert('该地址下已有表具信息,暂不支持一户多表!!!', 'warning', 3000)
|
|
313
312
|
return
|
|
314
313
|
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
314
|
+
// 检查必填项
|
|
315
|
+
for (let i = 0; i < this.userinfo.userfiles.length; i++) {
|
|
316
|
+
let userfile = this.userinfo.userfiles[i]
|
|
317
|
+
if (userfile.f_gasbrand_id === null || userfile.f_gasbrand_id === '') {
|
|
318
|
+
this.$showAlert(`表具${i+1}气表品牌没有选择!!!`, 'warning', 3000)
|
|
319
|
+
return
|
|
320
|
+
}
|
|
321
|
+
if (userfile.f_gasmodel_id === null || userfile.f_gasmodel_id === '') {
|
|
322
|
+
this.$showAlert(`表具${i+1}气表型号没有选择!!!`, 'warning', 3000)
|
|
323
|
+
return
|
|
324
|
+
}
|
|
325
|
+
if (userfile.f_meternumber === null || userfile.f_meternumber === '') {
|
|
326
|
+
this.$showAlert(`表具${i+1}表号没有填写!!!`, 'warning', 3000)
|
|
327
|
+
return
|
|
328
|
+
}
|
|
318
329
|
}
|
|
319
|
-
}
|
|
320
|
-
let data = {
|
|
321
|
-
user: this.$login.f,
|
|
322
|
-
useradders: this.useradders,
|
|
323
|
-
userinfo: this.userinfo,
|
|
324
|
-
selectdata: this.selectdata
|
|
325
|
-
}
|
|
326
|
-
let res = await this.$resetpost('rs/logic/addInstallationDetails', {data:data}, {
|
|
327
|
-
resolveMsg: null,
|
|
328
|
-
rejectMsg: '表具添加失败!!!'
|
|
329
|
-
})
|
|
330
|
-
this.$dispatch('breakControl', this.selectdata)
|
|
331
|
-
},
|
|
332
|
-
// 检查表号是否存在
|
|
333
|
-
async meternumberValidate(i) {
|
|
334
|
-
if (!this.userinfo.userfiles[i].f_gasbrand_id) {
|
|
335
|
-
this.userinfo.userfiles[i].f_meternumber = ''
|
|
336
|
-
this.$showAlert('请先选择气表品牌!!!', 'warning', 3000)
|
|
337
|
-
return
|
|
338
|
-
}
|
|
339
|
-
if (this.userinfo.userfiles[i].f_gasbrand_id && this.userinfo.userfiles[i].f_meternumber) {
|
|
340
330
|
let data = {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
data.f_userfiles_id = this.userinfo.userfiles[i].f_userfiles_id
|
|
331
|
+
user: this.$login.f,
|
|
332
|
+
useradders: this.useradders,
|
|
333
|
+
userinfo: this.userinfo,
|
|
334
|
+
selectdata: this.selectdata
|
|
346
335
|
}
|
|
347
|
-
let res = await this.$resetpost('rs/logic/
|
|
336
|
+
let res = await this.$resetpost('rs/logic/addInstallationDetails', {data:data}, {
|
|
348
337
|
resolveMsg: null,
|
|
349
|
-
rejectMsg: '
|
|
338
|
+
rejectMsg: '表具添加失败!!!'
|
|
350
339
|
})
|
|
351
|
-
|
|
340
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
341
|
+
},
|
|
342
|
+
// 检查表号是否存在
|
|
343
|
+
async meternumberValidate(i) {
|
|
344
|
+
if (!this.userinfo.userfiles[i].f_gasbrand_id) {
|
|
352
345
|
this.userinfo.userfiles[i].f_meternumber = ''
|
|
353
|
-
this.$showAlert('
|
|
346
|
+
this.$showAlert('请先选择气表品牌!!!', 'warning', 3000)
|
|
347
|
+
return
|
|
354
348
|
}
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
349
|
+
if (this.userinfo.userfiles[i].f_gasbrand_id && this.userinfo.userfiles[i].f_meternumber) {
|
|
350
|
+
let data = {
|
|
351
|
+
f_meternumber: this.userinfo.userfiles[i].f_meternumber,
|
|
352
|
+
f_gasbrand_id: this.userinfo.userfiles[i].f_gasbrand_id
|
|
353
|
+
}
|
|
354
|
+
if (this.userinfo.userfiles[i].f_userfiles_id) {
|
|
355
|
+
data.f_userfiles_id = this.userinfo.userfiles[i].f_userfiles_id
|
|
356
|
+
}
|
|
357
|
+
let res = await this.$resetpost('rs/logic/meterbrandsNumberValidate', {data:data}, {
|
|
358
|
+
resolveMsg: null,
|
|
359
|
+
rejectMsg: '表号验证失败!!'
|
|
360
|
+
})
|
|
361
|
+
if (res.data) {
|
|
362
|
+
this.userinfo.userfiles[i].f_meternumber = ''
|
|
363
|
+
this.$showAlert('表号已存在!!', 'warning', 3000)
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
// 选择气表型号
|
|
368
|
+
gasmodelChange(i) {
|
|
369
|
+
if (this.userinfo.userfiles[i].gasmodel) {
|
|
370
|
+
this.userinfo.userfiles[i].f_gasmodel_id = this.userinfo.userfiles[i].gasmodel.id
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
// 选择气表品牌
|
|
374
|
+
gasbrandChange(i) {
|
|
375
|
+
// 清空已保存的气表型号
|
|
376
|
+
this.userinfo.userfiles[i].f_gasmodel_id = null
|
|
377
|
+
this.userinfo.userfiles[i].gasmodel = null
|
|
378
|
+
if (this.userinfo.userfiles[i].gasbrand) {
|
|
379
|
+
// 气表品牌id
|
|
380
|
+
this.userinfo.userfiles[i].f_gasbrand_id = this.userinfo.userfiles[i].gasbrand.id
|
|
381
|
+
// 气表分类
|
|
382
|
+
this.userinfo.userfiles[i].f_meter_classify = this.userinfo.userfiles[i].gasbrand.f_meter_type
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
// 追加表具
|
|
386
|
+
addUserFile() {
|
|
387
|
+
this.userinfo.userfiles.push({})
|
|
388
|
+
},
|
|
389
|
+
// 打开安装明细
|
|
390
|
+
async showUserFileModal (row) {
|
|
391
|
+
this.useradders = row
|
|
382
392
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
393
|
+
let http = new HttpResetClass()
|
|
394
|
+
let data = {
|
|
395
|
+
condition: `f_userinfo_id='${row.f_userinfo_id}'`
|
|
396
|
+
}
|
|
397
|
+
let res = await http.load('POST', 'rs/logic/getUserinfoAndUserfiles', {data:data}, {
|
|
398
|
+
resolveMsg: null,
|
|
399
|
+
rejectMsg: null
|
|
400
|
+
})
|
|
391
401
|
|
|
392
|
-
|
|
402
|
+
this.userinfo = res.data
|
|
393
403
|
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
404
|
+
// 已有表具的 气表信息补充
|
|
405
|
+
for (const userfile of this.userinfo.userfiles) {
|
|
406
|
+
for (const item of this.meterbrands) {
|
|
407
|
+
if (item.value.id === userfile.f_gasbrand_id) {
|
|
408
|
+
userfile.gasbrand = item.value
|
|
409
|
+
}
|
|
399
410
|
}
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
411
|
+
if (userfile.gasbrand) {
|
|
412
|
+
for (const item of userfile.gasbrand.gasmodel) {
|
|
413
|
+
if (item.value.id === userfile.f_gasmodel_id) {
|
|
414
|
+
userfile.gasmodel = item.value
|
|
415
|
+
}
|
|
405
416
|
}
|
|
406
417
|
}
|
|
407
418
|
}
|
|
408
|
-
}
|
|
409
419
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
420
|
+
this.showUserFile = true
|
|
421
|
+
},
|
|
422
|
+
// 获取气表品牌
|
|
423
|
+
async getMeterbrands() {
|
|
424
|
+
let http = new HttpResetClass()
|
|
425
|
+
let data = {
|
|
426
|
+
f_filialeid: this.$login.f.orgid
|
|
427
|
+
}
|
|
428
|
+
let res = await http.load('POST', 'rs/logic/getMeterbrands', {data:data}, {
|
|
429
|
+
resolveMsg: null,
|
|
430
|
+
rejectMsg: null
|
|
431
|
+
})
|
|
432
|
+
this.meterbrands = res.data
|
|
433
|
+
},
|
|
434
|
+
// 查询
|
|
435
|
+
async search () {
|
|
436
|
+
this.$refs.cp.$refs.cri.search()
|
|
437
|
+
},
|
|
438
|
+
// 关闭安装明细
|
|
439
|
+
closeUserFile() {
|
|
440
|
+
this.showUserFile = false
|
|
441
|
+
this.useradders = null
|
|
442
|
+
this.userinfo = null
|
|
443
|
+
this.search()
|
|
444
|
+
},
|
|
445
|
+
// 关闭文件上传对话框
|
|
446
|
+
closeFile() {
|
|
447
|
+
this.showFile = false
|
|
448
|
+
// 将选的文件清空
|
|
449
|
+
this.$refs.file.$el.querySelector('input').value = ''
|
|
450
|
+
this.search()
|
|
417
451
|
}
|
|
418
|
-
let res = await http.load('POST', 'rs/logic/getMeterbrands', {data:data}, {
|
|
419
|
-
resolveMsg: null,
|
|
420
|
-
rejectMsg: null
|
|
421
|
-
})
|
|
422
|
-
this.meterbrands = res.data
|
|
423
|
-
},
|
|
424
|
-
// 查询
|
|
425
|
-
async search () {
|
|
426
|
-
this.$refs.cp.$refs.cri.search()
|
|
427
|
-
},
|
|
428
|
-
// 关闭安装明细
|
|
429
|
-
closeUserFile() {
|
|
430
|
-
this.showUserFile = false
|
|
431
|
-
this.useradders = null
|
|
432
|
-
this.userinfo = null
|
|
433
|
-
this.search()
|
|
434
452
|
},
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
user: this.$login.f
|
|
449
|
-
}
|
|
450
|
-
let url = null
|
|
451
|
-
if (this.selectdata.f_apply_type === '开发商集体报建') {
|
|
452
|
-
url = 'rs/logic/importAddressUserFiles'
|
|
453
|
-
} else {
|
|
454
|
-
url = 'rs/logic/importAddInstallationDetails'
|
|
455
|
-
}
|
|
453
|
+
events: {
|
|
454
|
+
async 'onFileUpload'(file, result) {
|
|
455
|
+
let data = {
|
|
456
|
+
selectdata: this.selectdata,
|
|
457
|
+
filepath: result.f_downloadpath,
|
|
458
|
+
user: this.$login.f
|
|
459
|
+
}
|
|
460
|
+
let url = null
|
|
461
|
+
if (this.selectdata.f_apply_type === '开发商集体报建') {
|
|
462
|
+
url = 'rs/logic/importAddressUserFiles'
|
|
463
|
+
} else {
|
|
464
|
+
url = 'rs/logic/importAddInstallationDetails'
|
|
465
|
+
}
|
|
456
466
|
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
}
|
|
463
|
-
this.$dispatch('breakControl', this.selectdata)
|
|
464
|
-
}
|
|
465
|
-
},
|
|
466
|
-
computed: {
|
|
467
|
-
// 安装人
|
|
468
|
-
installperson() {
|
|
469
|
-
return this.$login.f.f_installman.map(item => {
|
|
470
|
-
return {
|
|
471
|
-
label: item.name,
|
|
472
|
-
value: item.name
|
|
467
|
+
let res = await this.$resetpost(url, {data:data}, {resolveMsg: null, rejectMsg: '导入失败', silent: true}, 0)
|
|
468
|
+
if(res.data.type === "success"){
|
|
469
|
+
this.$showAlert("导入信息:"+res.data.msg, res.data.type, 2000);
|
|
470
|
+
}else{
|
|
471
|
+
this.$showMessage(res.data.msg);
|
|
473
472
|
}
|
|
474
|
-
|
|
473
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
474
|
+
}
|
|
475
475
|
},
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
476
|
+
computed: {
|
|
477
|
+
// 安装人
|
|
478
|
+
installperson() {
|
|
479
|
+
return this.$login.f.f_installman.map(item => {
|
|
480
|
+
return {
|
|
481
|
+
label: item.name,
|
|
482
|
+
value: item.name
|
|
483
|
+
}
|
|
484
|
+
})
|
|
485
|
+
},
|
|
486
|
+
// 表向
|
|
487
|
+
aroundmeters() {
|
|
488
|
+
return this.$appdata.getParam('左右表')
|
|
489
|
+
},
|
|
490
|
+
// 安装位置
|
|
491
|
+
positions() {
|
|
492
|
+
return this.$appdata.getParam('安装位置')
|
|
493
|
+
}
|
|
479
494
|
},
|
|
480
|
-
|
|
481
|
-
positions() {
|
|
482
|
-
return this.$appdata.getParam('安装位置')
|
|
495
|
+
watch: {
|
|
483
496
|
}
|
|
484
|
-
},
|
|
485
|
-
watch: {
|
|
486
497
|
}
|
|
487
|
-
}
|
|
488
498
|
</script>
|
|
489
499
|
<style scoped>
|
|
490
500
|
.head-but{
|