e5b57447
杨鑫
'分包问卷'
|
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
|
active: 0,
numList: [{
name: '租赁信息'
}, {
name: '主体信息'
}, {
name: '经营者信息'
}],
model1: {
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'
},
rules: {},
// 类型
showType: false,
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: '企业'
},
],
idType: [{
value: 1,
label: '身份证'
}, ],
IdtypeShow: false,
busStartshow: false,
busEndtshow: false,
idCardStartshow: false,
idCardEndtshow: false,
ziyuanId: ''
|
e5b57447
杨鑫
'分包问卷'
|
235
236
237
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
270
271
272
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
|
onLoad(option) {
this.ziyuanId = option.ids
},
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: {
typeChange(e) {
this.model1.entityType = e[0].label;
},
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;
|
e5b57447
杨鑫
'分包问卷'
|
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
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
|
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'
})
})
},
// 上一步
toBefor() {
this.active = +this.active - 1;
},
// 下一步
toNext() {
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
},
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}`;
},
|