(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0825917c","chunk-434b193a"],{"0a8a":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-container",[a("el-container",[a("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[a("div",{staticClass:"filter-container"},[a("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),a("el-row",{staticStyle:{"margin-top":"15px"}},[a("el-col",[a("my-table-v2",{ref:"myTable",attrs:{filter:e.filterFrom,table:e.table}})],1)],1),e._v(" "),e.detailSetting.show?a("detail",{attrs:{setting:e.detailSetting},on:{close:function(t){e.detailSetting.show=!1}}}):e._e()],1)],1)],1)],1)},i=[],l=a("80cb"),s=a("f6e8"),r=a("433d"),o=a("f5fa"),c=a("6f7e"),d=a("5f87"),u={name:"index",components:{MyButton:s["a"],MyTableV2:l["a"],detail:o["default"]},data:function(){var e=this;return{items:[{type:"text",dataIndex:"businessFormCode",label:"单号",placeholder:"请输入",defaultValue:""},{type:"select",dataIndex:"goodsTemplateId",label:"物品名称",placeholder:"请选择",defaultValue:"",options:[],cascader:[{key:"baseGoodsModelsId",queryKey:"goodsTemplatesId"}],optionsConfig:{label:"goodsName",value:"id",url:r["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate?tenantId=".concat(Object(d["c"])().tenantId)}},{type:"select",dataIndex:"baseGoodsModelsId",label:"规格型号",placeholder:"请输入",defaultValue:"",options:[],optionsConfig:{label:"modelName",value:"id",url:r["a"].apiBaseURL+"/pc/base/goods/models/query/goodsModel"}},{type:"select",dataIndex:"departmentId",label:"部门",placeholder:"请选择",optionsConfig:{url:"/pc/fin/sys/tenant/department/list/all?tenantId=".concat(Object(d["c"])().tenantId),label:"name",value:"id"},defaultValue:"",options:[]},{type:"text",dataIndex:"createName",label:"创建人",placeholder:"请输入",defaultValue:""},{type:"date-picker",dataIndex:"startTime",label:"时间",defaultValue:""},{type:"date-picker",dataIndex:"endTime",label:"至",defaultValue:""}],filterFrom:{tenantId:null,userName:null,userPhone:null,status:1},editSetting:{title:"",id:"",orgId:"",show:!1},detailSetting:{title:"",id:"",orgId:"",show:!1},table:{showIndex:!0,expand:!1,url:r["a"].apiBaseURL+"/pc/l/wh/using/form/back/list/detail",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[]},columns:[{title:"单号",field:"businessFormCode",align:"center",width:130},{title:"物品名称",field:"baseGoodsTemplateName",align:"left",minWidth:140},{title:"规格型号",field:"baseGoodsModelsName",align:"left",minWidth:130},{title:"退回数量",field:"counts",align:"center"},{title:"部门",field:"departmentName",align:"left",minWidth:130},{title:"创建人",field:"operatorName",align:"center",width:100},{title:"操作时间",field:"dealTime",align:"center",width:160,formatter:function(e){return{value:c["LongToDateTime"](e.dealTime)}}}],operation:{show:!0,width:90,attr:[{title:"详情",type:"info",events:function(t){e.handleDetail(t)}}]},paging:{show:!0,page:{small:!1,pageNum:1,pageSize:10,total:0}}}}},created:function(){},methods:{handleDetail:function(e){this.detailSetting.id=e.id,this.detailSetting.info=JSON.stringify(e),this.detailSetting.title="详情",this.detailSetting.show=!0},search:function(e){void 0!=e?this.$refs.myTable.search({pageNum:e}):this.$refs.myTable.search()},fifterForm:function(e){this.filterFrom=Object.assign(this.filterFrom,e),this.search(1)}}},p=u,f=a("2877"),g=Object(f["a"])(p,n,i,!1,null,"4151adbd",null);t["default"]=g.exports},"433d":function(e,t,a){"use strict";var n=a("c559"),i={ftpUrl:n["a"].ftpUrl,apiBaseURL:n["a"].apiBaseURL};t["a"]=i},"4bbc":function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"c",(function(){return l})),a.d(t,"b",(function(){return s}));var n=a("b775");function i(e){return Object(n["a"])({url:"/pc/l/wh/using/form/back/add",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/pc/l/wh/using/form/back/list",method:"get",params:e})}function s(e){return Object(n["a"])({url:"/pc/l/wh/using/form/back/detail",method:"get",params:e})}},"6f7e":function(e,t,a){"use strict";function n(e){if(null==e||void 0==e||""==e||"null"==e||"undefined"==e)return!0;var t=e.toString().replace(/\s/g,"").replace(/-/g,"").replace(/:/g,"");return t}function i(e){return("00"+e).substr(e.length)}function l(e){if(null==e||void 0==e||""==e||"null"==e||"undefined"==e)return!0;var t=e.toString(),a=t.slice(0,4),n=t.slice(4,6),i=t.slice(6,8),l=t.slice(8,10),s=t.slice(10,12),r=t.slice(12,14),o=a+"-"+n+"-"+i+" "+l+":"+s+":"+r;return o}function s(e){if(null==e||void 0==e||""==e||"null"==e||"undefined"==e)return!0;var t=e.toString(),a=t.slice(0,4),n=t.slice(4,6),i=t.slice(6,8),l=a+"-"+n+"-"+i;return l}function r(e,t){try{e instanceof Date||(e=new Date(e)),void 0!=t&&""!=t||(t="yyyy-MM-dd hh:mm:ss"),/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));var a={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(var n in a)if(new RegExp("(".concat(n,")")).test(t)){var l=a[n]+"";t=t.replace(RegExp.$1,1===RegExp.$1.length?l:i(l))}return t}catch(s){return"-"}}function o(){var e=new Date,t=e.getFullYear(),a=(e.getMonth()+1).toString().padStart(2,"0"),n=e.getDate().toString().padStart(2,"0"),i=e.getHours().toString().padStart(2,"0"),l=e.getMinutes().toString().padStart(2,"0"),s=e.getSeconds().toString().padStart(2,"0");return"".concat(t,"-").concat(a,"-").concat(n," ").concat(i,":").concat(l,":").concat(s)}function c(){var e=new Date,t=e.getFullYear(),a=(e.getMonth()+1).toString().padStart(2,"0"),n=e.getDate().toString().padStart(2,"0");return"".concat(t,"-").concat(a,"-").concat(n)}function d(e){if(e){e instanceof Date||(e=new Date(e.replace(/-/g,"/")));var t=e.getTime(),a=6e4,n=60*a,i=24*n,l=7*i,s=30*i,r=(new Date).getTime(),o=r-t;if(!(o<0)){var c=o/a,d=o/n,u=o/i,p=o/l,f=o/s,g="";if(f>=1&&f<=3)g=" "+parseInt(f)+"月前";else if(p>=1&&p<=3)g=" "+parseInt(p)+"周前";else if(u>=1&&u<=6)g=" "+parseInt(u)+"天前";else if(d>=1&&d<=23)g=" "+parseInt(d)+"小时前";else if(c>=1&&c<=59)g=" "+parseInt(c)+"分钟前";else if(o>=0&&o<=a)g="刚刚";else{var m=new Date;m.setTime(t);var v=m.getFullYear(),h=m.getMonth()+1<10?"0"+(m.getMonth()+1):m.getMonth()+1,_=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();g=v+"-"+h+"-"+_}return g}}}a.r(t),a.d(t,"DateToLong",(function(){return n})),a.d(t,"LongToDateTime",(function(){return l})),a.d(t,"LongToDate",(function(){return s})),a.d(t,"formatDate",(function(){return r})),a.d(t,"formattedDate",(function(){return o})),a.d(t,"formattedDateDuan",(function(){return c})),a.d(t,"timeago",(function(){return d}))},e7c6:function(e,t,a){"use strict";a("e9fa")},e9fa:function(e,t,a){},f5fa:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("win-md",{staticClass:"stock-detail",attrs:{title:"部门物品退回单详情",loading:e.loading},on:{close:e.close}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("span",[e._v("退回单号:")]),e._v(" "),a("span",[e._v(e._s(e.detail.businessFormCode))])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("span",[e._v("所属机构:")]),e._v(" "),a("span",[e._v(e._s(e.detail.agencyName))])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("span",[e._v("部门:")]),e._v(" "),a("span",[e._v(e._s(e.detail.departmentName))])])],1),e._v(" "),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("span",[e._v("退回人:")]),e._v(" "),a("span",[e._v(e._s(e.detail.operatorName))])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("span",[e._v("退回时间:")]),e._v(" "),a("span",[e._v(e._s(e._f("formatTime")(e.detail.dealTime)))])])],1),e._v(" "),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[a("el-col",{staticClass:"img-row",attrs:{span:24}},[a("span",[e._v("退回手续:")]),e._v(" "),e._l(e.fileList,(function(t,n){return a("div",{key:n,staticClass:"img-box",on:{click:function(a){return e.handlePreview(t)}}},[a("img",{staticClass:"img",attrs:{src:e.getUrl(t.path),alt:""}})])}))],2)],1),e._v(" "),e._l(e.detail.goodsTemplateInfoList,(function(t,n){return a("div",{key:n,staticClass:"goods-card"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:7}},[a("span",[e._v("物品分类:")]),e._v(" "),a("span",[e._v(e._s(t.categoryName))])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("span",[e._v("物品名称:")]),e._v(" "),a("span",[e._v(e._s(t.baseGoodsTemplateName))])]),e._v(" "),a("el-col",{attrs:{span:3}},[a("span",[e._v("类别:")]),e._v(" "),a("span",[e._v(e._s(t.type)+"类")])]),e._v(" "),a("el-col",{attrs:{span:6}},[a("span",[e._v("分发单号:")]),e._v(" "),a("span",[e._v(e._s(t.businessFormCode))])])],1),e._v(" "),e._l(t.modelInfoList,(function(n,i){return a("div",{key:i,staticClass:"card3"},["A"===t.type?a("el-row",{attrs:{gutter:24,type:"flex",align:"middle"}},[a("el-col",{attrs:{span:8}},[a("span",[e._v("规格型号:")]),e._v(" "),a("span",[e._v(e._s(n.baseGoodsModelsName))])]),e._v(" "),a("el-col",{attrs:{span:4}},[a("span",[e._v("单位:")]),e._v(" "),a("span",[e._v(e._s(n.unit))])])],1):e._e(),e._v(" "),a("el-table",{staticStyle:{"margin-top":"15px"},attrs:{data:n.useInfoList}},["A"!==t.type?a("el-table-column",{attrs:{prop:"baseGoodsModelsName",label:"规格型号",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){t.row;return[e._v("\n "+e._s(n.baseGoodsModelsName)+"\n ")]}}],null,!0)}):e._e(),e._v(" "),"A"!==t.type?a("el-table-column",{attrs:{prop:"unit",label:"单位",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){t.row;return[e._v("\n "+e._s(n.unit)+"\n ")]}}],null,!0)}):e._e(),e._v(" "),"A"===t.type?a("el-table-column",{attrs:{prop:"useName",label:"使用人",align:"left"}}):e._e(),e._v(" "),a("el-table-column",{attrs:{prop:"useUnm",label:"在用数量",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"returnNum",label:"退回数量",align:"center"}})],1)],1)}))],2)})),e._v(" "),a("div",{staticStyle:{display:"none"},attrs:{id:"uploadPreviewImages"}},e._l(e.fileList,(function(t,n){return a("span",{key:n},[e.checkImg(t.name)?a("img",{staticClass:"v-img",staticStyle:{width:"100px",height:"100px"},attrs:{src:e.getUrl(t.path),alt:t.name}}):e._e()])})),0)],2)},i=[],l=a("f76d"),s=a("6f7e"),r=a("dee4"),o=a("c82c"),c=a.n(o),d=(a("0808"),a("4bbc")),u=null,p={components:{winMd:l["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{loading:!0,fileList:[],detail:{baseCategoryName:"",businessFormCode:"",goodsTemplateName:"",procureDoc:"",agencyId:"",agencyName:"",states:"",createName:"",time:"",procureGoods:[{},{}],fileKey:Math.random()}}},filters:{formatTime:function(e){return e?s["LongToDateTime"](e):"-"},formatPrice:function(e){return e/100}},created:function(){var e=this;Object(d["b"])({id:this.setting.id}).then((function(t){e.detail=t,e.loading=!1,e.fileList=e.detail.procureDoc?JSON.parse(e.detail.procureDoc):[],e.$nextTick((function(){e.initPreviewImg()}))}))},methods:{initPreviewImg:function(){null!=u&&u.destroy();var e=document.querySelector("#uploadPreviewImages");u=new c.a(e,{})},handlePreview:function(e){if(!this.checkImg(e.name))return!1;for(var t=0,a=0;a<this.fileList.length;a++){var n=this.fileList[a];if(this.checkImg(n.name)){if(e.id==n.id)break;t++}}u.view(t)},checkImg:function(e){var t=e.substring(e.lastIndexOf("."),e.length),a=[".jpg",".jpeg",".png",".bmp"];return!(a.indexOf(t)<0)},getUrl:function(e){return"http://"==e.substr(0,7).toLowerCase()||"https://"==e.substr(0,8).toLowerCase()?e:Object(r["c"])()+e},close:function(){this.$emit("close")}}},f=p,g=(a("e7c6"),a("2877")),m=Object(g["a"])(f,n,i,!1,null,"5db57d37",null);t["default"]=m.exports}}]);
|