// downTemplate:点击’下载商业发票’触发
downTemplate() {
if (this.productInfoList.length) {
let params = {
“shipper.company”: this.shipper.companyNameUser,
“shipper.add”: this.shipper.site,
“shipper.tel”: this.shipper.phone,
“consignee.company”: this.consignee.companyNameUser,
“consignee.add”: this.consignee.site,
“consignee.tel”: this.consignee.phone,
productInfoList: [],
userId: this.getCookie.userId,
totalAmount: this.amountTotal
};
for (let val in this.productInfoList) {
params[“productInfoList[” + val + “].orderNo”] = this.productInfoList[val].orderNo;
params[“productInfoList[” + val + “].date”] = this.productInfoList[val].date
params[“productInfoList[” + val + “].totalAmount”] = this.productInfoList[val].totalAmount
}
sendRequest(this, “Financial”, “export”, params, res => {
console.log(res);
});
} else {
this.$message({
message: “请先勾选订单项”,
type: “warning”
});
}
},
点击'下载商业发票'触发
最新推荐文章于 2020-10-09 14:40:36 发布