Browse Source

发货调整

pengyh 1 year ago
parent
commit
c32cc19fba

+ 7 - 1
src/views/mallManagement/order/order_detail/index.vue

@@ -701,7 +701,13 @@ export default {
         this.orderDetail.workerName = this.orderDetail.workerName ? this.orderDetail.workerName : '暂无'
         this.orderDetail.workerPhone = this.orderDetail.workerPhone ? this.orderDetail.workerPhone : ''
         this.evaluateDetail = res.data.orderComment;
-		    this.formData1.list = res.data.orderDetails
+		let arr = []
+		res.data.orderDetails.forEach(item=>{
+			if(item.goodsMaterialId){
+				arr.push(item)
+			}
+		})
+		this.formData1.list = arr
       })
     },
 

+ 7 - 1
src/views/mallManagement/order/order_list/index.vue

@@ -858,7 +858,13 @@ export default {
     },
 	getOrderDetail(){
 		getOrderDetail({orderId: this.editOrderId}).then(res => {
-		  this.formData1.list = res.data.orderDetails
+			let arr = []
+			res.data.orderDetails.forEach(item=>{
+				if(item.goodsMaterialId){
+					arr.push(item)
+				}
+			})
+			this.formData1.list = arr
 		})
 	},
 	changeType(){

+ 7 - 1
src/views/mallManagement/order/order_refund/index.vue

@@ -580,7 +580,13 @@ export default {
     },
     getOrderDetail(orderId) {
       getOrderDetail({ orderId: orderId || this?.order_cp?.orderId || "" }).then(res => {
-        this.formData1.list = res.data.orderDetails
+        let arr = []
+        res.data.orderDetails.forEach(item=>{
+        	if(item.goodsMaterialId){
+        		arr.push(item)
+        	}
+        })
+        this.formData1.list = arr
       })
     },
     changeType() {

+ 7 - 1
src/views/mallManagement/order/order_refund_detail/index.vue

@@ -473,7 +473,13 @@ export default {
 		
 		getOrderDetail(){
 			getOrderDetail({orderId: this.orderDetail.orderId}).then(res => {
-			  this.formData1.list = res.data.orderDetails
+			  let arr = []
+			  res.data.orderDetails.forEach(item=>{
+			  	if(item.goodsMaterialId){
+			  		arr.push(item)
+			  	}
+			  })
+			  this.formData1.list = arr
 			})
 		},
 		changeType(){