소스 검색

添加orderItemId

skyblued 3 년 전
부모
커밋
99209e6638
1개의 변경된 파일20개의 추가작업 그리고 18개의 파일을 삭제
  1. 20 18
      src/views/goods-order/after-sale.tsx

+ 20 - 18
src/views/goods-order/after-sale.tsx

@@ -25,6 +25,24 @@ const returnState = {
   2: '已完成',
   3: '已拒绝'
 }
+type good = {
+  description: string;
+  memberUsername: string;
+  orderId: number;
+  orderSn: string;
+  productAttr: string;
+  productBrand: string;
+  productCount: number;
+  productId: number;
+  productName: string;
+  productPic: string;
+  productPrice: number;
+  productRealPrice: number;
+  proofPics: string;
+  returnName: string;
+  returnPhone: string;
+  orderItemId: string;
+}
 
 export default defineComponent({
   name: 'after-sale',
@@ -42,24 +60,7 @@ export default defineComponent({
         pageSize: 20
       },
 
-      returnGood: {
-        description: '',
-        memberUsername: '',
-        orderId: 0,
-        orderSn: '',
-        productAttr: '',
-        productBrand: '',
-        productCount: 0,
-        productId: 0,
-        productName: '',
-        productPic: '',
-        productPrice: 0,
-        productRealPrice: 0,
-        proofPics: '',
-        returnName: '',
-        returnPhone: '',
-        orderItemId: ''
-      },
+      returnGood: {} as good,
       reason: '', // 退货原因
       returnOrderSn: '', // 退货快递单号
       returnGoodId: 0 // 退货申请服务单号
@@ -180,6 +181,7 @@ export default defineComponent({
           })
         }
       } catch (error) {}
+      this.returnGood = {} as good
     },
 
     // 填写快递单号