sale-client 3.6.162 → 3.6.164

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.
@@ -1,5 +1,5 @@
1
1
  var path = require('path')
2
- const [ serverRul, localUrl ] = ['http://140.249.18.101:8400/', 'http://140.249.18.101:8400/']
2
+ const [ serverRul, localUrl ] = ['http://121.36.106.17:8400/', 'http://121.36.106.17:8400/']
3
3
  var merge = require('webpack-merge')
4
4
  var baseConfig = require('./webpack.dev.conf')
5
5
  var devConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.162",
3
+ "version": "3.6.164",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -35,8 +35,8 @@
35
35
  v-next-el="{id: 'metertitles'}">
36
36
  </div>
37
37
  <div class="col-sm-4 form-group" :class="[$m.f_defendcard.required ? 'has-error' : '']"
38
- v-show="(formconfig.f_defendcard && formconfig.f_defendcard.required) || !onlyshowmust"
39
- v-if="getConfigShowItem('f_defendcard')">
38
+ v-show="(formconfig && formconfig.f_defendcard && formconfig.f_defendcard.required) || !onlyshowmust"
39
+ v-if="getConfigShowItem('f_defendcard',false)">
40
40
  <label class="font_normal_body">防盗卡号1</label>
41
41
  <input type="number" class="input_search" style="width:60%" v-model="row.f_defendcard"
42
42
  v-validate:f_defendcard=getConfigValidate("f_defendcard",false)
@@ -44,8 +44,8 @@
44
44
  placeholder='防盗卡号1' >
45
45
  </div>
46
46
  <div class="col-sm-4 form-group" :class="[$m.f_defendcard_two.required ? 'has-error' : '']"
47
- v-show="(formconfig.f_defendcard_two && formconfig.f_defendcard_two.required) || !onlyshowmust"
48
- v-if="getConfigShowItem('f_defendcard_two')">
47
+ v-show="(formconfig && formconfig.f_defendcard_two && formconfig.f_defendcard_two.required) || !onlyshowmust"
48
+ v-if="getConfigShowItem('f_defendcard_two',false)">
49
49
  <label class="font_normal_body">防盗卡号2</label>
50
50
  <input type="number" class="input_search" style="width:60%" v-model="row.f_defendcard_two"
51
51
  v-validate:f_defendcard_two=getConfigValidate("f_defendcard_two",false)
@@ -53,61 +53,61 @@
53
53
  placeholder='防盗卡号2' >
54
54
  </div>
55
55
  <div class="col-sm-4 form-group" :class="[$m.f_metertitles.required ? 'has-error' : '']"
56
- v-show="(formconfig.f_metertitles && formconfig.f_metertitles.required) || !onlyshowmust"
56
+ v-show="(formconfig && formconfig.f_metertitles && formconfig.f_metertitles.required) || !onlyshowmust"
57
57
  v-if="getConfigShowItem('f_metertitles')">
58
58
  <label for="f_metertitles" class="font_normal_body">&ensp;表&ensp;封&ensp;号</label>
59
59
  <input type="text" class="input_search" style="width:60%" v-model="row.f_metertitles" placeholder='表封号'
60
60
  v-next-el="{id: 'meterbase'}">
61
61
  </div>
62
62
  <div class="col-sm-4 form-group" v-if="getConfigShowItem('f_table_state')"
63
- v-show="(formconfig.f_table_state && formconfig.f_table_state.required) || !onlyshowmust">
63
+ v-show="(formconfig && formconfig.f_table_state && formconfig.f_table_state.required) || !onlyshowmust">
64
64
  <label for="f_metertitles" class="font_normal_body">表具状态</label>
65
65
  <input type="text" class="input_search" style="width:60%" v-model="row.f_table_state" placeholder='表具状态' disabled>
66
66
  </div>
67
67
  <div class="col-sm-4 form-group" v-if="getConfigShowItem('f_meter_base')"
68
- v-show="(formconfig.f_meter_base && formconfig.f_meter_base.required) || !onlyshowmust">
68
+ v-show="(formconfig && formconfig.f_meter_base && formconfig.f_meter_base.required) || !onlyshowmust">
69
69
  <label for="f_meter_base" class="font_normal_body">&ensp;表&ensp;读&ensp;数</label>
70
70
  <input type="number" class="input_search" style="width:60%" v-model="row.f_meter_base" placeholder='表底数'
71
71
  :disabled="!jurisdiction.includes('档案信息查询修改')" :readonly="!row.f_userfiles_id">
72
72
  </div>
73
73
  <div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】" v-if="getConfigShowItem('f_initial_base')"
74
- v-show="(formconfig.f_initial_base && formconfig.f_initial_base.required) || !onlyshowmust">
74
+ v-show="(formconfig && formconfig.f_initial_base && formconfig.f_initial_base.required) || !onlyshowmust">
75
75
  <label for="f_meter_base" class="font_normal_body">&ensp;初始底数</label>
76
76
  <input type="number" class="input_search" style="width:60%" v-model="row.f_initial_base" placeholder='表底数'
77
77
  :disabled="!jurisdiction.includes('档案信息查询修改')">
78
78
  </div>
79
79
 
80
80
  <div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】" v-if="getConfigShowItem('f_total_gas')"
81
- v-show="(formconfig.f_total_gas && formconfig.f_total_gas.required) || !onlyshowmust">
81
+ v-show="(formconfig && formconfig.f_total_gas && formconfig.f_total_gas.required) || !onlyshowmust">
82
82
  <label for="f_meter_base" class="font_normal_body">&ensp;累购气量</label>
83
83
  <input type="number" class="input_search" style="width:60%" v-model="row.f_total_gas" placeholder='累购气量'
84
84
  :disabled="!jurisdiction.includes('档案信息查询修改')">
85
85
  </div>
86
86
  <div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】" v-if="getConfigShowItem('f_write_totalgas')"
87
- v-show="(formconfig.f_write_totalgas && formconfig.f_write_totalgas.required) || !onlyshowmust">
87
+ v-show="(formconfig && formconfig.f_write_totalgas && formconfig.f_write_totalgas.required) || !onlyshowmust">
88
88
  <label for="f_meter_base" class="font_normal_body">表写卡累购气量</label>
89
89
  <input type="number" class="input_search" style="width:60%" v-model="row.f_write_totalgas" placeholder='表写卡累购气量'
90
90
  :disabled="!jurisdiction.includes('档案信息查询修改')">
91
91
  </div>
92
92
  <div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】" v-if="getConfigShowItem('f_total_fee')"
93
- v-show="(formconfig.f_total_fee && formconfig.f_total_fee.required) || !onlyshowmust">
93
+ v-show="(formconfig && formconfig.f_total_fee && formconfig.f_total_fee.required) || !onlyshowmust">
94
94
  <label for="f_meter_base" class="font_normal_body">&ensp;累购金额</label>
95
95
  <input type="number" class="input_search" style="width:60%" v-model="row.f_total_fee" placeholder='累购金额'
96
96
  :disabled="!jurisdiction.includes('档案信息查询修改')">
97
97
  </div>
98
98
  <div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】" v-if="getConfigShowItem('f_write_totalfee')"
99
- v-show="(formconfig.f_write_totalfee && formconfig.f_write_totalfee.required) || !onlyshowmust">
99
+ v-show="(formconfig && formconfig.f_write_totalfee && formconfig.f_write_totalfee.required) || !onlyshowmust">
100
100
  <label for="f_meter_base" class="font_normal_body">表写卡累购金额</label>
101
101
  <input type="number" class="input_search" style="width:60%" v-model="row.f_write_totalfee" placeholder='表写卡累购金额'
102
102
  :disabled="!jurisdiction.includes('档案信息查询修改')">
103
103
  </div>
104
- <div class="col-sm-4 form-group" v-show="row.f_meter_classify != '机表' && ((formconfig.f_times && formconfig.f_times.required) || !onlyshowmust)" title="涉及权限:【档案信息查询修改】"
104
+ <div class="col-sm-4 form-group" v-show="row.f_meter_classify != '机表' && ((formconfig && formconfig.f_times && formconfig.f_times.required) || !onlyshowmust)" title="涉及权限:【档案信息查询修改】"
105
105
  v-if="getConfigShowItem('f_times')">
106
106
  <label for="f_times" class="font_normal_body">&ensp;写卡次数</label>
107
107
  <input type="number" class="input_search" style="width:60%" v-model="row.f_times" placeholder='写卡次数'
108
108
  :disabled="!jurisdiction.includes('档案信息查询修改')">
109
109
  </div>
110
- <div class="col-sm-4 form-group" v-show="row.f_meter_classify == '物联网表' && ((formconfig.f_iot_times && formconfig.f_iot_times.required) || !onlyshowmust)" title="涉及权限:【档案信息查询修改】"
110
+ <div class="col-sm-4 form-group" v-show="row.f_meter_classify == '物联网表' && ((formconfig && formconfig.f_iot_times && formconfig.f_iot_times.required) || !onlyshowmust)" title="涉及权限:【档案信息查询修改】"
111
111
  v-if="getConfigShowItem('f_iot_times')">
112
112
  <label for="f_times" class="font_normal_body">物联网次数</label>
113
113
  <input type="number" class="input_search" style="width:60%" v-model="row.f_iot_times" placeholder='物联网次数'
@@ -121,18 +121,18 @@
121
121
  <!--<button type="button" name="button" class="btn btn-link" @click="modefiy('f_remanent_gas')" v-if="f_userinfo_id">修改</button>-->
122
122
  </div>
123
123
  <div class="col-sm-4 form-group" v-if="getConfigShowItem('f_capacity')"
124
- v-show="(formconfig.f_capacity && formconfig.f_capacity.required) || !onlyshowmust">
124
+ v-show="(formconfig && formconfig.f_capacity && formconfig.f_capacity.required) || !onlyshowmust">
125
125
  <label for="f_times" class="font_normal_body">&ensp;最大量程</label>
126
126
  <input type="number" class="input_search" style="width:60%" v-model="row.f_capacity" placeholder='最大量程'>
127
127
  </div>
128
- <div class="col-sm-4 form-group" v-show="row.f_meter_classify == '物联网表' && (formconfig.f_valve_state.required || !onlyshowmust)" v-if="getConfigShowItem('f_valve_state')">
128
+ <div class="col-sm-4 form-group" v-show="row.f_meter_classify == '物联网表' && (formconfig && formconfig.f_valve_state.required || !onlyshowmust)" v-if="getConfigShowItem('f_valve_state')">
129
129
  <label for="gasmodel" class="font_normal_body">&ensp;阀门状态</label>
130
130
  <v-select :value.sync="row.f_valve_state" :options='valvestate' placeholder='阀门状态' close-on-select
131
131
  v-model='row.f_valve_state'></v-select>
132
132
  </div>
133
133
  <div class="col-sm-4 form-group"
134
134
  v-show="row.gasbrand.length > 0 && row.gasbrand[0].f_meter_type == '物联网表' && row.gasbrand[0].f_hascard == '是' && (
135
- (formconfig.f_open_way && formconfig.f_open_way.required) || !onlyshowmust
135
+ (formconfig && formconfig.f_open_way && formconfig.f_open_way.required) || !onlyshowmust
136
136
  )">
137
137
  <label class="font_normal_body" title="开户方式">开户方式</label>
138
138
  <v-select :value.sync="row.f_open_way" :options='openWay' value-single placeholder='开户方式' close-on-select v-if="row.f_userfiles_id"
@@ -141,7 +141,7 @@
141
141
  search v-model='row.f_open_way' :disabled="false"></v-select>
142
142
  </div>
143
143
  <div class="col-sm-4 form-group" v-show="row.gasbrand.length > 0 && row.gasbrand[0].f_meter_brand.indexOf('集中器') !== -1
144
- && ((formconfig.f_concentrator_id && formconfig.f_concentrator_id.required) || !onlyshowmust)">
144
+ && ((formconfig && formconfig.f_concentrator_id && formconfig.f_concentrator_id.required) || !onlyshowmust)">
145
145
  <label class="font_normal_body" title="集中器">集&ensp;中&ensp;器</label>
146
146
  <v-select :value.sync="row.f_concentrator_id" :options='concentrators' value-single placeholder='集中器' close-on-select v-if="row.f_userfiles_id"
147
147
  search v-model='row.f_concentrator_id' :disabled="true"></v-select>
@@ -152,6 +152,17 @@
152
152
  <label class="font_normal_body">&ensp;卡&emsp;&emsp;号</label>
153
153
  <input type="number" class="input_search" style="width:60%" v-model="row.f_card_id" placeholder='卡号' @blur="checkCardId" :disabled="!jurisdiction.includes('卡号修改')">
154
154
  </div>
