|
- "use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[420],{55492:function(q,T,r){var w=r(97857),l=r.n(w),h=r(12578);T.Z={Add:function(o){return(0,h.request)("/api/finalsinfo/add",{method:"POST",data:l()({},o)})},Del:function(o){return(0,h.request)("/api/finalsinfo/del",{method:"POST",data:l()({},o)})},Update:function(o){return(0,h.request)("/api/finalsinfo/update",{method:"POST",data:l()({},o)})},Detail:function(o){return(0,h.request)("/api/finalsinfo/detail?id=".concat(o),{method:"GET"})},List:function(){return(0,h.request)("/api/finalsinfo/list",{method:"POST"})},SelectList:function(){return(0,h.request)("/api/finalsinfo/selectlist",{method:"GET"})},UnBindList:function(){return(0,h.request)("/api/finalsinfo/UnBindList",{method:"GET"})},PagedList:function(o){return(0,h.request)("/api/finalsinfo/pagedlist",{method:"POST",data:l()({},o)})},BatchUpdate:function(o){return(0,h.request)("/api/finalsinfo/batchupdate",{method:"POST",data:o})},RecipeList:function(o){return(0,h.request)(" api/finalsinfo/list",{method:"POST",data:{deviceId:o}})}}},55370:function(q,T,r){var w=r(97857),l=r.n(w),h=r(12578);T.Z={Add:function(o){return(0,h.request)("/api/productline/add",{method:"POST",data:l()({},o)})},Del:function(o){return(0,h.request)("/api/productline/del",{method:"POST",data:l()({},o)})},Update:function(o){return(0,h.request)("/api/productline/update",{method:"POST",data:l()({},o)})},List:function(){return(0,h.request)("/api/productline/list",{method:"GET"})},PagedList:function(o){return(0,h.request)("/api/productline/pagedlist",{method:"POST",data:l()({},o)})},selectlist:function(){return(0,h.request)("/api/productline/selectlist",{method:"GET"})},adddevice:function(o){return(0,h.request)("/api/productline/adddevice",{method:"POST",data:l()({},o)})},addstock:function(o){return(0,h.request)("/api/productline/addstock",{method:"POST",data:l()({},o)})},devicepagelist:function(o){return(0,h.request)("/api/productline/devicepagelist",{method:"POST",data:l()({},o)})},devicelist:function(o){return(0,h.request)("/api/productline/devicelist",{method:"POST",data:l()({},o)})},stockpagelist:function(o){return(0,h.request)("/api/productline/stockpagelist",{method:"POST",data:l()({},o)})},deletedevice:function(o){return(0,h.request)("/api/productline/deletedevice",{method:"POST",data:l()({},o)})},deletestock:function(o){return(0,h.request)("/api/productline/deletestock",{method:"POST",data:l()({},o)})}}},21366:function(q,T,r){r.r(T),r.d(T,{default:function(){return Ze}});var w=r(15009),l=r.n(w),h=r(99289),c=r.n(h),o=r(5574),S=r.n(o),G=r(15513),pe=r(76239),Z=r(12029),ve=r(17093),Ee=r(3363),p=r(71577),B=r(86738),m=r(45360),A=r(5914),Y=r(51904),L=r(12096),y=r(34041),H=r(2487),z=r(42075),Se=r(4393),N=r(78045),v=r(67294),xe=r(97857),D=r.n(xe),P=r(12578),E={Add:function(f){return(0,P.request)("/api/workinfo/add",{method:"POST",data:D()({},f)})},AddBatch:function(f){return(0,P.request)("/api/workbatch/add",{method:"POST",data:D()({},f)})},UpdateBatch:function(f){return(0,P.request)("/api/workbatch/update",{method:"POST",data:D()({},f)})},DelBatch:function(f){return(0,P.request)("/api/workbatch/del",{method:"POST",data:D()({},f)})},Del:function(f){return(0,P.request)("/api/workinfo/del",{method:"POST",data:D()({},f)})},Update:function(f){return(0,P.request)("/api/workinfo/update",{method:"POST",data:D()({},f)})},List:function(f){return(0,P.request)("/api/workinfo/list",{method:"POST",data:D()({},f)})},PagedList:function(f){return(0,P.request)("/api/workinfo/pagedlist",{method:"POST",data:D()({},f)})},WorkBatchPagedList:function(f){return(0,P.request)("/api/workbatch/pagedlist",{method:"POST",data:D()({},f)})},Publish:function(f){return(0,P.request)("/api/workinfo/publish",{method:"POST",data:D()({},f)})},publishs:function(f){return(0,P.request)("/api/workinfo/publishs",{method:"POST",data:D()({},f)})},UpdateStatus:function(f){return(0,P.request)("/api/workinfo/ForcedEnd",{method:"POST",data:D()({},f)})},ForcedEnd:function(f){return(0,P.request)("/api/workinfo/forcedend/".concat(f),{method:"POST"})},UpdateStatusList:function(f){return(0,P.request)("/api/workinfo/statuslist/".concat(f),{method:"GET"})}},Pe=r(55492),K=r(55370),Ce=r(27484),I=r.n(Ce),e=r(85893),dt=pe.Z,ge=[{title:"\u8349\u7A3F",description:""},{title:"\u5DF2\u4E0B\u53D1",description:""},{title:"\u5DF2\u63A5\u53D7",description:""},{title:"\u5DF2\u542F\u52A8",description:""},{title:"\u5DF2\u5B8C\u6210",description:""}],ot=[{title:"\u8349\u7A3F",description:""},{title:"\u5DF2\u4E0B\u53D1",description:""},{title:"\u5DF2\u63A5\u53D7",description:""},{title:"\u5DF2\u542F\u52A8",description:""},{title:"\u5DF2\u5B8C\u6210",description:""}],Ze=function(){var x=Z.Z.useForm(),f=S()(x,1),k=f[0],De=Z.Z.useForm(),je=S()(De,1),W=je[0],Be=(0,v.useState)(),V=S()(Be,2),Fe=V[0],J=V[1],Te=(0,v.useState)([]),Q=S()(Te,2),ye=Q[0],Ie=Q[1],ke=(0,v.useState)([]),X=S()(ke,2),Oe=X[0],we=X[1],be=(0,v.useState)([]),$=S()(be,2),Ae=$[0],Le=$[1],Me=(0,v.useState)([]),_=S()(Me,2),ee=_[0],te=_[1],Ue=(0,v.useState)(),ne=S()(Ue,2),O=ne[0],M=ne[1],Re=(0,v.useState)(),ae=S()(Re,2),U=ae[0],ue=ae[1],Ye=(0,v.useState)(),ie=S()(Ye,2),Ne=ie[0],Ke=ie[1],We=(0,v.useState)(!1),se=S()(We,2),Je=se[0],F=se[1],qe=(0,v.useState)(!1),re=S()(qe,2),Ge=re[0],b=re[1],He=(0,v.useState)(!1),de=S()(He,2),ze=de[0],R=de[1],Ve=(0,v.useState)(!1),oe=S()(Ve,2),Qe=oe[0],le=oe[1],Xe=(0,v.useRef)(),C=(0,v.useRef)(),$e=(0,v.useState)([]),ce=S()($e,2),lt=ce[0],ct=ce[1],_e=(0,v.useState)(!1),fe=S()(_e,2),et=fe[0],ft=fe[1],tt=[{title:"\u5DE5\u5355\u7F16\u7801",dataIndex:"id",hideInSearch:!0,width:140,align:"center"},{title:"\u7EBF\u8DEF\u540D\u79F0",dataIndex:"lineName",ellipsis:!0,hideInSearch:!0,align:"center",width:100},{title:"\u7092\u9505\u540D\u79F0",dataIndex:"deviceName",ellipsis:!0,hideInSearch:!0,align:"center",width:100,renderText:function(d,t,u,a){return(0,e.jsx)(e.Fragment,{children:t.deviceName?t.deviceName:"\u81EA\u52A8\u5206\u914D"})}},{title:"\u6210\u54C1\u540D\u79F0",dataIndex:"finalName",align:"center",hideInSearch:!0,ellipsis:!0},{title:"\u4EA7\u91CF",dataIndex:"number",ellipsis:!0,hideInSearch:!0,align:"center",width:100},{dataIndex:"batchId",align:"center",hideInSearch:!0,ellipsis:!0,hideInTable:!0},{title:"\u8FDB\u5EA6",dataIndex:"status",ellipsis:!0,align:"center",hideInSearch:!0,render:function(d,t){return(0,e.jsx)(ve.ZP,{theme:{components:{Steps:{navArrowColor:"red",descriptionMaxWidth:50}}},children:(0,e.jsx)(Ee.Z,{progressDot:!0,direction:"horizontal",type:"default",current:t.status,size:"small",items:ge})})}},{title:"\u521B\u5EFA\u65E5\u671F",dataIndex:"createTime",ellipsis:!0,hideInSearch:!0,width:140},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(d,t){switch(t.status){case 0:return[(0,e.jsx)(p.ZP,{type:"primary",ghost:!0,onClick:c()(l()().mark(function u(){var a,n;return l()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:F(!0),J("\u7F16\u8F91\u4FE1\u606F"),a=JSON.parse(JSON.stringify(t)),console.log("record",t),n={lineId:t.lineId},K.Z.devicelist(n).then(function(j){j.statusCode===200&&te(j.data)}),k.setFieldsValue(a);case 7:case"end":return g.stop()}},u)})),children:"\u7F16\u8F91"},"edit"),(0,e.jsx)(B.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){var a={id:t.id};E.Del(a).then(function(n){if(n.statusCode===200){var s;m.ZP.success(n.statusCode===200?"\u5220\u9664\u6210\u529F":n.message),(s=C.current)===null||s===void 0||s.reload()}})},onCancel:function(){m.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,e.jsx)(p.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5220\u9664"})},"workdel"),(0,e.jsx)(B.Z,{title:"\u786E\u5B9A\u8981\u4E0B\u53D1\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){M(t);var a={workId:t.id};E.Publish(a).then(function(n){if(n.statusCode===200){var s;m.ZP.success(n.statusCode===200?"\u4E0B\u53D1\u6210\u529F":n.message),(s=C.current)===null||s===void 0||s.reload()}})},onCancel:function(){m.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,e.jsx)(p.ZP,{type:"primary",ghost:!0,children:"\u4E0B\u53D1"})},"workedit")];case 1:return[(0,e.jsx)(B.Z,{title:"\u786E\u5B9A\u8981\u4E0B\u53D1\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){console.log("ssssssssddd",t),M(t);var a={workId:t.id};E.Publish(a).then(function(n){if(n.statusCode===200){var s;m.ZP.success(n.statusCode===200?"\u4E0B\u53D1\u6210\u529F":n.message),(s=C.current)===null||s===void 0||s.reload()}})},onCancel:function(){m.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,e.jsx)(p.ZP,{type:"primary",ghost:!0,children:"\u7EE7\u7EED\u4E0B\u53D1"})},"workedit"),(0,e.jsx)(B.Z,{title:"\u786E\u5B9A\u8981\u5F3A\u5236\u7ED3\u675F\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){E.ForcedEnd(t.id).then(function(a){if(a.statusCode===200){var n;m.ZP.success(a.statusCode===200?"\u5F3A\u5236\u7ED3\u675F\u6210\u529F":a.message),(n=C.current)===null||n===void 0||n.reload()}})},onCancel:function(){m.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,e.jsx)(p.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5F3A\u5236\u7ED3\u675F"})},"forcedend")];case 2:return[(0,e.jsx)(B.Z,{title:"\u786E\u5B9A\u8981\u5F3A\u5236\u7ED3\u675F\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){E.ForcedEnd(t.id).then(function(a){a.statusCode===200&&m.ZP.success(a.statusCode===200?"\u5F3A\u5236\u7ED3\u675F\u6210\u529F":a.message)})},onCancel:function(){m.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,e.jsx)(p.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5F3A\u5236\u7ED3\u675F"})},"forcedend")];case 3:return[(0,e.jsx)(B.Z,{title:"\u786E\u5B9A\u8981\u5F3A\u5236\u7ED3\u675F\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){E.ForcedEnd(t.id).then(function(a){a.statusCode===200&&m.ZP.success(a.statusCode===200?"\u5F3A\u5236\u7ED3\u675F\u6210\u529F":a.message)})},onCancel:function(){m.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,e.jsx)(p.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5F3A\u5236\u7ED3\u675F"})},"forcedend")];case 4:return[(0,e.jsx)(p.ZP,{type:"primary",ghost:!0,onClick:function(){le(!0),E.UpdateStatusList(t.id).then(function(a){a.statusCode===200&&Le(a.data)})},children:"\u72B6\u6001\u53D8\u66F4\u8BB0\u5F55"},"workStatusUpdate")];default:return[]}}}],nt=[{title:"\u6279\u6B21\u7F16\u7801",dataIndex:"id",width:160,align:"center"},{title:"\u6279\u6B21\u540D\u79F0",dataIndex:"name",ellipsis:!0,hideInSearch:!0,align:"center",width:180},{title:"\u5DE5\u5355\u4E2A\u6570",dataIndex:"count",ellipsis:!0,hideInSearch:!0,align:"center",width:80},{title:"\u72B6\u6001",dataIndex:"status",ellipsis:!0,hideInSearch:!0,align:"center",valueEnum:{0:{text:"\u8349\u7A3F"},1:{text:"\u5DF2\u4E0B\u53D1"},2:{text:"\u5DF2\u63A5\u53D7"},3:{text:"\u5DF2\u542F\u52A8"},4:{text:"\u5DF2\u5B8C\u6210"}},width:180},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createTime",render:function(d,t,u,a,n){return(0,e.jsx)(e.Fragment,{children:I()(t.createTime).format("YYYY-MM-DD HH:mm:ss")})},align:"center",valueType:"dateRange",ellipsis:!0},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(d,t){switch(t.status){case 0:return[(0,e.jsx)(p.ZP,{type:"primary",ghost:!0,onClick:c()(l()().mark(function u(){return l()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:k.resetFields(),k.setFieldValue("number","1"),F(!0),ue(t),Ke({batchId:t.id}),he(function(s){return[t.id]}),J("\u65B0\u589E\u4FE1\u606F");case 7:case"end":return n.stop()}},u)})),children:"\u65B0\u589E\u5DE5\u5355"},"edit"),t.count>0?(0,e.jsx)(B.Z,{title:"\u786E\u5B9A\u8981\u4E0B\u53D1\u5168\u90E8\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){M(t);var a={batchId:t.id};E.publishs(a).then(function(n){if(n.statusCode===200){var s;(s=C.current)===null||s===void 0||s.reload()}})},onCancel:function(){m.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,e.jsx)(p.ZP,{type:"primary",ghost:!0,children:"\u6279\u6B21\u4E0B\u53D1"})},"workedit"):"",(0,e.jsx)(B.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){var a={id:t.id};E.DelBatch(a).then(function(n){if(n.statusCode===200){var s;m.ZP.success(n.statusCode===200?"\u5220\u9664\u6210\u529F":n.message),(s=C.current)===null||s===void 0||s.reload()}})},onCancel:function(){m.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,e.jsx)(p.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5220\u9664"})},"workdel")];case 1:return[(0,e.jsx)(p.ZP,{type:"primary",ghost:!0,onClick:c()(l()().mark(function u(){return l()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:k.resetFields(),F(!0),ue(t),J("\u65B0\u589E\u4FE1\u606F");case 4:case"end":return n.stop()}},u)})),children:"\u65B0\u589E\u5DE5\u5355"},"edit"),(0,e.jsx)(B.Z,{title:"\u786E\u5B9A\u8981\u4E0B\u53D1\u5168\u90E8\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){M(t);var a={batchId:t.id};E.publishs(a).then(function(n){if(n.statusCode===200){var s;(s=C.current)===null||s===void 0||s.reload()}})},onCancel:function(){m.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,e.jsx)(p.ZP,{type:"primary",ghost:!0,children:"\u7EE7\u7EED\u4E0B\u53D1"})},"workedit"),(0,e.jsx)(B.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6279\u6B21\u8BA1\u5212\u5417\uFF1F",onConfirm:function(){var a={id:t.id};E.DelBatch(a).then(function(n){if(n.statusCode===200){var s;m.ZP.success(n.statusCode===200?"\u5220\u9664\u6210\u529F":n.message),(s=C.current)===null||s===void 0||s.reload()}})},onCancel:function(){m.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,e.jsx)(p.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5220\u9664"})},"workdel")];case 2:return[];default:return[]}}}];(0,v.useEffect)(function(){Pe.Z.SelectList().then(function(i){i.statusCode===200&&Ie(i.data)}),K.Z.selectlist().then(function(i){i.statusCode===200&&we(i.data)})},[]);var at=function(){var i=c()(l()().mark(function d(t){var u,a,n,s;return l()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(!t.id){j.next=7;break}return j.next=3,E.UpdateBatch(t);case 3:u=j.sent,u.statusCode===200?(m.ZP.success("\u4FEE\u6539\u6210\u529F"),(a=C.current)===null||a===void 0||a.reload(),b(!1)):m.ZP.error(JSON.stringify(u.errors)||"\u4FEE\u6539\u5931\u8D25"),j.next=12;break;case 7:return j.next=9,E.AddBatch(t);case 9:n=j.sent,console.log("response",n),n.statusCode===200?(m.ZP.success("\u6DFB\u52A0\u6210\u529F"),(s=C.current)===null||s===void 0||s.reload(),b(!1)):m.ZP.error(JSON.stringify(n.errors)||"\u6DFB\u52A0\u5931\u8D25");case 12:case"end":return j.stop()}},d)}));return function(t){return i.apply(this,arguments)}}(),ut=function(){var i=c()(l()().mark(function d(t){var u,a,n;return l()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(console.log(U),t.batchId=U==null?void 0:U.id,!t.id){g.next=9;break}return g.next=5,E.Update(t);case 5:u=g.sent,u.statusCode===200?(m.ZP.success("\u4FEE\u6539\u6210\u529F"),F(!1)):m.ZP.error(JSON.stringify(u.errors)||"\u4FEE\u6539\u5931\u8D25"),g.next=14;break;case 9:return g.next=11,E.Add(t);case 11:a=g.sent,console.log("response",a),a.statusCode===200?(m.ZP.success("\u6DFB\u52A0\u6210\u529F"),(n=C.current)===null||n===void 0||n.reload(),F(!1)):m.ZP.error(JSON.stringify(a.errors)||"\u6DFB\u52A0\u5931\u8D25");case 14:case"end":return g.stop()}},d)}));return function(t){return i.apply(this,arguments)}}(),it=(0,v.useState)([]),me=S()(it,2),st=me[0],he=me[1],rt=function(d){console.log("data",d.workList);var t=d.workList;return(0,e.jsx)(G.Z,{search:!1,columns:tt,actionRef:Xe,cardBordered:!0,style:{background:"burlywood"},loading:et,params:Ne,dataSource:t,rowKey:"id",pagination:!1,dateFormatter:"string",headerTitle:"\u5DE5\u5355\u5217\u8868",toolBarRender:!1})};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(G.Z,{expandable:{expandedRowRender:rt,expandedRowKeys:st,onExpand:function(d,t){he(function(u){return d?[t.id]:[]})}},columns:nt,actionRef:C,cardBordered:!0,request:c()(l()().mark(function i(){var d,t,u,a=arguments;return l()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return d=a.length>0&&a[0]!==void 0?a[0]:{},t={pageIndex:d.current||1,pageSize:d.pageSize||10,id:d.id,endTime:d.createTime?I()(d.createTime[1]):null,startTime:d.createTime?I()(d.createTime[0]):null},s.next=4,E.WorkBatchPagedList(t);case 4:if(u=s.sent,u.statusCode!==200){s.next=9;break}return s.abrupt("return",{data:u.data.items,success:!0,total:u.data.total});case 9:return s.abrupt("return",{data:[],success:!1,total:0});case 10:case"end":return s.stop()}},i)})),rowKey:"id",pagination:{pageSize:10,showTitle:!0,showSizeChanger:!1},dateFormatter:"string",headerTitle:"\u6279\u6B21\u8BA1\u5212\u5217\u8868",toolBarRender:function(){return[(0,e.jsx)(p.ZP,{type:"primary",onClick:function(){W.resetFields(),W.setFieldValue("name",I()().format("YYYYMMDDHHmmss")+"\u6279\u6B21\u4EFB\u52A1"),b(!0)},children:"\u65B0\u5EFA\u6279\u6B21"},"button")]}},"myBatchTable"),(0,e.jsx)(A.Z,{maskClosable:!1,width:800,title:(0,e.jsx)(Y.Z,{color:"#cd201f",children:Fe}),open:Je,onCancel:function(){F(!1)},footer:[(0,e.jsx)(p.ZP,{onClick:function(){F(!1)},children:"\u8FD4\u56DE"},"back"),(0,e.jsx)(p.ZP,{form:"workInfoForm",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],children:(0,e.jsxs)(Z.Z,{form:k,name:"basic",id:"workInfoForm",onFinish:ut,autoComplete:"off",children:[(0,e.jsx)(Z.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,e.jsx)(L.Z,{})}),(0,e.jsx)(Z.Z.Item,{label:"\u6210\u54C1",name:"finalId",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,e.jsx)(y.Z,{children:ye.map(function(i,d){return(0,e.jsx)(y.Z.Option,{value:i.key,children:(0,e.jsx)("span",{children:i.value})},i.key)})})}),(0,e.jsx)(Z.Z.Item,{label:"\u4EA7\u7EBF",name:"lineId",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,e.jsx)(y.Z,{onChange:function(d){k.setFieldValue("deviceId","");var t={lineId:d};K.Z.devicelist(t).then(function(u){u.statusCode===200&&te(u.data)})},children:Oe.map(function(i,d){return(0,e.jsx)(y.Z.Option,{value:i.key,children:(0,e.jsx)("span",{children:i.value})},i.key)})})}),(0,e.jsx)(Z.Z.Item,{name:"deviceId",label:"\u9009\u62E9\u8BBE\u5907",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u9009\u9879!"}],children:(0,e.jsx)(y.Z,{placeholder:"\u8BF7\u9009\u62E9\u8BBE\u5907",children:ee.map(function(i,d){return(0,e.jsx)(y.Z.Option,{value:i.deviceId,children:(0,e.jsx)("span",{children:i.deviceName})},d)})})}),(0,e.jsx)(Z.Z.Item,{label:"\u4EA7\u91CF(\u9505)",name:"number",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,e.jsx)(L.Z,{type:"number",min:1})})]})}),(0,e.jsx)(A.Z,{maskClosable:!1,width:800,title:(0,e.jsx)(Y.Z,{color:"#cd201f",children:"\u72B6\u6001\u53D8\u66F4\u8BB0\u5F55"}),open:Qe,footer:!1,onCancel:function(){le(!1)},children:(0,e.jsx)(H.Z,{size:"large",dataSource:Ae,renderItem:function(d,t){return(0,e.jsx)("div",{children:(0,e.jsx)(H.Z.Item,{children:(0,e.jsxs)(z.Z,{children:[I()(d.createTime).format("YYYY-MM-DD HH:mm:ss"),d.statusName,d.remark]})})})}})},"workStatusList"),(0,e.jsx)(A.Z,{maskClosable:!1,width:800,title:(0,e.jsx)(Y.Z,{color:"#cd201f",children:"\u5DE5\u5355\u4E0B\u53D1-\u9009\u62E9\u533A\u57DF"}),open:ze,onCancel:function(){R(!1)},footer:[(0,e.jsx)(p.ZP,{onClick:function(){R(!1)},children:"\u8FD4\u56DE"},"back"),(0,e.jsx)(p.ZP,{form:"deviceqy",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],children:(0,e.jsx)(Se.Z,{children:(0,e.jsx)(Z.Z,{id:"deviceqy",onFinish:function(d){if(console.log(d),d.group){var t={workId:O==null?void 0:O.id,deviceId:d.group};E.Publish(t).then(function(a){if(a.statusCode===200){var n;m.ZP.success(a.statusCode===200?"\u4E0B\u53D1\u6210\u529F":a.message),(n=C.current)===null||n===void 0||n.reload(),R(!1)}})}else{var u={workId:O==null?void 0:O.id};E.Publish(u).then(function(a){if(a.statusCode===200){var n;m.ZP.success(a.statusCode===200?"\u4E0B\u53D1\u6210\u529F":a.message),(n=C.current)===null||n===void 0||n.reload(),R(!1)}})}},children:(0,e.jsx)(Z.Z.Item,{name:"group",children:(0,e.jsx)(N.ZP.Group,{name:"radiogroup",defaultValue:"",children:(0,e.jsxs)(z.Z,{direction:"vertical",children:[(0,e.jsx)(N.ZP,{value:"",children:"\u81EA\u52A8(\u7CFB\u7EDF\u6839\u636E\u8BBE\u5907\u4F7F\u7528\u60C5\u51B5\u81EA\u52A8\u5206\u914D)"}),ee.map(function(i,d){return(0,e.jsx)(N.ZP,{value:i.deviceId,children:i.deviceName},d)})]})})})})})},"01"),(0,e.jsx)(A.Z,{maskClosable:!1,destroyOnClose:!0,width:800,title:"\u6279\u6B21\u8BA1\u5212",open:Ge,onCancel:function(){b(!1)},footer:[(0,e.jsx)(p.ZP,{onClick:function(){b(!1)},children:"\u8FD4\u56DE"},"back"),(0,e.jsx)(p.ZP,{form:"batchForm",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],children:(0,e.jsxs)(Z.Z,{form:W,name:"basic",id:"batchForm",onFinish:at,autoComplete:"off",children:[(0,e.jsx)(Z.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,e.jsx)(L.Z,{})}),(0,e.jsx)(Z.Z.Item,{label:"\u6279\u6B21\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,e.jsx)(L.Z,{defaultValue:I()().format("YYYYMMDDHHmmss")+"\u6279\u6B21\u4EFB\u52A1"})})]})})]})}}}]);
|