
{
        template: '${tmpl}',
                data: function() {
                        return {
                                time: null,
                                name: null,
                                phone: null,
                                email: null,
                                useraddress: null,
                                fpnr: null,
                                fpje: null,
                                gmfmc: null,
                                nsrsbh1: null,
                                address1: null,
                                tel1: null,
                                khh1: null,
                                khhzh1: null,
                                xsfmc: null,
                                nsrsbh2: null,
                                address2: null,
                                tel2: null,
                                khh2: null,
                                khhzh2: null,
                        }
                },
        mounted: function() {

        },
        created: function() {
                this.time = new Date().toLocaleDateString();
        },
        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: "",
                        };
                        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'
                                        })
                                } else {
                                        this.$message.warning("操作异常，请刷新页面");
                                }
                        })
                }
        },
        vname: "gsb-invoice"
}
