chunk-5058a418.b116c8bd.js 4.7 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5058a418"],{"440e":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"detail"},[a("div",{staticClass:"bill-card-item white-card"},[t._m(0),a("div",{staticClass:"bill-center"},[a("p",{staticClass:"tit"},[t._v(t._s(t.detail.companyName))]),a("p",{staticClass:"node"},[t._v(t._s(t.detail.month)+"账单")]),a("p",{staticClass:"text"},[t._v("账单总金额:¥"+t._s(t.detail.amount))]),a("p",{staticClass:"text"},[t._v("剩余应付金额:¥"+t._s(t.detail.adjustmentAfter?t.detail.adjustmentAfter:t.detail.receivableAmount?t.detail.receivableAmount:0))])]),a("div",{staticClass:"bill-right"},[a("div",{staticClass:"type1"},[a("p",[t._v(t._s(t.detail.expirationDate)+"到期")])])])]),a("div",{staticClass:"white-box"},[t._m(1),t._l(t.detailList,function(e){return a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v(t._s(e.costName))]),a("p",{staticClass:"tit"},[t._v("¥"+t._s(e.costAmount))])])}),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("合计")]),a("p",{staticClass:"tit"},[t._v("¥"+t._s(t.total))])]),"2"==t.type?a("div",{staticClass:"detail-box",on:{click:function(e){return t.goNavigator("billView-paymentDetails-app",{id:t.id})}}},[t._v("\n 缴费详情\n ")]):t._e()],2)])},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bill-left"},[a("i",{staticClass:"iconfont icon-zhangdan1 active"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-item-tit"},[a("div",{staticClass:"tit"},[t._v("费用构成明细")])])}],n=(a("ac6a"),a("dab0")),c={data:function(){return{id:"",type:"",detail:{},detailList:[],total:0}},mounted:function(){this.id=this.$route.params.id,this.type=this.$route.params.type,this.getCompanyBillById()},methods:{getCompanyBillById:function(){var t=this;Object(n["b"])({id:this.id}).then(function(e){if(console.log(e),e){var a=t.getItemJson(e);t.detail=a,t.detailList=a.detailList;var s=0;t.detailList.forEach(function(t){s+=t.costAmount}),t.total=s}})},getItemJson:function(t){return t.expirationDate=this.$common.transDate(t.expirationDate,"MM月dd日"),t}}},o=c,r=(a("c226"),a("2877")),l=Object(r["a"])(o,s,i,!1,null,"6f32f4cc",null);e["default"]=l.exports},4568:function(t,e,a){},8982:function(t,e,a){"use strict";a.d(e,"a",function(){return f}),a.d(e,"b",function(){return m});var s=a("795b"),i=a.n(s),n=a("bc3a"),c=a.n(n),o=a("4328"),r=a.n(o),l=a("4360"),d=a("5cab"),u=a("a18c"),h=a("3089");function f(t,e){t.headers||(t.headers={}),t.headers&&d["a"].getToken()&&(t.headers["RC-Token"]=d["a"].getToken());var a={method:t.method,url:t.url,data:r.a.stringify(t.data)};return e&&(a.data=t.data),t.headers&&(a.headers=t.headers),new i.a(function(e,s){c()(a).then(function(t){if(t&&t.data&&200===t.status){var a=t.data;switch(a.errno){case 501:Object(h["Toast"])(a.errmsg),setTimeout(function(){l["a"].dispatch("user/logout").then(function(){u["a"].push("/login")})},1500),s(a.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(h["Toast"])(a.errmsg),s(a.errmsg);break}e(a)}else console.log(t),s(t)}).catch(function(e,a){console.log(t.url+" fail",e,a),Object(h["Toast"])(e),s(e,a)})})}function m(t){t.headers||(t.headers={}),t.headers&&d["a"].getToken()&&(t.headers["RC-Token"]=d["a"].getToken());var e={method:t.method,url:t.url};return e.data=t.data,t.headers&&(e.headers=t.headers,e.headers["MVVM-Key"]=String((new Date).getTime()),e.headers["xx"]="anything",e.headers["Content-Type"]="application/json;charset=UTF-8"),console.log("request: ",t),new i.a(function(a,s){c.a.defaults.withCredentials=!0,c()(e).then(function(t){if(console.log("response:",t),t&&t.data&&200===t.status){var e=t.data;switch(e.errno){case 501:Object(h["Toast"])(e.errmsg),setTimeout(function(){l["a"].dispatch("user/logout").then(function(){u["a"].push("/login")})},1500),s(e.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(h["Toast"])(e.errmsg),s(e.errmsg);break}a(e)}else console.log(t),s(t)}).catch(function(e,a){console.log(t.url+" fail",e,a),Object(h["Toast"])(e),s(e,a)})})}},c226:function(t,e,a){"use strict";var s=a("4568"),i=a.n(s);i.a},dab0:function(t,e,a){"use strict";a.d(e,"b",function(){return c}),a.d(e,"a",function(){return o}),a.d(e,"c",function(){return r});var s=a("8982"),i="/industryParkApi",n="/wx/companyBill";function c(t){return Object(s["a"])({url:i+n+"/getCompanyBillById",method:"post",data:t})}function o(t){return Object(s["a"])({url:i+n+"/billListVo",method:"post",data:t})}function r(t){return Object(s["a"])({url:i+n+"/getPayInfoByBillId",method:"post",data:t})}}}]);