购物车下单提醒:ElMessage变更至ElMessageBox对话框
This commit is contained in:
parent
1bf19d1f05
commit
6b66f86b10
|
|
@ -298,6 +298,7 @@ import Header from 'components/header/index.vue'
|
|||
import FooterInfo from 'components/FooterInfo/index.vue'
|
||||
import Empty from 'components/Empty/index.vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { ElMessageBox } from 'element-plus'
|
||||
import {
|
||||
getBookCarDetailsApi,
|
||||
submitBookCarApi,
|
||||
|
|
@ -480,9 +481,8 @@ const orderAmountPice = computed(() => {
|
|||
const onCartSubmit = async () => {
|
||||
ElMessage.closeAll()
|
||||
if (amountDevice.value < 1) {
|
||||
ElMessage({
|
||||
showClose: false,
|
||||
message: '请选择装备',
|
||||
ElMessageBox.alert('请选择装备', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
type: 'error',
|
||||
})
|
||||
return
|
||||
|
|
@ -492,9 +492,8 @@ const onCartSubmit = async () => {
|
|||
cardList.value.forEach((e: any) => {
|
||||
const isSelect = e.devInfoVoList.some((j: any) => j.isChecked === true)
|
||||
if (isSelect && !e.protocolChecked) {
|
||||
ElMessage({
|
||||
showClose: false,
|
||||
message: '请阅读公司合同',
|
||||
ElMessageBox.alert('请阅读公司合同', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
type: 'error',
|
||||
})
|
||||
isRead = true
|
||||
|
|
@ -503,19 +502,10 @@ const onCartSubmit = async () => {
|
|||
})
|
||||
} catch (error) {}
|
||||
if (isRead) return
|
||||
// if (!protocolChecked.value) {
|
||||
// ElMessage({
|
||||
// showClose: false,
|
||||
// message: '请阅读公司合同',
|
||||
// type: 'error',
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
|
||||
if (addressTitle.value === '请选择收货地址') {
|
||||
ElMessage({
|
||||
showClose: false,
|
||||
message: '请选择收货地址',
|
||||
ElMessageBox.alert('请选择收货地址', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
type: 'error',
|
||||
})
|
||||
return
|
||||
|
|
@ -525,9 +515,8 @@ const onCartSubmit = async () => {
|
|||
try {
|
||||
amountDeviceList.value.forEach((e: any) => {
|
||||
if (e.days < 1) {
|
||||
ElMessage({
|
||||
showClose: false,
|
||||
message: '有装备租期未选择或租期为0,请重新选择后再提交',
|
||||
ElMessageBox.alert('有装备租期未选择或租期为0,请重新选择后再提交', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
type: 'error',
|
||||
})
|
||||
isDays = true
|
||||
|
|
@ -688,9 +677,8 @@ const handleViewWord = async (index: any) => {
|
|||
const isSelect = cardList.value[index].devInfoVoList.some((e: any) => e.isChecked == true)
|
||||
|
||||
if (!isSelect) {
|
||||
ElMessage({
|
||||
showClose: false,
|
||||
message: '请勾选装备...',
|
||||
ElMessageBox.alert('请勾选装备', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
type: 'error',
|
||||
})
|
||||
return
|
||||
|
|
@ -717,9 +705,8 @@ const handleViewWord = async (index: any) => {
|
|||
}
|
||||
})
|
||||
if (!isDays) {
|
||||
ElMessage({
|
||||
showClose: false,
|
||||
message: '请选择租期',
|
||||
ElMessageBox.alert('请选择租期', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
type: 'error',
|
||||
})
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue