(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f116a998"],{"391e":function(e,s,i){"use strict";var t=function(){var e=this,s=e.$createElement,i=e._self._c||s;return i("div",{attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},r=[],a=i("9ee1"),n=a["a"],o=i("9ca4"),u=Object(o["a"])(n,t,r,!1,null,null,null);s["a"]=u.exports},"9ee1":function(e,s,i){"use strict";(function(e){i("163d");s["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var s=this;this.setHeight(),e(window).resize((function(){s.setHeight()}))},methods:{setHeight:function(){var s=this;this.$nextTick((function(){var i=e("#framediv"),t=i.get()[0],r=window.innerHeight-t.offsetTop-s.advalue;s.frameHeight=r,s.$emit("sizechange",s.frameHeight)}))}}}}).call(this,i("a336"))},ccbb:function(e,s,i){"use strict";i.r(s);var t=function(){var e=this,s=e.$createElement,i=e._self._c||s;return i("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(s){var t=s.adjustHeight;return[i("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,modelName:"deliverybill",metaName:"alldeliver_info",packageName:"bizchance",tblheight:t-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}}),i("Modal",{attrs:{title:"关闭交付单"},on:{"on-ok":e.ok,"on-cancel":e.cancel},model:{value:e.showCloseTip,callback:function(s){e.showCloseTip=s},expression:"showCloseTip"}},[i("p",[e._v("关闭交付单后将删除该交付信息，是否确定关闭该交付单？")])])]}}])})},r=[],a=i("06d3"),n=i("391e"),o=i("db7f"),u=i("7e1e"),l={name:"alldeliver_page",data:function(){return{showCloseTip:!1,currentDeliverNumber:""}},components:{PageSpace:n["a"],BizTable:a["a"]},methods:{oninitbtn:function(e,s){if("edit"==e.key){var i=!0;"companyCase"!=s.businessType&&"psCase"!=s.businessType||"待交付"==s.payStatus&&(i=!1),e.ishide=i}if("details"==e.key){var t=!0;"companyCase"==s.businessType||"psCase"==s.businessType?"已交付"==s.payStatus&&(t=!1):"已关闭"!==s.payStatus&&(t=!1),e.ishide=t}if("close"==e.key){var r=!0;"待交付"==s.payStatus&&(r=!1),e.ishide=r}},beforeadd:function(e,s){return s({value:!0,message:null})},beforedit:function(e,s){return s({value:!0,message:null})},beforesave:function(e,s,i){return i(s)},onexec:function(e,s){var i=this;"edit"===e&&("companyCase"==s.businessType&&this.$nextTick((function(){i.$router.push({name:"cmpBizDeliverCase",query:{bizType:s.businessType,bizCode:s.deliverNumber}})})),"psCase"==s.businessType&&("selfEmployed"==s.baseInfo.companyProperties&&this.$router.push({name:"psBeliverCase",query:{bizType:s.businessType,bizCode:s.deliverNumber}}),"soleProprietorship"==s.baseInfo.companyProperties&&this.$router.push({name:"psBizBeliverCase",query:{bizType:s.businessType,bizCode:s.deliverNumber}}),"company"==s.baseInfo.companyProperties&&this.$router.push({name:"psCmpBizDeliverCase",query:{bizType:s.businessType,bizCode:s.deliverNumber}}))),"details"===e&&("companyCase"==s.businessType&&this.$router.push({name:"cmpDeliverDetails",query:{bizType:s.businessType,bizCode:s.deliverNumber}}),"psCase"==s.businessType&&("selfEmployed"==s.baseInfo.companyProperties&&this.$router.push({name:"psDeliverDetails",query:{bizType:s.businessType,bizCode:s.deliverNumber}}),"soleProprietorship"==s.baseInfo.companyProperties&&this.$router.push({name:"psBizDeliverDetails",query:{bizType:s.businessType,bizCode:s.deliverNumber}}),"company"==s.baseInfo.companyProperties&&this.$router.push({name:"psCmpDeliverDetails",query:{bizType:s.businessType,bizCode:s.deliverNumber}})),"companyCase"!==s.businessType&&"psCase"!==s.businessType&&this.$router.push({name:"addedSveDeliverDetails",query:{bizType:s.businessType,bizCode:s.deliverNumber}})),"close"===e&&(this.currentDeliverNumber=s.deliverNumber,this.showCloseTip=!0)},validmethod:function(e,s,i){return i()},ok:function(){var e=this;console.log("关闭"+this.currentDeliverNumber+"这个交付单");var s={};s.deliverNumber=this.currentDeliverNumber,s.deliverStatus="closed",Object(u["f"])(s).then((function(s){console.log("deliverStatusUpdateDic result:"+s),e.$refs.bt.fetchData()})).catch((function(e){console.log("deliverStatusUpdateDic err:"+e)})),this.$Message.success("关闭成功")},cancel:function(){this.$Message.info("取消关闭")},formatCol:function(e,s,i){var t=e[s];if("product_code"===s){var r=o["a"].businessType[t];return r}if("pay_status"===s){var a=o["a"].payStatus[t];return a}if("source_name"===s){var n=o["a"].source[t];return n}}}},p=l,c=i("9ca4"),b=Object(c["a"])(p,t,r,!1,null,null,null);s["default"]=b.exports}}]);