apply-clients 3.4.84 → 3.4.88

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,133 +1,131 @@
1
- 1<template>
1
+ <template>
2
2
  <div class="select-overspread" style="background-color: #ffffff;padding: 20px;overflow: scroll">
3
3
  <validator name='v' @valid="$emit('valid')" @invalid="$emit('invalid')">
4
- <form class="form-horizontal">
5
- <div class="form-group">
6
- <div v-for="(index,item) in data.fields">
7
- <!--input-->
8
- <div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
9
- v-if="(item.type==='input' || item.type==='number'||item.type === 'tel'||item.type === 'email') && !item.hidden && (item.device === 'pc' || !item.device) && ( item.label != '证件号码')&&( item.label !== '身份证') && (item.label !== '用户电话')"
10
- :class="[item.required && !(item.value) ? 'has-error' : '',item.bootstraped ? item.bootstraped + ' form-group':'col-sm-4 form-group']">
11
- <label :style="item.label_style ? item.label_style : ''"
12
- :class="item.label_bootstraped ? item.label_bootstraped+' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{item.label}}</label>
13
- <div :style="item.value_style ? item.value_style:''"
14
- :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-6'">
15
- <input class="form-control input_view" style=""
16
- :type="item.type"
17
- v-model="data.fields[index].value"
18
- :placeholder="item.placeholder"
19
- :value="data.fields[index].value"
20
- :readonly="item.readonly"
21
- :disabled="item.disabled"
22
- @change="onchange(index)"
23
- @blur="onblur(index)"
24
- @input="oninput(index)"
25
- />
4
+ <form class="form-horizontal">
5
+ <div class="form-group">
6
+ <div v-for="(index,item) in data.fields">
7
+ <!--input-->
8
+ <div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
9
+ v-if="(item.type==='input' || item.type==='number'||item.type === 'tel'||item.type === 'email') && !item.hidden && (item.device === 'pc' || !item.device) && ( item.label != '证件号码')&&( item.label !== '身份证') && (item.label !== '用户电话')"
10
+ :class="[item.required && !(item.value) ? 'has-error' : '',item.bootstraped ? item.bootstraped + ' form-group':'col-sm-4 form-group']">
11
+ <label :style="item.label_style ? item.label_style : ''"
12
+ :class="item.label_bootstraped ? item.label_bootstraped+' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{ item.label }}</label>
13
+ <div :style="item.value_style ? item.value_style:''"
14
+ :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-6'">
15
+ <input class="form-control input_view" style=""
16
+ :type="item.type"
17
+ v-model="data.fields[index].value"
18
+ :placeholder="item.placeholder"
19
+ :value="data.fields[index].value"
20
+ :readonly="item.readonly"
21
+ :disabled="item.disabled"
22
+ @change="onchange(index)"
23
+ @blur="onblur(index)"
24
+ @input="oninput(index)"
25
+ />
26
+ </div>
26
27
  </div>
27
- </div>
28
28
 
29
- <!--input-->
30
- <div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
31
- v-if="((data.f_credentials === '军官证' ||data.f_credentials === '营业执照')&& item.label === '证件号码')"
32
- :class="[item.required && !(item.value) ? 'has-error' : '',item.bootstraped ? item.bootstraped + ' form-group':'col-sm-4 form-group']">
33
- <label :style="item.label_style ? item.label_style : ''"
34
- :class="item.label_bootstraped ? item.label_bootstraped+' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{item.label}}</label>
35
- <div :style="item.value_style ? item.value_style:''"
36
- :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-6'">
37
- <input class="form-control input_view" style=""
38
- :type="item.type"
39
- v-model="data.fields[index].value"
40
- :placeholder="item.placeholder"
41
- :value="data.fields[index].value"
42
- :readonly="item.readonly"
43
- :disabled="item.disabled"
44
- @change="onchange(index)"
45
- @blur="onblur(index)"
46
- @input="oninput(index)"
47
- />
29
+ <!--input-->
30
+ <div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
31
+ v-if="((data.f_credentials === '军官证' ||data.f_credentials === '营业执照')&& item.label === '证件号码')"
32
+ :class="[item.required && !(item.value) ? 'has-error' : '',item.bootstraped ? item.bootstraped + ' form-group':'col-sm-4 form-group']">
33
+ <label :style="item.label_style ? item.label_style : ''"
34
+ :class="item.label_bootstraped ? item.label_bootstraped+' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{ item.label }}</label>
35
+ <div :style="item.value_style ? item.value_style:''"
36
+ :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-6'">
37
+ <input class="form-control input_view" style=""
38
+ :type="item.type"
39
+ v-model="data.fields[index].value"
40
+ :placeholder="item.placeholder"
41
+ :value="data.fields[index].value"
42
+ :readonly="item.readonly"
43
+ :disabled="item.disabled"
44
+ @change="onchange(index)"
45
+ @blur="onblur(index)"
46
+ @input="oninput(index)"
47
+ />
48
+ </div>
48
49
  </div>
49
- </div>
50
- <!--身份证验证-->
51
- <div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
52
- v-if="(item.label==='身份证') || (data.f_credentials === '身份证' && item.label === '证件号码')"
53
- :class="[$v.f_idnumber2.identityCardValid ? 'has-error' : '',item.bootstraped ? item.bootstraped + ' form-group':'col-sm-4 form-group']">
54
- <label :style="item.label_style ? item.label_style : ''"
55
- :class="item.label_bootstraped ? item.label_bootstraped+' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{item.label}}</label>
56
- <div :style="item.value_style ? item.value_style:''"
57
- :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-6'">
58
- <input class="form-control input_view" style=""
59
- :type="item.type"
60
- maxlength="18"
61
- v-model="data.fields[index].value"
62
- :placeholder="item.placeholder"
63
- :value="data.fields[index].value"
64
- v-validate:f_idnumber2='{identityCardValid: true}'
65
- :readonly="item.readonly"
66
- :disabled="item.disabled"
67
- @change="onchange(index)"
68
- @blur="onblur(index)"
69
- @input="oninput(index)"
70
- />
50
+ <!--身份证验证-->
51
+ <div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
52
+ v-if="(item.label==='身份证') || (data.f_credentials === '身份证' && item.label === '证件号码')"
53
+ :class="[$v.f_idnumber2.identityCardValid ? 'has-error' : '',item.bootstraped ? item.bootstraped + ' form-group':'col-sm-4 form-group']">
54
+ <label :style="item.label_style ? item.label_style : ''"
55
+ :class="item.label_bootstraped ? item.label_bootstraped+' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{ item.label }}</label>
56
+ <div :style="item.value_style ? item.value_style:''"
57
+ :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-6'">
58
+ <input class="form-control input_view" style=""
59
+ :type="item.type"
60
+ maxlength="18"
61
+ v-model="data.fields[index].value"
62
+ :placeholder="item.placeholder"
63
+ :value="data.fields[index].value"
64
+ v-validate:f_idnumber2='{identityCardValid: true}'
65
+ :readonly="item.readonly"
66
+ :disabled="item.disabled"
67
+ @change="onchange(index)"
68
+ @blur="onblur(index)"
69
+ @input="oninput(index)"
70
+ />
71
+ </div>
71
72
  </div>
72
- </div>
73
73
 
74
74
 
