|
@@ -992,8 +992,78 @@ export default {
|
|
|
editypesSendingEdifun(row) {
|
|
|
row.billId = this.form.id
|
|
|
let msgsList = []
|
|
|
- // console.log( checkFullWidthSymbols(this.form.detail.hshipperDetails))
|
|
|
- // return
|
|
|
+ if (checkFullWidthSymbols(this.form.detail.hshipperDetails).hasFullWidth) {
|
|
|
+ let msg = []
|
|
|
+ for (let item of checkFullWidthSymbols(this.form.detail.hshipperDetails).positions) {
|
|
|
+ msg.push(`第${item.row}行的"${item.symbol}"`)
|
|
|
+ }
|
|
|
+ this.$message({
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ message: `发货人:<br>${msg.join(";<br>")}<br>存在全角或汉字符号,请确认`,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (checkFullWidthSymbols(this.form.detail.hconsigneeDetails).hasFullWidth) {
|
|
|
+ let msg = []
|
|
|
+ for (let item of checkFullWidthSymbols(this.form.detail.hconsigneeDetails).positions) {
|
|
|
+ msg.push(`第${item.row}行的"${item.symbol}"`)
|
|
|
+ }
|
|
|
+ this.$message({
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ message: `收货人:<br>${msg.join(";<br>")}<br>存在全角或汉字符号,请确认`,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (checkFullWidthSymbols(this.form.detail.hnotifyDetails).hasFullWidth) {
|
|
|
+ let msg = []
|
|
|
+ for (let item of checkFullWidthSymbols(this.form.detail.hnotifyDetails).positions) {
|
|
|
+ msg.push(`第${item.row}行的"${item.symbol}"`)
|
|
|
+ }
|
|
|
+ this.$message({
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ message: `通知人:<br>${msg.join(";<br>")}<br>存在全角或汉字符号,请确认`,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (checkFullWidthSymbols(this.form.marks).hasFullWidth) {
|
|
|
+ let msg = []
|
|
|
+ for (let item of checkFullWidthSymbols(this.form.marks).positions) {
|
|
|
+ msg.push(`第${item.row}行的"${item.symbol}"`)
|
|
|
+ }
|
|
|
+ this.$message({
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ message: `唛头:<br>${msg.join(";<br>")}<br>存在全角或汉字符号,请确认`,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (checkFullWidthSymbols(this.form.commodityDescr).hasFullWidth) {
|
|
|
+ let msg = []
|
|
|
+ for (let item of checkFullWidthSymbols(this.form.commodityDescr).positions) {
|
|
|
+ msg.push(`第${item.row}行的"${item.symbol}"`)
|
|
|
+ }
|
|
|
+ this.$message({
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ message: `货描:<br>${msg.join(";<br>")}<br>存在全角或汉字符号,请确认`,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (checkFullWidthSymbols(this.form.forwarding).hasFullWidth) {
|
|
|
+ let msg = []
|
|
|
+ for (let item of checkFullWidthSymbols(this.form.forwarding).positions) {
|
|
|
+ msg.push(`第${item.row}行的"${item.symbol}"`)
|
|
|
+ }
|
|
|
+ this.$message({
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ message: `FORWARDING:<br>${msg.join(";<br>")}<br>存在全角或汉字符号,请确认`,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
if (!verifyEnglish(this.form.detail.hshipperDetails)) {
|
|
|
msgsList.push('发货人')
|
|
|
}
|
|
@@ -1016,28 +1086,6 @@ export default {
|
|
|
this.$message.error(`请正确输入${msgsList.join(",")}的英文`);
|
|
|
return;
|
|
|
}
|
|
|
- if (!verifySymbol(this.form.detail.hshipperDetails)) {
|
|
|
- msgsList.push('发货人')
|
|
|
- }
|
|
|
- if (!verifySymbol(this.form.detail.hconsigneeDetails)) {
|
|
|
- msgsList.push('收货人')
|
|
|
- }
|
|
|
- if (!verifySymbol(this.form.detail.hnotifyDetails)) {
|
|
|
- msgsList.push('通知人')
|
|
|
- }
|
|
|
- if (!verifySymbol(this.form.marks)) {
|
|
|
- msgsList.push('唛头')
|
|
|
- }
|
|
|
- if (!verifySymbol(this.form.commodityDescr)) {
|
|
|
- msgsList.push('货描')
|
|
|
- }
|
|
|
- if (!verifySymbol(this.form.forwarding)) {
|
|
|
- msgsList.push('FORWARDING')
|
|
|
- }
|
|
|
- if (msgsList.length > 0) {
|
|
|
- this.$message.error(`请正确输入${msgsList.join(",")}的英文符号`);
|
|
|
- return;
|
|
|
- }
|
|
|
this.saveLoading = true
|
|
|
editypesSendingEdi(row).then(res => {
|
|
|
this.saveLoading = false
|