Browse Source

2025-06-10

master
fengyuan_yang 7 months ago
parent
commit
15c3426bb3
  1. 7
      src/api/part/bomManagement.js
  2. 16
      src/views/modules/sampleManagement/com_technical-add-or-update.vue
  3. 64
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue

7
src/api/part/bomManagement.js

@ -203,4 +203,11 @@ export const queryPartListBom = data => createAPI(`/plm/bomManagement/queryPartL
*/
export const queryPartListAll = data => createAPI(`/plm/bomManagement/queryPartListAll`,'post',data)
/**
* 查子物料BOM
*/
export const queryComponentPartBomList = data => createAPI(`/plm/bomManagement/queryComponentPartBomList`,'post',data)

16
src/views/modules/sampleManagement/com_technical-add-or-update.vue

@ -1107,13 +1107,21 @@
return false
}
this.dataForm.engineerList = []
this.dataForm.engineerList.push(this.dataForm.engineerNo) // Engineer
if (this.dataForm.engineerNo !== '') {
this.dataForm.engineerList.push(this.dataForm.engineerNo) // Engineer
}
this.dataForm.technicianList = []
this.dataForm.technicianList.push(this.dataForm.technicianNo) // Artwork
if (this.dataForm.technicianNo !== '') {
this.dataForm.technicianList.push(this.dataForm.technicianNo) // Artwork
}
this.dataForm.csOperatorList = []
this.dataForm.csOperatorList.push(this.dataForm.csOperater) // CS
if (this.dataForm.csOperater !== '') {
this.dataForm.csOperatorList.push(this.dataForm.csOperater) // CS
}
this.dataForm.planOperatorList = []
this.dataForm.planOperatorList.push(this.dataForm.planOperator) // Planner
if (this.dataForm.planOperator !== '') {
this.dataForm.planOperatorList.push(this.dataForm.planOperator) // Planner
}
this.saveLoading = true
saveTechnicalSpecificationSheet(this.dataForm).then(({data}) => {
if (data && data.code === 0) {

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

@ -948,13 +948,21 @@
saveData () {
this.dataForm.engineerList = []
this.dataForm.engineerList.push(this.dataForm.engineerNo) // Engineer
if (this.dataForm.engineerNo !== '') {
this.dataForm.engineerList.push(this.dataForm.engineerNo) // Engineer
}
this.dataForm.technicianList = []
this.dataForm.technicianList.push(this.dataForm.technicianNo) // Artwork
if (this.dataForm.technicianNo !== '') {
this.dataForm.technicianList.push(this.dataForm.technicianNo) // Artwork
}
this.dataForm.csOperatorList = []
this.dataForm.csOperatorList.push(this.dataForm.csOperater) // CS
if (this.dataForm.csOperater !== '') {
this.dataForm.csOperatorList.push(this.dataForm.csOperater) // CS
}
this.dataForm.planOperatorList = []
this.dataForm.planOperatorList.push(this.dataForm.planOperator) // Planner
if (this.dataForm.planOperator !== '') {
this.dataForm.planOperatorList.push(this.dataForm.planOperator) // Planner
}
this.$confirm("是否保存基本信息?", '保存提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
@ -1055,13 +1063,21 @@
type: 'warning'
}).then(() => {
this.dataForm.engineerList = []
this.dataForm.engineerList.push(this.dataForm.engineerNo) // Engineer
if (this.dataForm.engineerNo !== '') {
this.dataForm.engineerList.push(this.dataForm.engineerNo) // Engineer
}
this.dataForm.technicianList = []
this.dataForm.technicianList.push(this.dataForm.technicianNo) // Artwork
if (this.dataForm.technicianNo !== '') {
this.dataForm.technicianList.push(this.dataForm.technicianNo) // Artwork
}
this.dataForm.csOperatorList = []
this.dataForm.csOperatorList.push(this.dataForm.csOperater) // CS
if (this.dataForm.csOperater !== '') {
this.dataForm.csOperatorList.push(this.dataForm.csOperater) // CS
}
this.dataForm.planOperatorList = []
this.dataForm.planOperatorList.push(this.dataForm.planOperator) // Planner
if (this.dataForm.planOperator !== '') {
this.dataForm.planOperatorList.push(this.dataForm.planOperator) // Planner
}
let tempData = {
...this.dataForm,
site: this.searchData.site,
@ -1082,13 +1098,21 @@
type: 'warning'
}).then(() => {
this.dataForm.engineerList = []
this.dataForm.engineerList.push(this.dataForm.engineerNo) // Engineer
if (this.dataForm.engineerNo !== '') {
this.dataForm.engineerList.push(this.dataForm.engineerNo) // Engineer
}
this.dataForm.technicianList = []
this.dataForm.technicianList.push(this.dataForm.technicianNo) // Artwork
if (this.dataForm.technicianNo !== '') {
this.dataForm.technicianList.push(this.dataForm.technicianNo) // Artwork
}
this.dataForm.csOperatorList = []
this.dataForm.csOperatorList.push(this.dataForm.csOperater) // CS
if (this.dataForm.csOperater !== '') {
this.dataForm.csOperatorList.push(this.dataForm.csOperater) // CS
}
this.dataForm.planOperatorList = []
this.dataForm.planOperatorList.push(this.dataForm.planOperator) // Planner
if (this.dataForm.planOperator !== '') {
this.dataForm.planOperatorList.push(this.dataForm.planOperator) // Planner
}
let tempData = {
...this.dataForm,
site: this.searchData.site,
@ -1130,13 +1154,21 @@
type: 'warning'
}).then(() => {
this.dataForm.engineerList = []
this.dataForm.engineerList.push(this.dataForm.engineerNo) // Engineer
if (this.dataForm.engineerNo !== '') {
this.dataForm.engineerList.push(this.dataForm.engineerNo) // Engineer
}
this.dataForm.technicianList = []
this.dataForm.technicianList.push(this.dataForm.technicianNo) // Artwork
if (this.dataForm.technicianNo !== '') {
this.dataForm.technicianList.push(this.dataForm.technicianNo) // Artwork
}
this.dataForm.csOperatorList = []
this.dataForm.csOperatorList.push(this.dataForm.csOperater) // CS
if (this.dataForm.csOperater !== '') {
this.dataForm.csOperatorList.push(this.dataForm.csOperater) // CS
}
this.dataForm.planOperatorList = []
this.dataForm.planOperatorList.push(this.dataForm.planOperator) // Planner
if (this.dataForm.planOperator !== '') {
this.dataForm.planOperatorList.push(this.dataForm.planOperator) // Planner
}
let tempData = {
...this.dataForm,
site: this.searchData.site,

Loading…
Cancel
Save