sale-client 3.5.155 → 3.5.156

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.155",
3
+ "version": "3.5.156",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -0,0 +1,1038 @@
1
+ <template>
2
+ <div class="auto" id="meterInfoTest">
3
+ <validator name='m' @valid="mValid(true)" @invalid="mValid(false)">
4
+ <form class="form-horizontal select-overspread ">
5
+ <div style="margin-top: 2%;">
6
+ <a style="font-size: 16px;font-weight: 500;">表具信息</a>&nbsp;<a style="color: #999999;text-decoration: none"></a>
7
+ </div>
8
+ <div class="row" >
9
+ <div class="col-sm-4 form-group" v-if="isiot" :class="[$m.f_meternumber.required ? 'has-error' : '']">
10
+ <label for="f_meternumber" class="font_normal_body">&ensp;表&emsp;&emsp;号</label>
11
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_meternumber"
12
+ @blur="meternumberValidate()" placeholder='表号' v-validate:f_meternumber='{required: true }'
13
+ v-next-el="{id: 'metertitles'}">
14
+ </div>
15
+ <div class="col-sm-4 form-group" v-else>
16
+ <label for="f_meternumber" class="font_normal_body">&ensp;表&emsp;&emsp;号</label>
17
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_meternumber"
18
+ @blur="meternumberValidate()" placeholder='表号'
19
+ v-next-el="{id: 'metertitles'}">
20
+ </div>
21
+ <div class="col-sm-4 form-group">
22
+ <label for="f_metertitles" class="font_normal_body">&ensp;表&ensp;封&ensp;号</label>
23
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_metertitles" placeholder='表封号'
24
+ v-next-el="{id: 'meterbase'}">
25
+ </div>
26
+ <div class="col-sm-4 form-group">
27
+ <label for="f_metertitles" class="font_normal_body">表具状态</label>
28
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_table_state" placeholder='表具状态' disabled>
29
+ </div>
30
+ <div class="col-sm-4 form-group">
31
+ <label for="f_meter_base" class="font_normal_body">&ensp;表&ensp;读&ensp;数</label>
32
+ <input type="number" class="input_search" style="width:60%" v-model="row.f_meter_base" placeholder='表底数'
33
+ :disabled="!jurisdiction.includes('档案信息查询修改')" :readonly="!row.f_userfiles_id">
34
+ </div>
35
+ <div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】">
36
+ <label for="f_meter_base" class="font_normal_body">&ensp;初始底数</label>
37
+ <input type="number" class="input_search" style="width:60%" v-model="row.f_initial_base" placeholder='表底数'
38
+ :disabled="!jurisdiction.includes('档案信息查询修改')">
39
+ </div>
40
+
41
+ <div class="col-sm-4 form-group" :class="[$m.brand.required ? 'has-error' : '']">
42
+ <label for="gasbrand" class="font_normal_body">气表品牌</label>
43
+ <input type="text" class="input_search" style="width:60%" v-show="false" v-model="$refs.brand.selectedItems"
44
+ v-validate:brand='{required: true }'>
45
+ <v-select :value.sync="row.gasbrand" :options='meterbrands' placeholder='气表品牌' close-on-select
46
+ search @change='brandChange' v-model='row.gasbrand' :disabled="curuser.f_user_state != '预备'" v-ref:brand></v-select>
47
+ </div>
48
+ <div class="col-sm-4 form-group" :class="[$m.model.required ? 'has-error' : '']">
49
+ <label for="gasmodel" class="font_normal_body">气表型号</label>
50
+ <input type="text" v-show="false" v-model="$refs.model.selectedItems"
51
+ v-validate:model='{required: true }'>
52
+ <v-select :value.sync="row.gasmodel" :options='row.gasbrand[0].gasmodel' placeholder='气表型号'
53
+ close-on-select
54
+ v-model='row.gasmodel' :disabled="row.gasbrand.length === 0 || curuser.f_user_state != '预备'" v-ref:model></v-select>
55
+ </div>
56
+ <div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】">
57
+ <label for="f_meter_base" class="font_normal_body">&ensp;累购气量</label>
58
+ <input type="number" class="input_search" style="width:60%" v-model="row.f_total_gas" placeholder='累购气量'
59
+ :disabled="!jurisdiction.includes('档案信息查询修改')">
60
+ </div>
61
+ <div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】">
62
+ <label for="f_meter_base" class="font_normal_body">表写卡累购气量</label>
63
+ <input type="number" class="input_search" style="width:60%" v-model="row.f_write_totalgas" placeholder='表写卡累购气量'
64
+ :disabled="!jurisdiction.includes('档案信息查询修改')">
65
+ </div>
66
+ <div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】">
67
+ <label for="f_meter_base" class="font_normal_body">&ensp;累购金额</label>
68
+ <input type="number" class="input_search" style="width:60%" v-model="row.f_total_fee" placeholder='累购金额'
69
+ :disabled="!jurisdiction.includes('档案信息查询修改')">
70
+ </div>
71
+ <div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】">
72
+ <label for="f_meter_base" class="font_normal_body">表写卡累购金额</label>
73
+ <input type="number" class="input_search" style="width:60%" v-model="row.f_write_totalfee" placeholder='表写卡累购金额'
74
+ :disabled="!jurisdiction.includes('档案信息查询修改')">
75
+ </div>
76
+ <div class="col-sm-4 form-group" v-show="row.f_meter_classify != '机表'" title="涉及权限:【档案信息查询修改】">
77
+ <label for="f_times" class="font_normal_body">&ensp;写卡次数</label>
78
+ <input type="number" class="input_search" style="width:60%" v-model="row.f_times" placeholder='写卡次数'
79
+ :disabled="!jurisdiction.includes('档案信息查询修改')">
80
+ </div>
81
+ <div class="col-sm-4 form-group" v-show="row.f_meter_classify == '物联网表'" title="涉及权限:【档案信息查询修改】">
82
+ <label for="f_times" class="font_normal_body">物联网写卡次数</label>
83
+ <input type="number" class="input_search" style="width:60%" v-model="row.f_iot_times" placeholder='物联网次数'
84
+ :disabled="!jurisdiction.includes('档案信息查询修改')">
85
+ </div>
86
+ <div class="col-sm-4 form-group" v-show="false">
87
+ <label for="f_remanent_gas" class="font_normal_body">剩余气量</label>
88
+ <input type="number" class="input_search" style="width:60%" v-model="row.f_remanent_gas"
89
+ placeholder='剩余气量'
90
+ :disabled="f_userinfo_id"></input>
91
+ <!--<button type="button" name="button" class="btn btn-link" @click="modefiy('f_remanent_gas')" v-if="f_userinfo_id">修改</button>-->
92
+ </div>
93
+ <div class="col-sm-4 form-group">
94
+ <label for="f_times" class="font_normal_body">&ensp;最大量程</label>
95
+ <input type="number" class="input_search" style="width:60%" v-model="row.f_capacity" placeholder='最大量程'>
96
+ </div>
97
+ <div class="col-sm-4 form-group" v-show="row.f_meter_classify == '物联网表'">
98
+ <label for="gasmodel" class="font_normal_body">&ensp;阀门状态</label>
99
+ <v-select :value.sync="row.f_valve_state" :options='valvestate' placeholder='阀门状态' close-on-select
100
+ v-model='row.f_valve_state'></v-select>
101
+ </div>
102
+ <div class="col-sm-4 form-group" v-show="row.gasbrand.length > 0 && row.gasbrand[0].f_meter_type == '物联网表' && row.gasbrand[0].f_hascard == '是'">
103
+ <label class="font_normal_body" title="开户方式">开户方式</label>
104
+ <v-select :value.sync="row.f_open_way" :options='openWay' value-single placeholder='开户方式' close-on-select v-if="row.f_userfiles_id"
105
+ search v-model='row.f_open_way' :disabled="true"></v-select>
106
+ <v-select :value.sync="row.f_open_way" :options='openWay' value-single placeholder='开户方式' close-on-select v-else
107
+ search v-model='row.f_open_way' :disabled="false"></v-select>
108
+ </div>
109
+ <div class="col-sm-4 form-group" v-show="row.gasbrand.length > 0 && row.gasbrand[0].f_meter_brand.indexOf('集中器') !== -1">
110
+ <label class="font_normal_body" title="集中器">集&ensp;中&ensp;器</label>
111
+ <v-select :value.sync="row.f_concentrator_id" :options='concentrators' value-single placeholder='集中器' close-on-select v-if="row.f_userfiles_id"
112
+ search v-model='row.f_concentrator_id' :disabled="true"></v-select>
113
+ <v-select :value.sync="row.f_concentrator_id" :options='concentrators' value-single placeholder='集中器' close-on-select v-else
114
+ search v-model='row.f_concentrator_id' :disabled="false"></v-select>
115
+ </div>
116
+ <div class="col-sm-4 form-group" v-if="(row.gasbrand.length > 0 && ((row.gasbrand[0].f_meter_type == '物联网表' && row.gasbrand[0].f_hascard == '是') || (row.f_meter_classify.includes('卡表'))) && row.f_user_id )">
117
+ <label class="font_normal_body">&ensp;卡&emsp;&emsp;号</label>
118
+ <input type="number" class="input_search" style="width:60%" v-model="row.f_card_id" placeholder='卡号' @blur="checkCardId" :disabled="!jurisdiction.includes('卡号修改')">
119
+ </div>
120
+ </div>
121
+ <div>
122
+ <a style="font-size: 16px;font-weight: 500;">气价信息</a>&nbsp;<a style="color: #999999;text-decoration: none"></a>
123
+ </div>
124
+ <div class="row">
125
+ <div class="col-sm-4 form-group" :class="[$m.name.required ? 'has-error' : '']">
126
+ <label for="pricename" class="font_normal_body">气价名称</label>
127
+ <v-select :value.sync="row.pricename" v-model="row.pricename" search
128
+ placeholder='气价名称' :options="getPricenames" @change="priceChange"
129
+ close-on-select :disabled="permissionPrice" v-ref:name></v-select>
130
+ <input type="text" v-show="false" v-model="$refs.name.selectedItems" v-validate:name='{required: true }'>
131
+ </div>
132
+ <div class="col-sm-4 form-group">
133
+ <label for="f_username" class="font_normal_body">&ensp;客户类型</label>
134
+ <v-select :value.sync="row.f_user_type"
135
+ :options='usertypes' placeholder='客户类型'
136
+ @change="userTypeChange()"
137
+ :disabled="true"
138
+ close-on-select></v-select>
139
+ </div>
140
+ <div class="col-sm-4 form-group"
141
+ :class="[$m.gas.required ? 'select-error' : '']">
142
+ <label for="f_username" class="font_normal_body">&ensp;用气性质</label>
143
+ <input type="text" v-show="false" v-model="$refs.gas.selectedItems" v-validate:gas='{required: true }'>
144
+ <v-select :value.sync="row.f_gasproperties" v-model="row.f_gasproperties"
145
+ :options='gasproperties' placeholder='用气性质'
146
+ :disabled="true"
147
+ close-on-select v-ref:gas></v-select>
148
+ </div>
149
+ <div class="col-sm-4 form-group">
150
+ <label for="f_detailprice" class="font_normal_body">&ensp;价&emsp;&emsp;格</label>
151
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_detailprice" placeholder='价格'
152
+ disabled>
153
+ </div>
154
+ <div class="col-sm-4 form-group" :class="[$m.type.required ? 'select-error' : '']">
155
+ <label for="pricetype" class="font_normal_body">&ensp;气价类型</label>
156
+ <v-select :value.sync="row.pricetype" v-model="row.pricetype"
157
+ placeholder='气价类型' :options="pricetypes"
158
+ :value-single="true"
159
+ :disabled="true"
160
+ close-on-select v-ref:type>
161
+ </v-select>
162
+ <input type="text" v-show="false" v-model="$refs.type.selectedItems" v-validate:type='{required: true }'>
163
+ </div>
164
+ <div class="col-sm-4 form-group">
165
+ <label class="font_normal_body">&ensp;气价备注</label>
166
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_price_comments" placeholder='气价备注' disabled>
167
+ </div>
168
+ </div>
169
+ <div>
170
+ <a style="font-size: 16px;font-weight: 500;">表具其他信息</a>&nbsp;<a style="color: #999999;text-decoration: none"></a>
171
+ </div>
172
+ <div class="row">
173
+ <div class="col-sm-4 form-group" v-show="row.f_gasproperties=='工业'||row.f_gasproperties=='工业用气'">
174
+ <label for="f_gongye_type" class="font_normal_body" title="参数:工业备注">&ensp;工业备注</label>
175
+ <v-select :value.sync="row.f_gongye_type" v-model='row.f_gongye_type'
176
+ :options='gongyetype' placeholder='工业备注'
177
+ close-on-select
178
+ v-el:cc></v-select>
179
+ </div>
180
+ <div class="col-sm-4 form-group">
181
+ <label for="gasmodel" class="font_normal_body">&ensp;表&ensp;&ensp;&ensp;&ensp;向</label>
182
+ <v-select :value.sync="row.f_aroundmeter" :options='aroundmeters' placeholder='左右表' close-on-select
183
+ v-model='row.f_aroundmeter'></v-select>
184
+ </div>
185
+ <div class="col-sm-4 form-group" >
186
+ <label for="f_bqf_type" class="font_normal_body">表前阀型号</label>
187
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_bqf_type"
188
+ placeholder='表前阀型号'>
189
+ </div>
190
+ <div class="col-sm-4 form-group">
191
+ <label class="font_normal_body">表具使用年限</label>
192
+ <input type="number" class="input_search" style="width:60%" v-model="row.f_use_limit"
193
+ :value.sync="row.f_use_limit"
194
+ placeholder='表具使用年限' >
195
+ </div>
196
+ <div class="col-sm-4 form-group">
197
+ <label for="f_gas_person" class="font_normal_body">&ensp;通&ensp;气&ensp;人</label>
198
+ <input type="text" class="input_search" style="width:60%" style="width:60%" v-model="row.f_gas_person"
199
+ placeholder='通气人'></input>
200
+ <!-- <v-select :value.sync="row.f_gas_person" v-model="row.f_gas_person"
201
+ :options='gasperson' placeholder='通气人'
202
+ close-on-select></v-select> -->
203
+ </div>
204
+ <div class="col-sm-4 form-group" :class="[$m.f_gas_date.required ? 'has-error' : '']">
205
+ <input type="text" v-model="$refs.f_gas_date.value" v-show="false" v-validate:f_gas_date='{required: true }'>
206
+ <label for="f_gas_date" class="font_normal_body">&ensp;通气日期</label>
207
+ <datepicker style="width:60%" placeholder="通气日期"
208
+ v-model="row.f_gas_date"
209
+ v-ref:f_gas_date
210
+ @change="gasDateChange"
211
+ :value.sync="row.f_gas_date"
212
+ :format="'yyyy-MM-dd HH:mm:ss'"
213
+ ></datepicker>
214
+ </div>
215
+
216
+ <div class="col-sm-4 form-group" >
217
+ <label for="f_position" class="font_normal_body" title="参数:安装位置">&ensp;安装位置</label>
218
+ <v-select :value.sync="row.f_position" v-model="row.f_position"
219
+ :options='positions' placeholder='安装位置'
220
+ close-on-select></v-select>
221
+ </div>
222
+ <div class="col-sm-4 form-group" v-show="true">
223
+ <label for="f_install_person" class="font_normal_body">&ensp;安&ensp;装&ensp;人</label>
224
+ <v-select :value.sync="row.f_install_person" v-model="row.f_install_person"
225
+ :options='installperson' placeholder='安装人'
226
+ close-on-select></v-select>
227
+ </div>
228
+ <div class="col-sm-4 form-group">
229
+ <label for="f_subscribe_date" class="font_normal_body">&ensp;预约时间</label>
230
+ <datepicker style="width:60%" placeholder="预约通气时间"
231
+ v-model="row.f_subscribe_date"
232
+ :value.sync="row.f_subscribe_date"
233
+ :format="'yyyy-MM-dd HH:mm:ss'"
234
+ ></datepicker>
235
+ </div>
236
+ <div class="col-sm-4 form-group" v-show="opteratormetrbook" >
237
+ <label for="f_position" class="font_normal_body" >&ensp;抄&ensp;表&ensp;册</label>
238
+ <v-select :value.sync="row.f_meter_book_num" v-model="row.f_meter_book_num"
239
+ :options='meterbookoptions' placeholder='抄表册'
240
+ close-on-select></v-select>
241
+ </div>
242
+ <div class="col-sm-4 form-group" v-show="true" :class="[$m.f_install_date.required ? 'has-error' : '']">
243
+ <input type="text" v-model="$refs.f_install_date.value" v-show="false" v-validate:f_install_date='{required: true }'>
244
+ <label for="f_install_date" class="font_normal_body">&ensp;安装日期</label>
245
+ <datepicker style="width:60%" id="startDate" placeholder="安装日期" width='100%'
246
+ v-model="f_install_date"
247
+ :value.sync="f_install_date"
248
+ class="datepicker"
249
+ v-ref:f_install_date
250
+ :format="'yyyy-MM-dd HH:mm:ss'"
251
+ :show-reset-button="true">
252
+ </datepicker>
253
+ </div>
254
+ <div class="col-sm-4 form-group" v-show="true" :class="[$m.f_factory_date.required ? 'has-error' : '']">
255
+ <input type="text" v-model="$refs.f_factory_date.value" v-show="false" v-validate:f_factory_date='{required: true }'>
256
+ <label for="f_factory_date" class="font_normal_body">&ensp;出厂日期</label>
257
+ <datepicker style="width:60%" id="f_factory_date" placeholder="出厂日期" width='100%'
258
+ v-model="f_factory_date"
259
+ :value.sync="f_factory_date"
260
+ class="datepicker"
261
+ v-ref:f_factory_date
262
+ @updatayear="updatayear"
263
+ :format="'yyyy-MM-dd HH:mm:ss'"
264
+ :show-reset-button="true">
265
+ </datepicker>
266
+ </div>
267
+ <div class="col-sm-4 form-group">
268
+ <label for="f_adjustable" class="font_normal_body">&ensp;调&ensp;压&ensp;箱</label>
269
+ <v-select :value.sync="row.f_adjustable" :options='adjustables' placeholder='调压箱' close-on-select
270
+ v-model='row.f_adjustable' :search='true'></v-select>
271
+ </div>
272
+ <div class="col-sm-4 form-group">
273
+ <label for="f_hand_date" class="font_normal_body">&ensp;上次抄表</label>
274
+ <datepicker style="width:60%" id="f_hand_date" placeholder="上次抄表日期"
275
+ v-model="row.f_hand_date"
276
+ :value.sync="row.f_hand_date"
277
+ class="datepicker"
278
+ :format="'yyyy-MM-dd HH:mm:ss'"
279
+ :show-reset-button="true">
280
+ </datepicker>
281
+ </div>
282
+ <div v-if="ratioshow" class="col-sm-4 form-group"
283
+ :class="[$m.meternumber.required ? 'has-error' : '']">
284
+ <label for="f_ratio" class="font_normal_body">比&emsp;&emsp;率</label>
285
+ <input type="number" class="input_search" style="width:60%" v-model="row.f_price_ratio"
286
+ :value.sync="row.f_price_ratio"
287
+ v-validate:meternumber='{required: true }' placeholder='比率'>
288
+ </div>
289
+ <!-- <div class="col-sm-4 form-group" >-->
290
+ <!-- <label for="f_factory_date" class="font_normal_body">&ensp;出厂日期</label>-->
291
+ <!-- <datepicker style="width:60%" id="f_factory_date" placeholder="出厂日期" width='100%'-->
292
+ <!-- v-model="row.f_factory_date"-->
293
+ <!-- :value.sync="row.f_factory_date"-->
294
+ <!-- class="datepicker"-->
295
+ <!-- :format="'yyyy-MM-dd'"-->
296
+ <!-- :show-reset-button="true">-->
297
+ <!-- </datepicker>-->
298
+ <!-- </div>-->
299
+ <div class="col-sm-4 form-group" >
300
+ <label for="f_scrap_date" class="font_normal_body">&ensp;报废日期</label>
301
+ <datepicker style="width:60%" id="ScrapDate" placeholder="报废日期" width='100%'
302
+ :v-model="f_scrap_date"
303
+ :value.sync="f_scrap_date"
304
+ class="datepicker"
305
+ :format="'yyyy-MM-dd'"
306
+ :show-reset-button="true">
307
+ </datepicker>
308
+ </div>
309
+ <div class="col-sm-4 form-group">
310
+ <label for="gasmodel" class="font_normal_body">&ensp;垃&ensp;圾&ensp;费</label>
311
+ <v-select :value.sync="row.f_garbage_fee" :options='garbagefee' placeholder='垃圾费' close-on-select
312
+ :value-single="true"
313
+ v-model='row.f_garbage_fee'></v-select>
314
+ </div>
315
+ <div class="col-sm-4 form-group">
316
+ <label class="font_normal_body">&ensp;抄&ensp;表&ensp;员</label>
317
+ <v-select :value.sync="row.f_inputtor" v-model='row.f_inputtor'
318
+ style="width:60%"
319
+ :options='inputtores' placeholder='抄表员'
320
+ close-on-select
321
+ condition="f_inputtor like '%{}%'" v-el:cc></v-select>
322
+ </div>
323
+ <div class="col-sm-4 form-group" >
324
+ <label for="f_usetype" class="font_normal_body" title="参数:使用类型">&ensp;使用类型</label>
325
+ <v-select :value.sync="row.f_usetype" v-model="row.f_usetype"
326
+ :options='usetype' placeholder='使用类型'
327
+ close-on-select></v-select>
328
+ </div>
329
+ <div class="col-sm-4 form-group" >
330
+ <label for="f_position" class="font_normal_body" title="参数:使用状态">&ensp;使用状态</label>
331
+ <v-select :value.sync="row.f_usestate" v-model="row.f_usestate"
332
+ :options='usestate' placeholder='使用状态'
333
+ close-on-select></v-select>
334
+ </div>
335
+ <div class="col-sm-4 form-group" >
336
+ <label for="f_limit_sms" class="font_normal_body">&ensp;短信限定</label>
337
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_limit_sms"
338
+ placeholder='短信限定'></input>
339
+ </div>
340
+ <div style="" class="col-sm-4 form-group">
341
+ <label for="f_alarm_code" class="font_normal_body ">&ensp;报警器号</label>
342
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_alarm_code" placeholder='报警器号'/>
343
+ </div>
344
+ <div style="" class="col-sm-4 form-group">
345
+ <label for="f_hand_month" class="font_normal_body ">&ensp;抄表月份</label>
346
+ <v-select :value.sync="row.f_hand_month" v-model="row.f_hand_month"
347
+ :options='handmonth' placeholder='抄表月份'
348
+ close-on-select></v-select>
349
+ </div>
350
+ <div style="" class="col-sm-4 form-group">
351
+ <label for="f_userfiles_address" class="font_normal_body ">&ensp;用气点名</label>
352
+ <input class="input_search" style="width:60%" v-model="row.f_userfiles_address"/>
353
+ </div>
354
+ <div style="" class="col-sm-4 form-group">
355
+ <label class="font_normal_body">&ensp;经&ensp;&ensp;&ensp;&ensp;度</label>
356
+ <input type="text" style="width:60%" v-model="row.f_userfiles_lng" class="input_search" placeholder="经度"/>
357
+ </div>
358
+ <div style="" class="col-sm-4 form-group">
359
+ <label class="font_normal_body">&ensp;纬&ensp;&ensp;&ensp;&ensp;度</label>
360
+ <input type="text" style="width:48%" v-model="row.f_userfiles_lat" class="input_search" placeholder="纬度"/>
361
+ &ensp;<span class="glyphicon glyphicon-map-marker" @click="openModal" ></span>
362
+ </div>
363
+ <div class="col-sm-4 form-group">
364
+ <label class="font_normal_body">备&ensp;&ensp;&ensp;&ensp;注</label>
365
+ <input type="text" style="width:60%" v-model="row.f_comments" class="input_search" placeholder="备注"/>
366
+ </div>
367
+ <div class="col-sm-4 form-group" v-if="config.overduesetShow">
368
+ <label class="font_normal_body">滞纳金规则</label>
369
+ <v-select :value.sync="row.f_overdue_set" v-model="row.f_overdue_set"
370
+ :options='overdueset' placeholder='滞纳金规则'
371
+ close-on-select></v-select>
372
+ </div>
373
+
374
+ <template v-if="config.stuckFlowmeterShow">
375
+ <div class="col-sm-4 form-group">
376
+ <label class="font_normal_body" title="控制器通经">控制器通经</label>
377
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_control_pass"
378
+ placeholder='控制器通经'></input>
379
+ </div>
380
+ <div class="col-sm-4 form-group">
381
+ <label class="font_normal_body" title="控制器压力等级">控制器压力等级</label>
382
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_control_mpa_level"
383
+ placeholder='控制器压力等级'></input>
384
+ </div>
385
+ <div class="col-sm-4 form-group">
386
+ <label class="font_normal_body" title="流量计表号">流量计表号</label>
387
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_flowmeter_number"
388
+ placeholder='流量计表号'></input>
389
+ </div>
390
+ <div class="col-sm-4 form-group">
391
+ <label class="font_normal_body" title="流量计表封号">流量计表封号</label>
392
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_llj_metertitles"
393
+ placeholder='流量计表封号'></input>
394
+ </div>
395
+ <div class="col-sm-4 form-group">
396
+ <label class="font_normal_body" title="流量计品牌">流量计品牌</label>
397
+ <v-select :value.sync="row.f_flowmeter_brand" :options='flowmeterbrands' value-single placeholder='流量计品牌' close-on-select
398
+ search v-model='row.f_flowmeter_brand'></v-select>
399
+ </div>
400
+ <div class="col-sm-4 form-group">
401
+ <label class="font_normal_body" title="流量计型号">流量计型号</label>
402
+ <v-select :value.sync="row.f_flowmeter_model" :options='flowmetermodels(row.f_flowmeter_brand)' value-single placeholder='流量计型号' close-on-select
403
+ v-model='row.f_flowmeter_model' :disabled='row.f_flowmeter_brand.length === 0'></v-select>
404
+ </div>
405
+ <div class="col-sm-4 form-group">
406
+ <label class="font_normal_body" title="流量计通经">流量计通经</label>
407
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_flowmeter_pass"
408
+ placeholder='流量计通经'></input>
409
+ </div>
410
+ <div class="col-sm-4 form-group">
411
+ <label class="font_normal_body" title="流量计压力等级">流量计压力等级</label>
412
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_flowmeter_mpa_level"
413
+ placeholder='流量计压力等级'></input>
414
+ </div>
415
+ <div class="col-sm-4 form-group">
416
+ <label class="font_normal_body" title="流量计出厂日期">流量计出厂日期</label>
417
+ <datepicker style="width:60%" placeholder="流量计出厂日期"
418
+ v-model="row.f_flowmeter_factory_date"
419
+ :value.sync="row.f_flowmeter_factory_date"
420
+ :format="'yyyy-MM-dd HH:mm:ss'"
421
+ ></datepicker>
422
+ </div>
423
+ <div class="col-sm-4 form-group">
424
+ <label class="font_normal_body" title="流量计精准度">流量计精准度</label>
425
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_flowmeter_accuracy"
426
+ placeholder='流量计精准度'></input>
427
+ </div>
428
+ <div class="col-sm-4 form-group">
429
+ <label class="font_normal_body" title="流量计电仪出厂编号">流量计电仪出厂编号</label>
430
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_flowmeter_factory_num"
431
+ placeholder='流量计电仪出厂编号'></input>
432
+ </div>
433
+ <div class="col-sm-4 form-group">
434
+ <label class="font_normal_body" title="流量计电仪出厂编号">流量计类型</label>
435
+ <input type="text" class="input_search" style="width:60%" v-model="row.f_llj_type"
436
+ placeholder='流量计类型'></input>
437
+ </div>
438
+ <div class="col-sm-4 form-group">
439
+ <label class="font_normal_body" title="流量计安装日期">流量计安装日期</label>
440
+ <datepicker style="width:60%" placeholder="流量计安装日期"
441
+ v-model="row.f_flowmeter_install_date"
442
+ :value.sync="row.f_flowmeter_install_date"
443
+ :format="'yyyy-MM-dd HH:mm:ss'"
444
+ ></datepicker>
445
+ </div>
446
+ </template>
447
+ </div>
448
+ </form>
449
+ </validator>
450
+ <!--<idverify :show.sync="show" @change-con="changeVal"></idverify>-->
451
+ <modal v-if="showParame" :show.sync="showParame" v-ref:modal backdrop="false">
452
+ <header slot="modal-header" class="modal-header">
453
+ <button type="button" class="close" @click="cancel"><span>&times;</span></button>
454
+ <h3 class="modal-title" style="text-align: center;">添加参数</h3>
455
+ </header>
456
+ <article slot="modal-body" class="modal-body">
457
+ <add-json-parameter v-ref:addparamlist :gasmodel_id="userfileid" :gastype="gastype"
458
+ :gasid="gasid"></add-json-parameter>
459
+ </article>
460
+ <footer slot="modal-footer" class="modal-footer">
461
+ <button type="button" class="btn btn-primary" @click='confirmUserfiles()'>确认</button>
462
+ </footer>
463
+ </modal>
464
+
465
+ <modal :show.sync="mapShow" v-if="mapShow" large backdrop="false" :width="900">
466
+ <header slot="modal-header" class="modal-header">
467
+ </header>
468
+ <article slot="modal-body" class="modal-body">
469
+ <amap-location :islocationclearmark="false" dom="addboxmap" v-ref:positionInfo @getmylocation="getmylocation"></amap-location>
470
+ </article>
471
+ <footer slot="modal-footer" class="modal-footer">
472
+ <button v-show="mapShow" type="button" class="button_clear btn-gn" @click='closeModal'>取消</button>
473
+ <button v-show="mapShow" type="button" class="button_clear btn-gn" @click='confirmLocation'>确认</button>
474
+ </footer>
475
+ </modal>
476
+ </div>
477
+ </template>
478
+
479
+ <script>
480
+ import co from 'co'
481
+ import {HttpResetClass} from 'vue-client'
482
+ import Vue from 'vue'
483
+ import * as Util from '../../../../Util'
484
+
485
+ let meterBookGen = function * (self) {
486
+ if (self.$login.r.find(value => value == '抄表册建档')) {
487
+ self.opteratormetrbook = true
488
+ }
489
+ let temp = {
490
+ tablename: 't_meter_book',
491
+ condition: `f_book_state='有效' and f_filiale_id='${self.$login.f.orgid}'`
492
+ }
493
+ let http = new HttpResetClass()
494
+ let meterbooks = yield http.load('POST', 'rs/sql/saleSingleTable', {data: temp},
495
+ {resolveMsg: null, rejectMsg: '获取抄表册信息失败!!'})
496
+ if (meterbooks.data.length > 0) {
497
+ let options = []
498
+ for (let i = 0; i < meterbooks.data.length; i++) {
499
+ let tmp = {label: meterbooks.data[i].f_book_name, value: `${meterbooks.data[i].id}`}
500
+ options.push(tmp)
501
+ }
502
+ self.meterbookoptions = options
503
+ }
504
+ try {
505
+ let result = yield http.load('GET', `rs/vue/MeterinfoTest.json`, {}, {resolveMsg: null, rejectMsg: null})
506
+ Object.assign(self.config, result.data)
507
+ if (!self.row.f_open_way) self.row.f_open_way = self.config.open_way
508
+ } catch (error) {
509
+ // 忽略704,文件找不到异常
510
+ if (error.status !== 704) {
511
+ throw error
512
+ }
513
+ }
514
+ }
515
+ let brandChangeGen = function* (self, val) {
516
+ let beforeRecord = null
517
+
518
+ if (self.meter.f_meter_classify === '机表') {
519
+ beforeRecord = yield self.$resetpost('rs/sql/saleSingleTable', {
520
+ data: {
521
+ tablename: 't_handplan',
522
+ condition: `f_user_id = '${self.row.f_user_id}' and f_meter_state in ('已抄表','未抄表')`
523
+ }
524
+ }, {resolveMsg: null, rejectMsg: '在档案中更改气表品牌时,获取之前机表抄表信息出错!!'})
525
+ } else {
526
+ beforeRecord = yield self.$resetpost('rs/sql/saleSingleTable', {
527
+ data: {
528
+ tablename: 't_sellinggas',
529
+ condition: `f_user_id = '${self.row.f_user_id}' and f_state = '有效'`
530
+ }
531
+ }, {resolveMsg: null, rejectMsg: '在档案中更改气表品牌时,获取之前卡表收费信息出错!!'})
532
+ }
533
+ if (beforeRecord.data.length > 0 && self.row.gasbrand[0].f_meter_brand != self.oldrow.gasbrand[0].f_meter_brand) {
534
+ self.$showAlert('该气表已投入使用,如需更改请执行换表操作', 'warning', 3000)
535
+ // self.row.gasbrand = self.meter.gasbrand
536
+ self.$dispatch('success')
537
+ /* self.row.valid = bool
538
+ self.$dispatch('self-valid') */
539
+ } else {
540
+ self.row.f_whether_hairpin = self.row.gasbrand[0].f_meter_type === '机表' ? '无卡' : '未发'
541
+ }
542
+ console.log('111', self.row)
543
+ }
544
+ export default {
545
+ title: '表具信息',
546
+ data () {
547
+ return {
548
+ config: {
549
+ // 卡控流量计相关字段显示
550
+ stuckFlowmeterShow: false,
551
+ overduesetShow: true,
552
+ open_way: '指令开户'
553
+ },
554
+ mapShow: false,
555
+ viewsee: false,
556
+ row: this.meter,
557
+ show: false,
558
+ field: '',
559
+ ratioshow: false,
560
+ // 原本的卡号
561
+ orginCardId: '',
562
+ userfileid: '',
563
+ gasid: '',
564
+ gastype: 'userfiles',
565
+ showParame: false,
566
+ selectUserFiles: '', // 选中的 userfiles
567
+ jurisdiction: this.$login.r,
568
+ positions: this.$appdata.getParam('安装位置'),
569
+ usetype: this.$appdata.getParam('使用类型'),
570
+ usestate: this.$appdata.getParam('使用状态'),
571
+ aroundmeters: this.$appdata.getParam('左右表'),
572
+ garbagefee: this.$appdata.getParam('垃圾费'),
573
+ valvestate: this.$appdata.getParam('阀门状态'),
574
+ usertypes: this.$appdata.getParam('用户类型'),
575
+ handmonth: [{label: '单月', value: '单月'}, {label: '双月', value: '双月'}],
576
+ gasproperties: this.meter.f_user_type && this.meter.f_user_type.length === 1 ? this.$appdata.getParam(this.meter.f_user_type[0]) : [],
577
+ pricetypes: this.$appdata.getParam('气价类型'),
578
+ industrycomments: this.$appdata.getParam('工业备注'),
579
+ openWay: [{label: '指令开户', value: '指令开户'}, {label: '发卡开户', value: '发卡开户'}],
580
+ concentrators: [],
581
+ meterbookoptions: [], // 抄表册选项
582
+ opteratormetrbook: false, // 抄表册操作
583
+ oldrow: [],
584
+ overdueset:[],
585
+ isiot: true,
586
+ templng: '', // 临时经度
587
+ templat: '' ,// 临时纬度
588
+ finalDate: '',
589
+ bfrq:10,
590
+ f_factory_date:'',
591
+ f_scrap_date: ''
592
+ }
593
+ },
594
+ props: ['f_filialeid', 'meter', 'isdecimal', 'valid', 'f_userinfo_id', 'overdueset', 'curuser'],
595
+ async ready () {
596
+ if (this.row.f_factory_date == null || this.row.f_factory_date == '') {
597
+ this.row.f_factory_date = Util.toStandardTimeString()
598
+ this.f_factory_date = Util.toStandardTimeString()
599
+ } else {
600
+ this.f_factory_date = this.row.f_factory_date
601
+ }
602
+ this.getbfrq()
603
+ this.updatayear(this.f_factory_date)
604
+ console.log('看看meter里面的数据', this.meter, this.row)
605
+ this.row = Object.assign(this.row, this.meter, {f_use_limit : this.$appdata.getSingleValue('报废年限')})
606
+ this.orginCardId = this.row.f_card_id
607
+ if(this.row.f_meter_classify){
608
+ if(this.row.f_meter_classify==='物联网表'){
609
+ this.isiot=true
610
+ }else{
611
+ this.isiot=false
612
+ }
613
+ }
614
+ this.oldrow = this.row
615
+ this.isdecimal = this.row.gasbrand.length > 0 ? this.row.gasbrand.f_isdecimal : '否'
616
+ this.row.valid = false
617
+ if (this.row.pricetype === '混合气价') {
618
+ this.ratioshow = true
619
+ }
620
+ await this.getConcentrators()
621
+ co(meterBookGen(this))
622
+ },
623
+ methods: {
624
+ updatayear (data) {
625
+ const today = new Date(data)
626
+ const year = today.getFullYear()
627
+ const month = today.getMonth()
628
+ const day = today.getDate()
629
+ const date = new Date((year-0) +(this.bfrq-0), month, day)
630
+ this.finalDate = date.toLocaleDateString()
631
+ console.log('898989898', this.finalDate)
632
+ this.row.f_scrap_date = this.finalDate
633
+ this.f_scrap_date = this.finalDate
634
+ console.log('898989898', this.row.f_scrap_date)
635
+ },
636
+ checkCardId() {
637
+ this.$resetpost('rs/logic/checkCardId', {
638
+ data: {
639
+ f_userfiles_id: this.row.f_userfiles_id,
640
+ gasbrandId: this.row.f_gasbrand_id,
641
+ cardId: this.row.f_card_id,
642
+ f_orgid: this.row.f_orgid
643
+ }
644
+ }, {resolveMsg: null, rejectMsg: '获取表号出错'}).then(res => {
645
+ if(res.data.code !== '200') {
646
+ this.row.f_card_id = this.orginCardId
647
+ this.$showAlert(res.data.msg,'warning',1500)
648
+ }
649
+ })
650
+ },
651
+ gasDateChange () {
652
+ if (!this.row.f_scrap_date && this.row.f_gas_date) {
653
+ if (this.row.f_use_limit) {
654
+ let date = new Date(this.row.f_gas_date)
655
+ let year = date.getFullYear() + (this.row.f_use_limit / 1)
656
+ this.$set('row.f_scrap_date', year + this.row.f_gas_date.slice(4))
657
+
658
+ }
659
+ }
660
+ },
661
+ // 获取集中器下拉框
662
+ async getConcentrators () {
663
+ let condition = {
664
+ items: 'id,f_mpc_alias',
665
+ tablename: 't_concentrator',
666
+ condition: `f_mpc_state !='删除'`,
667
+ orderitem: 'id'
668
+ }
669
+ let data = await this.$resetpost('rs/sql/saleSingleTable', {data: condition}, {resolveMsg: null, rejectMsg: '获取集中器失败!'})
670
+ this.concentrators = []
671
+ for (let row of data.data) {
672
+ this.concentrators.push({label: row.f_mpc_alias, value: row.id})
673
+ }
674
+ },
675
+ async confirmUserfiles () {
676
+ if (this.$refs.addparamlist.confirm()) {
677
+ var paramlist = this.$refs.addparamlist.addGasParameter
678
+ await this.$resetpost('rs/logic/updateGasParam', {
679
+ data: {
680
+ id: this.selectUserFiles.f_user_id,
681
+ paramlist: paramlist,
682
+ gastype: 'userfiles'
683
+ }
684
+ }, {resolveMsg: '更新成功', rejectMsg: '更新失败'})
685
+ this.showParame = false
686
+ }
687
+ },
688
+
689
+ priceChange (val) {
690
+ if (val.length > 0) {
691
+ this.row.f_user_type = [val[0].f_user_type]
692
+ this.row.f_gasproperties = [val[0].f_gasproperties]
693
+ this.row.pricetype = val[0].f_price_type
694
+ // 展示气价备注
695
+ this.$set('row.f_price_comments', val[0].f_comments ? val[0].f_comments : '无')
696
+ // 展示价格明细
697
+ if (val[0].detailprice) {
698
+ // this.row.f_detailprice = this.$CommonService.getShowPriceDetail(val[0].detailprice)
699
+ this.$set('row.f_detailprice', this.$CommonService.getShowPriceDetail(val[0].detailprice))
700
+ }
701
+ }
702
+ },
703
+ cancel () {
704
+ this.gasid = ''
705
+ this.userfileid = ''
706
+ this.showParame = false
707
+ },
708
+ tablebaseChange () {
709
+ if (this.isdecimal === '是') {
710
+ this.$set('row.f_meter_base', (this.row.f_meter_base - 0).toFixed(4))
711
+ } else {
712
+ this.$set('row.f_meter_base', (this.row.f_meter_base - 0).toFixed(0))
713
+ }
714
+ },
715
+ brandChange (val) {
716
+ this.isdecimal = val.length > 0 ? val[0].f_isdecimal : '否'
717
+ console.log('sadasfasf', val)
718
+ if (val.length > 0 && val[0].f_meter_type === '物联网表') {
719
+ this.isiot = true
720
+ } else {
721
+ this.isiot = false
722
+ }
723
+ // this.tablebaseChange()
724
+ if (this.row.f_user_id) {
725
+ co(brandChangeGen(this))
726
+ }
727
+ this.meternumberValidate()
728
+ },
729
+ userTypeChange () {
730
+ this.gasproperties = []
731
+ if (this.row.f_user_type.length === 1) {
732
+ this.gasproperties = this.$appdata.getParam(this.row.f_user_type[0])
733
+ }
734
+ },
735
+ // getPricenames(pricetype) {
736
+ // console.log('气价。,。。', pricetype, this.row.f_user_type, this.row.f_gasproperties)
737
+ // let rs = []
738
+ // if (this.row.f_user_type.length === 1 && this.row.f_gasproperties.length === 1 && pricetype.length === 1) {
739
+ // let params = {
740
+ // f_user_type: this.row.f_user_type[0],
741
+ // f_gasproperties: this.row.f_gasproperties[0],
742
+ // f_price_type: pricetype[0],
743
+ // filter: this.f_filialeid
744
+ // }
745
+ // rs = this.$GetSaleParam.getPrice(params)
746
+ // }
747
+ // if (rs.length === 0) {
748
+ // this.row.f_price_name = ''
749
+ // }
750
+ // return rs
751
+ // },
752
+ mValid (bool) {
753
+ this.row.valid = bool
754
+ this.$dispatch('self-valid')
755
+ },
756
+ // 带权限修改单值返回修改后得值和修改原因
757
+ modefiy (field) {
758
+ this.show = true
759
+ this.field = field
760
+ },
761
+ async meternumberValidate () {
762
+ let http1 = new HttpResetClass()
763
+ let res1 = await http1.load('POST', '/rs/sql/getBrandAndType', {data: {condition: ` mi.f_meternumber = '${this.row.f_meternumber}'`}}, {resolveMsg: null, rejectMsg: '获取默认气表品牌型号失败!!'})
764
+ if (res1.data.length > 0) {
765
+ // 替换表号自带的气表品牌和型号
766
+ let meterbrands = this.meterbrands
767
+ for (let row of meterbrands) {
768
+ if (row.label == res1.data[0].f_meter_brand) {
769
+ // 已经选择了气表品牌则不再替换
770
+ if (this.row.gasbrand.length <= 0) this.row.gasbrand = [row.value]
771
+ // 替换气表型号
772
+ if (res1.data[0].f_meter_style) {
773
+ for (let model of row.value.gasmodel) {
774
+ if (model.label == res1.data[0].f_meter_style) {
775
+ // 已经选择了气表型号则不再替换
776
+ if (this.row.gasmodel.length <= 0) this.row.gasmodel = [model.value]
777
+ continue
778
+ }
779
+ }
780
+ }
781
+ continue
782
+ }
783
+ }
784
+ }
785
+ // 验证表号
786
+ if (this.row.f_meternumber && this.row.gasbrand.length > 0) {
787
+ // 表号位数验证
788
+ let meternumberLen = this.row.gasbrand[0].f_meternumber_len
789
+ if (meternumberLen) {
790
+ if (this.row.f_meternumber.length != meternumberLen) {
791
+ this.row.f_meternumber = ''
792
+ this.$showAlert(`表号位数不正确, 当前气表品牌表号位数是: ${meternumberLen}`, 'warning', 3000)
793
+ return
794
+ }
795
+ }
796
+ // 表计信息验证
797
+ if (this.row.gasbrand[0].f_meterverification == '是') {
798
+ if (res1.data.length <= 0) {
799
+ this.$showAlert(`当前表号: ${this.row.f_meternumber}在表计信息中无记录, 请核实!!!`, 'warning', 3000)
800
+ this.row.f_meternumber = ''
801
+ return
802
+ }
803
+ }
804
+ let param = {
805
+ f_meternumber: this.row.f_meternumber,
806
+ f_gasbrand_id: this.row.gasbrand[0].id
807
+ }
808
+ if (this.row.f_userfiles_id) {
809
+ param.f_userfiles_id = this.row.f_userfiles_id
810
+ }
811
+ let res = await this.$resetpost('rs/logic/meternumberValidate', param, {
812
+ resolveMsg: null,
813
+ rejectMsg: '表号验证失败!!'
814
+ })
815
+ if (this.row.gasbrand[0].f_meter_type === '物联网表') {
816
+ if (res.data) {
817
+ this.row.f_meternumber = ''
818
+ this.$showAlert('表号已存在!!', 'warning', 3000)
819
+ }
820
+ } else {
821
+ if (res.data) {
822
+ this.$showAlert('请注意,相同的表号已存在', 'warning', 3000)
823
+ }
824
+ }
825
+ }
826
+ },
827
+ openModal () {
828
+ this.mapShow = true
829
+ },
830
+ closeModal () {
831
+ this.mapShow = false;
832
+ },
833
+ getmylocation (res) {
834
+ this.templng = res.position.lng
835
+ this.templat = res.position.lat
836
+ },
837
+ confirmLocation () {
838
+ this.row.f_userfiles_lat = this.templat
839
+ this.row.f_userfiles_lng = this.templng
840
+ this.mapShow = false;
841
+ },
842
+ flowmetermodels (label) {
843
+ let gasbrand = this.$GetSaleParam.getGasbrand()
844
+ let flowmetermodels = []
845
+ for (let row of gasbrand) {
846
+ if (row.label == label) {
847
+ for (let gasmodel of row.value.gasmodel) {
848
+ flowmetermodels.push({label: gasmodel.label, value: gasmodel.label})
849
+ }
850
+ break
851
+ }
852
+ }
853
+ return flowmetermodels
854
+ }
855
+ },
856
+ watch: {
857
+ 'meter' () {
858
+ this.row = Object.assign(this.row, this.meter, {})
859
+ this.isdecimal = this.row.gasbrand.f_isdecimal
860
+ this.row.valid = false
861
+ this.showtype = this.row.gasbrand.f_meter_type
862
+ this.f_factory_date = this.row.f_factory_date
863
+ },
864
+ 'f_factory_date' (val) {
865
+ console.log('222222222222', val)
866
+ this.row.f_factory_date = val
867
+ this.updatayear(val)
868
+ },
869
+ 'row.f_scrap_date' (val) {
870
+ console.log('45454545')
871
+ this.row.f_scrap_date = val
872
+ console.log('45454545', this.row.f_scrap_date, val)
873
+ },
874
+ 'finalDate' () {
875
+ console.log('45454545666')
876
+ this.row.f_scrap_date = this.finalDate
877
+ },
878
+ 'row.pricetype' (val) {
879
+ if (val == '混合气价') {
880
+ this.ratioshow = true
881
+ } else {
882
+ this.ratioshow = false
883
+ }
884
+ }
885
+ },
886
+ computed: {
887
+
888
+ // 控制用户类型修改
889
+ permissionUserType () {
890
+ let res = false
891
+ if (this.row.f_user_id) {
892
+ res = !(this.jurisdiction.includes('民用气价修改') && this.jurisdiction.includes('非民用气价修改'))
893
+ }
894
+ return res
895
+ },
896
+
897
+ // 控制用气性质,气价类型,气价名称修改
898
+ permissionPrice () {
899
+ let res = false
900
+ if (this.row.f_user_id) {
901
+ console.log('获取权限、', this.row, this.jurisdiction)
902
+ // 变更操作
903
+ if (this.row.pricename.length > 0) {
904
+ if (this.row.f_user_type[0] === '民用') {
905
+ // 判断是否有民用气价权限
906
+ res = !this.jurisdiction.includes('民用气价修改')
907
+ } else if (this.row.f_user_type[0] === '非民用') {
908
+ // 判断是否有非民用气价权限
909
+ res = !this.jurisdiction.includes('非民用气价修改')
910
+ }
911
+ }
912
+ }
913
+ console.log('有无气价权限', res)
914
+ return res
915
+ },
916
+
917
+ getPricenames () {
918
+ let f_filialeid = this.f_filialeid
919
+ let result = []
920
+ this.$GetSaleParam.prices.forEach((item) => {
921
+ if (item.f_state === '有效' && f_filialeid == item.f_filialeid) {
922
+ let value = {
923
+ label: item.f_price_name,
924
+ value: item
925
+ }
926
+ result.push(value)
927
+ }
928
+ })
929
+ return Array.from(new Set(result))
930
+ },
931
+
932
+ adjustables () {
933
+ let arr = []
934
+ let filter = this.f_filialeid
935
+ this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
936
+ let temp = {}
937
+ temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
938
+ temp.value = item.value
939
+ arr.push(temp)
940
+ })
941
+ return [{label: '全部', value: ''}, ...arr]
942
+ },
943
+ inputtores () {
944
+ // return this.$login.f.f_gasman
945
+ let rs = new Array()
946
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
947
+ let temp = {
948
+ label: this.$login.f.f_gasman[i].name,
949
+ value: this.$login.f.f_gasman[i].name
950
+ }
951
+ rs.push(temp)
952
+ }
953
+ return rs
954
+ },
955
+ installperson () {
956
+ // return this.$login.f.f_installman
957
+ let rs = new Array()
958
+ for (let i = 0; i < this.$login.f.f_installman.length; i++) {
959
+ let temp = {
960
+ label: this.$login.f.f_installman[i].name,
961
+ value: this.$login.f.f_installman[i].name
962
+ }
963
+ rs.push(temp)
964
+ }
965
+ return rs
966
+ },
967
+ meterbrands () {
968
+ return this.$GetSaleParam.getGasbrand()
969
+ },
970
+ aroundmeters () {
971
+ return this.$appdata.getParam('左右表')
972
+ },
973
+ positions () {
974
+ return this.$appdata.getParam('安装位置')
975
+ },
976
+ usetype () {
977
+ return this.$appdata.getParam('使用类型')
978
+ },
979
+ usestate () {
980
+ return this.$appdata.getParam('使用状态')
981
+ },
982
+ gongyetype () {
983
+ return this.$appdata.getParam('工业备注')
984
+ },
985
+ flowmeterbrands () {
986
+ let gasbrand = this.$GetSaleParam.getGasbrand()
987
+ let flowmeterbrands = []
988
+ for (let row of gasbrand) {
989
+ flowmeterbrands.push({label: row.label, value: row.label})
990
+ }
991
+ return flowmeterbrands
992
+ }
993
+ }
994
+ }
995
+ </script>
996
+ <style lang="less">
997
+ #meterInfoTest{
998
+ #addboxmap {
999
+ height: 300px;
1000
+ }
1001
+ .glyphicon-map-marker:hover {
1002
+ color: red;
1003
+ }
1004
+ .glyphicon-map-marker {
1005
+ color: blue;
1006
+ cursor: pointer;
1007
+ }
1008
+ .col-sm-4 {
1009
+ .font_normal_body {
1010
+ width: 73px;
1011
+ overflow: auto;
1012
+ white-space: nowrap;
1013
+ // 指滚动条两边的按钮
1014
+ &::-webkit-scrollbar-button {
1015
+ display: none;
1016
+ }
1017
+ // 滚动条的宽度
1018
+ &::-webkit-scrollbar {
1019
+ width: 5px !important;
1020
+ height: 5px !important;
1021
+ }
1022
+ // 滚动条的设置
1023
+ &::-webkit-scrollbar-thumb {
1024
+ background-color: #ddd;
1025
+ background-clip: padding-box;
1026
+ }
1027
+ &::-webkit-scrollbar-thumb:hover {
1028
+ background-color: #bbb;
1029
+ }
1030
+ &::-webkit-scrollbar-track {
1031
+ /*滚动条里面轨道*/
1032
+ box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
1033
+ background: #ededed;
1034
+ }
1035
+ }
1036
+ }
1037
+ }
1038
+ </style>
@@ -0,0 +1,8 @@
1
+ // 分公司特殊组件页面注册
2
+ import Vue from "vue";
3
+
4
+ let specialComp = {
5
+ // 单个表具
6
+ 'file-meter-info': (resolve) => { require(['./components/FilesManage/MeterinfoTest'], resolve) }
7
+ }
8
+ exports.specialComp = specialComp
@@ -497,6 +497,7 @@ let offlineWriteGen = async function (row) {
497
497
  ljgql: (row.f_write_totalgas - 0), // 当前累计购气量
498
498
  ljgqje: (row.f_write_totalfee - 0), // 累计购气金额
499
499
  bjql: row.f_police_gas,
500
+ bkcs: row.f_fillcard_times,
500
501
  czsx: row.f_topup_ceil,
501
502
  tzed: row.f_overdr_lines,
502
503
  dqdm: row.f_area_code,
@@ -510,8 +511,10 @@ let offlineWriteGen = async function (row) {
510
511
  if (row.states === '补卡' || result.data.last_oper == '补卡') {
511
512
  param.kzt = result.data.ispick === '未过表' && result.data.lastsell_oper === '发卡售气' ? '0' : '1'
512
513
  param.cs = row.cardInfo.Times + 1
514
+ param.bkcs = param.bkcs + 1
513
515
  cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', param, {resolveMsg: null, rejectMsg: '写卡失败'})
514
516
  } else if (row.states === '换表') {
517
+ param.bkcs = param.bkcs + 1
515
518
  param.kzt = '0'
516
519
  param.cs = 1
517
520
  cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', param, {resolveMsg: null, rejectMsg: '写卡失败'})
@@ -937,7 +937,7 @@
937
937
  }
938
938
  console.log('下发参数:', param)
939
939
  // rs/business/batchRun/
940
- let res = await this.$resetpost('rs/business/batchRunNew/BatchmachineDownHand/machineDownHand', {data: param}, {
940
+ let res = await this.$resetpost('rs/business/batchRunAudit/BatchmachineDownHandNew/machineDownHandNew', {data: param}, {
941
941
  resolveMsg: null,
942
942
  rejectMsg: null
943
943
  },60000*3)
@@ -1327,6 +1327,7 @@ let offlineWriteGen = async function (row) {
1327
1327
  bjql: row.f_police_gas,
1328
1328
  czsx: row.f_topup_ceil,
1329
1329
  tzed: row.f_overdr_lines,
1330
+ bkcs: row.f_fillcard_times,
1330
1331
  dqdm: row.f_area_code,
1331
1332
  klx: row.f_coding,
1332
1333
  ql: row.unWriteSell[0].f_pregas,
@@ -1338,9 +1339,11 @@ let offlineWriteGen = async function (row) {
1338
1339
  if (row.states === '补卡' || result.data.last_oper === '补卡') {
1339
1340
  param.kzt = result.data.ispick === '未过表' && result.data.lastsell_oper === '发卡售气' ? '0' : '1'
1340
1341
  param.cs = row.cardInfo.Times + 1
1342
+ param.bkcs = param.bkcs + 1
1341
1343
  cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', param, {resolveMsg: null, rejectMsg: '写卡失败'})
1342
1344
  } else if (row.states === '换表') {
1343
1345
  param.kzt = '0'
1346
+ param.bkcs = param.bkcs + 1
1344
1347
  param.cs = 1
1345
1348
  cardRes = await Vue.resetpost('http://127.0.0.1:8003/WriteNewCard', param, {resolveMsg: null, rejectMsg: '写卡失败'})
1346
1349
  } else {