chenrui 4 лет назад
Родитель
Сommit
8beaf93f29
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      src/views/purchasingManagement/bulkWarehousingOrder/edit.vue

+ 6 - 1
src/views/purchasingManagement/bulkWarehousingOrder/edit.vue

@@ -73,7 +73,7 @@
           style="padding: 0 60px;">保存并返回</a-button>
       </div>
     </a-affix>
-    <spare-parts-product-modal :openModal="openModal" :itemSn="itemSn" :nowData="productTotal" @ok="$refs.table.refresh(true)" @close="openModal=false" />
+    <spare-parts-product-modal :openModal="openModal" :itemSn="itemSn" :nowData="productTotal" @ok="$refs.table.refresh(true)" @close="closeModal" />
   </div>
 </template>
 
@@ -123,6 +123,11 @@ export default {
       this.itemSn = (row && row.sparePartsDetailSn) ? row.sparePartsDetailSn : null
       this.openModal = true
     },
+    // 关闭
+    closeModal () {
+      this.itemSn = ''
+      this.openModal = false
+    },
     //  删除
     handleDel (row) {
       const _this = this