(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-565574d4"],{"50fd":function(t,i,a){},"619c":function(t,i,a){"use strict";a("50fd")},af15:function(t,i,a){"use strict";a.r(i);var e=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",{staticClass:"box"},[a("div",{staticClass:"info"},[a("div",[a("div",{staticStyle:{"margin-bottom":"20px"}},[a("div",{staticClass:"infoTitle"},[t._v("申请详情")]),a("div",{staticClass:"item"},[a("p",[t._v("申请人：")]),a("p",[t._v(t._s(t.detailData.updUserName))])]),a("div",{staticClass:"item"},[a("p",[t._v("发票类型：")]),a("p",[t._v(t._s(0==t.detailData.invType?"增值税普通发票":"增值税专用发票"))])]),a("div",{staticClass:"item"},[a("p",[t._v("抬头类型：")]),a("p",[t._v(t._s(0==t.detailData.buyerType?"企业单位":"个人"))])]),a("div",{staticClass:"item"},[a("p",[t._v("发票媒介：")]),a("p",[t._v(t._s("0"==t.detailData.invMedium?"电子媒介":"纸质媒介"))])]),a("div",{staticClass:"item"},[a("p",[t._v("发票抬头：")]),a("p",[t._v(t._s(t.detailData.buyerTitle))])]),a("div",{staticClass:"item"},[a("p",[t._v("纳税人识别号：")]),a("p",[t._v(t._s(t.detailData.buyerTaxNumber))])]),a("div",{staticClass:"item"},[a("p",[t._v("公司注册地址：")]),a("p",[t._v(t._s(t.detailData.buyerRegAddress))])]),a("div",{staticClass:"item"},[a("p",[t._v("公司注册电话：")]),a("p",[t._v(t._s(t.detailData.buyerComPhone))])]),a("div",{staticClass:"item"},[a("p",[t._v("开户银行：")]),a("p",[t._v(t._s(t.detailData.buyerBankDeposit))])]),a("div",{staticClass:"item"},[a("p",[t._v("开户账号：")]),a("p",[t._v(t._s(t.detailData.buyerBankNumber))])]),a("div",{staticClass:"item"},[a("p",[t._v("开票金额（含税）:")]),a("p",[t._v(t._s(t.detailData.applyMoney))])])]),a("div",{staticStyle:{"margin-bottom":"20px"}},[a("div",{staticClass:"infoTitle"},[t._v("单据详情")]),a("div",{staticClass:"item"},[a("p",[t._v("费项：")]),a("p",[t._v(t._s(t.detailData.feeName))])]),a("div",{staticClass:"item"},[a("p",[t._v("税率：")]),a("p",[t._v(t._s(t.detailData.feeRate))])])]),t.detailData.record&&t.detailData.record.length>0?a("div",{staticStyle:{"margin-bottom":"20px"}},[a("div",{staticClass:"infoTitle"},[t._v("发票详情")]),t._l(t.detailData.record,(function(i){return a("div",{key:i.id,staticStyle:{border:"2px #ccc dashed",padding:"0 10px"}},[a("div",{staticClass:"item"},[a("p",[t._v("申请单号：")]),a("p",[t._v(t._s(i.applyNumber))])]),a("div",{staticClass:"item"},[a("p",[t._v("申请时间：")]),a("p",[t._v(t._s(i.applyTime))])]),a("div",{staticClass:"item"},[a("p",[t._v("申请状态：")]),a("p",[t._v(t._s(i.applyStatusName))])]),a("div",{staticClass:"item"},[a("p",[t._v("发票代码：")]),a("p",[t._v(t._s(i.invoiceCode))])]),a("div",{staticClass:"item"},[a("p",[t._v("发票号码：")]),a("p",[t._v(t._s(i.invoiceNo))])]),a("div",{staticClass:"item"},[a("p",[t._v("开票金额（含税）：")]),a("p",[t._v(t._s(i.applyMoney))])]),i.sourceImgUrl?a("div",{staticClass:"invoiceBtn"},[a("div",{on:{click:function(a){return t.seeImg(i.sourceImgUrl)}}},[t._v("查看发票")]),a("div",{on:{click:function(a){return t.downloadImg(i.sourceImgUrl)}}},[t._v("下载发票")])]):t._e()])}))],2):t._e(),1!=t.detailData.chargeState&&2!=t.detailData.chargeState&&1==t.detailData.status?a("div",{staticClass:"btns"},[a("van-button",{on:{click:t.goApply}},[t._v("申请换开")])],1):t._e()])]),a("van-popup",{staticStyle:{width:"100%"},model:{value:t.showInvoiceImg,callback:function(i){t.showInvoiceImg=i},expression:"showInvoiceImg"}},[a("van-image",{staticStyle:{display:"block",width:"100%"},attrs:{src:t.invoiceImg},on:{click:function(i){t.showInvoiceImg=!1}}})],1)],1)},s=[],c=(a("e7e5"),a("d399")),o=a("365c"),l={data:function(){return{detailData:{},invoiceImg:"",showInvoiceImg:!1}},mounted:function(){this.getDetail()},methods:{getDetail:function(){var t=this;o["a"].invoiceRecordDetail({id:this.$route.query.id}).then((function(i){console.log("开票详情",i),0==i.code&&(t.detailData=i.data)}))},seeImg:function(t){var i="";i=-1!=t.indexOf("http:")?t:"http:"+t,console.log(i),this.invoiceImg=i,this.showInvoiceImg=!0},downloadImg:function(t){c["a"].loading({message:"下载中...",overlay:!0,duration:0,forbidClick:!0});var i="";i=-1!=t.indexOf("http:")?t:"http:"+t,console.log(i),this.$engine.api("com.zkty.jsi.camera","saveImageToPhotoAlbum",{type:"url",imageData:i},(function(t){console.log(t),"success"==t?setTimeout((function(){c["a"].clear(),c["a"].success("下载成功")}),1e3):"fail"==t&&setTimeout((function(){c["a"].clear(),c["a"].fail("下载失败")}),1e3)}))},goApply:function(){this.$router.push({path:"/addInvoice",query:{ids:JSON.stringify([this.detailData.id]),btnType:2}})}}},n=l,v=(a("619c"),a("2877")),d=Object(v["a"])(n,e,s,!1,null,"6d0cb550",null);i["default"]=d.exports}}]);