Browse Source

2026-06-10

RoHs优化
master
fengyuan_yang 1 day ago
parent
commit
4ca45f2dea
  1. 12
      src/views/modules/rohs/rohsRecord.vue

12
src/views/modules/rohs/rohsRecord.vue

@ -543,7 +543,7 @@
v-if="modalFlag"
folder="rohs"
order-ref3="rohsAttachment"
title="RoHs 附件上传"
title="RoHS 附件上传"
:label="'序列号'"
:file-list.sync="fileList"
:no="modalData.referenceNo"
@ -1268,7 +1268,7 @@ export default {
plmRohsAuthorityArr: [],
nodeAuthorityLoaded: false,
isEditMode: false,
modalTitle: 'RoHs 新增',
modalTitle: 'RoHS 新增',
activeName: 'basicInfo',
showModalFlag: false,
submitModalFlag: false,
@ -2520,7 +2520,7 @@ export default {
this.showModalFlag = !!(row && (row.status === '已完成' || !this.authUpdate))
if (row) {
this.modalTitle = 'RoHs 编辑'
this.modalTitle = 'RoHS 编辑'
api.getRohsDetail(row.site, row.referenceNo).then(({data}) => {
if (data && data.code === 0) {
this.modalData = data.data || {}
@ -2550,7 +2550,7 @@ export default {
this.loadNodeAuthority(row.site, row.stepId !== null && row.stepId !== undefined ? row.stepId : 10)
})
} else {
this.modalTitle = 'RoHs 新增'
this.modalTitle = 'RoHS 新增'
this.showModalFlag = false
// ID
const tempReferenceNo = 'TEMP-' + new Date().getTime() + '-' + Math.floor(Math.random() * 1000)
@ -2657,7 +2657,7 @@ export default {
}
})
const submitMethod = this.modalTitle === 'RoHs 新增' ? api.saveRohs : api.updateRohs
const submitMethod = this.modalTitle === 'RoHS 新增' ? api.saveRohs : api.updateRohs
submitMethod(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.$message.success('操作成功')
@ -2914,7 +2914,7 @@ export default {
this.materialSelections = rows || []
},
shouldPersistMaterialsImmediately () {
return this.modalTitle === 'RoHs 编辑' && this.modalData && this.modalData.referenceNo && !String(this.modalData.referenceNo).startsWith('TEMP-')
return this.modalTitle === 'RoHS 编辑' && this.modalData && this.modalData.referenceNo && !String(this.modalData.referenceNo).startsWith('TEMP-')
},
normalizeMaterialListForSave (materialList) {
return (materialList || []).map((item, index) => {

Loading…
Cancel
Save