|
@@ -279,11 +279,11 @@ export default {
|
|
|
handleEdit (record) {
|
|
|
fetchSparePartUsed({ id: record.id }).then(res => {
|
|
|
const modal = this.$refs.baseModal
|
|
|
- modal.base(res.data,{sbId:this.repaireRecord.id, modelId: this.repaireRecord.modelId})
|
|
|
+ modal.base(res.data, { sbId: this.repaireRecord.id, modelId: this.repaireRecord.modelId })
|
|
|
})
|
|
|
},
|
|
|
handleFeiqi (id) {
|
|
|
- updateSparePartUsed({ id: id, status: 2}).then(res => {
|
|
|
+ updateSparePartUsed({ id: id, status: 2 }).then(res => {
|
|
|
this.$message.info('废弃成功')
|
|
|
this.handleOk()
|
|
|
this.$refs.table.clearSelected()
|
|
@@ -305,7 +305,7 @@ export default {
|
|
|
this.visible = true
|
|
|
this.modalTitle = '选择信息'
|
|
|
this.queryParam = queryParam
|
|
|
- //console.log(333, this.queryParam)
|
|
|
+ // console.log(333, this.queryParam)
|
|
|
this.repaireRecord = record
|
|
|
if (this.isCreated) {
|
|
|
this.$refs.table.clearSelected()
|
|
@@ -316,8 +316,8 @@ export default {
|
|
|
this.isCreated = true
|
|
|
}
|
|
|
},
|
|
|
- handleAdd(){
|
|
|
- this.$refs.baseModal.base(null,{sbId:this.repaireRecord.sbId,modelId: this.repaireRecord.modelId})
|
|
|
+ handleAdd () {
|
|
|
+ this.$refs.baseModal.base(null, { sbId: this.repaireRecord.sbId, modelId: this.repaireRecord.modelId })
|
|
|
},
|
|
|
handleCancel () {
|
|
|
this.visible = false
|