报关清关级别提醒弹窗调整

This commit is contained in:
wuteng 2025-10-29 16:28:15 +08:00
parent d18b4c9867
commit d384271d0b
4 changed files with 229 additions and 218 deletions

View File

@ -2725,35 +2725,32 @@ methods: {
return true; return true;
} }
this.categorySender = data.category; this.categorySender = data.category;
let msg = ''; const msgMap = {
let color = ''; '2': `该公司为特区货物报关比较麻烦,请注意跟进。`,
if (this.categorySender === '2' ) { '3': `该公司报关资料不配合存在过异常,请及时跟进。`,
msg = `该公司为特区货物报关比较麻烦,请注意跟进。`; '4': `该公司报关有问题无法报关,禁止走货。`
color = '#fccc0c'; };
} else if (this.categorySender === '3') { const colorMap = {
msg = `该公司报关资料不配合存在过异常,请及时跟进。`; '2': '#fccc0c',
color = 'red'; '3': 'red',
} else if (this.categorySender === '4') { '4': 'black'
msg = `该公司报关有问题无法报关,禁止走货。`; };
color = 'black' const dynamicHtml=`
} <div>
const h = this.$createElement; <div style="color:${colorMap[this.categorySender]};">
this.$msgbox({ <li class="el-icon-warning" style="font-size: 22px;margin-right: 5px;"></li>
title: '提示', <span style="font-size: 16px;font-weight: bold;">${msgMap[this.categorySender]}</span>
message: h('p', { </div>
style: { <div style="margin-top: 10px;">
color: color, <p> <span style="color:green;">绿色</span> <span>:无弹窗</span></p>
// fontSize: '18px' <p> <span style="color:${colorMap['2']};">黄色</span> <span>:${msgMap['2']}</span></p>
} <p> <span style="color:${colorMap['3']};">红色</span> <span>:${msgMap['3']}</span></p>
}, [ <p> <span style="color:${colorMap['4']};">黑色</span> <span>:${msgMap['4']}</span></p>
h('li', { class: 'el-icon-warning' }, ''), </div>
h('span', null, msg), </div>
]), `;
showCancelButton: false, this.$alert(dynamicHtml, '提示',{
confirmButtonText: '确定', dangerouslyUseHTMLString: true
closeOnClickModal: false,
closeOnPressEscape: false,
showClose: false
}).then(() => { }).then(() => {
this.$refs.form.validateField('sender.enterpriseName'); this.$refs.form.validateField('sender.enterpriseName');
}); });
@ -2795,39 +2792,44 @@ methods: {
this.categoryReciever = data.category; this.categoryReciever = data.category;
let msg = ''; let msg = '';
let color = ''; let color = '';
const msgMap = {
'2': `该公司为特区货物清关比较麻烦,请注意跟进。`,
'3': `该公司清关资料不配合存在过异常,请及时跟进。`,
'4': `该公司清关有问题无法清关,禁止走货。`
};
const colorMap = {
'2': '#fccc0c',
'3': 'red',
'4': 'black'
};
// 判断是否是特区 // 判断是否是特区
let SpecialZone =false; let SpecialZone =false;
if(address){ if(address){
SpecialZone = address.includes('Special Economic Zone') || this.recieverRegionName.includes('特区') || this.recieverRegionName === '中柬金属材料产业园'; SpecialZone = address.includes('Special Economic Zone') || this.recieverRegionName.includes('特区') || this.recieverRegionName === '中柬金属材料产业园';
} }
console.log('---checkRecieverCompany1111' ,this.categoryReciever,SpecialZone);
if ((this.categoryReciever === '2' || (SpecialZone && this.categoryReciever !=='4'))) { if ((this.categoryReciever === '2' || (SpecialZone && this.categoryReciever !=='4'))) {
msg = `该公司为特区货物清关比较麻烦,请注意跟进。`; msg = msgMap['2'];
color = '#fccc0c'; color = colorMap['2'];
} else if (this.categoryReciever === '3') { } else {
msg = `该公司清关资料不配合存在过异常,请及时跟进。`; msg = msgMap[this.categoryReciever];
color = 'red'; color = colorMap[this.categoryReciever];
} else if (this.categoryReciever === '4') {
msg = `该公司清关有问题无法清关,禁止走货。`;
color = 'black'
} }
const h = this.$createElement; const dynamicHtml=`
this.$msgbox({ <div>
title: '提示', <div style="color:${color};">
message: h('p', { <li class="el-icon-warning" style="font-size: 22px;margin-right: 5px;"></li>
style: { <span style="font-size: 16px;font-weight: bold;">${msg}</span>
color: color, </div>
// fontSize: '18px' <div style="margin-top: 10px;">
} <p> <span style="color:green;">绿色</span> <span>:无弹窗</span></p>
}, [ <p> <span style="color:${colorMap['2']};">黄色</span> <span>:${msgMap['2']}</span></p>
h('li', { class: 'el-icon-warning' }, ''), <p> <span style="color:${colorMap['3']};">红色</span> <span>:${msgMap['3']}</span></p>
h('span', null, msg), <p> <span style="color:${colorMap['4']};">黑色</span> <span>:${msgMap['4']}</span></p>
]), </div>
showCancelButton: false, </div>
confirmButtonText: '确定', `;
closeOnClickModal: false, this.$alert(dynamicHtml, '提示',{
closeOnPressEscape: false, dangerouslyUseHTMLString: true
showClose: false
}).then(() => { }).then(() => {
this.$refs.form.validateField('reciever.company'); this.$refs.form.validateField('reciever.company');
}); });