155
+ <div class="col-sm-4 form-group" :class="[$m.f_force_measure.required ? 'has-error' : '']"
156
+ v-show="(formconfig && formconfig.f_force_measure && formconfig.f_force_measure.required) || !onlyshowmust"
157
+ v-if="getConfigShowItem('f_force_measure',false)">
158
+ <label class="font_normal_body">{{getConfigLabelName('f_force_measure','三项强制措施')}}</label>
159
+ <input type="text" v-model="$refs.measure.selectedItems" v-show="false"
160
+ v-validate:f_force_measure=getConfigValidate("f_force_measure",false)>
161
+ <v-select :value.sync="row.f_force_measure" v-model="row.f_force_measure"
162
+ :options='forceMeasure' placeholder='三项强制措施' :multiple="true"
163
+ v-ref:measure>
164
+ </v-select>
165
+ </div>
155
166
  </div>
156
167
  <div>
157
168
  <a style="font-size: 16px;font-weight: 500;">气价信息</a>&nbsp;<a style="color: #999999;text-decoration: none"></a>
@@ -205,7 +216,7 @@
205
216
  <a style="font-size: 16px;font-weight: 500;">表具其他信息</a>&nbsp;<a style="color: #999999;text-decoration: none"></a>
206
217
  </div>
207
218
  <div class="row">
208
- <div class="col-sm-4 form-group" v-show="(row.f_gasproperties=='工业'||row.f_gasproperties=='工业用气') && (formconfig.f_gongye_type.required || !onlyshowmust)"
219
+ <div class="col-sm-4 form-group" v-show="(row.f_gasproperties=='工业'||row.f_gasproperties=='工业用气') && (formconfig && formconfig.f_gongye_type.required || !onlyshowmust)"
209
220
  :class="[$m.f_gongye_type.required ? 'has-error' : '']"
210
221
  v-if="getConfigShowItem('f_gongye_type')">
211
222
  <label for="f_gongye_type" class="font_normal_body" title="参数:工业备注">&ensp;{{getConfigLabelName('f_gongye_type','工业备注')}}</label>
@@ -219,7 +230,7 @@
219
230
  </div>
220
231
  <div class="col-sm-4 form-group"
221
232
  :class="[$m.f_aroundmeter.required ? 'has-error' : '']"
222
- v-show="(formconfig.f_aroundmeter && formconfig.f_aroundmeter.required) || !onlyshowmust"
233
+ v-show="(formconfig && formconfig.f_aroundmeter && formconfig.f_aroundmeter.required) || !onlyshowmust"
223
234
  v-if="getConfigShowItem('f_aroundmeter')">
224
235
  <input type="text" v-show="false" v-model="row.f_aroundmeter"
225
236
  v-validate:f_aroundmeter=getConfigValidate("f_aroundmeter",false)>
@@ -230,7 +241,7 @@
230
241
  v-model='row.f_aroundmeter'></v-select>
231
242
  </div>
232
243
  <div class="col-sm-4 form-group" :class="[$m.f_bqf_type.required ? 'has-error' : '']"
233
- v-show="(formconfig.f_bqf_type && formconfig.f_bqf_type.required) || !onlyshowmust"
244
+ v-show="(formconfig && formconfig.f_bqf_type && formconfig.f_bqf_type.required) || !onlyshowmust"
234
245
  v-if="getConfigShowItem('f_bqf_type')">
235
246
  <label for="f_bqf_type" class="font_normal_body">{{getConfigLabelName('f_bqf_type','表前阀型号')}}</label>
236
247
  <input type="text" class="input_search" style="width:60%" v-model="row.f_bqf_type"
@@ -238,7 +249,7 @@
238
249
  :placeholder="getConfigPlaceholder('f_bqf_type','表前阀型号')">
239
250
  </div>
240
251
  <div class="col-sm-4 form-group" :class="[$m.f_use_limit.required ? 'has-error' : '']"
241
- v-show="(formconfig.f_use_limit && formconfig.f_use_limit.required) || !onlyshowmust"
252
+ v-show="(formconfig && formconfig.f_use_limit && formconfig.f_use_limit.required) || !onlyshowmust"
242
253
  v-if="getConfigShowItem('f_use_limit')">
243
254
  <label class="font_normal_body">表具使用年限</label>
244
255
  <input type="number" class="input_search" style="width:60%" v-model="row.f_use_limit"
@@ -247,7 +258,7 @@
247
258
  placeholder='表具使用年限' >
248
259
  </div>
249
260
  <div class="col-sm-4 form-group" :class="[$m.f_gas_person.required ? 'has-error' : '']"
250
- v-show="(formconfig.f_gas_person && formconfig.f_gas_person.required) || !onlyshowmust"
261
+ v-show="(formconfig && formconfig.f_gas_person && formconfig.f_gas_person.required) || !onlyshowmust"
251
262
  v-if="getConfigShowItem('f_gas_person')">
252
263
  <label for="f_gas_person" style="width: auto;letter-spacing: 0.5em;margin-right: -0.5em;margin-left: -0.5em"
253
264
  class="font_normal_body">&ensp;{{getConfigLabelName('f_gas_person','通气人')}}</label>
@@ -256,7 +267,7 @@
256
267
  placeholder='通气人'></input>
257
268
  </div>
258
269
  <div class="col-sm-4 form-group" :class="[$m.f_gas_date.required ? 'has-error' : '']"
259
- v-show="(formconfig.f_gas_date && formconfig.f_gas_date.required) || !onlyshowmust"
270
+ v-show="(formconfig && formconfig.f_gas_date && formconfig.f_gas_date.required) || !onlyshowmust"
260
271
  v-if="getConfigShowItem('f_gas_date')">
261
272
  <input type="text" v-model="$refs.f_gas_date.value" v-show="false"
262
273
  v-validate:f_gas_date=getConfigValidate("f_gas_date",false)>
@@ -271,7 +282,7 @@
271
282
  </div>
272
283
 
273
284
  <div class="col-sm-4 form-group" :class="[$m.f_position.required ? 'has-error' : '']"
274
- v-show="(formconfig.f_position && formconfig.f_position.required) || !onlyshowmust"
285
+ v-show="(formconfig && formconfig.f_position && formconfig.f_position.required) || !onlyshowmust"
275
286
  v-if="getConfigShowItem('f_gas_date')">
276
287
  <label for="f_position" class="font_normal_body" title="参数:安装位置">&ensp;{{getConfigLabelName('f_position','安装位置')}}</label>
277
288
  <input type="text" v-model="row.f_position" v-show="false"
@@ -281,7 +292,7 @@
281
292
  close-on-select></v-select>
282
293
  </div>
283
294
  <div class="col-sm-4 form-group" :class="[$m.f_install_person.required ? 'has-error' : '']"
