chunk-ac4b5814.ceb5290c.js 8.7 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ac4b5814"],{"36c8":function(t,i,e){"use strict";e("daf7")},"81af":function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABgdJREFUWEfNmG+MXFUZxp/nzLbFnXvXlkIUEYO4tJ3ZEvaD0aRqi1qNGI1ioayGNtu5sw1/qkRUaCnRJWDZqigGDKS9d7bUFCwgxhCNRKUUBBJjTIXdO6UsDVEE/AftzJ2p3TL3MXemK7uz9+7s0H7omU9z7/u+5/c+55z3vDPEKTZ4ivHgbQEtzQfvqkkfN2CvwPMIvTNKTOBhQgcR4i8S9vg7rNfaTXj2QIMy2b8FqwBcJWAFAdNishDAXgj3+O+zHsIgo+8tx6yALhgor6iFvAvQ0kZEjkt6huTTMDgAhW80HpsFkM6XuIzAMkBzjxOMGmLDiGs/3oqoJVDGKd9E4GY0FHld5FDNhMMHtnX9e6bgS67RQh6t5CjdAGAhwFDUYNG1b5nJLxHo3H6dlk5VhgX1RcEA3FGtHbvlpR0LDrXKcvL7c/vfmN9p5twE6uv1pIgHSocP9b/84DlH4uIkAvU45fsF9EGqGNOxdsTtfLgdkGbbpQPVS8KwthOARXL3qGv1zRook69spsJb6zBIXTRSSP/pRGAmfBfnKh9MMdwTQUn4drEwffmmKZRxyssJ7AEIQ3PZiSozTal8+Uuh+GD0PGX0iee223sn20wFGpTJ/DXYR+ICgD/0Pesbs1JmUI0SMMujnXWC2wFdB3DEPyd94WS/KUA9ufIqEQ9Fpyl1pNb93H3zG8c5Ziy6snp2x7HwOkCfA/j+holeAvjIOM2PxtzOl5N8e/s1fzwVvAjgdACrfc+uKxaNKUDZfPBbSCsFbix61takgD35YK2EuwF1xtlIOELoar/QtSMpRsYJrie0FcJjfsH+5DSg7nXlM+cYvkooHA9x9tiw/a+4YBknWEPgXkAtahgjg3WjnnVvr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45S/QJorJa0kECmWOATUAPweMHcXvc5fxrUfb2vJkvZFqoMXgegVcB7B43/H6DCBgxD21d60Ht+/k4mFNSmTNhRqJfbJeX/KAf0PjwJ6Q+zXuOQAAAAASUVORK5CYII="},b054:function(t,i,e){"use strict";e.r(i);var a=function(){var t=this,i=t._self._c;return i("div",{staticClass:"wrap"},[i("div",{staticClass:"header-wrap"},[i("div",{staticClass:"header"},[i("img",{staticClass:"return-img",attrs:{src:e("f5a4"),alt:""},on:{click:function(i){return t.$router.back()}}}),i("p",{staticClass:"header-title"},[t._v("申请开票")])])]),i("div",{staticClass:"card goods"},[i("img",{staticClass:"cover",attrs:{src:t.info.order_item?t.info.order_item[0].cover:"",alt:""}}),i("div",{staticClass:"info"},[i("div",{staticClass:"item"},[t._v("订单编号  "+t._s(t.info.order_no))]),i("div",{staticClass:"item"},[t._v("\n 开票金额  "),i("span",{staticClass:"price"},[i("span",{staticClass:"small"},[t._v("¥")]),t._v(" "+t._s(t.info.price_total))])])])]),i("div",{staticClass:"invoice card"},[i("div",{staticClass:"item"},[i("div",{staticClass:"label bolder",staticStyle:{"font-size":"14px"}},[t._v("发票类型")]),i("div",{staticClass:"value tips",on:{click:function(i){return i.stopPropagation(),t.$router.push("/activity_ticket_select")}}},[t._v("\n 获取搞一下汽车电子发票抬头\n ")])]),i("div",{staticClass:"type-list"},t._l(t.bill_type_list,(function(e){return i("div",{staticClass:"type-item",class:{current:t.bill_info.type==e.id},on:{click:function(i){t.bill_info.type=e.id}}},[t._v("\n "+t._s(e.title)+"\n ")])})),0),t._m(0),i("div",{staticClass:"item"},[i("div",{staticClass:"label require"},[t._v("单位名称")]),i("div",{staticClass:"value"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.bill_info.header,expression:"bill_info.header"}],attrs:{type:"text",placeholder:"填写需要开具发票的企业名称"},domProps:{value:t.bill_info.header},on:{input:function(i){i.target.composing||t.$set(t.bill_info,"header",i.target.value)}}})])]),i("div",{staticClass:"item"},[i("div",{staticClass:"label require"},[t._v("纳税人识别号")]),i("div",{staticClass:"value"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.bill_info.identify_number,expression:"bill_info.identify_number"}],attrs:{type:"text",placeholder:"请输入纳税人识别号"},domProps:{value:t.bill_info.identify_number},on:{input:function(i){i.target.composing||t.$set(t.bill_info,"identify_number",i.target.value)}}})])]),i("div",{staticClass:"item"},[i("div",{staticClass:"label require"},[t._v("邮箱")]),i("div",{staticClass:"value"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.bill_info.email,expression:"bill_info.email"}],attrs:{type:"text",placeholder:"请输入邮箱"},domProps:{value:t.bill_info.email},on:{input:function(i){i.target.composing||t.$set(t.bill_info,"email",i.target.value)}}})])]),i("div",{staticClass:"item"},[i("div",{staticClass:"label"},[t._v("备注")]),i("div",{staticClass:"value"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:t.bill_info.remark,expression:"bill_info.remark"}],attrs:{type:"text",placeholder:"选填,限制300字"},domProps:{value:t.bill_info.remark},on:{input:function(i){i.target.composing||t.$set(t.bill_info,"remark",i.target.value)}}})])])]),i("div",{staticClass:"footer"},[i("div",{staticClass:"btn",on:{click:t.submit}},[t._v("提交申请")])])])},s=[function(){var t=this,i=t._self._c;return i("div",{staticClass:"item"},[i("div",{staticClass:"label bolder"},[t._v("发票抬头")]),i("div",{staticClass:"value tips",staticStyle:{"font-size":"13px"}},[i("img",{staticClass:"icon",attrs:{src:e("81af"),alt:""}}),t._v("公司\n ")])])}],r=(e("1c01"),e("58b2"),e("8e6e"),e("f3e2"),e("d25f"),e("ac6a"),e("456d"),e("7514"),e("ade3")),l=e("f523");function n(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);i&&(a=a.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,a)}return e}function o(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?n(Object(e),!0).forEach((function(i){Object(r["a"])(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):n(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}var c={data:function(){return{info:{},bill_info:{type:"",header:"",identify_number:"",email:"",remark:""},bill_type_list:[]}},mounted:function(){this.info.id=this.$route.query.order_id,this.getBillType(),this.getOrderDetail()},beforeRouteEnter:function(t,i,e){e((function(t){if("/activity_ticket_select"===i.path){var e=JSON.parse(localStorage.getItem("bill"));t.bill_info=o(o({},t.bill_info),e),localStorage.removeItem("bill")}}))},methods:{getBillType:function(){var t=this;l["e"].getBillType().then((function(i){var e=i.data;t.bill_type_list=e.list}))},getOrderDetail:function(){var t=this;l["p"].getOrderDetail({order_id:this.info.id}).then((function(i){var e=i.data;t.info=e.detail}))},submit:function(){var t=this,i=[{key:"type",msg:"请选择发票类型"},{key:"header",msg:"请填写单位名称"},{key:"identify_number",msg:"请填写纳税人识别号"},{key:"email",msg:"请填写邮箱"}],e=i.find((function(i){return!t.bill_info[i.key]}));if(e)return this.$toast(e.msg);l["p"].applyBill(o({order_id:this.info.id},this.bill_info)).then((function(i){var e=i.msg;t.$toast(e),setTimeout((function(){t.$router.back()}),1e3)}))}}},f=c,v=(e("36c8"),e("2877")),u=Object(v["a"])(f,a,s,!1,null,"f1fecc1c",null);i["default"]=u.exports},daf7:function(t,i,e){},f5a4:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAm5JREFUWEft2MnLTlEYAPDfZx4yK8WCWLBgwQIbSobIkMiwYiMbJX+JWLFRSmJBUoYyLCjDQoREQgghikQiQ4/OW8eXvPfe976fV31ne8+9z+8+59xzn3O6dHjr6nCfXmCrI9RTGeyH2XiEl2XQPQEci5MJ+AlLcKkost3AcTiH6RloN3Z0AnACzmNqhvmBFTj1r4ETE25KBvmObdhbFBf92jHEgYrMBbLRvmEL9pfBtQM4LeHGZ5Cv2ITDZXF1A2fgLOLDaLQv2IhjVXB1AmfhDMZkkM9YW+aD+NNL1DEH5+I0RmYBPmJ1WmKqJu/Xfa0C5+MEhmWKD2kpudiSLN3cCnARjmNIBnmHZbhaB66VDC7HEQzKIG/Tb+x6XbiqwDU4hAEZ5BUW43aduCrA9TiIqE4a7TliuO/VjSsLjA8hSqV8zj3BQjxsB64scDRiKPPs3UzZe9MJwDBEmbSz2/J0JyFLFaJFX6jKMrMdu7oh76ehflY0cNF+VYDx7K3Ygz5ZoCjnYz4+Lhq8SL+qwHj2ZuxD3yzQ04R8UCR4kT6tAOP5G3AA/bNgL9KcvFsE0KxPq8B4fhQFUesNzIK9Tgv3rWaAZtfrAEaM+P8exeAsYPz6luJaM8TfrtcFjBjxgUTxMDQL+D7hr1RF1gkMw7xUfg3PQFF+rcSFKsi6gWGYkwrYURkoNuwxV2NLUKq1AxiAmWkLEKcKjRZbgHUpw4WR7QIGIE4T4lSh+yZqAS4XFbYTGIY4VYg9cpwyNFrHHH00QJMTchLidGFVOkwqlMR2Z7CBGIHYJsTf5UYhWerUU8Aypt/69gIrp+5/GeKfiUBcKeCBb1YAAAAASUVORK5CYII="}}]);
  2. //# sourceMappingURL=chunk-ac4b5814.ceb5290c.js.map