(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4fe8dd4f"],{"391e":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},o=[],i=r("6db5"),s=i["a"],a=r("2877"),c=Object(a["a"])(s,n,o,!1,null,null,null);t["a"]=c.exports},"6db5":function(e,t,r){"use strict";(function(e){r("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 r=e("#framediv"),n=r.get()[0],o=window.innerHeight-n.offsetTop-t.advalue;t.frameHeight=o,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,r("1157"))},ccbb:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("editForm",{ref:"ed"}),r("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var n=t.adjustHeight;return[r("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,modelName:"tradetransfer",metaName:"alldeliver_info",packageName:"transfer",tblheight:n-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}}),r("Modal",{attrs:{title:"关闭交付单"},on:{"on-ok":e.ok,"on-cancel":e.cancel},model:{value:e.showCloseTip,callback:function(t){e.showCloseTip=t},expression:"showCloseTip"}},[r("p",[e._v("关闭交付单后将删除该交付信息，是否确定关闭该交付单？")])])]}}])})],1)},o=[],i=r("06d3"),s=r("391e"),a=r("db7f"),c=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("Modal",{attrs:{title:"","ok-text":"确定","cancel-text":"取消"},on:{"on-ok":e.okselects},model:{value:e.isshowref,callback:function(t){e.isshowref=t},expression:"isshowref"}},[r("Forms",{ref:"forminfo",staticStyle:{height:"100%"},attrs:{fminfo:e.forminfo,isSearchForm:!1}})],1)],1)},l=[],f=(r("8e6e"),r("ac6a"),r("456d"),r("bd86")),u=r("7e1e"),d=r("0086");function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){Object(f["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b={name:"reftable_window",data:function(){return{item:{},isshowref:!1,forminfo:{name:"",main:[{title:"",cols:1,ctls:[{type:"dic-select",label:"状态",prop:"aliorder_status",dicName:"buyerstatus",style:"width:80%",rules:[{required:!0,message:"选择状态",trigger:"blur"}]},{type:"input",label:"物流单号",prop:"logistics",style:"width:80%",rules:[{required:!1,message:"填写物流单号",trigger:"blur"}]}]}]}}},props:[],components:{BizTable:i["a"],Forms:d["a"]},mounted:function(){},methods:{showrefwindow:function(e){this.item=e,this.isshowref=!0,this.$refs.forminfo.resetForm(),this.$refs.forminfo.formModel=h({},e)},okselects:function(){var e=this;this.$refs.forminfo.validate((function(t){t?Object(u["i"])(h(h({},e.item),e.$refs.forminfo.formModel)).then((function(t){0==t.data.status?e.$Message.success(t.data.msg):e.$Message.error(t.data.msg)})):e.isshowref=!0})),this.$emit("onrefselect")}}},p=b,g=r("2877"),v=Object(g["a"])(p,c,l,!1,null,null,null),w=v.exports,O={name:"alldeliver_page",data:function(){return{showCloseTip:!1,currentDeliverNumber:""}},components:{PageSpace:s["a"],BizTable:i["a"],editForm:w},methods:{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){"status"===e&&this.$refs.ed.showrefwindow(t)},validmethod:function(e,t,r){return r()},ok:function(){var e=this;console.log("关闭"+this.currentDeliverNumber+"这个交付单");var t={};t.deliverNumber=this.currentDeliverNumber,t.deliverStatus="closed",Object(u["c"])(t).then((function(t){console.log("deliverStatusUpdateDic result:"+t),e.$refs.bt.fetchData()})).catch((function(e){console.log("deliverStatusUpdateDic err:"+e)})),this.$Message.success("关闭成功")},cancel:function(){this.$Message.info("取消关闭")},formatCol:function(e,t,r){var n=e[t];return"created_at"===t?n=new Date(n).toLocaleString():"aliorder_status"===t&&(n=a["a"].buyerstatus[n]),n}}},j=O,k=Object(g["a"])(j,n,o,!1,null,null,null);t["default"]=k.exports}}]);