Pārlūkot izejas kodu

https://dev.wormwood.com.sg/zentao/task-view-829.html

wudebin 7 mēneši atpakaļ
vecāks
revīzija
8699ea3cd2
1 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  1. 10 0
      WebApp-Lite/pages/receipt/index.vue

+ 10 - 0
WebApp-Lite/pages/receipt/index.vue

@@ -225,6 +225,13 @@
         </svg>
         <view class="text-email">Send receipt to my email</view>
       </view>
+      <view class="card-view flexc" @click="downloadReceipt">
+        <i-icon
+          name="file-download-fill"
+          color="#009E81"
+          size="46rpx"/>
+        <view class="text-email">Download receipt</view>
+      </view>
       <button class="ui-button button-anim" type="primary" @click="toHome">DONE</button>
     </view>
   </x-skeleton>
@@ -306,6 +313,9 @@ import apiCharge from '@/api/apiCharge';
           uni.stopPullDownRefresh();
         })
       },
+      downloadReceipt() {
+        apiCharge.downloadRecript(this.chargingPk);
+      }
     },
     onPullDownRefresh() {
       this.getReceipt();