284
- v-show="(formconfig.f_install_person && formconfig.f_install_person.required) || !onlyshowmust"
295
+ v-show="(formconfig && formconfig.f_install_person && formconfig.f_install_person.required) || !onlyshowmust"
285
296
  v-if="getConfigShowItem('f_install_person')">
286
297
  <label for="f_install_person" class="font_normal_body" style="width: auto;letter-spacing: 0.5em;margin-right: -0.5em;margin-left: -0.5em">&ensp;{{getConfigLabelName('f_install_person','安装人')}}</label>
287
298
  <input type="text" v-model="row.f_install_person" v-show="false"
@@ -291,7 +302,7 @@
291
302
  close-on-select></v-select>
292
303
  </div>
293
304
  <div class="col-sm-4 form-group" :class="[$m.f_subscribe_date.required ? 'has-error' : '']"
294
- v-show="(formconfig.f_subscribe_date && formconfig.f_subscribe_date.required) || !onlyshowmust"
305
+ v-show="(formconfig && formconfig.f_subscribe_date && formconfig.f_subscribe_date.required) || !onlyshowmust"
295
306
  v-if="getConfigShowItem('f_subscribe_date')">
296
307
  <label for="f_subscribe_date" class="font_normal_body">&ensp;{{getConfigLabelName('f_subscribe_date','预约时间')}}</label>
297
308
  <input type="text" v-model="row.f_subscribe_date" v-show="false"
@@ -302,7 +313,7 @@
302
313
  :format="'yyyy-MM-dd HH:mm:ss'"
303
314
  ></datepicker>
304
315
  </div>
305
- <div class="col-sm-4 form-group" v-show="opteratormetrbook && ((formconfig.f_meter_book_num && formconfig.f_meter_book_num.required) || !onlyshowmust)" :class="[$m.f_meter_book_num.required ? 'has-error' : '']"
316
+ <div class="col-sm-4 form-group" v-show="opteratormetrbook && ((formconfig && formconfig.f_meter_book_num && formconfig.f_meter_book_num.required) || !onlyshowmust)" :class="[$m.f_meter_book_num.required ? 'has-error' : '']"
306
317
  v-if="getConfigShowItem('f_meter_book_num')">
307
318
  <label for="f_position" class="font_normal_body" style="width: auto;letter-spacing: 0.5em;margin-right: -0.5em;margin-left: -0.5em">&ensp;{{getConfigLabelName('f_meter_book_num','抄表册')}}</label>
308
319
  <input type="text" v-model="row.f_meter_book_num" v-show="false"
@@ -312,7 +323,7 @@
312
323
  close-on-select></v-select>
313
324
  </div>
314
325
  <div class="col-sm-4 form-group" :class="[$m.f_install_date.required ? 'has-error' : '']"
315
- v-show="(formconfig.f_install_date && formconfig.f_install_date.required) || !onlyshowmust"
326
+ v-show="(formconfig && formconfig.f_install_date && formconfig.f_install_date.required) || !onlyshowmust"
316
327
  v-if="getConfigShowItem('f_install_date')">
317
328
  <input type="text" v-model="row.f_install_date" v-show="false"
318
329
  v-validate:f_install_date=getConfigValidate("f_install_date",false)>
@@ -327,7 +338,7 @@
327
338
  </datepicker>
328
339
  </div>
329
340
  <div class="col-sm-4 form-group" :class="[$m.f_adjustable.required ? 'has-error' : '']"
330
- v-show="(formconfig.f_adjustable && formconfig.f_adjustable.required) || !onlyshowmust"
341
+ v-show="(formconfig && formconfig.f_adjustable && formconfig.f_adjustable.required) || !onlyshowmust"
331
342
  v-if="getConfigShowItem('f_adjustable')">
332
343
  <label for="f_adjustable" class="font_normal_body" style="width: auto;letter-spacing: 0.5em;margin-right: -0.5em;margin-left: -0.5em">&ensp;{{getConfigLabelName('f_adjustable','调压箱')}}</label>
333
344
  <input type="text" v-model="row.f_adjustable" v-show="false"
@@ -336,7 +347,7 @@
336
347
  v-model='row.f_adjustable' :search='true'></v-select>
337
348
  </div>
338
349
  <div class="col-sm-4 form-group" :class="[$m.f_hand_date.required ? 'has-error' : '']"
339
- v-show="(formconfig.f_hand_date && formconfig.f_hand_date.required) || !onlyshowmust"
350
+ v-show="(formconfig && formconfig.f_hand_date && formconfig.f_hand_date.required) || !onlyshowmust"
340
351
  v-if="getConfigShowItem('f_hand_date')">
341
352
  <label for="f_hand_date" class="font_normal_body">&ensp;{{getConfigLabelName('f_hand_date','上次抄表')}}</label>
342
353
  <input type="text" v-model="row.f_hand_date" v-show="false"
@@ -350,7 +361,7 @@
350
361
  </datepicker>
351
362
  </div>
352
363
  <div class="col-sm-4 form-group" :class="[$m.f_price_ratio.required ? 'has-error' : '']"
353
- v-show="(formconfig.f_price_ratio && formconfig.f_price_ratio.required) || !onlyshowmust"
364
+ v-show="(formconfig && formconfig.f_price_ratio && formconfig.f_price_ratio.required) || !onlyshowmust"
354
365
  v-if="getConfigShowItem('f_price_ratio')">
355
366
  <label for="f_ratio" class="font_normal_body" style="width: auto;letter-spacing: 2em;margin-right: -2em;margin-left: -2em">&ensp;{{getConfigLabelName('f_price_ratio','比率')}}</label>
356
367
  <input type="number" class="input_search" style="width:60%" v-model="row.f_price_ratio"
@@ -359,7 +370,7 @@
359
370
  placeholder='比率'>
360
371
  </div>
361
372
  <div class="col-sm-4 form-group" :class="[$m.f_factory_date.required ? 'has-error' : '']"
362
- v-show="(formconfig.f_factory_date && formconfig.f_factory_date.required) || !onlyshowmust"
373
+ v-show="(formconfig && formconfig.f_factory_date && formconfig.f_factory_date.required) || !onlyshowmust"
363
374
  v-if="getConfigShowItem('f_factory_date')">
364
375
  <label for="f_factory_date" class="font_normal_body">&ensp;{{getConfigLabelName('f_factory_date','出厂日期')}}</label>
365
376
  <input type="text" v-model="row.f_factory_date" v-show="false"
@@ -373,7 +384,7 @@
373
384
  </datepicker>
