bill.js 4.9 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/bill/bill"],{312:function(t,e,n){"use strict";(function(t,e){var i=n(4);n(26);i(n(25));var r=i(n(313));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n(1)["default"],n(2)["createPage"])},313:function(t,e,n){"use strict";n.r(e);var i=n(314),r=n(316);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);var s,a=n(32),l=Object(a["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],s);l.options.__file="pages/bill/bill.vue",e["default"]=l.exports},314:function(t,e,n){"use strict";n.r(e);var i=n(315);n.d(e,"render",(function(){return i["render"]})),n.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(e,"components",(function(){return i["components"]}))},315:function(t,e,n){"use strict";var i;n.r(e),n.d(e,"render",(function(){return r})),n.d(e,"staticRenderFns",(function(){return s})),n.d(e,"recyclableRender",(function(){return o})),n.d(e,"components",(function(){return i}));try{i={mescrollBody:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/mescroll-uni/components/mescroll-body/mescroll-body")]).then(n.bind(null,401))},uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,412))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var t=this,e=t.$createElement,n=(t._self._c,{});t.$mp.data=Object.assign({},{$root:{a0:n}})},o=!1,s=[];r._withStripped=!0},316:function(t,e,n){"use strict";n.r(e);var i=n(317),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},317:function(t,e,n){"use strict";(function(t){var i=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(318),o=n(219),s=i(n(56)),a={mixins:[s.default],data:function(){return{list:[],type:"",menu:{},payClientId:"",payMerchantId:""}},onLoad:function(e){var n=this;this.type=parseInt(e.type),this.menu=this.title(),t.setNavigationBarTitle({title:this.menu.title}),t.$on("reloadBill",(function(){n.mescroll.resetUpScroll(!1)}))},methods:{title:function(){var t={title:"",iconClass:"icon-jiesuanguanli"};switch(this.type){case 1:t={title:"合同账单",iconClass:"icon-jiesuanguanli"};break;case 2:t={title:"常规账单",iconClass:"icon-yuemingxi"};break;default:break}return t},upCallback:function(t){var e=this,n={currPage:t.num,pageSize:10,projectId:this.$store.getters.project.id};if(3===this.$store.getters.identity.id||6===this.$store.getters.identity.id)n["organizationId"]=this.$store.getters.organization.id,this.getBillList(n);else if(4===this.$store.getters.identity.id){if(this.payMerchantId)return n["payMerchantId"]=this.payMerchantId,void this.getBillList(n);(0,o.bindProjectDetail)({bindOrganizationId:this.$store.getters.organization.id,projectId:this.$store.getters.project.id,identityId:4}).then((function(t){if(200===t.code){if(0==t.data.length)return e.mescroll.endBySize(0,0);e.payMerchantId=t.data[0].merchantId,n["payMerchantId"]=e.payMerchantId,e.getBillList(n)}else e.mescroll.endErr()})).catch((function(){e.mescroll.endErr()}))}else if(1===this.$store.getters.identity.id){if(this.payClientId)return n["payClientId"]=this.payClientId,void this.getBillList(n);(0,o.bindProjectDetail)({userId:this.$store.getters.user.userId,projectId:this.$store.getters.project.id,identityId:1}).then((function(t){if(200===t.code){if(0==t.data.length)return e.mescroll.endBySize(0,0);e.payClientId=t.data[0].clientId,n["payClientId"]=e.payClientId,e.getBillList(n)}else e.mescroll.endErr()})).catch((function(){e.mescroll.endErr()}))}},getBillList:function(t){var e=this;1===this.type?(0,r.getPaymentListByPage)(t).then((function(n){if(200===n.code){e.mescroll.endBySize(n.data.dataList.length,n.data.totalCount),1==t.currPage&&(e.list=[]);var i=n.data.dataList;e.list=e.list.concat(i)}else e.mescroll.endErr()})).catch((function(){e.mescroll.endErr()})):(1!==this.$store.getters.identity.id&&4!==this.$store.getters.identity.id||(t["statusList"]=[1,2,3]),(0,r.getCommonPaymentListByPage)(t).then((function(n){if(200===n.code){e.mescroll.endBySize(n.data.dataList.length,n.data.totalCount),1==t.currPage&&(e.list=[]);var i=n.data.dataList;e.list=e.list.concat(i)}else e.mescroll.endErr()})).catch((function(){e.mescroll.endErr()})))}}};e.default=a}).call(this,n(2)["default"])}},[[312,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/bill/bill.js.map