diff --git a/src/views/material/archives/index.vue b/src/views/material/archives/index.vue index 8869fa1d..8a46c498 100644 --- a/src/views/material/archives/index.vue +++ b/src/views/material/archives/index.vue @@ -644,14 +644,15 @@ export default { this.single = selection.length != 1; this.multiple = !selection.length; }, - //查看 + //******查看************ handleView(row) { console.log(row) }, + //顶部重命名按钮 handleReName(){ this.handleUpdate(this.ids[0]) }, - /** 重命名按钮操作 */ + /** (表格)重命名按钮操作 */ handleUpdate(row) { console.log(row) this.rowData=row @@ -718,6 +719,7 @@ export default { this.fileList=[] this.upload.open=true; }, + //文件上传-成功 handleSuccess(response, file, fileList) { console.log('File uploaded successfully:', response); console.log('File uploaded successfully:', file); @@ -728,19 +730,22 @@ export default { docType:response.data.name.split(".")[1], docSize:(file.size / 1024 / 1024).toFixed(2), detailsId:this.queryParams.detailsId, - infoId:this.queryParams.infoId + infoId:this.queryParams.infoId, + level:this.queryParams.level } this.uploadList.push(param) } // let size = (file.size / 1024 / 1024).toFixed(2) // console.log(size) }, + //文件上传删除 handleFileRemove(file, fileList){ console.log(file) console.log(fileList) let index = this.uploadList.findIndex(item=>item.docName==file.name) this.uploadList.splice(index,1) }, + //文件上传失败 handleError(err, file, fileList) { console.error('Error while uploading file:', err); }, @@ -767,6 +772,7 @@ export default { // this.$refs.upload.submit() }, + //取消 cancelUpload() { this.getList() this.upload.open=false @@ -794,13 +800,10 @@ export default { }, - + //切换展示模式 changeShowType(val){ - this.showType=val; - + this.showType=val; } - - }, }; diff --git a/src/views/material/purchase/goodsAccept/detail.vue b/src/views/material/purchase/goodsAccept/detail.vue index 9ea918ad..5244ca5f 100644 --- a/src/views/material/purchase/goodsAccept/detail.vue +++ b/src/views/material/purchase/goodsAccept/detail.vue @@ -1,19 +1,8 @@