75
- <div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
76
- v-if="item.label === '用户电话'"
77
- :class="[$v.f_user_phone.minlength || $v.f_user_phone.maxlength ? 'has-error' : '',item.bootstraped ? item.bootstraped + ' form-group':'col-sm-4 form-group']">
78
- <label :style="item.label_style ? item.label_style : ''"
79
- :class="item.label_bootstraped ? item.label_bootstraped+' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{item.label}}</label>
80
- <div :style="item.value_style ? item.value_style:''"
81
- :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-6'">
82
- <input class="form-control input_view" style=""
83
- type="number"
84
- oninput="if(value.length > 11) value=value.slice(0,11)"
85
- v-validate:f_user_phone="{minlength: 7, maxlength: 11 }"
86
- v-model="data.fields[index].value"
87
- :placeholder="item.placeholder"
88
- :value="data.fields[index].value"
89
- onKeypress="return(/[\d\.]/.test(String.fromCharCode(event.keyCode)))"
90
- :readonly="item.readonly"
91
- :disabled="item.disabled"
92
- @change="onchange(index)"
93
- @blur="onblur(index)"
94
- @input="oninput(index)"
95
- />
75
+ <div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
76
+ v-if="item.label === '用户电话'"
77
+ :class="[item.required && !(item.value) ? 'has-error' : '',item.bootstraped ? item.bootstraped + ' form-group':'col-sm-4 form-group']">
78
+ <label :style="item.label_style ? item.label_style : ''"
79
+ :class="item.label_bootstraped ? item.label_bootstraped+' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{ item.label }}</label>
80
+ <div :style="item.value_style ? item.value_style:''"
81
+ :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-6'">
82
+ <input class="form-control input_view" style=""
83
+ type="number"
84
+ oninput="if(value.length > 11) value=value.slice(0,11)"
85
+ v-model="data.fields[index].value"
86
+ :placeholder="item.placeholder"
87
+ :value="data.fields[index].value"
88
+ onKeypress="return(/[\d\.]/.test(String.fromCharCode(event.keyCode)))"
89
+ :readonly="item.readonly"
90
+ :disabled="item.disabled"
91
+ @change="onchange(index)"
92
+ @blur="onblur(index)"
93
+ @input="oninput(index)"
94
+ />
95
+ </div>
96
96
  </div>
97
- </div>
98
97
 
99
98
 
100
-
101
- <!--时间datepicker-->
102
- <div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
103
- v-if="item.type==='datepicker' && !item.hidden && (item.device === 'pc' || !item.device)"
104
- :class="[item.required && !(item.value) ? 'has-error' : '',item.bootstraped ? item.bootstraped+' form-group':'col-sm-4 form-group']">
105
- <label
106
- :class="item.label_bootstraped ? item.label_bootstraped+' control-label-justify control-label' : 'control-label control-label-justify col-sm-6'">{{item.label}}</label>
107
- <div :style="item.value_style ? item.value_style:''"
108
- :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-6'">
109
- <datepicker
110
- @change="onchange(index)"
111
- @blur="onblur(index)"
112
- :placeholder="item.placeholder"
113
- :value.sync="data.fields[index].value"
114
- :format="item.format ? item.format : 'yyyy-MM-dd'"
115
- v-model="data.fields[index].value"
116
- :readonly="item.readonly"
117
- :disabled="item.disabled"
118
- :show-reset-button="reset">
119
- </datepicker>
99
+ <!--时间datepicker-->
100
+ <div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
101
+ v-if="item.type==='datepicker' && !item.hidden && (item.device === 'pc' || !item.device)"
102
+ :class="[item.required && !(item.value) ? 'has-error' : '',item.bootstraped ? item.bootstraped+' form-group':'col-sm-4 form-group']">
103
+ <label
104
+ :class="item.label_bootstraped ? item.label_bootstraped+' control-label-justify control-label' : 'control-label control-label-justify col-sm-6'">{{ item.label }}</label>
105
+ <div :style="item.value_style ? item.value_style:''"
106
+ :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-6'">
107
+ <datepicker
108
+ @change="onchange(index)"
109
+ @blur="onblur(index)"
110
+ :placeholder="item.placeholder"
111
+ :value.sync="data.fields[index].value"
112
+ :format="item.format ? item.format : 'yyyy-MM-dd'"
113
+ v-model="data.fields[index].value"
114
+ :readonly="item.readonly"
115
+ :disabled="item.disabled"
116
+ :show-reset-button="reset">
117
+ </datepicker>
118
+ </div>
120
119
  </div>
121
- </div>
122
120
 
123
- <!--textarea-->
124
- <div :style="item.style ? item.style+';margin-bottom: 20px':'margin-bottom: 20px'"
125
- v-if="item.type==='textarea' && !item.hidden && (item.device === 'pc' || !item.device)"
126
- :class="[item.required && !(item.value) ? 'has-error' : '',item.bootstraped?item.bootstraped+' form-group':'col-sm-12 form-group']">
127
- <label :style="item.label_style ? item.label_style : ''"
128
- :class="item.label_bootstraped ? item.label_bootstraped + ' control-label-justify control-label' : 'control-label-justify control-label col-sm-3'">{{item.label}}</label>
129
- <div :style="item.value_style ? item.value_style:''"
130
- :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-10'">
121
+ <!--textarea-->
122
+ <div :style="item.style ? item.style+';margin-bottom: 20px':'margin-bottom: 20px'"
123
+ v-if="item.type==='textarea' && !item.hidden && (item.device === 'pc' || !item.device)"
124
+ :class="[item.required && !(item.value) ? 'has-error' : '',item.bootstraped?item.bootstraped+' form-group':'col-sm-12 form-group']">
125
+ <label :style="item.label_style ? item.label_style : ''"
126
+ :class="item.label_bootstraped ? item.label_bootstraped + ' control-label-justify control-label' : 'control-label-justify control-label col-sm-3'">{{ item.label }}</label>
127
+ <div :style="item.value_style ? item.value_style:''"
128
+ :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-10'">
131
129
  <textarea
132
130
  :readonly="item.readonly"
133
131
  :disabled="item.disabled"
@@ -141,255 +139,274 @@
141
139
  @input="oninput(index)"
142
140
  >
143
141
  </textarea>
144
- <button
145
- v-if="(item.field==='f_prospecting_result')&&exploration" @click="showModle()">查看所有</button>
142
+ <button
143
+ v-if="(item.field==='f_prospecting_result')&&exploration" @click="showModle()">查看所有
144
+ </button>
145
+ </div>
146
146
  </div>
147
- </div>
148
147
 
