|
@@ -103,10 +103,10 @@
|
|
|
<a-button type="primary" @click="openEnclosure">附件</a-button>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="8" class="noprint">
|
|
|
- <a-upload name="file" :file-list="fileList" :multiple="true" :action="importExcelUrl" :data="{code:this.planNO}" >
|
|
|
+ <!-- <a-upload :file-list="fileList" :multiple="true" :action="importExcelUrl" :data="{code:this.planNO}" :customRequest="uploadFlie">
|
|
|
<a-button type="primary" >附件上传</a-button>
|
|
|
- </a-upload>
|
|
|
- <!-- <j-upload v-model="fabricLoss.attachs" ></j-upload> -->
|
|
|
+ </a-upload> -->
|
|
|
+ <j-upload v-model="fabricLoss.attachs" ></j-upload>
|
|
|
<!-- <a-upload name="file" action="https://www.mocky.io/v2/5cc8019d300000980a055e76" :multiple="true" :default-file-list="fileList">
|
|
|
<a-button type="primary" >附件上传</a-button>
|
|
|
</a-upload> -->
|
|
@@ -806,6 +806,12 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ uploadFlie(file) {
|
|
|
+ const formData = new FormData()
|
|
|
+ formData.append('file', file.file)
|
|
|
+ console.log(file.file.name)
|
|
|
+ debugger
|
|
|
+ },
|
|
|
daYin(){
|
|
|
this.showSelect = 1
|
|
|
this.$nextTick(() => {
|