|
|
|
@ -18,7 +18,7 @@ |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<el-button type="primary" @click="saveUploadFile">保存</el-button> |
|
|
|
<el-button type="primary" :loading="saveLoading" :disabled="saveLoading" @click="saveUploadFile">保存</el-button> |
|
|
|
<el-button type="primary" @click="closeDialog">关闭</el-button> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
@ -38,6 +38,7 @@ |
|
|
|
titleCon: '文件导入', |
|
|
|
visible: false, |
|
|
|
fileList: [], |
|
|
|
saveLoading: false, |
|
|
|
pageData: { |
|
|
|
site: '', |
|
|
|
buNo: '', |
|
|
|
@ -104,6 +105,8 @@ |
|
|
|
this.$message.error("请先上传文件!") |
|
|
|
return false |
|
|
|
} |
|
|
|
|
|
|
|
this.saveLoading = true |
|
|
|
const formData = new FormData() |
|
|
|
formData.append("buNo",this.pageData.buNo) |
|
|
|
formData.append("cmcInvoice",this.pageData.cmcInvoice) |
|
|
|
@ -121,6 +124,11 @@ |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}).catch((error) => { |
|
|
|
console.error('保存失败:', error) |
|
|
|
this.$message.error('保存失败,请重试') |
|
|
|
}).finally(() => { |
|
|
|
this.saveLoading = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|