Browse Source

2025-06-19

技术参数卡404
master
fengyuan_yang 1 year ago
parent
commit
20140426e4
  1. 16
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue
  2. 42
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue
  3. 70
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_demoSlot.vue
  4. 3
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_packageInfo.vue
  5. 52
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue
  6. 14
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue
  7. 92
      src/views/modules/sampleManagement/technicalSpecificationDetail/technicalSpecificationDetail.vue

16
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue

@ -677,9 +677,9 @@
//
init (inData) {
if (this.searchData.codeNo != null && this.searchData.codeNo != '') {
return false;
}
// if (this.searchData.codeNo != null && this.searchData.codeNo !== '') {
// return false;
// }
//
this.searchData = JSON.parse(JSON.stringify(inData))
if (this.searchData.ifDisableFlag) {
@ -706,7 +706,7 @@
}
})
tsdBasicInformationSearch(this.searchData).then(({data}) => {
this.baseForm=data.row;
this.baseForm = data.row
this.bomData.site = data.row.site
this.bomData.partNo = data.row.finalPartNo
this.bomData.urlFile = data.row.urlFile
@ -782,7 +782,6 @@
site: row.site,
partNo: row.componentPart,
bomType: 'Manufacturing',
}
localStorage.setItem('recipeData', JSON.stringify(inData))
window.open('#/part-recipeManagement')
@ -879,12 +878,13 @@
this.submitData(tempData)
})
},
submitData (tempData) {
submitChange(tempData).then(({data}) => {
if (data && data.code === 0) {
this.submitModalFlag = false
// this.searchTable();
window.location.reload();
this.searchTable()
// window.location.reload()
this.$message({message: '操作成功', type: 'success'})
} else {
this.$alert(data.msg, '错误', {
@ -892,8 +892,8 @@
})
}
})
},
//
submitDataModal () {
this.rejectOpinion = ''

42
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue

@ -397,36 +397,38 @@
this.$nextTick(() => {
let strVal = ''
if (val === 1013) {
if(type==1) {
if (type === 1) {
strVal = this.dataForm.partType
}
}
this.$refs.baseList.init(val, strVal)
})
},
/* 列表方法的回调 */
getBaseData (val) {
if (this.tagNo === 1013) {
if(this.tagNo1==1) {
if (this.tagNo1 === 1) {
this.dataForm.partType = val.Base_id
this.dataForm.partTypeDesc = val.Base_desc
}
}
},
//
init (inData) {
if(this.dataForm.codeNo!=null&&this.dataForm.codeNo!=''){
return false;
}
// if (this.dataForm.codeNo != null && this.dataForm.codeNo !== '') {
// return false;
// }
//
this.searchData = JSON.parse(JSON.stringify(inData));
this.searchData = JSON.parse(JSON.stringify(inData))
if (this.searchData.ifDisableFlag) {
this.ifDisableFlag = true
}
//
this.searchTable();
this.searchTable()
},
refresh () {
if (this.searchData.codeNo === '' || this.searchData.codeNo === null) {
this.$alert('刷新失败请重新打开技术参数卡', '失败', {
@ -436,7 +438,7 @@
}
this.$clearHighLight()
tsdBasicInformationSearch(this.searchData).then(({data}) => {
this.baseForm=data.row;
this.baseForm = data.row
this.getNodeAuthority(data.row)
})
getOADetailForBM(this.searchData).then(({data}) => {
@ -445,39 +447,37 @@
// console.log(''+this.spForm.sp)
// console.log(''+this.searchData.username)
// console.log(this.spForm.sp.includes(this.searchData.username))
})
searchBMcustomerInfo(this.searchData).then(({data}) => {
if (data.rows.length > 0) {
this.dataForm = data.rows[0];
this.dataForm = data.rows[0]
this.$message.success( '操作成功')
}else {
this.dataForm.site = this.searchData.site
this.dataForm.codeNo = this.searchData.codeNo
}
});
})
},
searchTable () {
getOADetailForBM(this.searchData).then(({data}) => {
this.spForm.nodeName = data.row.nodeName
this.spForm.sp = data.row.sp == null ? '' : data.row.sp
})
tsdBasicInformationSearch(this.searchData).then(({data}) => {
this.baseForm=data.row;
this.baseForm = data.row
this.getNodeAuthority(data.row)
})
searchBMcustomerInfo(this.searchData).then(({data}) => {
if (data.rows.length > 0) {
this.dataForm = data.rows[0];
this.dataForm = data.rows[0]
} else {
this.dataForm.site = this.searchData.site
this.dataForm.codeNo = this.searchData.codeNo
}
});
})
},
saveData(){
this.$confirm("是否保存信息?", '保存提示', {
confirmButtonText: '确定',
@ -580,7 +580,7 @@
openNewPage (url) {
// window.open(this.$store.state.user.bmPicUrl +url);
let urlIn = url.replaceAll('\\','/')
if(url==null||url===''){
if (url === '') {
this.$alert("链接没有数据!", '错误', {
confirmButtonText: '确定'
})
@ -607,8 +607,8 @@
if (data && data.code === 0) {
submitChange(tempData).then(({data}) => {
if (data && data.code === 0) {
// this.searchTable()
window.location.reload();
this.searchTable()
// window.location.reload();
this.submitModalFlag = false
this.submitLoading = false
this.$message({message: '操作成功', type: 'success'})

70
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_demoSlot.vue

@ -181,14 +181,14 @@
})
},
methods: {
//
init (inData) {
if(this.searchData.codeNo!=null&&this.searchData.codeNo!=''){
return false;
}
// if (this.searchData.codeNo != null && this.searchData.codeNo !== '') {
// return false;
// }
//
this.searchData = JSON.parse(JSON.stringify(inData));
this.searchData = JSON.parse(JSON.stringify(inData))
if (this.searchData.ifDisableFlag) {
this.ifDisableFlag = true
}
@ -201,55 +201,45 @@
this.spForm.sp = data.row.sp == null ? '' : data.row.sp
})
searchBMPropertiesValue(this.searchData).then(({data}) => {
this.tableData = data.rows;
// this.$message({
// message: '',
// type: 'success',
// duration: 1500,
// onClose: () => {
// }
// })
});
this.tableData = data.rows
})
searchBMPropertiesHeaderForBM(this.searchData).then(({data}) => {
// this.searchData.propertiesCodeNo = data.row.propertiesCodeNo;
this.$set(this.searchData, 'propertiesCodeNo', data.row.propertiesCodeNo);
});
this.$set(this.searchData, 'propertiesCodeNo', data.row.propertiesCodeNo)
})
tsdBasicInformationSearch(this.searchData).then(({data}) => {
this.baseForm=data.row;
this.baseForm = data.row
this.getNodeAuthority(data.row)
})
this.$clearHighLight()
})
},
searchTable () {
getOADetailForBM(this.searchData).then(({data}) => {
this.spForm.nodeName = data.row.nodeName
this.spForm.sp = data.row.sp == null ? '' : data.row.sp
})
searchBMPropertiesValue(this.searchData).then(({data}) => {
this.tableData = data.rows;
this.tableData = data.rows
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
}
onClose: () => {}
})
})
});
searchBMPropertiesHeaderForBM(this.searchData).then(({data}) => {
// this.searchData.propertiesCodeNo = data.row.propertiesCodeNo;
this.$set(this.searchData, 'propertiesCodeNo', data.row.propertiesCodeNo);
});
this.$set(this.searchData, 'propertiesCodeNo', data.row.propertiesCodeNo)
})
tsdBasicInformationSearch(this.searchData).then(({data}) => {
this.baseForm=data.row;
this.baseForm = data.row
this.getNodeAuthority(data.row)
})
this.$clearHighLight()
},
refreshBMPageModal () {
this.$confirm(`是否刷新至最新模板界面,已填数据会更新到新模板中,若旧属性在新模板中被删除,该条数据会消失。`, '提示', {
confirmButtonText: '确定',
@ -258,23 +248,16 @@
}).then(() => {
refreshBMPageModal(this.searchData).then(({data}) => {
if (data && data.code === 0) {
this.searchTable();
// this.$message({
// message: '',
// type: 'success',
// duration: 1500,
// onClose: () => {
// }
// })
this.searchTable()
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
}).catch(() => {
})
},
saveTable () {
saveBMPropertiesValue(this.tableData).then(({data}) => {
if (data && data.code === 0) {
@ -292,12 +275,13 @@
confirmButtonText: '确定'
})
}
});
})
},
openNewPage(url){
// window.open(this.$store.state.user.bmPicUrl +url);
let urlIn=url.replaceAll('\\','/')
if(url==null||url===''){
if (url === '') {
this.$alert("链接没有数据!", '错误', {
confirmButtonText: '确定'
})
@ -315,9 +299,9 @@
confirmButtonText: '确定'
})
}
});
})
},
//
getNodeAuthority (row) {
getBMStatusDesc(this.searchData).then(({data}) => {
@ -405,8 +389,8 @@
if (data && data.code === 0) {
submitChange(tempData).then(({data}) => {
if (data && data.code === 0) {
// this.searchTable()
window.location.reload();
this.searchTable()
// window.location.reload();
this.submitModalFlag = false
this.submitLoading = false
this.$emit("closeModel")

3
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_packageInfo.vue

@ -66,10 +66,11 @@ export default {
}
}
},
//
init (inData) {
//
this.searchData = JSON.parse(JSON.stringify(inData));
this.searchData = JSON.parse(JSON.stringify(inData))
if (this.searchData.ifDisableFlag) {
this.ifDisableFlag = true
}

52
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue

@ -1103,56 +1103,52 @@
this.$nextTick(() => {
let strVal = ''
let roleId = ''
if(type==1) {
if (type === 1) {
strVal = this.sheetData.overPrintOperator
roleId = 'R018'
}
if(type==2) {
if (type===2) {
strVal = this.sheetData.printOperator
roleId = 'R019'
}
this.$refs.baseList.init(this.searchData.site,this.searchData.buNo, strVal,roleId)
})
},
/* 列表方法的回调 */
getBaseData (val) {
if(this.tagNo1==1) {
if (this.tagNo1 === 1) {
this.sheetData.overPrintOperator = val.username
this.sheetData.overPrintOperatorName = val.userDisplay
this.$nextTick(() => {
this.$triggerInputEvent(this.$refs.overPrintOperatorName);
});
this.$triggerInputEvent(this.$refs.overPrintOperatorName)
})
}
if(this.tagNo1==2) {
if (this.tagNo1 === 2) {
this.sheetData.printOperator = val.username
this.sheetData.printOperatorName = val.userDisplay
this.$nextTick(() => {
this.$triggerInputEvent(this.$refs.printOperatorName);
});
this.$triggerInputEvent(this.$refs.printOperatorName)
})
}
},
//
init (inData) {
if(this.dataForm.codeNo!=null&&this.dataForm.codeNo!=''){
return false;
}
// if (this.dataForm.codeNo != null && this.dataForm.codeNo !== '') {
// return false;
// }
//
this.searchData = JSON.parse(JSON.stringify(inData));
this.searchData = JSON.parse(JSON.stringify(inData))
//
this.searchTable();
this.searchTable()
},
searchTable (type) {
tsdBasicInformationSearch(this.searchData).then(({data}) => {
if (data&& data.code === 0) {
this.sheetData = data.row
this.baseForm=data.row;
this.baseForm = data.row
this.routeData.site = data.row.site
this.routeData.partNo = data.row.finalPartNo
this.getNodeAuthority(data.row)
@ -1162,8 +1158,7 @@
} else {
this.$message.error(data.msg)
}
});
})
getOADetailForBM(this.searchData).then(({data}) => {
this.spForm.nodeName = data.row.nodeName
this.spForm.sp = data.row.sp == null ? '' : data.row.sp
@ -1180,7 +1175,7 @@
} else {
this.$message.error(data.msg)
}
});
})
let inData = {
site: this.searchData.site,
codeNo: this.searchData.codeNo,
@ -1205,16 +1200,15 @@
searchTechnicalSpecificationTeamStr(inData3).then(({data}) => {
this.dataForm.peEngineerList = data.rows
})
} else {
searchBMRoute(this.searchData).then(({data}) => {
if (data&& data.code === 0) {
this.tableData = data.rows;
this.routeData = data.row;
this.tableData = data.rows
this.routeData = data.row
} else {
this.$message.error(data.msg)
}
});
})
}
},
@ -1791,9 +1785,9 @@
this.submitLoading = true
await submitChange(tempData).then(({data}) => {
if (data && data.code === 0) {
// this.searchTable();
this.searchTable()
// 2025-05-31
window.location.reload();
//window.location.reload();
this.submitModalFlag = false
this.submitLoading = false
this.$message({message: '操作成功', type: 'success'})

14
src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue

@ -632,9 +632,9 @@
//
init (inData) {
if (this.dataForm.codeNo != null && this.dataForm.codeNo !== '') {
return false;
}
// if (this.dataForm.codeNo != null && this.dataForm.codeNo !== '') {
// return false;
// }
//
this.searchData = JSON.parse(JSON.stringify(inData));
if (this.searchData.ifDisableFlag) {
@ -1125,8 +1125,8 @@
if (data && data.code === 0) {
issueChange(tempData).then(({data}) => {
if (data && data.code === 0) {
//this.searchTable()
window.location.reload();
this.searchTable()
// window.location.reload();
this.$message({message: '操作成功', type: 'success'})
} else {
this.$alert(data.msg, '错误', {
@ -1205,8 +1205,8 @@
if (data && data.code === 0) {
submitChange(tempData).then(({data}) => {
if (data && data.code === 0) {
//this.searchTable()
window.location.reload();
this.searchTable()
// window.location.reload();
this.submitModalFlag = false
this.submitLoading = false
this.$message({message: '操作成功', type: 'success'})

92
src/views/modules/sampleManagement/technicalSpecificationDetail/technicalSpecificationDetail.vue

@ -165,104 +165,128 @@
}
},
methods: {
refreshCurrentTabTable () {
this.dataForm.fieldId = this.activeName
//
this.changeHeightAuto()
if (this.activeName == 'baseInfo') {
this.getBaseInfoData();
if (this.activeName === 'baseInfo') {
this.getBaseInfoData()
// }else if (this.activeName == 'remarkPage') {
// this.changeHeight(800);
// this.getRemarkSlot();
}else if(this.activeName == 'customerInfo'){
} else if (this.activeName === 'customerInfo') {
//
this.changeHeight(800);
this.getCustomerInfo();
}else if(this.activeName == 'packageInfo'){
this.getPackageInfo();
}else if(this.activeName == 'bom'){
this.getBom();
}else if(this.activeName == 'routing'){
this.changeHeight(2000);
this.getRouting();
}else if(this.activeName == 'technicalRequirement'){
this.getTechnicalRequirement();
}else if(this.activeName == 'PEConfirm'){
this.getPEConfirm();
}else if(this.activeName == 'drawing'){
this.getDrawing();
}else if(this.activeName == 'qualityDocument'){
this.getQualityDocument();
}else if(this.activeName == 'documentControl'){
this.getDocumentControl();
}else if(this.activeName == 'peReviewed'){
this.getPeReviewed();
}else if(this.activeName == 'queteConfirm'){
this.getQueteConfirm();
}else if(this.activeName == 'fai'){
this.getFai();
}else if(this.activeName == 'cqeComfirm'){
this.getCqeComfirm();
}else if(this.activeName == 'tpInfo'){
this.changeHeight(800);
this.getTpInfo();
this.changeHeight(800)
this.getCustomerInfo()
} else if (this.activeName === 'packageInfo') {
this.getPackageInfo()
} else if (this.activeName === 'bom') {
this.getBom()
} else if (this.activeName === 'routing') {
this.changeHeight(2000)
this.getRouting()
} else if (this.activeName === 'technicalRequirement') {
this.getTechnicalRequirement()
} else if (this.activeName === 'PEConfirm') {
this.getPEConfirm()
} else if (this.activeName === 'drawing') {
this.getDrawing()
} else if (this.activeName === 'qualityDocument') {
this.getQualityDocument()
} else if (this.activeName === 'documentControl') {
this.getDocumentControl()
} else if (this.activeName === 'peReviewed') {
this.getPeReviewed()
} else if (this.activeName === 'queteConfirm') {
this.getQueteConfirm()
} else if (this.activeName === 'fai') {
this.getFai()
} else if (this.activeName === 'cqeComfirm') {
this.getCqeComfirm()
} else if (this.activeName === 'tpInfo') {
this.changeHeight(800)
this.getTpInfo()
}
},
//
getBaseInfoData () {
this.$refs.basicInformation.init(JSON.parse(JSON.stringify(this.dataForm)))
},
getRemarkSlot () {
this.$refs.remarkPage.init(JSON.parse(JSON.stringify(this.dataForm)))
},
//
getCustomerInfo () {
this.$refs.customerInfo.init(JSON.parse(JSON.stringify(this.dataForm)))
},
//
getPackageInfo () {
this.$refs.packageInfo.init(JSON.parse(JSON.stringify(this.dataForm)))
},
// BOM
getBom () {
this.$refs.bom.init(JSON.parse(JSON.stringify(this.dataForm)))
},
// Routing
getRouting () {
this.$refs.routing.init(JSON.parse(JSON.stringify(this.dataForm)))
},
getTechnicalRequirement () {
this.dataForm.type = 'technicalRequirement'
this.$refs.technicalRequirement.init(JSON.parse(JSON.stringify(this.dataForm)))
},
getPEConfirm () {
this.dataForm.type = 'PEConfirm'
this.$refs.PEConfirm.init(JSON.parse(JSON.stringify(this.dataForm)))
},
// 稿
getDrawing () {
this.dataForm.type = 'drawing'
this.$refs.drawing.init(JSON.parse(JSON.stringify(this.dataForm)))
},
//
getQualityDocument () {
this.dataForm.type = 'qualityDocument'
this.$refs.qualityDocument.init(JSON.parse(JSON.stringify(this.dataForm)))
},
getDocumentControl () {
this.dataForm.type = 'documentControl'
this.$refs.documentControl.init(JSON.parse(JSON.stringify(this.dataForm)))
},
getPeReviewed () {
this.dataForm.type='peReviewed'
this.$refs.peReviewed.init(JSON.parse(JSON.stringify(this.dataForm)))
},
getQueteConfirm () {
this.dataForm.type = 'queteConfirm'
this.$refs.queteConfirm.init(JSON.parse(JSON.stringify(this.dataForm)))
},
// FAI
getFai () {
this.dataForm.type = 'fai'
this.$refs.fai.init(JSON.parse(JSON.stringify(this.dataForm)))
},
getCqeComfirm () {
this.dataForm.type = 'cqeComfirm'
this.$refs.cqeComfirm.init(JSON.parse(JSON.stringify(this.dataForm)))
},
getTpInfo () {
this.dataForm.type = 'tpInfo'
this.$refs.tpInfo.init(JSON.parse(JSON.stringify(this.dataForm)))

Loading…
Cancel
Save