|
@@ -1242,6 +1242,7 @@ export default {
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
if (!verifyEnglish(this.form.detail.hshipperDetails)) {
|
|
|
msgsList.push('发货人')
|
|
|
}
|
|
@@ -1273,6 +1274,7 @@ export default {
|
|
|
this.$message.error(`请正确输入${msgsList.join(",")}的英文`);
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
this.saveLoading = true
|
|
|
editypesSendingEdi(row).then(res => {
|
|
|
this.saveLoading = false
|
|
@@ -2094,6 +2096,7 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
if (this.verifySymbolStatus == 1) {
|
|
|
+ /*
|
|
|
let msgsList = []
|
|
|
if (checkFullWidthSymbols(this.form.detail.hshipperDetails).hasFullWidth) {
|
|
|
let msg = []
|
|
@@ -2152,7 +2155,6 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
if (checkFullWidthSymbols(this.form.detail.mconsigneeDetails).hasFullWidth) {
|
|
|
let msg = []
|
|
|
for (let item of checkFullWidthSymbols(this.form.detail.mconsigneeDetails).positions) {
|
|
@@ -2237,6 +2239,56 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
});
|
|
|
+ */
|
|
|
+ let fldNames = 'hshipperDetails,hconsigneeDetails,hnotifyDetails,mshipperDetails,mconsigneeDetails,mnotifyDetails'.split(",");
|
|
|
+ let fldDescs = '发货人,收货人,通知人,MBL 发货人,MBL 收货人,MBL 通知人'.split(",");
|
|
|
+ let msgsList = []
|
|
|
+ fldNames.forEach((fld, idx)=>{
|
|
|
+ const cfs = checkFullWidthSymbols(this.form.detail[fld]);
|
|
|
+ if(cfs.hasFullWidth){
|
|
|
+ if(cfs.isResetText){
|
|
|
+ this.$set(this.form.detail, fld, cfs.resetText);
|
|
|
+ }
|
|
|
+ msgsList.push(fldDescs[idx] + ": " + cfs.message)
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ fldNames = 'marks,commodityDescr,forwarding,siRemarks,bookingRemarks'.split(",");
|
|
|
+ fldDescs = '唛头,货描,FORWARDING,SI 备注,订舱备注'.split(",");
|
|
|
+ fldNames.forEach((fld, idx)=>{
|
|
|
+ const cfs = checkFullWidthSymbols(this.form[fld]);
|
|
|
+ console.log(fldDescs[idx], cfs)
|
|
|
+ if(cfs.isResetText===true){
|
|
|
+ console.log("set", fld, this.form[fld], cfs.resetText)
|
|
|
+ this.$set(this.form, fld, cfs.resetText);
|
|
|
+ }
|
|
|
+ if(cfs.hasFullWidth){
|
|
|
+ msgsList.push(fldDescs[idx] + ": " + cfs.message)
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ fldNames = 'placeReceiptNamePrint,polNamePrint,podNamePrint,destinationNamePrint,placeDeliveryNamePrint,potNamePrint'.split(",");
|
|
|
+ fldDescs = '收货地,装货港,卸货港,目的地,交货地,中转港'.split(",");
|
|
|
+ fldNames.forEach((fld, idx)=>{
|
|
|
+ const cfs = checkFullWidthSymbols(this.form[fld]);
|
|
|
+ if(cfs.hasFullWidth){
|
|
|
+ if(cfs.isResetText){
|
|
|
+ this.$set(this.form, fld, cfs.resetText);
|
|
|
+ }
|
|
|
+ msgsList.push(fldDescs[idx] + ": " + cfs.message)
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ if (msgsList.length > 0) {
|
|
|
+ this.$message({
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ message: `${msgsList.join("<br/><br/>")}`,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ msgsList=[]
|
|
|
console.log(this.form.detail)
|
|
|
if (!verifyEnglish(this.form.detail.hshipperDetails)) {
|
|
|
msgsList.push('发货人')
|