From f3689f8940e0400459a14cc2bc03e8e712087928 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Thu, 17 Jul 2025 16:32:46 +0800 Subject: [PATCH] =?UTF-8?q?2025-07-17=201=E3=80=81=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=20-=20=E5=A4=87=E6=B3=A8=E4=B9=9F=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E5=92=8C=E6=8A=80=E6=9C=AF=E5=8F=82=E6=95=B0=E5=8D=A1?= =?UTF-8?q?=E7=9A=84=E5=A4=87=E6=B3=A8=E5=8C=BA=E4=B8=80=E6=A0=B7=EF=BC=8C?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=8C=89=E9=92=AE=E6=9D=83=E9=99=90=EF=BC=8C?= =?UTF-8?q?=E9=83=BD=E5=8F=AF=E4=BB=A5=E7=BC=96=E8=BE=91=EF=BC=88=E5=B7=B2?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=B9=9F=E8=83=BD=E5=A4=9F=E7=BC=96=E8=BE=91?= =?UTF-8?q?=EF=BC=89=202=E3=80=81=E5=9F=BA=E6=9C=AC=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E9=A1=B5=E7=AD=BE=E5=8F=AF=E4=BB=A5=E5=9C=A8=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E4=B8=AD=E6=96=B0=E5=A2=9E=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../technicalSpecificationList.js | 1 + src/api/test/testInformation.js | 3 + .../com_tsd_basicInformation.vue | 17 ++--- src/views/modules/test/requestForTest.vue | 76 +++++++++++++++++-- .../test/testAttribute/testProperties.vue | 2 +- 5 files changed, 82 insertions(+), 17 deletions(-) diff --git a/src/api/sampleManagement/technicalSpecificationList.js b/src/api/sampleManagement/technicalSpecificationList.js index b77b884..d513df0 100644 --- a/src/api/sampleManagement/technicalSpecificationList.js +++ b/src/api/sampleManagement/technicalSpecificationList.js @@ -173,5 +173,6 @@ export const updateBMCutCutBatch= data => createAPI(`/technicalSpecification/upd export const updateBMInkMixingColorBatch= data => createAPI(`/technicalSpecification/updateBMInkMixingColorBatch`,'post',data) +export const updateBMBasicInfoEntry= data => createAPI(`/technicalSpecification/updateBMBasicInfoEntry`,'post',data) diff --git a/src/api/test/testInformation.js b/src/api/test/testInformation.js index e3494c5..43b4286 100644 --- a/src/api/test/testInformation.js +++ b/src/api/test/testInformation.js @@ -113,3 +113,6 @@ export const submitChange = data => createAPI(`/plm/testInformation/submitChange */ export const testInformationEditStatus = data => createAPI(`/plm/testInformation/testInformationEditStatus`,'post',data) +export const testInfoEditEntry = data => createAPI(`/plm/testInformation/testInfoEditEntry`,'post',data) + +export const getTestRemarkEntry = data => createAPI(`/plm/testInformation/getTestRemarkEntry`,'post',data) diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue index bdcf66f..5e7b8dc 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue @@ -431,6 +431,7 @@ searchPartLastQuotationNo,getBMStatusDesc,getOADetailForBM, submitChange, issueChange, // 下达 // 提交 searchBMUser, + updateBMBasicInfoEntry, } from "@/api/sampleManagement/technicalSpecificationList.js" import { getNodeAuthority, // 获取节点权限 @@ -1404,13 +1405,13 @@ this.dccVisible = false }, - handleDataEntry(){ + handleDataEntry () { this.dataEntryForm.remarkPage = this.dataForm.remarkPage this.dataEntryForm.relevancePartNo = this.dataForm.relevancePartNo this.dataEntryFlag = true }, - refresh1(){ + refresh1 () { this.$clearHighLight() tsdBasicInformationSearch(this.searchData).then(({data}) => { if (data&&data.code === 0){ @@ -1420,17 +1421,15 @@ }) }, - submitDataEntry(){ + submitDataEntry () { let params = { - ...this.dataForm, - remarkPage: this.dataEntryForm.remarkPage, - relevancePartNo: this.dataEntryForm.relevancePartNo, site: this.searchData.site, - userName: this.$store.state.user.name, codeNo: this.searchData.codeNo, - menuId: '103002' + remarkPage: this.dataEntryForm.remarkPage, + relevancePartNo: this.dataEntryForm.relevancePartNo, + updateBy: this.$store.state.user.name, } - updateBMBasicInformation(params).then(({data}) => { + updateBMBasicInfoEntry(params).then(({data}) => { if (data && data.code === 0) { this.$message.success( '操作成功') this.$clearHighLight() diff --git a/src/views/modules/test/requestForTest.vue b/src/views/modules/test/requestForTest.vue index d82b267..6a8d770 100644 --- a/src/views/modules/test/requestForTest.vue +++ b/src/views/modules/test/requestForTest.vue @@ -192,8 +192,7 @@ - + @@ -360,7 +359,11 @@ - + + @@ -369,14 +372,13 @@
- 下一步 - + 下一步 - + - + + + + + + + + +
+ 刷新 + 保存 + 取消 +
+
+
+ @@ -963,6 +980,8 @@ import { getCustomerInformation, // 获取客户信息 submitChange, // 提交 testInformationEditStatus, // 下达 + testInfoEditEntry, + getTestRemarkEntry, } from '@/api/test/testInformation.js' import { getNodeAuthority, // 获取节点权限 @@ -2346,6 +2365,10 @@ export default { partPageSize: 20, partPageTotal: 0, superAdmin: false, + dataEntryForm: { + technicalConsiderations: '', + }, + dataEntryFlag: false, } }, @@ -2372,6 +2395,45 @@ export default { methods: { + // 数据录入 + handleDataEntry () { + this.dataEntryForm.technicalConsiderations = this.modalData.technicalConsiderations + this.dataEntryFlag = true + }, + + // 刷新 + refresh1 () { + let tempData = { + site: this.modalData.site, + testNo: this.modalData.testNo + } + getTestRemarkEntry(tempData).then(({data}) => { + if (data && data.code === 0) { + this.dataEntryForm.technicalConsiderations = data.row.technicalConsiderations + } + }) + }, + + // 保存 + submitDataEntry () { + let params = { + site: this.modalData.site, + testNo: this.modalData.testNo, + technicalConsiderations: this.dataEntryForm.technicalConsiderations, + updateBy: this.$store.state.user.name, + } + testInfoEditEntry(params).then(({data}) => { + if (data && data.code === 0) { + this.getDataList() + this.modalData.technicalConsiderations = this.dataEntryForm.technicalConsiderations + this.$message.success( '操作成功') + this.dataEntryFlag = false + } else { + this.$message.error(data.msg) + } + }) + }, + fetchNodeOptions() { getNodeList(this.searchData).then(({ data }) => { if (data && data.code === 0) { diff --git a/src/views/modules/test/testAttribute/testProperties.vue b/src/views/modules/test/testAttribute/testProperties.vue index bb21ca9..cb4995f 100644 --- a/src/views/modules/test/testAttribute/testProperties.vue +++ b/src/views/modules/test/testAttribute/testProperties.vue @@ -240,7 +240,7 @@ export default {