lex 2 years ago
parent
commit
fc126ba1ef
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/service/GoodsSale.vue

+ 3 - 3
src/views/service/GoodsSale.vue

@@ -626,7 +626,7 @@ export default {
           goodsSellDtos: this.goodsList,
           marketAmount: this.marketAmount ? this.marketAmount : 0,
           type: 1,
-          couponIdList: this.obj.couponIdList || [],
+          couponIdList: this.obj ? this.obj.couponIdList : [],
         })
           .then((res) => {
             setLoading(false);
@@ -723,8 +723,8 @@ export default {
         userId: this.studentId,
         goodsSellDtos: goodsList,
         marketAmount: this.marketAmount ? this.marketAmount : 0,
-        isUseBalancePayment: this.obj.payType,
-        couponIdList: this.obj.couponIdList,
+        isUseBalancePayment: this.obj ? this.obj.payType : false,
+        couponIdList: this.obj ? this.obj.couponIdList : [],
       })
         .then((res) => {
           setLoading(false);