|
@@ -736,11 +736,11 @@ const uploadFile = async (file) => {
|
|
|
file.id = res.id;
|
|
|
file.fileName = res.fileName;
|
|
|
file.fileUrl = res.fileUrl;
|
|
|
- file.uploadState = false;
|
|
|
+ file.uploadState = true;
|
|
|
return true;
|
|
|
};
|
|
|
const handleSuccess = (any, UploadFile) => {
|
|
|
- UploadFile.raw.uploadState = true;
|
|
|
+ UploadFile.raw.uploadState = false;
|
|
|
};
|
|
|
const onPreviewFile = (file) => {
|
|
|
window.open(file.raw.fileUrl, "_blank");
|
|
@@ -749,7 +749,7 @@ const submitHandoverForm = () => {
|
|
|
formData.data.serviceContractProductList[productIndex.value].remark = productRow.data.remark;
|
|
|
if (fileList.value && fileList.value.length > 0) {
|
|
|
for (let i = 0; i < fileList.value.length; i++) {
|
|
|
- if (!fileList.value[i].raw.uploadState) {
|
|
|
+ if (fileList.value[i].raw.uploadState) {
|
|
|
ElMessage("文件上传中,请稍后提交");
|
|
|
return;
|
|
|
}
|