149
- <!--select-->
150
- <div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
151
- v-if="item.type==='select' && !item.hidden && (item.device === 'pc' || !item.device)"
152
- :class="[item.required && !(item.value) ? 'has-error' : '',item.bootstraped?item.bootstraped+' form-group':'col-sm-4 form-group']">
153
- <label
154
- :class="item.label_bootstraped ? item.label_bootstraped+' control-label control-label-justify':'control-label-justify control-label col-sm-6'">{{item.label}}</label>
155
- <div :style="item.value_style ? item.value_style:''"
156
- :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-6'">
157
- <input-select
158
- class="select select_list"
159
- @blur="onblur(index)"
160
- @change="onchange(index)"
161
- @select-search="selectSearch($arguments,index)"
162
- :readonly="item.readonly"
163
- :disable="item.disabled"
164
- :value.sync="data.fields[index].value"
165
- v-model="data.fields[index].value"
166
- :options='data.fields[index].options'
167
- :valueSingle="true"></input-select>
148
+ <!--select-->
149
+ <div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
150
+ v-if="item.type==='select' && !item.hidden && (item.device === 'pc' || !item.device)"
151
+ :class="[item.required && !(item.value) ? 'has-error' : '',item.bootstraped?item.bootstraped+' form-group':'col-sm-4 form-group']">
152
+ <label
153
+ :class="item.label_bootstraped ? item.label_bootstraped+' control-label control-label-justify':'control-label-justify control-label col-sm-6'">{{ item.label }}</label>
154
+ <div :style="item.value_style ? item.value_style:''"
155
+ :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-6'">
156
+ <input-select
157
+ class="select select_list"
158
+ @blur="onblur(index)"
159
+ @change="onchange(index)"
160
+ @select-search="selectSearch($arguments,index)"
161
+ :readonly="item.readonly"
162
+ :disable="item.disabled"
163
+ :value.sync="data.fields[index].value"
164
+ v-model="data.fields[index].value"
165
+ :options='data.fields[index].options'
166
+ :valueSingle="true"></input-select>
167
+ </div>
168
168
  </div>
169
- </div>
170
169
 
171
- <!--checkbox-->
172
- <div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
173
- v-if="item.type==='checkbox' && !item.hidden && (item.device === 'pc' || !item.device)"
174
- :class="[item.required && item.value.length === 0 ? 'has-error' : '',item.bootstraped?item.bootstraped+' form-group':'col-sm-4 form-group']">
175
- <label v-if="item.label"
176
- :class="item.label_bootstraped?item.label_bootstraped+' control-label control-label-justify':'control-label-justify control-label col-sm-6'">{{item.label}}</label>
177
- <div :style="item.value_style ? item.value_style:''"
178
- :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-6'">
179
- <label class="checkbox-inline" v-for="(index2,row) in item.options">
180
- <input type="checkbox" class=""
181
- :readonly="data.fields[index].readonly"
182
- :disabled="data.fields[index].disabled"
183
- v-model="data.fields[index].value"
184
- :value="data.fields[index].options[index2].value"
185
- @change="onchange(index)"
186
- @blur="onblur(index)">
187
- {{row.label}}
188
- </label>
170
+ <!--checkbox-->
171
+ <div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
172
+ v-if="item.type==='checkbox' && !item.hidden && (item.device === 'pc' || !item.device)"
173
+ :class="[item.required && item.value.length === 0 ? 'has-error' : '',item.bootstraped?item.bootstraped+' form-group':'col-sm-4 form-group']">
174
+ <label v-if="item.label"
175
+ :class="item.label_bootstraped?item.label_bootstraped+' control-label control-label-justify':'control-label-justify control-label col-sm-6'">{{ item.label }}</label>
176
+ <div :style="item.value_style ? item.value_style:''"
177
+ :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-6'">
178
+ <label class="checkbox-inline" v-for="(index2,row) in item.options">
179
+ <input type="checkbox" class=""
180
+ :readonly="data.fields[index].readonly"
181
+ :disabled="data.fields[index].disabled"
182
+ v-model="data.fields[index].value"
183
+ :value="data.fields[index].options[index2].value"
184
+ @change="onchange(index)"
185
+ @blur="onblur(index)">
186
+ {{ row.label }}
187
+ </label>
188
+ </div>
189
+ </div>
190
+
191
+ <!--button-->
192
+ <div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
193
+ v-if="item.type==='button'"
194
+ :class="[item.required && !(item.value) ? 'has-error' : '',item.bootstraped ? item.bootstraped + ' form-group':'col-sm-4 form-group']">
195
+ <div :style="item.value_style ? item.value_style:''"
196
+ :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-6'">
197
+ <button class="button_search button_spacing" :style="item.button_styles" @click.prevent="printclick(index)" :hidden="item.hidden">
198
+ {{ item.name }}
199
+ </button>
200
+ </div>
189
201
  </div>
190
202
  </div>
191
- </div>
192
- <!--区域地址联动-->
193
- <div>
194
- <res-area-select-group
203
+ <!--区域地址联动-->
204
+ <div>
205
+ <res-area-select-group
206
+ v-if="(data.f_apply_type === '报警器报建' || data.f_apply_type === '工商业报警器报建') && data.defname === '工程施工' && data.title === '工程施工' && data.f_sub_state !='完工'"
207
+ labelstyle="control-label"
208
+ @shiji-select="getSelectShijiValue"
209
+ @xian-select="getSelectXianValue"
210
+ @shequ-select="getSelectShequValue"
211
+ >
212
+ </res-area-select-group>
213
+ </div>
214
+
215
+ <gaode-map
195
216
  v-if="(data.f_apply_type === '报警器报建' || data.f_apply_type === '工商业报警器报建') && data.defname === '工程施工' && data.title === '工程施工' && data.f_sub_state !='完工'"
196
- labelstyle = "control-label"
197
- @shiji-select = "getSelectShijiValue"
198
- @xian-select = "getSelectXianValue"
199
- @shequ-select = "getSelectShequValue"
200
217
  >
201
- </res-area-select-group>
218
+
219
+ </gaode-map>
220
+
202
221
  </div>
203
222
 
204
- <gaode-map
205
- v-if="(data.f_apply_type === '报警器报建' || data.f_apply_type === '工商业报警器报建') && data.defname === '工程施工' && data.title === '工程施工' && data.f_sub_state !='完工'"
206
- >
207
-
208
- </gaode-map>
209
-
210
- </div>
211
-
212
- <!-- onetomany -->
213
- <div class="" v-for="(index,item) in data.onetomany">
214
- <onetomany :selectdata="data" :onetomany="item" :index="index" v-if="item.device === 'pc' || !item.device"></onetomany>
215
- </div>
216
-
217
- <div v-for="(i,item) in data.components">
218
- <component v-if="item.device === 'pc' || !item.device" :is="item.name" :selectdata="data" :mark="item.mark"></component>
219
- </div>
220
-
221
- <!--自定义组件-->
222
- <slot>
223
- <!--<div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"-->
224
- <!-- v-if="data.f_apply_type === '报警器报建' && data.defname === '工程施工'"-->
225
- <!-- :class="[$v.f_idnumber2.identityCardValid ? 'has-error' : '',item.bootstraped ? item.bootstraped + ' form-group':'col-sm-4 form-group']">-->
226
-
227
- <!--<div class="col-sm-6 form-group "-->
228
- <!-- :class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">-->
229
- <!-- <label class="font_normal_body">省&ensp;市&ensp;区</label>-->
230
- <!-- <input type="text" style="width:41%" v-show="false" v-model="model.f_pcd_id"-->
231
- <!-- v-validate:f_pcd_id='{required: true }'-->
232
- <!-- >-->
233
-
234
- <!-- <v-select :value.sync="model.f_pcd_id" :value-single="true"-->
235
- <!-- :options='pcdslist' placeholder='请选择2'-->
236
- <!-- close-on-select search="true" @change="pcdChange">-->
237
- <!-- </v-select>-->
238
- <!--</div>-->
239
- <!--<div class="col-sm-6 form-group "-->
240
- <!-- :class="[$v.f_street_id.required ? 'has-error' : 'has-success']">-->
241
- <!-- <label class="font_normal_body">街道/乡镇</label>-->
242
- <!-- <input type="text" style="width:41%" v-show="false" v-model="model.f_street_id"-->
243
- <!-- >-->
244
- <!-- <v-select :value.sync="model.f_street_id" :value-single="true"-->
245
- <!-- :options='streetslist' placeholder='请选择'-->
246
- <!-- @change="streetChange"-->
247
- <!-- close-on-select search="true">-->
248
- <!-- </v-select>-->
249
-
250
- <!--</div>-->
251
- <!--<div class="col-sm-6 form-group "-->
252
- <!-- :class="[$v.f_residential_area_id.required ? 'has-error' : 'has-success']">-->
253
- <!-- <label class="font_normal_body">集收单位</label>-->
254
- <!-- <input type="text" style="width:41%" v-show="false" v-model="model.f_residential_area_id"-->
255
- <!-- v-validate:f_residential_area_id='{required: true }'>-->
256
- <!-- <v-select :value.sync="model.f_residential_area_id" :value-single="true"-->
257
- <!-- :options='areaslist' placeholder='请选择'-->
258
- <!-- @change="" @select-search="selectSearch"-->
259
- <!-- close-on-select search="true">-->
260
- <!-- </v-select>-->
261
- <!--</div>-->
262
- <!--</div>-->
263
- </slot>
264
- <!--公司等属性-->
265
- <div class="col-sm-12 form-group text-center" style="padding-top:8px">
266
- <div class="col-sm-3 form-group center-block">
267
- <label class="col-sm-5">所属公司:</label>
268
- <div class="col-sm-6" style="text-align: left">
269
- {{model.orgs}}
270
- </div>
223
+ <!-- onetomany -->
224
+ <div class="" v-for="(index,item) in data.onetomany">
225
+ <onetomany :selectdata="data" :onetomany="item" :index="index"
226
+ v-if="item.device === 'pc' || !item.device"></onetomany>
271
227
  </div>
