(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-60eb0ee0","chunk-59deb07c"],{"0d63":function(e,t,o){"use strict";o.r(t);var l=o("1258");const i={class:"vol-dialog"},a={key:0,class:"dia-footer"};function n(e,t,o,n,c,r){const s=Object(l["resolveComponent"])("el-scrollbar"),d=Object(l["resolveComponent"])("el-button"),p=Object(l["resolveComponent"])("el-dialog");return Object(l["openBlock"])(),Object(l["createElementBlock"])("div",i,[Object(l["createVNode"])(p,{modelValue:e.vmodel,"onUpdate:modelValue":t[2]||(t[2]=t=>e.vmodel=t),"close-on-click-modal":!1,"close-on-press-escape":!1,width:e.width,fullscreen:e.fullscreen,draggable:e.draggable,modal:e.modal,"before-close":e.handleClose},{header:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("i",{class:Object(l["normalizeClass"])(e.icon)},null,2),Object(l["createTextVNode"])(" "+Object(l["toDisplayString"])(e.title)+" ",1),Object(l["createElementVNode"])("button",{class:"el-dialog__headerbtn",type:"button",style:{right:"35px",color:"var(--el-color-info)"},onClick:t[0]||(t[0]=(...t)=>e.handleFullScreen&&e.handleFullScreen(...t))},t[3]||(t[3]=[Object(l["createElementVNode"])("i",{class:"el-icon el-icon-full-screen"},null,-1)]))]),footer:Object(l["withCtx"])(()=>[e.footer?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",a,[Object(l["renderSlot"])(e.$slots,"footer",{},void 0,!0),e.footer?Object(l["createCommentVNode"])("",!0):(Object(l["openBlock"])(),Object(l["createBlock"])(d,{key:0,type:"primary",size:"mini",onClick:t[1]||(t[1]=t=>e.handleClose())},{default:Object(l["withCtx"])(()=>t[4]||(t[4]=[Object(l["createElementVNode"])("i",{class:"el-icon-close"},null,-1),Object(l["createTextVNode"])("关闭")])),_:1}))])):Object(l["createCommentVNode"])("",!0)]),default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(s,{"max-height":e.contentHeight},{default:Object(l["withCtx"])(()=>[e.inited?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:0,style:Object(l["normalizeStyle"])([{"min-height":"50px"},{padding:e.padding+"px"}]),class:"srcoll-content"},[Object(l["renderSlot"])(e.$slots,"content",{},void 0,!0),Object(l["renderSlot"])(e.$slots,"default",{},void 0,!0)],4)):Object(l["createCommentVNode"])("",!0)]),_:3},8,["max-height"])]),_:3},8,["modelValue","width","fullscreen","draggable","modal","before-close"])])}var c=Object(l["defineComponent"])({props:{modelValue:!1,lazy:{type:Boolean,default:!1},icon:{type:String,default:"el-icon-warning-outline"},title:{type:String,default:"基本信息"},height:{type:Number,default:200},width:{type:Number,default:650},padding:{type:Number,default:16},modal:{type:Boolean,default:!0},draggable:{type:Boolean,default:!1},mask:{type:Boolean,default:!0},onModelClose:{type:Function,default:e=>!0},footer:{type:Boolean,default:!0}},setup(e,t){const o=.95*document.body.clientHeight-60,i=Object(l["ref"])(!0),a=Object(l["ref"])(!1),n=Object(l["ref"])(!1),c=Object(l["ref"])(100);a.value=e.modelValue,n.value=!!t.slots.footer;const r=Object(l["ref"])(200);r.value=e.height;const s=(o,l)=>{let i=e.onModelClose(!!l);!1!==i&&(a.value=!1,t.emit("update:modelValue",!1),o&&o())},d=e=>(r.value=o-30,o/-2+"px");c.value=d(),Object(l["watch"])(()=>e.modelValue,(e,t)=>{a.value=e}),Object(l["watch"])(()=>e.height,(e,t)=>{c.value=d()});const p=Object(l["ref"])(!1),h=()=>{p.value=!p.value,t.emit("fullscreen",p.value)};return{handleClose:s,inited:i,vmodel:a,footer:n,top:c,calcHeight:d,contentHeight:r,fullscreen:p,handleFullScreen:h}}}),r=(o("19bb"),o("a80f"),o("9c21")),s=o.n(r);const d=s()(c,[["render",n],["__scopeId","data-v-0463adc6"]]);t["default"]=d},"0e3e":function(e,t,o){},"19bb":function(e,t,o){"use strict";o("aef5")},"1c2c":function(e,t,o){},2494:function(e,t,o){"use strict";o("d5ae")},"27e0":function(e,t,o){"use strict";o("54f1")},4550:function(e,t,o){"use strict";o("b884")},"54f1":function(e,t,o){},6741:function(e,t,o){"use strict";o("0e3e")},6835:function(e,t,o){"use strict";var l=o("33ee"),i=o("998c"),a=o("6386"),n=o("55d9"),c=TypeError,r="Reduce of empty array with no initial value",s=function(e){return function(t,o,s,d){var p=i(t),h=a(p),b=n(p);if(l(o),0===b&&s<2)throw new c(r);var u=e?b-1:0,O=e?-1:1;if(s<2)while(1){if(u in h){d=h[u],u+=O;break}if(u+=O,e?u<0:b<=u)throw new c(r)}for(;e?u>=0:b>u;u+=O)u in h&&(d=o(d,h[u],u,p));return d}};e.exports={left:s(!1),right:s(!0)}},8596:function(e,t,o){"use strict";var l=o("63c0"),i=o("6835").left,a=o("c1f3"),n=o("6470"),c=o("87e6"),r=!c&&n>79&&n<83,s=r||!a("reduce");l({target:"Array",proto:!0,forced:s},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},"87e6":function(e,t,o){"use strict";var l=o("9b86");e.exports="NODE"===l},"8cb5":function(e,t,o){"use strict";o("e33c")},"8d0c":function(e,t,o){},"8e92":function(e,t,o){},"9b86":function(e,t,o){"use strict";var l=o("466b"),i=o("b0f6"),a=o("267d"),n=function(e){return i.slice(0,e.length)===e};e.exports=function(){return n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":l.Bun&&"string"==typeof Bun.version?"BUN":l.Deno&&"object"==typeof Deno.version?"DENO":"process"===a(l.process)?"NODE":l.window&&l.document?"BROWSER":"REST"}()},a80f:function(e,t,o){"use strict";o("1c2c")},aef5:function(e,t,o){},b83b:function(e,t,o){"use strict";o("8e92")},b884:function(e,t,o){},c0d6:function(e,t,o){"use strict";o("8d0c")},c1f3:function(e,t,o){"use strict";var l=o("d25f");e.exports=function(e,t){var o=[][e];return!!o&&l((function(){o.call(null,t||function(){return 1},1)}))}},c20a:function(e,t,o){"use strict";o("5d3c"),o("fe66");var l=o("1258");const i={class:"box-head"},a={class:"box-table",style:{"margin-top":"1%"}},n={key:0},c={key:1};function r(e,t,o,r,s,d){const p=Object(l["resolveComponent"])("el-col"),h=Object(l["resolveComponent"])("el-link"),b=Object(l["resolveComponent"])("el-row"),u=Object(l["resolveComponent"])("el-alert"),O=Object(l["resolveComponent"])("el-table-column"),m=Object(l["resolveComponent"])("el-tooltip"),j=Object(l["resolveComponent"])("el-tag"),f=Object(l["resolveComponent"])("el-table"),g=Object(l["resolveComponent"])("vol-box"),w=Object(l["resolveComponent"])("stock-select"),y=Object(l["resolveComponent"])("selected-stock");return Object(l["openBlock"])(),Object(l["createElementBlock"])("div",null,[Object(l["createVNode"])(g,{modelValue:s.showDetialBox,"onUpdate:modelValue":t[0]||(t[0]=e=>s.showDetialBox=e),lazy:!0,width:"75%",padding:15,title:"单据明细信息"},{default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("div",i,[Object(l["createVNode"])(u,{closable:!1,style:{width:"100%"}},{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(b,null,{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(p,{span:16},{default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("span",null,"已选中 "+Object(l["toDisplayString"])(s.selection.length)+" 项",1)]),_:1}),Object(l["createVNode"])(p,{span:8},{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(h,{type:"primary",size:"small",style:{float:"right",height:"20px","margin-right":"10px"},onClick:d.outbound},{default:Object(l["withCtx"])(()=>t[1]||(t[1]=[Object(l["createTextVNode"])("直接出库")])),_:1},8,["onClick"]),Object(l["createVNode"])(h,{type:"primary",size:"small",style:{float:"right",height:"20px","margin-right":"10px"},onClick:d.getData},{default:Object(l["withCtx"])(()=>t[2]||(t[2]=[Object(l["createTextVNode"])("刷新")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),Object(l["createElementVNode"])("div",a,[Object(l["createVNode"])(f,{ref:"singleTable",data:s.tableData,style:{width:"100%",height:"100%"},"highlight-current-row":"",onCurrentChange:d.handleCurrentChange,height:"500px",onRowClick:d.handleRowClick,onSelectionChange:d.handleSelectionChange},{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(O,{type:"selection",width:"55"}),Object(l["createVNode"])(O,{label:"序号",type:"index",fixed:"left",width:"55",align:"center"}),(Object(l["openBlock"])(!0),Object(l["createElementBlock"])(l["Fragment"],null,Object(l["renderList"])(s.tableColumns.filter(e=>!e.hidden),(e,t)=>(Object(l["openBlock"])(),Object(l["createBlock"])(O,{key:t,prop:e.prop,label:e.title,width:e.width,align:"center"},{default:Object(l["withCtx"])(t=>["icon"==e.type?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",n,[Object(l["createVNode"])(m,{class:"item",effect:"dark",content:e.title,placement:"bottom"},{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(h,{type:"primary",disabled:d.getButtonEnable(e.prop,t.row),onClick:o=>d.tableButtonClick(t.row,e)},{default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("i",{class:Object(l["normalizeClass"])(e.icon),style:{"font-size":"22px"}},null,2)]),_:2},1032,["disabled","onClick"])]),_:2},1032,["content"])])):"tag"==e.type?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",c,[Object(l["createVNode"])(j,{size:"small"},{default:Object(l["withCtx"])(()=>[Object(l["createTextVNode"])(Object(l["toDisplayString"])(d.getDictionary(t.row,e)),1)]),_:2},1024)])):Object(l["createCommentVNode"])("",!0)]),_:2},1032,["prop","label","width"]))),128))]),_:1},8,["data","onCurrentChange","onRowClick","onSelectionChange"])])]),_:1},8,["modelValue"]),Object(l["createVNode"])(w,{ref:"child",onParentCall:d.parentCall},null,8,["onParentCall"]),Object(l["createVNode"])(y,{ref:"selectedStock",onParentCall:d.parentCall},null,8,["onParentCall"])])}o("66d9"),o("1168"),o("2e4f"),o("ff15");var s=o("0d63"),d=o("6e5b");const p={class:"box-head"},h={class:"less-style"},b={class:"less-style"},u={class:"less-style"},O={class:"box-table",style:{"margin-top":"1%"}},m={class:"cell-content"};function j(e,t,o,i,a,n){const c=Object(l["resolveComponent"])("el-divider"),r=Object(l["resolveComponent"])("el-col"),s=Object(l["resolveComponent"])("el-row"),d=Object(l["resolveComponent"])("el-alert"),j=Object(l["resolveComponent"])("el-table-column"),f=Object(l["resolveComponent"])("el-button"),g=Object(l["resolveComponent"])("el-tooltip"),w=Object(l["resolveComponent"])("el-table"),y=Object(l["resolveComponent"])("vol-box");return Object(l["openBlock"])(),Object(l["createElementBlock"])("div",null,[Object(l["createVNode"])(y,{modelValue:a.showDetialBox,"onUpdate:modelValue":t[1]||(t[1]=e=>a.showDetialBox=e),lazy:!0,width:"60%",padding:15,title:"指定库存"},{footer:Object(l["withCtx"])(()=>[Object(l["createVNode"])(f,{type:"primary",size:"small",onClick:n.outbound},{default:Object(l["withCtx"])(()=>t[3]||(t[3]=[Object(l["createTextVNode"])("直接出库")])),_:1},8,["onClick"]),Object(l["createVNode"])(f,{type:"danger",size:"small",onClick:t[0]||(t[0]=e=>a.showDetialBox=!1)},{default:Object(l["withCtx"])(()=>t[4]||(t[4]=[Object(l["createTextVNode"])("关闭")])),_:1})]),default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("div",p,[Object(l["createVNode"])(d,{closable:!1,style:{width:"100%"}},{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(s,null,{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(r,{span:20},{default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("span",h,"物料名称: "+Object(l["toDisplayString"])(a.row.materielName),1),Object(l["createVNode"])(c,{direction:"vertical"}),Object(l["createElementVNode"])("span",b,"物料编号: "+Object(l["toDisplayString"])(a.row.materielCode),1),Object(l["createVNode"])(c,{direction:"vertical"}),Object(l["createElementVNode"])("span",u,"需求数量: "+Object(l["toDisplayString"])(a.row.orderQuantity),1),Object(l["createVNode"])(c,{direction:"vertical"}),Object(l["createElementVNode"])("span",{class:Object(l["normalizeClass"])(a.selectionClass)},"已选数量: "+Object(l["toDisplayString"])(a.selectionSum),3)]),_:1})]),_:1})]),_:1})]),Object(l["createElementVNode"])("div",O,[Object(l["createVNode"])(w,{ref:"singleTable",data:a.tableData,style:{width:"100%",height:"100%"},"highlight-current-row":"",onRowClick:n.handleRowClick,height:"500px",onSelectionChange:n.handleSelectionChange},{default:Object(l["withCtx"])(()=>[t[2]||(t[2]=Object(l["createTextVNode"])(" > ")),Object(l["createVNode"])(j,{type:"selection",width:"55"}),Object(l["createVNode"])(j,{label:"序号",type:"index",fixed:"left",width:"55",align:"center"}),(Object(l["openBlock"])(!0),Object(l["createElementBlock"])(l["Fragment"],null,Object(l["renderList"])(a.tableColumns.filter(e=>!e.hidden),(t,o)=>(Object(l["openBlock"])(),Object(l["createBlock"])(j,{key:o,prop:t.prop,label:t.title,width:t.width,align:"center"},{default:Object(l["withCtx"])(o=>["icon"==t.type?(Object(l["openBlock"])(),Object(l["createBlock"])(g,{key:0,class:"item",effect:"dark",content:t.title,placement:"bottom"},{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(f,{type:"text",onClick:l=>e.tableButtonClick(o.row,t)},{default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("i",{class:Object(l["normalizeClass"])(t.icon),style:Object(l["normalizeStyle"])({fontSize:t.iconSize||"22px"})},null,6)]),_:2},1032,["onClick"])]),_:2},1032,["content"])):(Object(l["openBlock"])(),Object(l["createBlock"])(g,{key:1,content:o.row[t.prop],placement:"top",disabled:!n.isContentOverflow(o.row[t.prop],t.width)},{default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("div",m,Object(l["toDisplayString"])(o.row[t.prop]),1)]),_:2},1032,["content","disabled"]))]),_:2},1032,["prop","label","width"]))),128))]),_:1},8,["data","onRowClick","onSelectionChange"])])]),_:1},8,["modelValue"])])}o("8596"),o("2494");var f={components:{VolBox:s["default"]},data(){return{row:null,showDetialBox:!1,tableData:[],tableColumns:[{prop:"palletCode",title:"托盘编号",type:"string",width:280},{prop:"orderNo",title:"批次号",type:"string",width:150},{prop:"batchNo",title:"柜号",type:"string",width:150},{prop:"locationCode",title:"货位编号",type:"string",width:180},{prop:"useableQuantity",title:"可用数量",type:"string"}],selection:[],selectionSum:0,selectionClass:"less-style",originalQuantity:0}},methods:{isContentOverflow(e,t){if(!e||!t)return!1;const o=8,l=Math.floor(t/o);return e.length>l},open(e){this.row=e,this.showDetialBox=!0,this.originalQuantity=this.row.lockQuantity,this.selectionSum=this.row.lockQuantity,this.getData(),this.selectionSum==this.row.orderQuantity?this.selectionClass="equle-style":this.selectionSum{if(!e.status)return this.$message.error(e.message);this.$message.success("操作成功"),this.showDetialBox=!1,this.$emit("parentCall",e=>{e.getData()})})},outbound(){return this.selection.length<=0?this.$message.error("请选择指定库存"):this.selectionSum>this.row.orderQuantity?this.$message.error("已选数量不能超过需求数量"):void this.http.post("api/Task/GenerateOutboundTask?id="+this.row.id,this.selection,"数据处理中").then(e=>{if(!e.status)return this.$message.error(e.message);this.$message.success("操作成功"),this.showDetialBox=!1,this.$emit("parentCall",e=>{e.getData()})})},getData(){this.http.post("api/StockInfo/GetStockSelectViews?materielCode="+this.row.materielCode,null,"查询中").then(e=>{this.tableData=e})},revokeAssign(){console.log(this.row),this.http.post("api/OutboundOrderDetail/RevokeLockOutboundStock?id="+this.row.id,null,"数据处理中").then(e=>{if(!e.status)return this.$message.error(e.message);this.$message.success("操作成功"),this.showDetialBox=!1,this.$emit("parentCall",e=>{e.getData()})})},handleSelectionChange(e){this.selection=e,this.selectionSum=e.reduce((e,t)=>e+t["useableQuantity"],0)+this.originalQuantity,this.selectionSum==this.row.orderQuantity?this.selectionClass="equle-style":this.selectionSum{this.$refs.singleTable.toggleRowSelection(e)}):this.$refs.singleTable.clearSelection()},clearSelection(){this.$refs.singleTable.clearSelection()},handleRowClick(e){this.$refs.singleTable.toggleRowSelection(e)}}},g=(o("b83b"),o("6741"),o("9c21")),w=o.n(g);const y=w()(f,[["render",j],["__scopeId","data-v-54cfed91"]]);var C=y;const k={class:"box-head"},v={class:"less-style"},x={class:"less-style"},V={class:"less-style"},N={class:"less-style"},D={class:"box-table",style:{"margin-top":"1%"}};function S(e,t,o,i,a,n){const c=Object(l["resolveComponent"])("el-divider"),r=Object(l["resolveComponent"])("el-col"),s=Object(l["resolveComponent"])("el-row"),d=Object(l["resolveComponent"])("el-alert"),p=Object(l["resolveComponent"])("el-table-column"),h=Object(l["resolveComponent"])("el-button"),b=Object(l["resolveComponent"])("el-tooltip"),u=Object(l["resolveComponent"])("el-table"),O=Object(l["resolveComponent"])("vol-box");return Object(l["openBlock"])(),Object(l["createElementBlock"])("div",null,[Object(l["createVNode"])(O,{modelValue:a.showDetialBox,"onUpdate:modelValue":t[1]||(t[1]=e=>a.showDetialBox=e),lazy:!0,width:"75%",padding:15,title:"出库详情"},{footer:Object(l["withCtx"])(()=>[Object(l["createVNode"])(h,{type:"danger",size:"small",onClick:t[0]||(t[0]=e=>a.showDetialBox=!1)},{default:Object(l["withCtx"])(()=>t[3]||(t[3]=[Object(l["createTextVNode"])("关闭")])),_:1})]),default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("div",k,[Object(l["createVNode"])(d,{closable:!1,style:{width:"100%"}},{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(s,null,{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(r,{span:24},{default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("span",v,"物料名称: "+Object(l["toDisplayString"])(a.row.materielName),1),Object(l["createVNode"])(c,{direction:"vertical"}),Object(l["createElementVNode"])("span",x,"物料编号: "+Object(l["toDisplayString"])(a.row.materielCode),1),Object(l["createVNode"])(c,{direction:"vertical"}),Object(l["createElementVNode"])("span",V,"需求数量: "+Object(l["toDisplayString"])(a.row.orderQuantity),1),Object(l["createVNode"])(c,{direction:"vertical"}),Object(l["createElementVNode"])("span",N,"已分配数量: "+Object(l["toDisplayString"])(a.row.lockQuantity),1)]),_:1})]),_:1})]),_:1})]),Object(l["createElementVNode"])("div",D,[Object(l["createVNode"])(u,{ref:"singleTable",data:a.tableData,style:{width:"100%",height:"100%"},"highlight-current-row":"",height:"500px"},{default:Object(l["withCtx"])(()=>[t[2]||(t[2]=Object(l["createTextVNode"])(" > ")),Object(l["createVNode"])(p,{label:"序号",type:"index",fixed:"left",width:"55",align:"center"}),(Object(l["openBlock"])(!0),Object(l["createElementBlock"])(l["Fragment"],null,Object(l["renderList"])(a.tableColumns.filter(e=>!e.hidden),(t,o)=>(Object(l["openBlock"])(),Object(l["createBlock"])(p,{key:o,prop:t.prop,label:t.title,width:t.width,align:"center"},Object(l["createSlots"])({_:2},["icon"==t.type?{name:"default",fn:Object(l["withCtx"])(o=>[Object(l["createVNode"])(b,{class:"item",effect:"dark",content:t.title,placement:"bottom"},{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(h,{type:"text",onClick:l=>e.tableButtonClick(o.row,t)},{default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("i",{class:Object(l["normalizeClass"])(t.icon),style:{"font-size":"22px"}},null,2)]),_:2},1032,["onClick"])]),_:2},1032,["content"])]),key:"0"}:void 0]),1032,["prop","label","width"]))),128))]),_:1},8,["data"])])]),_:1},8,["modelValue"])])}var B={components:{VolBox:s["default"]},data(){return{outStockStatus:[{key:0,value:"已分配"},{key:1,value:"出库中"},{key:2,value:"出库完成"},{key:99,value:"撤销"}],row:null,showDetialBox:!1,tableData:[],tableColumns:[{prop:"id",title:"主键",type:"string",width:150,hidden:!0},{prop:"orderNo",title:"单据编号",type:"string",width:150},{prop:"orderDetailId",title:"单据明细主键",type:"string",width:150,hidden:!0},{prop:"orderType",title:"单据类型",type:"string",width:90,bind:{key:"outOrderType",data:[]}},{prop:"batchNo",title:"批次号",type:"string",width:120},{prop:"materielCode",title:"物料编号",type:"string",width:150},{prop:"materielName",title:"物料名称",type:"string",width:150},{prop:"stockId",title:"库存主键",type:"string",width:150,hidden:!0},{prop:"palletCode",title:"托盘编号",type:"string",width:150},{prop:"locationCode",title:"货位编号",type:"string",width:180},{prop:"status",title:"状态",type:"select",bindKey:"outStockStatus"}]}},methods:{open(e){this.row=e,this.showDetialBox=!0,this.getData()},getData(){this.http.post("api/OutStockLockInfo/GetByOrderDetailId?orderDetailId="+this.row.id,null,"查询中").then(e=>{this.tableData=e})}}};o("27e0"),o("c0d6");const _=w()(B,[["render",S],["__scopeId","data-v-cb5d44ec"]]);var E=_,$={components:{VolBox:s["default"],VolForm:d["a"],StockSelect:C,SelectedStock:E},data(){return{row:null,showDetialBox:!1,flag:!1,currentRow:null,selection:[],tableData:[],tableColumns:[{prop:"id",title:"Id",type:"int",width:90,hidden:!0},{prop:"orderId",title:"出库单主键",type:"string",width:90,hidden:!0},{prop:"materielCode",title:"物料编号",type:"string",width:150},{prop:"materielName",title:"物料名称",type:"string",width:150},{prop:"orderQuantity",title:"单据数量",type:"string",width:90},{prop:"lockQuantity",title:"锁定数量",type:"int",width:90},{prop:"overOutQuantity",title:"已出数量",type:"string",width:90},{prop:"orderDetailStatus",title:"订单明细状态",type:"tag",width:180,bindKey:"orderDetailStatusEnum"},{prop:"assignStock",title:"指定库存",type:"icon",width:90,icon:"el-icon-s-grid"},{prop:"viewDetail",title:"出库详细",type:"icon",width:90,icon:"el-icon-s-operation"},{prop:"creater",title:"创建人",type:"string",width:90},{prop:"createDate",title:"创建时间",type:"datetime",width:160},{prop:"modifier",title:"修改人",type:"string",width:100},{prop:"modifyDate",title:"修改时间",type:"datetime",width:160},{prop:"remark",title:"备注",type:"string"}],paginations:{sort:"id",order:"desc",Foots:"",total:0,sizes:[30,60,100,120],size:30,Wheres:[],page:1,rows:30},searchFormOptions:[[{title:"单据编号",field:"allocation_code",type:"like"},{title:"单据类型",field:"allocation_type",type:"select",dataKey:"OrderType",data:[]},{title:"单据状态",field:"allocation_state",type:"select",dataKey:"OrderState",data:[]}]],searchFormFields:{allocation_code:"",allocation_type:"",allocation_state:""},dictionaryList:null}},methods:{open(e){this.row=e,this.showDetialBox=!0,this.getDictionaryData(),this.getData()},getData(){var e=[{name:"orderId",value:this.row.id}],t={page:this.paginations.page,rows:this.paginations.rows,sort:this.paginations.sort,order:this.paginations.order,wheres:JSON.stringify(e)};this.http.post("api/OutboundOrderDetail/GetPageData",t,"查询中").then(e=>{this.tableData=e.rows})},tableButtonClick(e,t){"assignStock"==t.prop?this.$refs.child.open(e):this.$refs.selectedStock.open(e)},lockstocks(){if(0===this.selection.length)return this.$message.error("请选择单据明细");var e=this.selection.map(e=>e.id);this.http.post("api/OutboundOrderDetail/LockOutboundStocks",e,"数据处理中").then(e=>{if(!e.status)return this.$message.error(e.message);this.$message.success("操作成功"),this.showDetialBox=!1,this.$emit("parentCall",e=>{e.getData()})})},outbound(){if(0===this.selection.length)return this.$message.error("请选择单据明细");var e=this.selection.map(e=>e.id);this.http.post("api/Task/GenerateOutboundTasks",e,"数据处理中").then(e=>{if(!e.status)return this.$message.error(e.message);this.$message.success("操作成功"),this.showDetialBox=!1,this.$emit("parentCall",e=>{e.getData()})})},setCurrent(e){this.$refs.singleTable.setCurrentRow(e)},handleCurrentChange(e){this.currentRow=e},getButtonEnable(e,t){return"assignStock"==e&&(0!==t.orderDetailStatus&&60!==t.orderDetailStatus&&70!==t.orderDetailStatus)},parentCall(e){if("function"!=typeof e)return console.log("扩展组件需要传入一个回调方法才能获取父级Vue对象");e(this)},handleRowClick(e){this.$refs.singleTable.toggleRowSelection(e)},handleSelectionChange(e){this.selection=e},getDictionaryData(){if(!this.dictionaryList){var e=[];this.tableColumns.forEach(t=>{"tag"==t.type&&""!=t.bindKey&&e.push(t.bindKey)}),this.http.post("api/Sys_Dictionary/GetVueDictionary",e,"查询中").then(e=>{e.length>0&&(this.dictionaryList=e)})}},getDictionary(e,t){if(this.dictionaryList){var o=this.dictionaryList.find(e=>e.dicNo==t.bindKey);if(o){var l=o.data.find(o=>o.key==e[t.prop]);return l?l.value:e[t.prop]}return e[t.prop]}}}};o("4550"),o("8cb5");const T=w()($,[["render",r],["__scopeId","data-v-3ebcc359"]]);t["a"]=T},d5ae:function(e,t,o){"use strict";var l=o("63c0"),i=o("7230"),a=o("33ee"),n=o("c210"),c=o("752f"),r=TypeError;l({target:"Iterator",proto:!0,real:!0},{reduce:function(e){n(this),a(e);var t=c(this),o=arguments.length<2,l=o?void 0:arguments[1],s=0;if(i(t,(function(t){o?(o=!1,l=t):l=e(l,t,s),s++}),{IS_RECORD:!0}),o)throw new r("Reduce of empty iterator with no initial value");return l}})},e33c:function(e,t,o){}}]);