4dfe89e4
monkeyhouyi
初始化
|
1
2
|
<template>
<view class="page">
|
c213ec83
monkeyhouyi
商铺详情,新增
|
3
4
5
6
|
<view class="steps-box">
<u-steps :list="numList" :current="active"></u-steps>
</view>
<view>
|
354e3811
杨鑫
'验收'
|
7
|
<view class="add-list" v-show="active == 0">
|
c213ec83
monkeyhouyi
商铺详情,新增
|
8
|
<u-form labelPosition="left" :model="model1" :rules="rules" ref="uForm" :labelWidth="250">
|
354e3811
杨鑫
'验收'
|
9
10
|
<u-form-item label="经营用途" prop="businessPurpose" borderBottom>
<u-input v-model="model1.businessPurpose"></u-input>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
11
|
</u-form-item>
|
354e3811
杨鑫
'验收'
|
12
13
|
<u-form-item label="意向租期" prop="intendedLeaseTerm" placeholder="请输入月、年" borderBottom>
<u-input v-model="model1.intendedLeaseTerm"></u-input>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
14
|
</u-form-item>
|
354e3811
杨鑫
'验收'
|
15
16
|
<u-form-item label="经营主体" prop="operatingEntity" borderBottom>
<u-input v-model="model1.operatingEntity"></u-input>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
17
18
|
</u-form-item>
</u-form>
|
4dfe89e4
monkeyhouyi
初始化
|
19
|
</view>
|
354e3811
杨鑫
'验收'
|
20
|
<view class="add-list" v-show='active == 1'>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
21
|
<u-form labelPosition="left" :model="model1" :rules="rules" ref="uForm" :labelWidth="250">
|
354e3811
杨鑫
'验收'
|
22
23
|
<u-form-item label="主体名称" prop="entityName" borderBottom>
<u-input v-model="model1.entityName"></u-input>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
24
|
</u-form-item>
|
354e3811
杨鑫
'验收'
|
25
26
|
<u-form-item label="统一社会信用代码" prop="unifiedSocialCreditCode" borderBottom>
<u-input v-model="model1.unifiedSocialCreditCode"></u-input>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
27
|
</u-form-item>
|
354e3811
杨鑫
'验收'
|
28
29
30
|
<u-form-item label="类型" prop="entityType" borderBottom>
<u-input v-model="model1.entityType" type="select" @click="typeShow = true"
placeholder='请选择类型' />
|
c213ec83
monkeyhouyi
商铺详情,新增
|
31
|
</u-form-item>
|
354e3811
杨鑫
'验收'
|
32
33
|
<u-form-item label="法定代表人" prop="legalRepresentative" borderBottom>
<u-input v-model="model1.legalRepresentative"></u-input>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
34
|
</u-form-item>
|
354e3811
杨鑫
'验收'
|
35
36
|
<u-form-item label="经营范围" prop="businessScope" borderBottom>
<u-input v-model="model1.businessScope"></u-input>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
37
|
</u-form-item>
|
354e3811
杨鑫
'验收'
|
38
39
|
<u-form-item label="注册资本" prop="registeredCapital" borderBottom>
<u-input v-model="model1.registeredCapital"></u-input>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
40
|
</u-form-item>
|
354e3811
杨鑫
'验收'
|
41
42
|
<u-form-item label="成立日期" prop="establishmentDate" borderBottom>
<u-input v-model="model1.establishmentDate"></u-input>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
43
|
</u-form-item>
|
354e3811
杨鑫
'验收'
|
44
45
|
<u-form-item label="住所" prop="residence" borderBottom>
<u-input v-model="model1.residence"></u-input>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
46
|
</u-form-item>
|
354e3811
杨鑫
'验收'
|
47
48
|
<u-form-item label="邮箱地址" prop="emailAddress" borderBottom>
<u-input v-model="model1.emailAddress"></u-input>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
49
|
</u-form-item>
|
354e3811
杨鑫
'验收'
|
50
51
52
53
54
|
<u-form-item label="经营开始时间" prop="businessStartDate" borderBottom>
<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>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
55
|
</u-form-item>
|
354e3811
杨鑫
'验收'
|
56
57
58
59
60
61
62
63
|
<u-form-item label="经营结束时间" prop="businessEndDate" borderBottom>
<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>
<u-form-item label="营业执照" prop="businessLicense" borderBottom labelPosition="top">
<u-upload :action="$upload" :auto-upload="true" ref="businessLicense" :max-count="1"></u-upload>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
64
65
|
</u-form-item>
</u-form>
|
4dfe89e4
monkeyhouyi
初始化
|
66
|
</view>
|
354e3811
杨鑫
'验收'
|
67
|
<view v-show="active==2">
|
c213ec83
monkeyhouyi
商铺详情,新增
|
68
69
|
<u-form labelPosition="left" :model="model1" :rules="rules" ref="uForm" :labelWidth="250">
<view class="add-list">
|
354e3811
杨鑫
'验收'
|
70
71
72
73
74
75
|
<u-form-item label="经营者姓名" prop="operatorName" borderBottom>
<u-input v-model="model1.operatorName"></u-input>
</u-form-item>
<u-form-item label="证件类型" prop="idCardType" borderBottom>
<u-input v-model="model1.idCardType" type="select" @click="IdtypeShow = true"
placeholder='请选择类型' />
|
c213ec83
monkeyhouyi
商铺详情,新增
|
76
|
</u-form-item>
|
354e3811
杨鑫
'验收'
|
77
78
|
<u-form-item label="身份证号码" prop="idNumber" borderBottom>
<u-input v-model="model1.idNumber"></u-input>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
79
|
</u-form-item>
|
354e3811
杨鑫
'验收'
|
80
81
82
83
84
|
<u-form-item label="身份证有效开始时间" prop="idValidStart" borderBottom>
<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>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
85
|
</u-form-item>
|
354e3811
杨鑫
'验收'
|
86
87
88
89
90
|
<u-form-item label="身份证有效结束时间" prop="idValidEnd" borderBottom>
<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>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
91
|
</u-form-item>
|
4dfe89e4
monkeyhouyi
初始化
|
92
|
</view>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
93
94
95
|
<view class="add-list">
<view class="deom-box">
<view class="img-deom">
|
354e3811
杨鑫
'验收'
|
96
97
98
99
100
|
<u-upload :action="$upload" :custom-btn="true" :max-count="1" ref="idPhotoFront">
<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>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
101
102
103
104
105
|
</view>
</u-upload>
<text>点击上传证件人像面</text>
</view>
<view class="img-deom">
|
354e3811
杨鑫
'验收'
|
106
107
108
109
110
|
<u-upload :action="$upload" :custom-btn="true" :max-count="1" ref="idPhotoBack">
<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>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
111
112
113
114
115
|
</view>
</u-upload>
<text>点击上传证件国徽面</text>
</view>
</view>
|
354e3811
杨鑫
'验收'
|
116
|
</view>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
117
118
119
120
|
<view class="add-list">
<view style="line-height: 60rpx;">上传示例</view>
<view class="deom-box">
<view class="img-deom">
|
354e3811
杨鑫
'验收'
|
121
|
<u-image width="304rpx" height="182rpx" :src="$imgUrl('/front-icon.png')"></u-image>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
122
123
124
|
<text>人脸示例图</text>
</view>
<view class="img-deom">
|
354e3811
杨鑫
'验收'
|
125
|
<u-image width="304rpx" height="182rpx" :src="$imgUrl('/back-icon.png')"></u-image>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
126
127
128
|
<text>国徽面示例图</text>
</view>
</view>
|
4dfe89e4
monkeyhouyi
初始化
|
129
|
</view>
|
354e3811
杨鑫
'验收'
|
130
131
132
133
134
135
|
<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">
<u-form-item label="是否为法人" prop="isLegalPerson" borderBottom>
<u-radio-group v-model="model1.isLegalPerson">
|
c213ec83
monkeyhouyi
商铺详情,新增
|
136
|
<u-radio :name="1">是</u-radio>
|
354e3811
杨鑫
'验收'
|
137
|
<u-radio :name="0">否</u-radio>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
138
139
|
</u-radio-group>
</u-form-item>
|
354e3811
杨鑫
'验收'
|
140
141
142
|
<u-form-item label="企业授权书" prop="enter" borderBottom labelPosition="top">
<u-upload :action="$upload" :auto-upload="true" ref="enter" :max-count="1"></u-upload>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
143
|
</u-form-item>
|
4dfe89e4
monkeyhouyi
初始化
|
144
|
</view>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
145
|
</u-form>
|
4dfe89e4
monkeyhouyi
初始化
|
146
147
|
</view>
</view>
|
354e3811
杨鑫
'验收'
|
148
149
|
<u-select v-model="typeShow" :list="activesType" @confirm="typeChange"></u-select>
<u-select v-model="IdtypeShow" :list="idType" @confirm="IdtypeChange"></u-select>
|
4dfe89e4
monkeyhouyi
初始化
|
150
|
<!-- 保存按钮 -->
|
c213ec83
monkeyhouyi
商铺详情,新增
|
151
|
<view class="page-footer">
|
354e3811
杨鑫
'验收'
|
152
153
|
<u-button style="background-color: #DFE0E4; flex: 1; margin: 0 10px;" @click="toBefor"
v-if="active != 0">上一步</u-button>
|
c213ec83
monkeyhouyi
商铺详情,新增
|
154
155
|
<u-button type="success" style="flex: 1; margin: 0 10px;" @click="toNext" v-if="active != 2">下一步</u-button>
<u-button type="success" style="flex: 1; margin: 0 10px;" @click="go" v-if="active == 2">提交申请</u-button>
|
4dfe89e4
monkeyhouyi
初始化
|
156
157
158
159
160
161
162
163
|
</view>
</view>
</template>
<script>
export default {
data() {
return {
|
354e3811
杨鑫
'验收'
|
164
165
166
167
168
169
170
171
|
active: 0,
numList: [{
name: '租赁信息'
}, {
name: '主体信息'
}, {
name: '经营者信息'
}],
|
c213ec83
monkeyhouyi
商铺详情,新增
|
172
|
model1: {
|
354e3811
杨鑫
'验收'
|
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
|
businessPurpose: '',
intendedLeaseTerm: '',
operatingEntity: '',
entityName: '',
unifiedSocialCreditCode: '',
entityType: '',
legalRepresentative: '',
businessScope: '',
registeredCapital: '',
establishmentDate: '',
residence: '',
emailAddress: '',
businessStartDate: '',
businessEndDate: '',
operatorName: '',
idCardType: '',
idNumber: '',
idValidStart: '',
idValidEnd: '',
idPhotoFront:'',
idPhotoBack: '',
isLegalPerson: '',
enterpriseAuthorization: '',
auditStatus: '1'
|
c213ec83
monkeyhouyi
商铺详情,新增
|
197
198
199
200
|
},
rules: {},
// 类型
showType: false,
|
354e3811
杨鑫
'验收'
|
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
|
params: {
year: true,
month: true,
day: true,
},
params1: {
year: true,
month: true,
day: true
},
TimeStratshow: false,
typeShow: false,
activesType: [{
value: 1,
label: '个人'
},
{
value: 2,
label: '企业'
},
|
c213ec83
monkeyhouyi
商铺详情,新增
|
221
|
],
|
354e3811
杨鑫
'验收'
|
222
223
224
225
226
227
228
229
230
231
232
|
idType: [{
value: 1,
label: '身份证'
}, ],
IdtypeShow: false,
busStartshow: false,
busEndtshow: false,
idCardStartshow: false,
idCardEndtshow: false,
ziyuanId: ''
|
4dfe89e4
monkeyhouyi
初始化
|
233
234
|
};
},
|
abd11604
monkeyhouyi
物业缴费
|
235
|
onLoad(option) {
|
354e3811
杨鑫
'验收'
|
236
|
this.ziyuanId = option.ids
|
abd11604
monkeyhouyi
物业缴费
|
237
|
},
|
354e3811
杨鑫
'验收'
|
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
|
onShow() {
let shopId = {
shopId:uni.getStorageSync('shopId') || ''
}
const isLogin = uni.getStorageSync('token');
if (isLogin =='') {
// 如果未登录,跳转到登录页面
uni.navigateTo({
url: '/pages/login/login'
})
}else{
let page={
condition:2
}
this.$http.sendRequest('/shop/getById', 'POST',shopId).then(res => {
if(res.data.code !="20004"){
this.shopMsg = res.data.data
this.Islogin= false
this.$http.sendRequest('/index/index', 'POST',page).then(res => {
//成功回调
this.tongji = res.data.data
})
}else{
uni.navigateTo({
url: '/pages/login/login'
})
}
})
}
},
methods: {
|
c213ec83
monkeyhouyi
商铺详情,新增
|
270
|
typeChange(e) {
|
354e3811
杨鑫
'验收'
|
271
|
this.model1.entityType = e[0].label;
|
c213ec83
monkeyhouyi
商铺详情,新增
|
272
|
},
|
354e3811
杨鑫
'验收'
|
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
|
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);
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
},
go() {
let files = []
let idCardOne = []
let idCardTwo = []
let enter = []
// // 通过filter,筛选出上传进度为100的文件(因为某些上传失败的文件,进度值不为100,这个是可选的操作)
files = this.$refs.businessLicense.lists.filter(val => {
return val.progress == 100;
})
files.map(item => {
this.model1.businessLicense = item.response.data.url
})
idCardOne = this.$refs.idPhotoFront.lists.filter(val => {
return val.progress == 100;
})
idCardOne.map(item => {
this.model1.idPhotoFront = item.response.data.url
})
idCardTwo = this.$refs.idPhotoBack.lists.filter(val => {
return val.progress == 100;
})
idCardTwo.map(item => {
this.model1.idPhotoBack = item.response.data.url
})
enter = this.$refs.enter.lists.filter(val => {
return val.progress == 100;
})
enter.map(item => {
this.model1.enterpriseAuthorization = item.response.data.url
})
this.model1.rentalResourcesId = this.ziyuanId
this.model1.applicant = uni.getStorageSync('shopId')
this.model1.applicationTime = this.getCurrentTime()
this.$http.sendRequest('/cereBusinessInfo/add', 'POST', this.model1, 1).then(res => {
uni.redirectTo({
url: '/pages/record/record'
})
|
4dfe89e4
monkeyhouyi
初始化
|
323
|
})
|
c213ec83
monkeyhouyi
商铺详情,新增
|
324
325
326
327
328
329
330
331
|
},
// 上一步
toBefor() {
this.active = +this.active - 1;
},
// 下一步
toNext() {
this.active = +this.active + 1;
|
354e3811
杨鑫
'验收'
|
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
|
},
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
},
busStTimeChange(val) {
this.model1.businessStartDate = this.timeChange(val)
this.model1.businessEndDate = ''
},
busEndTimeChange(val) {
const time = this.timeChange(val);
if (new Date(time).getTime() > new Date(this.model1.businessStartDate).getTime()) {
this.model1.businessEndDate = time
} else {
this.$refs.uToast.show({
title: '结束时间不能小于开始时间',
type: 'error',
})
}
},
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 {
this.$refs.uToast.show({
title: '结束时间不能小于开始时间',
type: 'error',
})
}
},
IdtypeChange(e) {
this.model1.idCardType = e[0].label;
},
timeChange1(val) {
const {
year,
month,
day
} = val;
return `${year}-${month}-${day}`;
},
|
4dfe89e4
monkeyhouyi
初始化
|
389
390
391
392
393
394
|
}
}
</script>
<style scoped lang="scss">
@import 'leaseAdd.scss';
|
354e3811
杨鑫
'验收'
|
395
|
</style>
|