jinhui.wang

文本修改

......@@ -644,7 +644,7 @@ export default {
{
required: true,
trigger: "blur",
message: "The tracking number cannot be empty!",
message: "Required fields not filled in.",
},
{
validator: (rule, value, callback) => {
......@@ -668,16 +668,20 @@ export default {
{
required: false,
trigger: "blur",
message: "The shipper account cannot be empty!",
message: "Required fields not filled in.",
},
{
validator: (rule, value, callback) => {
if (value != null && value != "") {
let reg = /[^\d]/;
if (value.length < 9) {
callback("Shipper accpunt needs to be 9 digits!");
callback(
"Incorrect Shipper Account(Shipper Account is composed of 9 digits)."
);
} else if (reg.test(value)) {
callback("Shipper accpunt must be a number!");
callback(
"Incorrect Shipper Account(Shipper Account is composed of 9 digits)."
);
} else {
callback();
}
......@@ -692,14 +696,14 @@ export default {
{
required: false,
trigger: "change",
message: "The orgin country/territory cannot be empty!",
message: "Required fields not filled in.",
},
],
destinationCountryCode: [
{
required: false,
trigger: "change",
message: "The destination country/territory cannot be empty!",
message: "Required fields not filled in.",
},
],
},
......
......@@ -233,7 +233,7 @@ export default {
submitWaybill(obj)
.then((res) => {
if (res.code === 200) {
this.msgSuccess("Upload success!");
this.msgSuccess("Submission successful!");
setTimeout(() => {
this.back();
this.loadings.headFormLoading = false;
......@@ -248,7 +248,7 @@ export default {
this.loadings.headFormLoading = false;
});
} else {
this.msgWarning("Please upload the file!");
this.msgWarning("Attachment not uploaded.");
this.loadings.headFormLoading = false;
}
},
......
......@@ -185,12 +185,12 @@ export default {
});
if (fileSum + 1 > 100) {
if (this.errorTip == "") {
errorTip = "The maximum number of uploaded files is 100!";
errorTip = "The total number of uploaded files should not exceed 100 files.";
this.$message.warning(this.errorTip);
}
} else if ((Number(fileSize) + Number(val.size)) / 1024 / 1024 > 95) {
if (this.errorTip == "") {
errorTip = "The maximum total size of uploaded files is 95M!";
errorTip = "The total size of all uploaded files should not exceed 95MB.";
}
} else if (fileNameArray.includes(val.name)) {
if (this.errorTip == "") {
......