View File

@ -2729,35 +2729,32 @@ methods: {
return true; return true;
} }
this.categorySender = data.category; this.categorySender = data.category;
let msg = ''; const msgMap = {
let color = ''; '2': `该公司为特区货物报关比较麻烦,请注意跟进。`,
if (this.categorySender === '2' ) { '3': `该公司报关资料不配合存在过异常,请及时跟进。`,
msg = `该公司为特区货物报关比较麻烦,请注意跟进。`; '4': `该公司报关有问题无法报关,禁止走货。`
color = '#fccc0c'; };
} else if (this.categorySender === '3') { const colorMap = {
msg = `该公司报关资料不配合存在过异常,请及时跟进。`; '2': '#fccc0c',
color = 'red'; '3': 'red',
} else if (this.categorySender === '4') { '4': 'black'
msg = `该公司报关有问题无法报关,禁止走货。`; };
color = 'black' const dynamicHtml=`
} <div>
const h = this.$createElement; <div style="color:${colorMap[this.categorySender]};">
this.$msgbox({ <li class="el-icon-warning" style="font-size: 22px;margin-right: 5px;"></li>
title: '提示', <span style="font-size: 16px;font-weight: bold;">${msgMap[this.categorySender]}</span>
message: h('p', { </div>
style: { <div style="margin-top: 10px;">
color: color, <p> <span style="color:green;">绿色</span> <span>:无弹窗</span></p>
// fontSize: '18px' <p> <span style="color:${colorMap['2']};">黄色</span> <span>:${msgMap['2']}</span></p>
} <p> <span style="color:${colorMap['3']};">红色</span> <span>:${msgMap['3']}</span></p>
}, [ <p> <span style="color:${colorMap['4']};">黑色</span> <span>:${msgMap['4']}</span></p>
h('li', { class: 'el-icon-warning' }, ''), </div>
h('span', null, msg), </div>
]), `;
showCancelButton: false, this.$alert(dynamicHtml, '提示',{
confirmButtonText: '确定', dangerouslyUseHTMLString: true
closeOnClickModal: false,
closeOnPressEscape: false,
showClose: false
}).then(() => { }).then(() => {
this.$refs.form.validateField('sender.enterpriseName'); this.$refs.form.validateField('sender.enterpriseName');
}); });
@ -2799,38 +2796,44 @@ methods: {
this.categoryReciever = data.category; this.categoryReciever = data.category;
let msg = ''; let msg = '';
let color = ''; let color = '';
const msgMap = {
'2': `该公司为特区货物清关比较麻烦,请注意跟进。`,
'3': `该公司清关资料不配合存在过异常,请及时跟进。`,
'4': `该公司清关有问题无法清关,禁止走货。`
};
const colorMap = {
'2': '#fccc0c',
'3': 'red',
'4': 'black'
};
// 判断是否是特区 // 判断是否是特区
let SpecialZone =false; let SpecialZone =false;
if(address){ if(address){
SpecialZone = address.includes('Special Economic Zone') || this.recieverRegionName.includes('特区') || this.recieverRegionName === '中柬金属材料产业园'; SpecialZone = address.includes('Special Economic Zone') || this.recieverRegionName.includes('特区') || this.recieverRegionName === '中柬金属材料产业园';
} }
if ((this.categoryReciever === '2' || (SpecialZone && this.categoryReciever !=='4'))) { if ((this.categoryReciever === '2' || (SpecialZone && this.categoryReciever !=='4'))) {
msg = `该公司为特区货物清关比较麻烦,请注意跟进。`; msg = msgMap['2'];
color = '#fccc0c'; color = colorMap['2'];
} else if (this.categoryReciever === '3') { } else {
msg = `该公司清关资料不配合存在过异常,请及时跟进。`; msg = msgMap[this.categoryReciever];
color = 'red'; color = colorMap[this.categoryReciever];
} else if (this.categoryReciever === '4') {
msg = `该公司清关有问题无法清关,禁止走货。`;
color = 'black'
} }
const h = this.$createElement; const dynamicHtml=`
this.$msgbox({ <div>
title: '提示', <div style="color:${color};">
message: h('p', { <li class="el-icon-warning" style="font-size: 22px;margin-right: 5px;"></li>
style: { <span style="font-size: 16px;font-weight: bold;">${msg}</span>
color: color, </div>
// fontSize: '18px' <div style="margin-top: 10px;">
} <p> <span style="color:green;">绿色</span> <span>:无弹窗</span></p>
}, [ <p> <span style="color:${colorMap['2']};">黄色</span> <span>:${msgMap['2']}</span></p>
h('li', { class: 'el-icon-warning' }, ''), <p> <span style="color:${colorMap['3']};">红色</span> <span>:${msgMap['3']}</span></p>
h('span', null, msg), <p> <span style="color:${colorMap['4']};">黑色</span> <span>:${msgMap['4']}</span></p>
]), </div>
showCancelButton: false, </div>
confirmButtonText: '确定', `;
closeOnClickModal: false, this.$alert(dynamicHtml, '提示',{
closeOnPressEscape: false, dangerouslyUseHTMLString: true
showClose: false
}).then(() => { }).then(() => {
this.$refs.form.validateField('reciever.company'); this.$refs.form.validateField('reciever.company');
}); });

