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