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