272
- <div class="col-sm-3 form-group center-block">
273
- <label class="col-sm-5">部门:</label>
274
- <div class="col-sm-6" style="text-align: left">
275
- {{model.parentname}}
276
- </div>
228
+
229
+ <div v-for="(i,item) in data.components">
230
+ <component v-if="item.device === 'pc' || !item.device" :is="item.name" :selectdata="data"
231
+ :mark="item.mark"></component>
277
232
  </div>
278
- <div class="col-sm-3 form-group center-block">
279
- <label class="col-sm-5">操作人:</label>
280
- <div class="col-sm-6 " style="text-align: left">
281
- {{model.operator}}
233
+
234
+ <!--自定义组件-->
235
+ <slot>
236
+ <!--<div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"-->
237
+ <!-- v-if="data.f_apply_type === '报警器报建' && data.defname === '工程施工'"-->
238
+ <!-- :class="[$v.f_idnumber2.identityCardValid ? 'has-error' : '',item.bootstraped ? item.bootstraped + ' form-group':'col-sm-4 form-group']">-->
239
+
240
+ <!--<div class="col-sm-6 form-group "-->
241
+ <!-- :class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">-->
242
+ <!-- <label class="font_normal_body">省&ensp;市&ensp;区</label>-->
243
+ <!-- <input type="text" style="width:41%" v-show="false" v-model="model.f_pcd_id"-->
244
+ <!-- v-validate:f_pcd_id='{required: true }'-->
245
+ <!-- >-->
246
+
247
+ <!-- <v-select :value.sync="model.f_pcd_id" :value-single="true"-->
248
+ <!-- :options='pcdslist' placeholder='请选择2'-->
249
+ <!-- close-on-select search="true" @change="pcdChange">-->
250
+ <!-- </v-select>-->
251
+ <!--</div>-->
252
+ <!--<div class="col-sm-6 form-group "-->
253
+ <!-- :class="[$v.f_street_id.required ? 'has-error' : 'has-success']">-->
254
+ <!-- <label class="font_normal_body">街道/乡镇</label>-->
255
+ <!-- <input type="text" style="width:41%" v-show="false" v-model="model.f_street_id"-->
256
+ <!-- >-->
257
+ <!-- <v-select :value.sync="model.f_street_id" :value-single="true"-->
258
+ <!-- :options='streetslist' placeholder='请选择'-->
259
+ <!-- @change="streetChange"-->
260
+ <!-- close-on-select search="true">-->
261
+ <!-- </v-select>-->
262
+
263
+ <!--</div>-->
264
+ <!--<div class="col-sm-6 form-group "-->
265
+ <!-- :class="[$v.f_residential_area_id.required ? 'has-error' : 'has-success']">-->
266
+ <!-- <label class="font_normal_body">集收单位</label>-->
267
+ <!-- <input type="text" style="width:41%" v-show="false" v-model="model.f_residential_area_id"-->
268
+ <!-- v-validate:f_residential_area_id='{required: true }'>-->
269
+ <!-- <v-select :value.sync="model.f_residential_area_id" :value-single="true"-->
270
+ <!-- :options='areaslist' placeholder='请选择'-->
271
+ <!-- @change="" @select-search="selectSearch"-->
272
+ <!-- close-on-select search="true">-->
273
+ <!-- </v-select>-->
274
+ <!--</div>-->
275
+ <!--</div>-->
276
+ </slot>
277
+ <!--公司等属性-->
278
+ <div class="col-sm-12 form-group text-center" style="padding-top:8px">
279
+ <div class="col-sm-3 form-group center-block">
280
+ <label class="col-sm-5">所属公司:</label>
281
+ <div class="col-sm-6" style="text-align: left">
282
+ {{ model.orgs }}
283
+ </div>
282
284
  </div>
283
- </div>
284
- <div class="col-sm-3 form-group center-block">
285
- <label class="col-sm-5">操作日期:</label>
286
- <div class="col-sm-6" style="text-align: left">
287
- {{model.operate_date}}
285
+ <div class="col-sm-3 form-group center-block">
286
+ <label class="col-sm-5">部门:</label>
287
+ <div class="col-sm-6" style="text-align: left">
288
+ {{ model.parentname }}
289
+ </div>
290
+ </div>
291
+ <div class="col-sm-3 form-group center-block">
292
+ <label class="col-sm-5">操作人:</label>
293
+ <div class="col-sm-6 " style="text-align: left">
294
+ {{ model.operator }}
295
+ </div>
296
+ </div>
297
+ <div class="col-sm-3 form-group center-block">
298
+ <label class="col-sm-5">操作日期:</label>
299
+ <div class="col-sm-6" style="text-align: left">
300
+ {{ model.operate_date }}
301
+ </div>
288
302
  </div>
289
303
  </div>
290
- </div>
291
- <!-- 按钮组 -->
292
- <div class="from-group col-sm-12 text-center">
293
304
  <!-- 按钮组 -->
