Browse Source

2025-07-17

1、测试申请 - 备注也需要和技术参数卡的备注区一样,使用按钮权限,都可以编辑(已完成也能够编辑)
2、基本信息页签可以在编辑中新增编辑
master
fengyuan_yang 6 months ago
parent
commit
f3689f8940
  1. 1
      src/api/sampleManagement/technicalSpecificationList.js
  2. 3
      src/api/test/testInformation.js
  3. 17
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue
  4. 76
      src/views/modules/test/requestForTest.vue
  5. 2
      src/views/modules/test/testAttribute/testProperties.vue

1
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)

3
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)

17
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()

76
src/views/modules/test/requestForTest.vue

@ -192,8 +192,7 @@
</el-pagination>
<!-- 测试模态框 -->
<el-dialog :title="modalData.title" @close="closeModalDiaLog" :close-on-click-modal="false" v-drag
:visible.sync="modalFlag" top="10vh" width="60%">
<el-dialog :title="modalData.title" @close="closeModalDiaLog" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" top="10vh" width="60%">
<el-form label-position="top" ref="modalForm" :model="modalData" :rules="rules">
<el-row :gutter="15">
<el-col :span="8">
@ -360,7 +359,11 @@
</el-row>
<el-row :gutter="15">
<el-col :span="24">
<el-form-item label="备注" style="height: 90px">
<el-form-item style="height: 90px">
<template slot="label">
<span>备注</span>
<el-button v-if="isAuth('107001:dataEntry')" style="margin-left: 6px;width: 70px;line-height: 0.6;font-size: 11px;" type="primary" @click="handleDataEntry">数据录入</el-button>
</template>
<el-input type="textarea"
:disabled="(testInformationFlag('technicalConsiderations') === 'N' && modalData.flag === '2') || detailFlag"
v-model="modalData.technicalConsiderations" :rows="3" resize='none' show-word-limit></el-input>
@ -369,14 +372,13 @@
</el-row>
</el-form>
<div class="rq">
<el-button v-if="!modalData.testNo" @click="saveData" plain type="primary" style="position:absolute;margin-top: 10px;margin-right: 10px;right: 0;z-index: 1">下一步
</el-button>
<el-button v-if="!modalData.testNo" @click="saveData" plain type="primary" style="position:absolute;margin-top: 10px;margin-right: 10px;right: 0;z-index: 1">下一步</el-button>
<el-tabs v-model="activeTab" @tab-click="dialogTabClick">
<el-tab-pane label="基本信息" :disabled="!activeTabList.includes('attribute')" name="attribute" v-if="modalData.testNo">
<test-properties v-if="modalFlag" :disabled="detailFlag" v-model:data-list="testPropertiesList" height="32vh" ref="dialogTestAttribute" :test-no="modalData.testNo"></test-properties>
<test-properties :test-status="modalData.testStatus" v-if="modalFlag" :disabled="detailFlag" v-model:data-list="testPropertiesList" height="32vh" ref="dialogTestAttribute" :test-no="modalData.testNo"></test-properties>
</el-tab-pane>
<el-tab-pane label="基本信息" :disabled="!activeTabList.includes('attribute')" name="attribute" v-else>
<test-properties v-if="modalFlag" :disabled="detailFlag" v-model:data-list="copyTestPropertiesList" height="32vh" ref="dialogTestAttribute" :test-no="modalData.testNo"></test-properties>
<test-properties :test-status="modalData.testStatus" v-if="modalFlag" :disabled="detailFlag" v-model:data-list="copyTestPropertiesList" height="32vh" ref="dialogTestAttribute" :test-no="modalData.testNo"></test-properties>
</el-tab-pane>
<el-tab-pane label="物料属性" :disabled="!activeTabList.includes('partAttribute')" name="partAttribute">
<el-table
@ -938,6 +940,21 @@
</el-footer>
</el-dialog>
<el-dialog width="850px" top="25vh" title="数据录入" :close-on-click-modal="false" :visible.sync="dataEntryFlag" v-highlight-container>
<el-form label-position="top">
<el-form-item label="备注" class="auto-form">
<el-input type="textarea" v-model="dataEntryForm.technicalConsiderations" :rows="3" resize='none'></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<div style="height:25px;margin-top: 45px">
<el-button type="primary" @click="refresh1()">刷新</el-button>
<el-button type="primary" @click="submitDataEntry()">保存</el-button>
<el-button @click="dataEntryFlag = false" type="primary">取消</el-button>
</div>
</span>
</el-dialog>
<!-- 上传文件的modal -->
<test-upload-file ref="testUploadFile" @refreshPageTables="getFileContentData()" v-drag></test-upload-file>
@ -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) {

2
src/views/modules/test/testAttribute/testProperties.vue

@ -240,7 +240,7 @@ export default {
<template>
<div>
<div style="margin-top: 5px">
<div style="margin-top: 0px">
<template v-if="isAuth('107001:tab1:save')">
<template v-if="testStatus === '草稿' || superAdmin || (approvalUsername && approvalUsername.split(';').includes(sp) && testStatus === '审批中')">
<el-button type="primary" @click="clickSaveBtn" v-if="testNo && !disabled">新增</el-button>

Loading…
Cancel
Save