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 @@ + +