294
- <button v-for="(index,button) in data.buttons"
295
- :disabled="(button.disabled && disable_button)"
296
- style="min-width:100px"
297
- :class="button.disabled && disable_button ? 'btn btn-default button_spacing' : 'btn btn-primary button_spacing'"
298
- v-if="!button.hidden && button.button_name !=='提交'&& button.button_name !=='确认'"
299
- @click.prevent="click_but(button)"
300
- >
301
- {{button.button_name}}
302
- </button>
303
- <button v-for="(index,button) in data.buttons"
304
- :disabled="(button.disabled && disable_button) || (!$v.valid)"
305
- style="min-width:100px"
306
- :class="button.disabled && disable_button || (!$v.valid) ? 'btn btn-default button_spacing' : 'btn btn-primary button_spacing'"
307
- v-if="!button.hidden && (button.button_name ==='提交'||button.button_name ==='确认')"
308
- @click.prevent="click_but(button)"
309
- >
310
- {{button.button_name}}
311
- </button>
312
- </div>
313
-
314
- <!-- 按钮模态框 -->
315
- <modal v-if="showButModal" :show.sync="showButModal" backdrop="false" large>
316
- <header slot="modal-header" class="modal-header">
317
- <button type="button" class="close" @click="closeModal()"><span>&times;</span></button>
318
- <span class="modal-title"><font
319
- size="3">{{data.button.button_name}}</font></span>
320
- </header>
321
- <article slot="modal-body" class="modal-body clearfix">
322
- <div class="form-group" style="padding: 0 150px">
323
- <div v-for="(index,item) in data.button.button_fields">
324
- <div :style="item.style ? item.style : ''" :class="[item.required && !(item.value) ? 'has-error' : '', item.bootstraped ? item.bootstraped + ' form-group' : 'form-group']"
325
- v-if="(item.type==='input' || item.type==='number'||item.type === 'tel'||item.type === 'email') && !item.hidden && (item.device === 'pc' || !item.device)">
326
- <label :style="item.label_style ? item.label_style : ''"
327
- :class="item.label_bootstraped ? item.label_bootstraped + ' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{item.label}}</label>
328
- <div :style="item.value_style ? item.value_style : ''"
329
- :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-9'">
330
- <input class="form-control input_view"
331
- :placeholder="item.placeholder"
332
- :type="item.type"
333
- v-model="item.value"
334
- :value="item.value"
335
- :readonly="item.readonly"
336
- :disabled="item.disabled"
337
- @change="onbutchange(index)"
338
- @blur="onbutblur(index)"
339
- @input="onbutinput(index)"
340
- />
305
+ <div class="from-group col-sm-12 text-center">
306
+ <!-- 按钮组 -->
307
+ <button v-for="(index,button) in data.buttons"
308
+ :disabled="(button.disabled && disable_button)"
309
+ style="min-width:100px"
310
+ :class="button.disabled && disable_button ? 'btn btn-default button_spacing' : 'btn btn-primary button_spacing'"
311
+ v-if="!button.hidden && button.button_name !=='提交'&& button.button_name !=='确认'"
312
+ @click.prevent="click_but(button)"
313
+ >
314
+ {{ button.button_name }}
315
+ </button>
316
+ <button v-for="(index,button) in data.buttons"
317
+ :disabled="(button.disabled && disable_button) || (!$v.valid)"
318
+ style="min-width:100px"
319
+ :class="button.disabled && disable_button || (!$v.valid) ? 'btn btn-default button_spacing' : 'btn btn-primary button_spacing'"
320
+ v-if="!button.hidden && (button.button_name ==='提交'||button.button_name ==='确认')"
321
+ @click.prevent="click_but(button)"
322
+ >
323
+ {{ button.button_name }}
324
+ </button>
325
+ </div>
326
+
327
+ <!-- 按钮模态框 -->
328
+ <modal v-if="showButModal" :show.sync="showButModal" backdrop="false" large>
329
+ <header slot="modal-header" class="modal-header">
330
+ <button type="button" class="close" @click="closeModal()"><span>&times;</span></button>
331
+ <span class="modal-title"><font
332
+ size="3">{{ data.button.button_name }}</font></span>
333
+ </header>
334
+ <article slot="modal-body" class="modal-body clearfix">
335
+ <div class="form-group" style="padding: 0 150px">
336
+ <div v-for="(index,item) in data.button.button_fields">
337
+ <div :style="item.style ? item.style : ''"
338
+ :class="[item.required && !(item.value) ? 'has-error' : '', item.bootstraped ? item.bootstraped + ' form-group' : 'form-group']"
339
+ v-if="(item.type==='input' || item.type==='number'||item.type === 'tel'||item.type === 'email') && !item.hidden && (item.device === 'pc' || !item.device)">
340
+ <label :style="item.label_style ? item.label_style : ''"
341
+ :class="item.label_bootstraped ? item.label_bootstraped + ' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{ item.label }}</label>
342
+ <div :style="item.value_style ? item.value_style : ''"
343
+ :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-9'">
344
+ <input class="form-control input_view"
345
+ :placeholder="item.placeholder"
346
+ :type="item.type"
347
+ v-model="item.value"
348
+ :value="item.value"
349
+ :readonly="item.readonly"
350
+ :disabled="item.disabled"
351
+ @change="onbutchange(index)"
352
+ @blur="onbutblur(index)"
353
+ @input="onbutinput(index)"
354
+ />
355
+ </div>
341
356
  </div>
342
- </div>
343
357
 
344
- <!--时间datepicker-->
345
- <div :style="item.style ? item.style : ''" :class="[item.required && !(item.value) ? 'has-error' : '', item.bootstraped ? item.bootstraped + ' form-group':'form-group']"
346
- v-if="item.type==='datepicker' && !item.hidden && (item.device === 'pc' || !item.device)">
347
- <label :style="item.label_style ? item.label_style : ''"
348
- :class="item.label_bootstraped ? item.label_bootstraped + ' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{item.label}}</label>
349
- <div :style="item.value_style ? item.value_style : ''"
350
- :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-9'">
351
- <datepicker
352
- :placeholder="item.placeholder"
353
- :value.sync="item.value"
354
- v-model="item.value"
355
- :readonly="item.readonly"
356
- :disabled="item.disabled"
357
- :format="item.format ? item.format : 'yyyy-MM-dd'"
358
- :show-reset-button="true"
359
- @change="onbutchange(index)"
360
- @blur="onbutblur(index)"
361
- ></datepicker>
358
+ <!--时间datepicker-->
359
+ <div :style="item.style ? item.style : ''"
360
+ :class="[item.required && !(item.value) ? 'has-error' : '', item.bootstraped ? item.bootstraped + ' form-group':'form-group']"
361
+ v-if="item.type==='datepicker' && !item.hidden && (item.device === 'pc' || !item.device)">
362
+ <label :style="item.label_style ? item.label_style : ''"
363
+ :class="item.label_bootstraped ? item.label_bootstraped + ' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{ item.label }}</label>
364
+ <div :style="item.value_style ? item.value_style : ''"
365
+ :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-9'">
366
+ <datepicker
367
+ :placeholder="item.placeholder"
368
+ :value.sync="item.value"
369
+ v-model="item.value"
370
+ :readonly="item.readonly"
371
+ :disabled="item.disabled"
372
+ :format="item.format ? item.format : 'yyyy-MM-dd'"
373
+ :show-reset-button="true"
374
+ @change="onbutchange(index)"
375
+ @blur="onbutblur(index)"
376
+ ></datepicker>
377
+ </div>
362
378
  </div>
363
- </div>
364
379
 
