Commit 9b2a5027 by liangjianmin

css

parent acf947fd
Showing with 24 additions and 3 deletions
...@@ -40,10 +40,11 @@ ...@@ -40,10 +40,11 @@
<text class="t3">{{ total }}</text> <text class="t3">{{ total }}</text>
</view> </view>
</view> </view>
<view class="btn row rowCenter verCenter"> <view class="btn row rowCenter verCenter" @click="download()">
<text class="iconfont icon-a-riqi12"></text> <text class="iconfont icon-a-riqi12"></text>
<text class="tt">付款通知书</text> <text class="tt">付款通知书</text>
</view> </view>
<web-view :src="url" v-if="flag"></web-view>
</view> </view>
</template> </template>
...@@ -56,7 +57,9 @@ export default { ...@@ -56,7 +57,9 @@ export default {
orderNo: '', orderNo: '',
applyPayment: {}, applyPayment: {},
detail: {}, detail: {},
total: '' total: '',
flag: false,
url: ''
}; };
}, },
onLoad(options) { onLoad(options) {
...@@ -78,6 +81,19 @@ export default { ...@@ -78,6 +81,19 @@ export default {
this.detail = res.data[0]; this.detail = res.data[0];
} }
}); });
},
download() {
const token = uni.getStorageSync('token') || '';
this.request(API.GetPaymentNoticePrintData, 'GET', { number: this.orderNo, auth_token: token }, false).then(res => {
if (res.err_code === 0) {
this.url = res.data;
this.flag = true;
} else {
uni.showToast({
title: res.err_msg
});
}
});
} }
} }
}; };
......
...@@ -85,7 +85,12 @@ const API = { ...@@ -85,7 +85,12 @@ const API = {
/** /**
* 付款详情 * 付款详情
* */ * */
GetPaymentDetails: API_BASE + '/supplywechatorder/getPaymentDetails' GetPaymentDetails: API_BASE + '/supplywechatorder/getPaymentDetails',
/**
* 付款通知书
* */
GetPaymentNoticePrintData: API_BASE + '/supplywechatorder/getPaymentNoticePrintData'
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment