(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/groupCompany/contract/paymentDetail"],{"0c90":function(t,n,e){"use strict";e.r(n);var i=e("d1a7"),o=e("5743");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("b2fa");var c=e("f0c5"),u=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=u.exports},"0da2":function(t,n,e){},5743:function(t,n,e){"use strict";e.r(n);var i=e("9b44"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},"9b44":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("76dd"),o=e("dc92"),a=e("0c59"),c={data:function(){return{noClick:!0,id:"",info:null,payment_approval:{},otherForm:[],BASE_IMG_URL:a.BASE_IMG_URL}},components:{formItem:function(){Promise.all([e.e("common/vendor"),e.e("components/form/formitem")]).then(function(){return resolve(e("d7bf"))}.bind(null,e)).catch(e.oe)},approvalStatus:function(){e.e("components/approvalStatus").then(function(){return resolve(e("b975"))}.bind(null,e)).catch(e.oe)}},onLoad:function(t){this.id=t.id},onShow:function(){this.otherForm=[],this.getInfo(),this.getApprovalList()},methods:{getForm:function(){var t=this;(0,o.netSetForm)({type:"examine"}).then((function(n){n=n.data.data,n.forEach((function(n){n.value=t.info[n.id],t.otherForm.push(n)}))}))},getInfo:function(){var t=this;(0,i.netPaymentDetail)({id:this.id}).then((function(n){t.info=n.data,t.getForm()}))},getApprovalList:function(){var t=this,n={type:"receivables",relation_id:this.id};(0,o.netApprovalDetail)(n).then((function(n){t.payment_approval=n.data}))},toPass:function(){t.navigateTo({url:"/pages/examine/examine?id="+this.id+"&type=receivables&status=1"})},toRefuse:function(){t.navigateTo({url:"/pages/examine/examine?id="+this.id+"&type=receivables&status=2"})},cancelExamine:function(){var n=this;(0,i.netPaymentCancel)({id:this.id}).then((function(e){t.showToast({title:e.msg,icon:"none"}),setTimeout((function(){n.getInfo()}),2e3)}))},editPayment:function(){t.navigateTo({url:"/pages/index/groupCompany/contract/editPayment?id="+this.id+"&contractid="+this.info.contract.id})},toKehuInfo:function(){t.navigateTo({url:"/pages/index/groupCompany/groupCompany?id="+this.info.customer.id})}}};n.default=c}).call(this,e("543d")["default"])},b2fa:function(t,n,e){"use strict";var i=e("0da2"),o=e.n(i);o.a},bf18:function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("8886");i(e("66fd"));var o=i(e("0c90"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},d1a7:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var i=function(){var t=this.$createElement;this._self._c},o=[]}},[["bf18","common/runtime","common/vendor"]]]);