(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b0d1d89"],{2808:function(t,e,n){"use strict";n("84d8")},"4f6e":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("win-md",{staticClass:"stock-detail",attrs:{title:"上传调拨手续",width:"800px",loading:t.loading},on:{close:t.close}},[n("upload",{ref:"uploadRef",attrs:{values:t.fileList,settings:t.uploadSettings},on:{"on-change":t.uploadChange}}),t._v(" "),n("el-button",{staticStyle:{float:"right","margin-right":"50px","margin-top":"20px"},attrs:{name:"上传调拨手续",site:"form",type:"primary",size:"mini"},on:{click:function(e){return t.allocationProcedures()}}},[t._v("\n 上传调拨手续\n ")])],1)},o=[],a=n("f76d"),i=n("6f7e"),c=n("dee4"),u=n("c82c"),s=n.n(u),l=(n("0808"),n("dcec")),f=n("decf"),d=n("a083"),g=null,p={computed:{de:function(){return l["a"]}},components:{winMd:a["a"],upload:f["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{procureDoc:"",uploadSettings:{title:"上传",max:20,num:2,tip:"",uploadUrl:Object(c["d"])(),multiple:!0,disabled:!1},loading:!0,fileList:[],detail:{baseCategoryName:"",businessFormCode:"",goodsTemplateName:"",procureDoc:"",agencyId:"",agencyName:"",states:"",createName:"",time:"",procureGoods:[{},{}],fileKey:Math.random()}}},filters:{formatTime:function(t){return t?i["LongToDateTime"](t):"-"},formatPrice:function(t){return t/100}},created:function(){this.loading=!1,this.fileList=[]},methods:{initPreviewImg:function(){null!=g&&g.destroy();var t=document.querySelector("#uploadPreviewImages");g=new s.a(t,{})},handlePreview:function(t){if(!this.checkImg(t.name))return!1;for(var e=0,n=0;n=1&&g<=3)p=" "+parseInt(g)+"月前";else if(d>=1&&d<=3)p=" "+parseInt(d)+"周前";else if(f>=1&&f<=6)p=" "+parseInt(f)+"天前";else if(l>=1&&l<=23)p=" "+parseInt(l)+"小时前";else if(s>=1&&s<=59)p=" "+parseInt(s)+"分钟前";else if(u>=0&&u<=n)p="刚刚";else{var m=new Date;m.setTime(e);var h=m.getFullYear(),b=m.getMonth()+1<10?"0"+(m.getMonth()+1):m.getMonth()+1,v=m.getDate()<10?"0"+m.getDate():m.getDate();m.getHours()<10?m.getHours():m.getHours(),m.getMinutes()<10?m.getMinutes():m.getMinutes(),m.getSeconds()<10?m.getSeconds():m.getSeconds();p=h+"-"+b+"-"+v}return p}}}n.r(e),n.d(e,"DateToLong",(function(){return r})),n.d(e,"LongToDateTime",(function(){return a})),n.d(e,"LongToDate",(function(){return i})),n.d(e,"formatDate",(function(){return c})),n.d(e,"formattedDate",(function(){return u})),n.d(e,"formattedDateDuan",(function(){return s})),n.d(e,"timeago",(function(){return l}))},"84d8":function(t,e,n){},a083:function(t,e,n){"use strict";n.d(e,"d",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"g",(function(){return i})),n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return u})),n.d(e,"e",(function(){return s})),n.d(e,"h",(function(){return l})),n.d(e,"c",(function(){return f})),n.d(e,"i",(function(){return d})),n.d(e,"k",(function(){return g})),n.d(e,"j",(function(){return p}));var r=n("b775");function o(t){return Object(r["a"])({url:"/pc/l/wh/form/transfer/add",method:"post",data:t})}function a(t){return Object(r["a"])({url:"/pc/l/wh/form/transfer/import",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/pc/l/wh/form/transfer/list",method:"get",params:t})}function c(t){return Object(r["a"])({url:"/pc/fin/sys/tenant/get/parent/tenant",method:"get",params:t})}function u(t){return Object(r["a"])({url:"/pc/base/goods/template/query/warehouse/goods",method:"get",params:t})}function s(t){return Object(r["a"])({url:"/pc/l/wh/form/transfer/detail",method:"get",params:t})}function l(t){return Object(r["a"])({url:"/pc/l/wh/form/transfer/output",method:"post",params:t})}function f(t){return Object(r["a"])({url:"/pc/l/wh/form/transfer/income",method:"post",params:t})}function d(t){return Object(r["a"])({url:"/pc/l/wh/form/transfer/updStatus",method:"post",params:t})}function g(t){return Object(r["a"])({url:"/pc/l/wh/form/transfer/use/record",method:"get",params:t})}function p(t){return Object(r["a"])({url:"/pc/l/wh/form/transfer/useInfo/update",method:"POST",data:t})}}}]);