3f535f30
杨鑫
'初始'
|
1
2
|
<template>
<view class="page">
|
e5b57447
杨鑫
'分包问卷'
|
3
4
5
6
7
|
<view class="steps-box">
<u-steps :list="numList" :current="active"></u-steps>
</view>
<view>
<view class="add-list" v-show="active == 0">
|
2d926347
wesley88
1
|
8
9
|
<view style="padding:15px;margin-top:10px;" >
<!-- v-if="map ==0" -->
|
1dbc0b2d
wesley88
1
|
10
|
<wu-calendar :insert="true" @change="calendarChange" slideSwitchMode="horizontal" mode="range" :selected="selected" color="#3f9b6a" style="border-radius: 10px;" :data="today" :startDate="startDate"></wu-calendar>
|
0fd8b750
杨鑫
'最新落地1'
|
11
|
</view>
|
e5b57447
杨鑫
'分包问卷'
|
12
|
<u-form labelPosition="left" :model="model1" :rules="rules" ref="uForm" :labelWidth="250">
|
2d926347
wesley88
1
|
13
|
<u-form-item :required="true" label="租赁周期" prop="intendedLeaseTerm" borderBottom>
|
0fd8b750
杨鑫
'最新落地1'
|
14
|
<u-input v-model="model1.intendedLeaseTerm" type="select" placeholder="请选择上面时间" ></u-input>
|
e5b57447
杨鑫
'分包问卷'
|
15
|
</u-form-item>
|
2d926347
wesley88
1
|
16
|
<!-- <u-form-item :required="true" label="租赁周期" prop="intendedLeaseTerm" borderBottom v-else>
|
0fd8b750
杨鑫
'最新落地1'
|
17
|
<u-input v-model="model1.intendedLeaseTerm" placeholder="请输入租赁周期" ></u-input>
|
2d926347
wesley88
1
|
18
|
</u-form-item> -->
|
20f3f580
wesley88
1
|
19
|
<u-form-item :required="true" label="经营用途" prop="businessPurpose" borderBottom>
|
0fd8b750
杨鑫
'最新落地1'
|
20
|
<u-input v-model="model1.businessPurpose"></u-input>
|
e5b57447
杨鑫
'分包问卷'
|
21
22
|
</u-form-item>
</u-form>
|
3f535f30
杨鑫
'初始'
|
23
|
</view>
|
1dbc0b2d
wesley88
1
|
24
|
<view class="add-list" v-show="active == 0 && false">
|
77d98715
杨鑫
'小程序'
|
25
|
<u-form labelPosition="left" :model="model1" :rules="rules" ref="uForm" :labelWidth="250">
|
20f3f580
wesley88
1
|
26
|
<u-form-item :required="true" label="租金方案" prop="businessPurpose" borderBottom>
|
d64cd58f
wesley88
上传验收小程序
|
27
|
<u-input v-model="model1.fangan" type="select" @click="celueShow = true" placeholder='请选择类型' />
|
77d98715
杨鑫
'小程序'
|
28
|
</u-form-item>
|
d64cd58f
wesley88
上传验收小程序
|
29
30
31
32
33
|
<view style="padding: 10rpx; color: #31AA6A;font-size: 18px;">
{{zujin}}
</view>
<u-form-item v-if="zhengce" label="优惠政策" prop="intendedLeaseTerm" borderBottom>
|
77d98715
杨鑫
'小程序'
|
34
35
|
<u-parse :html="zhengce"></u-parse>
</u-form-item>
|
d64cd58f
wesley88
上传验收小程序
|
36
37
|
<u-form-item v-if="shuoming" label="其他说明" prop="operatingEntity" borderBottom>
|
77d98715
杨鑫
'小程序'
|
38
39
40
41
|
<u-parse :html="shuoming"></u-parse>
</u-form-item>
</u-form>
</view>
|
e5b57447
杨鑫
'分包问卷'
|
42
43
|
<view class="add-list" v-show='active == 1'>
<u-form labelPosition="left" :model="model1" :rules="rules" ref="uForm" :labelWidth="250">
|
20f3f580
wesley88
1
|
44
|
<u-form-item :required="true" label="主体名称" prop="entityName" borderBottom>
|
e5b57447
杨鑫
'分包问卷'
|
45
46
|
<u-input v-model="model1.entityName"></u-input>
</u-form-item>
|
20f3f580
wesley88
1
|
47
|
<u-form-item :required="true" label="统一社会信用代码" prop="unifiedSocialCreditCode" borderBottom>
|
e5b57447
杨鑫
'分包问卷'
|
48
49
|
<u-input v-model="model1.unifiedSocialCreditCode"></u-input>
</u-form-item>
|
20f3f580
wesley88
1
|
50
|
<u-form-item :required="true" label="主体类型" prop="entityType" borderBottom>
|
e5b57447
杨鑫
'分包问卷'
|
51
52
53
|
<u-input v-model="model1.entityType" type="select" @click="typeShow = true"
placeholder='请选择类型' />
</u-form-item>
|
20f3f580
wesley88
1
|
54
|
<u-form-item :required="true" label="法定代表人" prop="legalRepresentative" borderBottom>
|
e5b57447
杨鑫
'分包问卷'
|
55
56
|
<u-input v-model="model1.legalRepresentative"></u-input>
</u-form-item>
|
20f3f580
wesley88
1
|
57
|
<u-form-item :required="true" label="经营范围" prop="businessScope" borderBottom>
|
249d13ce
杨鑫
最新
|
58
|
<u-input v-model="model1.businessScope" type="textarea"></u-input>
|
e5b57447
杨鑫
'分包问卷'
|
59
|
</u-form-item>
|
20f3f580
wesley88
1
|
60
|
<u-form-item :required="true" label="注册资本" prop="registeredCapital" borderBottom>
|
e5b57447
杨鑫
'分包问卷'
|
61
62
|
<u-input v-model="model1.registeredCapital"></u-input>
</u-form-item>
|
20f3f580
wesley88
1
|
63
|
<u-form-item :required="true" label="成立日期" prop="establishmentDate" borderBottom>
|
0fd8b750
杨鑫
'最新落地1'
|
64
65
66
67
68
|
<!-- <u-input v-model="model1.establishmentDate"></u-input> -->
<u-input v-model="model1.establishmentDate" type="select" @click="establishow = true"
placeholder="请选择" />
<u-picker mode="time" v-model="establishow" :params="params"
@confirm="establiChange"></u-picker>
|
e5b57447
杨鑫
'分包问卷'
|
69
|
</u-form-item>
|
20f3f580
wesley88
1
|
70
|
<u-form-item :required="true" label="住所" prop="residence" borderBottom>
|
249d13ce
杨鑫
最新
|
71
|
<u-input v-model="model1.residence" type="textarea"></u-input>
|
e5b57447
杨鑫
'分包问卷'
|
72
|
</u-form-item>
|
20f3f580
wesley88
1
|
73
|
<u-form-item :required="true" label="邮箱地址" prop="emailAddress" borderBottom>
|
e5b57447
杨鑫
'分包问卷'
|
74
75
|
<u-input v-model="model1.emailAddress"></u-input>
</u-form-item>
|
20f3f580
wesley88
1
|
76
|
<u-form-item :required="true" label="经营开始时间" prop="businessStartDate" borderBottom>
|
e5b57447
杨鑫
'分包问卷'
|
77
78
79
80
81
|
<u-input v-model="model1.businessStartDate" type="select" @click="busStartshow = true"
placeholder="请选择" />
<u-picker mode="time" v-model="busStartshow" :params="params"
@confirm="busStTimeChange"></u-picker>
</u-form-item>
|
20f3f580
wesley88
1
|
82
|
<u-form-item :required="true" label="经营结束时间" prop="businessEndDate" borderBottom>
|
e5b57447
杨鑫
'分包问卷'
|
83
84
85
86
87
|
<u-input v-model="model1.businessEndDate" type="select" @click="busEndtshow = true"
placeholder="请选择" />
<u-picker mode="time" v-model="busEndtshow" :params="params"
@confirm="busEndTimeChange"></u-picker>
</u-form-item>
|
20f3f580
wesley88
1
|
88
|
<u-form-item :required="true" label="营业执照" prop="businessLicense" borderBottom labelPosition="top">
|
d64cd58f
wesley88
上传验收小程序
|
89
90
|
<u-upload :action="$upload" :auto-upload="false" ref="businessLicense" :max-count="1"
@on-choose-complete="(response, file, fileList) => onsuccess1(response, file, fileList, 'businessLicense')"></u-upload>
|
e5b57447
杨鑫
'分包问卷'
|
91
92
|
</u-form-item>
</u-form>
|
3f535f30
杨鑫
'初始'
|
93
|
</view>
|
0fd8b750
杨鑫
'最新落地1'
|
94
|
<!-- <view v-show="active==2">
|
e5b57447
杨鑫
'分包问卷'
|
95
96
|
<u-form labelPosition="left" :model="model1" :rules="rules" ref="uForm" :labelWidth="250">
<view class="add-list">
|
d64cd58f
wesley88
上传验收小程序
|
97
|
<u-form-item label="*经营者姓名" prop="operatorName" borderBottom>
|
e5b57447
杨鑫
'分包问卷'
|
98
99
|
<u-input v-model="model1.operatorName"></u-input>
</u-form-item>
|
d64cd58f
wesley88
上传验收小程序
|
100
|
<u-form-item label="*证件类型" prop="idCardType" borderBottom>
|
e5b57447
杨鑫
'分包问卷'
|
101
102
103
|
<u-input v-model="model1.idCardType" type="select" @click="IdtypeShow = true"
placeholder='请选择类型' />
</u-form-item>
|
d64cd58f
wesley88
上传验收小程序
|
104
|
<u-form-item label="*身份证号码" prop="idNumber" borderBottom>
|
e5b57447
杨鑫
'分包问卷'
|
105
106
|
<u-input v-model="model1.idNumber"></u-input>
</u-form-item>
|
d64cd58f
wesley88
上传验收小程序
|
107
|
<u-form-item label="*有效开始时间" prop="idValidStart" borderBottom>
|
e5b57447
杨鑫
'分包问卷'
|
108
109
110
111
112
|
<u-input v-model="model1.idValidStart" type="select" @click="idCardStartshow = true"
placeholder="请选择" />
<u-picker mode="time" v-model="idCardStartshow" :params="params1"
@confirm="idCardStTimeChange"></u-picker>
</u-form-item>
|
d64cd58f
wesley88
上传验收小程序
|
113
|
<u-form-item label="*有效结束时间" prop="idValidEnd" borderBottom>
|
e5b57447
杨鑫
'分包问卷'
|
114
115
116
117
118
|
<u-input v-model="model1.idValidEnd" type="select" @click="idCardEndtshow = true"
placeholder="请选择" />
<u-picker mode="time" v-model="idCardEndtshow" :params="params1"
@confirm="idCardEndTimeChange"></u-picker>
</u-form-item>
|
3f535f30
杨鑫
'初始'
|
119
|
</view>
|
e5b57447
杨鑫
'分包问卷'
|
120
121
122
|
<view class="add-list">
<view class="deom-box">
<view class="img-deom">
|
d64cd58f
wesley88
上传验收小程序
|
123
124
125
|
<u-upload :action="$upload" :custom-btn="true"
@on-choose-complete="(response, file, fileList) => onsuccess1(response, file, fileList, 'idPhotoFront')"
:auto-upload="false" :max-count="1" ref="idPhotoFront">
|
e5b57447
杨鑫
'分包问卷'
|
126
127
128
129
130
131
132
133
134
|
<view slot="addBtn" class="slot-btn" hover-class="slot-btn__hover"
hover-stay-time="150">
<u-image width="304rpx" height="182rpx"
:src="$imgUrl('/uploadID1.png')"></u-image>
</view>
</u-upload>
<text>点击上传证件人像面</text>
</view>
<view class="img-deom">
|
d64cd58f
wesley88
上传验收小程序
|
135
136
137
|
<u-upload :action="$upload" :custom-btn="true"
@on-choose-complete="(response, file, fileList) => onsuccess1(response, file, fileList, 'idPhotoBack')"
:auto-upload="false" :max-count="1" ref="idPhotoBack">
|
e5b57447
杨鑫
'分包问卷'
|
138
139
140
141
142
143
144
145
146
|
<view slot="addBtn" class="slot-btn" hover-class="slot-btn__hover"
hover-stay-time="150">
<u-image width="304rpx" height="182rpx"
:src="$imgUrl('/uploadID2.png')"></u-image>
</view>
</u-upload>
<text>点击上传证件国徽面</text>
</view>
</view>
|
3f535f30
杨鑫
'初始'
|
147
|
</view>
|
e5b57447
杨鑫
'分包问卷'
|
148
149
150
151
152
153
154
155
156
157
158
159
|
<view class="add-list">
<view style="line-height: 60rpx;">上传示例</view>
<view class="deom-box">
<view class="img-deom">
<u-image width="304rpx" height="182rpx" :src="$imgUrl('/front-icon.png')"></u-image>
<text>人脸示例图</text>
</view>
<view class="img-deom">
<u-image width="304rpx" height="182rpx" :src="$imgUrl('/back-icon.png')"></u-image>
<text>国徽面示例图</text>
</view>
</view>
|
3f535f30
杨鑫
'初始'
|
160
|
</view>
|
e5b57447
杨鑫
'分包问卷'
|
161
162
163
164
|
<text
style="display: inline-block; font-size: 24rpx; line-height: 30px; margin: 24rpx 30rpx 0;">请拍摄证件原件,保证照片拍摄清晰,取图完整,不反光。</text>
<view class="add-list" labelPosition="left" :model="model1" :rules="rules" ref="uForm"
:labelWidth="250">
|
d64cd58f
wesley88
上传验收小程序
|
165
|
<u-form-item label="*是否为法人" prop="isLegalPerson" borderBottom>
|
e5b57447
杨鑫
'分包问卷'
|
166
167
168
169
170
|
<u-radio-group v-model="model1.isLegalPerson">
<u-radio :name="1">是</u-radio>
<u-radio :name="0">否</u-radio>
</u-radio-group>
</u-form-item>
|
d64cd58f
wesley88
上传验收小程序
|
171
|
<u-form-item label="*企业授权书" prop="enter" borderBottom labelPosition="top">
|
e5b57447
杨鑫
'分包问卷'
|
172
|
|
d64cd58f
wesley88
上传验收小程序
|
173
174
175
|
<u-upload :action="$upload" ref="enter" :max-count="1"
@on-choose-complete="(response, file, fileList) => onsuccess1(response, file, fileList, 'enterpriseAuthorization')"
:auto-upload="false"></u-upload>
|
e5b57447
杨鑫
'分包问卷'
|
176
|
</u-form-item>
|
3f535f30
杨鑫
'初始'
|
177
|
</view>
|
e5b57447
杨鑫
'分包问卷'
|
178
|
</u-form>
|
0fd8b750
杨鑫
'最新落地1'
|
179
|
</view> -->
|
3f535f30
杨鑫
'初始'
|
180
|
</view>
|
e5b57447
杨鑫
'分包问卷'
|
181
|
<u-select v-model="typeShow" :list="activesType" @confirm="typeChange"></u-select>
|
77d98715
杨鑫
'小程序'
|
182
|
<u-select v-model="celueShow" :list="celueType" @confirm="celueChange"></u-select>
|
e5b57447
杨鑫
'分包问卷'
|
183
|
<u-select v-model="IdtypeShow" :list="idType" @confirm="IdtypeChange"></u-select>
|
3f535f30
杨鑫
'初始'
|
184
|
<!-- 保存按钮 -->
|
e5b57447
杨鑫
'分包问卷'
|
185
186
187
|
<view class="page-footer">
<u-button style="background-color: #DFE0E4; flex: 1; margin: 0 10px;" @click="toBefor"
v-if="active != 0">上一步</u-button>
|
0fd8b750
杨鑫
'最新落地1'
|
188
189
|
<u-button type="success" style="flex: 1; margin: 0 10px;" @click="toNext" v-if="active != 1">下一步</u-button>
<u-button type="success" style="flex: 1; margin: 0 10px;" @click="go" v-if="active == 1">提交申请</u-button>
|
3f535f30
杨鑫
'初始'
|
190
191
192
193
194
195
196
197
|
</view>
</view>
</template>
<script>
export default {
data() {
return {
|
e5b57447
杨鑫
'分包问卷'
|
198
|
active: 0,
|
0fd8b750
杨鑫
'最新落地1'
|
199
200
201
202
203
204
205
|
// numList: [{
// name: '租赁信息'
// }, {
// name: '主体信息'
// }, {
// name: '经营者信息'
// }],
|
e5b57447
杨鑫
'分包问卷'
|
206
207
208
|
numList: [{
name: '租赁信息'
}, {
|
0fd8b750
杨鑫
'最新落地1'
|
209
|
name: '营业执照信息'
|
e5b57447
杨鑫
'分包问卷'
|
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
|
}],
model1: {
businessPurpose: '',
intendedLeaseTerm: '',
operatingEntity: '',
entityName: '',
unifiedSocialCreditCode: '',
entityType: '',
legalRepresentative: '',
businessScope: '',
registeredCapital: '',
establishmentDate: '',
residence: '',
emailAddress: '',
businessStartDate: '',
businessEndDate: '',
operatorName: '',
idCardType: '',
idNumber: '',
idValidStart: '',
idValidEnd: '',
|
d64cd58f
wesley88
上传验收小程序
|
231
|
idPhotoFront: '',
|
e5b57447
杨鑫
'分包问卷'
|
232
233
234
|
idPhotoBack: '',
isLegalPerson: '',
enterpriseAuthorization: '',
|
77d98715
杨鑫
'小程序'
|
235
|
auditStatus: '1',
|
d64cd58f
wesley88
上传验收小程序
|
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
|
fangan: ''
},
rules: {
businessPurpose: [{
required: true,
message: '请输入经营用途',
trigger: 'blur'
}],
intendedLeaseTerm: [{
required: true,
message: '请输入意向租期',
trigger: 'blur'
}],
operatingEntity: [{
required: true,
message: '请输入经营主体',
trigger: 'blur'
}]
|
e5b57447
杨鑫
'分包问卷'
|
254
|
},
|
e5b57447
杨鑫
'分包问卷'
|
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
|
// 类型
showType: false,
params: {
year: true,
month: true,
day: true,
},
params1: {
year: true,
month: true,
day: true
},
TimeStratshow: false,
typeShow: false,
activesType: [{
value: 1,
|
0306d452
杨鑫
'x小程序'
|
271
|
label: '个体'
|
e5b57447
杨鑫
'分包问卷'
|
272
273
274
275
276
277
278
279
280
|
},
{
value: 2,
label: '企业'
},
],
idType: [{
value: 1,
label: '身份证'
|
77d98715
杨鑫
'小程序'
|
281
|
}],
|
d64cd58f
wesley88
上传验收小程序
|
282
|
celueType: [],
|
77d98715
杨鑫
'小程序'
|
283
|
celueShow: false,
|
e5b57447
杨鑫
'分包问卷'
|
284
285
286
287
288
|
IdtypeShow: false,
busStartshow: false,
busEndtshow: false,
idCardStartshow: false,
idCardEndtshow: false,
|
0306d452
杨鑫
'x小程序'
|
289
|
ziyuanId: '',
|
d64cd58f
wesley88
上传验收小程序
|
290
291
292
|
moban: [],
zhengce: '',
shuoming: '',
|
0fd8b750
杨鑫
'最新落地1'
|
293
|
zujin: '',
|
2a109046
杨鑫
'最新小程序'
|
294
|
selected: [],
|
0fd8b750
杨鑫
'最新落地1'
|
295
|
map:0,
|
2a109046
杨鑫
'最新小程序'
|
296
297
298
299
|
establishow:false,
today:['',''],
startDate:'',
endDate:''
|
3f535f30
杨鑫
'初始'
|
300
301
|
};
},
|
e5b57447
杨鑫
'分包问卷'
|
302
303
|
onLoad(option) {
this.ziyuanId = option.ids
|
77d98715
杨鑫
'小程序'
|
304
|
let paesize = {
|
d64cd58f
wesley88
上传验收小程序
|
305
306
307
|
pageNumber: 0,
pageSize: 10,
resourcesId: option.ids
|
77d98715
杨鑫
'小程序'
|
308
|
}
|
0fd8b750
杨鑫
'最新落地1'
|
309
310
311
312
313
314
|
const containsSp = option.ids.includes('sp');
if (containsSp) {
this.map = 1;
} else {
this.map = 0; // 或者其他默认值
}
|
d64cd58f
wesley88
上传验收小程序
|
315
316
|
this.$http.sendRequest('/cereResourceStrategy/queryByResources', 'POST', paesize, 1).then(res => {
|
77d98715
杨鑫
'小程序'
|
317
|
this.moban = res.data.data
|
d64cd58f
wesley88
上传验收小程序
|
318
319
320
321
|
this.moban.map((item, index) => {
let obj = {
value: index,
label: item.policyName
|
77d98715
杨鑫
'小程序'
|
322
323
324
325
326
327
328
|
}
this.celueType.push(obj)
})
}).catch(err => {
console.log(err)
//请求失败
})
|
2a109046
杨鑫
'最新小程序'
|
329
|
|
e5b57447
杨鑫
'分包问卷'
|
330
331
|
},
onShow() {
|
2a109046
杨鑫
'最新小程序'
|
332
333
334
335
336
337
|
this.calculateDates()
let pageHe={
pageNumber: 0,
pageSize: 10,
shopNumber:this.ziyuanId,
dataStatus:1
|
d64cd58f
wesley88
上传验收小程序
|
338
|
}
|
2a109046
杨鑫
'最新小程序'
|
339
340
341
342
343
344
345
346
347
|
this.$http.sendRequest('/cereContractInformation/getPage', 'POST', pageHe,1).then(res => {
if(res.data.data.content.length !=0){
res.data.data.content.map(item=>{
this.generateDateRange([item.contractTerminationDate,item.leaseStartDate])
})
}
})
|
e5b57447
杨鑫
'分包问卷'
|
348
349
|
},
methods: {
|
0fd8b750
杨鑫
'最新落地1'
|
350
351
352
353
354
355
356
357
358
359
360
361
362
|
generateDateRange(datas) {
const result = [];
const startDate = new Date(datas[0])
const endDate = new Date(datas[1])
if (startDate > endDate) {
[startDate, endDate] = [endDate, startDate]
}
let currentDate = new Date(startDate);
while (currentDate <= endDate) {
const year = currentDate.getFullYear();
const month = String(currentDate.getMonth() + 1).padStart(1, '0');
const day = String(currentDate.getDate()).padStart(1, '0');
const dateString = `${year}-${month}-${day}`;
|
2a109046
杨鑫
'最新小程序'
|
363
|
this.selected.push({
|
0fd8b750
杨鑫
'最新落地1'
|
364
|
date: dateString,
|
2a109046
杨鑫
'最新小程序'
|
365
|
info: '已租',
|
0fd8b750
杨鑫
'最新落地1'
|
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
|
disable: true
});
currentDate.setDate(currentDate.getDate() + 1);
}
return result;
},
calendarChange(e){
if(e.range.after == ''){
uni.showToast({
icon: 'none',
title: '请选择结束时间'
})
return
}
this.model1.intendedLeaseTerm = e.range.before+'至'+e.range.after
},
|
e5b57447
杨鑫
'分包问卷'
|
382
383
384
|
typeChange(e) {
this.model1.entityType = e[0].label;
},
|
2a109046
杨鑫
'最新小程序'
|
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
|
calculateDates() {
const today = new Date();
const year = today.getFullYear();
const month = today.getMonth();
this.startDate = this.formatDate(today);
// 获取后一个月的最后一天
const nextMonthLastDay = new Date(year, month + 2, 0);
this.endDate = this.formatDate(nextMonthLastDay);
},
formatDate(date) {
const year = date.getFullYear();
const month = ('0' + (date.getMonth() + 1)).slice(-2); // 月份是从0开始的
const day = ('0' + date.getDate()).slice(-2);
return `${year}-${month}-${day}`;
},
|
d64cd58f
wesley88
上传验收小程序
|
401
402
403
404
405
406
407
408
|
getCurrentTime() {
const now = new Date();
const year = now.getFullYear();
const month = ('0' + (now.getMonth() + 1)).slice(-2);
const day = ('0' + now.getDate()).slice(-2);
const hours = ('0' + now.getHours()).slice(-2);
const minutes = ('0' + now.getMinutes()).slice(-2);
const seconds = ('0' + now.getSeconds()).slice(-2);
|
e5b57447
杨鑫
'分包问卷'
|
409
|
|
d64cd58f
wesley88
上传验收小程序
|
410
|
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
|
1ab21b43
杨鑫
'策略'
|
411
|
},
|
d64cd58f
wesley88
上传验收小程序
|
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
|
onsuccess1(e, file, fileList, ziduan) {
console.error(e, file, fileList, ziduan)
uni.uploadFile({
url: this.$upload, // 仅为示例,请替换为您的服务器上传接口
filePath: e[0].url,
name: 'file', // 后端接收的文件参数名
formData: {
filePath: 'xcx', // 其他表单数据
},
success: (uploadFileRes) => {
if (ziduan == 'businessLicense') {
this.model1.businessLicense = this.$img + JSON.parse(uploadFileRes.data).data
} else if (ziduan == 'idPhotoFront') {
this.model1.idPhotoFront = this.$img + JSON.parse(uploadFileRes.data).data
} else if (ziduan == 'idPhotoBack') {
this.model1.idPhotoBack = this.$img + JSON.parse(uploadFileRes.data).data
} else {
this.model1.enterpriseAuthorization = this.$img + JSON.parse(uploadFileRes.data).data
}
console.log('上传成功', this.model1);
uni.showToast({
title: '上传成功',
icon: 'success',
});
},
fail: (err) => {
console.error('上传失败', err);
uni.showToast({
title: '上传失败',
icon: 'none',
});
},
|
1ab21b43
杨鑫
'策略'
|
445
446
|
});
},
|
d64cd58f
wesley88
上传验收小程序
|
447
|
chek() {
|
d64cd58f
wesley88
上传验收小程序
|
448
449
450
451
452
|
if (!this.model1.entityName) {
uni.showToast({
icon: 'none',
title: '请输入主体名称'
});
|
0fd8b750
杨鑫
'最新落地1'
|
453
|
return false;
|
d64cd58f
wesley88
上传验收小程序
|
454
455
456
457
458
459
|
}
if (!this.model1.unifiedSocialCreditCode) {
uni.showToast({
icon: 'none',
title: '请输入统一社会信用代码'
});
|
0fd8b750
杨鑫
'最新落地1'
|
460
|
return false;
|
d64cd58f
wesley88
上传验收小程序
|
461
462
463
464
465
466
|
}
if (!this.model1.entityType) {
uni.showToast({
icon: 'none',
title: '请选择主体类型'
});
|
0fd8b750
杨鑫
'最新落地1'
|
467
|
return false;
|
d64cd58f
wesley88
上传验收小程序
|
468
469
470
471
472
473
|
}
if (!this.model1.legalRepresentative) {
uni.showToast({
icon: 'none',
title: '请输入法定代表人'
});
|
0fd8b750
杨鑫
'最新落地1'
|
474
|
return false;
|
d64cd58f
wesley88
上传验收小程序
|
475
476
477
478
479
480
|
}
if (!this.model1.businessScope) {
uni.showToast({
icon: 'none',
title: '请输入经营范围'
});
|
0fd8b750
杨鑫
'最新落地1'
|
481
|
return false;
|
d64cd58f
wesley88
上传验收小程序
|
482
483
484
485
486
487
|
}
if (!this.model1.registeredCapital) {
uni.showToast({
icon: 'none',
title: '请输入注册资本'
});
|
0fd8b750
杨鑫
'最新落地1'
|
488
|
return false;
|
d64cd58f
wesley88
上传验收小程序
|
489
490
491
492
493
494
|
}
if (!this.model1.establishmentDate) {
uni.showToast({
icon: 'none',
title: '请输入成立日期'
});
|
0fd8b750
杨鑫
'最新落地1'
|
495
|
return false;
|
d64cd58f
wesley88
上传验收小程序
|
496
497
498
499
500
501
|
}
if (!this.model1.residence) {
uni.showToast({
icon: 'none',
title: '请输入住所'
});
|
0fd8b750
杨鑫
'最新落地1'
|
502
|
return false;
|
d64cd58f
wesley88
上传验收小程序
|
503
504
505
506
507
508
|
}
if (!this.model1.emailAddress) {
uni.showToast({
icon: 'none',
title: '请输入邮箱地址'
});
|
0fd8b750
杨鑫
'最新落地1'
|
509
|
return false;
|
d64cd58f
wesley88
上传验收小程序
|
510
511
512
513
514
515
|
}
if (!this.model1.businessStartDate) {
uni.showToast({
icon: 'none',
title: '请选择经营开始时间'
});
|
0fd8b750
杨鑫
'最新落地1'
|
516
|
return false;
|
d64cd58f
wesley88
上传验收小程序
|
517
518
519
520
521
522
|
}
if (!this.model1.businessEndDate) {
uni.showToast({
icon: 'none',
title: '请选择经营结束时间'
});
|
0fd8b750
杨鑫
'最新落地1'
|
523
|
return false;
|
d64cd58f
wesley88
上传验收小程序
|
524
525
526
527
528
529
|
}
if (!this.model1.businessLicense) {
uni.showToast({
icon: 'none',
title: '请上传营业执照'
});
|
0fd8b750
杨鑫
'最新落地1'
|
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
|
return false;
}
return true;
},
go() {
this.model1.rentalResourcesId = this.ziyuanId
this.model1.applicant = uni.getStorageSync('user').phone
this.model1.applicationTime = this.getCurrentTime()
let show = this.chek()
if(show == false){
return
}
console.log(this.model1.applicant)
let info = {
...this.model1,
businessLicense:this.model1.businessLicense.replace(this.$img,''),
// idPhotoFront:this.model1.idPhotoFront.replace(this.$img,''),
// idPhotoBack:this.model1.idPhotoBack.replace(this.$img,''),
// enterpriseAuthorization:this.model1.enterpriseAuthorization.replace(this.$img,''),
}
// return
this.$http.sendRequest('/cereBusinessInfo/add', 'POST',info, 1).then(res => {
// uni.redirectTo({
// url: '/pages/record/record'
// })
uni.showToast({
title: '提交成功',
icon: 'none',
});
setTimeout(() => {
uni.navigateBack()
}, 1000)
})
},
// 上一步
toBefor() {
this.active = +this.active - 1;
},
// 下一步
toNext() {
if(this.active == '0') {
if (!this.model1.intendedLeaseTerm) {
uni.showToast({
icon: 'none',
title: '请选择租赁周期'
});
return;
}
if (!this.model1.businessPurpose) {
uni.showToast({
icon: 'none',
title: '请输入经营用途'
});
return;
}
|
1dbc0b2d
wesley88
1
|
587
588
589
590
591
592
593
|
// if (!this.model1.fangan) {
// uni.showToast({
// icon: 'none',
// title: '请选择租金方案'
// });
// return;
// }
|
d64cd58f
wesley88
上传验收小程序
|
594
|
}
|
0fd8b750
杨鑫
'最新落地1'
|
595
|
|
e5b57447
杨鑫
'分包问卷'
|
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
|
this.active = +this.active + 1;
},
startTimeChange(val) {
this.model1.scheduleTime = this.timeChange(val)
},
timeChange(val) {
const {
year,
month,
day,
} = val;
return `${year}-${month}-${day}`;
},
leiXpops(val) {
this.model1.intentionalBusinessType = val[0].label
},
|
d64cd58f
wesley88
上传验收小程序
|
612
|
celueChange(val) {
|
77d98715
杨鑫
'小程序'
|
613
|
this.model1.fangan = val[0].label
|
d64cd58f
wesley88
上传验收小程序
|
614
615
616
617
|
if (this.moban.length != 0) {
this.zhengce = this.moban[val[0].value].preferentialPolicy
this.shuoming = this.moban[val[0].value].otherDescription
this.zujin = this.moban[val[0].value].rentalPrice + '元/' + this.moban[val[0].value].leaseTerm
|
77d98715
杨鑫
'小程序'
|
618
|
}
|
d64cd58f
wesley88
上传验收小程序
|
619
|
|
77d98715
杨鑫
'小程序'
|
620
|
},
|
e5b57447
杨鑫
'分包问卷'
|
621
622
623
624
|
busStTimeChange(val) {
this.model1.businessStartDate = this.timeChange(val)
this.model1.businessEndDate = ''
},
|
0fd8b750
杨鑫
'最新落地1'
|
625
626
627
|
establiChange(val){
this.model1.establishmentDate = this.timeChange(val)
},
|
e5b57447
杨鑫
'分包问卷'
|
628
629
630
631
632
|
busEndTimeChange(val) {
const time = this.timeChange(val);
if (new Date(time).getTime() > new Date(this.model1.businessStartDate).getTime()) {
this.model1.businessEndDate = time
} else {
|
d64cd58f
wesley88
上传验收小程序
|
633
634
635
|
uni.showToast({
icon: 'none',
title: '结束时间不能小于开始时间'
|
e5b57447
杨鑫
'分包问卷'
|
636
637
638
639
640
641
642
643
644
645
646
647
648
|
})
}
},
idCardStTimeChange(val) {
this.model1.idValidStart = this.timeChange1(val)
this.model1.idValidEnd = ''
},
idCardEndTimeChange(val) {
const time = this.timeChange1(val);
if (new Date(time).getTime() > new Date(this.model1.idValidStart).getTime()) {
this.model1.idValidEnd = time
} else {
|
d64cd58f
wesley88
上传验收小程序
|
649
650
651
|
uni.showToast({
icon: 'none',
title: '结束时间不能小于开始时间'
|
e5b57447
杨鑫
'分包问卷'
|
652
653
654
655
656
657
658
659
660
661
662
663
664
665
|
})
}
},
IdtypeChange(e) {
this.model1.idCardType = e[0].label;
},
timeChange1(val) {
const {
year,
month,
day
} = val;
return `${year}-${month}-${day}`;
},
|
3f535f30
杨鑫
'初始'
|
666
667
668
669
670
671
|
}
}
</script>
<style scoped lang="scss">
@import 'leaseAdd.scss';
|
e5b57447
杨鑫
'分包问卷'
|
672
|
</style>
|