"use strict";(self["webpackChunkworkorder"]=self["webpackChunkworkorder"]||[]).push([[7758],{84149:function(t,e,r){r.d(e,{Ae:function(){return x},Be:function(){return L},Bp:function(){return G},CM:function(){return W},Dy:function(){return j},E3:function(){return N},Gh:function(){return H},IY:function(){return C},N$:function(){return m},N6:function(){return c},Nv:function(){return p},Ov:function(){return O},QU:function(){return S},Qi:function(){return l},Re:function(){return g},Te:function(){return $},Tv:function(){return i},Uv:function(){return M},Uw:function(){return D},V3:function(){return b},Vr:function(){return v},Wk:function(){return V},XO:function(){return Z},Xh:function(){return k},_Z:function(){return F},d2:function(){return z},fF:function(){return I},fM:function(){return s},fV:function(){return R},fn:function(){return a},gp:function(){return o},hM:function(){return f},he:function(){return U},il:function(){return T},jO:function(){return y},l7:function(){return Y},lQ:function(){return Q},mC:function(){return u},p6:function(){return _},pP:function(){return X},sE:function(){return A},si:function(){return K},st:function(){return w},tR:function(){return P},u1:function(){return E},ww:function(){return d},xE:function(){return q},yL:function(){return B},yo:function(){return h}});var n=r(71417);function o(t){return(0,n.Z)({url:"/ext/workorderExt/page",method:"post",data:t})}function u(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 s(){return(0,n.Z)({url:"ext/userDeviceExt/getListByUser",method:"post"})}function d(t){return(0,n.Z)({url:"/ext/warehouseExt/page",method:"post",data:t})}function c(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 f(t){return(0,n.Z)({url:"ext/workorderRecordExt/createMaterial",method:"post",data:t})}function m(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 x(t){return(0,n.Z)({url:"ext/workorderRecordExt/all",method:"post",data:t})}function w(t){return(0,n.Z)({url:"ext/appliancesExt/getListByCondition",method:"post",data:t})}function h(t){return(0,n.Z)({url:"ext/workorderRecordExt/createProduce",method:"post",data:t})}function g(t){return(0,n.Z)({url:`/ext/workorderRecordExt/delete/${t}`,method:"get"})}function k(t){return(0,n.Z)({url:"ext/workorderRecordExt/updateById",method:"post",data:t})}function y(t){return(0,n.Z)({url:"ext/workorderCheckExt/listGroupByAppliance",method:"post",data:t})}function v(t){return(0,n.Z)({url:"ext/workorderRecordExt/comfirmDoneStandard",method:"post",data:t})}function _(t){return(0,n.Z)({url:"ext/checkAttrExt/getListByCondition",method:"post",data:t})}function Z(t){return(0,n.Z)({url:"ext/workorderCheckAttrExt/create",method:"post",data:t})}function E(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 D(t){return(0,n.Z)({url:"ext/workorderExt/saveFinishRecord",method:"post",data:t})}function U(t){return(0,n.Z)({url:"ext/workorderExt/getFinishRecord",method:"get",params:t})}function N(t){return(0,n.Z)({url:`ext/deviceExt/${t}`,method:"get"})}function B(t){return(0,n.Z)({url:"ext/wOutboundExt/finishedInBill",method:"get",params:t})}function L(t){return(0,n.Z)({url:"ext/userDeviceExt/create",method:"post",data:t})}function C(t){return(0,n.Z)({url:"ext/appliancesExt/page",method:"post",data:t})}function S(t){return(0,n.Z)({url:"ext/appliancesExt/chageApplicance",method:"post",data:t})}function z(t){return(0,n.Z)({url:"ext/categoryUnionExt/checkFGFXList",method:"get",params:t})}function q(t){return(0,n.Z)({url:"business/salesorder/allData",method:"post",data:t})}function I(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 O(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 T(t){return(0,n.Z)({url:"ext/workorderExt/finishedDetailNew",method:"get",params:t})}function A(t){return(0,n.Z)({url:"ext/routeCardExt/getListByWorkOrderId",method:"post",data:t})}function H(t){return(0,n.Z)({url:"ext/workorderRecordExt/getEndCheckAP",method:"get",params:t})}function W(t){return(0,n.Z)({url:`ext/workorderCheckAttrExt/delete/${t}`,method:"get"})}function Y(t){return(0,n.Z)({url:"ext/wStockExt/pageForH5",method:"post",data:t})}function K(t){return(0,n.Z)({url:"ext/warehouseLocationExt/page",method:"post",data:t})}function $(t){return(0,n.Z)({url:"ext/warehouseLocationExt/getListByWarehouseId",method:"get",params:t})}function j(t){return(0,n.Z)({url:"ext/wTransferExt/scanTransfer",method:"post",data:t})}function M(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 V(t){return(0,n.Z)({url:"/ext/wTransferExt/acceptWTransfer",method:"get",params:t})}function Q(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})}},57758:function(t,e,r){r.r(e),r.d(e,{default:function(){return ot}});var n=r(66252),o=r(3577),u=r(2262),a=r(42119),i=r(24530),s=r(20931),d=r(84149);const c=t=>((0,n.dD)("data-v-ac792ede"),t=t(),(0,n.Cn)(),t),l={class:"content"},f={class:"order-device"},m={class:"line-message"},p=c((()=>(0,n._)("span",null,"作业人员:",-1))),x={class:"line-message"},w=c((()=>(0,n._)("span",null,"机台设备:",-1))),h=(0,n.Uk)(" / "),g={class:"material-title"},k=c((()=>(0,n._)("div",{class:"title"},[(0,n._)("span",{class:"title-prefix"}),(0,n._)("span",null,"备料接收物料")],-1))),y={class:"order-time"},v={class:"material-content"},_={key:0,class:"item-style"},Z={class:"item-title-style"},E=c((()=>(0,n._)("span",{class:"green"}," [合格品] ",-1))),b={style:{"font-weight":"500"}},D={class:"item-content-style"},U={class:"subItem-style_top"},N={class:"subItem-first-style"},B={class:"subItem-second-style"},L={class:"subItem-style_bottom"},C={key:1,class:"item-style"},S={class:"item-title-style"},z=c((()=>(0,n._)("span",{class:"yellow"}," [不良品] ",-1))),q={style:{"font-weight":"500"}},I={class:"item-content-style"},R={class:"subItem-style_top"},O={class:"subItem-first-style"},F={class:"subItem-second-style"},T={class:"subItem-style_bottom"},A={class:"order-title"},H={class:"title"},W=c((()=>(0,n._)("span",{class:"title-prefix"},null,-1))),Y={class:"order-code"},K={class:"order-info"},$={class:"order-content"},j={class:"order-message-style"},M=c((()=>(0,n._)("span",{style:{color:"#666"}},"生产信息:",-1))),G={key:0,style:{color:"#222"}},P={key:1,style:{color:"#222"}},V={class:"order-message-style"},Q=c((()=>(0,n._)("span",{style:{color:"#666"}},"作业人员:",-1))),X=(0,n.Uk)(" / "),J=c((()=>(0,n._)("div",{style:{"background-color":"#e5e5e5",height:"1px"}},null,-1))),tt=c((()=>(0,n._)("div",{style:{height:"94px"}},null,-1)));var et=(0,n.aZ)({setup(t){const e=(0,a.yj)(),r=(0,a.tv)();let c=(0,u.iH)({});const et=()=>{(0,d.tR)({id:e.query.id}).then((t=>{200===t.code?c.value=t.data:(i.F.fail({message:t.message,forbidClick:!1,duration:2e3}),setTimeout((()=>{r.go(-1)}),2e3))})).catch((t=>{console.log(t)}))},rt=t=>{if(!t)return"";let e=0,r=0;for(const n of t)e+=n.sumBox,r+=n.sumNum;return e+"盒 | "+r+t[0].unitName},nt=t=>t&&t.length?t.length:0,ot=()=>{(0,d.Wk)({id:e.query.id}).then((t=>{200===t.code&&(i.F.success({message:"备料成功",duration:2e3,forbidClick:!0}),setTimeout((()=>{"1"===e.query.status&&"1"!=e.query.next?r.replace({name:"wInboundDetail",query:{id:e.query.id}}):r.replace({name:"wTransferDetail",query:{id:e.query.id}})}),2e3))})).catch((t=>{console.log(t)}))},ut=async t=>{let n=await(0,s.VK)(t);200===n.code&&(1===n.data.status&&"1"!==e.query.status?await r.replace({name:"wInboundDetail",query:{id:e.query.id}}):await et())};return(0,n.bv)((()=>{e.query.dbid?ut(e.query.dbid):et()})),(t,e)=>((0,n.wg)(),(0,n.iD)("div",l,[(0,n._)("div",f,[(0,n._)("div",m,[p,(0,n._)("span",null,(0,o.zw)((0,u.SU)(c).worker?(0,u.SU)(c).worker:"-")+" / "+(0,o.zw)((0,u.SU)(c).groupName?(0,u.SU)(c).groupName:"-"),1)]),(0,n._)("div",x,[w,((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)((0,u.SU)(c).deviceList,((t,e)=>((0,n.wg)(),(0,n.iD)("span",{key:e},[(0,n.Uk)(" ["+(0,o.zw)(t.code)+"]"+(0,o.zw)(t.name),1),e!==(0,u.SU)(c).deviceList.length-1?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[h],64)):(0,n.kq)("",!0)])))),128))])]),(0,n._)("div",g,[k,(0,n._)("div",y,[(0,n._)("div",null,"单号:"+(0,o.zw)((0,u.SU)(c).transferNo),1),(0,n._)("div",null,"时间:"+(0,o.zw)((0,u.SU)(c).validDate),1)])]),(0,n._)("div",v,[0!=nt((0,u.SU)(c).qualifiedBeanList)?((0,n.wg)(),(0,n.iD)("div",_,[(0,n._)("div",Z,[E,(0,n._)("span",b,(0,o.zw)(rt((0,u.SU)(c).qualifiedBeanList)),1)]),(0,n._)("div",D,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)((0,u.SU)(c).qualifiedBeanList,((t,e)=>((0,n.wg)(),(0,n.iD)("div",{class:"subItem-style",key:e},[(0,n._)("div",U,[(0,n._)("div",N,(0,o.zw)(t.materialName+" | "+t.materialCode),1),(0,n._)("div",B,(0,o.zw)(t.sumBox+"盒 | "+t.sumNum+t.unitName),1)]),(0,n._)("div",L,[(0,n._)("span",null,(0,o.zw)(t.procedureName?t.procedureName:"-")+" | "+(0,o.zw)(t.batch?t.batch:"-"),1)])])))),128))])])):(0,n.kq)("",!0),0!=nt((0,u.SU)(c).rejectsBeanList)?((0,n.wg)(),(0,n.iD)("div",C,[(0,n._)("div",S,[z,(0,n._)("span",q,(0,o.zw)(rt((0,u.SU)(c).rejectsBeanList)),1)]),(0,n._)("div",I,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)((0,u.SU)(c).rejectsBeanList,((t,e)=>((0,n.wg)(),(0,n.iD)("div",{class:"subItem-style",key:e},[(0,n._)("div",R,[(0,n._)("div",O,(0,o.zw)(t.materialName),1),(0,n._)("div",F,(0,o.zw)(t.sumBox+"盒 | "+t.sumNum+t.unitName),1)]),(0,n._)("div",T,[(0,n._)("span",null,(0,o.zw)(t.procedureName?t.procedureName:"-")+" | "+(0,o.zw)(t.batch?t.batch:"-"),1)])])))),128))])])):(0,n.kq)("",!0)]),(0,n._)("div",A,[(0,n._)("div",H,[W,(0,n._)("span",null,(0,o.zw)("本次备料生产工单 ("+nt((0,u.SU)(c).wtransferConfirmWorkOrderBeanList)+")"),1)])]),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)((0,u.SU)(c).wtransferConfirmWorkOrderBeanList,((t,e)=>((0,n.wg)(),(0,n.iD)("div",{class:"order-item-style",key:e},[(0,n._)("div",Y,(0,o.zw)(t.workOrderNo),1),(0,n._)("div",K,(0,o.zw)(t.typeDetail+"["+t.planDate+"]"),1),(0,n._)("div",$,[(0,n._)("div",j,[M,t.batch?((0,n.wg)(),(0,n.iD)("span",G,(0,o.zw)(t.materialName+" | "+t.batch+" | "+t.procedureName+" | "+t.planNum+t.unitName),1)):((0,n.wg)(),(0,n.iD)("span",P,(0,o.zw)(t.materialName+"|"+t.procedureName+" | "+t.planNum+t.unitName),1))]),(0,n._)("div",V,[Q,((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(t.workOrderUserList,((e,r)=>((0,n.wg)(),(0,n.iD)("span",{style:{color:"#222"},key:r},[(0,n.Uk)((0,o.zw)(e.proUserDepartName),1),t.workOrderUserList.length-1!==r?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[X],64)):(0,n.kq)("",!0)])))),128))])]),J])))),128)),tt,(0,n._)("div",{class:"bottom-button"},[(0,n._)("button",{class:"button",onClick:ot},"接收备料")])]))}}),rt=r(83744);const nt=(0,rt.Z)(et,[["__scopeId","data-v-ac792ede"]]);var ot=nt}}]);
|