From f85eec072c4b5e1261f5032d5ffeb8651cf7479f Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Mon, 23 Mar 2026 14:35:48 +0800 Subject: [PATCH] =?UTF-8?q?2026-03-23=20SOP=E6=96=87=E4=BB=B6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/qc/qc.js | 2 + src/views/modules/qc/qcPartAttribute.vue | 1 + .../modules/qc/sopFileManagementUpload.vue | 130 ++++++++++++++++++ src/views/modules/qc/sopFileUpload.vue | 8 +- src/views/modules/qc/sopListComponent.vue | 29 +++- 5 files changed, 163 insertions(+), 7 deletions(-) create mode 100644 src/views/modules/qc/sopFileManagementUpload.vue diff --git a/src/api/qc/qc.js b/src/api/qc/qc.js index 8d888dc..cc400db 100644 --- a/src/api/qc/qc.js +++ b/src/api/qc/qc.js @@ -252,6 +252,8 @@ export const getCustomerList = data => createAPI(`/pms/qc/getCustomerList`,'post // ===================================== SOP清单 ===================================== export const sopListSearch = data => createAPI(`/pms/qc/sopListSearch`,'post',data) export const sopAvailableFiles = data => createAPI(`/pms/qc/sopAvailableFiles`,'post',data) +/** 物料SOP「文件上传」弹窗:批量本地上传,写入 file_management(D:\\sop_files + UspInsertSOP) */ +export const sopFileBatchUpload = data => createAPI(`/pms/qc/sopFileBatchUpload`, 'post', data) // 查询检验页面的SOP文件列表(IPQC/IQC/FQC/OQC/过程检验) export const searchQcSopFileList = data => createAPI(`/pms/qc/searchQcSopFileList`,'post',data) export const sopFileUploadSave = data => createAPI(`/pms/qc/sopFileUploadSave`,'post',data) diff --git a/src/views/modules/qc/qcPartAttribute.vue b/src/views/modules/qc/qcPartAttribute.vue index 3bf58e5..e903d1e 100644 --- a/src/views/modules/qc/qcPartAttribute.vue +++ b/src/views/modules/qc/qcPartAttribute.vue @@ -401,6 +401,7 @@ v-if="activeTable === 'partSop'" :part-no="partCurrentRow.partNo" :site="partCurrentRow.site" + :bu-no="partCurrentRow.buNo" :table-height="secondHeight - 98"> diff --git a/src/views/modules/qc/sopFileManagementUpload.vue b/src/views/modules/qc/sopFileManagementUpload.vue new file mode 100644 index 0000000..2a0f318 --- /dev/null +++ b/src/views/modules/qc/sopFileManagementUpload.vue @@ -0,0 +1,130 @@ + + + + + diff --git a/src/views/modules/qc/sopFileUpload.vue b/src/views/modules/qc/sopFileUpload.vue index 47d5989..1fd349b 100644 --- a/src/views/modules/qc/sopFileUpload.vue +++ b/src/views/modules/qc/sopFileUpload.vue @@ -213,6 +213,7 @@ export default { visible: false, currentPartNo: '', currentSite: '', + currentBuNo: '', searchForm: { fileNo: '', fileName: '', @@ -245,13 +246,14 @@ export default { }) }, - init (partNo, site) { + init (partNo, site, buNo) { this.visible = true this.currentPartNo = partNo || '' this.currentSite = site || this.$store.state.user.site + this.currentBuNo = (buNo != null && buNo !== '') ? String(buNo) : (this.$store.state.user.buNo || '') this.resetData() this.getFileList() - this.getStandardOperation(site) + //this.getStandardOperation(site) }, resetData () { this.searchForm = { @@ -416,7 +418,7 @@ export default { String(currentDate.getDate()).padStart(2, '0') const saveData = this.uploadedFileList.map(file => ({ site: this.currentSite, - buNo: file.buNo || this.$store.state.user.buNo, + buNo: file.buNo || this.currentBuNo || this.$store.state.user.buNo, partNo: this.currentPartNo, sopNo: file.fileNo, sopName: file.fileName, diff --git a/src/views/modules/qc/sopListComponent.vue b/src/views/modules/qc/sopListComponent.vue index d23fd90..c1eb1e4 100644 --- a/src/views/modules/qc/sopListComponent.vue +++ b/src/views/modules/qc/sopListComponent.vue @@ -2,7 +2,8 @@
- 文件上传 + 上传文件 + 从文件库添加 删除 @@ -114,6 +115,10 @@ + +