Commit 58c17b7b authored by 黄奎's avatar 黄奎

页面修改

parent f42718eb
......@@ -989,7 +989,7 @@
<div class="EC_floatdiv">
<input type="button" class="normalBtn" @click="getinvalid()" value="作废" />
<input type="button" class="normalBtn" @click="isShowFade=true" value="客户签字" />
<input type="button" class="normalBtn" value="下载" />
<input type="button" class="normalBtn" value="下载" @click="toContractPDF('测试一下')" />
</div>
</div>
<div class="fade" v-show="isShowFade"></div>
......@@ -1021,6 +1021,38 @@
};
},
methods: {
// 生成pdf
toContractPDF: function (title) {
let urlObj = this.domainManager();
let msg = {
TCID: this.$route.query.TCID,
orderID: this.$route.query.orderID,
};
this.$http({
headers: {
'Content-Type': 'application/json'
},
method: 'post',
url: urlObj.DomainUrl + '/api/file/GetDownLoadContract',
data: {
"msg": msg
}
}).then(res => {
if (res.data.resultCode === 1) {
let sign = title+"V2"
const a = document.createElement('a');
a.setAttribute('download', '');
a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' + sign +
'.pdf&&fPath=' + res.data.data);
a.click();
} else {
this.$message.error('PDF获取失败');
}
this.pdfLoading = false
}).catch(err => {
})
},
// qrcode () {
// let qrcode = new QRCode('qrcode', {
// width: 150,
......
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 to comment