billDetail.js 3.6 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/billDetail/billDetail"],{316:function(e,t,n){"use strict";(function(e,t){var i=n(4);n(26);i(n(25));var o=i(n(317));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n(1)["default"],n(2)["createPage"])},317:function(e,t,n){"use strict";n.r(t);var i=n(318),o=n(320);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var l,a=n(32),s=Object(a["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],l);s.options.__file="pages/billDetail/billDetail.vue",t["default"]=s.exports},318:function(e,t,n){"use strict";n.r(t);var i=n(319);n.d(t,"render",(function(){return i["render"]})),n.d(t,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(t,"components",(function(){return i["components"]}))},319:function(e,t,n){"use strict";var i;n.r(t),n.d(t,"render",(function(){return o})),n.d(t,"staticRenderFns",(function(){return l})),n.d(t,"recyclableRender",(function(){return r})),n.d(t,"components",(function(){return i}));try{i={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,335))}}}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 o=function(){var e=this,t=e.$createElement,n=(e._self._c,e.detail.id?e.__map(e.detail.paymentRecordList,(function(t,n){var i=e.__get_orig(t),o=t.attachment?JSON.parse(t.attachment):null;return{$orig:i,g0:o}})):null),i=e.detail.id?e.__map(e.detail.paymentInvoiceList,(function(t,n){var i=e.__get_orig(t),o=e.$field.findTypeName("invoiceType",t.type),r=t.attachment?JSON.parse(t.attachment):null;return{$orig:i,g1:o,g2:r}})):null,o=e.detail.id?e.operationBtn.length:null;e.$mp.data=Object.assign({},{$root:{l0:n,l1:i,g3:o}})},r=!1,l=[];o._withStripped=!0},320:function(e,t,n){"use strict";n.r(t);var i=n(321),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},321:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(315),o=function(){Promise.all([n.e("common/vendor"),n.e("components/common/upload")]).then(function(){return resolve(n(492))}.bind(null,n)).catch(n.oe)},r={data:function(){return{billId:"",type:"",detail:{},operationBtn:[]}},onLoad:function(t){var n=this;this.billId=t.billId,this.type=t.type,this.init(),e.$on("reloadBill",(function(){n.init()}))},methods:{init:function(){this.billId&&(1==this.type?(0,i.getPaymentDetailById)(this.billId).then(this.billSuccess):(0,i.getCommonPaymentDetailById)(this.billId).then(this.billSuccess))},billSuccess:function(e){200===e.code&&(this.detail=e.data,this.detail.status||1!==this.$store.getters.identity.id&&4!==this.$store.getters.identity.id||this.operationBtn.push({id:1,name:"账单付款",type:"/pages/billRecord/billRecord"}),1===this.detail.status&&this.detail.organizationId===this.$store.getters.organization.id&&this.operationBtn.push({id:2,name:"账单发票",type:"/pages/billInvoice/billInvoice"}))}},components:{upload:o}};t.default=r}).call(this,n(2)["default"])}},[[316,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/billDetail/billDetail.js.map