365
- <!--select-->
366
- <div :style="item.style ? item.style : ''" :class="[item.required && !(item.value) ? 'has-error' : '', item.bootstraped ? item.bootstraped + ' form-group':'form-group']"
367
- v-if="item.type==='select' && !item.hidden && (item.device === 'pc' || !item.device)">
368
- <label :style="item.label_style ? item.label_style : ''"
369
- :class="item.label_bootstraped ? item.label_bootstraped + ' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{item.label}}</label>
370
- <div :style="item.value_style ? item.value_style : ''"
371
- :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-9'">
372
- <input-select
373
- class="select select_list"
374
- :value.sync="item.value"
375
- v-model="item.value"
376
- :options='item.options'
377
- :readonly="item.readonly"
378
- :disable="item.disabled"
379
- :valueSingle="true"
380
- @blur="onbutblur(index)"
381
- @change="onbutchange(index)"
382
- ></input-select>
380
+ <!--select-->
381
+ <div :style="item.style ? item.style : ''"
382
+ :class="[item.required && !(item.value) ? 'has-error' : '', item.bootstraped ? item.bootstraped + ' form-group':'form-group']"
383
+ v-if="item.type==='select' && !item.hidden && (item.device === 'pc' || !item.device)">
384
+ <label :style="item.label_style ? item.label_style : ''"
385
+ :class="item.label_bootstraped ? item.label_bootstraped + ' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{ item.label }}</label>
386
+ <div :style="item.value_style ? item.value_style : ''"
387
+ :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-9'">
388
+ <input-select
389
+ class="select select_list"
390
+ :value.sync="item.value"
391
+ v-model="item.value"
392
+ :options='item.options'
393
+ :readonly="item.readonly"
394
+ :disable="item.disabled"
395
+ :valueSingle="true"
396
+ @blur="onbutblur(index)"
397
+ @change="onbutchange(index)"
398
+ ></input-select>
399
+ </div>
383
400
  </div>
384
- </div>
385
401
 
386
- <!--textarea-->
387
- <div :style="item.style ? item.style : ''" :class="[item.required && !(item.value) ? 'has-error' : '', item.bootstraped ? item.bootstraped + ' form-group':'form-group']"
388
- v-if="item.type==='textarea' && !item.hidden && (item.device === 'pc' || !item.device)">
389
- <label :style="item.label_style ? item.label_style : ''"
390
- :class="item.label_bootstraped ? item.label_bootstraped + ' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{item.label}}</label>
391
- <div :style="item.value_style ? item.value_style : ''"
392
- :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-9'">
402
+ <!--textarea-->
403
+ <div :style="item.style ? item.style : ''"
404
+ :class="[item.required && !(item.value) ? 'has-error' : '', item.bootstraped ? item.bootstraped + ' form-group':'form-group']"
405
+ v-if="item.type==='textarea' && !item.hidden && (item.device === 'pc' || !item.device)">
406
+ <label :style="item.label_style ? item.label_style : ''"
407
+ :class="item.label_bootstraped ? item.label_bootstraped + ' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{ item.label }}</label>
408
+ <div :style="item.value_style ? item.value_style : ''"
409
+ :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-9'">
393
410
  <textarea
394
411
  class="form-control input_view"
395
412
  style="width: 100%;height: 100%"
@@ -402,41 +419,56 @@
402
419
  @blur="onbutblur(index)"
403
420
  @input="onbutinput(index)"
404
421
  ></textarea>
422
+ </div>
405
423
  </div>
406
424
  </div>
407
425
  </div>
408
- </div>
426
+ </article>
427
+ <footer slot="modal-footer" class="modal-footer">
428
+ <button :class="disable_modal_button ? 'btn btn-default':'btn btn-primary'"
429
+ :disabled="disable_modal_button" type="button" @click="confirmModal()">
430
+ 确认
431
+ </button>
432
+ </footer>
433
+ </modal>
434
+ </form>
435
+ <modal v-if="showModal" :show.sync="showModal" cancel-text="取消"
436
+ ok-text="确认">
437
+ <div class="form-horizontal" slot="modal-body">
438
+ <!-- table表格,标题为勘察结果,勘察时间-->
439
+ <table class="table table-bordered table-hover table-striped">
440
+ <thead>
441
+ <tr>
442
+ <th>序号</th>
443
+ <th>勘察结果</th>
444
+ <th>勘察时间</th>
445
+ </tr>
446
+ </thead>
447
+ <tbody>
448
+ <tr v-for="(index,item) in exdata">
449
+ <td :style="{ textAlign: 'center' }">{{ index * 1 + 1 }}</td>
450
+ <td :style="{ textAlign: 'center' }">{{ item.f_exploration_result }}</td>
451
+ <td :style="{ textAlign: 'center' }">{{ item.f_time }}</td>
452
+ </tr>
453
+ </tbody>
454
+ </table>
455
+ </div>
456
+ </modal>
457
+ <modal v-if="showPrint" :show.sync="showPrint" v-ref:modal :large="true" :backdrop="false" title="打印预览">
458
+ <header slot="modal-header" class="modal-header">
459
+ <button type="button" class="close" @click="closePrint"><span>&times;</span></button>
460
+ <h4 class="modal-title">打印预览</h4>
461
+ </header>
462
+ <article slot="modal-body" class="modal-body clearfix">
463
+ <!--开通卡-->
464
+ <apply-print-activatecard :selectdata="data" :billnum="billnum" v-ref:print v-if="data.defname === '营业厅缴费'"></apply-print-activatecard>
465
+ <!--安装卡-->
466
+ <apply-print-install :name="name" :selectdata="data" :billnum="billnum" v-ref:print v-if="(data.f_apply_type === '散户报建' && data.defname === '报装缴费') || (data.f_apply_type === '改装报建' && data.defname === '报装缴费') "></apply-print-install>
409
467
  </article>
410
468
  <footer slot="modal-footer" class="modal-footer">
411
- <button :class="disable_modal_button ? 'btn btn-default':'btn btn-primary'"
412
- :disabled="disable_modal_button" type="button" @click="confirmModal()">
413
- 确认
414
- </button>
469
+ <button :disabled="!billnum.isOk" type="button" class="btn btn-primary" @click="print()">打印</button>
415
470
  </footer>
416
471
  </modal>
417
- </form>
418
- <modal v-if="showModal" :show.sync="showModal" cancel-text="取消"
419
- ok-text="确认">
420
- <div class="form-horizontal" slot="modal-body">
421
- <!-- table表格,标题为勘察结果,勘察时间-->
422
- <table class="table table-bordered table-hover table-striped">
423
- <thead>
424
- <tr>
425
- <th>序号</th>
426
- <th>勘察结果</th>
427
- <th>勘察时间</th>
428
- </tr>
429
- </thead>
430
- <tbody>
431
- <tr v-for="(index,item) in exdata" >
432
- <td :style="{ textAlign: 'center' }">{{index*1+1}}</td>
433
- <td :style="{ textAlign: 'center' }">{{item.f_exploration_result}}</td>
434
- <td :style="{ textAlign: 'center' }">{{item.f_time}}</td>
435
- </tr>
436
- </tbody>
437
- </table>
438
- </div>
439
- </modal>
440
472
  </div>
441
473
  </template>
442
474
  <script>
@@ -470,10 +502,13 @@ export default {
470
502
  },
