Browse Source

bug修复

chenrui 3 năm trước cách đây
mục cha
commit
a07392182c
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      pages/sales/chooseProduct.vue
  2. 1 1
      pages/sales/selectedProductsModal.vue

+ 1 - 1
pages/sales/chooseProduct.vue

@@ -63,7 +63,7 @@
 		<!-- 添加/编辑产品 -->
 		<productModal :openModal="openProductModal" :infoData="productInfo" @confirm="productConfirm" @close="openProductModal=false" />
 		<!-- 已选产品 -->
-		<selectedProductsModal ref="selectedProducts" :openModal="openSelectedModal" :nowData="detailData" @edit="handleEdit" @confirm="handleChoose" @refreshTotal="selectedProductTotal" @close="openSelectedModal=false" />
+		<selectedProductsModal ref="selectedProducts" :openModal="openSelectedModal" :nowData="detailData" @edit="handleEdit" @confirm="handleChoose" @delete="init" @close="openSelectedModal=false" />
 		<!-- 弹框 -->
 		<common-modal :openModal="commonModal" :content="modalText" @confirm="handleCommon" @cancel="handleCancel" @close="commonModal=false" />
 	</view>

+ 1 - 1
pages/sales/selectedProductsModal.vue

@@ -135,7 +135,7 @@
 					if(res.status == 200){
 						this.listData.splice(this.infoData.no, 1)
 						this.commonModal = false
-						this.$emit('refreshTotal')
+						this.$emit('delete')
 					}
 				})
 			},