(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-17a52274"],{"391e":function(e,t,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},i=[],s=r("c579"),n=s["a"],o=r("5d22"),l=Object(o["a"])(n,a,i,!1,null,null,null);t["a"]=l.exports},"5f98":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var a=t.adjustHeight;return[r("BizTable",{ref:"bt",attrs:{showTotal:"",formatCol:e.formatCol,modelName:"deliverybill",metaName:"settleapply_info",packageName:"bizchance",baseUrl:e.baseUrl,tblheight:a-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}})]}}])})},i=[],s=(r("e680"),r("1bc7"),r("06d3")),n=r("391e"),o=r("db7f"),l=r("f121"),c=r("7e1e"),u=l["a"].deliverUrl.pro,f={name:"alldeliver_page",data:function(){return{baseUrl:u,smf:[{field:"cost_price",label:"服务费合计(元)"}]}},components:{PageSpace:n["a"],BizTable:s["a"]},methods:{colVisable:function(e){return"facilitator_name"!=e.key||1==this.$store.state.user.userobj.company.id},oninitbtn:function(e,t){},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,r){return r(t)},onexec:function(e,t){var r=this;if("settleapply"===e){if(0==this.$refs.bt.currentSels.length)return void this.$Modal.error({title:"提示",content:"请选择要给交付商结算的交付单，改变页码可以增加结算的明细!"});var a=[],i=this.$refs.bt.currentSels[0].facilitator_name,s=this.$refs.bt.currentSels[0].facilitator_id,n=!1;if(this.$refs.bt.currentSels.forEach((function(e){e.facilitator_name==i?a.push(e.id):n=!0})),n)return void this.$Modal.error({title:"提示",content:"请选择过滤相同的交付商申请结算."});Object(c["B"])("/web/bizchance/deliverybillCtl/settleApply",{ids:a,spname:i,spid:Number(s)},u).then((function(e){var t=e.data;0==t.status?(r.$Message.success("当前的结算申请已经发送给财务审核."),r.$refs.bt.fetchData()):r.$Message.error("当前的结算申请生成失败,请联系管理员或稍后重试.")}))}if("settlewriteoff"===e){if(0==this.$refs.bt.currentSels.length)return void this.$Modal.error({title:"提示",content:"请选择要进行结算核销的交付单，改变页码可以增加结算核销的明细. "});var o=[],l=this.$refs.bt.currentSels[0].facilitator_name,f=this.$refs.bt.currentSels[0].facilitator_id,d=!1;if(this.$refs.bt.currentSels.forEach((function(e){"waittosettle"==e.settle_status?o.push(e.id):d=!0})),d)return void this.$Modal.error({title:"提示",content:"请选择未结算的交付进行结算核销."});Object(c["B"])("/web/bizchance/deliverybillCtl/settleApplyForTacent",{ids:o,spname:l,spid:Number(f)},u).then((function(e){var t=e.data;0==t.status?(r.$Message.success("当前选择的结算核销已经完成，请到结算管理进行查看."),r.$refs.bt.fetchData()):r.$Message.error("当前选择的结算核销失败,请联系管理员或稍后重试.")}))}},validmethod:function(e,t,r){return r()},formatCol:function(e,t,r){var a=e[t];if("businessType"===t){var i=o["a"].businessType[a];return i}if("settle_status"===t){var s=o["a"].settle_status[a];return s}if("sourceName"===t){var n=o["a"].source[a];return n}}}},d=f,h=r("5d22"),b=Object(h["a"])(d,a,i,!1,null,null,null);t["default"]=b.exports},c579:function(e,t,r){"use strict";(function(e){r("e680");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 r=e("#framediv"),a=r.get()[0],i=window.innerHeight-a.offsetTop-t.advalue;t.frameHeight=i,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,r("a336"))}}]);