"use strict";(self["webpackChunkworkorder"]=self["webpackChunkworkorder"]||[]).push([[442],{84149:function(t,e,r){r.d(e,{Ae:function(){return w},Be:function(){return S},Bp:function(){return G},CM:function(){return H},Dy:function(){return $},E3:function(){return L},Gh:function(){return A},IY:function(){return U},N$:function(){return f},N6:function(){return d},Nv:function(){return p},Ov:function(){return T},QU:function(){return I},Qi:function(){return l},Re:function(){return k},Te:function(){return K},Tv:function(){return i},Uv:function(){return W},Uw:function(){return E},V3:function(){return B},Vr:function(){return y},Wk:function(){return Q},XO:function(){return b},Xh:function(){return g},_Z:function(){return F},d2:function(){return N},fF:function(){return q},fM:function(){return u},fV:function(){return R},fn:function(){return a},gp:function(){return s},hM:function(){return m},he:function(){return Z},il:function(){return M},jO:function(){return x},l7:function(){return O},lQ:function(){return V},mC:function(){return o},p6:function(){return v},pP:function(){return X},sE:function(){return j},si:function(){return Y},st:function(){return h},tR:function(){return P},u1:function(){return z},ww:function(){return c},xE:function(){return C},yL:function(){return D},yo:function(){return _}});var n=r(71417);function s(t){return(0,n.Z)({url:"/ext/workorderExt/page",method:"post",data:t})}function o(t){return(0,n.Z)({url:"/ext/workorderExt/pageCount",method:"post",data:t})}function a(t){return(0,n.Z)({url:`ext/workorderExt/${t}`,method:"get"})}function i(t){return(0,n.Z)({url:"ext/categoryUnionExt/checkAllList",method:"post",data:t})}function u(){return(0,n.Z)({url:"ext/userDeviceExt/getListByUser",method:"post"})}function c(t){return(0,n.Z)({url:"/ext/warehouseExt/page",method:"post",data:t})}function d(t){return(0,n.Z)({url:"ext/workorderExt/finishedDetail",method:"get",params:t})}function l(t){return(0,n.Z)({url:"ext/appliancesExt/getListByCondition",method:"post",data:t})}function m(t){return(0,n.Z)({url:"ext/workorderRecordExt/createMaterial",method:"post",data:t})}function f(t){return(0,n.Z)({url:"ext/workorderRecordExt/createMaterialStandard",method:"post",data:t})}function p(t){return(0,n.Z)({url:"ext/barcodeParamExt/getBarcodeContent",method:"get",params:t})}function w(t){return(0,n.Z)({url:"ext/workorderRecordExt/all",method:"post",data:t})}function h(t){return(0,n.Z)({url:"ext/appliancesExt/getListByCondition",method:"post",data:t})}function _(t){return(0,n.Z)({url:"ext/workorderRecordExt/createProduce",method:"post",data:t})}function k(t){return(0,n.Z)({url:`/ext/workorderRecordExt/delete/${t}`,method:"get"})}function g(t){return(0,n.Z)({url:"ext/workorderRecordExt/updateById",method:"post",data:t})}function x(t){return(0,n.Z)({url:"ext/workorderCheckExt/listGroupByAppliance",method:"post",data:t})}function y(t){return(0,n.Z)({url:"ext/workorderRecordExt/comfirmDoneStandard",method:"post",data:t})}function v(t){return(0,n.Z)({url:"ext/checkAttrExt/getListByCondition",method:"post",data:t})}function b(t){return(0,n.Z)({url:"ext/workorderCheckAttrExt/create",method:"post",data:t})}function z(t){return(0,n.Z)({url:"ext/workorderCheckAttrExt/page",method:"post",data:t})}function B(t){return(0,n.Z)({url:"ext/workorderExt/finished",method:"get",params:t})}function E(t){return(0,n.Z)({url:"ext/workorderExt/saveFinishRecord",method:"post",data:t})}function Z(t){return(0,n.Z)({url:"ext/workorderExt/getFinishRecord",method:"get",params:t})}function L(t){return(0,n.Z)({url:`ext/deviceExt/${t}`,method:"get"})}function D(t){return(0,n.Z)({url:"ext/wOutboundExt/finishedInBill",method:"get",params:t})}function S(t){return(0,n.Z)({url:"ext/userDeviceExt/create",method:"post",data:t})}function U(t){return(0,n.Z)({url:"ext/appliancesExt/page",method:"post",data:t})}function I(t){return(0,n.Z)({url:"ext/appliancesExt/chageApplicance",method:"post",data:t})}function N(t){return(0,n.Z)({url:"ext/categoryUnionExt/checkFGFXList",method:"get",params:t})}function C(t){return(0,n.Z)({url:"business/salesorder/allData",method:"post",data:t})}function q(t){return(0,n.Z)({url:"business/backorder/create",method:"post",data:t})}function R(t){return(0,n.Z)({url:"business/backorder/page",method:"post",data:t})}function T(t){return(0,n.Z)({url:`business/backorder/${t}`,method:"get"})}function F(t){return(0,n.Z)({url:"ext/proceduresExt/productesGroup",method:"post",data:t})}function M(t){return(0,n.Z)({url:"ext/workorderExt/finishedDetailNew",method:"get",params:t})}function j(t){return(0,n.Z)({url:"ext/routeCardExt/getListByWorkOrderId",method:"post",data:t})}function A(t){return(0,n.Z)({url:"ext/workorderRecordExt/getEndCheckAP",method:"get",params:t})}function H(t){return(0,n.Z)({url:`ext/workorderCheckAttrExt/delete/${t}`,method:"get"})}function O(t){return(0,n.Z)({url:"ext/wStockExt/pageForH5",method:"post",data:t})}function Y(t){return(0,n.Z)({url:"ext/warehouseLocationExt/page",method:"post",data:t})}function K(t){return(0,n.Z)({url:"ext/warehouseLocationExt/getListByWarehouseId",method:"get",params:t})}function $(t){return(0,n.Z)({url:"ext/wTransferExt/scanTransfer",method:"post",data:t})}function W(t){return(0,n.Z)({url:"ext/workorderRecordExt/allForStandard",method:"post",data:t})}function G(t){return(0,n.Z)({url:"ext/workorderRecordExt/getWorkorderRecordListStandard",method:"get",params:t})}function P(t){return(0,n.Z)({url:"/ext/wTransferExt/wTransferConfirm",method:"get",params:t})}function Q(t){return(0,n.Z)({url:"/ext/wTransferExt/acceptWTransfer",method:"get",params:t})}function V(t){return(0,n.Z)({url:"/ext/wOutboundExt/createForStandard",method:"post",data:t})}function X(t){return(0,n.Z)({url:"/ext/wOutboundExt/wOutBoundForStockUp",method:"post",data:t})}},70442:function(t,e,r){r.r(e),r.d(e,{default:function(){return vt}});var n=r(66252),s=r(3577),o=r(2262),a=r(24530),i=r(42119),u=r(84149);const c=t=>((0,n.dD)("data-v-2612b3ec"),t=t(),(0,n.Cn)(),t),d={class:"rk"},l={class:"rk_info"},m=(0,n.Uk)("机台/工位:"),f=c((()=>(0,n._)("div",{class:"material-title"},[(0,n._)("div",{class:"title"},[(0,n._)("span",{class:"title-prefix"}),(0,n._)("span",null,"完工交接物料")])],-1))),p={class:"material-content"},w={key:0,class:"item-style"},h={class:"item-title-style"},_=c((()=>(0,n._)("span",{class:"green"},"[合格品] ",-1))),k={style:{"font-weight":"500"}},g={class:"item-content-style"},x={class:"subItem-style_top"},y={class:"subItem-first-style"},v={class:"subItem-second-style"},b={class:"subItem-style_bottom"},z={key:0},B={key:1},E={key:1,class:"item-style"},Z={class:"item-title-style"},L=c((()=>(0,n._)("span",{class:"yellow"},"[不良品] ",-1))),D={style:{"font-weight":"500"}},S={class:"item-content-style"},U={class:"subItem-style_top"},I={class:"subItem-first-style"},N={class:"subItem-second-style"},C={class:"subItem-style_bottom"},q={key:0},R={key:1},T={key:2,class:"item-style"},F={class:"item-title-style"},M=c((()=>(0,n._)("span",{class:"red"},"[报废品] ",-1))),j={style:{"font-weight":"500"}},A={class:"item-content-style"},H={class:"subItem-style_top"},O={class:"subItem-first-style"},Y={class:"subItem-second-style"},K={class:"subItem-style_bottom"},$={key:0},W={key:1},G={key:1,class:"notfound"},P={class:"rk_sc"},Q={class:"rk_sc_header"},V=c((()=>(0,n._)("div",{class:"rk_sc_header_box"},[(0,n._)("div",{class:"rk_sc_header_x"}),(0,n._)("span",null,"本次余留次班生产")],-1))),X={key:0},J={key:0,class:"rk_sc_content"},tt={class:"rk_sc_content_item_a"},et={class:"rk_sc_content_item_b"},rt={key:0,class:"rk_sc_content_item_hz"},nt={class:"rk_sc_content_item_hz_item_top"},st={class:"rk_sc_content_item_hz_item_bottom"},ot={key:0},at=c((()=>(0,n._)("span",{class:"succ"},"合格",-1))),it={key:1},ut=c((()=>(0,n._)("span",{class:"yellow"},"不良",-1))),ct={key:2},dt=c((()=>(0,n._)("span",{class:"warning"},"报废",-1))),lt={key:1,class:"rk_sc_content_item_hz"},mt={key:1,class:"rk_sc_kong"},ft=c((()=>(0,n._)("span",null,"暂无数据",-1))),pt=[ft],wt=c((()=>(0,n._)("div",{class:"rk_zw"},null,-1))),ht={class:"rk_footer"},_t=(0,n.Uk)("完工入库"),kt=[_t];var gt=(0,n.aZ)({setup(t){const e=(0,i.yj)(),r=(0,i.tv)();let c=(0,o.iH)([]);const ft=t=>{let e=0,r=0,n="";return t.forEach((t=>{t.reserveMaterialBeanList&&t.reserveMaterialBeanList.length>0&&t.reserveMaterialBeanList.forEach(((t,s)=>{0===s&&(n=t.unitName),e+=t.boxNum,r+=t.num,console.log(e,r,n)}))})),e+"盒 | "+r+n},_t=t=>{let e="",r=0,n=0;return t.length>0&&t.forEach(((t,s)=>{0===s&&(e=t.unitName),r+=t.sumBox,n+=t.sumNum})),r+"盒 | "+n+e},gt=()=>{let t=e.query.ids;(0,u.V3)({deviceIds:t||"",inIds:window.sessionStorage.getItem("ids")?window.sessionStorage.getItem("ids"):""}).then((t=>{200===t.code&&(0,u.Uw)({originId:Number(t.data),abstracts:JSON.stringify(c.value)}).then((t=>{200===t.code&&(a.F.success({message:"入库成功",duration:2e3,forbidClick:!0}),setTimeout((()=>{r.replace({path:"/workbench"})}),2e3))}))}))},xt=t=>{(0,u.il)({deviceIds:e.query.ids,inIds:t||""}).then((t=>{200===t.code&&(c.value=t.data)}))},yt=()=>{r.push({name:"secondShift",query:{id:c.value.produceLocationIds.join(",")}})};return(0,n.bv)((()=>{xt(window.sessionStorage.getItem("ids"))})),(0,n.Jd)((()=>{window.sessionStorage.getItem("ids")&&window.sessionStorage.removeItem("ids")})),(t,e)=>{const r=(0,n.Q2)("preventReClick");return(0,n.wg)(),(0,n.iD)("div",d,[(0,n._)("div",l,[(0,n._)("span",null,"作业员:"+(0,s.zw)((0,o.SU)(c).worker)+" / "+(0,s.zw)((0,o.SU)(c).groupName),1),(0,n._)("span",null,[m,((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)((0,o.SU)(c).deviceList,((t,e)=>((0,n.wg)(),(0,n.iD)("span",{key:e},(0,s.zw)(t.code)+" "+(0,s.zw)(e===(0,o.SU)(c).deviceList.length-1?"":"/ "),1)))),128))])]),f,(0,n._)("div",p,[(0,o.SU)(c).qualifiedBeanList&&(0,o.SU)(c).qualifiedBeanList.length>0||(0,o.SU)(c).rejectsBeanList&&(0,o.SU)(c).rejectsBeanList.length>0||(0,o.SU)(c).scrapBeanList&&(0,o.SU)(c).scrapBeanList.length>0?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[(0,o.SU)(c).qualifiedBeanList&&(0,o.SU)(c).qualifiedBeanList.length>0?((0,n.wg)(),(0,n.iD)("div",w,[(0,n._)("div",h,[_,(0,n._)("span",k,(0,s.zw)(_t((0,o.SU)(c).qualifiedBeanList)),1)]),(0,n._)("div",g,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)((0,o.SU)(c).qualifiedBeanList,((t,e)=>((0,n.wg)(),(0,n.iD)("div",{class:"subItem-style",key:e},[(0,n._)("div",x,[(0,n._)("div",y,(0,s.zw)(t.materialName)+" | "+(0,s.zw)(t.materialCode),1),(0,n._)("div",v,(0,s.zw)(t.sumBox)+"盒 | "+(0,s.zw)(t.sumNum)+(0,s.zw)(t.unitName),1)]),(0,n._)("div",b,[t.batch?((0,n.wg)(),(0,n.iD)("span",z,(0,s.zw)(t.procedureName?t.procedureName:"-")+" | "+(0,s.zw)(t.batch),1)):((0,n.wg)(),(0,n.iD)("span",B,(0,s.zw)(t.procedureName),1))])])))),128))])])):(0,n.kq)("",!0),(0,o.SU)(c).rejectsBeanList&&(0,o.SU)(c).rejectsBeanList.length>0?((0,n.wg)(),(0,n.iD)("div",E,[(0,n._)("div",Z,[L,(0,n._)("span",D,(0,s.zw)(_t((0,o.SU)(c).rejectsBeanList)),1)]),(0,n._)("div",S,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)((0,o.SU)(c).rejectsBeanList,((t,e)=>((0,n.wg)(),(0,n.iD)("div",{class:"subItem-style",key:e},[(0,n._)("div",U,[(0,n._)("div",I,(0,s.zw)(t.materialName)+" | "+(0,s.zw)(t.materialCode),1),(0,n._)("div",N,(0,s.zw)(t.sumBox)+"盒 | "+(0,s.zw)(t.sumNum)+(0,s.zw)(t.unitName),1)]),(0,n._)("div",C,[t.batch?((0,n.wg)(),(0,n.iD)("span",q,(0,s.zw)(t.procedureName?t.procedureName:"-")+" | "+(0,s.zw)(t.batch),1)):((0,n.wg)(),(0,n.iD)("span",R,(0,s.zw)(t.procedureName),1))])])))),128))])])):(0,n.kq)("",!0),(0,o.SU)(c).scrapBeanList&&(0,o.SU)(c).scrapBeanList.length>0?((0,n.wg)(),(0,n.iD)("div",T,[(0,n._)("div",F,[M,(0,n._)("span",j,(0,s.zw)(_t((0,o.SU)(c).scrapBeanList)),1)]),(0,n._)("div",A,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)((0,o.SU)(c).scrapBeanList,((t,e)=>((0,n.wg)(),(0,n.iD)("div",{class:"subItem-style",key:e},[(0,n._)("div",H,[(0,n._)("div",O,(0,s.zw)(t.materialName)+" | "+(0,s.zw)(t.materialCode),1),(0,n._)("div",Y,(0,s.zw)(t.sumBox)+"盒 | "+(0,s.zw)(t.sumNum)+(0,s.zw)(t.unitName),1)]),(0,n._)("div",K,[t.batch?((0,n.wg)(),(0,n.iD)("span",$,(0,s.zw)(t.procedureName?t.procedureName:"-")+" | "+(0,s.zw)(t.batch),1)):((0,n.wg)(),(0,n.iD)("span",W,(0,s.zw)(t.procedureName),1))])])))),128))])])):(0,n.kq)("",!0)],64)):((0,n.wg)(),(0,n.iD)("div",G,"暂无数据"))]),(0,n._)("div",P,[(0,n._)("div",Q,[V,(0,o.SU)(c).finishedInBillBeanList&&(0,o.SU)(c).finishedInBillBeanList.length>0?((0,n.wg)(),(0,n.iD)("span",X,(0,s.zw)(ft((0,o.SU)(c).finishedInBillBeanList)),1)):(0,n.kq)("",!0)]),(0,o.SU)(c).finishedInBillBeanList&&(0,o.SU)(c).finishedInBillBeanList.length>0?((0,n.wg)(),(0,n.iD)("div",J,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)((0,o.SU)(c).finishedInBillBeanList,((t,e)=>((0,n.wg)(),(0,n.iD)("div",{class:"rk_sc_content_item",key:e},[(0,n._)("div",tt,(0,s.zw)(t.code),1),(0,n._)("div",et,[(0,n._)("span",null,"接收人:"+(0,s.zw)(t.userName)+" / "+(0,s.zw)(t.departmentName),1),(0,n._)("span",null,"时间:"+(0,s.zw)(t.dealDate),1)]),t.reserveMaterialBeanList.length>0?((0,n.wg)(),(0,n.iD)("div",rt,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(t.reserveMaterialBeanList,((t,e)=>((0,n.wg)(),(0,n.iD)("div",{class:"rk_sc_content_item_hz_item",key:e},[(0,n._)("div",nt,[(0,n._)("span",null,(0,s.zw)(t.materialName)+" | "+(0,s.zw)(t.materialCode),1),(0,n._)("span",null,(0,s.zw)(t.boxNum)+"盒 | "+(0,s.zw)(t.num)+(0,s.zw)(t.unitName),1)]),(0,n._)("div",st,[0===t.qualityType?((0,n.wg)(),(0,n.iD)("span",ot,[at,(0,n.Uk)(" | "+(0,s.zw)(t.procedureName)+(0,s.zw)(t.batch?" | "+t.batch:""),1)])):(0,n.kq)("",!0),1===t.qualityType?((0,n.wg)(),(0,n.iD)("span",it,[ut,(0,n.Uk)(" | "+(0,s.zw)(t.procedureName)+(0,s.zw)(t.batch?" | "+t.batch:""),1)])):(0,n.kq)("",!0),2===t.qualityType?((0,n.wg)(),(0,n.iD)("span",ct,[dt,(0,n.Uk)(" | "+(0,s.zw)(t.procedureName)+(0,s.zw)(t.batch?" | "+t.batch:""),1)])):(0,n.kq)("",!0)])])))),128))])):((0,n.wg)(),(0,n.iD)("div",lt,"当前入库单物料已使用"))])))),128))])):((0,n.wg)(),(0,n.iD)("div",mt,pt))]),wt,(0,n._)("div",ht,[(0,n._)("div",{class:"rk_footer_s",onClick:yt},"余留次班"),(0,n.wy)(((0,n.wg)(),(0,n.iD)("button",{class:"rk_footer_u",onClick:gt},kt)),[[r]])])])}}}),xt=r(83744);const yt=(0,xt.Z)(gt,[["__scopeId","data-v-2612b3ec"]]);var vt=yt}}]); //# sourceMappingURL=442.241faf83.js.map