(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-47792d5a"],{"1b06":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var i=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{showTotal:"",formatCol:e.formatCol,modelName:"settlebill",metaName:"settlebill_info",packageName:"bizchance",baseUrl:e.baseUrl,tblheight:i-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd,sumfields:e.smf,colVisable:e.colVisable},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},s=[],n=a("06d3"),r=a("391e"),o=(a("db7f"),a("f121")),b=a("7e1e"),l=o["a"].deliverUrl.pro,d={name:"alldeliver_page",data:function(){return{baseUrl:l,smf:[{field:"settle_amount",label:"结算合计(元)"}]}},components:{PageSpace:r["a"],BizTable:n["a"]},methods:{colVisable:function(e){return"facilitator_name"!=e.key||1==this.$store.state.user.userobj.company.id},oninitbtn:function(e,t){"audit"==e.key&&(1==t.auditedStatus?e.ishide=!0:e.ishide=!1),"pay"==e.key&&(t.isPayedStatus?e.ishide=!0:t.auditedStatus?e.ishide=!1:e.ishide=!0),"delete"==e.key&&(t.isPayedStatus?e.ishide=!0:e.ishide=!1)},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e,t){var a=this;if("audit"==e&&this.$refs.bt.doexec("edit",t),"disagree"==e){var i=t.memo?t.memo.trim():"";if(""==i)return void this.$Modal.error({title:"提示",content:"请添加结算建议."});Object(b["K"])("/web/bizchance/settlebillCtl/advice",{advice:{settleId:t.id,memo:i}},l).then((function(e){var t=e.data;0==t.status?(a.$refs.bt.showedform=!1,a.$Message.success("当前操作成功完成."),a.$refs.bt.fetchData()):a.$Message.error("当前操作未完成,请联系管理员或稍后重试.")}))}"agree"==e&&Object(b["K"])("/web/bizchance/settlebillCtl/auditPass",{pass:{settleId:t.id}},l).then((function(e){var t=e.data;0==t.status?(a.$refs.bt.showedform=!1,a.$Message.success("当前操作成功完成."),a.$refs.bt.fetchData()):a.$Message.error("当前操作未完成,请联系管理员或稍后重试.")})),"pay"==e&&Object(b["K"])("/web/bizchance/settlebillCtl/pay",{pay:{settleId:t.id}},l).then((function(e){var t=e.data;0==t.status?(a.$refs.bt.showedform=!1,a.$Message.success("当前操作成功完成."),a.$refs.bt.fetchData()):a.$Message.error("当前操作未完成,请联系管理员或稍后重试.")}))},validmethod:function(e,t,a){return a()},formatCol:function(e,t,a){var i=e[t];if("auditedStatus"===t){var s=e[t]?"已审核":"待审核";return s}if("isPayedStatus"==t){var n=e[t]?"已付款":"未付款";return n}if("created_at"==t){console.log(i,"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");var r=new Date(i).toLocaleString();return r}}}},u=d,c=a("2877"),f=Object(c["a"])(u,i,s,!1,null,null,null);t["default"]=f.exports},"391e":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},s=[],n=a("6db5"),r=n["a"],o=a("2877"),b=Object(o["a"])(r,i,s,!1,null,null,null);t["a"]=b.exports},"6db5":function(e,t,a){"use strict";(function(e){a("c5f6");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),i=a.get()[0],s=window.innerHeight-i.offsetTop-t.advalue;t.frameHeight=s,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("1157"))}}]);