确认信息无误添加必填项判断

This commit is contained in:
2025-12-29 13:11:15 +08:00
parent 159ce0fbde
commit 77335a1850

View File

@@ -70,7 +70,7 @@
<div v-show="type==1" class="revise common" @click="reviseHandle">立即修改</div> <div v-show="type==1" class="revise common" @click="reviseHandle">立即修改</div>
<div v-show="type==1" class="confirm common" @click="confirmHandle">确认信息无误</div> <div v-show="type==1" class="confirm common" @click="confirmHandle">确认信息无误</div>
</div> </div>
<van-dialog v-model="dialogShow" title="请先添加企微,成功添加后将更新微信号。" show-cancel-button <van-dialog v-model="dialogShow" title="请将此二维码发送至相应人员进行添加,成功添加后将更新微信号。" show-cancel-button
confirmButtonText="确认已添加" confirmButtonColor="#354E93" className="customDialog" confirmButtonText="确认已添加" confirmButtonColor="#354E93" className="customDialog"
@confirm="wechatConfirm" @cancel="cancelHandle"> @confirm="wechatConfirm" @cancel="cancelHandle">
<img v-if="wechatInfo?.qrCode" :src="wechatInfo.qrCode" style="width: 83%"/> <img v-if="wechatInfo?.qrCode" :src="wechatInfo.qrCode" style="width: 83%"/>
@@ -212,6 +212,11 @@ export default {
this.type=2 this.type=2
}, },
async confirmHandle(){//确认信息无误 async confirmHandle(){//确认信息无误
let flag=this.personList.every(item => item.name && item.phone1 && item.wechatId && item.wechatName)
if(!flag){
this.$toast('数据缺失,请去修改将信息补充完整')
return
}
Dialog.confirm({ Dialog.confirm({
message:'请务必仔细确认信息是否无误。', message:'请务必仔细确认信息是否无误。',
confirmButtonText:'确认无误', confirmButtonText:'确认无误',