Commit 33ecdb87 by 宋毅

tj

parent 327fe49d
{
template: '${tmpl}',
data: function() {
......@@ -32,30 +33,33 @@
methods: {
submit(){
let obj = {
invoiceTime: this.time,
merchantId: "18asf854584",
merchantAccount: this.khhzh2,
merchantName: this.xsfmc,
merchantCreditCode: this.nsrsbh2,
merchantAddr: this.address2,
merchantMobile: this.tel2,
merchantBank: this.khh2,
invoiceAmount: this.fpje,
statements: "wwww.baidu.com",
contract: "www.qq.com",
applyNo: "",
mailAddr: this.useraddress,
mailMobile: this.phone,
mailTo: this.name,
payWay: "",
payAccount: "",
invoiceTime: this.time,
merchantId: "18asf854584",
merchantAccount: this.khhzh2,
merchantName: this.xsfmc,
merchantCreditCode: this.nsrsbh2,
merchantAddr: this.address2,
merchantMobile: this.tel2,
merchantBank: this.khh2,
invoiceAmount: this.fpje,
statements: "wwww.baidu.com",
contract: "www.qq.com",
applyNo: "",
mailAddr: this.useraddress,
mailMobile: this.phone,
mailTo: this.name,
payWay: "",
payAccount: "",
};
this.$root.postReq("/web/auth/userCtl/invoice",obj).then(res => {
if(res.status == 0){
this.$root.postReq("/web/auth/userCtl/invoice", obj).then(res => {
var result = JSON.parse(rtn.stdout);
if (result.status == 0) {
this.$root.pushx({
title:'',
name:'/fapiao'
title: '',
name: '/fapiao'
})
} else {
this.$message.warning("操作异常,请刷新页面");
}
})
}
......
......@@ -6,7 +6,7 @@
</div>
<div class="fapiao-main">
<div class="fapiao-items">
<div class="fapiao-item" v-for="(item,index) in orderList">
<div class="fapiao-item" v-for="(item,index) in orderList" @click="openUrl(item.invoiceImg)">
<div class="top">
<h3>{{item.merchantName}}</h3>
<h4>{{item.statusName}}</h4>
......
......@@ -6,16 +6,22 @@
}
},
mounted: function() {
this.$root.postReq("/web/auth/userCtl/invoicelist",{}).then(res => {
this.$root.postReq("/web/auth/userCtl/invoicelist", {}).then(res => {
console.log(JSON.parse(res.stdout));
this.orderList =JSON.parse(res.stdout).data.rows;
this.orderList = JSON.parse(res.stdout).data.rows;
})
},
created: function() {
},
methods: {
openUrl(invoiceImg){
if (invoiceImg) {
window.open(invoiceImg);
} else {
this.$message.warning("暂未开票,敬请期待");
}
}
},
vname: "gsb-fapiao"
}
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