Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
iClear-Connect-Pre-Clearance
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
jinhui.wang
2025-01-10 11:08:57 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
416669911c7c269a5b52965259e47d9b629a72d0
41666991
1 parent
8943c68c
文本修改
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
10 deletions
web/src/views/uploadDetail/headData.vue
web/src/views/uploadDetail/index.vue
web/src/views/uploadDetail/uploadFile.vue
web/src/views/uploadDetail/headData.vue
View file @
4166699
...
...
@@ -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.
",
},
],
},
...
...
web/src/views/uploadDetail/index.vue
View file @
4166699
...
...
@@ -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;
}
},
...
...
web/src/views/uploadDetail/uploadFile.vue
View file @
4166699
...
...
@@ -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 == "") {
...
...
Please
register
or
login
to post a comment