374
385
  </div>
375
386
  <div class="col-sm-4 form-group" :class="[$m.f_scrap_date.required ? 'has-error' : '']"
376
- v-show="(formconfig.f_scrap_date && formconfig.f_scrap_date.required) || !onlyshowmust"
387
+ v-show="(formconfig && formconfig.f_scrap_date && formconfig.f_scrap_date.required) || !onlyshowmust"
377
388
  v-if="getConfigShowItem('f_scrap_date')">
378
389
  <label for="f_scrap_date" class="font_normal_body">&ensp;{{getConfigLabelName('f_scrap_date','报废日期')}}</label>
379
390
  <input type="text" v-model="row.f_scrap_date" v-show="false"
@@ -387,7 +398,7 @@
387
398
  </datepicker>
388
399
  </div>
389
400
  <div class="col-sm-4 form-group" :class="[$m.f_garbage_fee.required ? 'has-error' : '']"
390
- v-show="(formconfig.f_garbage_fee && formconfig.f_garbage_fee.required) || !onlyshowmust"
401
+ v-show="(formconfig && formconfig.f_garbage_fee && formconfig.f_garbage_fee.required) || !onlyshowmust"
391
402
  v-if="getConfigShowItem('f_garbage_fee')">
392
403
  <label for="gasmodel" class="font_normal_body" style="width: auto;letter-spacing: 0.5em;margin-right: -0.5em;margin-left: -0.5em">&ensp;{{getConfigLabelName('f_garbage_fee','垃圾费')}}</label>
393
404
  <input type="text" v-model="row.f_garbage_fee" v-show="false"
@@ -397,7 +408,7 @@
397
408
  v-model='row.f_garbage_fee'></v-select>
398
409
  </div>
399
410
  <div class="col-sm-4 form-group" :class="[$m.f_inputtor.required ? 'has-error' : '']"
400
- v-show="(formconfig.f_inputtor && formconfig.f_inputtor.required) || !onlyshowmust"
411
+ v-show="(formconfig && formconfig.f_inputtor && formconfig.f_inputtor.required) || !onlyshowmust"
401
412
  v-if="getConfigShowItem('f_inputtor')">
402
413
  <label class="font_normal_body" style="width: auto;letter-spacing: 0.5em;margin-right: -0.5em;margin-left: -0.5em">&ensp;{{getConfigLabelName('f_inputtor','抄表员')}}</label>
403
414
  <input type="text" v-model="row.f_inputtor" v-show="false"
@@ -409,7 +420,7 @@
409
420
  condition="f_inputtor like '%{}%'" v-el:cc></v-select>
410
421
  </div>
411
422
  <div class="col-sm-4 form-group" :class="[$m.f_usetype.required ? 'has-error' : '']"
412
- v-show="(formconfig.f_usetype && formconfig.f_usetype.required) || !onlyshowmust"
423
+ v-show="(formconfig && formconfig.f_usetype && formconfig.f_usetype.required) || !onlyshowmust"
413
424
  v-if="getConfigShowItem('f_usetype')">
414
425
  <label for="f_usetype" class="font_normal_body" title="参数:使用类型">&ensp;{{getConfigLabelName('f_usetype','使用类型')}}</label>
415
426
  <input type="text" v-model="row.f_usetype" v-show="false"
@@ -419,7 +430,7 @@
419
430
  close-on-select></v-select>
420
431
  </div>
421
432
  <div class="col-sm-4 form-group" :class="[$m.f_usetype.required ? 'has-error' : '']"
422
- v-show="(formconfig.f_usestate && formconfig.f_usestate.required) || !onlyshowmust"
433
+ v-show="(formconfig && formconfig.f_usestate && formconfig.f_usestate.required) || !onlyshowmust"
423
434
  v-if="getConfigShowItem('f_usestate')">
424
435
  <label for="f_position" class="font_normal_body" title="参数:使用状态">&ensp;{{getConfigLabelName('f_usestate','使用状态')}}</label>
425
436
  <input type="text" v-model="row.f_usestate" v-show="false"
@@ -429,7 +440,7 @@
429
440
  close-on-select></v-select>
430
441
  </div>
431
442
  <div class="col-sm-4 form-group" :class="[$m.f_limit_sms.required ? 'has-error' : '']"
432
- v-show="(formconfig.f_usetype && formconfig.f_usetype.required) || !onlyshowmust"
443
+ v-show="(formconfig && formconfig.f_usetype && formconfig.f_usetype.required) || !onlyshowmust"
433
444
  v-if="getConfigShowItem('f_usetype')">
434
445
  <label for="f_limit_sms" class="font_normal_body">&ensp;{{getConfigLabelName('f_limit_sms','短信限定')}}</label>
435
446
  <input type="text" class="input_search" style="width:60%" v-model="row.f_limit_sms"
@@ -437,14 +448,14 @@
437
448
  placeholder='短信限定'></input>
438
449
  </div>
439
450
  <div style="" class="col-sm-4 form-group" :class="[$m.f_alarm_code.required ? 'has-error' : '']"
440
- v-show="(formconfig.f_alarm_code && formconfig.f_alarm_code.required) || !onlyshowmust"
451
+ v-show="(formconfig && formconfig.f_alarm_code && formconfig.f_alarm_code.required) || !onlyshowmust"
441
452
  v-if="getConfigShowItem('f_alarm_code')">
442
453
  <label for="f_alarm_code" class="font_normal_body ">&ensp;{{getConfigLabelName('f_alarm_code','报警器号')}}</label>
443
454
  <input type="text" class="input_search" style="width:60%" v-model="row.f_alarm_code" placeholder='报警器号'
444
455
  v-validate:f_alarm_code=getConfigValidate("f_alarm_code",false) >
445
456
  </div>
446
457
  <div style="" class="col-sm-4 form-group" :class="[$m.f_hand_month.required ? 'has-error' : '']"
447
- v-show="(formconfig.f_hand_month && formconfig.f_hand_month.required) || !onlyshowmust"
458
+ v-show="(formconfig && formconfig.f_hand_month && formconfig.f_hand_month.required) || !onlyshowmust"
448
459
  v-if="getConfigShowItem('f_hand_month')">
449
460
  <label for="f_hand_month" class="font_normal_body ">&ensp;{{getConfigLabelName('f_hand_month','抄表月份')}}</label>
450
461
  <input type="text" v-model="row.f_hand_month" v-show="false"
@@ -454,21 +465,21 @@
454
465
  close-on-select></v-select>
455
466
  </div>
