chunk-183052a2.ccecd573.js 12 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-183052a2"],{3846:function(t,e,o){o("9e1e")&&"g"!=/./g.flags&&o("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:o("0bfb")})},"5a92":function(t,e,o){"use strict";var n=o("6208"),a=o.n(n);a.a},"5dbc":function(t,e,o){var n=o("d3f4"),a=o("8b97").set;t.exports=function(t,e,o){var i,s=e.constructor;return s!==o&&"function"==typeof s&&(i=s.prototype)!==o.prototype&&n(i)&&a&&a(t,i),t}},"61ae":function(t,e,o){t.exports={color_0:"#000",color_3:"#333",color_6:"#666",color_9:"#999",color_b:"#bbb",color_d:"#ddd",color_e:"#eee",color_f2:"#f2f2f2",color_f5:"#f5f5f5",color_fa:"#fafafa",color_fc:"#fcfcfc",color_f:"#fff",color_on:"#FD5A57",pad:"120px"}},6208:function(t,e,o){},"62ba":function(t,e,o){"use strict";var n=o("c467"),a=o.n(n);a.a},"6b54":function(t,e,o){"use strict";o("3846");var n=o("cb7c"),a=o("0bfb"),i=o("9e1e"),s="toString",r=/./[s],c=function(t){o("2aba")(RegExp.prototype,s,t,!0)};o("79e5")((function(){return"/a/b"!=r.call({source:"a",flags:"b"})}))?c((function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?a.call(t):void 0)})):r.name!=s&&c((function(){return r.call(this)}))},"7b42":function(t,e,o){"use strict";var n=o("c8fc"),a=o.n(n);a.a},"7e2d":function(t,e,o){"use strict";var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("transition",{attrs:{name:"marsk-fade"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:t.toastConfig.isShow,expression:"toastConfig.isShow"}],staticClass:"marsk"})]),t._v(" "),o("transition",{attrs:{name:"slide-fade"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:t.toastConfig.isShow,expression:"toastConfig.isShow"}],class:["action-toast",t.toastConfig.center?"center":""]},[o("p",[t._v(t._s(t.toastConfig.message))]),t._v(" "),o("div",{staticClass:"button-group"},[o("el-button",{attrs:{type:"danger",size:"mini",round:""},nativeOn:{click:function(e){return e.preventDefault(),t.sure(e)}}},[t._v("确定")]),t._v(" "),t.toastConfig.showCancel?o("el-button",{attrs:{type:"info",size:"mini",round:""},nativeOn:{click:function(e){return e.preventDefault(),t.cancel(e)}}},[t._v("取消")]):t._e()],1)])])],1)},a=[],i={name:"Toast",props:{toastConfig:{isShow:{type:Boolean,default:function(){return!1}},showCancel:{type:Boolean,default:function(){return!1}},center:{type:Boolean,default:function(){return!1}},message:{type:String,default:function(){return""}}}},methods:{sure:function(){this.$emit("putToast",!0)},cancel:function(){this.$emit("putToast",!1)}}},s=i,r=(o("62ba"),o("bbf7"),o("2877")),c=Object(r["a"])(s,n,a,!1,null,"58b7edca",null);e["a"]=c.exports},"8b97":function(t,e,o){var n=o("d3f4"),a=o("cb7c"),i=function(t,e){if(a(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{n=o("9b43")(Function.call,o("11e9").f(Object.prototype,"__proto__").set,2),n(t,[]),e=!(t instanceof Array)}catch(a){e=!0}return function(t,o){return i(t,o),e?t.__proto__=o:n(t,o),t}}({},!1):void 0),check:i}},"90a5":function(t,e,o){"use strict";var n=o("61ae"),a=o.n(n);a.a},"950e":function(t,e,o){t.exports={color_0:"#000",color_3:"#333",color_6:"#666",color_9:"#999",color_b:"#bbb",color_d:"#ddd",color_e:"#eee",color_f2:"#f2f2f2",color_f5:"#f5f5f5",color_fa:"#fafafa",color_fc:"#fcfcfc",color_f:"#fff",color_on:"#FD5A57",pad:"120px"}},a326:function(t,e,o){"use strict";var n=o("a462"),a=o.n(n);a.a},a462:function(t,e,o){t.exports={color_0:"#000",color_3:"#333",color_6:"#666",color_9:"#999",color_b:"#bbb",color_d:"#ddd",color_e:"#eee",color_f2:"#f2f2f2",color_f5:"#f5f5f5",color_fa:"#fafafa",color_fc:"#fcfcfc",color_f:"#fff",color_on:"#FD5A57",pad:"120px"}},aa77:function(t,e,o){var n=o("5ca1"),a=o("be13"),i=o("79e5"),s=o("fdef"),r="["+s+"]",c="​…",f=RegExp("^"+r+r+"*"),l=RegExp(r+r+"*$"),u=function(t,e,o){var a={},r=i((function(){return!!s[t]()||c[t]()!=c})),f=a[t]=r?e(p):s[t];o&&(a[o]=f),n(n.P+n.F*r,"String",a)},p=u.trim=function(t,e){return t=String(a(t)),1&e&&(t=t.replace(f,"")),2&e&&(t=t.replace(l,"")),t};t.exports=u},bbf7:function(t,e,o){"use strict";var n=o("950e"),a=o.n(n);a.a},c467:function(t,e,o){},c5f6:function(t,e,o){"use strict";var n=o("7726"),a=o("69a8"),i=o("2d95"),s=o("5dbc"),r=o("6a99"),c=o("79e5"),f=o("9093").f,l=o("11e9").f,u=o("86cc").f,p=o("aa77").trim,v="Number",d=n[v],h=d,g=d.prototype,_=i(o("2aeb")(g))==v,w="trim"in String.prototype,b=function(t){var e=r(t,!1);if("string"==typeof e&&e.length>2){e=w?e.trim():p(e,3);var o,n,a,i=e.charCodeAt(0);if(43===i||45===i){if(o=e.charCodeAt(2),88===o||120===o)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+e}for(var s,c=e.slice(2),f=0,l=c.length;f<l;f++)if(s=c.charCodeAt(f),s<48||s>a)return NaN;return parseInt(c,n)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,o=this;return o instanceof d&&(_?c((function(){g.valueOf.call(o)})):i(o)!=v)?s(new h(b(e)),o,d):b(e)};for(var m,C=o("9e1e")?f(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),y=0;C.length>y;y++)a(h,m=C[y])&&!a(d,m)&&u(d,m,l(h,m));d.prototype=g,g.constructor=d,o("2aba")(n,v,d)}},c8fc:function(t,e,o){},fc31:function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"invoice"},[o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",attrs:{stripe:"",size:"small",height:"440",data:t.listData,"element-loading-text":"拼命加载中","row-class-name":t.tableRowClassName}},t._l(t.headerData,(function(e,n){return o("el-table-column",{key:n,attrs:{align:"center",prop:e.prop,label:e.label,sortable:e.sortable},scopedSlots:t._u([{key:"default",fn:function(n){return["operation"==e.prop&&"0"==n.row["invoiceState"]?o("span",{attrs:{slot:"content"},slot:"content"},[o("el-checkbox",{on:{change:t.getChecked},model:{value:n.row[e.prop],callback:function(o){t.$set(n.row,e.prop,o)},expression:"scope.row[header.prop]"}})],1):"operation"==e.prop&&"1"==n.row["invoiceState"]?o("span",{attrs:{slot:"content"},slot:"content"},[t._v("--")]):"operation"==e.prop&&"2"==n.row["invoiceState"]?o("span",{staticClass:"operation",attrs:{slot:"content"},on:{click:function(e){return t.viewInvoice(n.row["pointId"],n.row["invoiceId"])}},slot:"content"},[t._v("查看发票")]):"invoiceState"==e.prop?o("span",{attrs:{slot:"content"},slot:"content"},[t._v(t._s("0"==n.row[e.prop]?"未开票":"1"==n.row[e.prop]?"开票中":"已开票"))]):o("span",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(n.row[e.prop]))])]}}],null,!0)})})),1),t._v(" "),o("div",{staticClass:"pagination"},[o("el-pagination",{attrs:{background:"",layout:"prev, pager, next",small:!1,"pager-count":5,"page-size":t.size,"current-page":t.page,total:t.total},on:{"current-change":t.currentChange}}),t._v(" "),o("el-button",{attrs:{type:"danger",size:"mini",plain:"",round:""},nativeOn:{click:function(e){return e.preventDefault(),t.getInvoice(e)}}},[t._v(t._s(t.checkedList.length>1?"当前选中"+t.checkedList.length+"项,合并开票":"开票"))])],1),t._v(" "),o("Toast",{attrs:{toastConfig:t.toastConfig},on:{putToast:t.getToast}}),t._v(" "),o("ViewInvoice",{attrs:{viewConfig:t.viewConfig},on:{putView:t.getView}})],1)},a=[],i=(o("6b54"),o("c5f6"),o("7e2d")),s=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("transition",{attrs:{name:"marsk-fade"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:t.viewConfig.isShow,expression:"viewConfig.isShow"}],staticClass:"marsk"})]),t._v(" "),o("transition",{attrs:{name:"slide-fade"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:t.viewConfig.isShow,expression:"viewConfig.isShow"}],staticClass:"action-view"},[o("div",{staticClass:"header"},[o("div",{staticClass:"operation"},[o("i",{staticClass:"el-icon-circle-close",on:{click:t.close}})]),t._v(" "),o("p",[t._v("共"+t._s(t.viewConfig.total)+"笔交易,合计金额¥"+t._s(t.viewConfig.amount))]),t._v(" "),o("el-button",{attrs:{size:"mini",round:"",plain:""},nativeOn:{click:function(e){return e.preventDefault(),t.sure(e)}}},[t._v("补寄发票")])],1),t._v(" "),o("div",{staticClass:"content"},t._l(t.viewConfig.dataList,(function(e,n){return o("div",{key:n,staticClass:"list"},[o("div",{staticClass:"desc"},[o("p",[t._v("\n "+t._s(e.desc)+"\n "),0==n&&t.viewConfig.total>1?o("span",{staticClass:"target"},[t._v("当前")]):t._e()]),t._v(" "),o("span",[t._v(t._s(e.createTime))])]),t._v(" "),o("span",{staticClass:"price"},[t._v(t._s(e.money))])])})),0)])])],1)},r=[],c={name:"ViewInvoice",props:{viewConfig:{isShow:{type:Boolean,default:function(){return!1}},total:{type:Number,default:function(){return 0}},amount:{type:Number,default:function(){return 0}},dataList:{type:Array,default:function(){return[]}}}},methods:{sure:function(){this.$emit("putView",this.viewConfig.dataList[0].invoiceId)},close:function(){this.$emit("putView",!1)}}},f=c,l=(o("5a92"),o("a326"),o("2877")),u=Object(l["a"])(f,s,r,!1,null,"1a72af54",null),p=u.exports,v=o("b775"),d={name:"Invoice",components:{Toast:i["a"],ViewInvoice:p},data:function(){return{toastConfig:{isShow:!1,showCancel:!1,center:!1,message:""},viewConfig:{isShow:!1,dataList:[],amount:0},loading:!1,headerData:[],listData:[],checkedList:[],page:1,size:10,total:0}},computed:{},created:function(){this.addHeader(),this.getData()},methods:{getData:function(){var t=this,e={transCode:"C00011",type:"1",page:this.page,count:this.size};Object(v["c"])(e).then((function(e){t.listData=e.rows,t.total=e.total,t.listData.map((function(e,o){e.index=(t.page-1)*t.size+o+1,e.money="¥"+Number(e.money).toFixed(2)}))})).catch((function(t){}))},addHeader:function(){var t=[];t.push({label:"序号",prop:"index"}),t.push({label:"描述",prop:"desc"}),t.push({label:"时间",prop:"createTime"}),t.push({label:"金额",prop:"money"}),t.push({label:"状态",prop:"invoiceState"}),t.push({label:"操作",prop:"operation"}),this.headerData=t},tableRowClassName:function(t,e){return!0===t.row.operation?"selected":""},viewInvoice:function(t,e){var o=this,n={transCode:"C00014",pointId:t,invoiceId:e};Object(v["c"])(n).then((function(t){var e=t.rows;e.map((function(t,e){t.money="¥"+Number(t.money).toFixed(2)})),o.viewConfig={isShow:!0,total:t.total,amount:Number(t.totalMoney).toFixed(2),dataList:e}})).catch((function(t){}))},getChecked:function(){var t=this;this.checkedList=[],this.listData.map((function(e){!0===e.operation&&t.checkedList.push(e.pointId)}))},currentChange:function(t){this.page=t,this.getData()},invoice:function(){var t=this,e={transCode:"C00013",pointId:this.checkedList.toString()};Object(v["c"])(e).then((function(e){t.toastConfig={isShow:!0,showCancel:!1,center:!0,message:"已申请发票,请耐心等待!"},t.getData()})).catch((function(t){}))},getInvoice:function(){this.checkedList.length<=0?this.toastConfig={isShow:!0,showCancel:!1,center:!0,message:"请选择需要开票项!"}:1==this.checkedList.length?this.invoice():this.toastConfig={isShow:!0,showCancel:!0,center:!1,message:"同时勾选多项时将合并到一张发票上,您确定开发票吗?"}},getToast:function(t){this.toastConfig.isShow=!1,t&&"同时勾选多项时将合并到一张发票上,您确定开发票吗?"==this.toastConfig.message?this.invoice():t&&console.log("确定")},getView:function(t){var e=this;if(this.viewConfig.isShow=!1,t){var o={transCode:"C00015",id:t};Object(v["c"])(o).then((function(t){e.toastConfig={isShow:!0,showCancel:!1,center:!0,message:"已补寄发票,请查收邮箱。"}})).catch((function(t){}))}}}},h=d,g=(o("7b42"),o("90a5"),Object(l["a"])(h,n,a,!1,null,"347df635",null));e["default"]=g.exports},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);