View File

@ -2694,35 +2694,32 @@ methods: {
return true; return true;
} }
this.categorySender = data.category; this.categorySender = data.category;
let msg = ''; const msgMap = {
let color = ''; '2': `该公司为特区货物报关比较麻烦,请注意跟进。`,
if (this.categorySender === '2' ) { '3': `该公司报关资料不配合存在过异常,请及时跟进。`,
msg = `该公司为特区货物报关比较麻烦,请注意跟进。`; '4': `该公司报关有问题无法报关,禁止走货。`
color = '#fccc0c'; };
} else if (this.categorySender === '3') { const colorMap = {
msg = `该公司报关资料不配合存在过异常,请及时跟进。`; '2': '#fccc0c',
color = 'red'; '3': 'red',
} else if (this.categorySender === '4') { '4': 'black'
msg = `该公司报关有问题无法报关,禁止走货。`; };
color = 'black' const dynamicHtml=`
} <div>
const h = this.$createElement; <div style="color:${colorMap[this.categorySender]};">
this.$msgbox({ <li class="el-icon-warning" style="font-size: 22px;margin-right: 5px;"></li>
title: '提示', <span style="font-size: 16px;font-weight: bold;">${msgMap[this.categorySender]}</span>
message: h('p', { </div>
style: { <div style="margin-top: 10px;">
color: color, <p> <span style="color:green;">绿色</span> <span>:无弹窗</span></p>
// fontSize: '18px' <p> <span style="color:${colorMap['2']};">黄色</span> <span>:${msgMap['2']}</span></p>
} <p> <span style="color:${colorMap['3']};">红色</span> <span>:${msgMap['3']}</span></p>
}, [ <p> <span style="color:${colorMap['4']};">黑色</span> <span>:${msgMap['4']}</span></p>
h('li', { class: 'el-icon-warning' }, ''), </div>
h('span', null, msg), </div>
]), `;
showCancelButton: false, this.$alert(dynamicHtml, '提示',{
confirmButtonText: '确定', dangerouslyUseHTMLString: true
closeOnClickModal: false,
closeOnPressEscape: false,
showClose: false
}).then(() => { }).then(() => {
this.$refs.form.validateField('sender.enterpriseName'); this.$refs.form.validateField('sender.enterpriseName');
}); });
@ -2764,38 +2761,44 @@ methods: {
this.categoryReciever = data.category; this.categoryReciever = data.category;
let msg = ''; let msg = '';
let color = ''; let color = '';
const msgMap = {
'2': `该公司为特区货物清关比较麻烦,请注意跟进。`,
'3': `该公司清关资料不配合存在过异常,请及时跟进。`,
'4': `该公司清关有问题无法清关,禁止走货。`
};
const colorMap = {
'2': '#fccc0c',
'3': 'red',
'4': 'black'
};
// 判断是否是特区 // 判断是否是特区
let SpecialZone =false; let SpecialZone =false;
if(address){ if(address){
SpecialZone = address.includes('Special Economic Zone') || this.recieverRegionName.includes('特区') || this.recieverRegionName === '中柬金属材料产业园'; SpecialZone = address.includes('Special Economic Zone') || this.recieverRegionName.includes('特区') || this.recieverRegionName === '中柬金属材料产业园';
} }
if ((this.categoryReciever === '2' || (SpecialZone && this.categoryReciever !=='4'))) { if ((this.categoryReciever === '2' || (SpecialZone && this.categoryReciever !=='4'))) {
msg = `该公司为特区货物清关比较麻烦,请注意跟进。`; msg = msgMap['2'];
color = '#fccc0c'; color = colorMap['2'];
} else if (this.categoryReciever === '3') { } else {
msg = `该公司清关资料不配合存在过异常,请及时跟进。`; msg = msgMap[this.categoryReciever];
color = 'red'; color = colorMap[this.categoryReciever];
} else if (this.categoryReciever === '4') {
msg = `该公司清关有问题无法清关,禁止走货。`;
color = 'black'
} }
const h = this.$createElement; const dynamicHtml=`
this.$msgbox({ <div>
title: '提示', <div style="color:${color};">
message: h('p', { <li class="el-icon-warning" style="font-size: 22px;margin-right: 5px;"></li>
style: { <span style="font-size: 16px;font-weight: bold;">${msg}</span>
color: color, </div>
// fontSize: '18px' <div style="margin-top: 10px;">
} <p> <span style="color:green;">绿色</span> <span>:无弹窗</span></p>
}, [ <p> <span style="color:${colorMap['2']};">黄色</span> <span>:${msgMap['2']}</span></p>
h('li', { class: 'el-icon-warning' }, ''), <p> <span style="color:${colorMap['3']};">红色</span> <span>:${msgMap['3']}</span></p>
h('span', null, msg), <p> <span style="color:${colorMap['4']};">黑色</span> <span>:${msgMap['4']}</span></p>
]), </div>
showCancelButton: false, </div>
confirmButtonText: '确定', `;
closeOnClickModal: false, this.$alert(dynamicHtml, '提示',{
closeOnPressEscape: false, dangerouslyUseHTMLString: true
showClose: false
}).then(() => { }).then(() => {
this.$refs.form.validateField('reciever.company'); this.$refs.form.validateField('reciever.company');
}); });