456
467
  <div style="" class="col-sm-4 form-group" :class="[$m.f_userfiles_address.required ? 'has-error' : '']"
457
- v-show="(formconfig.f_userfiles_address && formconfig.f_userfiles_address.required) || !onlyshowmust"
468
+ v-show="(formconfig && formconfig.f_userfiles_address && formconfig.f_userfiles_address.required) || !onlyshowmust"
458
469
  v-if="getConfigShowItem('f_userfiles_address')">
459
470
  <label for="f_userfiles_address" class="font_normal_body ">&ensp;{{getConfigLabelName('f_userfiles_address','用气点名')}}</label>
460
471
  <input class="input_search" style="width:60%" v-model="row.f_userfiles_address"
461
472
  v-validate:f_userfiles_address=getConfigValidate("f_userfiles_address",false) >
462
473
  </div>
463
474
  <div style="" class="col-sm-4 form-group" :class="[$m.f_userfiles_lng.required ? 'has-error' : '']"
464
- v-show="(formconfig.f_userfiles_lng && formconfig.f_userfiles_lng.required) || !onlyshowmust"
475
+ v-show="(formconfig && formconfig.f_userfiles_lng && formconfig.f_userfiles_lng.required) || !onlyshowmust"
465
476
  v-if="getConfigShowItem('f_userfiles_lng')">
466
477
  <label class="font_normal_body" style="width: auto;letter-spacing: 2em;margin-right: -2em;margin-left: -2em">&ensp;{{getConfigLabelName('f_userfiles_lng','经度')}}</label>
467
478
  <input type="text" style="width:60%" v-model="row.f_userfiles_lng" class="input_search" placeholder="经度"
468
479
  v-validate:f_userfiles_lng=getConfigValidate("f_userfiles_lng",false)>
469
480
  </div>
470
481
  <div style="" class="col-sm-4 form-group" :class="[$m.f_userfiles_lat.required ? 'has-error' : '']"
471
- v-show="(formconfig.f_userfiles_lat && formconfig.f_userfiles_lat.required) || !onlyshowmust"
482
+ v-show="(formconfig && formconfig.f_userfiles_lat && formconfig.f_userfiles_lat.required) || !onlyshowmust"
472
483
  v-if="getConfigShowItem('f_userfiles_lat')">
473
484
  <label class="font_normal_body" style="width: auto;letter-spacing: 2em;margin-right: -2em;margin-left: -2em">&ensp;{{getConfigLabelName('f_userfiles_lat','纬度')}}</label>
474
485
  <input type="text" style="width:48%" v-model="row.f_userfiles_lat" class="input_search" placeholder="纬度"
@@ -476,14 +487,14 @@
476
487
  &ensp;<span class="glyphicon glyphicon-map-marker" @click="openModal" ></span>
477
488
  </div>
478
489
  <div class="col-sm-4 form-group" :class="[$m.f_comments.required ? 'has-error' : '']"
479
- v-show="(formconfig.f_comments && formconfig.f_comments.required) || !onlyshowmust"
490
+ v-show="(formconfig && formconfig.f_comments && formconfig.f_comments.required) || !onlyshowmust"
480
491
  v-if="getConfigShowItem('f_comments')">
481
492
  <label class="font_normal_body" style="width: auto;letter-spacing: 2em;margin-right: -2em;margin-left: -2em">&ensp;{{getConfigLabelName('f_comments','备注')}}</label>
482
493
  <input type="text" style="width:60%" v-model="row.f_comments" class="input_search" placeholder="备注"
483
494
  v-validate:f_comments=getConfigValidate("f_comments",false)>
484
495
  </div>
485
496
  <div class="col-sm-4 form-group" :class="[$m.f_overdue_set.required ? 'has-error' : '']"
486
- v-show="(formconfig.f_overdue_set && formconfig.f_overdue_set.required) || !onlyshowmust"
497
+ v-show="(formconfig && formconfig.f_overdue_set && formconfig.f_overdue_set.required) || !onlyshowmust"
487
498
  v-if="getConfigShowItem('f_overdue_set')">
488
499
  <label class="font_normal_body">{{getConfigLabelName('f_overdue_set','违约金规则')}}</label>
489
500
  <input type="text" v-model="row.f_overdue_set" v-show="false"
@@ -492,16 +503,6 @@
492
503
  :options='overdueset' placeholder='违约金规则'
493
504
  close-on-select></v-select>
494
505
  </div>
495
- <div class="col-sm-4 form-group" :class="[$m.f_force_measure.required ? 'has-error' : '']"
496
- v-show="(formconfig.f_force_measure && formconfig.f_force_measure.required) || !onlyshowmust"
497
- v-if="getConfigShowItem('f_force_measure')">
498
- <label class="font_normal_body">{{getConfigLabelName('f_force_measure','三项强制措施')}}</label>
499
- <input type="text" v-model="row.f_force_measure" v-show="false"
500
- v-validate:f_force_measure=getConfigValidate("f_force_measure",false)>
501
- <v-select :value.sync="row.f_force_measure" v-model="row.f_force_measure"
502
- :options='forceMeasure' placeholder='三项强制措施'
503
- close-on-select></v-select>
504
- </div>
505
506
 
506
507
  <template v-if="config.stuckFlowmeterShow">
507
508
  <div class="col-sm-4 form-group">
@@ -743,6 +744,9 @@
743
744
  if (this.row.pricetype === '混合气价') {
744
745
  this.ratioshow = true
745
746
  }
747
+ if (this.row.f_force_measure[0]) {
748
+ this.row.f_force_measure = this.row.f_force_measure[0].split(',')
749
+ }
746
750
  if (this.row.f_meternumber) {
747
751
  this.meterNumberDisabled = true
748
752
  }
@@ -771,11 +775,11 @@
771
775
  }
772
776
  return {}
773
777
  },
774
- getConfigShowItem (name) {
778
+ getConfigShowItem (name,defaultVal = true) {
775
779
  if (this.formconfig && this.formconfig[name] && this.formconfig[name].hasOwnProperty('showItem')) {
776
780
  return this.formconfig[name].showItem
777
781
  } else {
778
- return true
782
+ return defaultVal
779
783
  }
780
784
  },
781
785
  getConfigLabelName (name, defaultVal) {
@@ -21,7 +21,7 @@
21
21
  </div>
22
22
 
23
23
  <div style=""
24
- v-show="(formconfig.f_rent_phone && formconfig.f_rent_phone.required) || !onlyshowmust"
24
+ v-show="(formconfig && formconfig.f_rent_phone && formconfig.f_rent_phone.required) || !onlyshowmust"
25
25
  :class="[$v.f_rent_phone.required ? 'has-error' : '']"
26
26
  class="col-sm-4 form-group" v-if="getConfigShowItem('f_rent_phone')">
27
27
  <label for="f_rent_phone" class="font_normal_body">&ensp;{{getConfigLabelName('f_rent_phone','曾用电话')}}</label>
@@ -78,7 +78,7 @@
78
78
  </div>
79
79
  <div class="row">
80
80
  <div style=""
81
- v-show="(formconfig.f_used_name && formconfig.f_used_name.required) || !onlyshowmust"
81
+ v-show="(formconfig && formconfig.f_used_name && formconfig.f_used_name.required) || !onlyshowmust"
82
82
  :class="[$v.f_used_name.required ? 'has-error' : '']"
83
83
  class="col-sm-4 form-group" v-if="getConfigShowItem('f_used_name')">
84
84
  <label style="letter-spacing: 0.5em;margin-right: -0.5em;margin-left: -0.5em" for="f_used_name" class="font_normal_body w3">&ensp;{{getConfigLabelName('f_used_name','曾用名')}}</label>
@@ -87,7 +87,7 @@
87
87
  :placeholder="getConfigPlaceholder('f_used_name','曾用名')">
88
88
  </div>
89
89
  <div class="col-sm-4 form-group"
90
- v-show="(formconfig.f_people_num && formconfig.f_people_num.required) || !onlyshowmust"
90
+ v-show="(formconfig && formconfig.f_people_num && formconfig.f_people_num.required) || !onlyshowmust"
91
91
  :class="[$v.f_people_num.dctest ? 'has-error' : '']" v-if="getConfigShowItem('f_people_num')">
92
92
  <label for="f_people_num" style="letter-spacing: 0.5em;margin-right: -0.5em" class="font_normal_body w3">{{getConfigLabelName('f_people_num','人口数')}}</label>
93
93
  <input type="number" v-model="baseinfo.base.f_people_num" v-show="!peopleMax" v-validate:f_people_num='{dctest: [0, ">=" ]}'
@@ -105,7 +105,7 @@
105
105
  </div>
106
106
  <div class="row">
107
107
  <div style=""
108
- v-show="(formconfig.f_balance && formconfig.f_balance.required) || !onlyshowmust"
108
+ v-show="(formconfig && formconfig.f_balance && formconfig.f_balance.required) || !onlyshowmust"
109
109
  :class="[$v.f_balance.required ? 'has-error' : '']"
110
110
  class="col-sm-4 form-group" v-if="getConfigShowItem('f_balance')">
111
111
  <label for="f_balance" class="font_normal_body">&ensp;{{getConfigLabelName('f_balance','用户余额')}}</label>
@@ -115,7 +115,7 @@
115
115
  :disabled="!jurisdiction.includes('档案信息查询修改')">
116
116
  </div>
117
117
  <div style="" class="col-sm-4 form-group" v-if="getConfigShowItem('f_is_mgq')"
118
- v-show="(formconfig.f_is_mgq && formconfig.f_is_mgq.required) || !onlyshowmust"
118
+ v-show="(formconfig && formconfig.f_is_mgq && formconfig.f_is_mgq.required) || !onlyshowmust"
119
119
  :class="[$v.f_is_mgq.required ? 'has-error' : '']">
120
120
  <label for="f_is_mgq" style="letter-spacing: 0.5em;margin-right: -0.5em" class="font_normal_body w3">{{getConfigLabelName('f_is_mgq','煤改气')}}</label>
121
121
  <input type="text" v-show="false" v-model="baseinfo.base.f_is_mgq"
@@ -125,7 +125,7 @@
125
125
  :options='mgq' style="width: 65%" close-on-select></v-select>
126
126
  </div>
127
127
  <div class="col-sm-4 form-group" v-if="getConfigShowItem('f_book_no')"
128
- v-show="(formconfig.f_book_no && formconfig.f_book_no.required) || !onlyshowmust"
128
+ v-show="(formconfig && formconfig.f_book_no && formconfig.f_book_no.required) || !onlyshowmust"
129
129
  :class="[$v.f_book_no.required ? 'has-error' : '']">
130
130
  <label for="f_contract" class="font_normal_body">&ensp;{{getConfigLabelName('f_book_no','燃气本号')}}</label>
131
131
  <input type="text" v-model="baseinfo.base.f_book_no" class="input_search" style="width:60%"
@@ -135,7 +135,7 @@
135
135
  </div>
136
136
  <div class="row">
137
137
  <div style="" class="col-sm-4 form-group" v-if="getConfigShowItem('f_rent_name')"
138
- v-show="(formconfig.f_rent_name && formconfig.f_rent_name.required) || !onlyshowmust"
138
+ v-show="(formconfig && formconfig.f_rent_name && formconfig.f_rent_name.required) || !onlyshowmust"
139
139
  :class="[$v.f_rent_name.required ? 'has-error' : '']">
140
140
  <label for="f_rent_name" class="font_normal_body">&ensp;{{getConfigLabelName('f_rent_name','租户姓名')}}</label>
141
141
  <input type="text" v-model="baseinfo.base.f_rent_name" class="input_search" style="width:60%"
@@ -143,7 +143,7 @@
143
143
  :placeholder="getConfigPlaceholder('f_rent_name','租户姓名')">
144
144
  </div>
145
145
  <div style="" class="col-sm-4 form-group" v-if="getConfigShowItem('f_zuhu_phone')"
146
- v-show="(formconfig.f_zuhu_phone && formconfig.f_zuhu_phone.required) || !onlyshowmust"
146
+ v-show="(formconfig && formconfig.f_zuhu_phone && formconfig.f_zuhu_phone.required) || !onlyshowmust"
147
147
  :class="[$v.f_zuhu_phone.required ? 'has-error' : '']">
148
148
  <label for="f_zuhu_phone" class="font_normal_body">{{getConfigLabelName('f_zuhu_phone','租户电话')}}</label>
149
149
  <input type="text" v-model="baseinfo.base.f_zuhu_phone" class="input_search" style="width:60%"
@@ -153,7 +153,7 @@
153
153
  </div>
154
154
  <div class="row">
155
155
  <div style="" class="col-sm-8 form-group"
156
- v-show="(formconfig.f_zuhu_idnumber && formconfig.f_zuhu_idnumber.required) || !onlyshowmust"
156
+ v-show="(formconfig && formconfig.f_zuhu_idnumber && formconfig.f_zuhu_idnumber.required) || !onlyshowmust"
157
157
  v-if="getConfigShowItem('f_zuhu_idnumber')"
158
158
  :class="[$v.f_zuhu_idnumber.required ? 'has-error' : '']">
159
159
  <label for="f_zuhu_idnumber" style="margin-right: -0.5em" class="font_normal_body">{{getConfigLabelName('f_zuhu_idnumber','租户身份证')}}</label>
@@ -162,7 +162,7 @@
162
162
  :placeholder="getConfigPlaceholder('f_zuhu_idnumber','租户身份证')">
163
163
  </div>
164
164
  <div style="" class="col-sm-4 form-group"
165
- v-show="(formconfig.f_cost_type && formconfig.f_cost_type.required) || !onlyshowmust"
165
+ v-show="(formconfig && formconfig.f_cost_type && formconfig.f_cost_type.required) || !onlyshowmust"
166
166
  v-if="getConfigShowItem('f_cost_type')">
167
167
  <label for="f_is_mgq" class="font_normal_body ">&ensp;{{getConfigLabelName('f_cost_type','付款类型')}}</label>
168
168
  <v-select id="f_is_mgq" :value.sync="baseinfo.base.f_cost_type" v-model="baseinfo.base.f_cost_type"
@@ -172,7 +172,7 @@
172
172
  </div>
173
173
  <div class="row">
174
174
  <div class="col-sm-8 form-group" v-if="getConfigShowItem('f_contract_id')"
175
- v-show="(formconfig.f_contract_id && formconfig.f_contract_id.required) || !onlyshowmust"
175
+ v-show="(formconfig && formconfig.f_contract_id && formconfig.f_contract_id.required) || !onlyshowmust"
176
176
  :class="[$v.f_contract_id.required ? 'has-error' : '']">
177
177
  <label for="f_contract" class="font_normal_body">&ensp;{{getConfigLabelName('f_contract_id','合同编号')}}</label>
178
178
  <input type="text" v-model="baseinfo.base.f_contract_id" class="input_search" style="width:80%"
@@ -180,7 +180,7 @@
180
180
  :placeholder="getConfigPlaceholder('f_contract_id','合同编号')">
181
181
  </div>
182
182
  <div class="col-sm-4 form-group" v-if="getConfigShowItem('f_house_type')"
183
- v-show="(formconfig.f_house_type && formconfig.f_house_type.required) || !onlyshowmust"
183
+ v-show="(formconfig && formconfig.f_house_type && formconfig.f_house_type.required) || !onlyshowmust"
184
184
  :class="[$v.f_house_type.required ? 'has-error' : '']">
185
185
  <label for="f_user_state" class="font_normal_body">&ensp;{{getConfigLabelName('f_house_type','房屋类型')}}</label>
186
186
  <input type="text" v-show="false" v-model="baseinfo.base.f_house_type"
@@ -193,7 +193,7 @@
193
193
  </div>
194
194
  <div class="row">
195
195
  <div style="" class="col-sm-4 form-group" v-if="getConfigShowItem('f_user_level')"
196
- v-show="(formconfig.f_user_level && formconfig.f_user_level.required) || !onlyshowmust"
196
+ v-show="(formconfig && formconfig.f_user_level && formconfig.f_user_level.required) || !onlyshowmust"
197
197
  :class="[$v.f_user_level.required ? 'has-error' : '']">
198
198
  <label for="f_user_level" class="font_normal_body ">&ensp;{{getConfigLabelName('f_user_level','用户等级')}}</label>
199
199
  <input type="text" v-show="false" v-model="baseinfo.base.f_user_level"
@@ -204,7 +204,7 @@
204
204
  </v-select>
205
205
  </div>
206
206
  <div class="col-sm-4 form-group" v-if="getConfigShowItem('f_user_nature')"
207
- v-show="(formconfig.f_user_nature && formconfig.f_user_nature.required) || !onlyshowmust"
207
+ v-show="(formconfig && formconfig.f_user_nature && formconfig.f_user_nature.required) || !onlyshowmust"
208
208
  :class="[$v.f_user_nature.required ? 'has-error' : '']">
209
209
  <label for="f_user_nature" class="font_normal_body" title="用户性质">&ensp;{{getConfigLabelName('f_user_nature','用气类型')}}</label>
210
210
  <input type="text" v-show="false" v-model="baseinfo.base.f_user_nature"
@@ -215,7 +215,7 @@
215
215
  </v-select>
216
216
  </div>
217
217
  <div class="col-sm-4 form-group" v-if="getConfigShowItem('f_olduserinfo_code')"
218
- v-show="(formconfig.f_olduserinfo_code && formconfig.f_olduserinfo_code.required) || !onlyshowmust"
218
+ v-show="(formconfig && formconfig.f_olduserinfo_code && formconfig.f_olduserinfo_code.required) || !onlyshowmust"
219
219
  :class="[$v.f_olduserinfo_code.required ? 'has-error' : '']">
220
220
  <label for="f_user_nature" class="font_normal_body">&ensp;{{getConfigLabelName('f_olduserinfo_code','档案编号')}}</label>
221
221
  <input type="text" v-model="baseinfo.base.f_olduserinfo_code" class="input_search" style="width:60%"
@@ -225,7 +225,7 @@
225
225
  </div>
226
226
  <div class="row">
227
227
  <div style="" class="col-sm-12 form-group" v-if="getConfigShowItem('f_comments')"
228
- v-show="(formconfig.f_comments && formconfig.f_comments.required) || !onlyshowmust"
228
+ v-show="(formconfig && formconfig.f_comments && formconfig.f_comments.required) || !onlyshowmust"
229
229
  :class="[$v.f_comments.required ? 'has-error' : '']">
230
230
  <label for="f_paper_accoun" style="letter-spacing: 2em;margin-right: -2em;margin-left: -2em" class="font_normal_body w2">&ensp;{{getConfigLabelName('f_comments','备注')}}</label>
231
231
  <input class="input_search" style="width:86.5%;height: 40px" v-model="baseinfo.base.f_comments"
@@ -382,11 +382,11 @@
382
382
  }
383
383
  return {}
384
384
  },
385
- getConfigShowItem (name) {
385
+ getConfigShowItem (name,defaultVal = true) {
386
386
  if (this.formconfig && this.formconfig[name] && this.formconfig[name].hasOwnProperty('showItem')) {
387
387
  return this.formconfig[name].showItem
388
388
  } else {
389
- return true
389
+ return defaultVal
390
390
  }
391
391
  },
392
392
  getConfigLabelName (name, defaultVal) {