apply-clients 3.3.217 → 3.4.2
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/android.html +23 -23
- 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 +119 -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 +3 -3
- package/src/AndroidApp.vue +35 -30
- package/src/App.vue +20 -20
- package/src/android.js +21 -21
- package/src/apply.js +81 -90
- package/src/applyAndroid.js +32 -53
- package/src/components/android/AppOnetomany.vue +301 -285
- package/src/components/android/AppServiceView.vue +566 -570
- package/src/components/android/AppSign.vue +142 -142
- package/src/components/android/AppTakePic.vue +143 -144
- package/src/components/android/Process/AppExplorationUser.vue +320 -270
- package/src/components/android/Process/AppServiceControl.vue +757 -686
- package/src/components/android/Process/Processes/AppInstallationDetails.vue +456 -466
- package/src/components/android/ProgressReport/ProgressReportDetail.vue +64 -0
- package/src/components/android/ProgressReport/ProgressReportList.vue +209 -0
- package/src/components/android/Supervisory/AppProcessSupervisory.vue +73 -152
- package/src/components/android/Supervisory/AppSupervisoryCart.vue +121 -115
- package/src/components/android/TaskGraph.vue +125 -0
- package/src/components/build/Install/ExplorationUser.vue +304 -0
- package/src/components/build/Install/Process/zhongran/ZR_Design.vue +537 -0
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +36 -50
- package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +3 -3
- package/src/components/product/Function/InstallFunction.vue +125 -122
- package/src/components/product/Function/InstallInfoSelect.vue +292 -318
- package/src/components/product/Function/Service/FunctionServiceControl.vue +222 -254
- package/src/components/product/Function/StopApplyCrrdList.vue +176 -0
- package/src/components/product/Function/functions/ApplyRecordCancel.vue +102 -0
- package/src/components/product/Function/functions/StopInstall.vue +106 -0
- package/src/components/product/Onetomany.vue +377 -296
- package/src/components/product/Order/OrderApply.vue +30 -30
- package/src/components/product/Order/OrderApplyList.vue +78 -67
- package/src/components/product/Order/OrderMessage.vue +11 -87
- package/src/components/product/Process/ExplorationSelect.vue +410 -369
- package/src/components/product/Process/ExplorationUser.vue +138 -128
- package/src/components/product/Process/Processes/InstallationDetails.vue +592 -504
- package/src/components/product/Process/Processes/Print/img/10101.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010109.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010110.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010111.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010112.png +0 -0
- package/src/components/product/Process/Processes/Print/printCharge.vue +142 -0
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +207 -181
- package/src/components/product/Process/Processes/chargeManagement.vue +639 -638
- package/src/components/product/Process/Processes/devicesManagement.vue +22 -2
- package/src/components/product/Process/Processes/selectApply.vue +1 -1
- package/src/components/product/Process/Service/ServiceControl.vue +1254 -883
- package/src/components/product/Process/Service/ShowBackReason.vue +33 -0
- package/src/components/product/ServiceView.vue +631 -741
- package/src/components/product/Stop/StopApply.vue +103 -103
- package/src/components/product/Stop/StopApplyList.vue +269 -254
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +186 -517
- package/src/components/product/Supervisory/SupervisoryControl.vue +100 -108
- package/src/components/product/Supervisory/SupervisoryList.vue +233 -253
- package/src/components/product/Supervisory/SupervisoryhCart.vue +107 -124
- package/src/components/product/VueUtils/ApplyUpload.vue +273 -264
- package/src/components/product/VueUtils/HighMeter.vue +208 -0
- package/src/expandcssAndroid.less +1034 -517
- package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +731 -414
- package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +824 -456
- package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetailsCivil.vue +650 -0
- package/src/filiale/yuchuan/android/Sign/AppSignTask.vue +182 -0
- package/src/{components/android/Process/Processes/AppBuildSign.vue → filiale/yuchuan/android/Sign/BuildSign.vue} +50 -47
- package/src/filiale/yuchuan/android/Sign/ConstructSign.vue +50 -0
- package/src/filiale/yuchuan/android/Sign/DesignSign.vue +50 -0
- package/src/filiale/yuchuan/android/Sign/SupervisorSign.vue +50 -0
- package/src/filiale/yuchuan/android/Task/Build/BuildTsak.vue +60 -0
- package/src/filiale/yuchuan/android/Task/Survey/SurveyTsak.vue +60 -0
- package/src/filiale/yuchuan/android.js +14 -8
- package/src/filiale/yuchuan/pc/Order/OrderApply.vue +528 -517
- package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +343 -343
- package/src/filiale/yuchuan/pc/Process/ExplorationSelect.vue +270 -231
- package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +149 -131
- package/src/filiale/yuchuan/pc/Process/Processes/ApplyMapCom.vue +67 -0
- package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetails.vue +809 -0
- package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetailsCivil.vue +595 -0
- package/src/filiale/yuchuan/pc/Process/Processes/chargeManagement.vue +470 -0
- package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +1074 -517
- package/src/filiale/yuchuan/pc.js +12 -13
- package/src/main.js +23 -23
- package/src/components/android/Function/AppFunctionServiceControl.vue +0 -329
- package/src/components/android/Function/AppInstallFunction.vue +0 -330
- package/src/components/android/Process/Processes/AppChargeManagement.vue +0 -468
- package/src/components/android/Process/Processes/AppDevicesManagement.vue +0 -490
- package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +0 -297
- package/src/components/android/Process/Processes/AppjiaSign.vue +0 -47
- package/src/components/android/Process/Processes/AppjiafangSign.vue +0 -47
- package/src/components/android/Process/Processes/ApptechnologySign.vue +0 -47
- package/src/components/image/dwg.jpg +0 -0
- package/src/components/image/yasuobao.jpg +0 -0
- package/src/components/product/Function/Inform.vue +0 -73
- package/src/components/product/Function/MarketSurvey.vue +0 -81
- package/src/components/product/Process/Processes/printCharge.vue +0 -121
- package/src/components/product/Process/ShowBackReason.vue +0 -33
- package/src/components/product/Supervisory/Service/printChargeNode.vue +0 -873
- package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +0 -1090
- package/src/components/product/VueUtils/ToolsPage.vue +0 -51
- package/src/components/product/VueUtils/Tree.vue +0 -330
- 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/Reserve/ApplyReserve.vue +0 -200
- package/src/filiale/yuchuan/android/SiteSurvey/TaskGraph.vue +0 -137
- package/src/filiale/yuchuan/pc/Process/Processes/MapCom.vue +0 -51
|
@@ -0,0 +1,595 @@
|
|
|
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>
|
|
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
|
+
<button
|
|
21
|
+
type="button"
|
|
22
|
+
class="btn btn-info head-but"
|
|
23
|
+
@click="$parent.$parent.$parent.showUserFileModal()"
|
|
24
|
+
:disabled="$parent.$parent.$parent.mark === 1 || $parent.$parent.$parent.model.count >= $parent.$parent.$parent.selectdata.f_install_count"
|
|
25
|
+
>添加用户</button>
|
|
26
|
+
</th>
|
|
27
|
+
</tr>
|
|
28
|
+
</template>
|
|
29
|
+
<template partial='body'>
|
|
30
|
+
<tr>
|
|
31
|
+
<td style="text-align: center;">
|
|
32
|
+
<nobr>{{$index+1}}</nobr>
|
|
33
|
+
</td>
|
|
34
|
+
<td style="text-align: center;">
|
|
35
|
+
<nobr>{{row.f_userinfo_code}}</nobr>
|
|
36
|
+
</td>
|
|
37
|
+
<td style="text-align: center;">
|
|
38
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
39
|
+
</td>
|
|
40
|
+
<td style="text-align: center;">
|
|
41
|
+
<nobr>{{row.f_user_phone}}</nobr>
|
|
42
|
+
</td>
|
|
43
|
+
<td style="text-align: center;">
|
|
44
|
+
<nobr>{{row.f_address}}</nobr>
|
|
45
|
+
</td>
|
|
46
|
+
<td style="text-align: center;">
|
|
47
|
+
<nobr>{{row.f_userfiles_num === null ? 0 : row.f_userfiles_num}}</nobr>
|
|
48
|
+
</td>
|
|
49
|
+
<td style="text-align: center;">
|
|
50
|
+
<nobr>
|
|
51
|
+
<button
|
|
52
|
+
v-if="false"
|
|
53
|
+
type="button" name="button" class="btn btn-link"
|
|
54
|
+
@click="$parent.$parent.$parent.showUserFileModal(row)">
|
|
55
|
+
{{$parent.$parent.$parent.mark === 1 ? '查看' : row.f_userfiles_num > 0 ? '修正' : '添加'}}
|
|
56
|
+
</button>
|
|
57
|
+
</nobr>
|
|
58
|
+
</td>
|
|
59
|
+
</tr>
|
|
60
|
+
</template>
|
|
61
|
+
</data-grid>
|
|
62
|
+
</criteria-paged>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<validator name="v">
|
|
66
|
+
<modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false">
|
|
67
|
+
<header slot="modal-header" class="modal-header">
|
|
68
|
+
<button type="button" class="close" @click="closeUserFile"><span>×</span></button>
|
|
69
|
+
<h4 class="modal-title">安装明细</h4>
|
|
70
|
+
</header>
|
|
71
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
72
|
+
<!-- 地址信息 -->
|
|
73
|
+
<div class="form-group col-sm-12 panel panel-info">
|
|
74
|
+
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
75
|
+
<div class="col-sm-6 text-left">地址信息</div>
|
|
76
|
+
</div>
|
|
77
|
+
<div class="form-group col-sm-12">
|
|
78
|
+
<label class="col-sm-2 control-label">地  址:</label>
|
|
79
|
+
<div class="col-sm-10">
|
|
80
|
+
<input class="form-control input_view"
|
|
81
|
+
placeholder="地址"
|
|
82
|
+
v-model="useradders.f_address"
|
|
83
|
+
:value.sync="useradders.f_address"
|
|
84
|
+
:readonly="true"/>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
<!-- 表具信息 -->
|
|
89
|
+
<div class="form-group col-sm-12 panel panel-info">
|
|
90
|
+
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
91
|
+
<div class="col-sm-6 text-left">表具信息</div>
|
|
92
|
+
</div>
|
|
93
|
+
<div class="form-group col-sm-6" :class="[$v.gasbrand.required ? 'has-error' : '']">
|
|
94
|
+
<label class="col-sm-4 control-label">气表品牌:</label>
|
|
95
|
+
<div class="col-sm-8">
|
|
96
|
+
<input type="text" v-show="false" v-model="userfile.gasbrand.id" :value.sync="userfile.gasbrand.id" v-validate:gasbrand = "['required']" >
|
|
97
|
+
<input-select
|
|
98
|
+
class="select select_list"
|
|
99
|
+
:value.sync="userfile.gasbrand"
|
|
100
|
+
v-model="userfile.gasbrand"
|
|
101
|
+
:options="meterbrands"
|
|
102
|
+
@change="gasbrandChange()"
|
|
103
|
+
:disable="mark === 1"
|
|
104
|
+
:valueSingle="true"></input-select>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
<div class="form-group col-sm-6" :class="[$v.gasmodel.required ? 'has-error' : '']">
|
|
108
|
+
<label class="col-sm-4 control-label">气表型号:</label>
|
|
109
|
+
<div class="col-sm-8">
|
|
110
|
+
<input type="text" v-show="false" v-model="userfile.gasmodel.id" :value.sync="userfile.gasmodel.id" v-validate:gasmodel = "['required']" >
|
|
111
|
+
<input-select
|
|
112
|
+
class="select select_list"
|
|
113
|
+
:value.sync="userfile.gasmodel"
|
|
114
|
+
v-model="userfile.gasmodel"
|
|
115
|
+
:options.sync="userfile.gasbrand.gasmodel"
|
|
116
|
+
@change="gasmodelChange()"
|
|
117
|
+
:disable="mark === 1"
|
|
118
|
+
:valueSingle="true"></input-select>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
<div class="form-group col-sm-6" :class="[$v.f_meternumber.required ? 'has-error' : '']">
|
|
122
|
+
<label class="col-sm-4 control-label">表  号:</label>
|
|
123
|
+
<div class="col-sm-8">
|
|
124
|
+
<input class="form-control input_view" style=""
|
|
125
|
+
placeholder="表号" v-validate:f_meternumber = "['required']"
|
|
126
|
+
v-model="userfile.f_meternumber"
|
|
127
|
+
:value.sync="userfile.f_meternumber"
|
|
128
|
+
@change="meternumberValidate()"
|
|
129
|
+
:readonly="mark === 1"/>
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
<div class="form-group col-sm-6">
|
|
133
|
+
<label class="col-sm-4 control-label">表 封 号:</label>
|
|
134
|
+
<div class="col-sm-8">
|
|
135
|
+
<input class="form-control input_view" style=""
|
|
136
|
+
placeholder="表封号"
|
|
137
|
+
v-model="userfile.f_metertitles"
|
|
138
|
+
:value="userfile.f_metertitles"
|
|
139
|
+
:readonly="mark === 1"/>
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
<div class="form-group col-sm-6">
|
|
143
|
+
<label class="col-sm-4 control-label">表 读 数:</label>
|
|
144
|
+
<div class="col-sm-8">
|
|
145
|
+
<input class="form-control input_view" style=""
|
|
146
|
+
type="number"
|
|
147
|
+
placeholder="表读数"
|
|
148
|
+
v-model="userfile.f_meter_base"
|
|
149
|
+
:value="userfile.f_meter_base"
|
|
150
|
+
:readonly="mark === 1"/>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
<div class="form-group col-sm-6">
|
|
154
|
+
<label class="col-sm-4 control-label">初始底数:</label>
|
|
155
|
+
<div class="col-sm-8">
|
|
156
|
+
<input class="form-control input_view" style=""
|
|
157
|
+
type="number"
|
|
158
|
+
v-model="userfile.f_initial_base"
|
|
159
|
+
:value="userfile.f_initial_base"
|
|
160
|
+
placeholder="初始底数"
|
|
161
|
+
:readonly="mark === 1"/>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
<div class="form-group col-sm-6">
|
|
165
|
+
<label class="col-sm-4 control-label">表  向:</label>
|
|
166
|
+
<div class="col-sm-8">
|
|
167
|
+
<input-select
|
|
168
|
+
class="select select_list"
|
|
169
|
+
:value.sync="userfile.f_aroundmeter"
|
|
170
|
+
v-model="userfile.f_aroundmeter"
|
|
171
|
+
:options="aroundmeters"
|
|
172
|
+
:disable="mark === 1"
|
|
173
|
+
:valueSingle="true"></input-select>
|
|
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="userfile.f_position"
|
|
182
|
+
v-model="userfile.f_position"
|
|
183
|
+
:options="positions"
|
|
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 class="form-control input_view" style=""
|
|
192
|
+
v-model="userfile.f_install_person"
|
|
193
|
+
:value.sync="installperson(userfile.f_install_person)"
|
|
194
|
+
placeholder="安装人"
|
|
195
|
+
readonly/>
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
<div class="form-group col-sm-6">
|
|
199
|
+
<label class="col-sm-4 control-label">安装日期:</label>
|
|
200
|
+
<div class="col-sm-8">
|
|
201
|
+
<input class="form-control input_view" style=""
|
|
202
|
+
v-model="userfile.f_install_date"
|
|
203
|
+
:value.sync="installdate(userfile.f_install_date)"
|
|
204
|
+
placeholder="安装日期"
|
|
205
|
+
readonly/>
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
<!-- 设备信息 -->
|
|
210
|
+
<div class="form-group col-sm-12 panel panel-info" v-for="(i, item) in devicesinfo">
|
|
211
|
+
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
212
|
+
<div class="col-sm-6 text-left">设备{{$index+1}}信息</div>
|
|
213
|
+
<div class="col-sm-6 text-right"><button
|
|
214
|
+
class="button_delete button_spacing"
|
|
215
|
+
v-if="!item.id"
|
|
216
|
+
@click.prevent="deleteDevicesinfo(i)"
|
|
217
|
+
>删除</button></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-select
|
|
223
|
+
class="select select_list"
|
|
224
|
+
:value.sync="item.f_brand"
|
|
225
|
+
v-model="item.f_brand"
|
|
226
|
+
:options="brandList"
|
|
227
|
+
:disable="mark === 1"
|
|
228
|
+
:valueSingle="true"></input-select>
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
<div class="form-group col-sm-6">
|
|
232
|
+
<label class="col-sm-4 control-label">设备类型:</label>
|
|
233
|
+
<div class="col-sm-8">
|
|
234
|
+
<input-select
|
|
235
|
+
class="select select_list"
|
|
236
|
+
:value.sync="item.f_devices_type"
|
|
237
|
+
v-model="item.f_devices_type"
|
|
238
|
+
:options="devicesType"
|
|
239
|
+
:disable="mark === 1"
|
|
240
|
+
:valueSingle="true"></input-select>
|
|
241
|
+
</div>
|
|
242
|
+
</div>
|
|
243
|
+
<div class="form-group col-sm-6">
|
|
244
|
+
<label class="col-sm-4 control-label">生产日期:</label>
|
|
245
|
+
<div class="col-sm-8">
|
|
246
|
+
<datepicker
|
|
247
|
+
placeholder="生产日期"
|
|
248
|
+
:value.sync="item.f_make_date"
|
|
249
|
+
v-model="item.f_make_date"
|
|
250
|
+
format="yyyy-MM-dd HH:mm:ss"
|
|
251
|
+
:disabled="mark === 1">
|
|
252
|
+
</datepicker>
|
|
253
|
+
</div>
|
|
254
|
+
</div>
|
|
255
|
+
<div class="form-group col-sm-6">
|
|
256
|
+
<label class="col-sm-4 control-label">设备数量:</label>
|
|
257
|
+
<div class="col-sm-8">
|
|
258
|
+
<input class="form-control input_view" style="" type="number"
|
|
259
|
+
placeholder="设备数量"
|
|
260
|
+
v-model="item.f_devices_num"
|
|
261
|
+
:value="item.f_devices_num"
|
|
262
|
+
:readonly="mark === 1"/>
|
|
263
|
+
</div>
|
|
264
|
+
</div>
|
|
265
|
+
<div class="form-group col-sm-6">
|
|
266
|
+
<label class="col-sm-4 control-label">安 装 人:</label>
|
|
267
|
+
<div class="col-sm-8">
|
|
268
|
+
<input class="form-control input_view" style=""
|
|
269
|
+
placeholder="安装人"
|
|
270
|
+
v-model="item.f_input_person"
|
|
271
|
+
:value.sync="installperson(item.f_input_person)"
|
|
272
|
+
readonly/>
|
|
273
|
+
</div>
|
|
274
|
+
</div>
|
|
275
|
+
<div class="form-group col-sm-6">
|
|
276
|
+
<label class="col-sm-4 control-label">安装日期:</label>
|
|
277
|
+
<div class="col-sm-8">
|
|
278
|
+
<input class="form-control input_view" style=""
|
|
279
|
+
placeholder="安装日期"
|
|
280
|
+
v-model="item.f_input_date"
|
|
281
|
+
:value="installdate(item.f_input_date)"
|
|
282
|
+
readonly/>
|
|
283
|
+
</div>
|
|
284
|
+
</div>
|
|
285
|
+
</div>
|
|
286
|
+
</article>
|
|
287
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
288
|
+
<template v-if="mark !== 1">
|
|
289
|
+
<button type="button" class="btn btn-primary" @click="pushDevice">添加设备</button>
|
|
290
|
+
<button type="button" class="btn btn-primary" @click="saveUserFile" :disabled="!$v.valid">确认</button>
|
|
291
|
+
</template>
|
|
292
|
+
</footer>
|
|
293
|
+
</modal>
|
|
294
|
+
</validator>
|
|
295
|
+
</template>
|
|
296
|
+
<script>
|
|
297
|
+
import Vue from 'vue'
|
|
298
|
+
import {PagedList} from 'vue-client'
|
|
299
|
+
import {HttpResetClass} from 'vue-client'
|
|
300
|
+
import {isEmpty} from '../../../../../components/Util'
|
|
301
|
+
// Date格式化
|
|
302
|
+
Date.prototype.Format = function (fmt) {
|
|
303
|
+
var o = {
|
|
304
|
+
'M+': this.getMonth() + 1, // 月份
|
|
305
|
+
'd+': this.getDate(), // 日
|
|
306
|
+
'H+': this.getHours(), // 小时
|
|
307
|
+
'm+': this.getMinutes(), // 分
|
|
308
|
+
's+': this.getSeconds(), // 秒
|
|
309
|
+
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
310
|
+
'S': this.getMilliseconds() // 毫秒
|
|
311
|
+
}
|
|
312
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
313
|
+
for (var k in o) {
|
|
314
|
+
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
315
|
+
}
|
|
316
|
+
return fmt
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export default {
|
|
320
|
+
title: '安装明细',
|
|
321
|
+
props: {
|
|
322
|
+
selectdata: {
|
|
323
|
+
type: Object
|
|
324
|
+
},
|
|
325
|
+
mark: {
|
|
326
|
+
type: Number,
|
|
327
|
+
default: 0
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
data () {
|
|
331
|
+
return {
|
|
332
|
+
showWork: false,
|
|
333
|
+
showFile: false,
|
|
334
|
+
showUserFile: false,
|
|
335
|
+
model: new PagedList('rs/sql/getAddresAndUserinfoAndUserfilesAmount', 20, null),
|
|
336
|
+
meterbrands: [], // 气表品牌
|
|
337
|
+
useradders: {},
|
|
338
|
+
userinfo: {},
|
|
339
|
+
userfile: {},
|
|
340
|
+
devicesinfo: []
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
ready () {
|
|
344
|
+
this.search()
|
|
345
|
+
this.getMeterbrands()
|
|
346
|
+
},
|
|
347
|
+
methods: {
|
|
348
|
+
deleteDevicesinfo (index) {
|
|
349
|
+
this.devicesinfo.splice(index, 1)
|
|
350
|
+
},
|
|
351
|
+
pushDevice () {
|
|
352
|
+
this.devicesinfo.push({})
|
|
353
|
+
},
|
|
354
|
+
// 保存档案
|
|
355
|
+
async saveUserFile() {
|
|
356
|
+
this.userinfo = {
|
|
357
|
+
f_user_name: this.selectdata.f_user_name,
|
|
358
|
+
f_user_phone: this.selectdata.f_phone,
|
|
359
|
+
f_credentials: this.selectdata.f_credentials,
|
|
360
|
+
f_idnumber: this.selectdata.f_idnumber
|
|
361
|
+
}
|
|
362
|
+
this.useradders = Object.assign({}, this.useradders, {
|
|
363
|
+
f_address_type: '特殊地址',
|
|
364
|
+
f_slice_area: this.selectdata.f_slice_area,
|
|
365
|
+
f_pcd: this.selectdata.f_pcd,
|
|
366
|
+
f_street: this.selectdata.f_street,
|
|
367
|
+
f_residential_area: this.selectdata.f_residential_area
|
|
368
|
+
})
|
|
369
|
+
|
|
370
|
+
this.userfile.devicesinfo = this.devicesinfo
|
|
371
|
+
|
|
372
|
+
let data = {
|
|
373
|
+
user: this.$login.f,
|
|
374
|
+
userinfo: this.userinfo,
|
|
375
|
+
useradders: this.useradders,
|
|
376
|
+
userfile: this.userfile,
|
|
377
|
+
selectdata: this.selectdata
|
|
378
|
+
}
|
|
379
|
+
let res = await this.$resetpost('rs/logic/applyAddUserinfo', {data:data}, {
|
|
380
|
+
resolveMsg: null,
|
|
381
|
+
rejectMsg: '用户档案添加失败!!!'
|
|
382
|
+
})
|
|
383
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
384
|
+
},
|
|
385
|
+
// 检查表号是否存在
|
|
386
|
+
async meternumberValidate() {
|
|
387
|
+
if (!this.userfile.f_gasbrand_id) {
|
|
388
|
+
this.userfile.f_meternumber = ''
|
|
389
|
+
this.$showAlert('请先选择气表品牌!!!', 'warning', 3000)
|
|
390
|
+
return
|
|
391
|
+
}
|
|
392
|
+
if (this.userfile.f_gasbrand_id && this.userfile.f_meternumber) {
|
|
393
|
+
let data = {
|
|
394
|
+
f_meternumber: this.userfile.f_meternumber,
|
|
395
|
+
f_gasbrand_id: this.userfile.f_gasbrand_id
|
|
396
|
+
}
|
|
397
|
+
if (this.userfile.f_userfiles_id) {
|
|
398
|
+
data.f_userfiles_id = this.userfile.f_userfiles_id
|
|
399
|
+
}
|
|
400
|
+
let res = await this.$resetpost('rs/logic/meterbrandsNumberValidate', {data:data}, {
|
|
401
|
+
resolveMsg: null,
|
|
402
|
+
rejectMsg: '表号验证失败!!'
|
|
403
|
+
})
|
|
404
|
+
if (res.data) {
|
|
405
|
+
this.userfile.f_meternumber = ''
|
|
406
|
+
this.$showAlert('表号已存在!!', 'warning', 3000)
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
// 选择气表型号
|
|
411
|
+
gasmodelChange() {
|
|
412
|
+
if (this.userfile.gasmodel) {
|
|
413
|
+
this.userfile.f_gasmodel_id = this.userfile.gasmodel.id
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
// 选择气表品牌
|
|
417
|
+
gasbrandChange() {
|
|
418
|
+
// 清空已保存的气表型号
|
|
419
|
+
this.userfile.f_gasmodel_id = null
|
|
420
|
+
this.userfile.gasmodel = null
|
|
421
|
+
|
|
422
|
+
if (this.userfile.gasbrand) {
|
|
423
|
+
// 气表品牌id
|
|
424
|
+
this.userfile.f_gasbrand_id = this.userfile.gasbrand.id
|
|
425
|
+
// 气表分类
|
|
426
|
+
this.userfile.f_meter_classify = this.userfile.gasbrand.f_meter_type
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
// 打开安装明细
|
|
430
|
+
async showUserFileModal (row) {
|
|
431
|
+
if (row) {
|
|
432
|
+
console.log('------------------修正---------------------')
|
|
433
|
+
Vue.set(this.useradders, 'f_address', row.f_address)
|
|
434
|
+
|
|
435
|
+
let http = new HttpResetClass()
|
|
436
|
+
let data = {
|
|
437
|
+
tablename: 't_userinfo',
|
|
438
|
+
condition: `f_userinfo_id = '${row.f_userinfo_id}'`
|
|
439
|
+
}
|
|
440
|
+
let res = await http.load(
|
|
441
|
+
'POST',
|
|
442
|
+
`rs/sql/singleTable`,
|
|
443
|
+
{data: data},
|
|
444
|
+
{resolveMsg: null, rejectMsg: '档案信息查询失败!!!'}
|
|
445
|
+
)
|
|
446
|
+
this.userinfo = res.data[0]
|
|
447
|
+
|
|
448
|
+
data = {
|
|
449
|
+
tablename: 't_userfiles',
|
|
450
|
+
condition: `f_userinfo_id = '${row.f_userinfo_id}'`
|
|
451
|
+
}
|
|
452
|
+
res = await http.load(
|
|
453
|
+
'POST',
|
|
454
|
+
`rs/sql/singleTable`,
|
|
455
|
+
{data: data},
|
|
456
|
+
{resolveMsg: null, rejectMsg: '表具信息查询失败!!!'}
|
|
457
|
+
)
|
|
458
|
+
this.userfile = res.data[0]
|
|
459
|
+
|
|
460
|
+
// 已有表具的 气表信息补充
|
|
461
|
+
for (const item of this.meterbrands) {
|
|
462
|
+
if (item.value.id == this.userfile.f_gasbrand_id) {
|
|
463
|
+
this.userfile.gasbrand = item.value
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
if (this.userfile.gasbrand) {
|
|
467
|
+
for (const item of this.userfile.gasbrand.gasmodel) {
|
|
468
|
+
if (item.value.id == this.userfile.f_gasmodel_id) {
|
|
469
|
+
this.userfile.gasmodel = item.value
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
data = {
|
|
475
|
+
tablename: 't_devices',
|
|
476
|
+
condition: `f_userfiles_id = '${this.userfile.f_userfiles_id}'`
|
|
477
|
+
}
|
|
478
|
+
res = await http.load(
|
|
479
|
+
'POST',
|
|
480
|
+
`rs/sql/singleTable`,
|
|
481
|
+
{data: data},
|
|
482
|
+
{resolveMsg: null, rejectMsg: '设备信息查询失败!!!'}
|
|
483
|
+
)
|
|
484
|
+
this.devicesinfo = res.data
|
|
485
|
+
} else {
|
|
486
|
+
console.log('-------------------添加----------------------')
|
|
487
|
+
Vue.set(this.useradders, 'f_address', `${this.selectdata.f_address}(${this.model.count + 1})`)
|
|
488
|
+
}
|
|
489
|
+
this.showUserFile = true
|
|
490
|
+
},
|
|
491
|
+
// 获取气表品牌
|
|
492
|
+
async getMeterbrands() {
|
|
493
|
+
let http = new HttpResetClass()
|
|
494
|
+
let data = {
|
|
495
|
+
f_orgid: this.$login.f.orgid
|
|
496
|
+
}
|
|
497
|
+
let res = await http.load('POST', 'rs/logic/getMeterbrands', {data:data}, {
|
|
498
|
+
resolveMsg: null,
|
|
499
|
+
rejectMsg: null
|
|
500
|
+
})
|
|
501
|
+
this.meterbrands = res.data
|
|
502
|
+
},
|
|
503
|
+
searchCondition (args) {
|
|
504
|
+
args.condition = args.condition + `and ua.f_process_id = '${this.selectdata.f_process_id}'`
|
|
505
|
+
|
|
506
|
+
this.model.search(args.condition, args.model)
|
|
507
|
+
},
|
|
508
|
+
// 查询
|
|
509
|
+
async search () {
|
|
510
|
+
this.$refs.cp.$refs.cri.search()
|
|
511
|
+
},
|
|
512
|
+
// 关闭安装明细
|
|
513
|
+
closeUserFile() {
|
|
514
|
+
this.showUserFile = false
|
|
515
|
+
this.useradders = {}
|
|
516
|
+
this.userinfo = {}
|
|
517
|
+
this.userfile = {}
|
|
518
|
+
this.devicesinfo = []
|
|
519
|
+
this.search()
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
events: {
|
|
523
|
+
},
|
|
524
|
+
computed: {
|
|
525
|
+
// 安装人
|
|
526
|
+
installperson() {
|
|
527
|
+
return function (f_install_person) {
|
|
528
|
+
if (isEmpty(f_install_person)) {
|
|
529
|
+
return this.$login.f.name
|
|
530
|
+
}
|
|
531
|
+
return f_install_person
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
// 安装时间
|
|
535
|
+
installdate() {
|
|
536
|
+
return function (f_install_date) {
|
|
537
|
+
if (isEmpty(f_install_date)) {
|
|
538
|
+
return new Date().Format('yyyy-MM-dd HH:mm:ss')
|
|
539
|
+
}
|
|
540
|
+
return f_install_date
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
// 表向
|
|
544
|
+
aroundmeters() {
|
|
545
|
+
return this.$appdata.getParam('左右表')
|
|
546
|
+
},
|
|
547
|
+
// 安装位置
|
|
548
|
+
positions() {
|
|
549
|
+
return this.$appdata.getParam('安装位置')
|
|
550
|
+
},
|
|
551
|
+
devicesType() {
|
|
552
|
+
return this.$appdata.getParam("设备类型")
|
|
553
|
+
},
|
|
554
|
+
brandList() {
|
|
555
|
+
return this.$appdata.getParam("设备品牌")
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
watch: {
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
</script>
|
|
562
|
+
<style scoped>
|
|
563
|
+
.head-but{
|
|
564
|
+
margin-left: 5px;
|
|
565
|
+
height: 34px;
|
|
566
|
+
/*background-color: #6aa6e2;*/
|
|
567
|
+
border-radius: 4px;
|
|
568
|
+
font-family: PingFang;
|
|
569
|
+
color: #ffffff;
|
|
570
|
+
}
|
|
571
|
+
/*清除model中的浮动*/
|
|
572
|
+
.clearfix:after,.clearfix:before{
|
|
573
|
+
display: table;
|
|
574
|
+
}
|
|
575
|
+
.clearfix:after{
|
|
576
|
+
clear: both;
|
|
577
|
+
}
|
|
578
|
+
.input_view{
|
|
579
|
+
padding: 8px;
|
|
580
|
+
background-color: #ffffff;
|
|
581
|
+
border-radius: 2px;
|
|
582
|
+
border: solid 1px #c7c7c7!important;
|
|
583
|
+
color: #333333!important;
|
|
584
|
+
font-size: 15px!important;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.input_view[readonly]{
|
|
588
|
+
border: 1px solid #DDD!important;
|
|
589
|
+
color:#ACA899!important;
|
|
590
|
+
}
|
|
591
|
+
.input_view:disabled{
|
|
592
|
+
border: 1px solid #DDD!important;
|
|
593
|
+
color:#ACA899!important;
|
|
594
|
+
}
|
|
595
|
+
</style>
|