添加门店资质信息
This commit is contained in:
@ -324,6 +324,7 @@
|
||||
mobile: '',
|
||||
code: ''
|
||||
})
|
||||
const both = ref<string>('1998-12-21')
|
||||
|
||||
// 审核状态
|
||||
const status = ref<number>(-1) // 0待审核 1审核成功 2审核失败 3未提交数据
|
||||
@ -379,10 +380,23 @@
|
||||
city.value = item.selectedItems.name
|
||||
},
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
handleConfirmBoth({ value }: any) {
|
||||
const d = new Date(value)
|
||||
const year = d.getFullYear()
|
||||
const month = d.getMonth() + 1
|
||||
const day = d.getDate()
|
||||
const date = `${year}-${month < 10 ? '0' + month : month}-${day < 10 ? '0' + day : day}`
|
||||
both.value = date
|
||||
},
|
||||
|
||||
/**
|
||||
* 提交申请
|
||||
*/
|
||||
handleSubmit: async () => {
|
||||
|
||||
if (!form.value.username) {
|
||||
toast.show('请输入姓名')
|
||||
return false
|
||||
@ -434,6 +448,9 @@
|
||||
form.value.certificate = "" + "," +removeImageUrlPrefix(fileList4.value)[0]
|
||||
}
|
||||
|
||||
let data = form.value
|
||||
data.both = both.value
|
||||
|
||||
toast.loading({
|
||||
loadingType: 'ring',
|
||||
loadingColor: '#4C9F44',
|
||||
@ -442,7 +459,7 @@
|
||||
try {
|
||||
toast.close()
|
||||
|
||||
await addTeaSpecialist(form.value)
|
||||
await addTeaSpecialist(data)
|
||||
status.value = 0 // 提交成功,变更状态为待审核
|
||||
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user