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 {