|
@@ -104,7 +104,11 @@
|
|
|
</view>
|
|
|
<view class="file" @click="openXls">
|
|
|
<image src="../../../static/img/excle.png" mode="" class="img_css"></image>
|
|
|
- <text class="text_css">明细.xls</text>
|
|
|
+ <text class="text_css">付款明细.xls</text>
|
|
|
+ </view>
|
|
|
+ <view class="file" @click="openXls2">
|
|
|
+ <image src="../../../static/img/excle.png" mode="" class="img_css"></image>
|
|
|
+ <text class="text_css">车辆指标.xls</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="content2">
|
|
@@ -220,6 +224,7 @@
|
|
|
id: "",
|
|
|
auditList: [],
|
|
|
url: "11",
|
|
|
+ url2:""
|
|
|
}
|
|
|
},
|
|
|
onBackPress(e) {
|
|
@@ -263,6 +268,23 @@
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ openXls2() {
|
|
|
+ if (this.url2 && this.url2 != "ng") {
|
|
|
+ uni.downloadFile({
|
|
|
+ url: this.url2,
|
|
|
+ success: function(res) {
|
|
|
+ var filePath = res.tempFilePath;
|
|
|
+ uni.openDocument({
|
|
|
+ filePath: filePath,
|
|
|
+ showMenu: true,
|
|
|
+ success: function(res) {
|
|
|
+ console.log('打开文档成功');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
getList() {
|
|
|
uni.showLoading({
|
|
|
title: "加载中...",
|
|
@@ -299,6 +321,14 @@
|
|
|
this.url = res1.data.data
|
|
|
}
|
|
|
})
|
|
|
+ this.$api.doRequest('post', '/paymentManagement/exportPhoneOrder', {
|
|
|
+ orderId: this.id,
|
|
|
+ // searchType: 1,
|
|
|
+ }).then(res1 => {
|
|
|
+ if (res1.data.code == 200) {
|
|
|
+ this.url2 = res1.data.data
|
|
|
+ }
|
|
|
+ })
|
|
|
this.$api.doRequest('post', '/warehousingOrder/exportPhoneData', {
|
|
|
searchType: 1,
|
|
|
batchId: this.id
|