"use strict";(self["webpackChunkworkorder"]=self["webpackChunkworkorder"]||[]).push([[9733],{84149:function(t,r,e){e.d(r,{Ae:function(){return m},Be:function(){return D},Bp:function(){return X},CM:function(){return H},Dy:function(){return z},E3:function(){return B},Gh:function(){return W},IY:function(){return R},N$:function(){return x},N6:function(){return s},Nv:function(){return p},Ov:function(){return P},QU:function(){return A},Qi:function(){return f},Re:function(){return Z},Te:function(){return $},Tv:function(){return d},Uv:function(){return j},Uw:function(){return S},V3:function(){return C},Vr:function(){return g},Wk:function(){return Q},XO:function(){return _},Xh:function(){return w},_Z:function(){return G},d2:function(){return I},fF:function(){return F},fM:function(){return c},fV:function(){return T},fn:function(){return a},gp:function(){return o},hM:function(){return l},he:function(){return L},il:function(){return O},jO:function(){return k},l7:function(){return K},lQ:function(){return V},mC:function(){return u},p6:function(){return b},pP:function(){return q},sE:function(){return N},si:function(){return M},st:function(){return h},tR:function(){return Y},u1:function(){return v},ww:function(){return i},xE:function(){return U},yL:function(){return y},yo:function(){return E}});var n=e(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 d(t){return(0,n.Z)({url:"ext/categoryUnionExt/checkAllList",method:"post",data:t})}function c(){return(0,n.Z)({url:"ext/userDeviceExt/getListByUser",method:"post"})}function i(t){return(0,n.Z)({url:"/ext/warehouseExt/page",method:"post",data:t})}function s(t){return(0,n.Z)({url:"ext/workorderExt/finishedDetail",method:"get",params:t})}function f(t){return(0,n.Z)({url:"ext/appliancesExt/getListByCondition",method:"post",data:t})}function l(t){return(0,n.Z)({url:"ext/workorderRecordExt/createMaterial",method:"post",data:t})}function x(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 m(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 E(t){return(0,n.Z)({url:"ext/workorderRecordExt/createProduce",method:"post",data:t})}function Z(t){return(0,n.Z)({url:`/ext/workorderRecordExt/delete/${t}`,method:"get"})}function w(t){return(0,n.Z)({url:"ext/workorderRecordExt/updateById",method:"post",data:t})}function k(t){return(0,n.Z)({url:"ext/workorderCheckExt/listGroupByAppliance",method:"post",data:t})}function g(t){return(0,n.Z)({url:"ext/workorderRecordExt/comfirmDoneStandard",method:"post",data:t})}function b(t){return(0,n.Z)({url:"ext/checkAttrExt/getListByCondition",method:"post",data:t})}function _(t){return(0,n.Z)({url:"ext/workorderCheckAttrExt/create",method:"post",data:t})}function v(t){return(0,n.Z)({url:"ext/workorderCheckAttrExt/page",method:"post",data:t})}function C(t){return(0,n.Z)({url:"ext/workorderExt/finished",method:"get",params:t})}function S(t){return(0,n.Z)({url:"ext/workorderExt/saveFinishRecord",method:"post",data:t})}function L(t){return(0,n.Z)({url:"ext/workorderExt/getFinishRecord",method:"get",params:t})}function B(t){return(0,n.Z)({url:`ext/deviceExt/${t}`,method:"get"})}function y(t){return(0,n.Z)({url:"ext/wOutboundExt/finishedInBill",method:"get",params:t})}function D(t){return(0,n.Z)({url:"ext/userDeviceExt/create",method:"post",data:t})}function R(t){return(0,n.Z)({url:"ext/appliancesExt/page",method:"post",data:t})}function A(t){return(0,n.Z)({url:"ext/appliancesExt/chageApplicance",method:"post",data:t})}function I(t){return(0,n.Z)({url:"ext/categoryUnionExt/checkFGFXList",method:"get",params:t})}function U(t){return(0,n.Z)({url:"business/salesorder/allData",method:"post",data:t})}function F(t){return(0,n.Z)({url:"business/backorder/create",method:"post",data:t})}function T(t){return(0,n.Z)({url:"business/backorder/page",method:"post",data:t})}function P(t){return(0,n.Z)({url:`business/backorder/${t}`,method:"get"})}function G(t){return(0,n.Z)({url:"ext/proceduresExt/productesGroup",method:"post",data:t})}function O(t){return(0,n.Z)({url:"ext/workorderExt/finishedDetailNew",method:"get",params:t})}function N(t){return(0,n.Z)({url:"ext/routeCardExt/getListByWorkOrderId",method:"post",data:t})}function W(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 K(t){return(0,n.Z)({url:"ext/wStockExt/pageForH5",method:"post",data:t})}function M(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 z(t){return(0,n.Z)({url:"ext/wTransferExt/scanTransfer",method:"post",data:t})}function j(t){return(0,n.Z)({url:"ext/workorderRecordExt/allForStandard",method:"post",data:t})}function X(t){return(0,n.Z)({url:"ext/workorderRecordExt/getWorkorderRecordListStandard",method:"get",params:t})}function Y(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 q(t){return(0,n.Z)({url:"/ext/wOutboundExt/wOutBoundForStockUp",method:"post",data:t})}},49771:function(t,r,e){var n,o;e.d(r,{M:function(){return n},a:function(){return o}}),function(t){t[t["WL"]=0]="WL",t[t["CK"]=1]="CK",t[t["HW"]=2]="HW",t[t["GD"]=3]="GD",t[t["GZ"]=4]="GZ",t[t["SB"]=5]="SB",t[t["YG"]=6]="YG",t[t["ZKD"]=7]="ZKD",t[t["CKD"]=8]="CKD",t[t["RKD"]=9]="RKD"}(n||(n={})),function(t){t["HH"]="APPLIANCE_MIX",t["HG"]="APPLIANCE_ONTEST",t["BL"]="APPLIANCE_OFFTEST",t["BF"]="APPLIANCE_USELESS"}(o||(o={}))},59733:function(t,r,e){e.r(r),e.d(r,{default:function(){return S}});var n=e(66252),o=e(3577),u=e(2262),a=e(42119),d=e(33907),c=e(49771),i=e(24530),s=e(84149),f=e(48569);const l=t=>((0,n.dD)("data-v-471b43cd"),t=t(),(0,n.Cn)(),t),x={class:"bsb"},p={class:"bsb_box"},m={class:"bsb_box_item"},h=l((()=>(0,n._)("span",null,"设备编码",-1))),E={class:"bsb_box_item"},Z=l((()=>(0,n._)("span",null,"设备名称",-1))),w={class:"bsb_box_item"},k=l((()=>(0,n._)("span",null,"设备型号",-1))),g={class:"bsb_box_item"},b=l((()=>(0,n._)("span",null,"关联用户",-1)));var _=(0,n.aZ)({setup(t){const r=(0,a.yj)(),e=(0,a.tv)(),l=(0,d.oR)();let _=(0,u.iH)(!1),v=(0,u.iH)({});const C=()=>{_.value=!1},S=t=>{(0,n.Y3)((()=>{_.value=!1})),(0,s.Nv)({barcode:t[0]}).then((t=>{200===t.code&&t.data.barcodeType===c.M.SB?B(t.data.id):(0,i.F)({message:"请扫描正确的设备码"})}))},L=()=>{_.value=!0},B=t=>{(0,s.E3)(t).then((t=>{200===t.code&&(v.value=t.data)}))},y=()=>{(0,s.Be)({deviceId:v.value.id,userIds:l.state.userInfo.companyUser.id}).then((t=>{200===t.code&&(i.F.success({message:"绑定成功",duration:2e3,forbidClick:!0}),setTimeout((()=>{e.go(-1)}),2e3))}))};return(0,n.bv)((()=>{let t=r.query.id;B(t)})),(t,r)=>((0,n.wg)(),(0,n.iD)("div",x,[(0,n._)("div",p,[(0,n._)("div",m,[h,(0,n._)("span",null,(0,o.zw)((0,u.SU)(v).code),1)]),(0,n._)("div",E,[Z,(0,n._)("span",null,(0,o.zw)((0,u.SU)(v).name),1)]),(0,n._)("div",w,[k,(0,n._)("span",null,(0,o.zw)((0,u.SU)(v).model),1)]),(0,n._)("div",g,[b,(0,n._)("span",null,(0,o.zw)((0,u.SU)(l).state.userInfo.realname)+"/"+(0,o.zw)((0,u.SU)(l).state.userInfo.companyUser.dmodel.name),1)])]),(0,n._)("div",{class:"bsb_footer"},[(0,n._)("div",{class:"bsb_footer_jx",onClick:L},"重新扫码"),(0,n._)("div",{class:"bsb_footer_tj",onClick:y},"提交")]),(0,n.Wm)(f.Z,{openCode:(0,u.SU)(_),infos:["请扫描设备码"],onClosePopup:C,onOnDecode:S},null,8,["openCode"])]))}}),v=e(83744);const C=(0,v.Z)(_,[["__scopeId","data-v-471b43cd"]]);var S=C}}]);
|