3254194295 il y a 2 ans
Parent
commit
1096c6222e

+ 5 - 5
src/views/sqarepartmanage/sparepartused/modules/SparePartUsedSelectModal.vue

@@ -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