Explorar o código

发起退款表单补上字段 unitType

shizhongqi %!s(int64=4) %!d(string=hai) anos
pai
achega
9f67fed77a
Modificáronse 2 ficheiros con 16 adicións e 3 borrados
  1. 0 1
      ghsApp/src/admin/home/newOrderList.vue
  2. 16 2
      ghsApp/src/pagesOrder/refund.vue

+ 0 - 1
ghsApp/src/admin/home/newOrderList.vue

@@ -117,7 +117,6 @@ export default {
   },
   onLoad(option) {
     this.selectType = parseInt(option.type)
-    console.log(this.selectType)
     this.tabIndex = parseInt(option.type) - 1
     
     this._list();

+ 16 - 2
ghsApp/src/pagesOrder/refund.vue

@@ -121,7 +121,14 @@ export default {
 					return false
 				}
 				if(Number(ele.refundCount)>0){
-					product.push({"productId":ele.productId,"num":ele.refundCount,"unitType":ele.unitType,unitName:ele.xhUnitName,unitPrice:ele.xhUnitPrice})
+					product.push({
+						"productId":ele.productId,
+						"num":ele.refundCount,
+						"unitType":ele.unitType,
+						unitName:ele.xhUnitName,
+						unitType:ele.xhUnitType,
+						unitPrice:ele.xhUnitPrice
+					})
 				}
 			})
 			if(hasError){
@@ -131,7 +138,14 @@ export default {
 				uni.showToast({title:'请选择商品',icon:'none'})
 				return;
 			}
-			let refundParams = {id:this.option.id,product:JSON.stringify(product),price:this.refundMoney,remark:this.remark,refundType:this.refundType,getOriginalItem:1};
+			let refundParams = {
+				id:this.option.id,
+				product:JSON.stringify(product),
+				price:this.refundMoney,
+				remark:this.remark,
+				refundType:this.refundType,
+				getOriginalItem:1
+			};
 			that.$util.confirmModal({content:'确认退款?'},() => {
 				uni.showLoading({title: "提交中",mask:true})
 				refund(refundParams).then(res => {