|
@@ -103,10 +103,10 @@
|
|
|
<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">
|
|
|
<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> -->
|
|
@@ -469,7 +469,7 @@ import imoneyCell from '@views/reportForms/fabric-loss-table/imoneyCell.vue'
|
|
|
import iquantityMoreLessModal from '@views/reportForms/fabric-loss-table/iquantityMoreLessModal.vue'
|
|
|
import otherYarnsInModal from '@views/reportForms/fabric-loss-table/otherYarnsInModal.vue'
|
|
|
import AttachmentDisplay from '@views/reportForms/fabric-loss-table/attachment-display.vue'
|
|
|
-import { getFabricLossDatas,saveFabricLossData } from '@api/reportForms/fabric-loss-table'
|
|
|
+import { getFabricLossDatas,saveFabricLossData,fileDetail } from '@api/reportForms/fabric-loss-table'
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
|
|
import JUpload from '@/components/jeecg/JUpload'
|
|
@@ -807,9 +807,17 @@ export default {
|
|
|
|
|
|
methods: {
|
|
|
uploadFlie(file) {
|
|
|
- const formData = new FormData()
|
|
|
- formData.append('file', file.file)
|
|
|
- console.log(file.file.name)
|
|
|
+ fileDetail({code:this.planNO,name:file.file.name}).then(res => {
|
|
|
+ if (res.success) {
|
|
|
+ this.$message.success('上传成功');
|
|
|
+ }else{
|
|
|
+ this.loading = false
|
|
|
+ this.$message.error(res.message);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // const formData = new FormData()
|
|
|
+ // formData.append('file', file.file)
|
|
|
+ console.log(file)
|
|
|
debugger
|
|
|
},
|
|
|
daYin(){
|