12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/billDetail/billDetail"],{321:function(t,e,n){"use strict";(function(t,e){var i=n(4);n(26);i(n(25));var o=i(n(322));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n(1)["default"],n(2)["createPage"])},322:function(t,e,n){"use strict";n.r(e);var i=n(323),o=n(325);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);var l,r=n(32),s=Object(r["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],l);s.options.__file="pages/billDetail/billDetail.vue",e["default"]=s.exports},323:function(t,e,n){"use strict";n.r(e);var i=n(324);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"]}))},324:function(t,e,n){"use strict";var i;n.r(e),n.d(e,"render",(function(){return o})),n.d(e,"staticRenderFns",(function(){return l})),n.d(e,"recyclableRender",(function(){return a})),n.d(e,"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,470))}}}catch(r){if(-1===r.message.indexOf("Cannot find module")||-1===r.message.indexOf(".vue"))throw r;console.error(r.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 t=this,e=t.$createElement,n=(t._self._c,t.detail.id?t.__map(t.detail.paymentRecordList,(function(e,n){var i=t.__get_orig(e),o=e.attachment?JSON.parse(e.attachment):null;return{$orig:i,g0:o}})):null),i=t.detail.id?t.__map(t.detail.paymentInvoiceList,(function(e,n){var i=t.__get_orig(e),o=t.$field.findTypeName("invoiceType",e.type),a=e.attachment?JSON.parse(e.attachment):null;return{$orig:i,g1:o,g2:a}})):null,o=t.detail.id?t.operationBtn.length:null;t.$mp.data=Object.assign({},{$root:{l0:n,l1:i,g3:o}})},a=!1,l=[];o._withStripped=!0},325:function(t,e,n){"use strict";n.r(e);var i=n(326),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},326:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(320),o=function(){Promise.all([n.e("common/vendor"),n.e("components/common/upload")]).then(function(){return resolve(n(654))}.bind(null,n)).catch(n.oe)},a={data:function(){return{billId:"",type:"",detail:{},operationBtn:[]}},onLoad:function(e){var n=this;this.billId=e.billId,this.type=e.type,this.init(),t.$on("reloadBill",(function(){n.init()}))},methods:{init:function(){this.billId&&(this.operationBtn=[],1==this.type?(0,i.getPaymentDetailById)(this.billId).then(this.billSuccess):(0,i.getCommonPaymentDetailById)(this.billId).then(this.billSuccess))},operation:function(e){var n=this;3==e.id?t.showModal({title:"有极提示",content:"是否将账单发送给客户?",success:function(t){t.confirm&&(0,i.updatePayment)({id:n.billId,status:3}).then((function(t){200===t.code&&(n.init(),n.$toast("操作成功"))}))}}):this.$navigateTo(e.type+"?billId="+this.billId+"&type="+this.type)},billSuccess:function(t){200===t.code&&(this.detail=t.data,this.detail.status&&3!=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"}),2!=this.type||this.detail.status||this.detail.organizationId!==this.$store.getters.organization.id||this.operationBtn.push({id:3,name:"发送账单给客户",type:"/pages/billInvoice/billInvoice"}))}},components:{upload:o}};e.default=a}).call(this,n(2)["default"])}},[[321,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/billDetail/billDetail.js.map
|