|
@@ -159,7 +159,7 @@ export default {
|
|
sbTypeTreeData: [],
|
|
sbTypeTreeData: [],
|
|
typeMap: {},
|
|
typeMap: {},
|
|
periodTypeMap: {},
|
|
periodTypeMap: {},
|
|
- oldSpareId:null
|
|
|
|
|
|
+ oldSpareId: null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
@@ -178,19 +178,17 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
base (record) {
|
|
base (record) {
|
|
- console.log(record)
|
|
|
|
this.visible = true
|
|
this.visible = true
|
|
- this.oldSpareId=record.spareId
|
|
|
|
|
|
+ this.oldSpareId = record.spareId
|
|
|
|
+ this.sbId = record.sbId
|
|
if (this.BaseTool.Object.isBlank(record.modelId)) {
|
|
if (this.BaseTool.Object.isBlank(record.modelId)) {
|
|
- this.sbId = record.id
|
|
|
|
- console.log(this.sbId)
|
|
|
|
this.modalTitle = '添加'
|
|
this.modalTitle = '添加'
|
|
const { form: { setFieldsValue } } = this
|
|
const { form: { setFieldsValue } } = this
|
|
// 日期处理
|
|
// 日期处理
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
setFieldsValue(Object.assign({
|
|
setFieldsValue(Object.assign({
|
|
'modelId': record.modelId,
|
|
'modelId': record.modelId,
|
|
- 'sbId': record.id
|
|
|
|
|
|
+ 'sbId': record.sbId
|
|
}))
|
|
}))
|
|
})
|
|
})
|
|
return
|
|
return
|
|
@@ -212,7 +210,8 @@ export default {
|
|
'period',
|
|
'period',
|
|
'periodType',
|
|
'periodType',
|
|
'num',
|
|
'num',
|
|
- 'oldSpareId'
|
|
|
|
|
|
+ 'oldSpareId',
|
|
|
|
+ 'sbId'
|
|
])))
|
|
])))
|
|
})
|
|
})
|
|
},
|
|
},
|