瀏覽代碼

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

wudebin 7 月之前
父節點
當前提交
8699ea3cd2
共有 1 個文件被更改,包括 10 次插入0 次删除
  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();