471
503
  data () {
472
504
  return {
473
- showModal:false,//勘察结果弹窗
505
+ name:'',
506
+ billnum:{}, // 发票号
507
+ showPrint: false, // 打印控件
508
+ showModal: false,//勘察结果弹窗
474
509
  exdata: [],//勘察结果数据
475
510
  model: {}, // 公司等属性
476
- exploration:false,//勘察结果按钮显示
511
+ exploration: false,//勘察结果按钮显示
477
512
  disable_button: true, // 控制按钮禁用
478
513
  disable_modal_button: true, // 控制按钮禁用
479
514
  //初始化省市区数据
@@ -483,46 +518,44 @@ export default {
483
518
  //初始化街道数据
484
519
  areaslist: [],
485
520
  showButModal: false,
486
- areaData:{
487
- sjvalue:'',
488
- xianvalue:'',
489
- sqvalue:'',
521
+ areaData: {
522
+ sjvalue: '',
523
+ xianvalue: '',
524
+ sqvalue: ''
490
525
  },
491
526
  templatlng: {
492
- gaodetemplng: "",
493
- gaodetemplat: "",
494
- baidutemplng: "",
495
- baidutemplat: ""
527
+ gaodetemplng: '',
528
+ gaodetemplat: '',
529
+ baidutemplng: '',
530
+ baidutemplat: ''
496
531
  }
497
532
  }
498
533
  },
499
534
  watch: {
500
535
  deep: true
501
536
  },
502
- computed: {
503
-
504
- },
537
+ computed: {},
505
538
  ready () {
506
- if(this.data.defname=='部门领导审核') {
539
+ if (this.data.defname == '部门领导审核') {
507
540
  let http = new HttpResetClass()
508
541
  let res = http.load(
509
542
  'POST',
510
543
  `rs/sql/exploration`,
511
544
  {
512
545
  data: {
513
- id: this.data.f_process_id,
546
+ id: this.data.f_process_id
514
547
  }
515
548
  },
516
549
  {resolveMsg: null, rejectMsg: '勘察结果查询失败!!!'}
517
- ).then(value =>{
550
+ ).then(value => {
518
551
  //遍历value.data数组
519
- for(let i=0;i<value.data.length;i++){
552
+ for (let i = 0; i < value.data.length; i++) {
520
553
  // value.data[i].f_time=new Date(value.data[i].f_time).Format("yyyy-MM-dd HH:mm:ss")
521
554
  //将数组中的每一个对象赋值给exdata
522
555
  this.exdata.push(value.data[i])
523
556
  }
524
- if(value.data.length>1){
525
- this.exploration=true
557
+ if (value.data.length > 1) {
558
+ this.exploration = true
526
559
  }
527
560
  })
528
561
 
@@ -537,8 +570,8 @@ export default {
537
570
  this.$dispatch('initializtionView')
538
571
  },
539
572
  methods: {
540
- showModle(){
541
- this.showModal=true
573
+ showModle () {
574
+ this.showModal = true
542
575
  },
543
576
  // 初始化数据
544
577
  initializtion () {
@@ -572,32 +605,32 @@ export default {
572
605
 
573
606
  this.initpcds(` j_orgid = '${this.$login.f.orgid}'`)
574
607
  },
575
- async getSelectShijiValue(sjvalue,sjlable) {
608
+ async getSelectShijiValue (sjvalue, sjlable) {
576
609
  this.areaData.sjvalue = sjvalue
577
- console.log("这是父级接收的市级值:",sjvalue,sjlable)
610
+ console.log('这是父级接收的市级值:', sjvalue, sjlable)
578
611
  this.data.areaData = this.areaData
579
612
 
580
613
  // 是否禁用按钮
581
614
  this.disableButton()
582
615
  },
583
- async getSelectXianValue(xianvalue,xianlable) {
616
+ async getSelectXianValue (xianvalue, xianlable) {
584
617
  this.areaData.xianvalue = xianvalue
585
618
  this.data.areaData = this.areaData
586
- console.log("这是父级接收的县级值:",xianvalue,xianlable)
619
+ console.log('这是父级接收的县级值:', xianvalue, xianlable)
587
620
 
588
621
  // 是否禁用按钮
589
622
  this.disableButton()
590
623
  },
591
- async getSelectShequValue(sqvalue,sqlable) {
624
+ async getSelectShequValue (sqvalue, sqlable) {
592
625
  this.areaData.sqvalue = sqvalue
593
626
  this.data.areaData = this.areaData
594
- console.log("这是父级接收的社区值:",sqvalue,sqlable)
627
+ console.log('这是父级接收的社区值:', sqvalue, sqlable)
595
628
 
596
629
  // 是否禁用按钮
597
630
  this.disableButton()
598
631
  },
599
632
  //初始化省市区,添加街道
600
- async initpcds(pconditon) {
633
+ async initpcds (pconditon) {
601
634
  // console.log('initpcds', pconditon)
602
635
  // this.pcdslist = []
603
636
  // let HttpReset = new HttpResetClass()
@@ -622,7 +655,7 @@ export default {
622
655
  // this.pcdslist = redata
623
656
  },
624
657
  //初始化街道 添加小区
625
- async initstreets(pconditon) {
658
+ async initstreets (pconditon) {
626
659
  // console.log('市区32', pconditon)
627
660
  // this.streetslist = []
628
661
  // let HttpReset = new HttpResetClass()
@@ -648,7 +681,7 @@ export default {
648
681
  // this.model.f_iscity = this.findbyid(this.streetslist, this.model.f_street_id).f_iscity
649
682
  },
650
683
  //初始化小区添加小区
651
- async initareas(pconditon) {
684
+ async initareas (pconditon) {
652
685
  // if(this.usertype){
653
686
  // pconditon=pconditon+` and f_special='1' `
654
687
  // }
@@ -677,7 +710,7 @@ export default {
677
710
  // }
678
711
  },
679
712
  //省/市/区变化
680
- async pcdChange(val) {
713
+ async pcdChange (val) {
681
714
 
682
715
  // console.log("省/市/区变化", val)
683
716
  // console.log("省/市/区变化", ` f_pcd_id ='${val}' `)
@@ -714,7 +747,7 @@ export default {
714
747
  // this.$resetValidation()
715
748
  },
716
749
  //街道变化
717
- async streetChange(val) {
750
+ async streetChange (val) {
718
751
  // console.log("街道变化", val)
719
752
  // if (this.streetslist[0]) {
720
753
  // var street = ''
@@ -761,21 +794,21 @@ export default {
761
794
  }
762
795
 
763
796
  //区域下拉框必选 流程模式为报警器报建
764
- if ((this.data.f_apply_type === '报警器报建' || this.data.f_apply_type === '工商业报警器报建') && this.data.defname === '工程施工' && this.data.title === '工程施工' && this.data.f_sub_state !='完工'){
765
- if (!flag){
766
- if (this.areaData.sjvalue ==null || this.areaData.sjvalue.length ==0 || this.areaData.sqvalue == null || this.areaData.sqvalue.length ==0
767
- || this.areaData.xianvalue == null || this.areaData.xianvalue.length == 0){
768
- console.log("区域为空禁止提交:",this.areaData)
769
- flag = true
770
- }
771
-
772
- if (this.templatlng.baidutemplat ==null || this.templatlng.baidutemplat.length ==0 || this.templatlng.baidutemplng == null || this.templatlng.baidutemplng.length ==0
773
- || this.templatlng.gaodetemplat == null || this.templatlng.gaodetemplat.length == 0 || this.templatlng.gaodetemplng == null || this.templatlng.gaodetemplng.length == 0){
774
- console.log("地图坐标为空禁止提交:",this.templatlng)
775
- flag = true
776
- }
777
- }
778
- }
797
+ if ((this.data.f_apply_type === '报警器报建' || this.data.f_apply_type === '工商业报警器报建') && this.data.defname === '工程施工' && this.data.title === '工程施工' && this.data.f_sub_state != '完工') {
798
+ if (!flag) {
799
+ if (this.areaData.sjvalue == null || this.areaData.sjvalue.length == 0 || this.areaData.sqvalue == null || this.areaData.sqvalue.length == 0
800
+ || this.areaData.xianvalue == null || this.areaData.xianvalue.length == 0) {
801
+ console.log('区域为空禁止提交:', this.areaData)
802
+ flag = true
803
+ }
804
+
805
+ if (this.templatlng.baidutemplat == null || this.templatlng.baidutemplat.length == 0 || this.templatlng.baidutemplng == null || this.templatlng.baidutemplng.length == 0
806
+ || this.templatlng.gaodetemplat == null || this.templatlng.gaodetemplat.length == 0 || this.templatlng.gaodetemplng == null || this.templatlng.gaodetemplng.length == 0) {
807
+ console.log('地图坐标为空禁止提交:', this.templatlng)
808
+ flag = true
809
+ }
810
+ }
811
+ }
779
812
  this.disable_button = flag
780
813
  },
781
814
  // 失去焦点且值最终发生变化触发
@@ -824,7 +857,7 @@ export default {
824
857
  }
825
858
  this.$dispatch('oninput', index)
826
859
  },
827
- selectSearch(event, index) {
860
+ selectSearch (event, index) {
828
861
  if (this.data.fields[index].selectSearch) {
829
862
  this.$dispatch(this.data.fields[index].selectSearch, event[0], index)
830
863
  }
@@ -907,7 +940,6 @@ export default {
907
940
  disableModalButton () {
908
941
  let flag = false
909
942
 
910
-
911
943
  for (const item of this.data.button.button_fields) {
912
944
  if (item.required && !item.value) {
913
945
  if (item.value === 0) {
@@ -953,60 +985,112 @@ export default {
953
985
  }
954
986
  }
955
987
  }
988
+ },
989
+ printclick (index) {
990
+ this.showPrint = true
991
+ this.getbillnum()
992
+ this.name = this.data.fields[index].name.substring(2)
993
+ },
994
+ closePrint () {
995
+ this.showPrint = false
996
+ },
997
+ print () {
998
+ this.$refs.print.$refs.print.PrintTable()
999
+ // 保存票据号
1000
+ let data = {
1001
+ f_userinfo_id: this.selectdata.f_userinfo_id,
1002
+ f_user_id: this.selectdata.f_user_id,
1003
+ f_user_name: this.selectdata.f_user_name,
1004
+ f_charge_id: this.charge.id,//收费记录id
1005
+ f_type: '报建收费',
1006
+ f_using_bill: {
1007
+ number: this.billnum.bill.number,
1008
+ id: this.billnum.bill.id
1009
+ },
1010
+ f_biL_type: '正常',
1011
+ f_biLl_state: '有效',
1012
+ f_operator: this.$login.f.f_operator,
1013
+ f_operate_date: this.$login.f.f_operate_date,
1014
+ f_orgid: this.$login.f.f_orgid,
1015
+ f_orgname: this.$login.f.f_orgname,
1016
+ f_depid: this.$login.f.f_depid,
1017
+ f_depname: this.$login.f.f_depname,
1018
+ f_operatorid: this.$login.f.f_operatorid
1019
+ }
1020
+ let http = new HttpResetClass()
1021
+ http.load('post', 'rs/logic/sale_billReprint', data, {resolveMsg: null, rejectMsg: null})
1022
+
1023
+ },
1024
+ // 获取发票号
1025
+ getbillnum () {
1026
+ // 获取票据号
1027
+ let data = {
1028
+ f_bill_user: this.$login.f.name, // 票据使用人
1029
+ f_bill_type: '国税发票', // 票据类型
1030
+ f_orgid: this.$login.f.orgid,
1031
+ f_use_type: '新装开户费' // 票据使用类型(燃气费、其他费用等)可不传
1032
+ }
1033
+ let http = new HttpResetClass()
1034
+ http.load('post', 'rs/logic/sale_validateBill', data, {resolveMsg: null, rejectMsg: null}).then(res=>{
1035
+ this.billnum = res.data
1036
+ })
956
1037
  }
957
1038
  },
958
- events: {
959
-
960
- }
1039
+ events: {}
961
1040
  }
962
1041
  </script>
963
1042
  <style>
964
- .datepicker{
965
- width: 100%!important;
1043
+ .datepicker {
1044
+ width: 100% !important;
966
1045
  }
967
- .datepicker-input{
968
- background-color: #ffffff!important;
969
- width: 100%!important;
1046
+
1047
+ .datepicker-input {
1048
+ background-color: #ffffff !important;
1049
+ width: 100% !important;
970
1050
  }
971
- .datepicker-input:disabled{
972
- border: 1px solid #DDD!important;
973
- color: #ACA899!important;
974
- width: 100%!important;
1051
+
1052
+ .datepicker-input:disabled {
1053
+ border: 1px solid #DDD !important;
1054
+ color: #ACA899 !important;
1055
+ width: 100% !important;
975
1056
  }
976
1057
  </style>
977
1058
  <style scoped>
978
- th{
1059
+ th {
979
1060
  font-size: 15px !important;
980
1061
  text-align: center !important;
981
- background-color: #dfedfb!important;
1062
+ background-color: #dfedfb !important;
982
1063
  color: #666666 !important;
983
1064
  font-family: PINGFANG-BOLD !important;
984
- font-weight: normal!important;
1065
+ font-weight: normal !important;
985
1066
  }
1067
+
986
1068
  /*清除model中的浮动*/
987
- .clearfix:after,.clearfix:before{
1069
+ .clearfix:after, .clearfix:before {
988
1070
  display: table;
989
1071
  }
990
- .clearfix:after{
1072
+
1073
+ .clearfix:after {
991
1074
  clear: both;
992
1075
  }
993
1076
 
994
- .input_view{
1077
+ .input_view {
995
1078
  padding: 8px;
996
1079
  background-color: #ffffff;
997
1080
  border-radius: 2px;
998
- border: solid 1px #c7c7c7!important;
999
- color: #333333!important;
1000
- font-size: 15px!important;
1081
+ border: solid 1px #c7c7c7 !important;
1082
+ color: #333333 !important;
1083
+ font-size: 15px !important;
1001
1084
  }
1002
1085
 
1003
- .input_view[readonly]{
1004
- border: 1px solid #DDD!important;
1005
- color:#ACA899!important;
1086
+ .input_view[readonly] {
1087
+ border: 1px solid #DDD !important;
1088
+ color: #ACA899 !important;
1006
1089
  }
1007
- .input_view:disabled{
1008
- border: 1px solid #DDD!important;
1009
- color:#ACA899!important;
1090
+
1091
+ .input_view:disabled {
1092
+ border: 1px solid #DDD !important;
1093
+ color: #ACA899 !important;
1010
1094
  }
1011
1095
 
1012
1096
  .control-label-justify {