Browse Source

设备bug修复

LAPTOP-16IUEB3P\Lenovo 2 years ago
parent
commit
c4511be430
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/views/ledgerAssets/equipment/components/DialogGoods.vue

+ 3 - 2
src/views/ledgerAssets/equipment/components/DialogGoods.vue

@@ -117,7 +117,7 @@
           categoryLevelId: ''
         },
         current: {},
-        radio:''
+        radio:null
       };
     },
     computed: {
@@ -186,6 +186,7 @@
         });
       },
       reload () {
+        this.radio = null
         this.$nextTick(() => {
           this.$refs.table.reload({
             pageNum: 1,
@@ -214,7 +215,7 @@
           this.radio = row.id
       },
       submit () {
-        if (!this.current.id) {
+        if (!this.current) {
           return this.$message.error('请选择物品编码');
         }
         this.$emit('succeed', this.current);