View File

@ -2384,35 +2384,32 @@ export default {
return true; return true;
} }
this.categorySender = data.category; this.categorySender = data.category;
let msg = ''; const msgMap = {
let color = ''; '2': `该公司为特区货物报关比较麻烦,请注意跟进。`,
if (this.categorySender === '2' ) { '3': `该公司报关资料不配合存在过异常,请及时跟进。`,
msg = `该公司为特区货物报关比较麻烦,请注意跟进。`; '4': `该公司报关有问题无法报关,禁止走货。`
color = '#fccc0c'; };
} else if (this.categorySender === '3') { const colorMap = {
msg = `该公司报关资料不配合存在过异常,请及时跟进。`; '2': '#fccc0c',
color = 'red'; '3': 'red',
} else if (this.categorySender === '4') { '4': 'black'
msg = `该公司报关有问题无法报关,禁止走货。`; };
color = 'black' const dynamicHtml=`
} <div>
const h = this.$createElement; <div style="color:${colorMap[this.categorySender]};">
this.$msgbox({ <li class="el-icon-warning" style="font-size: 22px;margin-right: 5px;"></li>
title: '提示', <span style="font-size: 16px;font-weight: bold;">${msgMap[this.categorySender]}</span>
message: h('p', { </div>
style: { <div style="margin-top: 10px;">
color: color, <p> <span style="color:green;">绿色</span> <span>:无弹窗</span></p>
// fontSize: '18px' <p> <span style="color:${colorMap['2']};">黄色</span> <span>:${msgMap['2']}</span></p>
} <p> <span style="color:${colorMap['3']};">红色</span> <span>:${msgMap['3']}</span></p>
}, [ <p> <span style="color:${colorMap['4']};">黑色</span> <span>:${msgMap['4']}</span></p>
h('li', { class: 'el-icon-warning' }, ''), </div>
h('span', null, msg), </div>
]), `;
showCancelButton: false, this.$alert(dynamicHtml, '提示',{
confirmButtonText: '确定', dangerouslyUseHTMLString: true
closeOnClickModal: false,
closeOnPressEscape: false,
showClose: false
}).then(() => { }).then(() => {
this.$refs.form.validateField('sender.enterpriseName'); this.$refs.form.validateField('sender.enterpriseName');
}); });
@ -2454,38 +2451,44 @@ export default {
this.categoryReciever = data.category; this.categoryReciever = data.category;
let msg = ''; let msg = '';
let color = ''; let color = '';
const msgMap = {
'2': `该公司为特区货物清关比较麻烦,请注意跟进。`,
'3': `该公司清关资料不配合存在过异常,请及时跟进。`,
'4': `该公司清关有问题无法清关,禁止走货。`
};
const colorMap = {
'2': '#fccc0c',
'3': 'red',
'4': 'black'
};
// 判断是否是特区 // 判断是否是特区
let SpecialZone =false; let SpecialZone =false;
if(address){ if(address){
SpecialZone = address.includes('Special Economic Zone') || this.recieverRegionName.includes('特区') || this.recieverRegionName === '中柬金属材料产业园'; SpecialZone = address.includes('Special Economic Zone') || this.recieverRegionName.includes('特区') || this.recieverRegionName === '中柬金属材料产业园';
} }
if ((this.categoryReciever === '2' || (SpecialZone && this.categoryReciever !=='4'))) { if ((this.categoryReciever === '2' || (SpecialZone && this.categoryReciever !=='4'))) {
msg = `该公司为特区货物清关比较麻烦,请注意跟进。`; msg = msgMap['2'];
color = '#fccc0c'; color = colorMap['2'];
} else if (this.categoryReciever === '3') { } else {
msg = `该公司清关资料不配合存在过异常,请及时跟进。`; msg = msgMap[this.categoryReciever];
color = 'red'; color = colorMap[this.categoryReciever];
} else if (this.categoryReciever === '4') {
msg = `该公司清关有问题无法清关,禁止走货。`;
color = 'black'
} }
const h = this.$createElement; const dynamicHtml=`
this.$msgbox({ <div>
title: '提示', <div style="color:${color};">
message: h('p', { <li class="el-icon-warning" style="font-size: 22px;margin-right: 5px;"></li>
style: { <span style="font-size: 16px;font-weight: bold;">${msg}</span>
color: color, </div>
// fontSize: '18px' <div style="margin-top: 10px;">
} <p> <span style="color:green;">绿色</span> <span>:无弹窗</span></p>
}, [ <p> <span style="color:${colorMap['2']};">黄色</span> <span>:${msgMap['2']}</span></p>
h('li', { class: 'el-icon-warning' }, ''), <p> <span style="color:${colorMap['3']};">红色</span> <span>:${msgMap['3']}</span></p>
h('span', null, msg), <p> <span style="color:${colorMap['4']};">黑色</span> <span>:${msgMap['4']}</span></p>
]), </div>
showCancelButton: false, </div>
confirmButtonText: '确定', `;
closeOnClickModal: false, this.$alert(dynamicHtml, '提示',{
closeOnPressEscape: false, dangerouslyUseHTMLString: true
showClose: false
}).then(() => { }).then(() => {
this.$refs.form.validateField('reciever.company'); this.$refs.form.validateField('reciever.company');
}); });