|
@@ -296,6 +296,9 @@
|
|
|
this.dataForm = {}
|
|
|
this.productDetails = []
|
|
|
this.materialList = []
|
|
|
+ this.optionsSource = []
|
|
|
+ this.optionsTech = []
|
|
|
+ this.optionsDraw = []
|
|
|
this.visible = true
|
|
|
this.id = id || 0
|
|
|
this.display = display
|
|
@@ -318,14 +321,38 @@
|
|
|
data.data.productMaterialList.forEach((item) => {
|
|
|
this.materialList.push(item)
|
|
|
})
|
|
|
+ // 产品来源
|
|
|
+ if (data.data.source) {
|
|
|
+ this.optionsSource = [{
|
|
|
+ code: data.data.source,
|
|
|
+ value: data.data.sourceName
|
|
|
+ }]
|
|
|
+ }
|
|
|
+ // 产品工艺
|
|
|
+ if (data.data.techId) {
|
|
|
+ this.optionsTech = [{
|
|
|
+ code: data.data.techId,
|
|
|
+ value: data.data.techName
|
|
|
+ }]
|
|
|
+ }
|
|
|
// 产品图纸
|
|
|
- if (data.data.attachList) {
|
|
|
- data.data.attachList.forEach((item) => {
|
|
|
- this.fileList.push({
|
|
|
- name: item.fileName,
|
|
|
- url: item.url,
|
|
|
- id: item.url
|
|
|
+ if (data.data.proDrawings) {
|
|
|
+ this.dataForm.drawingIdList = []
|
|
|
+ data.data.proDrawings.forEach((item) => {
|
|
|
+ if (item.attachList) {
|
|
|
+ item.attachList.forEach((item1) => {
|
|
|
+ this.fileList.push({
|
|
|
+ name: item1.fileName,
|
|
|
+ url: item1.url,
|
|
|
+ id: item1.url
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.optionsDraw.push({
|
|
|
+ code: item.drawingId,
|
|
|
+ value: item.drawingName
|
|
|
})
|
|
|
+ this.dataForm.drawingIdList.push(item.drawingId)
|
|
|
})
|
|
|
}
|
|
|
}
|