Browse Source

跳转优化

shish 2 tháng trước cách đây
mục cha
commit
b0762da44b
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      ghsApp/src/pagesOrder/detail.vue

+ 3 - 1
ghsApp/src/pagesOrder/detail.vue

@@ -782,7 +782,9 @@ export default {
 			return dateStr.substr(2, 14)
 		},
 		goTree(item){
-			this.$util.pageTo({url: '/pagesOrder/tree?orderSn='+this.detailInfo.orderSn+'&productId='+item.productId})
+			if(item.kind == 2 || Number(item.dishNum) > 0){
+				this.$util.pageTo({url: '/pagesOrder/tree?orderSn='+this.detailInfo.orderSn+'&productId='+item.productId})
+			}
 		},
 		printTree(item){
 			this.treePrintItem = item