From fe25a7f10197e4b28c6cf537fd493a9cc32e8e3b Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Fri, 17 Jan 2025 15:40:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E4=BB=A3=E7=A0=81=E6=A2=B3?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/material/archives/index.vue | 19 +- .../material/purchase/goodsAccept/detail.vue | 226 ++------ .../material/purchase/goodsAccept/index.vue | 12 +- .../purchase/goodsArrived/component/home.vue | 483 +++--------------- .../purchase/goodsBind/component/home.vue | 4 +- .../material/purchase/goodsEntry/index.vue | 11 +- .../testedInBound/component/editApply.vue | 5 +- 7 files changed, 149 insertions(+), 611 deletions(-) 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 @@