|
@@ -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,fileDetail } from '@api/reportForms/fabric-loss-table'
|
|
|
+import { getFabricLossDatas,saveFabricLossData,fileDetail,deleteFileDetail } from '@api/reportForms/fabric-loss-table'
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
|
|
import JUpload from '@/components/jeecg/JUpload'
|
|
@@ -809,27 +809,15 @@ export default {
|
|
|
methods: {
|
|
|
uploadFlie(file) {
|
|
|
this.fileName = file.name
|
|
|
- // fileDetail({code:this.planNO,name:file.file.name}).then(res => {
|
|
|
- // if (res.success) {
|
|
|
- // this.$message.success('上传成功');
|
|
|
- // 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);
|
|
|
- // }
|
|
|
- // })
|
|
|
- // const formData = new FormData()
|
|
|
- // formData.append('file', file.file)
|
|
|
},
|
|
|
removeFile(data){
|
|
|
- },
|
|
|
- previewFile(data){
|
|
|
- debugger
|
|
|
+ deleteFileDetail({code:this.planNO,name:data.name}).then(res => {
|
|
|
+ if (res.success) {
|
|
|
+ this.$message.success('删除成功');
|
|
|
+ }else{
|
|
|
+ this.$message.error(res.message);
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
daYin(){
|
|
|
this.showSelect = 1
|