|
@@ -103,7 +103,7 @@
|
|
|
<a-button type="primary" @click="openEnclosure">附件</a-button>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="8" class="noprint">
|
|
|
- <a-upload :file-list="fileList" :multiple="true" :action="importExcelUrl" :data="{code:this.planNO}" :customRequest="uploadFlie">
|
|
|
+ <a-upload :file-list="fileList" :multiple="true" :action="importExcelUrl" :data="{code:this.planNO}" :customRequest="uploadFlie" :remove="removeFile">
|
|
|
<a-button type="primary" >附件上传</a-button>
|
|
|
</a-upload>
|
|
|
<!-- <j-upload v-model="fabricLoss.attachs" ></j-upload> -->
|
|
@@ -810,6 +810,16 @@ export default {
|
|
|
fileDetail({code:this.planNO,name:file.file.name}).then(res => {
|
|
|
if (res.success) {
|
|
|
this.$message.success('上传成功');
|
|
|
+ this.message = res.message.split(';').filter((element) => {
|
|
|
+ return element !== "";
|
|
|
+ });
|
|
|
+ this.file = file
|
|
|
+ this.fileList.push({
|
|
|
+ uid: '-1',
|
|
|
+ name: file.file.name,
|
|
|
+ status: 'done',
|
|
|
+ url:'http://www.myfitt.cn:18001/jeecg-boot/sys/common/static' +'/'+file.file.name
|
|
|
+ })
|
|
|
}else{
|
|
|
this.loading = false
|
|
|
this.$message.error(res.message);
|
|
@@ -817,10 +827,10 @@ export default {
|
|
|
})
|
|
|
// const formData = new FormData()
|
|
|
// formData.append('file', file.file)
|
|
|
- console.log(file)
|
|
|
- debugger
|
|
|
},
|
|
|
- daYin(){
|
|
|
+ removeFile(data){
|
|
|
+ },
|
|
|
+ daYin(){
|
|
|
this.showSelect = 1
|
|
|
this.$nextTick(() => {
|
|
|
const html = window.document.getElementById('fabricLossTable').innerHTML
|