From 4dbe2d5c750a421d9cc4847f2ca9c7a347dfcfa1 Mon Sep 17 00:00:00 2001 From: Yanko <747575620@qq.com> Date: Thu, 21 Nov 2024 10:43:13 +0800 Subject: [PATCH] 1 --- frontend/dist/index.html | 4 ++-- frontend/dist/p__deviceProductInfo__index.1f88a9d8.async.js | 2 -- frontend/dist/p__deviceProductInfo__index.7ef65f5e.async.js | 2 ++ frontend/dist/p__final__index.817dee2e.async.js | 1 + frontend/dist/p__final__index.9df8868b.async.js | 1 - frontend/dist/p__stock__index.3cc68eb4.async.js | 1 - frontend/dist/p__stock__index.64bdcafa.async.js | 1 + ...70520a2f.async.js => p__workInfo__index.c04c64de.async.js} | 2 +- ...{preload_helper.d951a929.js => preload_helper.91c9e709.js} | 2 +- frontend/dist/{umi.7fa0d11b.js => umi.0d24bd5c.js} | 2 +- 10 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 frontend/dist/p__deviceProductInfo__index.1f88a9d8.async.js create mode 100644 frontend/dist/p__deviceProductInfo__index.7ef65f5e.async.js create mode 100644 frontend/dist/p__final__index.817dee2e.async.js delete mode 100644 frontend/dist/p__final__index.9df8868b.async.js delete mode 100644 frontend/dist/p__stock__index.3cc68eb4.async.js create mode 100644 frontend/dist/p__stock__index.64bdcafa.async.js rename frontend/dist/{p__workInfo__index.70520a2f.async.js => p__workInfo__index.c04c64de.async.js} (77%) rename frontend/dist/{preload_helper.d951a929.js => preload_helper.91c9e709.js} (88%) rename frontend/dist/{umi.7fa0d11b.js => umi.0d24bd5c.js} (99%) diff --git a/frontend/dist/index.html b/frontend/dist/index.html index e3558c6..4911eaa 100644 --- a/frontend/dist/index.html +++ b/frontend/dist/index.html @@ -5,10 +5,10 @@ - +
- + \ No newline at end of file diff --git a/frontend/dist/p__deviceProductInfo__index.1f88a9d8.async.js b/frontend/dist/p__deviceProductInfo__index.1f88a9d8.async.js deleted file mode 100644 index 79c6b29..0000000 --- a/frontend/dist/p__deviceProductInfo__index.1f88a9d8.async.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[402],{77386:function(l,h,e){"use strict";var F=e(97857),m=e.n(F),o=e(56002);h.Z={Add:function(a){return(0,o.request)("/api/deviceProduct/add",{method:"POST",data:m()({},a)})},Del:function(a){return(0,o.request)("/api/deviceProduct/del",{method:"POST",data:m()({},a)})},Update:function(a){return(0,o.request)("/api/deviceProduct/update",{method:"POST",data:m()({},a)})},Detail:function(a){return(0,o.request)("/api/deviceProduct/detail?id=".concat(a),{method:"GET"})},List:function(a){return(0,o.request)("/api/deviceProduct/list",{method:"POST",data:m()({},a)})},PagedList:function(a){return(0,o.request)("/api/deviceProduct/pagedlist",{method:"POST",data:m()({},a)})},SelectList:function(){return(0,o.request)("/api/deviceProduct/selectlist",{method:"GET"})}}},16940:function(l,h,e){"use strict";var F=e(97857),m=e.n(F),o=e(56002);h.Z={Add:function(a){return(0,o.request)("/api/deviceproductfunction/add",{method:"POST",data:m()({},a)})},Del:function(a){return(0,o.request)("/api/deviceproductfunction/del",{method:"POST",data:m()({},a)})},Update:function(a){return(0,o.request)("/api/deviceproductfunction/update",{method:"POST",data:m()({},a)})},Detail:function(a){return(0,o.request)("/api/deviceproductfunction/detail?id=".concat(a),{method:"GET"})},List:function(a){return(0,o.request)("/api/deviceproductfunction/list",{method:"POST",data:m()({},a)})},PagedList:function(a){return(0,o.request)("/api/deviceproductfunction/pagedlist",{method:"POST",data:m()({},a)})}}},69640:function(l,h,e){"use strict";e.r(h),e.d(h,{default:function(){return ve}});var F=e(19632),m=e.n(F),o=e(15009),c=e.n(o),a=e(99289),s=e.n(a),I=e(5574),j=e.n(I),W=e(51042),H=e(26346),k=e(34994),B=e(83145),u=e(93410),i=e(57632),g=e(8232),E=e(42075),x=e(14726),J=e(86738),P=e(45360),le=e(71230),ce=e(96074),fe=e(85576),U=e(49978),me=e(34041),S=e(67294),O=e(77386),M=e(16940),t=e(85893),pe=[{label:"\u6570\u636E",value:0},{label:"\u6570\u7EC4",value:1}],ve=function(){var he=(0,S.useState)("table"),Q=j()(he,2),L=Q[0],D=Q[1],N=(0,S.useRef)(),X=(0,S.useRef)(),xe=(0,S.useState)("table"),Y=j()(xe,2),$=Y[0],A=Y[1],z=(0,S.useRef)(),q=(0,S.useRef)(),Pe=g.Z.useForm(),ge=j()(Pe,1),_=ge[0],Ce=(0,S.useState)(),ee=j()(Ce,2),y=ee[0],ye=ee[1],Fe=(0,S.useState)([]),te=j()(Fe,2),T=te[0],b=te[1],je=(0,S.useState)(),re=j()(je,2),ne=re[0],ae=re[1],Se=(0,S.useState)(!1),ue=j()(Se,2),Ze=ue[0],K=ue[1],Ee=(0,S.useState)(!1),oe=j()(Ee,2),se=oe[0],ie=oe[1],V=function(){var r,n;(r=N.current)===null||r===void 0||r.resetFields(),(n=X.current)===null||n===void 0||n.reload()},de=function(){var r,n;(r=z.current)===null||r===void 0||r.resetFields(),(n=q.current)===null||n===void 0||n.reload()},Te=[{title:"\u4E3B\u952E",dataIndex:"id",formItemProps:{hidden:!0},search:!1},{title:"\u540D\u79F0",dataIndex:"name",formItemProps:{rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}]}},{title:"\u7F16\u7801",dataIndex:"code",formItemProps:{rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}]},search:!1},{title:"\u63CF\u8FF0",dataIndex:"description",search:!1},{title:"\u64CD\u4F5C",valueType:"option",fixed:"right",render:function(r,n){return[(0,t.jsxs)(E.Z,{children:[(0,t.jsx)(x.ZP,{type:"primary",size:"small",onClick:function(){var f;D("form"),(f=N.current)===null||f===void 0||f.setFieldsValue(n)},target:"_blank",rel:"noopener noreferrer",children:"\u7F16\u8F91"},+new Date+Math.random()),(0,t.jsx)(x.ZP,{type:"primary",size:"small",onClick:function(){ie(!0),ye(n),b([])},children:"\u8BBE\u7F6E\u529F\u80FD"}),(0,t.jsx)(J.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){O.Z.Del(n).then(function(f){f.statusCode===200?(P.ZP.info("\u5220\u9664\u6210\u529F!"),V()):P.ZP.error(f.errors)})},onCancel:function(){P.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,t.jsx)(x.ZP,{type:"primary",size:"small",danger:!0,children:"\u5220\u9664"})},"del")]},+new Date+Math.random())]}}];return(0,t.jsx)(t.Fragment,{children:se?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.Z,{bordered:!0,children:se?(0,t.jsx)(x.ZP,{icon:(0,t.jsx)(H.Z,{}),type:"primary",size:"middle",onClick:function(){ie(!1)},children:"\u8FD4\u56DE\u4EA7\u54C1\u5217\u8868"}):""}),(0,t.jsxs)(u.Z,{bordered:!0,children:[(0,t.jsxs)("div",{children:["\u4EA7\u54C1\u540D\u79F0\uFF1A",y==null?void 0:y.name]}),(0,t.jsxs)("div",{children:["\u4EA7\u54C1\u63CF\u8FF0\uFF1A",y==null?void 0:y.description]})]}),(0,t.jsx)(B.Z,{type:$,cardBordered:!0,bordered:!0,scroll:{x:!0},rowClassName:function(r,n,p){return n%2===0?"":"even-row-background"},headerTitle:"\u5217\u8868",formRef:z,actionRef:q,search:!1,columns:[{title:"\u529F\u80FD\u4E3B\u952E",dataIndex:"id",search:!1,formItemProps:{hidden:!0},readonly:!0},{title:"\u529F\u80FD\u540D\u79F0",dataIndex:"name",ellipsis:!0,search:!1},{title:"\u529F\u80FD\u7F16\u7801",hideInDescriptions:!0,dataIndex:"code",search:!1},{title:"\u8F93\u5165\u53C2\u6570",hideInDescriptions:!0,hideInTable:!0,dataIndex:"params",search:!1,renderFormItem:function(r,n,p,f){return(0,t.jsxs)("div",{children:[T.map(function(Z,d){return(0,t.jsx)(le.Z,{style:{borderBottom:"0.5px solid #f3e0e0",margin:"10px"},children:(0,t.jsxs)(E.Z,{split:(0,t.jsx)(ce.Z,{type:"vertical"}),children:[(0,t.jsxs)("div",{children:["\u53C2\u6570\u540D\u79F0\uFF1A",Z.paramName]}),(0,t.jsxs)("div",{children:["\u53C2\u6570\u4EE3\u7801\uFF1A",Z.paramCode]}),(0,t.jsx)(x.ZP,{type:"link",onClick:function(){K(!0),setTimeout(function(){_.setFieldsValue(T[d])},100)},children:"\u8BBE\u7F6E"}),(0,t.jsx)(x.ZP,{type:"link",onClick:function(){var C=m()(T);C.splice(d,1),setTimeout(function(){b(C)},100)},children:"\u5220\u9664"})]})},+new Date+Math.random())}),(0,t.jsx)(x.ZP,{type:"link",onClick:function(){_.resetFields(),K(!0)},children:"+\u589E\u52A0\u53C2\u6570"}),(0,t.jsx)(fe.Z,{maskClosable:!1,destroyOnClose:!0,title:"\u8BBE\u7F6E\u53C2\u6570",footer:!1,onCancel:function(){return K(!1)},open:Ze,children:(0,t.jsxs)(k.A,{form:_,id:"paramsForm",onFinish:function(){var Z=s()(c()().mark(function d(G){var C;return c()().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:console.log(G),C=_.getFieldsValue(),C.id?(T.forEach(function(R){R.id===C.id&&(R.paramCode=C.paramCode,R.paramName=C.paramName,R.paramType=C.paramType,R.paramUnit=C.paramUnit)}),b(T)):(C.id=(0,i.Z)(),T.push(C)),b(T),console.log(C),K(!1);case 6:case"end":return w.stop()}},d)}));return function(d){return Z.apply(this,arguments)}}(),children:[(0,t.jsx)(g.Z.Item,{label:"\u4E3B\u952E",hidden:!0,name:"id",children:(0,t.jsx)(U.Z,{})}),(0,t.jsx)(g.Z.Item,{label:"\u53C2\u6570\u540D\u79F0",name:"paramName",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,t.jsx)(U.Z,{})}),(0,t.jsx)(g.Z.Item,{label:"\u53C2\u6570\u4EE3\u7801",name:"paramCode",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,t.jsx)(U.Z,{})}),(0,t.jsx)(g.Z.Item,{label:"\u53C2\u6570\u7C7B\u578B",name:"paramType",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,t.jsx)(me.Z,{onChange:function(d){ae(d!==0)},placeholder:"\u9009\u62E9\u6570\u636E\u7C7B\u578B",options:pe})}),(0,t.jsx)(g.Z.Item,{label:"\u53C2\u6570\u5355\u4F4D",hidden:ne,name:"paramUnit",rules:[{required:!ne,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,t.jsx)(U.Z,{})})]})})]})}},{title:"\u63CF\u8FF0",dataIndex:"description",search:!1},{title:"\u64CD\u4F5C",valueType:"option",dataIndex:"id",fixed:"right",render:function(r,n){return[(0,t.jsxs)(E.Z,{children:[(0,t.jsx)("a",{onClick:function(){A("form"),console.log("row",n),setTimeout(function(){var f;if((f=z.current)===null||f===void 0||f.setFieldsValue(n),n.params){var Z=JSON.parse(n.params);b(Z)}else b([])},200)},target:"_blank",rel:"noopener noreferrer",children:"\u7F16\u8F91"},+new Date+Math.random()),(0,t.jsx)(J.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){M.Z.Del(n).then(function(f){f.statusCode===200?(P.ZP.info("\u5220\u9664\u6210\u529F!"),V()):P.ZP.error(f.errors)})},onCancel:function(){P.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,t.jsx)("a",{children:"\u5220\u9664"})},"del")]},+new Date+Math.random())]}}],onSubmit:function(r){console.log(r,T),r.params=JSON.stringify(T),r.deviceProductId=y==null?void 0:y.id,$==="form"&&(r.id?M.Z.Update(r).then(function(n){n.statusCode===200?(P.ZP.info("\u66F4\u65B0\u6210\u529F!"),A("table"),de()):P.ZP.error(n.errors)}):M.Z.Add(r).then(function(n){n.statusCode===200?(P.ZP.info("\u65B0\u589E\u6210\u529F!"),A("table"),de()):P.ZP.error(n.errors)}))},request:s()(c()().mark(function v(){var r,n,p,f=arguments;return c()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return r=f.length>0&&f[0]!==void 0?f[0]:{},n={pageIndex:r.current||1,pageSize:r.pageSize||10,deviceProductId:y==null?void 0:y.id},d.next=4,M.Z.PagedList(n);case 4:if(p=d.sent,p.statusCode!==200){d.next=9;break}return d.abrupt("return",{data:p.data.items,success:!0,total:p.data.total});case 9:return d.abrupt("return",{data:[],success:!1,total:0});case 10:case"end":return d.stop()}},v)})),form:{ignoreRules:!0,submitter:{onReset:function(){var r;(r=z.current)===null||r===void 0||r.resetFields(),A("table")},searchConfig:{resetText:$==="form"?"\u8FD4\u56DE":"\u91CD\u7F6E",submitText:$==="form"?"\u63D0\u4EA4":"\u67E5\u8BE2"}}},pagination:{pageSize:5,showSizeChanger:!1},rowKey:"id",dateFormatter:"string",toolBarRender:function(){return[(0,t.jsxs)(x.ZP,{type:"primary",onClick:function(){A("form"),b([])},children:[(0,t.jsx)(W.Z,{}),"\u6DFB\u52A0\u529F\u80FD"]},"3")]}})]}):(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(B.Z,{columns:Te,type:L,formRef:N,actionRef:X,cardBordered:!0,bordered:!0,scroll:{x:!0},rowClassName:function(r,n,p){return n%2===0?"":"even-row-background"},onSubmit:function(r){console.log(r),L==="form"&&(r.id?O.Z.Update(r).then(function(n){n.statusCode===200?(P.ZP.info("\u66F4\u65B0\u6210\u529F!"),D("table"),V()):P.ZP.error(n.errors)}):O.Z.Add(r).then(function(n){n.statusCode===200?(P.ZP.info("\u65B0\u589E\u6210\u529F!"),D("table"),V()):P.ZP.error(n.errors)}))},request:s()(c()().mark(function v(){var r,n,p,f=arguments;return c()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return r=f.length>0&&f[0]!==void 0?f[0]:{},n={pageIndex:r.current||1,pageSize:r.pageSize||10,name:r.name||""},d.next=4,O.Z.PagedList(n);case 4:if(p=d.sent,p.statusCode!==200){d.next=9;break}return d.abrupt("return",{data:p.data.items,success:!0,total:p.data.total});case 9:return d.abrupt("return",{data:[],success:!1,total:0});case 10:case"end":return d.stop()}},v)})),pagination:{pageSize:5,showSizeChanger:!1},rowKey:"id",dateFormatter:"string",headerTitle:"\u5217\u8868",toolBarRender:function(){return[(0,t.jsxs)(x.ZP,{type:"primary",onClick:function(){D("form")},children:[(0,t.jsx)(W.Z,{}),"\u65B0\u5EFA"]},"3")]},form:{ignoreRules:!0,submitter:{onReset:function(){var r;(r=N.current)===null||r===void 0||r.resetFields(),D("table")},searchConfig:{resetText:L==="form"?"\u8FD4\u56DE":"\u91CD\u7F6E",submitText:L==="form"?"\u63D0\u4EA4":"\u67E5\u8BE2"}}}})})})}},57632:function(l,h,e){"use strict";e.d(h,{Z:function(){return B}});var F=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),m={randomUUID:F},o,c=new Uint8Array(16);function a(){if(!o&&(o=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(c)}for(var s=[],I=0;I<256;++I)s.push((I+256).toString(16).slice(1));function j(u,i=0){return(s[u[i+0]]+s[u[i+1]]+s[u[i+2]]+s[u[i+3]]+"-"+s[u[i+4]]+s[u[i+5]]+"-"+s[u[i+6]]+s[u[i+7]]+"-"+s[u[i+8]]+s[u[i+9]]+"-"+s[u[i+10]]+s[u[i+11]]+s[u[i+12]]+s[u[i+13]]+s[u[i+14]]+s[u[i+15]]).toLowerCase()}function W(u,i=0){var g=j(u,i);if(!validate(g))throw TypeError("Stringified UUID is invalid");return g}var H=null;function k(u,i,g){if(m.randomUUID&&!i&&!u)return m.randomUUID();u=u||{};var E=u.random||(u.rng||a)();if(E[6]=E[6]&15|64,E[8]=E[8]&63|128,i){g=g||0;for(var x=0;x<16;++x)i[g+x]=E[x];return i}return j(E)}var B=k},96446:function(l,h,e){var F=e(37923);function m(o){if(Array.isArray(o))return F(o)}l.exports=m,l.exports.__esModule=!0,l.exports.default=l.exports},96936:function(l){function h(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}l.exports=h,l.exports.__esModule=!0,l.exports.default=l.exports},88619:function(l){function h(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}l.exports=h,l.exports.__esModule=!0,l.exports.default=l.exports},19632:function(l,h,e){var F=e(96446),m=e(96936),o=e(96263),c=e(88619);function a(s){return F(s)||m(s)||o(s)||c()}l.exports=a,l.exports.__esModule=!0,l.exports.default=l.exports}}]); diff --git a/frontend/dist/p__deviceProductInfo__index.7ef65f5e.async.js b/frontend/dist/p__deviceProductInfo__index.7ef65f5e.async.js new file mode 100644 index 0000000..b18f3cb --- /dev/null +++ b/frontend/dist/p__deviceProductInfo__index.7ef65f5e.async.js @@ -0,0 +1,2 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[402],{77386:function(l,h,e){"use strict";var j=e(97857),m=e.n(j),s=e(56002);h.Z={Add:function(a){return(0,s.request)("/api/deviceProduct/add",{method:"POST",data:m()({},a)})},Del:function(a){return(0,s.request)("/api/deviceProduct/del",{method:"POST",data:m()({},a)})},Update:function(a){return(0,s.request)("/api/deviceProduct/update",{method:"POST",data:m()({},a)})},Detail:function(a){return(0,s.request)("/api/deviceProduct/detail?id=".concat(a),{method:"GET"})},List:function(a){return(0,s.request)("/api/deviceProduct/list",{method:"POST",data:m()({},a)})},PagedList:function(a){return(0,s.request)("/api/deviceProduct/pagedlist",{method:"POST",data:m()({},a)})},SelectList:function(){return(0,s.request)("/api/deviceProduct/selectlist",{method:"GET"})}}},16940:function(l,h,e){"use strict";var j=e(97857),m=e.n(j),s=e(56002);h.Z={Add:function(a){return(0,s.request)("/api/deviceproductfunction/add",{method:"POST",data:m()({},a)})},Del:function(a){return(0,s.request)("/api/deviceproductfunction/del",{method:"POST",data:m()({},a)})},Update:function(a){return(0,s.request)("/api/deviceproductfunction/update",{method:"POST",data:m()({},a)})},Detail:function(a){return(0,s.request)("/api/deviceproductfunction/detail?id=".concat(a),{method:"GET"})},List:function(a){return(0,s.request)("/api/deviceproductfunction/list",{method:"POST",data:m()({},a)})},PagedList:function(a){return(0,s.request)("/api/deviceproductfunction/pagedlist",{method:"POST",data:m()({},a)})}}},69640:function(l,h,e){"use strict";e.r(h),e.d(h,{default:function(){return ve}});var j=e(19632),m=e.n(j),s=e(15009),c=e.n(s),a=e(99289),i=e.n(a),I=e(5574),F=e.n(I),W=e(51042),H=e(26346),k=e(34994),U=e(83145),u=e(93410),d=e(57632),x=e(8232),T=e(42075),P=e(14726),J=e(86738),g=e(45360),le=e(71230),ce=e(96074),fe=e(85576),D=e(49978),me=e(34041),S=e(67294),O=e(77386),M=e(16940),t=e(85893),pe=[{label:"\u6570\u636E",value:0},{label:"\u591A\u9009",value:1},{label:"\u5355\u9009",value:2}],ve=function(){var he=(0,S.useState)("table"),Q=F()(he,2),L=Q[0],A=Q[1],N=(0,S.useRef)(),X=(0,S.useRef)(),xe=(0,S.useState)("table"),Y=F()(xe,2),$=Y[0],R=Y[1],z=(0,S.useRef)(),q=(0,S.useRef)(),Pe=x.Z.useForm(),ge=F()(Pe,1),_=ge[0],Ce=(0,S.useState)(),ee=F()(Ce,2),y=ee[0],ye=ee[1],je=(0,S.useState)([]),te=F()(je,2),Z=te[0],b=te[1],Fe=(0,S.useState)(0),re=F()(Fe,2),ne=re[0],ae=re[1],Se=(0,S.useState)(!1),ue=F()(Se,2),Ze=ue[0],K=ue[1],Ee=(0,S.useState)(!1),oe=F()(Ee,2),se=oe[0],ie=oe[1],V=function(){var r,n;(r=N.current)===null||r===void 0||r.resetFields(),(n=X.current)===null||n===void 0||n.reload()},de=function(){var r,n;(r=z.current)===null||r===void 0||r.resetFields(),(n=q.current)===null||n===void 0||n.reload()},Te=[{title:"\u4E3B\u952E",dataIndex:"id",formItemProps:{hidden:!0},search:!1},{title:"\u540D\u79F0",dataIndex:"name",formItemProps:{rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}]}},{title:"\u7F16\u7801",dataIndex:"code",formItemProps:{rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}]},search:!1},{title:"\u63CF\u8FF0",dataIndex:"description",search:!1},{title:"\u64CD\u4F5C",valueType:"option",fixed:"right",render:function(r,n){return[(0,t.jsxs)(T.Z,{children:[(0,t.jsx)(P.ZP,{type:"primary",size:"small",onClick:function(){var f;A("form"),(f=N.current)===null||f===void 0||f.setFieldsValue(n)},target:"_blank",rel:"noopener noreferrer",children:"\u7F16\u8F91"},+new Date+Math.random()),(0,t.jsx)(P.ZP,{type:"primary",size:"small",onClick:function(){ie(!0),ye(n),b([])},children:"\u8BBE\u7F6E\u529F\u80FD"}),(0,t.jsx)(J.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){O.Z.Del(n).then(function(f){f.statusCode===200?(g.ZP.info("\u5220\u9664\u6210\u529F!"),V()):g.ZP.error(f.errors)})},onCancel:function(){g.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,t.jsx)(P.ZP,{type:"primary",size:"small",danger:!0,children:"\u5220\u9664"})},"del")]},+new Date+Math.random())]}}];return(0,t.jsx)(t.Fragment,{children:se?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.Z,{bordered:!0,children:se?(0,t.jsx)(P.ZP,{icon:(0,t.jsx)(H.Z,{}),type:"primary",size:"middle",onClick:function(){ie(!1)},children:"\u8FD4\u56DE\u4EA7\u54C1\u5217\u8868"}):""}),(0,t.jsxs)(u.Z,{bordered:!0,children:[(0,t.jsxs)("div",{children:["\u4EA7\u54C1\u540D\u79F0\uFF1A",y==null?void 0:y.name]}),(0,t.jsxs)("div",{children:["\u4EA7\u54C1\u63CF\u8FF0\uFF1A",y==null?void 0:y.description]})]}),(0,t.jsx)(U.Z,{type:$,cardBordered:!0,bordered:!0,scroll:{x:!0},rowClassName:function(r,n,p){return n%2===0?"":"even-row-background"},headerTitle:"\u5217\u8868",formRef:z,actionRef:q,search:!1,columns:[{title:"\u529F\u80FD\u4E3B\u952E",dataIndex:"id",search:!1,formItemProps:{hidden:!0},readonly:!0},{title:"\u529F\u80FD\u540D\u79F0",dataIndex:"name",ellipsis:!0,search:!1},{title:"\u529F\u80FD\u7F16\u7801",hideInDescriptions:!0,dataIndex:"code",search:!1},{title:"\u8F93\u5165\u53C2\u6570",hideInDescriptions:!0,hideInTable:!0,dataIndex:"params",search:!1,renderFormItem:function(r,n,p,f){return(0,t.jsxs)("div",{children:[Z.map(function(E,o){return(0,t.jsx)(le.Z,{style:{borderBottom:"0.5px solid #f3e0e0",margin:"10px"},children:(0,t.jsxs)(T.Z,{split:(0,t.jsx)(ce.Z,{type:"vertical"}),children:[(0,t.jsxs)("div",{children:["\u53C2\u6570\u540D\u79F0\uFF1A",E.paramName]}),(0,t.jsxs)("div",{children:["\u53C2\u6570\u4EE3\u7801\uFF1A",E.paramCode]}),(0,t.jsx)(P.ZP,{type:"link",onClick:function(){K(!0),setTimeout(function(){console.log("funcParams[index]",Z[o]),_.setFieldsValue(Z[o]),ae(Z[o].paramType)},100)},children:"\u8BBE\u7F6E"}),(0,t.jsx)(P.ZP,{type:"link",onClick:function(){var C=m()(Z);C.splice(o,1),setTimeout(function(){b(C)},100)},children:"\u5220\u9664"})]})},+new Date+Math.random())}),(0,t.jsx)(P.ZP,{type:"link",onClick:function(){_.resetFields(),K(!0)},children:"+\u589E\u52A0\u53C2\u6570"}),(0,t.jsx)(fe.Z,{maskClosable:!1,destroyOnClose:!0,title:"\u8BBE\u7F6E\u53C2\u6570",footer:!1,onCancel:function(){return K(!1)},open:Ze,children:(0,t.jsxs)(k.A,{form:_,id:"paramsForm",onFinish:function(){var E=i()(c()().mark(function o(w){var C;return c()().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:console.log(w),C=_.getFieldsValue(),C.id?(Z.forEach(function(B){B.id===C.id&&(B.paramCode=C.paramCode,B.paramName=C.paramName,B.paramType=C.paramType,B.paramUnit=C.paramUnit)}),b(Z)):(C.id=(0,d.Z)(),Z.push(C)),b(Z),console.log(C),K(!1);case 6:case"end":return G.stop()}},o)}));return function(o){return E.apply(this,arguments)}}(),children:[(0,t.jsx)(x.Z.Item,{label:"\u4E3B\u952E",hidden:!0,name:"id",children:(0,t.jsx)(D.Z,{})}),(0,t.jsx)(x.Z.Item,{label:"\u53C2\u6570\u540D\u79F0",name:"paramName",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,t.jsx)(D.Z,{})}),(0,t.jsx)(x.Z.Item,{label:"\u53C2\u6570\u4EE3\u7801",name:"paramCode",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,t.jsx)(D.Z,{})}),(0,t.jsx)(x.Z.Item,{label:"\u53C2\u6570\u7C7B\u578B",name:"paramType",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,t.jsx)(me.Z,{onChange:function(o){ae(o)},placeholder:"\u9009\u62E9\u6570\u636E\u7C7B\u578B",options:pe})}),ne===1?(0,t.jsx)(x.Z.Item,{label:"\u53C2\u6570\u5355\u4F4D",name:"paramUnit",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,t.jsx)(D.Z,{})}):"",ne===2?(0,t.jsx)(x.Z.Item,{label:"\u6570\u636E\u6E90",name:"paramSouce",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,t.jsx)(D.Z.TextArea,{rows:10})}):""]})})]})}},{title:"\u63CF\u8FF0",dataIndex:"description",search:!1},{title:"\u64CD\u4F5C",valueType:"option",dataIndex:"id",fixed:"right",render:function(r,n){return[(0,t.jsxs)(T.Z,{children:[(0,t.jsx)("a",{onClick:function(){R("form"),console.log("row",n),setTimeout(function(){var f;if((f=z.current)===null||f===void 0||f.setFieldsValue(n),n.params){var E=JSON.parse(n.params);b(E)}else b([])},200)},target:"_blank",rel:"noopener noreferrer",children:"\u7F16\u8F91"},+new Date+Math.random()),(0,t.jsx)(J.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){M.Z.Del(n).then(function(f){f.statusCode===200?(g.ZP.info("\u5220\u9664\u6210\u529F!"),V()):g.ZP.error(f.errors)})},onCancel:function(){g.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,t.jsx)("a",{children:"\u5220\u9664"})},"del")]},+new Date+Math.random())]}}],onSubmit:function(r){console.log(r,Z),r.params=JSON.stringify(Z),r.deviceProductId=y==null?void 0:y.id,$==="form"&&(r.id?M.Z.Update(r).then(function(n){n.statusCode===200?(g.ZP.info("\u66F4\u65B0\u6210\u529F!"),R("table"),de()):g.ZP.error(n.errors)}):M.Z.Add(r).then(function(n){n.statusCode===200?(g.ZP.info("\u65B0\u589E\u6210\u529F!"),R("table"),de()):g.ZP.error(n.errors)}))},request:i()(c()().mark(function v(){var r,n,p,f=arguments;return c()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return r=f.length>0&&f[0]!==void 0?f[0]:{},n={pageIndex:r.current||1,pageSize:r.pageSize||10,deviceProductId:y==null?void 0:y.id},o.next=4,M.Z.PagedList(n);case 4:if(p=o.sent,p.statusCode!==200){o.next=9;break}return o.abrupt("return",{data:p.data.items,success:!0,total:p.data.total});case 9:return o.abrupt("return",{data:[],success:!1,total:0});case 10:case"end":return o.stop()}},v)})),form:{ignoreRules:!0,submitter:{onReset:function(){var r;(r=z.current)===null||r===void 0||r.resetFields(),R("table")},searchConfig:{resetText:$==="form"?"\u8FD4\u56DE":"\u91CD\u7F6E",submitText:$==="form"?"\u63D0\u4EA4":"\u67E5\u8BE2"}}},pagination:{pageSize:10,showSizeChanger:!1},rowKey:"id",dateFormatter:"string",toolBarRender:function(){return[(0,t.jsxs)(P.ZP,{type:"primary",onClick:function(){R("form"),b([])},children:[(0,t.jsx)(W.Z,{}),"\u6DFB\u52A0\u529F\u80FD"]},"3")]}})]}):(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(U.Z,{columns:Te,type:L,formRef:N,actionRef:X,cardBordered:!0,bordered:!0,scroll:{x:!0},rowClassName:function(r,n,p){return n%2===0?"":"even-row-background"},onSubmit:function(r){console.log(r),L==="form"&&(r.id?O.Z.Update(r).then(function(n){n.statusCode===200?(g.ZP.info("\u66F4\u65B0\u6210\u529F!"),A("table"),V()):g.ZP.error(n.errors)}):O.Z.Add(r).then(function(n){n.statusCode===200?(g.ZP.info("\u65B0\u589E\u6210\u529F!"),A("table"),V()):g.ZP.error(n.errors)}))},request:i()(c()().mark(function v(){var r,n,p,f=arguments;return c()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return r=f.length>0&&f[0]!==void 0?f[0]:{},n={pageIndex:r.current||1,pageSize:r.pageSize||10,name:r.name||""},o.next=4,O.Z.PagedList(n);case 4:if(p=o.sent,p.statusCode!==200){o.next=9;break}return o.abrupt("return",{data:p.data.items,success:!0,total:p.data.total});case 9:return o.abrupt("return",{data:[],success:!1,total:0});case 10:case"end":return o.stop()}},v)})),pagination:{pageSize:10,showSizeChanger:!1},rowKey:"id",dateFormatter:"string",headerTitle:"\u5217\u8868",toolBarRender:function(){return[(0,t.jsxs)(P.ZP,{type:"primary",onClick:function(){A("form")},children:[(0,t.jsx)(W.Z,{}),"\u65B0\u5EFA"]},"3")]},form:{ignoreRules:!0,submitter:{onReset:function(){var r;(r=N.current)===null||r===void 0||r.resetFields(),A("table")},searchConfig:{resetText:L==="form"?"\u8FD4\u56DE":"\u91CD\u7F6E",submitText:L==="form"?"\u63D0\u4EA4":"\u67E5\u8BE2"}}}})})})}},57632:function(l,h,e){"use strict";e.d(h,{Z:function(){return U}});var j=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),m={randomUUID:j},s,c=new Uint8Array(16);function a(){if(!s&&(s=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!s))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(c)}for(var i=[],I=0;I<256;++I)i.push((I+256).toString(16).slice(1));function F(u,d=0){return(i[u[d+0]]+i[u[d+1]]+i[u[d+2]]+i[u[d+3]]+"-"+i[u[d+4]]+i[u[d+5]]+"-"+i[u[d+6]]+i[u[d+7]]+"-"+i[u[d+8]]+i[u[d+9]]+"-"+i[u[d+10]]+i[u[d+11]]+i[u[d+12]]+i[u[d+13]]+i[u[d+14]]+i[u[d+15]]).toLowerCase()}function W(u,d=0){var x=F(u,d);if(!validate(x))throw TypeError("Stringified UUID is invalid");return x}var H=null;function k(u,d,x){if(m.randomUUID&&!d&&!u)return m.randomUUID();u=u||{};var T=u.random||(u.rng||a)();if(T[6]=T[6]&15|64,T[8]=T[8]&63|128,d){x=x||0;for(var P=0;P<16;++P)d[x+P]=T[P];return d}return F(T)}var U=k},96446:function(l,h,e){var j=e(37923);function m(s){if(Array.isArray(s))return j(s)}l.exports=m,l.exports.__esModule=!0,l.exports.default=l.exports},96936:function(l){function h(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}l.exports=h,l.exports.__esModule=!0,l.exports.default=l.exports},88619:function(l){function h(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}l.exports=h,l.exports.__esModule=!0,l.exports.default=l.exports},19632:function(l,h,e){var j=e(96446),m=e(96936),s=e(96263),c=e(88619);function a(i){return j(i)||m(i)||s(i)||c()}l.exports=a,l.exports.__esModule=!0,l.exports.default=l.exports}}]); diff --git a/frontend/dist/p__final__index.817dee2e.async.js b/frontend/dist/p__final__index.817dee2e.async.js new file mode 100644 index 0000000..55f5257 --- /dev/null +++ b/frontend/dist/p__final__index.817dee2e.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[460],{16940:function(ye,A,r){var M=r(97857),c=r.n(M),v=r(56002);A.Z={Add:function(s){return(0,v.request)("/api/deviceproductfunction/add",{method:"POST",data:c()({},s)})},Del:function(s){return(0,v.request)("/api/deviceproductfunction/del",{method:"POST",data:c()({},s)})},Update:function(s){return(0,v.request)("/api/deviceproductfunction/update",{method:"POST",data:c()({},s)})},Detail:function(s){return(0,v.request)("/api/deviceproductfunction/detail?id=".concat(s),{method:"GET"})},List:function(s){return(0,v.request)("/api/deviceproductfunction/list",{method:"POST",data:c()({},s)})},PagedList:function(s){return(0,v.request)("/api/deviceproductfunction/pagedlist",{method:"POST",data:c()({},s)})}}},55492:function(ye,A,r){var M=r(97857),c=r.n(M),v=r(56002);A.Z={Add:function(s){return(0,v.request)("/api/finalsinfo/add",{method:"POST",data:c()({},s)})},Del:function(s){return(0,v.request)("/api/finalsinfo/del",{method:"POST",data:c()({},s)})},Update:function(s){return(0,v.request)("/api/finalsinfo/update",{method:"POST",data:c()({},s)})},Detail:function(s){return(0,v.request)("/api/finalsinfo/detail/".concat(s),{method:"GET"})},List:function(){return(0,v.request)("/api/finalsinfo/list",{method:"POST"})},SelectList:function(){return(0,v.request)("/api/finalsinfo/selectlist",{method:"GET"})},LineList:function(s){return(0,v.request)("/api/finalsinfo/linelist/".concat(s),{method:"GET"})},FinishLineList:function(s){return(0,v.request)("/api/finalsinfo/finishlinelist/".concat(s),{method:"GET"})},UnBindList:function(){return(0,v.request)("/api/finalsinfo/UnBindList",{method:"GET"})},PagedList:function(s){return(0,v.request)("/api/finalsinfo/pagedlist",{method:"POST",data:c()({},s)})},BatchUpdate:function(s){return(0,v.request)("/api/finalsinfo/batchupdate",{method:"POST",data:s})},BindLine:function(d){function s(g){return d.apply(this,arguments)}return s.toString=function(){return d.toString()},s}(function(d){return(0,v.request)("/api/finalsinfo/bindline",{method:"POST",data:d})}),RecipeList:function(s){return(0,v.request)(" api/finalsinfo/list",{method:"POST",data:{deviceId:s}})},Saveconfigstatus:function(d){function s(g){return d.apply(this,arguments)}return s.toString=function(){return d.toString()},s}(function(d){return(0,v.request)(" /api/finalsinfo/saveconfigstatus",{method:"POST",data:d})})}},48223:function(ye,A,r){var M=r(97857),c=r.n(M),v=r(56002);A.Z={Add:function(s){return(0,v.request)("/api/materialsinfo/add",{method:"POST",data:c()({},s)})},Del:function(s){return(0,v.request)("/api/materialsinfo/del",{method:"POST",data:c()({},s)})},Update:function(s){return(0,v.request)("/api/materialsinfo/update",{method:"POST",data:c()({},s)})},List:function(){return(0,v.request)("/api/materialsinfo/list",{method:"GET"})},selectlist:function(){return(0,v.request)("/api/materialsinfo/selectlist",{method:"GET"})},PagedList:function(s){return(0,v.request)("/api/materialsinfo/pagedlist",{method:"POST",data:c()({},s)})}}},93132:function(ye,A,r){var M=r(97857),c=r.n(M),v=r(56002);A.Z={Add:function(s){return(0,v.request)("/api/productline/add",{method:"POST",data:c()({},s)})},Del:function(s){return(0,v.request)("/api/productline/del",{method:"POST",data:c()({},s)})},Update:function(s){return(0,v.request)("/api/productline/update",{method:"POST",data:c()({},s)})},Detail:function(s){return(0,v.request)("/api/productline/detail?id=".concat(s),{method:"GET"})},List:function(){return(0,v.request)("/api/productline/list",{method:"POST"})},selectlist:function(){return(0,v.request)("/api/productline/selectlist",{method:"GET"})},PagedList:function(s){return(0,v.request)("/api/productline/pagedlist",{method:"POST",data:c()({},s)})},Batchdevice:function(s){return(0,v.request)("/api/productline/addbatchdevice",{method:"POST",data:c()({},s)})},devicelist:function(s){return(0,v.request)("/api/productline/devicelist",{method:"POST",data:c()({},s)})}}},93561:function(ye,A,r){var M=r(97857),c=r.n(M),v=r(56002);A.Z={Add:function(s){return(0,v.request)("/api/productlinesteps/add",{method:"POST",data:c()({},s)})},Del:function(s){return(0,v.request)("/api/productlinesteps/del",{method:"POST",data:c()({},s)})},Update:function(s){return(0,v.request)("/api/productlinesteps/update",{method:"POST",data:c()({},s)})},Detail:function(s){return(0,v.request)("/api/productlinesteps/detail?id=".concat(s),{method:"GET"})},List:function(s){return(0,v.request)("/api/productlinesteps/list",{method:"POST",data:c()({},s)})},PagedList:function(s){return(0,v.request)("/api/productlinesteps/pagedlist",{method:"POST",data:c()({},s)})},BatchUpdateStep:function(s){return(0,v.request)("/api/productlinesteps/batchupdate",{method:"POST",data:s})},Devicelist:function(s){return(0,v.request)("/api/productline/devicelist",{method:"POST",data:c()({},s)})}}},60033:function(ye,A,r){r.r(A),r.d(A,{default:function(){return Fn}});var M=r(15009),c=r.n(M),v=r(99289),d=r.n(v),s=r(5574),g=r.n(s),et=r(83145),tt=r(97321),Qt=r(62763),en=r(93410),tn=r(4942),nn=r(97685),nt=r(91),at=r(74165),an=r(15861),D=r(1413),rn=r(87462),f=r(67294),un=r(42110),sn=r(32867),on=function(h,k){return f.createElement(sn.Z,(0,rn.Z)({},h,{ref:k,icon:un.Z}))},ln=f.forwardRef(on),dn=ln,cn=r(97462),fn=r(952),mn=r(89451),rt=r(48171),vn=r(53914),it=r(22270),pn=r(23491),T=r(14726),b=r(8232),hn=r(21770),Je=r(88306),ut=r(8880),e=r(85893),gn=["onTableChange","maxLength","formItemProps","recordCreatorProps","rowKey","controlled","defaultValue","onChange","editableFormRef"],Sn=["record","position","creatorButtonText","newRecordType","parentKey","style"],st=f.createContext(void 0);function ot(n){var h=n.children,k=n.record,N=n.position,le=n.newRecordType,W=n.parentKey,Y=(0,f.useContext)(st);return f.cloneElement(h,(0,D.Z)((0,D.Z)({},h.props),{},{onClick:function(){var de=(0,an.Z)((0,at.Z)().mark(function Se(U){var Pe,ce,H,w;return(0,at.Z)().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.next=2,(Pe=(ce=h.props).onClick)===null||Pe===void 0?void 0:Pe.call(ce,U);case 2:if(w=O.sent,w!==!1){O.next=5;break}return O.abrupt("return");case 5:Y==null||(H=Y.current)===null||H===void 0||H.addEditRecord(k,{position:N,newRecordType:le,parentKey:W});case 6:case"end":return O.stop()}},Se)}));function $(Se){return de.apply(this,arguments)}return $}()}))}function lt(n){var h,k,N=(0,mn.YB)(),le=n.onTableChange,W=n.maxLength,Y=n.formItemProps,de=n.recordCreatorProps,$=n.rowKey,Se=n.controlled,U=n.defaultValue,Pe=n.onChange,ce=n.editableFormRef,H=(0,nt.Z)(n,gn),w=(0,f.useRef)(void 0),fe=(0,f.useRef)(),O=(0,f.useRef)();(0,f.useImperativeHandle)(H.actionRef,function(){return fe.current},[fe.current]);var $e=(0,hn.Z)(function(){return n.value||U||[]},{value:n.value,onChange:n.onChange}),Fe=(0,nn.Z)($e,2),Z=Fe[0],je=Fe[1],Q=f.useMemo(function(){return typeof $=="function"?$:function(S,I){return S[$]||I}},[$]),Ze=(0,rt.J)(function(S){if(typeof S=="number"&&!n.name){if(S>=Z.length)return S;var I=Z&&Z[S];return Q==null?void 0:Q(I,S)}if((typeof S=="string"||S>=Z.length)&&n.name){var P=Z.findIndex(function(x,C){var F;return(Q==null||(F=Q(x,C))===null||F===void 0?void 0:F.toString())===(S==null?void 0:S.toString())});if(P!==-1)return P}return S});(0,f.useImperativeHandle)(ce,function(){var S=function(x){var C,F;if(x==null)throw new Error("rowIndex is required");var B=Ze(x),V=[n.name,(C=B==null?void 0:B.toString())!==null&&C!==void 0?C:""].flat(1).filter(Boolean);return(F=O.current)===null||F===void 0?void 0:F.getFieldValue(V)},I=function(){var x,C=[n.name].flat(1).filter(Boolean);if(Array.isArray(C)&&C.length===0){var F,B=(F=O.current)===null||F===void 0?void 0:F.getFieldsValue();return Array.isArray(B)?B:Object.keys(B).map(function(V){return B[V]})}return(x=O.current)===null||x===void 0?void 0:x.getFieldValue(C)};return(0,D.Z)((0,D.Z)({},O.current),{},{getRowData:S,getRowsData:I,setRowData:function(x,C){var F,B;if(x==null)throw new Error("rowIndex is required");var V=Ze(x),z=[n.name,(F=V==null?void 0:V.toString())!==null&&F!==void 0?F:""].flat(1).filter(Boolean),Xe=Object.assign({},(0,D.Z)((0,D.Z)({},S(x)),C||{})),Ne=(0,ut.Z)({},z,Xe);return(B=O.current)===null||B===void 0||B.setFieldsValue(Ne),!0}})},[Ze,n.name,O.current]),(0,f.useEffect)(function(){n.controlled&&(Z||[]).forEach(function(S,I){var P;(P=O.current)===null||P===void 0||P.setFieldsValue((0,tn.Z)({},"".concat(Q(S,I)),S))},{})},[(0,vn.ZP)(Z),n.controlled]),(0,f.useEffect)(function(){if(n.name){var S;O.current=n==null||(S=n.editable)===null||S===void 0?void 0:S.form}},[(h=n.editable)===null||h===void 0?void 0:h.form,n.name]);var ee=de||{},ze=ee.record,De=ee.position,Re=ee.creatorButtonText,E=ee.newRecordType,Ee=ee.parentKey,Ge=ee.style,qe=(0,nt.Z)(ee,Sn),ae=De==="top",me=(0,f.useMemo)(function(){return typeof W=="number"&&W<=(Z==null?void 0:Z.length)?!1:de!==!1&&(0,e.jsx)(ot,{record:(0,it.h)(ze,Z==null?void 0:Z.length,Z)||{},position:De,parentKey:(0,it.h)(Ee,Z==null?void 0:Z.length,Z),newRecordType:E,children:(0,e.jsx)(T.ZP,(0,D.Z)((0,D.Z)({type:"dashed",style:(0,D.Z)({display:"block",margin:"10px 0",width:"100%"},Ge),icon:(0,e.jsx)(dn,{})},qe),{},{children:Re||N.getMessage("editableTable.action.add","\u6DFB\u52A0\u4E00\u884C\u6570\u636E")}))})},[de,W,Z==null?void 0:Z.length]),Me=(0,f.useMemo)(function(){return me?ae?{components:{header:{wrapper:function(I){var P,x=I.className,C=I.children;return(0,e.jsxs)("thead",{className:x,children:[C,(0,e.jsxs)("tr",{style:{position:"relative"},children:[(0,e.jsx)("td",{colSpan:0,style:{visibility:"hidden"},children:me}),(0,e.jsx)("td",{style:{position:"absolute",left:0,width:"100%"},colSpan:(P=H.columns)===null||P===void 0?void 0:P.length,children:me})]})]})}}}}:{tableViewRender:function(I,P){var x,C;return(0,e.jsxs)(e.Fragment,{children:[(x=(C=n.tableViewRender)===null||C===void 0?void 0:C.call(n,I,P))!==null&&x!==void 0?x:P,me]})}}:{}},[ae,me]),Ie=(0,D.Z)({},n.editable),re=(0,rt.J)(function(S,I){var P,x,C;if((P=n.editable)===null||P===void 0||(x=P.onValuesChange)===null||x===void 0||x.call(P,S,I),(C=n.onValuesChange)===null||C===void 0||C.call(n,I,S),n.controlled){var F;n==null||(F=n.onChange)===null||F===void 0||F.call(n,I)}});return(n!=null&&n.onValuesChange||(k=n.editable)!==null&&k!==void 0&&k.onValuesChange||n.controlled&&n!==null&&n!==void 0&&n.onChange)&&(Ie.onValuesChange=re),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(st.Provider,{value:fe,children:(0,e.jsx)(et.Z,(0,D.Z)((0,D.Z)((0,D.Z)({search:!1,options:!1,pagination:!1,rowKey:$,revalidateOnFocus:!1},H),Me),{},{tableLayout:"fixed",actionRef:fe,onChange:le,editable:(0,D.Z)((0,D.Z)({},Ie),{},{formProps:(0,D.Z)({formRef:O},Ie.formProps)}),dataSource:Z,onDataSourceChange:function(I){if(je(I),n.name&&De==="top"){var P,x=(0,ut.Z)({},[n.name].flat(1).filter(Boolean),I);(P=O.current)===null||P===void 0||P.setFieldsValue(x)}}}))}),n.name?(0,e.jsx)(cn.Z,{name:[n.name],children:function(I){var P,x;if(!w.current)return w.current=Z,null;var C=(0,Je.Z)(I,[n.name].flat(1)),F=C==null?void 0:C.find(function(B,V){var z;return!(0,pn.A)(B,(z=w.current)===null||z===void 0?void 0:z[V])});return w.current=Z,F&&(n==null||(P=n.editable)===null||P===void 0||(x=P.onValuesChange)===null||x===void 0||x.call(P,F,C)),null}}):null]})}function dt(n){var h=fn.ZP.useFormInstance();return n.name?(0,e.jsx)(b.Z.Item,(0,D.Z)((0,D.Z)({style:{maxWidth:"100%"}},n==null?void 0:n.formItemProps),{},{name:n.name,shouldUpdate:function(N,le){var W=[n.name].flat(1);try{return JSON.stringify((0,Je.Z)(N,W))!==JSON.stringify((0,Je.Z)(le,W))}catch(Y){return!0}},children:(0,e.jsx)(lt,(0,D.Z)((0,D.Z)({tableLayout:"fixed",scroll:{x:"max-content"}},n),{},{editable:(0,D.Z)((0,D.Z)({},n.editable),{},{form:h})}))})):(0,e.jsx)(lt,(0,D.Z)({tableLayout:"fixed",scroll:{x:"max-content"}},n))}dt.RecordCreator=ot;var Pn=dt,jn=r(8256),ct=r(34994),Ae=r(86738),_=r(45360),_e=r(4393),ft=r(96074),mt=r(40411),ge=r(42075),Zn=r(86250),vt=r(32983),se=r(85576),q=r(34041),X=r(49978),ke=r(66309),pt=r(74330),ne=r(55492),xn=r(97857),K=r.n(xn),L=r(56002),We={Add:function(h){return(0,L.request)("/api/finalmaterial/add",{method:"POST",data:K()({},h)})},Del:function(h){return(0,L.request)("/api/finalmaterial/del",{method:"POST",data:K()({},h)})},Update:function(h){return(0,L.request)("/api/finalmaterial/update",{method:"POST",data:K()({},h)})},Detail:function(h){return(0,L.request)("/api/finalmaterial/detail?id=".concat(h),{method:"GET"})},List:function(h){return(0,L.request)("/api/finalmaterial/list",{method:"POST",data:K()({},h)})},PagedList:function(h){return(0,L.request)("/api/finalmaterial/pagedlist",{method:"POST",data:K()({},h)})},BatchAdd:function(h){return(0,L.request)("/api/finalmaterial/batchadd",{method:"POST",data:h})}},ht=r(93132),gt=r(93561),oe={Add:function(h){return(0,L.request)("/api/finalcraftsteps/add",{method:"POST",data:K()({},h)})},Del:function(h){return(0,L.request)("/api/finalcraftsteps/del",{method:"POST",data:K()({},h)})},Update:function(h){return(0,L.request)("/api/finalcraftsteps/update",{method:"POST",data:K()({},h)})},Detail:function(h){return(0,L.request)("/api/finalcraftsteps/detail?id=".concat(h),{method:"GET"})},List:function(h){return(0,L.request)("/api/finalcraftsteps/list",{method:"POST",data:K()({},h)})},PagedList:function(h){return(0,L.request)("/api/finalcraftsteps/pagedlist",{method:"POST",data:K()({},h)})},BatchUpdate:function(h){return(0,L.request)("/api/finalcraftsteps/batchupdate",{method:"POST",data:h})},Copyfinalcraftsteps:function(h){return(0,L.request)("/api/finalcraftsteps/copyfinalcraftsteps",{method:"POST",data:h})}},Cn=r(57632),St=r(16940),yn=r(48223),Pt=r(26346),J={tag:"tag___VXJuq",tag_device:"tag_device___W_ZX6",tag_item:"tag_item___PSkFw",tag_item_active:"tag_item_active___T4sW7",tag_item_activeItem:"tag_item_activeItem___l1ogu",tag_item_editicon:"tag_item_editicon___c9Zjn",gongyi_tag:"gongyi_tag___CnXhD",gongyi_tag_box:"gongyi_tag_box___CcbF9",gongyi_tag_item:"gongyi_tag_item___EQ4gA",gongyi_tag_item_active:"gongyi_tag_item_active___uXVmO",gongyi_tag_item_activeItem:"gongyi_tag_item_activeItem___SQcJo",gongyi_tag_item_editicon:"gongyi_tag_item_editicon___SvWpc"},_n=function(){var h=b.Z.useForm(),k=g()(h,1),N=k[0],le=b.Z.useForm(),W=g()(le,1),Y=W[0],de=(0,f.useState)(!1),$=g()(de,2),Se=$[0],U=$[1],Pe=(0,f.useState)(!1),ce=g()(Pe,2),H=ce[0],w=ce[1],fe=(0,f.useRef)(),O=(0,f.useRef)(),$e=(0,f.useState)([]),Fe=g()($e,2),Z=Fe[0],je=Fe[1],Q=(0,f.useState)([]),Ze=g()(Q,2),ee=Ze[0],ze=Ze[1],De=(0,f.useState)(),Re=g()(De,2),E=Re[0],Ee=Re[1],Ge=b.Z.useForm(),qe=g()(Ge,1),ae=qe[0],me=(0,f.useState)(!1),Me=g()(me,2),Ie=Me[0],re=Me[1],S=(0,f.useRef)(),I=(0,f.useState)(),P=g()(I,2),x=P[0],C=P[1],F=(0,f.useState)(),B=g()(F,2),V=B[0],z=B[1],Xe=(0,f.useState)(),Ne=g()(Xe,2),Dn=Ne[0],Ue=Ne[1],En=(0,f.useState)(),jt=g()(En,2),In=jt[0],Oe=jt[1],On=(0,f.useState)([]),Zt=g()(On,2),Tn=Zt[0],bn=Zt[1],Bn=(0,f.useState)([]),xt=g()(Bn,2),Ln=xt[0],An=xt[1],Rn=(0,f.useState)(),Ct=g()(Rn,2),ie=Ct[0],yt=Ct[1],Mn=(0,f.useState)(),_t=g()(Mn,2),G=_t[0],Nn=_t[1],Un=(0,f.useState)(),Ft=g()(Un,2),ue=Ft[0],wn=Ft[1],Vn=(0,f.useState)([]),Dt=g()(Vn,2),Ye=Dt[0],Et=Dt[1],Kn=(0,f.useState)(),It=g()(Kn,2),Ot=It[0],Tt=It[1],Jn=(0,f.useState)(),bt=g()(Jn,2),Bt=bt[0],kn=bt[1],Wn=(0,f.useState)([]),Lt=g()(Wn,2),ga=Lt[0],Sa=Lt[1],$n=(0,f.useState)(0),At=g()($n,2),Rt=At[0],Pa=At[1],zn=(0,f.useState)(!1),Mt=g()(zn,2),Gn=Mt[0],He=Mt[1],qn=(0,f.useState)([]),Nt=g()(qn,2),Qe=Nt[0],Xn=Nt[1],Yn=(0,f.useState)(!1),Ut=g()(Yn,2),Hn=Ut[0],wt=Ut[1],Qn=(0,f.useState)(!1),Vt=g()(Qn,2),ea=Vt[0],Te=Vt[1],ta=(0,f.useState)([]),Kt=g()(ta,2),na=Kt[0],ve=Kt[1],xe=(0,f.useRef)(),aa=(0,f.useState)("\u6B65\u9AA4\u5217\u8868"),Jt=g()(aa,2),ra=Jt[0],ia=Jt[1],ua=(0,f.useState)(),kt=g()(ua,2),sa=kt[0],Wt=kt[1],oa=(0,f.useState)([]),$t=g()(oa,2),zt=$t[0],Gt=$t[1],la=b.Z.useForm(),da=g()(la,1),be=da[0],ca=(0,f.useState)(),qt=g()(ca,2),Be=qt[0],fa=qt[1],ja=b.Z.useWatch("processId",ae),ma=[{title:"id",dataIndex:"id",hideInSearch:!0,hideInTable:!0},{title:"\u6210\u54C1\u7F16\u53F7",dataIndex:"code",hideInSearch:!1},{title:"\u6210\u54C1\u540D\u79F0",dataIndex:"name",hideInSearch:!1},{title:"\u5DF2\u7ED1\u5B9A\u4EA7\u7EBF",dataIndex:"lineId",hideInSearch:!0,valueType:"select",request:function(){var i=d()(c()().mark(function t(){var a,l;return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,ht.Z.selectlist();case 2:return a=u.sent,l=a.data,l.map(function(m){return m.label=m.value,m.value=m.key}),u.abrupt("return",l);case 6:case"end":return u.stop()}},t)}));function o(){return i.apply(this,arguments)}return o}()},{title:"\u57FA\u7840\u64CD\u4F5C",valueType:"option",fixed:"right",key:"option",render:function(o,t){return[(0,e.jsx)(T.ZP,{type:"primary",size:"small",onClick:d()(c()().mark(function a(){var l;return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:U(!0),l={finalId:t.id},Ee(t),We.List(l).then(function(m){m.statusCode===200&&(je(m.data),z(!0)),U(!1)}).catch(function(){z(!1),U(!1)});case 4:case"end":return u.stop()}},a)})),children:"\u914D\u65B9\u8BBE\u7F6E"},"peifang"),(0,e.jsx)(T.ZP,{type:"primary",size:"small",onClick:d()(c()().mark(function a(){var l;return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:re(!0),C("\u6210\u54C1\u7F16\u8F91"),l=JSON.parse(JSON.stringify(t)),l.state=l.state==="0",ae.setFieldsValue(l);case 5:case"end":return u.stop()}},a)})),children:"\u7F16\u8F91"},"edit"),(0,e.jsx)(Ae.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){var l={id:t.id};ne.Z.Del(l).then(function(p){if(p.statusCode===200){var u;_.ZP.success(p.statusCode===200?"\u5220\u9664\u6210\u529F":p.message),(u=S.current)===null||u===void 0||u.reload()}})},onCancel:function(){_.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,e.jsx)(T.ZP,{type:"primary",danger:!0,size:"small",children:"\u5220\u9664"})},"del")]}},{title:"\u8BBE\u8BA1\u64CD\u4F5C",valueType:"option",fixed:"right",key:"option",render:function(o,t){var a;return[(0,e.jsx)(T.ZP,{type:"primary",size:"small",onClick:d()(c()().mark(function l(){var p;return c()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:Ee(t),Ue(!0),p=JSON.parse(JSON.stringify(t)),Y.setFieldsValue(p);case 4:case"end":return m.stop()}},l)})),children:"\u7ED1\u5B9A\u4EA7\u7EBF"},"chanxian"),(0,e.jsx)(T.ZP,{disabled:((a=t.lineId)===null||a===void 0?void 0:a.length)==0,type:"primary",size:"small",onClick:d()(c()().mark(function l(){var p;return c()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:Oe(!0),Ee(t),Tt(0),ne.Z.LineList(t.id).then(function(j){j.statusCode===200&&(An(j.data),yt(j.data[0]),Yt(j.data[0].key,t==null?void 0:t.id))}),p=JSON.parse(JSON.stringify(t)),Y.setFieldsValue(p),We.List({finalId:t.id}).then(function(j){j.statusCode===200&&(j.data.map(function(y){return y.value=y.materialCode,y.label=y.materialName+"(".concat(y.mode==1?"\u4EBA\u5DE5":"\u8BBE\u5907",")")}),console.log("\u7269\u6599\u4FE1\u606F",j.data),fa(j.data))});case 7:case"end":return m.stop()}},l)})),children:"\u8BBE\u7F6E\u5DE5\u827A"},"chanxian")]}}],va=function(){var i=d()(c()().mark(function o(t){var a,l,p,u;return c()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(console.log("values",t),!t.id){j.next=8;break}return j.next=4,ne.Z.Update(t);case 4:a=j.sent,a.statusCode===200?(_.ZP.success("\u4FEE\u6539\u6210\u529F"),(l=S.current)===null||l===void 0||l.reload(),re(!1)):_.ZP.error(JSON.stringify(a.errors)||"\u4FEE\u6539\u5931\u8D25"),j.next=12;break;case 8:return j.next=10,ne.Z.Add(t);case 10:p=j.sent,p.statusCode===200?(_.ZP.success("\u6DFB\u52A0\u6210\u529F"),(u=S.current)===null||u===void 0||u.reload(),re(!1)):_.ZP.error(JSON.stringify(p.errors)||"\u6DFB\u52A0\u5931\u8D25");case 12:case"end":return j.stop()}},o)}));return function(t){return i.apply(this,arguments)}}();(0,f.useEffect)(function(){ht.Z.selectlist().then(function(i){i.statusCode===200&&bn(i.data)})},[]);var pa=(0,f.useState)([]),Xt=g()(pa,2),Za=Xt[0],xa=Xt[1],Yt=function(o,t){gt.Z.List({lineId:o,finalId:t}).then(function(a){a.statusCode===200&&Et(a.data)})},ha=(0,f.useState)([]),Ht=g()(ha,2),Ca=Ht[0],ya=Ht[1];return(0,e.jsxs)(e.Fragment,{children:[In?(0,e.jsxs)(_e.Z,{size:"default",title:"\u5F53\u524D\u914D\u7F6E\u6210\u54C1\u5DE5\u827A: "+(E==null?void 0:E.name),styles:{header:{textAlign:"center",margin:"auto",fontSize:"22px"}},extra:ie&&Ye.length>0?(0,e.jsxs)(Ae.Z,{title:"\u786E\u5B9A\u8981\u4FDD\u5B58\u5F53\u524D\u914D\u7F6E\uFF1F",onConfirm:function(o){ne.Z.Saveconfigstatus({LineId:ie.key,finalId:E.id}).then(function(t){t.statusCode===200?(_.ZP.success("\u4FDD\u5B58\u6210\u529F!"),setTimeout(function(){Oe(!1)},1e3)):_.ZP.error(t.errors||t.message)})},onCancel:function(){_.ZP.info("\u672A\u4FDD\u5B58\u914D\u7F6E"),Oe(!1)},children:[" ",(0,e.jsx)(T.ZP,{style:{position:"absolute",top:"20px",right:"20px"},icon:(0,e.jsx)(Pt.Z,{}),type:"primary",size:"small",children:"\u8FD4\u56DE"})]}):(0,e.jsx)(T.ZP,{onClick:function(){Oe(!1)},style:{position:"absolute",top:"20px",right:"20px"},icon:(0,e.jsx)(Pt.Z,{}),type:"primary",size:"small",children:"\u8FD4\u56DE"}),children:[(0,e.jsx)(ft.Z,{}),(0,e.jsx)(_e.Z,{title:"\u9009\u62E9\u4EA7\u7EBF",children:(0,e.jsx)("div",{className:J.tag,children:Ln.map(function(i,o){return(0,e.jsx)(mt.Z.Ribbon,{text:i.status=="0"?"\u672A\u914D\u7F6E":"\u5DF2\u914D\u7F6E",color:i.status=="0"?"":"pink",children:(0,e.jsxs)("div",{onClick:function(){console.log(i),yt(i),Tt(o),kn(-1),gt.Z.List({lineId:i.key,finalId:E.id}).then(function(a){a.statusCode===200&&Et(a.data)})},className:"".concat(J.tag_item," ").concat(o===Ot?J.tag_item_activeItem:""),children:[(0,e.jsx)(ge.Z,{size:"small",children:(0,e.jsx)("div",{children:i.value})}),(0,e.jsx)("div",{className:o===Ot?J.tag_item_active:""})]},o)})})})}),Ye.length>0?(0,e.jsx)(_e.Z,{title:"\u4EA7\u7EBF\u5DE5\u5E8F\u8DEF\u7EBF",extra:(0,e.jsx)(ge.Z,{direction:"horizontal",children:(0,e.jsx)(Ae.Z,{title:"\u786E\u5B9A\u8981\u4FDD\u5B58\u914D\u7F6E?\u4FDD\u5B58\u6210\u529F\u540E\u5C06\u8FD4\u56DE\u6210\u54C1\u5217\u8868\u3002",onConfirm:function(){ne.Z.Saveconfigstatus({LineId:ie.key,finalId:E.id}).then(function(o){o.statusCode===200?(_.ZP.success("\u4FDD\u5B58\u6210\u529F!"),setTimeout(function(){Oe(!1)},1e3)):_.ZP.error(o.errors||o.message)})},children:(0,e.jsx)(T.ZP,{size:"small",type:"primary",danger:!0,children:"\u4FDD\u5B58\u914D\u7F6E"})},"save")}),children:(0,e.jsx)(tt.Z.Group,{onChange:function(){},children:(0,e.jsx)("div",{className:J.gongyi_tag,children:(0,e.jsx)(Zn.Z,{wrap:!0,gap:"small",children:Ye.map(function(i,o){return(0,e.jsxs)("div",{className:J.gongyi_tag_box,children:[(0,e.jsxs)("div",{className:"".concat(J.gongyi_tag_item," ").concat(o===Bt?J.gongyi_tag_item_activeItem:""),children:[(0,e.jsx)(ge.Z,{size:"middle",children:(0,e.jsxs)("div",{color:"#2db7f5",style:{fontSize:"22px"},children:[" 0",o+1,"-",i.processName]})}),(0,e.jsx)("div",{className:o===Bt?J.gongyi_tag_item_active:""})]}),(0,e.jsx)(_e.Z,{title:"\u6240\u5C5E\u8BBE\u5907",size:"small",bordered:!1,style:{height:"200px",overflowY:"auto",overflowX:"hidden"},className:J.gongyi_tag_device,children:i.devicesInfo.length>0?(0,e.jsx)(ge.Z,{title:"\u8BBE\u5907",direction:"vertical",children:i.devicesInfo.map(function(t,a){return(0,e.jsx)(mt.Z.Ribbon,{text:t.status=="0"?"\u672A\u8BBE\u7F6E":"\u5DF2\u8BBE\u7F6E",color:t.status=="0"?"":"pink",children:(0,e.jsx)(tt.Z,{onClick:function(p){Nn(i),wn(t),ia(i.processName+"-"+t.name+"["+t.code+"]"),console.log("currentproductionline",ie),w(!0);var u={lineId:ie.key,deviceId:t.code,finalId:E.id,productLineStepsId:i.id};Wt(u)},size:"small",title:t.name,value:t.id})})})}):(0,e.jsx)(vt.Z,{description:"\u672A\u7ED1\u5B9A\u8BBE\u5907"})}),(0,e.jsx)(ft.Z,{})]},o)})})})})}):(0,e.jsx)(vt.Z,{description:"\u672A\u914D\u7F6E\u5DE5\u5E8F\u8DEF\u7EBF"})]}):(0,e.jsx)(et.Z,{columns:ma,actionRef:S,cardBordered:!0,bordered:!0,scroll:{x:!0},rowClassName:function(o,t,a){return t%2===0?"":"even-row-background"},request:d()(c()().mark(function i(){var o,t,a,l=arguments;return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return o=l.length>0&&l[0]!==void 0?l[0]:{},t={pageIndex:o.current||1,pageSize:o.pageSize||10,name:o.name||"",code:o.code||""},u.next=4,ne.Z.PagedList(t);case 4:if(a=u.sent,a.statusCode!==200){u.next=9;break}return u.abrupt("return",{data:a.data.items,success:!0,total:a.data.total});case 9:return u.abrupt("return",{data:[],success:!1,total:0});case 10:case"end":return u.stop()}},i)})),rowKey:"id",pagination:{pageSize:10,showSizeChanger:!1},dateFormatter:"string",headerTitle:"\u6210\u54C1\u5217\u8868",toolBarRender:function(){return[(0,e.jsx)(T.ZP,{type:"primary",onClick:function(){ae.resetFields(),re(!0),C("\u65B0\u589E\u6210\u54C1")},children:"\u65B0\u589E\u6210\u54C1"},"button")]}},"myTable"),(0,e.jsx)(se.Z,{maskClosable:!1,open:H,width:1200,onCancel:function(){w(!1),Yt(ie.key,E.id)},onOk:function(){return w(!1)},footer:!1,children:(0,e.jsx)(Qt.Z,{tableStyle:{overflowY:"auto",overflowX:"hidden",maxHeight:"500px"},toolBarRender:function(){return[(0,e.jsx)(T.ZP,{type:"primary",disabled:Rt<0,onClick:function(){N.resetFields(),Te(!0),ve([]),U(!0);var t={deviceProductId:ue==null?void 0:ue.deviceType};console.log("jsonData",t),St.Z.List(t).then(function(a){a.succeeded&&(Gt(a.data),setTimeout(function(){var l=a.data.find(function(m){return m.id===""});if(l!=null&&l.params){var p=JSON.parse(l==null?void 0:l.params);console.log(p);var u=[];p.map(function(m){var j={title:m.paramName,dataIndex:m.paramCode,width:"md",renderFormItem:function(Ce,R,we){return m.paramType===1?(0,e.jsx)(q.Z,{mode:"multiple",options:Be}):(0,e.jsx)(X.Z,{addonAfter:m.paramUnit})},colProps:{xs:24,md:12}};u.push(j)}),console.log(u),ve(u)}U(!1)},200))})},children:"\u6DFB\u52A0\u5DE5\u827A\u53C2\u6570"}),(0,e.jsx)(T.ZP,{type:"primary",danger:!0,disabled:Rt<0,onClick:function(){console.log("sss",G==null?void 0:G.devicesInfo);var t=JSON.stringify(G==null?void 0:G.devicesInfo),a=JSON.parse(t),l=a.filter(function(p){return p.code!=ue.code});Xn(l),He(!0)},children:"\u4F7F\u7528\u540C\u7C7B\u578B\u8BBE\u5907\u914D\u7F6E"})]},actionRef:xe,headerTitle:ra,columns:[{title:"\u6B65\u9AA4\u5E8F\u53F7",dataIndex:"step",tooltip:"\u9F20\u6807\u653E\u5728\u5E8F\u53F7\u524D\u53D8\u6210\u624B\u5F62,\u4E0A\u4E0B\u62D6\u62FD\u8C03\u6574\u987A\u5E8F",hideInSearch:!0,render:function(o,t,a){return(0,e.jsx)("span",{className:"customRender",children:"".concat(a+1)})}},{title:"\u6B65\u9AA4\u5907\u6CE8",dataIndex:"description",hideInSearch:!0},{title:"\u529F\u80FD",dataIndex:"deviceProductFunctionName",hideInSearch:!0,width:200},{title:"\u8BBE\u5907\u53C2\u6570\u9884\u89C8",hideInSearch:!0,render:function(o,t,a,l,p){var u=JSON.parse(t==null?void 0:t.deviceFunParams);if(t!=null&&t.deviceStepParms){var m=JSON.parse(t==null?void 0:t.deviceStepParms),j=[];return m&&(u==null||u.map(function(y,Ce){Object.keys(m).forEach(function(R,we){if(y.paramCode==R)if(y.paramType==1){var pe,he="";(pe=m[R])===null||pe===void 0||pe.map(function(te){if(he==""){var Le;he=(Le=Be.find(function(Ke){return Ke.value==te}))===null||Le===void 0?void 0:Le.label}else{var Ve;he=he+","+((Ve=Be.find(function(Ke){return Ke.value==te}))===null||Ve===void 0?void 0:Ve.label)}}),j.push({name:y.paramName+":"+he})}else j.push({name:y.paramName+":"+m[R]+y.paramUnit})})})),(0,e.jsx)(ge.Z,{size:"small",direction:"vertical",align:"start",children:j.map(function(y){return(0,e.jsx)("div",{style:{wordWrap:"break-word"},children:y.name})})})}}},{title:"\u64CD\u4F5C",align:"center",valueType:"option",fixed:"right",key:"option",render:function(o,t,a,l){return[(0,e.jsxs)(ge.Z,{size:"middle",children:[(0,e.jsx)(T.ZP,{type:"primary",ghost:!0,onClick:d()(c()().mark(function p(){var u,m;return c()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:Te(!0),ve([]),U(!0),u=JSON.parse(JSON.stringify(t)),N.setFieldsValue(u),console.log("recor1d",t.deviceProductFunctionId),m={deviceProductId:E==null?void 0:E.deviceProductId},St.Z.List(m).then(function(Ce){Ce.succeeded&&(Gt(Ce.data),setTimeout(function(){var R=Ce.data.find(function(te){return te.id===t.deviceProductFunctionId});if(R!=null&&R.params){var we=JSON.parse(R==null?void 0:R.params);console.log(we);var pe=[];we.map(function(te){var Le={title:te.paramName,dataIndex:te.paramCode,width:"md",renderFormItem:function(Ke,_a,Fa){return te.paramType===1?(0,e.jsx)(q.Z,{mode:"multiple",options:Be}):(0,e.jsx)(X.Z,{addonAfter:te.paramUnit})},colProps:{xs:24,md:12}};pe.push(Le)}),console.log(pe),ve(pe)}if(be&&t.params){var he=JSON.parse(t.params);be.setFieldsValue(he)}U(!1)},200))});case 8:case"end":return y.stop()}},p)})),children:"\u914D\u7F6E\u8BBE\u5907\u53C2\u6570"}),(0,e.jsx)(Ae.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){var u={id:t.id,step:0,craftId:"",deviceProductId:""};oe.Del(u).then(function(m){m.statusCode===200&&(_.ZP.success(m.statusCode===200?"\u5220\u9664\u6210\u529F":m.message),l==null||l.reload())})},onCancel:function(){_.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,e.jsx)(T.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5220\u9664"})},(0,Cn.Z)())]})]}}],rowKey:"step",search:!1,pagination:!1,params:sa,request:d()(c()().mark(function i(){var o,t,a,l=arguments;return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(o=l.length>0&&l[0]!==void 0?l[0]:{},o.deviceId){u.next=3;break}return u.abrupt("return",{data:[],success:!0});case 3:return t={lineId:o.lineId,finalId:o.finalId,deviceId:o.deviceId,productLineStepsId:o.productLineStepsId},u.next=6,oe.List(t);case 6:if(a=u.sent,a.statusCode!==200){u.next=11;break}return u.abrupt("return",{data:a.data,success:!0,total:a.data});case 11:return u.abrupt("return",{data:[],success:!1});case 12:case"end":return u.stop()}},i)})),dragSortKey:"step",onDragSortEnd:function(o,t,a){console.log("newDataSource",a),a.map(function(l,p){l.step=p+1}),console.log("\u6392\u5E8F\u540E\u7684\u6570\u636E",a),oe.BatchUpdate(a).then(function(l){if(l.data){var p;(p=xe.current)===null||p===void 0||p.reload(),_.ZP.success("\u4FEE\u6539\u5217\u8868\u6392\u5E8F\u6210\u529F")}})}})}),(0,e.jsx)(se.Z,{maskClosable:!1,width:800,title:(0,e.jsx)(ke.Z,{color:"#cd201f",children:x}),open:Ie,onCancel:function(){re(!1)},footer:[(0,e.jsx)(T.ZP,{onClick:function(){re(!1)},children:"\u8FD4\u56DE"},"back"),(0,e.jsx)(T.ZP,{form:"finalForm",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],children:(0,e.jsxs)(b.Z,{form:ae,name:"basic",id:"finalForm",onFinish:va,autoComplete:"off",children:[(0,e.jsx)(b.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,e.jsx)(X.Z,{})}),(0,e.jsx)(b.Z.Item,{label:"\u6210\u54C1\u7F16\u7801",name:"code",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,e.jsx)(X.Z,{})}),(0,e.jsx)(b.Z.Item,{name:"name",label:"\u6210\u54C1\u540D\u79F0",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879"}],children:(0,e.jsx)(X.Z,{})})]})},"01"),(0,e.jsx)(se.Z,{maskClosable:!1,width:1200,title:"\u914D\u7F6E\u7269\u6599",open:V,destroyOnClose:!0,onCancel:function(){z(!1),je([])},onOk:function(){var o=JSON.parse(JSON.stringify(Z));o.map(function(t){t.finalId=E.id}),console.log("list",o),We.BatchAdd(o).then(function(t){t.statusCode===200?(_.ZP.success("\u4FDD\u5B58\u6210\u529F!"),z(!1)):_.ZP.error("\u4FDD\u5B58\u5931\u8D25!")})},children:(0,e.jsx)(pt.Z,{spinning:Se,children:(0,e.jsx)(en.Z,{children:(0,e.jsx)("div",{style:{maxWidth:1200,margin:"auto"},children:(0,e.jsx)(Pn,{rowKey:"id",controlled:!0,editableFormRef:fe,actionRef:O,columns:[{title:"\u7269\u6599\u540D\u79F0",dataIndex:"materialCode",valueType:"select",ellipsis:!0,request:function(){var i=d()(c()().mark(function t(){var a,l;return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,yn.Z.List();case 2:return a=u.sent,l=[],a.statusCode===200&&(ze(a.data),a.data.map(function(m){return l.push({label:"".concat(m.name,"[").concat(m.unit,"]"),value:m.code})})),u.abrupt("return",l);case 6:case"end":return u.stop()}},t)}));function o(){return i.apply(this,arguments)}return o}(),formItemProps:function(){return{rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879"}]}}},{title:"\u914D\u6599\u65B9\u5F0F",dataIndex:"mode",valueType:"select",ellipsis:!0,valueEnum:{0:{text:"\u8BBE\u5907"},1:{text:"\u4EBA\u5DE5"}}},{title:"\u91CD\u91CF",dataIndex:"weight",valueType:"text",ellipsis:!0,formItemProps:function(){return{rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879"}]}}},{title:"\u91CD\u91CF\u8BEF\u5DEE(\xB1)",dataIndex:"errorWeight",valueType:"text",ellipsis:!0,formItemProps:function(){return{rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879"}]}}},{title:"\u64CD\u4F5C",valueType:"option",render:function(o,t){return[(0,e.jsx)(T.ZP,{type:"primary",ghost:!0,onClick:function(){var l;console.log(t),(l=O.current)===null||l===void 0||l.startEditable(t.id)},children:"\u7F16\u8F91\u539F\u6599"},"edit")]}}],value:Z,recordCreatorProps:{record:function(){return{id:Date.now().toString(),materialId:"",finalId:"",weight:"",mode:""}}},editable:{form:N,type:"single",onValuesChange:function(o,t){console.log(ee),t?je(t):(Z.push(o),je(Z)),console.log("materiallist",Z)},actionRender:function(o,t,a){return[a.delete,a.save,a.cancel]}}})})})})},"02"),(0,e.jsx)(se.Z,{maskClosable:!1,width:500,title:"\u7ED1\u5B9A\u4EA7\u7EBF",open:Dn,destroyOnClose:!0,onCancel:function(){Ue(!1)},footer:[(0,e.jsx)(T.ZP,{onClick:function(){Ue(!1)},children:"\u8FD4\u56DE"},"back"),(0,e.jsx)(T.ZP,{form:"bindlineForm",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],children:(0,e.jsx)(b.Z,{id:"bindlineForm",form:Y,onFinish:function(o){ne.Z.BindLine({finalId:E.id,LineId:o.lineId}).then(function(t){if(t.statusCode===200){var a;_.ZP.info("\u64CD\u4F5C\u6210\u529F!"),Ue(!1),(a=S.current)===null||a===void 0||a.reload()}else _.ZP.error("\u64CD\u4F5C\u5931\u8D25!")})},children:(0,e.jsx)(b.Z.Item,{label:"\u8BF7\u9009\u62E9\u4EA7\u7EBF",name:"lineId",children:(0,e.jsx)(q.Z,{placeholder:"\u8BF7\u9009\u62E9\u4EA7\u7EBF",mode:"multiple",children:Tn.map(function(i){return(0,e.jsx)(q.Z.Option,{value:i.key,children:(0,e.jsx)("span",{children:i.value})},i.key)})})})})},"03"),(0,e.jsx)(se.Z,{maskClosable:!1,destroyOnClose:!0,width:800,title:(0,e.jsx)(ke.Z,{color:"#cd201f",children:" \u5DE5\u827A\u6B65\u9AA4\u8BBE\u5907\u53C2\u6570\u4FE1\u606F"}),open:ea,onCancel:function(){Te(!1),be.resetFields(),ve([])},footer:!1,children:(0,e.jsxs)(pt.Z,{spinning:Se,children:[(0,e.jsxs)(b.Z,{form:N,name:"basic1",id:"myForm1111",labelCol:{span:4},wrapperCol:{span:12},autoComplete:"off",children:[(0,e.jsx)(b.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,e.jsx)(X.Z,{})}),(0,e.jsx)(b.Z.Item,{label:"\u8BBE\u5907\u529F\u80FD\u4FE1\u606F",name:"deviceProductFunctionId",rules:[{required:!0,message:"\u6B64\u9879\u5FC5\u586B\uFF01"}],children:(0,e.jsx)(q.Z,{placeholder:"\u8BF7\u9009\u62E9\u529F\u80FD",onChange:function(o,t){var a=zt.find(function(u){return u.id===o});if(a!=null&&a.params){var l=JSON.parse(a==null?void 0:a.params);console.log(l);var p=[];l.map(function(u){var m={title:u.paramName,dataIndex:u.paramCode,width:"md",renderFormItem:function(y,Ce,R){return u.paramType===1?(0,e.jsx)(q.Z,{mode:"multiple",options:Be}):(0,e.jsx)(X.Z,{placeholder:"\u8BF7\u8F93\u5165",addonAfter:u.paramUnit})},colProps:{xs:24,md:12}};p.push(m)}),ve(p)}else ve([])},children:zt.map(function(i){return(0,e.jsx)(q.Z.Option,{value:i.id,children:(0,e.jsx)("span",{children:i.name})},i.id)})})}),(0,e.jsx)(b.Z.Item,{label:"\u5907\u6CE8",name:"description",children:(0,e.jsx)(X.Z,{})})]}),(0,e.jsx)(_e.Z,{children:(0,e.jsx)(jn.Z,{trigger:(0,e.jsx)("a",{children:"\u70B9\u51FB\u6211"}),rowProps:{gutter:[16,16]},colProps:{span:12},grid:!0,onFinish:function(){var i=d()(c()().mark(function o(t){var a,l,p;return c()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(a=N.getFieldsValue(),a.deviceProductFunctionId){m.next=4;break}return _.ZP.error("\u8BF7\u9009\u62E9\u8BBE\u5907\u4EA7\u54C1\u529F\u80FD"),m.abrupt("return");case 4:a.id?(l={id:a.id,deviceProductFunctionId:a.deviceProductFunctionId,params:JSON.stringify(t),description:a.description,deviceId:""},oe.Update(l).then(function(j){if(j.data){var y;(y=xe.current)===null||y===void 0||y.reload(),_.ZP.success("\u4FEE\u6539\u6210\u529F\uFF01"),Te(!1)}})):(p={productLineStepsId:G.id,description:a.description,deviceId:ue.code,finalId:E.id,deviceProductFunctionId:a.deviceProductFunctionId,params:JSON.stringify(t)},oe.Add(p).then(function(j){if(j.statusCode===200){var y;(y=xe.current)===null||y===void 0||y.reload(),_.ZP.info("\u6DFB\u52A0\u6210\u529F"),Te(!1)}else _.ZP.error(j.errors)}));case 5:case"end":return m.stop()}},o)}));return function(o){return i.apply(this,arguments)}}(),columns:na,form:be})})]})}),(0,e.jsx)(se.Z,{maskClosable:!1,destroyOnClose:!0,width:800,open:Hn,onCancel:function(){wt(!1)},footer:!1,title:(0,e.jsx)(ke.Z,{color:"#cd201f",children:" \u6DFB\u52A0\u6B65\u9AA4 "}),children:(0,e.jsx)(ct.A,{form:ae,onFinish:function(){var i=d()(c()().mark(function o(t){var a;return c()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:a={productLineStepsId:G.id,description:t.description,deviceId:ue.code,finalId:E.id,deviceProductFunctionId:"",params:""},console.log("11111111",a),oe.Add(a).then(function(u){if(u.statusCode===200){var m;_.ZP.info("\u6DFB\u52A0\u6210\u529F"),wt(!1),(m=xe.current)===null||m===void 0||m.reload()}else _.ZP.error(u.errors)});case 3:case"end":return p.stop()}},o)}));return function(o){return i.apply(this,arguments)}}(),children:(0,e.jsx)(b.Z.Item,{label:"\u6B65\u9AA4\u5907\u6CE8",name:"description",children:(0,e.jsx)(X.Z,{})})})}),(0,e.jsx)(se.Z,{maskClosable:!1,destroyOnClose:!0,width:800,open:Gn,onCancel:function(){He(!1)},footer:!1,children:(0,e.jsx)(ct.A,{onFinish:function(o){oe.Copyfinalcraftsteps({finalId:E==null?void 0:E.id,lineId:ie.key,copyDeviceId:o.deviceId,productLineStepsId:G.id,toDeviceId:ue.code}).then(function(t){t.statusCode===200&&(_.ZP.success("\u540C\u6B65\u6210\u529F!"),He(!1),setTimeout(function(){var a,l={lineId:ie.key,deviceId:ue.code,finalId:E==null?void 0:E.id,productLineStepsId:G.id};Wt(l),(a=xe.current)===null||a===void 0||a.reload()},2e3))})},children:(0,e.jsx)(b.Z.Item,{label:"\u8BBE\u5907",name:"deviceId",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,e.jsx)(q.Z,{onChange:function(o){},placeholder:"\u8BF7\u9009\u62E9\u8BBE\u5907",style:{width:375},children:Qe==null?void 0:Qe.map(function(i){return(0,e.jsx)(q.Z.Option,{value:i.code,children:(0,e.jsx)("span",{children:i.name+"["+i.code+"]"})},i.code)})})})})})]})},Fn=_n}}]); diff --git a/frontend/dist/p__final__index.9df8868b.async.js b/frontend/dist/p__final__index.9df8868b.async.js deleted file mode 100644 index b3e3467..0000000 --- a/frontend/dist/p__final__index.9df8868b.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[460],{16940:function(Ce,A,i){var M=i(97857),c=i.n(M),v=i(56002);A.Z={Add:function(s){return(0,v.request)("/api/deviceproductfunction/add",{method:"POST",data:c()({},s)})},Del:function(s){return(0,v.request)("/api/deviceproductfunction/del",{method:"POST",data:c()({},s)})},Update:function(s){return(0,v.request)("/api/deviceproductfunction/update",{method:"POST",data:c()({},s)})},Detail:function(s){return(0,v.request)("/api/deviceproductfunction/detail?id=".concat(s),{method:"GET"})},List:function(s){return(0,v.request)("/api/deviceproductfunction/list",{method:"POST",data:c()({},s)})},PagedList:function(s){return(0,v.request)("/api/deviceproductfunction/pagedlist",{method:"POST",data:c()({},s)})}}},55492:function(Ce,A,i){var M=i(97857),c=i.n(M),v=i(56002);A.Z={Add:function(s){return(0,v.request)("/api/finalsinfo/add",{method:"POST",data:c()({},s)})},Del:function(s){return(0,v.request)("/api/finalsinfo/del",{method:"POST",data:c()({},s)})},Update:function(s){return(0,v.request)("/api/finalsinfo/update",{method:"POST",data:c()({},s)})},Detail:function(s){return(0,v.request)("/api/finalsinfo/detail/".concat(s),{method:"GET"})},List:function(){return(0,v.request)("/api/finalsinfo/list",{method:"POST"})},SelectList:function(){return(0,v.request)("/api/finalsinfo/selectlist",{method:"GET"})},LineList:function(s){return(0,v.request)("/api/finalsinfo/linelist/".concat(s),{method:"GET"})},FinishLineList:function(s){return(0,v.request)("/api/finalsinfo/finishlinelist/".concat(s),{method:"GET"})},UnBindList:function(){return(0,v.request)("/api/finalsinfo/UnBindList",{method:"GET"})},PagedList:function(s){return(0,v.request)("/api/finalsinfo/pagedlist",{method:"POST",data:c()({},s)})},BatchUpdate:function(s){return(0,v.request)("/api/finalsinfo/batchupdate",{method:"POST",data:s})},BindLine:function(d){function s(g){return d.apply(this,arguments)}return s.toString=function(){return d.toString()},s}(function(d){return(0,v.request)("/api/finalsinfo/bindline",{method:"POST",data:d})}),RecipeList:function(s){return(0,v.request)(" api/finalsinfo/list",{method:"POST",data:{deviceId:s}})},Saveconfigstatus:function(d){function s(g){return d.apply(this,arguments)}return s.toString=function(){return d.toString()},s}(function(d){return(0,v.request)(" /api/finalsinfo/saveconfigstatus",{method:"POST",data:d})})}},48223:function(Ce,A,i){var M=i(97857),c=i.n(M),v=i(56002);A.Z={Add:function(s){return(0,v.request)("/api/materialsinfo/add",{method:"POST",data:c()({},s)})},Del:function(s){return(0,v.request)("/api/materialsinfo/del",{method:"POST",data:c()({},s)})},Update:function(s){return(0,v.request)("/api/materialsinfo/update",{method:"POST",data:c()({},s)})},List:function(){return(0,v.request)("/api/materialsinfo/list",{method:"GET"})},selectlist:function(){return(0,v.request)("/api/materialsinfo/selectlist",{method:"GET"})},PagedList:function(s){return(0,v.request)("/api/materialsinfo/pagedlist",{method:"POST",data:c()({},s)})}}},93132:function(Ce,A,i){var M=i(97857),c=i.n(M),v=i(56002);A.Z={Add:function(s){return(0,v.request)("/api/productline/add",{method:"POST",data:c()({},s)})},Del:function(s){return(0,v.request)("/api/productline/del",{method:"POST",data:c()({},s)})},Update:function(s){return(0,v.request)("/api/productline/update",{method:"POST",data:c()({},s)})},Detail:function(s){return(0,v.request)("/api/productline/detail?id=".concat(s),{method:"GET"})},List:function(){return(0,v.request)("/api/productline/list",{method:"POST"})},selectlist:function(){return(0,v.request)("/api/productline/selectlist",{method:"GET"})},PagedList:function(s){return(0,v.request)("/api/productline/pagedlist",{method:"POST",data:c()({},s)})},Batchdevice:function(s){return(0,v.request)("/api/productline/addbatchdevice",{method:"POST",data:c()({},s)})},devicelist:function(s){return(0,v.request)("/api/productline/devicelist",{method:"POST",data:c()({},s)})}}},93561:function(Ce,A,i){var M=i(97857),c=i.n(M),v=i(56002);A.Z={Add:function(s){return(0,v.request)("/api/productlinesteps/add",{method:"POST",data:c()({},s)})},Del:function(s){return(0,v.request)("/api/productlinesteps/del",{method:"POST",data:c()({},s)})},Update:function(s){return(0,v.request)("/api/productlinesteps/update",{method:"POST",data:c()({},s)})},Detail:function(s){return(0,v.request)("/api/productlinesteps/detail?id=".concat(s),{method:"GET"})},List:function(s){return(0,v.request)("/api/productlinesteps/list",{method:"POST",data:c()({},s)})},PagedList:function(s){return(0,v.request)("/api/productlinesteps/pagedlist",{method:"POST",data:c()({},s)})},BatchUpdateStep:function(s){return(0,v.request)("/api/productlinesteps/batchupdate",{method:"POST",data:s})},Devicelist:function(s){return(0,v.request)("/api/productline/devicelist",{method:"POST",data:c()({},s)})}}},60033:function(Ce,A,i){i.r(A),i.d(A,{default:function(){return _n}});var M=i(15009),c=i.n(M),v=i(99289),d=i.n(v),s=i(5574),g=i.n(s),He=i(83145),Qe=i(97321),Yt=i(62763),Ht=i(93410),Qt=i(4942),en=i(97685),et=i(91),tt=i(74165),tn=i(15861),E=i(1413),nn=i(87462),f=i(67294),an=i(42110),rn=i(32867),un=function(h,$){return f.createElement(rn.Z,(0,nn.Z)({},h,{ref:$,icon:an.Z}))},sn=f.forwardRef(un),on=sn,ln=i(97462),dn=i(952),cn=i(89451),nt=i(48171),fn=i(53914),at=i(22270),mn=i(23491),T=i(14726),b=i(8232),vn=i(21770),Ke=i(88306),it=i(8880),e=i(85893),pn=["onTableChange","maxLength","formItemProps","recordCreatorProps","rowKey","controlled","defaultValue","onChange","editableFormRef"],hn=["record","position","creatorButtonText","newRecordType","parentKey","style"],rt=f.createContext(void 0);function ut(n){var h=n.children,$=n.record,N=n.position,oe=n.newRecordType,k=n.parentKey,Y=(0,f.useContext)(rt);return f.cloneElement(h,(0,E.Z)((0,E.Z)({},h.props),{},{onClick:function(){var le=(0,tn.Z)((0,tt.Z)().mark(function ge(U){var Se,de,H,w;return(0,tt.Z)().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.next=2,(Se=(de=h.props).onClick)===null||Se===void 0?void 0:Se.call(de,U);case 2:if(w=O.sent,w!==!1){O.next=5;break}return O.abrupt("return");case 5:Y==null||(H=Y.current)===null||H===void 0||H.addEditRecord($,{position:N,newRecordType:oe,parentKey:k});case 6:case"end":return O.stop()}},ge)}));function W(ge){return le.apply(this,arguments)}return W}()}))}function st(n){var h,$,N=(0,cn.YB)(),oe=n.onTableChange,k=n.maxLength,Y=n.formItemProps,le=n.recordCreatorProps,W=n.rowKey,ge=n.controlled,U=n.defaultValue,Se=n.onChange,de=n.editableFormRef,H=(0,et.Z)(n,pn),w=(0,f.useRef)(void 0),ce=(0,f.useRef)(),O=(0,f.useRef)();(0,f.useImperativeHandle)(H.actionRef,function(){return ce.current},[ce.current]);var $e=(0,vn.Z)(function(){return n.value||U||[]},{value:n.value,onChange:n.onChange}),ye=(0,en.Z)($e,2),Z=ye[0],Pe=ye[1],Q=f.useMemo(function(){return typeof W=="function"?W:function(S,I){return S[W]||I}},[W]),je=(0,nt.J)(function(S){if(typeof S=="number"&&!n.name){if(S>=Z.length)return S;var I=Z&&Z[S];return Q==null?void 0:Q(I,S)}if((typeof S=="string"||S>=Z.length)&&n.name){var P=Z.findIndex(function(x,C){var D;return(Q==null||(D=Q(x,C))===null||D===void 0?void 0:D.toString())===(S==null?void 0:S.toString())});if(P!==-1)return P}return S});(0,f.useImperativeHandle)(de,function(){var S=function(x){var C,D;if(x==null)throw new Error("rowIndex is required");var B=je(x),V=[n.name,(C=B==null?void 0:B.toString())!==null&&C!==void 0?C:""].flat(1).filter(Boolean);return(D=O.current)===null||D===void 0?void 0:D.getFieldValue(V)},I=function(){var x,C=[n.name].flat(1).filter(Boolean);if(Array.isArray(C)&&C.length===0){var D,B=(D=O.current)===null||D===void 0?void 0:D.getFieldsValue();return Array.isArray(B)?B:Object.keys(B).map(function(V){return B[V]})}return(x=O.current)===null||x===void 0?void 0:x.getFieldValue(C)};return(0,E.Z)((0,E.Z)({},O.current),{},{getRowData:S,getRowsData:I,setRowData:function(x,C){var D,B;if(x==null)throw new Error("rowIndex is required");var V=je(x),z=[n.name,(D=V==null?void 0:V.toString())!==null&&D!==void 0?D:""].flat(1).filter(Boolean),Ge=Object.assign({},(0,E.Z)((0,E.Z)({},S(x)),C||{})),Ue=(0,it.Z)({},z,Ge);return(B=O.current)===null||B===void 0||B.setFieldsValue(Ue),!0}})},[je,n.name,O.current]),(0,f.useEffect)(function(){n.controlled&&(Z||[]).forEach(function(S,I){var P;(P=O.current)===null||P===void 0||P.setFieldsValue((0,Qt.Z)({},"".concat(Q(S,I)),S))},{})},[(0,fn.ZP)(Z),n.controlled]),(0,f.useEffect)(function(){if(n.name){var S;O.current=n==null||(S=n.editable)===null||S===void 0?void 0:S.form}},[(h=n.editable)===null||h===void 0?void 0:h.form,n.name]);var ee=le||{},ke=ee.record,Fe=ee.position,Me=ee.creatorButtonText,_=ee.newRecordType,De=ee.parentKey,We=ee.style,ze=(0,et.Z)(ee,hn),ae=Fe==="top",fe=(0,f.useMemo)(function(){return typeof k=="number"&&k<=(Z==null?void 0:Z.length)?!1:le!==!1&&(0,e.jsx)(ut,{record:(0,at.h)(ke,Z==null?void 0:Z.length,Z)||{},position:Fe,parentKey:(0,at.h)(De,Z==null?void 0:Z.length,Z),newRecordType:_,children:(0,e.jsx)(T.ZP,(0,E.Z)((0,E.Z)({type:"dashed",style:(0,E.Z)({display:"block",margin:"10px 0",width:"100%"},We),icon:(0,e.jsx)(on,{})},ze),{},{children:Me||N.getMessage("editableTable.action.add","\u6DFB\u52A0\u4E00\u884C\u6570\u636E")}))})},[le,k,Z==null?void 0:Z.length]),Ne=(0,f.useMemo)(function(){return fe?ae?{components:{header:{wrapper:function(I){var P,x=I.className,C=I.children;return(0,e.jsxs)("thead",{className:x,children:[C,(0,e.jsxs)("tr",{style:{position:"relative"},children:[(0,e.jsx)("td",{colSpan:0,style:{visibility:"hidden"},children:fe}),(0,e.jsx)("td",{style:{position:"absolute",left:0,width:"100%"},colSpan:(P=H.columns)===null||P===void 0?void 0:P.length,children:fe})]})]})}}}}:{tableViewRender:function(I,P){var x,C;return(0,e.jsxs)(e.Fragment,{children:[(x=(C=n.tableViewRender)===null||C===void 0?void 0:C.call(n,I,P))!==null&&x!==void 0?x:P,fe]})}}:{}},[ae,fe]),Ee=(0,E.Z)({},n.editable),ie=(0,nt.J)(function(S,I){var P,x,C;if((P=n.editable)===null||P===void 0||(x=P.onValuesChange)===null||x===void 0||x.call(P,S,I),(C=n.onValuesChange)===null||C===void 0||C.call(n,I,S),n.controlled){var D;n==null||(D=n.onChange)===null||D===void 0||D.call(n,I)}});return(n!=null&&n.onValuesChange||($=n.editable)!==null&&$!==void 0&&$.onValuesChange||n.controlled&&n!==null&&n!==void 0&&n.onChange)&&(Ee.onValuesChange=ie),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(rt.Provider,{value:ce,children:(0,e.jsx)(He.Z,(0,E.Z)((0,E.Z)((0,E.Z)({search:!1,options:!1,pagination:!1,rowKey:W,revalidateOnFocus:!1},H),Ne),{},{tableLayout:"fixed",actionRef:ce,onChange:oe,editable:(0,E.Z)((0,E.Z)({},Ee),{},{formProps:(0,E.Z)({formRef:O},Ee.formProps)}),dataSource:Z,onDataSourceChange:function(I){if(Pe(I),n.name&&Fe==="top"){var P,x=(0,it.Z)({},[n.name].flat(1).filter(Boolean),I);(P=O.current)===null||P===void 0||P.setFieldsValue(x)}}}))}),n.name?(0,e.jsx)(ln.Z,{name:[n.name],children:function(I){var P,x;if(!w.current)return w.current=Z,null;var C=(0,Ke.Z)(I,[n.name].flat(1)),D=C==null?void 0:C.find(function(B,V){var z;return!(0,mn.A)(B,(z=w.current)===null||z===void 0?void 0:z[V])});return w.current=Z,D&&(n==null||(P=n.editable)===null||P===void 0||(x=P.onValuesChange)===null||x===void 0||x.call(P,D,C)),null}}):null]})}function ot(n){var h=dn.ZP.useFormInstance();return n.name?(0,e.jsx)(b.Z.Item,(0,E.Z)((0,E.Z)({style:{maxWidth:"100%"}},n==null?void 0:n.formItemProps),{},{name:n.name,shouldUpdate:function(N,oe){var k=[n.name].flat(1);try{return JSON.stringify((0,Ke.Z)(N,k))!==JSON.stringify((0,Ke.Z)(oe,k))}catch(Y){return!0}},children:(0,e.jsx)(st,(0,E.Z)((0,E.Z)({tableLayout:"fixed",scroll:{x:"max-content"}},n),{},{editable:(0,E.Z)((0,E.Z)({},n.editable),{},{form:h})}))})):(0,e.jsx)(st,(0,E.Z)({tableLayout:"fixed",scroll:{x:"max-content"}},n))}ot.RecordCreator=ut;var gn=ot,Sn=i(8256),lt=i(34994),Ae=i(86738),F=i(45360),_e=i(4393),dt=i(96074),ct=i(40411),he=i(42075),Pn=i(86250),ft=i(32983),ue=i(85576),q=i(34041),X=i(49978),Re=i(66309),mt=i(74330),ne=i(55492),jn=i(97857),K=i.n(jn),L=i(56002),Je={Add:function(h){return(0,L.request)("/api/finalmaterial/add",{method:"POST",data:K()({},h)})},Del:function(h){return(0,L.request)("/api/finalmaterial/del",{method:"POST",data:K()({},h)})},Update:function(h){return(0,L.request)("/api/finalmaterial/update",{method:"POST",data:K()({},h)})},Detail:function(h){return(0,L.request)("/api/finalmaterial/detail?id=".concat(h),{method:"GET"})},List:function(h){return(0,L.request)("/api/finalmaterial/list",{method:"POST",data:K()({},h)})},PagedList:function(h){return(0,L.request)("/api/finalmaterial/pagedlist",{method:"POST",data:K()({},h)})},BatchAdd:function(h){return(0,L.request)("/api/finalmaterial/batchadd",{method:"POST",data:h})}},vt=i(93132),pt=i(93561),se={Add:function(h){return(0,L.request)("/api/finalcraftsteps/add",{method:"POST",data:K()({},h)})},Del:function(h){return(0,L.request)("/api/finalcraftsteps/del",{method:"POST",data:K()({},h)})},Update:function(h){return(0,L.request)("/api/finalcraftsteps/update",{method:"POST",data:K()({},h)})},Detail:function(h){return(0,L.request)("/api/finalcraftsteps/detail?id=".concat(h),{method:"GET"})},List:function(h){return(0,L.request)("/api/finalcraftsteps/list",{method:"POST",data:K()({},h)})},PagedList:function(h){return(0,L.request)("/api/finalcraftsteps/pagedlist",{method:"POST",data:K()({},h)})},BatchUpdate:function(h){return(0,L.request)("/api/finalcraftsteps/batchupdate",{method:"POST",data:h})},Copyfinalcraftsteps:function(h){return(0,L.request)("/api/finalcraftsteps/copyfinalcraftsteps",{method:"POST",data:h})}},Zn=i(57632),ht=i(16940),xn=i(48223),gt=i(26346),J={tag:"tag___VXJuq",tag_device:"tag_device___W_ZX6",tag_item:"tag_item___PSkFw",tag_item_active:"tag_item_active___T4sW7",tag_item_activeItem:"tag_item_activeItem___l1ogu",tag_item_editicon:"tag_item_editicon___c9Zjn",gongyi_tag:"gongyi_tag___CnXhD",gongyi_tag_box:"gongyi_tag_box___CcbF9",gongyi_tag_item:"gongyi_tag_item___EQ4gA",gongyi_tag_item_active:"gongyi_tag_item_active___uXVmO",gongyi_tag_item_activeItem:"gongyi_tag_item_activeItem___SQcJo",gongyi_tag_item_editicon:"gongyi_tag_item_editicon___SvWpc"},Cn=function(){var h=b.Z.useForm(),$=g()(h,1),N=$[0],oe=b.Z.useForm(),k=g()(oe,1),Y=k[0],le=(0,f.useState)(!1),W=g()(le,2),ge=W[0],U=W[1],Se=(0,f.useState)(!1),de=g()(Se,2),H=de[0],w=de[1],ce=(0,f.useRef)(),O=(0,f.useRef)(),$e=(0,f.useState)([]),ye=g()($e,2),Z=ye[0],Pe=ye[1],Q=(0,f.useState)([]),je=g()(Q,2),ee=je[0],ke=je[1],Fe=(0,f.useState)(),Me=g()(Fe,2),_=Me[0],De=Me[1],We=b.Z.useForm(),ze=g()(We,1),ae=ze[0],fe=(0,f.useState)(!1),Ne=g()(fe,2),Ee=Ne[0],ie=Ne[1],S=(0,f.useRef)(),I=(0,f.useState)(),P=g()(I,2),x=P[0],C=P[1],D=(0,f.useState)(),B=g()(D,2),V=B[0],z=B[1],Ge=(0,f.useState)(),Ue=g()(Ge,2),yn=Ue[0],we=Ue[1],Fn=(0,f.useState)(),St=g()(Fn,2),Dn=St[0],Ie=St[1],En=(0,f.useState)([]),Pt=g()(En,2),In=Pt[0],On=Pt[1],Tn=(0,f.useState)([]),jt=g()(Tn,2),bn=jt[0],Bn=jt[1],Ln=(0,f.useState)(),Zt=g()(Ln,2),re=Zt[0],xt=Zt[1],An=(0,f.useState)(),Ct=g()(An,2),G=Ct[0],Rn=Ct[1],Mn=(0,f.useState)(),_t=g()(Mn,2),Oe=_t[0],Nn=_t[1],Un=(0,f.useState)([]),yt=g()(Un,2),qe=yt[0],Ft=yt[1],wn=(0,f.useState)(),Dt=g()(wn,2),Et=Dt[0],It=Dt[1],Vn=(0,f.useState)(),Ot=g()(Vn,2),Tt=Ot[0],Kn=Ot[1],Jn=(0,f.useState)([]),bt=g()(Jn,2),pa=bt[0],ha=bt[1],$n=(0,f.useState)(0),Bt=g()($n,2),Lt=Bt[0],ga=Bt[1],kn=(0,f.useState)(!1),At=g()(kn,2),Wn=At[0],Xe=At[1],zn=(0,f.useState)([]),Rt=g()(zn,2),Ye=Rt[0],Gn=Rt[1],qn=(0,f.useState)(!1),Mt=g()(qn,2),Xn=Mt[0],Nt=Mt[1],Yn=(0,f.useState)(!1),Ut=g()(Yn,2),Hn=Ut[0],Te=Ut[1],Qn=(0,f.useState)([]),wt=g()(Qn,2),ea=wt[0],me=wt[1],Ze=(0,f.useRef)(),ta=(0,f.useState)("\u6B65\u9AA4\u5217\u8868"),Vt=g()(ta,2),na=Vt[0],aa=Vt[1],ia=(0,f.useState)(),Kt=g()(ia,2),ra=Kt[0],Jt=Kt[1],ua=(0,f.useState)([]),$t=g()(ua,2),kt=$t[0],Wt=$t[1],sa=b.Z.useForm(),oa=g()(sa,1),be=oa[0],la=(0,f.useState)(),zt=g()(la,2),Be=zt[0],da=zt[1],Sa=b.Z.useWatch("processId",ae),ca=[{title:"id",dataIndex:"id",hideInSearch:!0,hideInTable:!0},{title:"\u6210\u54C1\u7F16\u53F7",dataIndex:"code",hideInSearch:!1},{title:"\u6210\u54C1\u540D\u79F0",dataIndex:"name",hideInSearch:!1},{title:"\u5DF2\u7ED1\u5B9A\u4EA7\u7EBF",dataIndex:"lineId",hideInSearch:!0,valueType:"select",request:function(){var r=d()(c()().mark(function t(){var a,l;return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,vt.Z.selectlist();case 2:return a=u.sent,l=a.data,l.map(function(m){return m.label=m.value,m.value=m.key}),u.abrupt("return",l);case 6:case"end":return u.stop()}},t)}));function o(){return r.apply(this,arguments)}return o}()},{title:"\u57FA\u7840\u64CD\u4F5C",valueType:"option",fixed:"right",key:"option",render:function(o,t){return[(0,e.jsx)(T.ZP,{type:"primary",size:"small",onClick:d()(c()().mark(function a(){var l;return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:U(!0),l={finalId:t.id},De(t),Je.List(l).then(function(m){m.statusCode===200&&(Pe(m.data),z(!0)),U(!1)}).catch(function(){z(!1),U(!1)});case 4:case"end":return u.stop()}},a)})),children:"\u914D\u65B9\u8BBE\u7F6E"},"peifang"),(0,e.jsx)(T.ZP,{type:"primary",size:"small",onClick:d()(c()().mark(function a(){var l;return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:ie(!0),C("\u6210\u54C1\u7F16\u8F91"),l=JSON.parse(JSON.stringify(t)),l.state=l.state==="0",ae.setFieldsValue(l);case 5:case"end":return u.stop()}},a)})),children:"\u7F16\u8F91"},"edit"),(0,e.jsx)(Ae.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){var l={id:t.id};ne.Z.Del(l).then(function(p){if(p.statusCode===200){var u;F.ZP.success(p.statusCode===200?"\u5220\u9664\u6210\u529F":p.message),(u=S.current)===null||u===void 0||u.reload()}})},onCancel:function(){F.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,e.jsx)(T.ZP,{type:"primary",danger:!0,size:"small",children:"\u5220\u9664"})},"del")]}},{title:"\u8BBE\u8BA1\u64CD\u4F5C",valueType:"option",fixed:"right",key:"option",render:function(o,t){var a;return[(0,e.jsx)(T.ZP,{type:"primary",size:"small",onClick:d()(c()().mark(function l(){var p;return c()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:De(t),we(!0),p=JSON.parse(JSON.stringify(t)),Y.setFieldsValue(p);case 4:case"end":return m.stop()}},l)})),children:"\u7ED1\u5B9A\u4EA7\u7EBF"},"chanxian"),(0,e.jsx)(T.ZP,{disabled:((a=t.lineId)===null||a===void 0?void 0:a.length)==0,type:"primary",size:"small",onClick:d()(c()().mark(function l(){var p;return c()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:Ie(!0),De(t),It(0),ne.Z.LineList(t.id).then(function(j){j.statusCode===200&&(Bn(j.data),xt(j.data[0]),qt(j.data[0].key,t==null?void 0:t.id))}),p=JSON.parse(JSON.stringify(t)),Y.setFieldsValue(p),Je.List({finalId:t.id}).then(function(j){j.statusCode===200&&(j.data.map(function(y){return y.value=y.id,y.label=y.materialName}),console.log(j.data),da(j.data))});case 7:case"end":return m.stop()}},l)})),children:"\u8BBE\u7F6E\u5DE5\u827A"},"chanxian")]}}],fa=function(){var r=d()(c()().mark(function o(t){var a,l,p,u;return c()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(console.log("values",t),!t.id){j.next=8;break}return j.next=4,ne.Z.Update(t);case 4:a=j.sent,a.statusCode===200?(F.ZP.success("\u4FEE\u6539\u6210\u529F"),(l=S.current)===null||l===void 0||l.reload(),ie(!1)):F.ZP.error(JSON.stringify(a.errors)||"\u4FEE\u6539\u5931\u8D25"),j.next=12;break;case 8:return j.next=10,ne.Z.Add(t);case 10:p=j.sent,p.statusCode===200?(F.ZP.success("\u6DFB\u52A0\u6210\u529F"),(u=S.current)===null||u===void 0||u.reload(),ie(!1)):F.ZP.error(JSON.stringify(p.errors)||"\u6DFB\u52A0\u5931\u8D25");case 12:case"end":return j.stop()}},o)}));return function(t){return r.apply(this,arguments)}}();(0,f.useEffect)(function(){vt.Z.selectlist().then(function(r){r.statusCode===200&&On(r.data)})},[]);var ma=(0,f.useState)([]),Gt=g()(ma,2),Pa=Gt[0],ja=Gt[1],qt=function(o,t){pt.Z.List({lineId:o,finalId:t}).then(function(a){a.statusCode===200&&Ft(a.data)})},va=(0,f.useState)([]),Xt=g()(va,2),Za=Xt[0],xa=Xt[1];return(0,e.jsxs)(e.Fragment,{children:[Dn?(0,e.jsxs)(_e.Z,{size:"default",title:"\u5F53\u524D\u914D\u7F6E\u6210\u54C1\u5DE5\u827A: "+(_==null?void 0:_.name),styles:{header:{textAlign:"center",margin:"auto",fontSize:"22px"}},extra:re&&qe.length>0?(0,e.jsxs)(Ae.Z,{title:"\u786E\u5B9A\u8981\u4FDD\u5B58\u5F53\u524D\u914D\u7F6E\uFF1F",onConfirm:function(o){ne.Z.Saveconfigstatus({LineId:re.key,finalId:_.id}).then(function(t){t.statusCode===200?(F.ZP.success("\u4FDD\u5B58\u6210\u529F!"),setTimeout(function(){Ie(!1)},1e3)):F.ZP.error(t.errors||t.message)})},onCancel:function(){F.ZP.info("\u672A\u4FDD\u5B58\u914D\u7F6E"),Ie(!1)},children:[" ",(0,e.jsx)(T.ZP,{style:{position:"absolute",top:"20px",right:"20px"},icon:(0,e.jsx)(gt.Z,{}),type:"primary",size:"small",children:"\u8FD4\u56DE"})]}):(0,e.jsx)(T.ZP,{onClick:function(){Ie(!1)},style:{position:"absolute",top:"20px",right:"20px"},icon:(0,e.jsx)(gt.Z,{}),type:"primary",size:"small",children:"\u8FD4\u56DE"}),children:[(0,e.jsx)(dt.Z,{}),(0,e.jsx)(_e.Z,{title:"\u9009\u62E9\u4EA7\u7EBF",children:(0,e.jsx)("div",{className:J.tag,children:bn.map(function(r,o){return(0,e.jsx)(ct.Z.Ribbon,{text:r.status=="0"?"\u672A\u914D\u7F6E":"\u5DF2\u914D\u7F6E",color:r.status=="0"?"":"pink",children:(0,e.jsxs)("div",{onClick:function(){console.log(r),xt(r),It(o),Kn(-1),pt.Z.List({lineId:r.key,finalId:_.id}).then(function(a){a.statusCode===200&&Ft(a.data)})},className:"".concat(J.tag_item," ").concat(o===Et?J.tag_item_activeItem:""),children:[(0,e.jsx)(he.Z,{size:"small",children:(0,e.jsx)("div",{children:r.value})}),(0,e.jsx)("div",{className:o===Et?J.tag_item_active:""})]},o)})})})}),qe.length>0?(0,e.jsx)(_e.Z,{title:"\u4EA7\u7EBF\u5DE5\u5E8F\u8DEF\u7EBF",extra:(0,e.jsx)(he.Z,{direction:"horizontal",children:(0,e.jsx)(Ae.Z,{title:"\u786E\u5B9A\u8981\u4FDD\u5B58\u914D\u7F6E?\u4FDD\u5B58\u6210\u529F\u540E\u5C06\u8FD4\u56DE\u6210\u54C1\u5217\u8868\u3002",onConfirm:function(){ne.Z.Saveconfigstatus({LineId:re.key,finalId:_.id}).then(function(o){o.statusCode===200?(F.ZP.success("\u4FDD\u5B58\u6210\u529F!"),setTimeout(function(){Ie(!1)},1e3)):F.ZP.error(o.errors||o.message)})},children:(0,e.jsx)(T.ZP,{size:"small",type:"primary",danger:!0,children:"\u4FDD\u5B58\u914D\u7F6E"})},"save")}),children:(0,e.jsx)(Qe.Z.Group,{onChange:function(){},children:(0,e.jsx)("div",{className:J.gongyi_tag,children:(0,e.jsx)(Pn.Z,{wrap:!0,gap:"small",children:qe.map(function(r,o){return(0,e.jsxs)("div",{className:J.gongyi_tag_box,children:[(0,e.jsxs)("div",{className:"".concat(J.gongyi_tag_item," ").concat(o===Tt?J.gongyi_tag_item_activeItem:""),children:[(0,e.jsx)(he.Z,{size:"middle",children:(0,e.jsxs)("div",{color:"#2db7f5",style:{fontSize:"22px"},children:[" 0",o+1,"-",r.processName]})}),(0,e.jsx)("div",{className:o===Tt?J.gongyi_tag_item_active:""})]}),(0,e.jsx)(_e.Z,{title:"\u6240\u5C5E\u8BBE\u5907",size:"small",bordered:!1,style:{height:"200px",overflowY:"auto",overflowX:"hidden"},className:J.gongyi_tag_device,children:r.devicesInfo.length>0?(0,e.jsx)(he.Z,{title:"\u8BBE\u5907",direction:"vertical",children:r.devicesInfo.map(function(t,a){return(0,e.jsx)(ct.Z.Ribbon,{text:t.status=="0"?"\u672A\u8BBE\u7F6E":"\u5DF2\u8BBE\u7F6E",color:t.status=="0"?"":"pink",children:(0,e.jsx)(Qe.Z,{onClick:function(p){Rn(r),Nn(t.code),aa(r.processName+"-"+t.name+"["+t.code+"]"),console.log("currentproductionline",re),w(!0);var u={lineId:re.key,deviceId:t.code,finalId:_.id,productLineStepsId:r.id};Jt(u)},size:"small",title:t.name,value:t.id})})})}):(0,e.jsx)(ft.Z,{description:"\u672A\u7ED1\u5B9A\u8BBE\u5907"})}),(0,e.jsx)(dt.Z,{})]},o)})})})})}):(0,e.jsx)(ft.Z,{description:"\u672A\u914D\u7F6E\u5DE5\u5E8F\u8DEF\u7EBF"})]}):(0,e.jsx)(He.Z,{columns:ca,actionRef:S,cardBordered:!0,bordered:!0,scroll:{x:!0},rowClassName:function(o,t,a){return t%2===0?"":"even-row-background"},request:d()(c()().mark(function r(){var o,t,a,l=arguments;return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return o=l.length>0&&l[0]!==void 0?l[0]:{},t={pageIndex:o.current||1,pageSize:o.pageSize||10,name:o.name||"",code:o.code||""},u.next=4,ne.Z.PagedList(t);case 4:if(a=u.sent,a.statusCode!==200){u.next=9;break}return u.abrupt("return",{data:a.data.items,success:!0,total:a.data.total});case 9:return u.abrupt("return",{data:[],success:!1,total:0});case 10:case"end":return u.stop()}},r)})),rowKey:"id",pagination:{pageSize:10,showSizeChanger:!1},dateFormatter:"string",headerTitle:"\u6210\u54C1\u5217\u8868",toolBarRender:function(){return[(0,e.jsx)(T.ZP,{type:"primary",onClick:function(){ae.resetFields(),ie(!0),C("\u65B0\u589E\u6210\u54C1")},children:"\u65B0\u589E\u6210\u54C1"},"button")]}},"myTable"),(0,e.jsx)(ue.Z,{maskClosable:!1,open:H,width:1e3,onCancel:function(){w(!1),qt(re.key,_.id)},onOk:function(){return w(!1)},footer:!1,children:(0,e.jsx)(Yt.Z,{tableStyle:{overflowY:"auto",overflowX:"hidden",maxHeight:"500px"},toolBarRender:function(){return[(0,e.jsx)(T.ZP,{type:"primary",disabled:Lt<0,onClick:function(){N.resetFields(),Te(!0),me([]),U(!0);var t={deviceProductId:_==null?void 0:_.deviceProductId};ht.Z.List(t).then(function(a){a.succeeded&&(Wt(a.data),setTimeout(function(){var l=a.data.find(function(m){return m.id===""});if(l!=null&&l.params){var p=JSON.parse(l==null?void 0:l.params);console.log(p);var u=[];p.map(function(m){var j={title:m.paramName,dataIndex:m.paramCode,width:"md",renderFormItem:function(xe,R,Ve){return m.paramType===1?(0,e.jsx)(q.Z,{mode:"multiple",options:Be}):(0,e.jsx)(X.Z,{addonAfter:m.paramUnit})},colProps:{xs:24,md:12}};u.push(j)}),console.log(u),me(u)}U(!1)},200))})},children:"\u6DFB\u52A0\u5DE5\u827A\u53C2\u6570"}),(0,e.jsx)(T.ZP,{type:"primary",danger:!0,disabled:Lt<0,onClick:function(){console.log("sss",G==null?void 0:G.devicesInfo);var t=JSON.stringify(G==null?void 0:G.devicesInfo),a=JSON.parse(t),l=a.filter(function(p){return p.code!=Oe});Gn(l),Xe(!0)},children:"\u4F7F\u7528\u540C\u7C7B\u578B\u8BBE\u5907\u914D\u7F6E"})]},actionRef:Ze,headerTitle:na,columns:[{title:"\u6B65\u9AA4\u5E8F\u53F7",dataIndex:"step",tooltip:"\u9F20\u6807\u653E\u5728\u5E8F\u53F7\u524D\u53D8\u6210\u624B\u5F62,\u4E0A\u4E0B\u62D6\u62FD\u8C03\u6574\u987A\u5E8F",hideInSearch:!0,render:function(o,t,a){return(0,e.jsx)("span",{className:"customRender",children:"".concat(a+1)})}},{title:"\u6B65\u9AA4\u5907\u6CE8",dataIndex:"description",hideInSearch:!0},{title:"\u529F\u80FD",dataIndex:"deviceProductFunctionName",hideInSearch:!0},{title:"\u8BBE\u5907\u53C2\u6570\u9884\u89C8",width:100,hideInSearch:!0,render:function(o,t,a,l,p){var u=JSON.parse(t==null?void 0:t.deviceFunParams);if(t!=null&&t.deviceStepParms){var m=JSON.parse(t==null?void 0:t.deviceStepParms),j=[];return m&&(u==null||u.map(function(y,xe){Object.keys(m).forEach(function(R,Ve){if(y.paramCode==R)if(y.paramType==1){var ve,pe="";(ve=m[R])===null||ve===void 0||ve.map(function(te){pe==""?pe=Be.find(function(Le){return Le.value==te}).label:pe=pe+","+Be.find(function(Le){return Le.value==te}).label}),j.push({name:y.paramName+":"+pe})}else j.push({name:y.paramName+":"+m[R]+y.paramUnit})})})),(0,e.jsx)(he.Z,{size:"small",direction:"vertical",align:"start",children:j.map(function(y){return(0,e.jsx)(Re.Z,{children:y.name})})})}}},{title:"\u64CD\u4F5C",align:"center",valueType:"option",fixed:"right",key:"option",render:function(o,t,a,l){return[(0,e.jsxs)(he.Z,{size:"middle",children:[(0,e.jsx)(T.ZP,{type:"primary",ghost:!0,onClick:d()(c()().mark(function p(){var u,m;return c()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:Te(!0),me([]),U(!0),u=JSON.parse(JSON.stringify(t)),N.setFieldsValue(u),console.log("recor1d",t.deviceProductFunctionId),m={deviceProductId:_==null?void 0:_.deviceProductId},ht.Z.List(m).then(function(xe){xe.succeeded&&(Wt(xe.data),setTimeout(function(){var R=xe.data.find(function(te){return te.id===t.deviceProductFunctionId});if(R!=null&&R.params){var Ve=JSON.parse(R==null?void 0:R.params);console.log(Ve);var ve=[];Ve.map(function(te){var Le={title:te.paramName,dataIndex:te.paramCode,width:"md",renderFormItem:function(_a,ya,Fa){return te.paramType===1?(0,e.jsx)(q.Z,{mode:"multiple",options:Be}):(0,e.jsx)(X.Z,{addonAfter:te.paramUnit})},colProps:{xs:24,md:12}};ve.push(Le)}),console.log(ve),me(ve)}if(be&&t.params){var pe=JSON.parse(t.params);be.setFieldsValue(pe)}U(!1)},200))});case 8:case"end":return y.stop()}},p)})),children:"\u914D\u7F6E\u8BBE\u5907\u53C2\u6570"}),(0,e.jsx)(Ae.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){var u={id:t.id,step:0,craftId:"",deviceProductId:""};se.Del(u).then(function(m){m.statusCode===200&&(F.ZP.success(m.statusCode===200?"\u5220\u9664\u6210\u529F":m.message),l==null||l.reload())})},onCancel:function(){F.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,e.jsx)(T.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5220\u9664"})},(0,Zn.Z)())]})]}}],rowKey:"step",search:!1,pagination:!1,params:ra,request:d()(c()().mark(function r(){var o,t,a,l=arguments;return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(o=l.length>0&&l[0]!==void 0?l[0]:{},o.deviceId){u.next=3;break}return u.abrupt("return",{data:[],success:!0});case 3:return t={lineId:o.lineId,finalId:o.finalId,deviceId:o.deviceId,productLineStepsId:o.productLineStepsId},u.next=6,se.List(t);case 6:if(a=u.sent,a.statusCode!==200){u.next=11;break}return u.abrupt("return",{data:a.data,success:!0,total:a.data});case 11:return u.abrupt("return",{data:[],success:!1});case 12:case"end":return u.stop()}},r)})),dragSortKey:"step",onDragSortEnd:function(o,t,a){console.log("newDataSource",a),a.map(function(l,p){l.step=p+1}),console.log("\u6392\u5E8F\u540E\u7684\u6570\u636E",a),se.BatchUpdate(a).then(function(l){if(l.data){var p;(p=Ze.current)===null||p===void 0||p.reload(),F.ZP.success("\u4FEE\u6539\u5217\u8868\u6392\u5E8F\u6210\u529F")}})}})}),(0,e.jsx)(ue.Z,{maskClosable:!1,width:800,title:(0,e.jsx)(Re.Z,{color:"#cd201f",children:x}),open:Ee,onCancel:function(){ie(!1)},footer:[(0,e.jsx)(T.ZP,{onClick:function(){ie(!1)},children:"\u8FD4\u56DE"},"back"),(0,e.jsx)(T.ZP,{form:"finalForm",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],children:(0,e.jsxs)(b.Z,{form:ae,name:"basic",id:"finalForm",onFinish:fa,autoComplete:"off",children:[(0,e.jsx)(b.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,e.jsx)(X.Z,{})}),(0,e.jsx)(b.Z.Item,{label:"\u6210\u54C1\u7F16\u7801",name:"code",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,e.jsx)(X.Z,{})}),(0,e.jsx)(b.Z.Item,{name:"name",label:"\u6210\u54C1\u540D\u79F0",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879"}],children:(0,e.jsx)(X.Z,{})})]})},"01"),(0,e.jsx)(ue.Z,{maskClosable:!1,width:1200,title:"\u914D\u7F6E\u7269\u6599",open:V,destroyOnClose:!0,onCancel:function(){z(!1),Pe([])},onOk:function(){var o=JSON.parse(JSON.stringify(Z));o.map(function(t){t.finalId=_.id}),console.log("list",o),Je.BatchAdd(o).then(function(t){t.statusCode===200?(F.ZP.success("\u4FDD\u5B58\u6210\u529F!"),z(!1)):F.ZP.error("\u4FDD\u5B58\u5931\u8D25!")})},children:(0,e.jsx)(mt.Z,{spinning:ge,children:(0,e.jsx)(Ht.Z,{children:(0,e.jsx)("div",{style:{maxWidth:1200,margin:"auto"},children:(0,e.jsx)(gn,{rowKey:"id",controlled:!0,editableFormRef:ce,actionRef:O,columns:[{title:"\u7269\u6599\u540D\u79F0",dataIndex:"materialId",valueType:"select",ellipsis:!0,request:function(){var r=d()(c()().mark(function t(){var a,l;return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,xn.Z.List();case 2:return a=u.sent,l=[],a.statusCode===200&&(ke(a.data),a.data.map(function(m){return l.push({label:"".concat(m.name,"[").concat(m.unit,"]"),value:m.id})})),u.abrupt("return",l);case 6:case"end":return u.stop()}},t)}));function o(){return r.apply(this,arguments)}return o}(),formItemProps:function(){return{rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879"}]}}},{title:"\u914D\u6599\u65B9\u5F0F",dataIndex:"mode",valueType:"select",ellipsis:!0,valueEnum:{0:{text:"\u8BBE\u5907"},1:{text:"\u5176\u4ED6"}}},{title:"\u91CD\u91CF",dataIndex:"weight",valueType:"text",ellipsis:!0,formItemProps:function(){return{rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879"}]}}},{title:"\u91CD\u91CF\u8BEF\u5DEE(\xB1)",dataIndex:"errorWeight",valueType:"text",ellipsis:!0,formItemProps:function(){return{rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879"}]}}},{title:"\u64CD\u4F5C",valueType:"option",render:function(o,t){return[(0,e.jsx)(T.ZP,{type:"primary",ghost:!0,onClick:function(){var l;console.log(t),(l=O.current)===null||l===void 0||l.startEditable(t.id)},children:"\u7F16\u8F91\u539F\u6599"},"edit")]}}],value:Z,recordCreatorProps:{record:function(){return{id:Date.now().toString(),materialId:"",finalId:"",weight:"",mode:""}}},editable:{form:N,type:"single",onValuesChange:function(o,t){console.log(ee),t?Pe(t):(Z.push(o),Pe(Z)),console.log("materiallist",Z)},actionRender:function(o,t,a){return[a.delete,a.save,a.cancel]}}})})})})},"02"),(0,e.jsx)(ue.Z,{maskClosable:!1,width:500,title:"\u7ED1\u5B9A\u4EA7\u7EBF",open:yn,destroyOnClose:!0,onCancel:function(){we(!1)},footer:[(0,e.jsx)(T.ZP,{onClick:function(){we(!1)},children:"\u8FD4\u56DE"},"back"),(0,e.jsx)(T.ZP,{form:"bindlineForm",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],children:(0,e.jsx)(b.Z,{id:"bindlineForm",form:Y,onFinish:function(o){ne.Z.BindLine({finalId:_.id,LineId:o.lineId}).then(function(t){if(t.statusCode===200){var a;F.ZP.info("\u64CD\u4F5C\u6210\u529F!"),we(!1),(a=S.current)===null||a===void 0||a.reload()}else F.ZP.error("\u64CD\u4F5C\u5931\u8D25!")})},children:(0,e.jsx)(b.Z.Item,{label:"\u8BF7\u9009\u62E9\u4EA7\u7EBF",name:"lineId",children:(0,e.jsx)(q.Z,{placeholder:"\u8BF7\u9009\u62E9\u4EA7\u7EBF",mode:"multiple",children:In.map(function(r){return(0,e.jsx)(q.Z.Option,{value:r.key,children:(0,e.jsx)("span",{children:r.value})},r.key)})})})})},"03"),(0,e.jsx)(ue.Z,{maskClosable:!1,destroyOnClose:!0,width:800,title:(0,e.jsx)(Re.Z,{color:"#cd201f",children:" \u5DE5\u827A\u6B65\u9AA4\u8BBE\u5907\u53C2\u6570\u4FE1\u606F"}),open:Hn,onCancel:function(){Te(!1),be.resetFields(),me([])},footer:!1,children:(0,e.jsxs)(mt.Z,{spinning:ge,children:[(0,e.jsxs)(b.Z,{form:N,name:"basic1",id:"myForm1111",labelCol:{span:4},wrapperCol:{span:12},autoComplete:"off",children:[(0,e.jsx)(b.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,e.jsx)(X.Z,{})}),(0,e.jsx)(b.Z.Item,{label:"\u8BBE\u5907\u529F\u80FD\u4FE1\u606F",name:"deviceProductFunctionId",rules:[{required:!0,message:"\u6B64\u9879\u5FC5\u586B\uFF01"}],children:(0,e.jsx)(q.Z,{placeholder:"\u8BF7\u9009\u62E9\u529F\u80FD",onChange:function(o,t){var a=kt.find(function(u){return u.id===o});if(a!=null&&a.params){var l=JSON.parse(a==null?void 0:a.params);console.log(l);var p=[];l.map(function(u){var m={title:u.paramName,dataIndex:u.paramCode,width:"md",renderFormItem:function(y,xe,R){return u.paramType===1?(0,e.jsx)(q.Z,{mode:"multiple",options:Be}):(0,e.jsx)(X.Z,{placeholder:"\u8BF7\u8F93\u5165",addonAfter:u.paramUnit})},colProps:{xs:24,md:12}};p.push(m)}),me(p)}else me([])},children:kt.map(function(r){return(0,e.jsx)(q.Z.Option,{value:r.id,children:(0,e.jsx)("span",{children:r.name})},r.id)})})}),(0,e.jsx)(b.Z.Item,{label:"\u5907\u6CE8",name:"description",children:(0,e.jsx)(X.Z,{})})]}),(0,e.jsx)(_e.Z,{children:(0,e.jsx)(Sn.Z,{trigger:(0,e.jsx)("a",{children:"\u70B9\u51FB\u6211"}),rowProps:{gutter:[16,16]},colProps:{span:12},grid:!0,onFinish:function(){var r=d()(c()().mark(function o(t){var a,l,p;return c()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(a=N.getFieldsValue(),a.deviceProductFunctionId){m.next=4;break}return F.ZP.error("\u8BF7\u9009\u62E9\u8BBE\u5907\u4EA7\u54C1\u529F\u80FD"),m.abrupt("return");case 4:a.id?(l={id:a.id,deviceProductFunctionId:a.deviceProductFunctionId,params:JSON.stringify(t),description:a.description,deviceId:""},se.Update(l).then(function(j){if(j.data){var y;(y=Ze.current)===null||y===void 0||y.reload(),F.ZP.success("\u4FEE\u6539\u6210\u529F\uFF01"),Te(!1)}})):(p={productLineStepsId:G.id,description:a.description,deviceId:Oe,finalId:_.id,deviceProductFunctionId:a.deviceProductFunctionId,params:JSON.stringify(t)},se.Add(p).then(function(j){if(j.statusCode===200){var y;(y=Ze.current)===null||y===void 0||y.reload(),F.ZP.info("\u6DFB\u52A0\u6210\u529F"),Te(!1)}else F.ZP.error(j.errors)}));case 5:case"end":return m.stop()}},o)}));return function(o){return r.apply(this,arguments)}}(),columns:ea,form:be})})]})}),(0,e.jsx)(ue.Z,{maskClosable:!1,destroyOnClose:!0,width:800,open:Xn,onCancel:function(){Nt(!1)},footer:!1,title:(0,e.jsx)(Re.Z,{color:"#cd201f",children:" \u6DFB\u52A0\u6B65\u9AA4 "}),children:(0,e.jsx)(lt.A,{form:ae,onFinish:function(){var r=d()(c()().mark(function o(t){var a;return c()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:a={productLineStepsId:G.id,description:t.description,deviceId:Oe,finalId:_.id,deviceProductFunctionId:"",params:""},console.log("11111111",a),se.Add(a).then(function(u){if(u.statusCode===200){var m;F.ZP.info("\u6DFB\u52A0\u6210\u529F"),Nt(!1),(m=Ze.current)===null||m===void 0||m.reload()}else F.ZP.error(u.errors)});case 3:case"end":return p.stop()}},o)}));return function(o){return r.apply(this,arguments)}}(),children:(0,e.jsx)(b.Z.Item,{label:"\u6B65\u9AA4\u5907\u6CE8",name:"description",children:(0,e.jsx)(X.Z,{})})})}),(0,e.jsx)(ue.Z,{maskClosable:!1,destroyOnClose:!0,width:800,open:Wn,onCancel:function(){Xe(!1)},footer:!1,children:(0,e.jsx)(lt.A,{onFinish:function(o){se.Copyfinalcraftsteps({finalId:_==null?void 0:_.id,lineId:re.key,copyDeviceId:o.deviceId,productLineStepsId:G.id,toDeviceId:Oe}).then(function(t){t.statusCode===200&&(F.ZP.success("\u540C\u6B65\u6210\u529F!"),Xe(!1),setTimeout(function(){var a,l={lineId:re.key,deviceId:Oe,finalId:_==null?void 0:_.id,productLineStepsId:G.id};Jt(l),(a=Ze.current)===null||a===void 0||a.reload()},2e3))})},children:(0,e.jsx)(b.Z.Item,{label:"\u8BBE\u5907",name:"deviceId",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,e.jsx)(q.Z,{onChange:function(o){},placeholder:"\u8BF7\u9009\u62E9\u8BBE\u5907",style:{width:375},children:Ye==null?void 0:Ye.map(function(r){return(0,e.jsx)(q.Z.Option,{value:r.code,children:(0,e.jsx)("span",{children:r.name+"["+r.code+"]"})},r.code)})})})})})]})},_n=Cn}}]); diff --git a/frontend/dist/p__stock__index.3cc68eb4.async.js b/frontend/dist/p__stock__index.3cc68eb4.async.js deleted file mode 100644 index 815243e..0000000 --- a/frontend/dist/p__stock__index.3cc68eb4.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[450],{48223:function(re,z,t){var f=t(97857),v=t.n(f),S=t(56002);z.Z={Add:function(y){return(0,S.request)("/api/materialsinfo/add",{method:"POST",data:v()({},y)})},Del:function(y){return(0,S.request)("/api/materialsinfo/del",{method:"POST",data:v()({},y)})},Update:function(y){return(0,S.request)("/api/materialsinfo/update",{method:"POST",data:v()({},y)})},List:function(){return(0,S.request)("/api/materialsinfo/list",{method:"GET"})},selectlist:function(){return(0,S.request)("/api/materialsinfo/selectlist",{method:"GET"})},PagedList:function(y){return(0,S.request)("/api/materialsinfo/pagedlist",{method:"POST",data:v()({},y)})}}},51349:function(re,z,t){t.r(z),t.d(z,{default:function(){return Y}});var f=t(15009),v=t.n(f),S=t(99289),b=t.n(S),y=t(5574),D=t.n(y),K=t(83145),E=t(8232),F=t(14726),G=t(86738),Z=t(45360),X=t(85576),w=t(66309),B=t(49978),V=t(34041),I=t(67294),U=t(97857),L=t.n(U),x=t(56002),H={Add:function(h){return(0,x.request)("/api/stockinfo/add",{method:"POST",data:L()({},h)})},Del:function(h){return(0,x.request)("/api/stockinfo/del",{method:"POST",data:L()({},h)})},Update:function(h){return(0,x.request)("/api/stockinfo/update",{method:"POST",data:L()({},h)})},Detail:function(h){return(0,x.request)("/api/stockinfo/detail?id=".concat(h),{method:"GET"})},List:function(){return(0,x.request)("/api/stockinfo/list",{method:"POST"})},UnBindList:function(){return(0,x.request)("/api/stockinfo/UnBindList",{method:"GET"})},PagedList:function(h){return(0,x.request)("/api/stockinfo/pagedlist",{method:"POST",data:L()({},h)})},RecipeList:function(h){return(0,x.request)(" api/stockrecipe/list",{method:"POST",data:{StockId:h}})},selectlist:function(){return(0,x.request)("/api/stockinfo/selectlist",{method:"GET"})}},Q=t(48223),s=t(85893),Y=function(){var T=E.Z.useForm(),h=D()(T,1),N=h[0],q=(0,I.useState)(),J=D()(q,2),ne=J[0],k=J[1],_=(0,I.useState)(!1),e=D()(_,2),a=e[0],o=e[1],r=(0,I.useRef)(),n=(0,I.useState)([]),C=D()(n,2),p=C[0],$=C[1],P=[{title:"id",dataIndex:"id",tooltip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u6599\u4ED3\u540D\u79F0",dataIndex:"name",ellipsis:!0},{title:"\u6599\u4ED3\u539F\u6599",dataIndex:"materialName",ellipsis:!0,hideInSearch:!0},{title:"\u6599\u4ED3\u7F16\u53F7",dataIndex:"code",ellipsis:!0},{title:"\u6599\u4ED3\u5BB9\u79EF",dataIndex:"volume",ellipsis:!0,hideInSearch:!0},{title:"\u64CD\u4F5C",valueType:"option",key:"option",fixed:"right",render:function(m,c){return[(0,s.jsx)(F.ZP,{type:"primary",size:"small",onClick:b()(v()().mark(function u(){var g;return v()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:o(!0),k("\u7F16\u8F91\u4FE1\u606F"),g=JSON.parse(JSON.stringify(c)),g.state=g.state==="0",N.setFieldsValue(g);case 5:case"end":return d.stop()}},u)})),children:"\u7F16\u8F91"},"edit"),(0,s.jsx)(G.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){var g={id:c.id,name:"",code:"",lineId:"",materialName:"",materialId:"",volume:void 0};H.Del(g).then(function(l){if(l.statusCode===200){var d;Z.ZP.success(l.statusCode===200?"\u5220\u9664\u6210\u529F":l.message),(d=r.current)===null||d===void 0||d.reload()}})},onCancel:function(){Z.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,s.jsx)(F.ZP,{type:"primary",danger:!0,size:"small",children:"\u5220\u9664"})},"del")]}}];(0,I.useEffect)(function(){var i=function(){var m=b()(v()().mark(function c(){var u;return v()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Q.Z.selectlist();case 2:u=l.sent,$(u.data);case 4:case"end":return l.stop()}},c)}));return function(){return m.apply(this,arguments)}}();i()},[]);var A=function(){var i=b()(v()().mark(function m(c){var u,g,l,d;return v()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(console.log("values",c),!c.id){j.next=8;break}return j.next=4,H.Update(c);case 4:u=j.sent,u.statusCode===200?(Z.ZP.success("\u4FEE\u6539\u6210\u529F"),(g=r.current)===null||g===void 0||g.reload(),o(!1)):Z.ZP.error(JSON.stringify(u.errors)||"\u4FEE\u6539\u5931\u8D25"),j.next=13;break;case 8:return j.next=10,H.Add(c);case 10:l=j.sent,console.log("response",l),l.statusCode===200?(Z.ZP.success("\u6DFB\u52A0\u6210\u529F"),(d=r.current)===null||d===void 0||d.reload(),o(!1)):Z.ZP.error(JSON.stringify(l.errors)||"\u6DFB\u52A0\u5931\u8D25");case 13:case"end":return j.stop()}},m)}));return function(c){return i.apply(this,arguments)}}();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(K.Z,{columns:P,actionRef:r,cardBordered:!0,bordered:!0,scroll:{x:!0},rowClassName:function(m,c,u){return c%2===0?"":"even-row-background"},request:b()(v()().mark(function i(){var m,c,u,g=arguments;return v()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return m=g.length>0&&g[0]!==void 0?g[0]:{},c={pageIndex:m.current||1,pageSize:m.pageSize||10,name:m.name||"",id:"",code:m.code},d.next=4,H.PagedList(c);case 4:if(u=d.sent,console.log(u),u.statusCode!==200){d.next=10;break}return d.abrupt("return",{data:u.data.items,success:!0,total:u.data.total});case 10:return d.abrupt("return",{data:[],success:!1,total:0});case 11:case"end":return d.stop()}},i)})),rowKey:"id",pagination:{pageSize:10,showSizeChanger:!1},dateFormatter:"string",headerTitle:"\u6599\u4ED3\u5217\u8868",toolBarRender:function(){return[(0,s.jsx)(F.ZP,{type:"primary",onClick:function(){N.resetFields(),o(!0),k("\u65B0\u589E\u6599\u4ED3")},children:"\u65B0\u5EFA\u6599\u4ED3"},"button")]}},"myTable"),(0,s.jsx)(X.Z,{maskClosable:!1,width:800,title:(0,s.jsx)(w.Z,{color:"#cd201f",children:ne}),open:a,onCancel:function(){o(!1)},footer:[(0,s.jsx)(F.ZP,{onClick:function(){o(!1)},children:"\u8FD4\u56DE"},"back"),(0,s.jsx)(F.ZP,{form:"stockForm",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],children:(0,s.jsxs)(E.Z,{form:N,name:"basic",id:"stockForm",labelCol:{span:4},wrapperCol:{span:12},onFinish:A,autoComplete:"off",children:[(0,s.jsx)(E.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,s.jsx)(B.Z,{})}),(0,s.jsx)(E.Z.Item,{label:"\u6599\u4ED3\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,s.jsx)(B.Z,{})}),(0,s.jsx)(E.Z.Item,{label:"\u6599\u4ED3\u539F\u6599",name:"materialId",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,s.jsx)(V.Z,{placeholder:"\u8BF7\u9009\u62E9\u539F\u6599",children:p.map(function(i){return console.log(i),(0,s.jsx)(V.Z.Option,{value:i.key,children:(0,s.jsx)("span",{children:i.value})},i.key)})})}),(0,s.jsx)(E.Z.Item,{label:"\u6599\u4ED3\u7F16\u53F7",name:"code",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,s.jsx)(B.Z,{})}),(0,s.jsx)(E.Z.Item,{label:"\u6599\u4ED3\u5BB9\u79EF",name:"volume",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,s.jsx)(B.Z,{})})]})},"01")]})}},66309:function(re,z,t){t.d(z,{Z:function(){return _}});var f=t(67294),v=t(93967),S=t.n(v),b=t(98423),y=t(98787),D=t(69760),K=t(96159),E=t(45353),F=t(53124),G=t(85088),Z=t(10274),X=t(14747),w=t(45503),B=t(27036);const V=e=>{const{paddingXXS:a,lineWidth:o,tagPaddingHorizontal:r,componentCls:n,calc:C}=e,p=C(r).sub(o).equal(),$=C(a).sub(o).equal();return{[n]:Object.assign(Object.assign({},(0,X.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:p,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,G.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${n}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${n}-close-icon`]:{marginInlineStart:$,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${n}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${n}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:p}}),[`${n}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},I=e=>{const{lineWidth:a,fontSizeIcon:o,calc:r}=e,n=e.fontSizeSM;return(0,w.TS)(e,{tagFontSize:n,tagLineHeight:(0,G.bf)(r(e.lineHeightSM).mul(n).equal()),tagIconSize:r(o).sub(r(a).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},U=e=>({defaultBg:new Z.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var L=(0,B.I$)("Tag",e=>{const a=I(e);return V(a)},U),x=function(e,a){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n{const{prefixCls:o,style:r,className:n,checked:C,onChange:p,onClick:$}=e,P=x(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:A,tag:i}=f.useContext(F.E_),m=W=>{p==null||p(!C),$==null||$(W)},c=A("tag",o),[u,g,l]=L(c),d=S()(c,`${c}-checkable`,{[`${c}-checkable-checked`]:C},i==null?void 0:i.className,n,g,l);return u(f.createElement("span",Object.assign({},P,{ref:a,style:Object.assign(Object.assign({},r),i==null?void 0:i.style),className:d,onClick:m})))}),s=t(98719);const Y=e=>(0,s.Z)(e,(a,o)=>{let{textColor:r,lightBorderColor:n,lightColor:C,darkColor:p}=o;return{[`${e.componentCls}${e.componentCls}-${a}`]:{color:r,background:C,borderColor:n,"&-inverse":{color:e.colorTextLightSolid,background:p,borderColor:p},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var T=(0,B.bk)(["Tag","preset"],e=>{const a=I(e);return Y(a)},U);function h(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const N=(e,a,o)=>{const r=h(o);return{[`${e.componentCls}${e.componentCls}-${a}`]:{color:e[`color${o}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var q=(0,B.bk)(["Tag","status"],e=>{const a=I(e);return[N(a,"success","Success"),N(a,"processing","Info"),N(a,"error","Error"),N(a,"warning","Warning")]},U),J=function(e,a){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n{const{prefixCls:o,className:r,rootClassName:n,style:C,children:p,icon:$,color:P,onClose:A,bordered:i=!0,visible:m}=e,c=J(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:u,direction:g,tag:l}=f.useContext(F.E_),[d,W]=f.useState(!0),j=(0,b.Z)(c,["closeIcon","closable"]);f.useEffect(()=>{m!==void 0&&W(m)},[m]);const ae=(0,y.o2)(P),oe=(0,y.yT)(P),ee=ae||oe,de=Object.assign(Object.assign({backgroundColor:P&&!ee?P:void 0},l==null?void 0:l.style),C),O=u("tag",o),[ue,fe,me]=L(O),ge=S()(O,l==null?void 0:l.className,{[`${O}-${P}`]:ee,[`${O}-has-color`]:P&&!ee,[`${O}-hidden`]:!d,[`${O}-rtl`]:g==="rtl",[`${O}-borderless`]:!i},r,n,fe,me),se=M=>{M.stopPropagation(),A==null||A(M),!M.defaultPrevented&&W(!1)},[,pe]=(0,D.Z)((0,D.w)(e),(0,D.w)(l),{closable:!1,closeIconRender:M=>{const Ce=f.createElement("span",{className:`${O}-close-icon`,onClick:se},M);return(0,K.wm)(M,Ce,R=>({onClick:ce=>{var te;(te=R==null?void 0:R.onClick)===null||te===void 0||te.call(R,ce),se(ce)},className:S()(R==null?void 0:R.className,`${O}-close-icon`)}))}}),ve=typeof c.onClick=="function"||p&&p.type==="a",le=$||null,he=le?f.createElement(f.Fragment,null,le,p&&f.createElement("span",null,p)):p,ie=f.createElement("span",Object.assign({},j,{ref:a,className:ge,style:de}),he,pe,ae&&f.createElement(T,{key:"preset",prefixCls:O}),oe&&f.createElement(q,{key:"status",prefixCls:O}));return ue(ve?f.createElement(E.Z,{component:"Tag"},ie):ie)});k.CheckableTag=Q;var _=k}}]); diff --git a/frontend/dist/p__stock__index.64bdcafa.async.js b/frontend/dist/p__stock__index.64bdcafa.async.js new file mode 100644 index 0000000..668b3d0 --- /dev/null +++ b/frontend/dist/p__stock__index.64bdcafa.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[450],{48223:function(re,z,t){var f=t(97857),v=t.n(f),S=t(56002);z.Z={Add:function(y){return(0,S.request)("/api/materialsinfo/add",{method:"POST",data:v()({},y)})},Del:function(y){return(0,S.request)("/api/materialsinfo/del",{method:"POST",data:v()({},y)})},Update:function(y){return(0,S.request)("/api/materialsinfo/update",{method:"POST",data:v()({},y)})},List:function(){return(0,S.request)("/api/materialsinfo/list",{method:"GET"})},selectlist:function(){return(0,S.request)("/api/materialsinfo/selectlist",{method:"GET"})},PagedList:function(y){return(0,S.request)("/api/materialsinfo/pagedlist",{method:"POST",data:v()({},y)})}}},51349:function(re,z,t){t.r(z),t.d(z,{default:function(){return Y}});var f=t(15009),v=t.n(f),S=t(99289),b=t.n(S),y=t(5574),D=t.n(y),K=t(83145),E=t(8232),F=t(14726),G=t(86738),Z=t(45360),X=t(85576),w=t(66309),B=t(49978),V=t(34041),I=t(67294),U=t(97857),N=t.n(U),x=t(56002),H={Add:function(h){return(0,x.request)("/api/stockinfo/add",{method:"POST",data:N()({},h)})},Del:function(h){return(0,x.request)("/api/stockinfo/del",{method:"POST",data:N()({},h)})},Update:function(h){return(0,x.request)("/api/stockinfo/update",{method:"POST",data:N()({},h)})},Detail:function(h){return(0,x.request)("/api/stockinfo/detail?id=".concat(h),{method:"GET"})},List:function(){return(0,x.request)("/api/stockinfo/list",{method:"POST"})},UnBindList:function(){return(0,x.request)("/api/stockinfo/UnBindList",{method:"GET"})},PagedList:function(h){return(0,x.request)("/api/stockinfo/pagedlist",{method:"POST",data:N()({},h)})},RecipeList:function(h){return(0,x.request)(" api/stockrecipe/list",{method:"POST",data:{StockId:h}})},selectlist:function(){return(0,x.request)("/api/stockinfo/selectlist",{method:"GET"})}},Q=t(48223),s=t(85893),Y=function(){var T=E.Z.useForm(),h=D()(T,1),L=h[0],q=(0,I.useState)(),J=D()(q,2),ne=J[0],W=J[1],_=(0,I.useState)(!1),e=D()(_,2),a=e[0],o=e[1],r=(0,I.useRef)(),n=(0,I.useState)([]),C=D()(n,2),p=C[0],$=C[1],P=[{title:"id",dataIndex:"id",tooltip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u6599\u4ED3\u540D\u79F0",dataIndex:"name",ellipsis:!0},{title:"\u6599\u4ED3\u539F\u6599",dataIndex:"materialName",ellipsis:!0,hideInSearch:!0},{title:"\u6599\u4ED3\u7F16\u53F7",dataIndex:"code",ellipsis:!0},{title:"\u6599\u4ED3\u5BB9\u79EF",dataIndex:"volume",ellipsis:!0,hideInSearch:!0},{title:"\u64CD\u4F5C",valueType:"option",key:"option",fixed:"right",render:function(m,c){return[(0,s.jsx)(F.ZP,{type:"primary",size:"small",onClick:b()(v()().mark(function u(){var g;return v()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:o(!0),W("\u7F16\u8F91\u4FE1\u606F"),g=JSON.parse(JSON.stringify(c)),g.state=g.state==="0",L.setFieldsValue(g);case 5:case"end":return d.stop()}},u)})),children:"\u7F16\u8F91"},"edit"),(0,s.jsx)(G.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){var g={id:c.id,name:"",code:"",lineId:"",materialName:"",materialId:"",volume:void 0};H.Del(g).then(function(l){if(l.statusCode===200){var d;Z.ZP.success(l.statusCode===200?"\u5220\u9664\u6210\u529F":l.message),(d=r.current)===null||d===void 0||d.reload()}})},onCancel:function(){Z.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,s.jsx)(F.ZP,{type:"primary",danger:!0,size:"small",children:"\u5220\u9664"})},"del")]}}];(0,I.useEffect)(function(){var i=function(){var m=b()(v()().mark(function c(){var u;return v()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Q.Z.List();case 2:u=l.sent,$(u.data);case 4:case"end":return l.stop()}},c)}));return function(){return m.apply(this,arguments)}}();i()},[]);var A=function(){var i=b()(v()().mark(function m(c){var u,g,l,d;return v()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(console.log("values",c),!c.id){j.next=8;break}return j.next=4,H.Update(c);case 4:u=j.sent,u.statusCode===200?(Z.ZP.success("\u4FEE\u6539\u6210\u529F"),(g=r.current)===null||g===void 0||g.reload(),o(!1)):Z.ZP.error(JSON.stringify(u.errors)||"\u4FEE\u6539\u5931\u8D25"),j.next=13;break;case 8:return j.next=10,H.Add(c);case 10:l=j.sent,console.log("response",l),l.statusCode===200?(Z.ZP.success("\u6DFB\u52A0\u6210\u529F"),(d=r.current)===null||d===void 0||d.reload(),o(!1)):Z.ZP.error(JSON.stringify(l.errors)||"\u6DFB\u52A0\u5931\u8D25");case 13:case"end":return j.stop()}},m)}));return function(c){return i.apply(this,arguments)}}();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(K.Z,{columns:P,actionRef:r,cardBordered:!0,bordered:!0,scroll:{x:!0},rowClassName:function(m,c,u){return c%2===0?"":"even-row-background"},request:b()(v()().mark(function i(){var m,c,u,g=arguments;return v()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return m=g.length>0&&g[0]!==void 0?g[0]:{},c={pageIndex:m.current||1,pageSize:m.pageSize||10,name:m.name||"",id:"",code:m.code},d.next=4,H.PagedList(c);case 4:if(u=d.sent,console.log(u),u.statusCode!==200){d.next=10;break}return d.abrupt("return",{data:u.data.items,success:!0,total:u.data.total});case 10:return d.abrupt("return",{data:[],success:!1,total:0});case 11:case"end":return d.stop()}},i)})),rowKey:"id",pagination:{pageSize:10,showSizeChanger:!1},dateFormatter:"string",headerTitle:"\u6599\u4ED3\u5217\u8868",toolBarRender:function(){return[(0,s.jsx)(F.ZP,{type:"primary",onClick:function(){L.resetFields(),o(!0),W("\u65B0\u589E\u6599\u4ED3")},children:"\u65B0\u5EFA\u6599\u4ED3"},"button")]}},"myTable"),(0,s.jsx)(X.Z,{maskClosable:!1,width:800,title:(0,s.jsx)(w.Z,{color:"#cd201f",children:ne}),open:a,onCancel:function(){o(!1)},footer:[(0,s.jsx)(F.ZP,{onClick:function(){o(!1)},children:"\u8FD4\u56DE"},"back"),(0,s.jsx)(F.ZP,{form:"stockForm",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],children:(0,s.jsxs)(E.Z,{form:L,name:"basic",id:"stockForm",labelCol:{span:4},wrapperCol:{span:12},onFinish:A,autoComplete:"off",children:[(0,s.jsx)(E.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,s.jsx)(B.Z,{})}),(0,s.jsx)(E.Z.Item,{label:"\u6599\u4ED3\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,s.jsx)(B.Z,{})}),(0,s.jsx)(E.Z.Item,{label:"\u6599\u4ED3\u539F\u6599",name:"materialCode",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,s.jsx)(V.Z,{placeholder:"\u8BF7\u9009\u62E9\u539F\u6599",children:p.map(function(i){return console.log(i),(0,s.jsx)(V.Z.Option,{value:i.code,children:(0,s.jsx)("span",{children:i.name})},i.code)})})}),(0,s.jsx)(E.Z.Item,{label:"\u6599\u4ED3\u7F16\u53F7",name:"code",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,s.jsx)(B.Z,{})}),(0,s.jsx)(E.Z.Item,{label:"\u6599\u4ED3\u5BB9\u79EF",name:"volume",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,s.jsx)(B.Z,{})})]})},"01")]})}},66309:function(re,z,t){t.d(z,{Z:function(){return _}});var f=t(67294),v=t(93967),S=t.n(v),b=t(98423),y=t(98787),D=t(69760),K=t(96159),E=t(45353),F=t(53124),G=t(85088),Z=t(10274),X=t(14747),w=t(45503),B=t(27036);const V=e=>{const{paddingXXS:a,lineWidth:o,tagPaddingHorizontal:r,componentCls:n,calc:C}=e,p=C(r).sub(o).equal(),$=C(a).sub(o).equal();return{[n]:Object.assign(Object.assign({},(0,X.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:p,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,G.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${n}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${n}-close-icon`]:{marginInlineStart:$,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${n}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${n}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:p}}),[`${n}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},I=e=>{const{lineWidth:a,fontSizeIcon:o,calc:r}=e,n=e.fontSizeSM;return(0,w.TS)(e,{tagFontSize:n,tagLineHeight:(0,G.bf)(r(e.lineHeightSM).mul(n).equal()),tagIconSize:r(o).sub(r(a).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},U=e=>({defaultBg:new Z.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var N=(0,B.I$)("Tag",e=>{const a=I(e);return V(a)},U),x=function(e,a){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n{const{prefixCls:o,style:r,className:n,checked:C,onChange:p,onClick:$}=e,P=x(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:A,tag:i}=f.useContext(F.E_),m=k=>{p==null||p(!C),$==null||$(k)},c=A("tag",o),[u,g,l]=N(c),d=S()(c,`${c}-checkable`,{[`${c}-checkable-checked`]:C},i==null?void 0:i.className,n,g,l);return u(f.createElement("span",Object.assign({},P,{ref:a,style:Object.assign(Object.assign({},r),i==null?void 0:i.style),className:d,onClick:m})))}),s=t(98719);const Y=e=>(0,s.Z)(e,(a,o)=>{let{textColor:r,lightBorderColor:n,lightColor:C,darkColor:p}=o;return{[`${e.componentCls}${e.componentCls}-${a}`]:{color:r,background:C,borderColor:n,"&-inverse":{color:e.colorTextLightSolid,background:p,borderColor:p},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var T=(0,B.bk)(["Tag","preset"],e=>{const a=I(e);return Y(a)},U);function h(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const L=(e,a,o)=>{const r=h(o);return{[`${e.componentCls}${e.componentCls}-${a}`]:{color:e[`color${o}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var q=(0,B.bk)(["Tag","status"],e=>{const a=I(e);return[L(a,"success","Success"),L(a,"processing","Info"),L(a,"error","Error"),L(a,"warning","Warning")]},U),J=function(e,a){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n{const{prefixCls:o,className:r,rootClassName:n,style:C,children:p,icon:$,color:P,onClose:A,bordered:i=!0,visible:m}=e,c=J(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:u,direction:g,tag:l}=f.useContext(F.E_),[d,k]=f.useState(!0),j=(0,b.Z)(c,["closeIcon","closable"]);f.useEffect(()=>{m!==void 0&&k(m)},[m]);const ae=(0,y.o2)(P),oe=(0,y.yT)(P),ee=ae||oe,de=Object.assign(Object.assign({backgroundColor:P&&!ee?P:void 0},l==null?void 0:l.style),C),O=u("tag",o),[ue,fe,me]=N(O),ge=S()(O,l==null?void 0:l.className,{[`${O}-${P}`]:ee,[`${O}-has-color`]:P&&!ee,[`${O}-hidden`]:!d,[`${O}-rtl`]:g==="rtl",[`${O}-borderless`]:!i},r,n,fe,me),se=M=>{M.stopPropagation(),A==null||A(M),!M.defaultPrevented&&k(!1)},[,pe]=(0,D.Z)((0,D.w)(e),(0,D.w)(l),{closable:!1,closeIconRender:M=>{const Ce=f.createElement("span",{className:`${O}-close-icon`,onClick:se},M);return(0,K.wm)(M,Ce,R=>({onClick:ce=>{var te;(te=R==null?void 0:R.onClick)===null||te===void 0||te.call(R,ce),se(ce)},className:S()(R==null?void 0:R.className,`${O}-close-icon`)}))}}),ve=typeof c.onClick=="function"||p&&p.type==="a",le=$||null,he=le?f.createElement(f.Fragment,null,le,p&&f.createElement("span",null,p)):p,ie=f.createElement("span",Object.assign({},j,{ref:a,className:ge,style:de}),he,pe,ae&&f.createElement(T,{key:"preset",prefixCls:O}),oe&&f.createElement(q,{key:"status",prefixCls:O}));return ue(ve?f.createElement(E.Z,{component:"Tag"},ie):ie)});W.CheckableTag=Q;var _=W}}]); diff --git a/frontend/dist/p__workInfo__index.70520a2f.async.js b/frontend/dist/p__workInfo__index.c04c64de.async.js similarity index 77% rename from frontend/dist/p__workInfo__index.70520a2f.async.js rename to frontend/dist/p__workInfo__index.c04c64de.async.js index 35592cd..135d29b 100644 --- a/frontend/dist/p__workInfo__index.70520a2f.async.js +++ b/frontend/dist/p__workInfo__index.c04c64de.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[420],{55492:function(Ae,le,a){var ce=a(97857),C=a.n(ce),x=a(56002);le.Z={Add:function(m){return(0,x.request)("/api/finalsinfo/add",{method:"POST",data:C()({},m)})},Del:function(m){return(0,x.request)("/api/finalsinfo/del",{method:"POST",data:C()({},m)})},Update:function(m){return(0,x.request)("/api/finalsinfo/update",{method:"POST",data:C()({},m)})},Detail:function(m){return(0,x.request)("/api/finalsinfo/detail/".concat(m),{method:"GET"})},List:function(){return(0,x.request)("/api/finalsinfo/list",{method:"POST"})},SelectList:function(){return(0,x.request)("/api/finalsinfo/selectlist",{method:"GET"})},LineList:function(m){return(0,x.request)("/api/finalsinfo/linelist/".concat(m),{method:"GET"})},FinishLineList:function(m){return(0,x.request)("/api/finalsinfo/finishlinelist/".concat(m),{method:"GET"})},UnBindList:function(){return(0,x.request)("/api/finalsinfo/UnBindList",{method:"GET"})},PagedList:function(m){return(0,x.request)("/api/finalsinfo/pagedlist",{method:"POST",data:C()({},m)})},BatchUpdate:function(m){return(0,x.request)("/api/finalsinfo/batchupdate",{method:"POST",data:m})},BindLine:function(v){function m(b){return v.apply(this,arguments)}return m.toString=function(){return v.toString()},m}(function(v){return(0,x.request)("/api/finalsinfo/bindline",{method:"POST",data:v})}),RecipeList:function(m){return(0,x.request)(" api/finalsinfo/list",{method:"POST",data:{deviceId:m}})},Saveconfigstatus:function(v){function m(b){return v.apply(this,arguments)}return m.toString=function(){return v.toString()},m}(function(v){return(0,x.request)(" /api/finalsinfo/saveconfigstatus",{method:"POST",data:v})})}},93561:function(Ae,le,a){var ce=a(97857),C=a.n(ce),x=a(56002);le.Z={Add:function(m){return(0,x.request)("/api/productlinesteps/add",{method:"POST",data:C()({},m)})},Del:function(m){return(0,x.request)("/api/productlinesteps/del",{method:"POST",data:C()({},m)})},Update:function(m){return(0,x.request)("/api/productlinesteps/update",{method:"POST",data:C()({},m)})},Detail:function(m){return(0,x.request)("/api/productlinesteps/detail?id=".concat(m),{method:"GET"})},List:function(m){return(0,x.request)("/api/productlinesteps/list",{method:"POST",data:C()({},m)})},PagedList:function(m){return(0,x.request)("/api/productlinesteps/pagedlist",{method:"POST",data:C()({},m)})},BatchUpdateStep:function(m){return(0,x.request)("/api/productlinesteps/batchupdate",{method:"POST",data:m})},Devicelist:function(m){return(0,x.request)("/api/productline/devicelist",{method:"POST",data:C()({},m)})}}},47703:function(Ae,le,a){var ce=a(97857),C=a.n(ce),x=a(56002);le.Z={Add:function(m){return(0,x.request)("/api/workplan/add",{method:"POST",data:C()({},m)})},Del:function(m){return(0,x.request)("/api/workplan/del",{method:"POST",data:C()({},m)})},Update:function(m){return(0,x.request)("/api/workplan/update",{method:"POST",data:C()({},m)})},Detail:function(m){return(0,x.request)("/api/workplan/detail/".concat(m),{method:"GET"})},List:function(m){return(0,x.request)("/api/workplan/list",{method:"POST",data:C()({},m)})},PagedList:function(m){return(0,x.request)("/api/workplan/pagedlist",{method:"POST",data:C()({},m)})}}},99335:function(Ae,le,a){a.r(le),a.d(le,{default:function(){return Dn}});var ce=a(15009),C=a.n(ce),x=a(99289),v=a.n(x),m=a(5574),b=a.n(m),at=a(83145),Tt=a(34994),F=a(1413),Ne=a(4942),it=a(71002),Se=a(91),Bt=a(12044),rt=a(28459),Dt=a(93967),de=a.n(Dt),ot=a(97435),o=a(67294),bt=a(73935),It=a(76509),ze=a(98082),$t=function(e){return(0,Ne.Z)({},e.componentCls,{position:"fixed",insetInlineEnd:0,bottom:0,zIndex:99,display:"flex",alignItems:"center",width:"100%",paddingInline:24,paddingBlock:0,boxSizing:"border-box",lineHeight:"64px",backgroundColor:(0,ze.uK)(e.colorBgElevated,.6),borderBlockStart:"1px solid ".concat(e.colorSplit),"-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)",color:e.colorText,transition:"all 0.2s ease 0s","&-left":{flex:1,color:e.colorText},"&-right":{color:e.colorText,"> *":{marginInlineEnd:8,"&:last-child":{marginBlock:0,marginInline:0}}}})};function Ot(t){return(0,ze.Xj)("ProLayoutFooterToolbar",function(e){var i=(0,F.Z)((0,F.Z)({},e),{},{componentCls:".".concat(t)});return[$t(i)]})}function Lt(t,e){var i=e.stylish;return(0,ze.Xj)("ProLayoutFooterToolbarStylish",function(u){var f=(0,F.Z)((0,F.Z)({},u),{},{componentCls:".".concat(t)});return i?[(0,Ne.Z)({},"".concat(f.componentCls),i==null?void 0:i(f))]:[]})}var n=a(85893),Mt=["children","className","extra","portalDom","style","renderContent"],wt=function(e){var i=e.children,u=e.className,f=e.extra,P=e.portalDom,Z=P===void 0?!0:P,T=e.style,S=e.renderContent,B=(0,Se.Z)(e,Mt),D=(0,o.useContext)(rt.ZP.ConfigContext),g=D.getPrefixCls,N=D.getTargetContainer,_=e.prefixCls||g("pro"),j="".concat(_,"-footer-bar"),G=Ot(j),re=G.wrapSSR,V=G.hashId,E=(0,o.useContext)(It.X),z=(0,o.useMemo)(function(){var k=E.hasSiderMenu,Ce=E.isMobile,oe=E.siderWidth;if(k)return oe?Ce?"100%":"calc(100% - ".concat(oe,"px)"):"100%"},[E.collapsed,E.hasSiderMenu,E.isMobile,E.siderWidth]),ee=(0,o.useMemo)(function(){return(typeof window=="undefined"?"undefined":(0,it.Z)(window))===void 0||(typeof document=="undefined"?"undefined":(0,it.Z)(document))===void 0?null:(N==null?void 0:N())||document.body},[]),te=Lt("".concat(j,".").concat(j,"-stylish"),{stylish:e.stylish}),ne=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"".concat(j,"-left ").concat(V).trim(),children:f}),(0,n.jsx)("div",{className:"".concat(j,"-right ").concat(V).trim(),children:i})]});(0,o.useEffect)(function(){return!E||!(E!=null&&E.setHasFooterToolbar)?function(){}:(E==null||E.setHasFooterToolbar(!0),function(){var k;E==null||(k=E.setHasFooterToolbar)===null||k===void 0||k.call(E,!1)})},[]);var M=(0,n.jsx)("div",(0,F.Z)((0,F.Z)({className:de()(u,V,j,(0,Ne.Z)({},"".concat(j,"-stylish"),!!e.stylish)),style:(0,F.Z)({width:z},T)},(0,ot.Z)(B,["prefixCls"])),{},{children:S?S((0,F.Z)((0,F.Z)((0,F.Z)({},e),E),{},{leftWidth:z}),ne):ne})),w=!(0,Bt.j)()||!Z||!ee?M:(0,bt.createPortal)(M,ee,j);return te.wrapSSR(re((0,n.jsx)(o.Fragment,{children:w},j)))},st=a(97685),At=a(21770),K=a(8232),Nt=a(55241),xe=a(80072),zt=["fieldProps","proFieldProps"],Wt=["fieldProps","proFieldProps"],Fe="text",Rt=function(e){var i=e.fieldProps,u=e.proFieldProps,f=(0,Se.Z)(e,zt);return(0,n.jsx)(xe.Z,(0,F.Z)({valueType:Fe,fieldProps:i,filedConfig:{valueType:Fe},proFieldProps:u},f))},Ut=function(e){var i=(0,At.Z)(e.open||!1,{value:e.open,onChange:e.onOpenChange}),u=(0,st.Z)(i,2),f=u[0],P=u[1];return(0,n.jsx)(K.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(T){var S,B=T.getFieldValue(e.name||[]);return(0,n.jsx)(Nt.Z,(0,F.Z)((0,F.Z)({getPopupContainer:function(g){return g&&g.parentNode?g.parentNode:g},onOpenChange:function(g){return P(g)},content:(0,n.jsxs)("div",{style:{padding:"4px 0"},children:[(S=e.statusRender)===null||S===void 0?void 0:S.call(e,B),e.strengthText?(0,n.jsx)("div",{style:{marginTop:10},children:(0,n.jsx)("span",{children:e.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},e.popoverProps),{},{open:f,children:e.children}))}})},kt=function(e){var i=e.fieldProps,u=e.proFieldProps,f=(0,Se.Z)(e,Wt),P=(0,o.useState)(!1),Z=(0,st.Z)(P,2),T=Z[0],S=Z[1];return i!=null&&i.statusRender&&f.name?(0,n.jsx)(Ut,{name:f.name,statusRender:i==null?void 0:i.statusRender,popoverProps:i==null?void 0:i.popoverProps,strengthText:i==null?void 0:i.strengthText,open:T,onOpenChange:S,children:(0,n.jsx)("div",{children:(0,n.jsx)(xe.Z,(0,F.Z)({valueType:"password",fieldProps:(0,F.Z)((0,F.Z)({},(0,ot.Z)(i,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(D){var g;i==null||(g=i.onBlur)===null||g===void 0||g.call(i,D),S(!1)},onClick:function(D){var g;i==null||(g=i.onClick)===null||g===void 0||g.call(i,D),S(!0)}}),proFieldProps:u,filedConfig:{valueType:Fe}},f))})}):(0,n.jsx)(xe.Z,(0,F.Z)({valueType:"password",fieldProps:i,proFieldProps:u,filedConfig:{valueType:Fe}},f))},We=Rt;We.Password=kt,We.displayName="ProFormComponent";var Ht=We,lt=a(22270),dt=a(66758),Gt=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],Kt=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],Yt=function(e,i){var u=e.fieldProps,f=e.children,P=e.params,Z=e.proFieldProps,T=e.mode,S=e.valueEnum,B=e.request,D=e.showSearch,g=e.options,N=(0,Se.Z)(e,Gt),_=(0,o.useContext)(dt.Z);return(0,n.jsx)(xe.Z,(0,F.Z)((0,F.Z)({valueEnum:(0,lt.h)(S),request:B,params:P,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,F.Z)({options:g,mode:T,showSearch:D,getPopupContainer:_.getPopupContainer},u),ref:i,proFieldProps:Z},N),{},{children:f}))},Vt=o.forwardRef(function(t,e){var i=t.fieldProps,u=t.children,f=t.params,P=t.proFieldProps,Z=t.mode,T=t.valueEnum,S=t.request,B=t.options,D=(0,Se.Z)(t,Kt),g=(0,F.Z)({options:B,mode:Z||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},i),N=(0,o.useContext)(dt.Z);return(0,n.jsx)(xe.Z,(0,F.Z)((0,F.Z)({valueEnum:(0,lt.h)(T),request:S,params:f,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,F.Z)({getPopupContainer:N.getPopupContainer},g),ref:e,proFieldProps:P},D),{},{children:u}))}),Xt=o.forwardRef(Yt),Jt=Vt,Re=Xt;Re.SearchSelect=Jt,Re.displayName="ProFormComponent";var Qt=Re,ut=a(97321),qt=a(42119),$=a(14726),ie=a(86738),y=a(45360),Te=a(85576),Ue=a(66309),_t=a(71230),ct=a(15746),pe=a(49978),mt=a(34041),ke=a(4393),en=a(86250),Be=a(42075),tn=a(32983),nn=a(96074),ft=a(74902),an=a(38780),pt=a(74443),He=a(53124),rn=a(88258),on=a(98675),sn=a(92820),ln=a(25378),dn=a(22564),un=a(74330);const Ge=o.createContext({}),Gn=Ge.Consumer;var cn=a(96159),mn=a(21584),ht=function(t,e){var i={};for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&e.indexOf(u)<0&&(i[u]=t[u]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,u=Object.getOwnPropertySymbols(t);f{var{prefixCls:e,className:i,avatar:u,title:f,description:P}=t,Z=ht(t,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:T}=(0,o.useContext)(He.E_),S=T("list",e),B=de()(`${S}-item-meta`,i),D=o.createElement("div",{className:`${S}-item-meta-content`},f&&o.createElement("h4",{className:`${S}-item-meta-title`},f),P&&o.createElement("div",{className:`${S}-item-meta-description`},P));return o.createElement("div",Object.assign({},Z,{className:B}),u&&o.createElement("div",{className:`${S}-item-meta-avatar`},u),(f||P)&&D)},vt=o.forwardRef((t,e)=>{const{prefixCls:i,children:u,actions:f,extra:P,styles:Z,className:T,classNames:S,colStyle:B}=t,D=ht(t,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:g,itemLayout:N}=(0,o.useContext)(Ge),{getPrefixCls:_,list:j}=(0,o.useContext)(He.E_),G=M=>{var w,k;return de()((k=(w=j==null?void 0:j.item)===null||w===void 0?void 0:w.classNames)===null||k===void 0?void 0:k[M],S==null?void 0:S[M])},re=M=>{var w,k;return Object.assign(Object.assign({},(k=(w=j==null?void 0:j.item)===null||w===void 0?void 0:w.styles)===null||k===void 0?void 0:k[M]),Z==null?void 0:Z[M])},V=()=>{let M=!1;return o.Children.forEach(u,w=>{typeof w=="string"&&(M=!0)}),M&&o.Children.count(u)>1},E=()=>N==="vertical"?!!P:!V(),z=_("list",i),ee=f&&f.length>0&&o.createElement("ul",{className:de()(`${z}-item-action`,G("actions")),key:"actions",style:re("actions")},f.map((M,w)=>o.createElement("li",{key:`${z}-item-action-${w}`},M,w!==f.length-1&&o.createElement("em",{className:`${z}-item-action-split`})))),te=g?"div":"li",ne=o.createElement(te,Object.assign({},D,g?{}:{ref:e},{className:de()(`${z}-item`,{[`${z}-item-no-flex`]:!E()},T)}),N==="vertical"&&P?[o.createElement("div",{className:`${z}-item-main`,key:"content"},u,ee),o.createElement("div",{className:de()(`${z}-item-extra`,G("extra")),key:"extra",style:re("extra")},P)]:[u,ee,(0,cn.Tm)(P,{key:"extra"})]);return g?o.createElement(mn.Z,{ref:e,flex:1,style:B},ne):ne});vt.Meta=fn;var pn=vt,R=a(85088),hn=a(14747),vn=a(27036),gn=a(45503);const Sn=t=>{const{listBorderedCls:e,componentCls:i,paddingLG:u,margin:f,itemPaddingSM:P,itemPaddingLG:Z,marginLG:T,borderRadiusLG:S}=t;return{[`${e}`]:{border:`${(0,R.bf)(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderRadius:S,[`${i}-header,${i}-footer,${i}-item`]:{paddingInline:u},[`${i}-pagination`]:{margin:`${(0,R.bf)(f)} ${(0,R.bf)(T)}`}},[`${e}${i}-sm`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:P}},[`${e}${i}-lg`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:Z}}}},xn=t=>{const{componentCls:e,screenSM:i,screenMD:u,marginLG:f,marginSM:P,margin:Z}=t;return{[`@media screen and (max-width:${u}px)`]:{[`${e}`]:{[`${e}-item`]:{[`${e}-item-action`]:{marginInlineStart:f}}},[`${e}-vertical`]:{[`${e}-item`]:{[`${e}-item-extra`]:{marginInlineStart:f}}}},[`@media screen and (max-width: ${i}px)`]:{[`${e}`]:{[`${e}-item`]:{flexWrap:"wrap",[`${e}-action`]:{marginInlineStart:P}}},[`${e}-vertical`]:{[`${e}-item`]:{flexWrap:"wrap-reverse",[`${e}-item-main`]:{minWidth:t.contentWidth},[`${e}-item-extra`]:{margin:`auto auto ${(0,R.bf)(Z)}`}}}}}},Pn=t=>{const{componentCls:e,antCls:i,controlHeight:u,minHeight:f,paddingSM:P,marginLG:Z,padding:T,itemPadding:S,colorPrimary:B,itemPaddingSM:D,itemPaddingLG:g,paddingXS:N,margin:_,colorText:j,colorTextDescription:G,motionDurationSlow:re,lineWidth:V,headerBg:E,footerBg:z,emptyTextPadding:ee,metaMarginBottom:te,avatarMarginRight:ne,titleMarginBottom:M,descriptionFontSize:w}=t;return{[`${e}`]:Object.assign(Object.assign({},(0,hn.Wf)(t)),{position:"relative","*":{outline:"none"},[`${e}-header`]:{background:E},[`${e}-footer`]:{background:z},[`${e}-header, ${e}-footer`]:{paddingBlock:P},[`${e}-pagination`]:{marginBlockStart:Z,[`${i}-pagination-options`]:{textAlign:"start"}},[`${e}-spin`]:{minHeight:f,textAlign:"center"},[`${e}-items`]:{margin:0,padding:0,listStyle:"none"},[`${e}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:S,color:j,[`${e}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${e}-item-meta-avatar`]:{marginInlineEnd:ne},[`${e}-item-meta-content`]:{flex:"1 0",width:0,color:j},[`${e}-item-meta-title`]:{margin:`0 0 ${(0,R.bf)(t.marginXXS)} 0`,color:j,fontSize:t.fontSize,lineHeight:t.lineHeight,"> a":{color:j,transition:`all ${re}`,"&:hover":{color:B}}},[`${e}-item-meta-description`]:{color:G,fontSize:w,lineHeight:t.lineHeight}},[`${e}-item-action`]:{flex:"0 0 auto",marginInlineStart:t.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${(0,R.bf)(N)}`,color:G,fontSize:t.fontSize,lineHeight:t.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${e}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:V,height:t.calc(t.fontHeight).sub(t.calc(t.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:t.colorSplit}}},[`${e}-empty`]:{padding:`${(0,R.bf)(T)} 0`,color:G,fontSize:t.fontSizeSM,textAlign:"center"},[`${e}-empty-text`]:{padding:ee,color:t.colorTextDisabled,fontSize:t.fontSize,textAlign:"center"},[`${e}-item-no-flex`]:{display:"block"}}),[`${e}-grid ${i}-col > ${e}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:_,paddingBlock:0,borderBlockEnd:"none"},[`${e}-vertical ${e}-item`]:{alignItems:"initial",[`${e}-item-main`]:{display:"block",flex:1},[`${e}-item-extra`]:{marginInlineStart:Z},[`${e}-item-meta`]:{marginBlockEnd:te,[`${e}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:M,color:j,fontSize:t.fontSizeLG,lineHeight:t.lineHeightLG}},[`${e}-item-action`]:{marginBlockStart:T,marginInlineStart:"auto","> li":{padding:`0 ${(0,R.bf)(T)}`,"&:first-child":{paddingInlineStart:0}}}},[`${e}-split ${e}-item`]:{borderBlockEnd:`${(0,R.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${e}-split ${e}-header`]:{borderBlockEnd:`${(0,R.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`},[`${e}-split${e}-empty ${e}-footer`]:{borderTop:`${(0,R.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`},[`${e}-loading ${e}-spin-nested-loading`]:{minHeight:u},[`${e}-split${e}-something-after-last-item ${i}-spin-container > ${e}-items > ${e}-item:last-child`]:{borderBlockEnd:`${(0,R.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`},[`${e}-lg ${e}-item`]:{padding:g},[`${e}-sm ${e}-item`]:{padding:D},[`${e}:not(${e}-vertical)`]:{[`${e}-item-no-flex`]:{[`${e}-item-action`]:{float:"right"}}}}},Cn=t=>({contentWidth:220,itemPadding:`${(0,R.bf)(t.paddingContentVertical)} 0`,itemPaddingSM:`${(0,R.bf)(t.paddingContentVerticalSM)} ${(0,R.bf)(t.paddingContentHorizontal)}`,itemPaddingLG:`${(0,R.bf)(t.paddingContentVerticalLG)} ${(0,R.bf)(t.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:t.padding,metaMarginBottom:t.padding,avatarMarginRight:t.padding,titleMarginBottom:t.paddingSM,descriptionFontSize:t.fontSize});var yn=(0,vn.I$)("List",t=>{const e=(0,gn.TS)(t,{listBorderedCls:`${t.componentCls}-bordered`,minHeight:t.controlHeightLG});return[Pn(e),Sn(e),xn(e)]},Cn),En=function(t,e){var i={};for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&e.indexOf(u)<0&&(i[u]=t[u]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,u=Object.getOwnPropertySymbols(t);f(L,q)=>{var ge;M(L),k(q),e&&((ge=e==null?void 0:e[O])===null||ge===void 0||ge.call(e,L,q))},Y=ye("onChange"),Je=ye("onShowSizeChange"),Qe=(O,L)=>{if(!E)return null;let q;return typeof V=="function"?q=V(O):V?q=O[V]:q=O.key,q||(q=`list-item-${L}`),o.createElement(o.Fragment,{key:q},E(O,L))},De=()=>!!(D||e||G),H=Ce("list",i),[qe,_e,be]=yn(H);let X=re;typeof X=="boolean"&&(X={spinning:X});const ue=!!(X!=null&&X.spinning),et=(0,on.Z)(_);let me="";switch(et){case"large":me="lg";break;case"small":me="sm";break;default:break}const Ee=de()(H,{[`${H}-vertical`]:B==="vertical",[`${H}-${me}`]:me,[`${H}-split`]:f,[`${H}-bordered`]:u,[`${H}-loading`]:ue,[`${H}-grid`]:!!g,[`${H}-something-after-last-item`]:De(),[`${H}-rtl`]:Ve==="rtl"},se==null?void 0:se.className,P,Z,_e,be),J=(0,an.Z)(Xe,{total:N.length,current:ne,pageSize:w},e||{}),Ie=Math.ceil(J.total/J.pageSize);J.current>Ie&&(J.current=Ie);const je=e&&o.createElement("div",{className:de()(`${H}-pagination`)},o.createElement(dn.Z,Object.assign({align:"end"},J,{onChange:Y,onShowSizeChange:Je})));let Ze=(0,ft.Z)(N);e&&N.length>(J.current-1)*J.pageSize&&(Ze=(0,ft.Z)(N).splice((J.current-1)*J.pageSize,J.pageSize));const tt=Object.keys(g||{}).some(O=>["xs","sm","md","lg","xl","xxl"].includes(O)),$e=(0,ln.Z)(tt),fe=o.useMemo(()=>{for(let O=0;O{if(!g)return;const O=fe&&g[fe]?g[fe]:g.column;if(O)return{width:`${100/O}%`,maxWidth:`${100/O}%`}},[JSON.stringify(g),fe]);let ae=ue&&o.createElement("div",{style:{minHeight:53}});if(Ze.length>0){const O=Ze.map((L,q)=>Qe(L,q));ae=g?o.createElement(sn.Z,{gutter:g.gutter},o.Children.map(O,L=>o.createElement("div",{key:L==null?void 0:L.key,style:nt},L))):o.createElement("ul",{className:`${H}-items`},O)}else!S&&!ue&&(ae=o.createElement("div",{className:`${H}-empty-text`},(z==null?void 0:z.emptyText)||(oe==null?void 0:oe("List"))||o.createElement(rn.Z,{componentName:"List"})));const ve=J.position||"bottom",Oe=o.useMemo(()=>({grid:g,itemLayout:B}),[JSON.stringify(g),B]);return qe(o.createElement(Ge.Provider,{value:Oe},o.createElement("div",Object.assign({style:Object.assign(Object.assign({},se==null?void 0:se.style),T),className:Ee},ee),(ve==="top"||ve==="both")&&je,j&&o.createElement("div",{className:`${H}-header`},j),o.createElement(un.Z,Object.assign({},X),ae,S),G&&o.createElement("div",{className:`${H}-footer`},G),D||(ve==="bottom"||ve==="both")&&je)))}gt.Item=pn;var St=gt,Ke=a(78045),jn=a(97857),U=a.n(jn),I=a(56002),A={Add:function(e){return(0,I.request)("/api/workinfo/add",{method:"POST",data:U()({},e)})},AddBatch:function(e){return(0,I.request)("/api/workbatch/add",{method:"POST",data:U()({},e)})},UpdateBatch:function(e){return(0,I.request)("/api/workbatch/update",{method:"POST",data:U()({},e)})},DelBatch:function(e){return(0,I.request)("/api/workbatch/del",{method:"POST",data:U()({},e)})},Del:function(e){return(0,I.request)("/api/workinfo/del",{method:"POST",data:U()({},e)})},Update:function(e){return(0,I.request)("/api/workinfo/update",{method:"POST",data:U()({},e)})},List:function(e){return(0,I.request)("/api/workinfo/list",{method:"POST",data:U()({},e)})},PagedList:function(e){return(0,I.request)("/api/workinfo/pagedlist",{method:"POST",data:U()({},e)})},WorkBatchPagedList:function(e){return(0,I.request)("/api/workbatch/pagedlist",{method:"POST",data:U()({},e)})},Publish:function(e){return(0,I.request)("/api/workinfo/publish",{method:"POST",data:U()({},e)})},publishs:function(e){return(0,I.request)("/api/workinfo/publishs",{method:"POST",data:U()({},e)})},UpdateStatus:function(e){return(0,I.request)("/api/workinfo/ForcedEnd",{method:"POST",data:U()({},e)})},ForcedEnd:function(e){return(0,I.request)("/api/workinfo/forcedend/".concat(e),{method:"POST"})},UpdateStatusList:function(e){return(0,I.request)("/api/workinfo/statuslist/".concat(e),{method:"GET"})},EditDetail:function(e){return(0,I.request)("/api/workinfo/editdetail/".concat(e),{method:"GET"})}},Ye=a(55492),Zn={Add:function(e){return(0,I.request)("/api/productline/add",{method:"POST",data:U()({},e)})},Del:function(e){return(0,I.request)("/api/productline/del",{method:"POST",data:U()({},e)})},Update:function(e){return(0,I.request)("/api/productline/update",{method:"POST",data:U()({},e)})},List:function(){return(0,I.request)("/api/productline/list",{method:"GET"})},PagedList:function(e){return(0,I.request)("/api/productline/pagedlist",{method:"POST",data:U()({},e)})},selectlist:function(){return(0,I.request)("/api/productline/selectlist",{method:"GET"})},devicelist:function(e){return(0,I.request)("/api/productline/devicelist",{method:"POST",data:U()({},e)})}},Fn=a(93561),Pe={xxx:"xxx___NntgG",rowHeight:"rowHeight___OK5xp"},Tn=a(27484),he=a.n(Tn),xt=a(47703),Yn=null,Bn=[{title:"\u8349\u7A3F",description:""},{title:"\u5DF2\u4E0B\u53D1",description:""},{title:"\u5DF2\u63A5\u53D7",description:""},{title:"\u5DF2\u542F\u52A8",description:""},{title:"\u5DF2\u5B8C\u6210",description:""}],Vn=[{title:"\u8349\u7A3F",description:""},{title:"\u5DF2\u4E0B\u53D1",description:""},{title:"\u5DF2\u63A5\u53D7",description:""},{title:"\u5DF2\u542F\u52A8",description:""},{title:"\u5DF2\u5B8C\u6210",description:""}],Dn=function(){var t=K.Z.useForm(),e=b()(t,1),i=e[0],u=K.Z.useForm(),f=b()(u,1),P=f[0],Z=(0,o.useState)(),T=b()(Z,2),S=T[0],B=T[1],D=(0,o.useState)([]),g=b()(D,2),N=g[0],_=g[1],j=(0,o.useState)([]),G=b()(j,2),re=G[0],V=G[1],E=(0,o.useState)([]),z=b()(E,2),ee=z[0],te=z[1],ne=(0,o.useState)([]),M=b()(ne,2),w=M[0],k=M[1],Ce=(0,o.useState)([]),oe=b()(Ce,2),Ve=oe[0],se=oe[1],Xe=(0,o.useState)(),ye=b()(Xe,2),Y=ye[0],Je=ye[1],Qe=(0,o.useState)([]),De=b()(Qe,2),H=De[0],qe=De[1],_e=(0,o.useState)(),be=b()(_e,2),X=be[0],ue=be[1],et=(0,o.useState)(),me=b()(et,2),Ee=me[0],J=me[1],Ie=(0,o.useState)(),je=b()(Ie,2),Ze=je[0],tt=je[1],$e=(0,o.useState)(!1),fe=b()($e,2),nt=fe[0],ae=fe[1],ve=(0,o.useState)(!1),Oe=b()(ve,2),O=Oe[0],L=Oe[1],q=(0,o.useState)(!1),ge=b()(q,2),bn=ge[0],Le=ge[1],In=(0,o.useState)(!1),Pt=b()(In,2),$n=Pt[0],Ct=Pt[1],On=(0,o.useRef)(),Q=(0,o.useRef)(),Ln=(0,o.useState)([]),yt=b()(Ln,2),Xn=yt[0],Jn=yt[1],Mn=(0,o.useState)(!1),Et=b()(Mn,2),wn=Et[0],Qn=Et[1],qn=K.Z.useWatch("finalId",i),An=[{title:"\u5DE5\u5355\u7F16\u7801",dataIndex:"id",hideInSearch:!0,align:"center"},{title:"\u7EBF\u8DEF\u540D\u79F0",dataIndex:"lineName",ellipsis:!0,hideInSearch:!0,align:"center"},{title:"\u6210\u54C1\u540D\u79F0",dataIndex:"finalName",align:"center",hideInSearch:!0,ellipsis:!0},{title:"\u4E0B\u6599(\u9505)",dataIndex:"number",ellipsis:!0,hideInSearch:!0,align:"center",width:80},{dataIndex:"batchId",align:"center",hideInSearch:!0,ellipsis:!0,hideInTable:!0},{title:"\u8FDB\u5EA6",dataIndex:"status",width:300,hideInSearch:!0,align:"center",fixed:"right",render:function(p,r){return(0,n.jsx)(rt.ZP,{theme:{components:{Steps:{navArrowColor:"red",descriptionMaxWidth:50}}},children:(0,n.jsx)(qt.Z,{progressDot:!0,direction:"horizontal",style:{padding:"18px"},type:"default",current:r.status,size:"small",items:Bn})})}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",fixed:"right",render:function(p,r){switch(r.status){case 0:return[(0,n.jsx)($.ZP,{type:"primary",size:"small",onClick:v()(C()().mark(function d(){return C()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:console.log(r),i.resetFields(),B("\u7F16\u8F91\u4FE1\u606F"),Ye.Z.FinishLineList(r.finalId).then(function(l){l.statusCode===200&&te(l.data)}),A.EditDetail(r.id).then(function(l){l.statusCode===200&&(ae(!0),jt(l.data.lineId,r.finalId),setTimeout(function(){l.data.number=r.number,l.data.finaId=r.finalId,l.data.id=r.id,l.data.workDevices.map(function(Me){l.data["pro:"+Me.processId]=Me.deviceId}),console.log(l.data),i.setFieldsValue(l.data)},500))});case 5:case"end":return s.stop()}},d)})),children:"\u7F16\u8F91\u5DE5\u5355"},"edit"),(0,n.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){var c={id:r.id};A.Del(c).then(function(s){if(s.statusCode===200){var l;y.ZP.success(s.statusCode===200?"\u5220\u9664\u6210\u529F":s.message),(l=Q.current)===null||l===void 0||l.reload()}})},onCancel:function(){y.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)($.ZP,{type:"primary",danger:!0,size:"small",children:"\u5220\u9664"})},"workdel"),(0,n.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u4E0B\u53D1\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){ue(r);var c={workId:r.id};A.Publish(c).then(function(s){if(s.statusCode===200){var l;y.ZP.success(s.statusCode===200?"\u4E0B\u53D1\u6210\u529F":s.message),(l=Q.current)===null||l===void 0||l.reload()}})},onCancel:function(){y.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)($.ZP,{type:"primary",size:"small",children:"\u4E0B\u53D1"})},"workedit")];case 1:return[(0,n.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u4E0B\u53D1\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){console.log("ssssssssddd",r),ue(r);var c={workId:r.id};A.Publish(c).then(function(s){if(s.statusCode===200){var l;y.ZP.success(s.statusCode===200?"\u4E0B\u53D1\u6210\u529F":s.message),(l=Q.current)===null||l===void 0||l.reload()}})},onCancel:function(){y.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)($.ZP,{type:"primary",size:"small",children:"\u7EE7\u7EED\u4E0B\u53D1"})},"workedit"),(0,n.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u5F3A\u5236\u7ED3\u675F\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){A.ForcedEnd(r.id).then(function(c){if(c.statusCode===200){var s;y.ZP.success(c.statusCode===200?"\u5F3A\u5236\u7ED3\u675F\u6210\u529F":c.message),(s=Q.current)===null||s===void 0||s.reload()}})},onCancel:function(){y.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)($.ZP,{type:"primary",danger:!0,size:"small",children:"\u5F3A\u5236\u7ED3\u675F"})},"forcedend")];case 2:return[(0,n.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u5F3A\u5236\u7ED3\u675F\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){A.ForcedEnd(r.id).then(function(c){c.statusCode===200&&y.ZP.success(c.statusCode===200?"\u5F3A\u5236\u7ED3\u675F\u6210\u529F":c.message)})},onCancel:function(){y.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)($.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5F3A\u5236\u7ED3\u675F"})},"forcedend")];case 3:return[(0,n.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u5F3A\u5236\u7ED3\u675F\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){A.ForcedEnd(r.id).then(function(c){c.statusCode===200&&y.ZP.success(c.statusCode===200?"\u5F3A\u5236\u7ED3\u675F\u6210\u529F":c.message)})},onCancel:function(){y.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)($.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5F3A\u5236\u7ED3\u675F"})},"forcedend")];case 4:return[(0,n.jsx)($.ZP,{type:"primary",ghost:!0,onClick:function(){Ct(!0),A.UpdateStatusList(r.id).then(function(c){c.statusCode===200&&k(c.data)})},children:"\u72B6\u6001\u53D8\u66F4\u8BB0\u5F55"},"workStatusUpdate")];default:return[]}}}],Nn=[{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(p,r,d,c,s){return(0,n.jsx)(n.Fragment,{children:he()(r.createTime).format("YYYY-MM-DD HH:mm:ss")})},align:"center",valueType:"dateRange",ellipsis:!0},{title:"\u64CD\u4F5C",valueType:"option",key:"option",fixed:"right",render:function(p,r){switch(r.status){case 0:return[(0,n.jsx)($.ZP,{type:"primary",size:"small",onClick:v()(C()().mark(function d(){return C()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:i.resetFields(),i.setFieldValue("number","1"),ae(!0),J(r),tt({batchId:r.id}),Ft(function(l){return[r.id]}),B("\u65B0\u589E\u4FE1\u606F");case 7:case"end":return s.stop()}},d)})),children:"\u65B0\u589E\u5DE5\u5355"},"edit"),r.count>0?(0,n.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u4E0B\u53D1\u5168\u90E8\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){ue(r);var c={batchId:r.id};A.publishs(c).then(function(s){if(s.statusCode===200){var l;(l=Q.current)===null||l===void 0||l.reload()}})},onCancel:function(){y.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)($.ZP,{type:"primary",size:"small",children:"\u6279\u6B21\u4E0B\u53D1"})},"workedit"):"",(0,n.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){var c={id:r.id};A.DelBatch(c).then(function(s){if(s.statusCode===200){var l;y.ZP.success(s.statusCode===200?"\u5220\u9664\u6210\u529F":s.message),(l=Q.current)===null||l===void 0||l.reload()}})},onCancel:function(){y.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)($.ZP,{type:"primary",size:"small",danger:!0,children:"\u5220\u9664"})},"workdel")];case 1:return[(0,n.jsx)($.ZP,{type:"primary",size:"small",onClick:v()(C()().mark(function d(){return C()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:i.resetFields(),ae(!0),J(r),B("\u65B0\u589E\u4FE1\u606F");case 4:case"end":return s.stop()}},d)})),children:"\u65B0\u589E\u5DE5\u5355"},"edit"),(0,n.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u4E0B\u53D1\u5168\u90E8\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){ue(r);var c={batchId:r.id};A.publishs(c).then(function(s){if(s.statusCode===200){var l;(l=Q.current)===null||l===void 0||l.reload()}})},onCancel:function(){y.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)($.ZP,{type:"primary",size:"small",children:"\u7EE7\u7EED\u4E0B\u53D1"})},"workedit"),(0,n.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6279\u6B21\u8BA1\u5212\u5417\uFF1F",onConfirm:function(){var c={id:r.id};A.DelBatch(c).then(function(s){if(s.statusCode===200){var l;y.ZP.success(s.statusCode===200?"\u5220\u9664\u6210\u529F":s.message),(l=Q.current)===null||l===void 0||l.reload()}})},onCancel:function(){y.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)($.ZP,{type:"primary",danger:!0,size:"small",children:"\u5220\u9664"})},"workdel")];case 2:return[];default:return[]}}}];(0,o.useEffect)(function(){Ye.Z.SelectList().then(function(h){h.statusCode===200&&V(h.data)}),xt.Z.List({}).then(function(h){h.statusCode===200&&_(h.data)})},[]);var jt=function(p,r){Fn.Z.List({lineId:p,finalId:r}).then(function(d){d.statusCode===200&&se(d.data)})},zn=function(){var h=v()(C()().mark(function p(r){var d,c,s,l;return C()().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if(!r.id){W.next=7;break}return W.next=3,A.UpdateBatch(r);case 3:d=W.sent,d.statusCode===200?(y.ZP.success("\u4FEE\u6539\u6210\u529F"),(c=Q.current)===null||c===void 0||c.reload(),L(!1)):y.ZP.error(JSON.stringify(d.errors)||"\u4FEE\u6539\u5931\u8D25"),W.next=12;break;case 7:return W.next=9,A.AddBatch(r);case 9:s=W.sent,console.log("response",s),s.statusCode===200?(y.ZP.success("\u6DFB\u52A0\u6210\u529F"),(l=Q.current)===null||l===void 0||l.reload(),L(!1)):y.ZP.error(JSON.stringify(s.errors)||"\u6DFB\u52A0\u5931\u8D25");case 12:case"end":return W.stop()}},p)}));return function(r){return h.apply(this,arguments)}}(),Wn=function(){var h=v()(C()().mark(function p(r){var d,c,s,l;return C()().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if(r.batchId=Ee==null?void 0:Ee.id,d=[],Object.keys(r).forEach(function(we){if(we.includes("pro")){console.log(we);var Hn={processId:we.split(":")[1],deviceId:r[we]};d.push(Hn)}}),r.workDevices=d,console.log(r),!r.id){W.next=12;break}return W.next=8,A.Update(r);case 8:c=W.sent,c.statusCode===200?(y.ZP.success("\u4FEE\u6539\u6210\u529F"),ae(!1)):y.ZP.error(JSON.stringify(c.errors)||"\u4FEE\u6539\u5931\u8D25"),W.next=17;break;case 12:return W.next=14,A.Add(r);case 14:s=W.sent,console.log("response",s),s.statusCode===200?(y.ZP.success("\u6DFB\u52A0\u6210\u529F"),(l=Q.current)===null||l===void 0||l.reload(),ae(!1)):y.ZP.error(JSON.stringify(s.errors)||"\u6DFB\u52A0\u5931\u8D25");case 17:case"end":return W.stop()}},p)}));return function(r){return h.apply(this,arguments)}}(),Rn=(0,o.useState)([]),Zt=b()(Rn,2),Un=Zt[0],Ft=Zt[1],kn=function(p){console.log("data",p.workList);var r=p.workList;return(0,n.jsx)(at.Z,{search:!1,columns:An,actionRef:On,cardBordered:!0,style:{background:"burlywood"},rowClassName:Pe.rowHeight,loading:wn,params:Ze,dataSource:r,rowKey:"id",pagination:!1,dateFormatter:"string",headerTitle:"\u5DE5\u5355\u5217\u8868",toolBarRender:!1})};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(at.Z,{cardBordered:!0,bordered:!0,scroll:{x:!0},rowClassName:function(p,r,d){return r%2===0?"":"even-row-background"},expandable:{expandedRowRender:kn,expandedRowKeys:Un,onExpand:function(p,r){Ft(function(d){return p?[r.id]:[]})}},columns:Nn,actionRef:Q,request:v()(C()().mark(function h(){var p,r,d,c=arguments;return C()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return p=c.length>0&&c[0]!==void 0?c[0]:{},r={pageIndex:p.current||1,pageSize:p.pageSize||10,id:p.id,endTime:p.createTime?he()(p.createTime[1]):null,startTime:p.createTime?he()(p.createTime[0]):null},l.next=4,A.WorkBatchPagedList(r);case 4:if(d=l.sent,d.statusCode!==200){l.next=9;break}return l.abrupt("return",{data:d.data.items,success:!0,total:d.data.total});case 9:return l.abrupt("return",{data:[],success:!1,total:0});case 10:case"end":return l.stop()}},h)})),rowKey:"id",pagination:{pageSize:10,showTitle:!0,showSizeChanger:!1},dateFormatter:"string",headerTitle:"\u6279\u6B21\u8BA1\u5212\u5217\u8868",toolBarRender:function(){return[(0,n.jsx)($.ZP,{type:"primary",onClick:function(){P.resetFields(),P.setFieldValue("name",he()().format("YYYYMMDDHHmmss")+"\u6279\u6B21\u4EFB\u52A1"),L(!0)},children:"\u65B0\u5EFA\u6279\u6B21"},"button")]}},"myBatchTable"),(0,n.jsx)(Te.Z,{maskClosable:!1,width:1200,title:(0,n.jsx)(Ue.Z,{color:"#cd201f",children:S}),open:nt,onCancel:function(){ae(!1)},footer:[(0,n.jsx)($.ZP,{onClick:function(){ae(!1)},children:"\u8FD4\u56DE"},"back"),(0,n.jsx)($.ZP,{form:"workInfoForm",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],children:(0,n.jsxs)(Tt.A,{form:i,name:"basic",id:"workInfoForm",submitter:{render:function(p,r){return(0,n.jsx)(wt,{children:r})}},onFinish:Wn,autoComplete:"off",children:[(0,n.jsx)(Ht,{width:"md",label:"id",name:"id",hidden:!0}),(0,n.jsx)(Qt,{colProps:{xl:8,md:12},label:"\u751F\u4EA7\u8BA1\u5212",name:"planId",options:N,fieldProps:{fieldNames:{label:"name",value:"id"}},rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],onChange:function(p){i.setFieldValue("lineId",""),xt.Z.Detail(p).then(function(r){r.statusCode===200&&(Je({name:r.data.finalName,finalId:r.data.finalId,quantity:r.data.quantity}),i.setFieldValue("finalName",r.data.finalName),i.setFieldValue("quantity",r.data.quantity),se([]),Ye.Z.FinishLineList(r.data.finalId).then(function(d){d.statusCode===200&&te(d.data)}))})}}),(0,n.jsxs)(_t.Z,{gutter:18,children:[(0,n.jsxs)(ct.Z,{xl:6,md:12,sm:24,children:[(0,n.jsx)(K.Z.Item,{name:"finalId",hidden:!0,label:"\u6210\u54C1",children:(0,n.jsx)(pe.Z,{readOnly:!0,disabled:!0,value:Y==null?void 0:Y.id})}),(0,n.jsx)(K.Z.Item,{name:"finalName",label:"\u6210\u54C1",children:(0,n.jsx)(pe.Z,{readOnly:!0,disabled:!0,value:Y==null?void 0:Y.name})})]}),(0,n.jsx)(ct.Z,{xl:6,md:12,sm:24,children:(0,n.jsx)(K.Z.Item,{label:"\u6570\u91CF",name:"quantity",children:(0,n.jsx)(pe.Z,{readOnly:!0,disabled:!0,value:Y==null?void 0:Y.quantity})})})]}),(0,n.jsx)(K.Z.Item,{label:"\u4EA7\u7EBF",name:"lineId",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,n.jsx)(mt.Z,{onChange:function(p){console.log("selectfinal",Y),jt(p,Y==null?void 0:Y.finalId),i.setFieldValue("deviceId","");var r={lineId:p};Zn.devicelist(r).then(function(d){d.statusCode===200&&qe(d.data)})},children:ee.map(function(h,p){return(0,n.jsx)(mt.Z.Option,{value:h.key,children:(0,n.jsx)("span",{children:h.value})},h.key)})})}),(0,n.jsx)(ke.Z,{title:"\u4EA7\u7EBF\u5DE5\u5E8F\u8DEF\u7EBF",children:(0,n.jsx)("div",{className:Pe.gongyi_tag,children:(0,n.jsx)(en.Z,{wrap:!0,gap:"small",children:Ve.map(function(h,p){return(0,n.jsxs)("div",{className:Pe.gongyi_tag_box,children:[(0,n.jsx)("div",{className:Pe.gongyi_tag_item,children:(0,n.jsx)(Be.Z,{size:"middle",children:(0,n.jsxs)("div",{color:"#2db7f5",style:{fontSize:"22px"},children:[" ",p+1,"-",h.processName]})})}),(0,n.jsx)(ke.Z,{title:"\u9009\u62E9\u8BBE\u5907",size:"small",bordered:!1,style:{height:"200px",overflowY:"auto",overflowX:"hidden"},className:Pe.gongyi_tag_device,children:(0,n.jsx)(K.Z.Item,{name:"pro:"+h.id,rules:[{required:h.devicesInfo.length>0,message:"\u4EA7\u7EBF\u5DE5\u5E8F\u8DEF\u7EBF[".concat(p+1,"-").concat(h.processName,"]\u672A\u9009\u62E9\u8BBE\u5907!"),validator:function(d,c){y.ZP.error(d.message)}}],children:(0,n.jsx)(ut.Z.Group,{children:h.devicesInfo.length>0?(0,n.jsx)(Be.Z,{title:"\u8BBE\u5907",direction:"vertical",children:h.devicesInfo.map(function(r,d){return(0,n.jsx)(ut.Z,{onClick:function(s){},size:"small",title:r.name,value:r.id})})}):(0,n.jsx)(tn.Z,{})})})}),(0,n.jsx)(nn.Z,{})]},p)})})})}),(0,n.jsx)(K.Z.Item,{label:"\u4E0B\u6599(\u9505)",name:"number",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,n.jsx)(pe.Z,{type:"number",min:1})})]})}),(0,n.jsx)(Te.Z,{maskClosable:!1,width:800,title:(0,n.jsx)(Ue.Z,{color:"#cd201f",children:"\u72B6\u6001\u53D8\u66F4\u8BB0\u5F55"}),open:$n,footer:!1,onCancel:function(){Ct(!1)},children:(0,n.jsx)(St,{size:"large",dataSource:w,renderItem:function(p,r){return(0,n.jsx)("div",{children:(0,n.jsx)(St.Item,{children:(0,n.jsxs)(Be.Z,{children:[he()(p.createTime).format("YYYY-MM-DD HH:mm:ss"),p.statusName,p.remark]})})})}})},"workStatusList"),(0,n.jsx)(Te.Z,{maskClosable:!1,width:800,title:(0,n.jsx)(Ue.Z,{color:"#cd201f",children:"\u5DE5\u5355\u4E0B\u53D1-\u9009\u62E9\u533A\u57DF"}),open:bn,onCancel:function(){Le(!1)},footer:[(0,n.jsx)($.ZP,{onClick:function(){Le(!1)},children:"\u8FD4\u56DE"},"back"),(0,n.jsx)($.ZP,{form:"deviceqy",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],children:(0,n.jsx)(ke.Z,{children:(0,n.jsx)(K.Z,{id:"deviceqy",onFinish:function(p){if(console.log(p),p.group){var r={workId:X==null?void 0:X.id,deviceId:p.group};A.Publish(r).then(function(c){if(c.statusCode===200){var s;y.ZP.success(c.statusCode===200?"\u4E0B\u53D1\u6210\u529F":c.message),(s=Q.current)===null||s===void 0||s.reload(),Le(!1)}})}else{var d={workId:X==null?void 0:X.id};A.Publish(d).then(function(c){if(c.statusCode===200){var s;y.ZP.success(c.statusCode===200?"\u4E0B\u53D1\u6210\u529F":c.message),(s=Q.current)===null||s===void 0||s.reload(),Le(!1)}})}},children:(0,n.jsx)(K.Z.Item,{name:"group",children:(0,n.jsx)(Ke.ZP.Group,{name:"radiogroup",defaultValue:"",children:(0,n.jsxs)(Be.Z,{direction:"vertical",children:[(0,n.jsx)(Ke.ZP,{value:"",children:"\u81EA\u52A8(\u7CFB\u7EDF\u6839\u636E\u8BBE\u5907\u4F7F\u7528\u60C5\u51B5\u81EA\u52A8\u5206\u914D)"}),H.map(function(h,p){return(0,n.jsx)(Ke.ZP,{value:h.deviceId,children:h.deviceName},p)})]})})})})})},"01"),(0,n.jsx)(Te.Z,{maskClosable:!1,destroyOnClose:!0,width:800,title:"\u6279\u6B21\u8BA1\u5212",open:O,onCancel:function(){L(!1)},footer:[(0,n.jsx)($.ZP,{onClick:function(){L(!1)},children:"\u8FD4\u56DE"},"back"),(0,n.jsx)($.ZP,{form:"batchForm",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],children:(0,n.jsxs)(K.Z,{form:P,name:"basic",id:"batchForm",onFinish:zn,autoComplete:"off",children:[(0,n.jsx)(K.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,n.jsx)(pe.Z,{})}),(0,n.jsx)(K.Z.Item,{label:"\u6279\u6B21\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,n.jsx)(pe.Z,{defaultValue:he()().format("YYYYMMDDHHmmss")+"\u6279\u6B21\u4EFB\u52A1"})})]})})]})}}}]); +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[420],{55492:function(Ae,le,a){var ce=a(97857),C=a.n(ce),x=a(56002);le.Z={Add:function(m){return(0,x.request)("/api/finalsinfo/add",{method:"POST",data:C()({},m)})},Del:function(m){return(0,x.request)("/api/finalsinfo/del",{method:"POST",data:C()({},m)})},Update:function(m){return(0,x.request)("/api/finalsinfo/update",{method:"POST",data:C()({},m)})},Detail:function(m){return(0,x.request)("/api/finalsinfo/detail/".concat(m),{method:"GET"})},List:function(){return(0,x.request)("/api/finalsinfo/list",{method:"POST"})},SelectList:function(){return(0,x.request)("/api/finalsinfo/selectlist",{method:"GET"})},LineList:function(m){return(0,x.request)("/api/finalsinfo/linelist/".concat(m),{method:"GET"})},FinishLineList:function(m){return(0,x.request)("/api/finalsinfo/finishlinelist/".concat(m),{method:"GET"})},UnBindList:function(){return(0,x.request)("/api/finalsinfo/UnBindList",{method:"GET"})},PagedList:function(m){return(0,x.request)("/api/finalsinfo/pagedlist",{method:"POST",data:C()({},m)})},BatchUpdate:function(m){return(0,x.request)("/api/finalsinfo/batchupdate",{method:"POST",data:m})},BindLine:function(v){function m(b){return v.apply(this,arguments)}return m.toString=function(){return v.toString()},m}(function(v){return(0,x.request)("/api/finalsinfo/bindline",{method:"POST",data:v})}),RecipeList:function(m){return(0,x.request)(" api/finalsinfo/list",{method:"POST",data:{deviceId:m}})},Saveconfigstatus:function(v){function m(b){return v.apply(this,arguments)}return m.toString=function(){return v.toString()},m}(function(v){return(0,x.request)(" /api/finalsinfo/saveconfigstatus",{method:"POST",data:v})})}},93561:function(Ae,le,a){var ce=a(97857),C=a.n(ce),x=a(56002);le.Z={Add:function(m){return(0,x.request)("/api/productlinesteps/add",{method:"POST",data:C()({},m)})},Del:function(m){return(0,x.request)("/api/productlinesteps/del",{method:"POST",data:C()({},m)})},Update:function(m){return(0,x.request)("/api/productlinesteps/update",{method:"POST",data:C()({},m)})},Detail:function(m){return(0,x.request)("/api/productlinesteps/detail?id=".concat(m),{method:"GET"})},List:function(m){return(0,x.request)("/api/productlinesteps/list",{method:"POST",data:C()({},m)})},PagedList:function(m){return(0,x.request)("/api/productlinesteps/pagedlist",{method:"POST",data:C()({},m)})},BatchUpdateStep:function(m){return(0,x.request)("/api/productlinesteps/batchupdate",{method:"POST",data:m})},Devicelist:function(m){return(0,x.request)("/api/productline/devicelist",{method:"POST",data:C()({},m)})}}},47703:function(Ae,le,a){var ce=a(97857),C=a.n(ce),x=a(56002);le.Z={Add:function(m){return(0,x.request)("/api/workplan/add",{method:"POST",data:C()({},m)})},Del:function(m){return(0,x.request)("/api/workplan/del",{method:"POST",data:C()({},m)})},Update:function(m){return(0,x.request)("/api/workplan/update",{method:"POST",data:C()({},m)})},Detail:function(m){return(0,x.request)("/api/workplan/detail/".concat(m),{method:"GET"})},List:function(m){return(0,x.request)("/api/workplan/list",{method:"POST",data:C()({},m)})},PagedList:function(m){return(0,x.request)("/api/workplan/pagedlist",{method:"POST",data:C()({},m)})}}},99335:function(Ae,le,a){a.r(le),a.d(le,{default:function(){return Dn}});var ce=a(15009),C=a.n(ce),x=a(99289),v=a.n(x),m=a(5574),b=a.n(m),at=a(83145),Tt=a(34994),F=a(1413),Ne=a(4942),it=a(71002),Se=a(91),Bt=a(12044),rt=a(28459),Dt=a(93967),de=a.n(Dt),ot=a(97435),o=a(67294),bt=a(73935),It=a(76509),ze=a(98082),$t=function(e){return(0,Ne.Z)({},e.componentCls,{position:"fixed",insetInlineEnd:0,bottom:0,zIndex:99,display:"flex",alignItems:"center",width:"100%",paddingInline:24,paddingBlock:0,boxSizing:"border-box",lineHeight:"64px",backgroundColor:(0,ze.uK)(e.colorBgElevated,.6),borderBlockStart:"1px solid ".concat(e.colorSplit),"-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)",color:e.colorText,transition:"all 0.2s ease 0s","&-left":{flex:1,color:e.colorText},"&-right":{color:e.colorText,"> *":{marginInlineEnd:8,"&:last-child":{marginBlock:0,marginInline:0}}}})};function Ot(t){return(0,ze.Xj)("ProLayoutFooterToolbar",function(e){var i=(0,F.Z)((0,F.Z)({},e),{},{componentCls:".".concat(t)});return[$t(i)]})}function Lt(t,e){var i=e.stylish;return(0,ze.Xj)("ProLayoutFooterToolbarStylish",function(u){var f=(0,F.Z)((0,F.Z)({},u),{},{componentCls:".".concat(t)});return i?[(0,Ne.Z)({},"".concat(f.componentCls),i==null?void 0:i(f))]:[]})}var n=a(85893),Mt=["children","className","extra","portalDom","style","renderContent"],wt=function(e){var i=e.children,u=e.className,f=e.extra,P=e.portalDom,Z=P===void 0?!0:P,T=e.style,S=e.renderContent,B=(0,Se.Z)(e,Mt),D=(0,o.useContext)(rt.ZP.ConfigContext),g=D.getPrefixCls,N=D.getTargetContainer,_=e.prefixCls||g("pro"),j="".concat(_,"-footer-bar"),G=Ot(j),re=G.wrapSSR,V=G.hashId,E=(0,o.useContext)(It.X),z=(0,o.useMemo)(function(){var k=E.hasSiderMenu,Ce=E.isMobile,oe=E.siderWidth;if(k)return oe?Ce?"100%":"calc(100% - ".concat(oe,"px)"):"100%"},[E.collapsed,E.hasSiderMenu,E.isMobile,E.siderWidth]),ee=(0,o.useMemo)(function(){return(typeof window=="undefined"?"undefined":(0,it.Z)(window))===void 0||(typeof document=="undefined"?"undefined":(0,it.Z)(document))===void 0?null:(N==null?void 0:N())||document.body},[]),te=Lt("".concat(j,".").concat(j,"-stylish"),{stylish:e.stylish}),ne=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"".concat(j,"-left ").concat(V).trim(),children:f}),(0,n.jsx)("div",{className:"".concat(j,"-right ").concat(V).trim(),children:i})]});(0,o.useEffect)(function(){return!E||!(E!=null&&E.setHasFooterToolbar)?function(){}:(E==null||E.setHasFooterToolbar(!0),function(){var k;E==null||(k=E.setHasFooterToolbar)===null||k===void 0||k.call(E,!1)})},[]);var M=(0,n.jsx)("div",(0,F.Z)((0,F.Z)({className:de()(u,V,j,(0,Ne.Z)({},"".concat(j,"-stylish"),!!e.stylish)),style:(0,F.Z)({width:z},T)},(0,ot.Z)(B,["prefixCls"])),{},{children:S?S((0,F.Z)((0,F.Z)((0,F.Z)({},e),E),{},{leftWidth:z}),ne):ne})),w=!(0,Bt.j)()||!Z||!ee?M:(0,bt.createPortal)(M,ee,j);return te.wrapSSR(re((0,n.jsx)(o.Fragment,{children:w},j)))},st=a(97685),At=a(21770),K=a(8232),Nt=a(55241),xe=a(80072),zt=["fieldProps","proFieldProps"],Wt=["fieldProps","proFieldProps"],Fe="text",Rt=function(e){var i=e.fieldProps,u=e.proFieldProps,f=(0,Se.Z)(e,zt);return(0,n.jsx)(xe.Z,(0,F.Z)({valueType:Fe,fieldProps:i,filedConfig:{valueType:Fe},proFieldProps:u},f))},Ut=function(e){var i=(0,At.Z)(e.open||!1,{value:e.open,onChange:e.onOpenChange}),u=(0,st.Z)(i,2),f=u[0],P=u[1];return(0,n.jsx)(K.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(T){var S,B=T.getFieldValue(e.name||[]);return(0,n.jsx)(Nt.Z,(0,F.Z)((0,F.Z)({getPopupContainer:function(g){return g&&g.parentNode?g.parentNode:g},onOpenChange:function(g){return P(g)},content:(0,n.jsxs)("div",{style:{padding:"4px 0"},children:[(S=e.statusRender)===null||S===void 0?void 0:S.call(e,B),e.strengthText?(0,n.jsx)("div",{style:{marginTop:10},children:(0,n.jsx)("span",{children:e.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},e.popoverProps),{},{open:f,children:e.children}))}})},kt=function(e){var i=e.fieldProps,u=e.proFieldProps,f=(0,Se.Z)(e,Wt),P=(0,o.useState)(!1),Z=(0,st.Z)(P,2),T=Z[0],S=Z[1];return i!=null&&i.statusRender&&f.name?(0,n.jsx)(Ut,{name:f.name,statusRender:i==null?void 0:i.statusRender,popoverProps:i==null?void 0:i.popoverProps,strengthText:i==null?void 0:i.strengthText,open:T,onOpenChange:S,children:(0,n.jsx)("div",{children:(0,n.jsx)(xe.Z,(0,F.Z)({valueType:"password",fieldProps:(0,F.Z)((0,F.Z)({},(0,ot.Z)(i,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(D){var g;i==null||(g=i.onBlur)===null||g===void 0||g.call(i,D),S(!1)},onClick:function(D){var g;i==null||(g=i.onClick)===null||g===void 0||g.call(i,D),S(!0)}}),proFieldProps:u,filedConfig:{valueType:Fe}},f))})}):(0,n.jsx)(xe.Z,(0,F.Z)({valueType:"password",fieldProps:i,proFieldProps:u,filedConfig:{valueType:Fe}},f))},We=Rt;We.Password=kt,We.displayName="ProFormComponent";var Ht=We,lt=a(22270),dt=a(66758),Gt=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],Kt=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],Yt=function(e,i){var u=e.fieldProps,f=e.children,P=e.params,Z=e.proFieldProps,T=e.mode,S=e.valueEnum,B=e.request,D=e.showSearch,g=e.options,N=(0,Se.Z)(e,Gt),_=(0,o.useContext)(dt.Z);return(0,n.jsx)(xe.Z,(0,F.Z)((0,F.Z)({valueEnum:(0,lt.h)(S),request:B,params:P,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,F.Z)({options:g,mode:T,showSearch:D,getPopupContainer:_.getPopupContainer},u),ref:i,proFieldProps:Z},N),{},{children:f}))},Vt=o.forwardRef(function(t,e){var i=t.fieldProps,u=t.children,f=t.params,P=t.proFieldProps,Z=t.mode,T=t.valueEnum,S=t.request,B=t.options,D=(0,Se.Z)(t,Kt),g=(0,F.Z)({options:B,mode:Z||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},i),N=(0,o.useContext)(dt.Z);return(0,n.jsx)(xe.Z,(0,F.Z)((0,F.Z)({valueEnum:(0,lt.h)(T),request:S,params:f,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,F.Z)({getPopupContainer:N.getPopupContainer},g),ref:e,proFieldProps:P},D),{},{children:u}))}),Xt=o.forwardRef(Yt),Jt=Vt,Re=Xt;Re.SearchSelect=Jt,Re.displayName="ProFormComponent";var Qt=Re,ut=a(97321),qt=a(42119),$=a(14726),ie=a(86738),y=a(45360),Te=a(85576),Ue=a(66309),_t=a(71230),ct=a(15746),pe=a(49978),mt=a(34041),ke=a(4393),en=a(86250),Be=a(42075),tn=a(32983),nn=a(96074),ft=a(74902),an=a(38780),pt=a(74443),He=a(53124),rn=a(88258),on=a(98675),sn=a(92820),ln=a(25378),dn=a(22564),un=a(74330);const Ge=o.createContext({}),Gn=Ge.Consumer;var cn=a(96159),mn=a(21584),ht=function(t,e){var i={};for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&e.indexOf(u)<0&&(i[u]=t[u]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,u=Object.getOwnPropertySymbols(t);f{var{prefixCls:e,className:i,avatar:u,title:f,description:P}=t,Z=ht(t,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:T}=(0,o.useContext)(He.E_),S=T("list",e),B=de()(`${S}-item-meta`,i),D=o.createElement("div",{className:`${S}-item-meta-content`},f&&o.createElement("h4",{className:`${S}-item-meta-title`},f),P&&o.createElement("div",{className:`${S}-item-meta-description`},P));return o.createElement("div",Object.assign({},Z,{className:B}),u&&o.createElement("div",{className:`${S}-item-meta-avatar`},u),(f||P)&&D)},vt=o.forwardRef((t,e)=>{const{prefixCls:i,children:u,actions:f,extra:P,styles:Z,className:T,classNames:S,colStyle:B}=t,D=ht(t,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:g,itemLayout:N}=(0,o.useContext)(Ge),{getPrefixCls:_,list:j}=(0,o.useContext)(He.E_),G=M=>{var w,k;return de()((k=(w=j==null?void 0:j.item)===null||w===void 0?void 0:w.classNames)===null||k===void 0?void 0:k[M],S==null?void 0:S[M])},re=M=>{var w,k;return Object.assign(Object.assign({},(k=(w=j==null?void 0:j.item)===null||w===void 0?void 0:w.styles)===null||k===void 0?void 0:k[M]),Z==null?void 0:Z[M])},V=()=>{let M=!1;return o.Children.forEach(u,w=>{typeof w=="string"&&(M=!0)}),M&&o.Children.count(u)>1},E=()=>N==="vertical"?!!P:!V(),z=_("list",i),ee=f&&f.length>0&&o.createElement("ul",{className:de()(`${z}-item-action`,G("actions")),key:"actions",style:re("actions")},f.map((M,w)=>o.createElement("li",{key:`${z}-item-action-${w}`},M,w!==f.length-1&&o.createElement("em",{className:`${z}-item-action-split`})))),te=g?"div":"li",ne=o.createElement(te,Object.assign({},D,g?{}:{ref:e},{className:de()(`${z}-item`,{[`${z}-item-no-flex`]:!E()},T)}),N==="vertical"&&P?[o.createElement("div",{className:`${z}-item-main`,key:"content"},u,ee),o.createElement("div",{className:de()(`${z}-item-extra`,G("extra")),key:"extra",style:re("extra")},P)]:[u,ee,(0,cn.Tm)(P,{key:"extra"})]);return g?o.createElement(mn.Z,{ref:e,flex:1,style:B},ne):ne});vt.Meta=fn;var pn=vt,R=a(85088),hn=a(14747),vn=a(27036),gn=a(45503);const Sn=t=>{const{listBorderedCls:e,componentCls:i,paddingLG:u,margin:f,itemPaddingSM:P,itemPaddingLG:Z,marginLG:T,borderRadiusLG:S}=t;return{[`${e}`]:{border:`${(0,R.bf)(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderRadius:S,[`${i}-header,${i}-footer,${i}-item`]:{paddingInline:u},[`${i}-pagination`]:{margin:`${(0,R.bf)(f)} ${(0,R.bf)(T)}`}},[`${e}${i}-sm`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:P}},[`${e}${i}-lg`]:{[`${i}-item,${i}-header,${i}-footer`]:{padding:Z}}}},xn=t=>{const{componentCls:e,screenSM:i,screenMD:u,marginLG:f,marginSM:P,margin:Z}=t;return{[`@media screen and (max-width:${u}px)`]:{[`${e}`]:{[`${e}-item`]:{[`${e}-item-action`]:{marginInlineStart:f}}},[`${e}-vertical`]:{[`${e}-item`]:{[`${e}-item-extra`]:{marginInlineStart:f}}}},[`@media screen and (max-width: ${i}px)`]:{[`${e}`]:{[`${e}-item`]:{flexWrap:"wrap",[`${e}-action`]:{marginInlineStart:P}}},[`${e}-vertical`]:{[`${e}-item`]:{flexWrap:"wrap-reverse",[`${e}-item-main`]:{minWidth:t.contentWidth},[`${e}-item-extra`]:{margin:`auto auto ${(0,R.bf)(Z)}`}}}}}},Pn=t=>{const{componentCls:e,antCls:i,controlHeight:u,minHeight:f,paddingSM:P,marginLG:Z,padding:T,itemPadding:S,colorPrimary:B,itemPaddingSM:D,itemPaddingLG:g,paddingXS:N,margin:_,colorText:j,colorTextDescription:G,motionDurationSlow:re,lineWidth:V,headerBg:E,footerBg:z,emptyTextPadding:ee,metaMarginBottom:te,avatarMarginRight:ne,titleMarginBottom:M,descriptionFontSize:w}=t;return{[`${e}`]:Object.assign(Object.assign({},(0,hn.Wf)(t)),{position:"relative","*":{outline:"none"},[`${e}-header`]:{background:E},[`${e}-footer`]:{background:z},[`${e}-header, ${e}-footer`]:{paddingBlock:P},[`${e}-pagination`]:{marginBlockStart:Z,[`${i}-pagination-options`]:{textAlign:"start"}},[`${e}-spin`]:{minHeight:f,textAlign:"center"},[`${e}-items`]:{margin:0,padding:0,listStyle:"none"},[`${e}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:S,color:j,[`${e}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${e}-item-meta-avatar`]:{marginInlineEnd:ne},[`${e}-item-meta-content`]:{flex:"1 0",width:0,color:j},[`${e}-item-meta-title`]:{margin:`0 0 ${(0,R.bf)(t.marginXXS)} 0`,color:j,fontSize:t.fontSize,lineHeight:t.lineHeight,"> a":{color:j,transition:`all ${re}`,"&:hover":{color:B}}},[`${e}-item-meta-description`]:{color:G,fontSize:w,lineHeight:t.lineHeight}},[`${e}-item-action`]:{flex:"0 0 auto",marginInlineStart:t.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${(0,R.bf)(N)}`,color:G,fontSize:t.fontSize,lineHeight:t.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${e}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:V,height:t.calc(t.fontHeight).sub(t.calc(t.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:t.colorSplit}}},[`${e}-empty`]:{padding:`${(0,R.bf)(T)} 0`,color:G,fontSize:t.fontSizeSM,textAlign:"center"},[`${e}-empty-text`]:{padding:ee,color:t.colorTextDisabled,fontSize:t.fontSize,textAlign:"center"},[`${e}-item-no-flex`]:{display:"block"}}),[`${e}-grid ${i}-col > ${e}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:_,paddingBlock:0,borderBlockEnd:"none"},[`${e}-vertical ${e}-item`]:{alignItems:"initial",[`${e}-item-main`]:{display:"block",flex:1},[`${e}-item-extra`]:{marginInlineStart:Z},[`${e}-item-meta`]:{marginBlockEnd:te,[`${e}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:M,color:j,fontSize:t.fontSizeLG,lineHeight:t.lineHeightLG}},[`${e}-item-action`]:{marginBlockStart:T,marginInlineStart:"auto","> li":{padding:`0 ${(0,R.bf)(T)}`,"&:first-child":{paddingInlineStart:0}}}},[`${e}-split ${e}-item`]:{borderBlockEnd:`${(0,R.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${e}-split ${e}-header`]:{borderBlockEnd:`${(0,R.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`},[`${e}-split${e}-empty ${e}-footer`]:{borderTop:`${(0,R.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`},[`${e}-loading ${e}-spin-nested-loading`]:{minHeight:u},[`${e}-split${e}-something-after-last-item ${i}-spin-container > ${e}-items > ${e}-item:last-child`]:{borderBlockEnd:`${(0,R.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`},[`${e}-lg ${e}-item`]:{padding:g},[`${e}-sm ${e}-item`]:{padding:D},[`${e}:not(${e}-vertical)`]:{[`${e}-item-no-flex`]:{[`${e}-item-action`]:{float:"right"}}}}},Cn=t=>({contentWidth:220,itemPadding:`${(0,R.bf)(t.paddingContentVertical)} 0`,itemPaddingSM:`${(0,R.bf)(t.paddingContentVerticalSM)} ${(0,R.bf)(t.paddingContentHorizontal)}`,itemPaddingLG:`${(0,R.bf)(t.paddingContentVerticalLG)} ${(0,R.bf)(t.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:t.padding,metaMarginBottom:t.padding,avatarMarginRight:t.padding,titleMarginBottom:t.paddingSM,descriptionFontSize:t.fontSize});var yn=(0,vn.I$)("List",t=>{const e=(0,gn.TS)(t,{listBorderedCls:`${t.componentCls}-bordered`,minHeight:t.controlHeightLG});return[Pn(e),Sn(e),xn(e)]},Cn),En=function(t,e){var i={};for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&e.indexOf(u)<0&&(i[u]=t[u]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,u=Object.getOwnPropertySymbols(t);f(L,q)=>{var ge;M(L),k(q),e&&((ge=e==null?void 0:e[O])===null||ge===void 0||ge.call(e,L,q))},Y=ye("onChange"),Je=ye("onShowSizeChange"),Qe=(O,L)=>{if(!E)return null;let q;return typeof V=="function"?q=V(O):V?q=O[V]:q=O.key,q||(q=`list-item-${L}`),o.createElement(o.Fragment,{key:q},E(O,L))},De=()=>!!(D||e||G),H=Ce("list",i),[qe,_e,be]=yn(H);let X=re;typeof X=="boolean"&&(X={spinning:X});const ue=!!(X!=null&&X.spinning),et=(0,on.Z)(_);let me="";switch(et){case"large":me="lg";break;case"small":me="sm";break;default:break}const Ee=de()(H,{[`${H}-vertical`]:B==="vertical",[`${H}-${me}`]:me,[`${H}-split`]:f,[`${H}-bordered`]:u,[`${H}-loading`]:ue,[`${H}-grid`]:!!g,[`${H}-something-after-last-item`]:De(),[`${H}-rtl`]:Ve==="rtl"},se==null?void 0:se.className,P,Z,_e,be),J=(0,an.Z)(Xe,{total:N.length,current:ne,pageSize:w},e||{}),Ie=Math.ceil(J.total/J.pageSize);J.current>Ie&&(J.current=Ie);const je=e&&o.createElement("div",{className:de()(`${H}-pagination`)},o.createElement(dn.Z,Object.assign({align:"end"},J,{onChange:Y,onShowSizeChange:Je})));let Ze=(0,ft.Z)(N);e&&N.length>(J.current-1)*J.pageSize&&(Ze=(0,ft.Z)(N).splice((J.current-1)*J.pageSize,J.pageSize));const tt=Object.keys(g||{}).some(O=>["xs","sm","md","lg","xl","xxl"].includes(O)),$e=(0,ln.Z)(tt),fe=o.useMemo(()=>{for(let O=0;O{if(!g)return;const O=fe&&g[fe]?g[fe]:g.column;if(O)return{width:`${100/O}%`,maxWidth:`${100/O}%`}},[JSON.stringify(g),fe]);let ae=ue&&o.createElement("div",{style:{minHeight:53}});if(Ze.length>0){const O=Ze.map((L,q)=>Qe(L,q));ae=g?o.createElement(sn.Z,{gutter:g.gutter},o.Children.map(O,L=>o.createElement("div",{key:L==null?void 0:L.key,style:nt},L))):o.createElement("ul",{className:`${H}-items`},O)}else!S&&!ue&&(ae=o.createElement("div",{className:`${H}-empty-text`},(z==null?void 0:z.emptyText)||(oe==null?void 0:oe("List"))||o.createElement(rn.Z,{componentName:"List"})));const ve=J.position||"bottom",Oe=o.useMemo(()=>({grid:g,itemLayout:B}),[JSON.stringify(g),B]);return qe(o.createElement(Ge.Provider,{value:Oe},o.createElement("div",Object.assign({style:Object.assign(Object.assign({},se==null?void 0:se.style),T),className:Ee},ee),(ve==="top"||ve==="both")&&je,j&&o.createElement("div",{className:`${H}-header`},j),o.createElement(un.Z,Object.assign({},X),ae,S),G&&o.createElement("div",{className:`${H}-footer`},G),D||(ve==="bottom"||ve==="both")&&je)))}gt.Item=pn;var St=gt,Ke=a(78045),jn=a(97857),U=a.n(jn),I=a(56002),A={Add:function(e){return(0,I.request)("/api/workinfo/add",{method:"POST",data:U()({},e)})},AddBatch:function(e){return(0,I.request)("/api/workbatch/add",{method:"POST",data:U()({},e)})},UpdateBatch:function(e){return(0,I.request)("/api/workbatch/update",{method:"POST",data:U()({},e)})},DelBatch:function(e){return(0,I.request)("/api/workbatch/del",{method:"POST",data:U()({},e)})},Del:function(e){return(0,I.request)("/api/workinfo/del",{method:"POST",data:U()({},e)})},Update:function(e){return(0,I.request)("/api/workinfo/update",{method:"POST",data:U()({},e)})},List:function(e){return(0,I.request)("/api/workinfo/list",{method:"POST",data:U()({},e)})},PagedList:function(e){return(0,I.request)("/api/workinfo/pagedlist",{method:"POST",data:U()({},e)})},WorkBatchPagedList:function(e){return(0,I.request)("/api/workbatch/pagedlist",{method:"POST",data:U()({},e)})},Publish:function(e){return(0,I.request)("/api/workinfo/publish",{method:"POST",data:U()({},e)})},publishs:function(e){return(0,I.request)("/api/workinfo/publishs",{method:"POST",data:U()({},e)})},UpdateStatus:function(e){return(0,I.request)("/api/workinfo/ForcedEnd",{method:"POST",data:U()({},e)})},ForcedEnd:function(e){return(0,I.request)("/api/workinfo/forcedend/".concat(e),{method:"POST"})},UpdateStatusList:function(e){return(0,I.request)("/api/workinfo/statuslist/".concat(e),{method:"GET"})},EditDetail:function(e){return(0,I.request)("/api/workinfo/editdetail/".concat(e),{method:"GET"})}},Ye=a(55492),Zn={Add:function(e){return(0,I.request)("/api/productline/add",{method:"POST",data:U()({},e)})},Del:function(e){return(0,I.request)("/api/productline/del",{method:"POST",data:U()({},e)})},Update:function(e){return(0,I.request)("/api/productline/update",{method:"POST",data:U()({},e)})},List:function(){return(0,I.request)("/api/productline/list",{method:"GET"})},PagedList:function(e){return(0,I.request)("/api/productline/pagedlist",{method:"POST",data:U()({},e)})},selectlist:function(){return(0,I.request)("/api/productline/selectlist",{method:"GET"})},devicelist:function(e){return(0,I.request)("/api/productline/devicelist",{method:"POST",data:U()({},e)})}},Fn=a(93561),Pe={xxx:"xxx___NntgG",rowHeight:"rowHeight___OK5xp"},Tn=a(27484),he=a.n(Tn),xt=a(47703),Yn=null,Bn=[{title:"\u8349\u7A3F",description:""},{title:"\u5DF2\u4E0B\u53D1",description:""},{title:"\u5DF2\u63A5\u53D7",description:""},{title:"\u5DF2\u542F\u52A8",description:""},{title:"\u5DF2\u5B8C\u6210",description:""}],Vn=[{title:"\u8349\u7A3F",description:""},{title:"\u5DF2\u4E0B\u53D1",description:""},{title:"\u5DF2\u63A5\u53D7",description:""},{title:"\u5DF2\u542F\u52A8",description:""},{title:"\u5DF2\u5B8C\u6210",description:""}],Dn=function(){var t=K.Z.useForm(),e=b()(t,1),i=e[0],u=K.Z.useForm(),f=b()(u,1),P=f[0],Z=(0,o.useState)(),T=b()(Z,2),S=T[0],B=T[1],D=(0,o.useState)([]),g=b()(D,2),N=g[0],_=g[1],j=(0,o.useState)([]),G=b()(j,2),re=G[0],V=G[1],E=(0,o.useState)([]),z=b()(E,2),ee=z[0],te=z[1],ne=(0,o.useState)([]),M=b()(ne,2),w=M[0],k=M[1],Ce=(0,o.useState)([]),oe=b()(Ce,2),Ve=oe[0],se=oe[1],Xe=(0,o.useState)(),ye=b()(Xe,2),Y=ye[0],Je=ye[1],Qe=(0,o.useState)([]),De=b()(Qe,2),H=De[0],qe=De[1],_e=(0,o.useState)(),be=b()(_e,2),X=be[0],ue=be[1],et=(0,o.useState)(),me=b()(et,2),Ee=me[0],J=me[1],Ie=(0,o.useState)(),je=b()(Ie,2),Ze=je[0],tt=je[1],$e=(0,o.useState)(!1),fe=b()($e,2),nt=fe[0],ae=fe[1],ve=(0,o.useState)(!1),Oe=b()(ve,2),O=Oe[0],L=Oe[1],q=(0,o.useState)(!1),ge=b()(q,2),bn=ge[0],Le=ge[1],In=(0,o.useState)(!1),Pt=b()(In,2),$n=Pt[0],Ct=Pt[1],On=(0,o.useRef)(),Q=(0,o.useRef)(),Ln=(0,o.useState)([]),yt=b()(Ln,2),Xn=yt[0],Jn=yt[1],Mn=(0,o.useState)(!1),Et=b()(Mn,2),wn=Et[0],Qn=Et[1],qn=K.Z.useWatch("finalId",i),An=[{title:"\u5DE5\u5355\u7F16\u7801",dataIndex:"id",hideInSearch:!0,align:"center"},{title:"\u7EBF\u8DEF\u540D\u79F0",dataIndex:"lineName",ellipsis:!0,hideInSearch:!0,align:"center"},{title:"\u6210\u54C1\u540D\u79F0",dataIndex:"finalName",align:"center",hideInSearch:!0,ellipsis:!0},{title:"\u4E0B\u6599(\u9505)",dataIndex:"number",ellipsis:!0,hideInSearch:!0,align:"center",width:80},{dataIndex:"batchId",align:"center",hideInSearch:!0,ellipsis:!0,hideInTable:!0},{title:"\u8FDB\u5EA6",dataIndex:"status",width:300,hideInSearch:!0,align:"center",fixed:"right",render:function(p,r){return(0,n.jsx)(rt.ZP,{theme:{components:{Steps:{navArrowColor:"red",descriptionMaxWidth:50}}},children:(0,n.jsx)(qt.Z,{progressDot:!0,direction:"horizontal",style:{padding:"18px"},type:"default",current:r.status,size:"small",items:Bn})})}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",fixed:"right",render:function(p,r){switch(r.status){case 0:return[(0,n.jsx)($.ZP,{type:"primary",size:"small",onClick:v()(C()().mark(function d(){return C()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:console.log(r),i.resetFields(),B("\u7F16\u8F91\u4FE1\u606F"),Ye.Z.FinishLineList(r.finalId).then(function(l){l.statusCode===200&&te(l.data)}),A.EditDetail(r.id).then(function(l){l.statusCode===200&&(ae(!0),jt(l.data.lineId,r.finalId),setTimeout(function(){l.data.number=r.number,l.data.finaId=r.finalId,l.data.id=r.id,l.data.workDevices.map(function(Me){l.data["pro:"+Me.processId]=Me.deviceId}),console.log(l.data),i.setFieldsValue(l.data)},500))});case 5:case"end":return s.stop()}},d)})),children:"\u7F16\u8F91\u5DE5\u5355"},"edit"),(0,n.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){var c={id:r.id};A.Del(c).then(function(s){if(s.statusCode===200){var l;y.ZP.success(s.statusCode===200?"\u5220\u9664\u6210\u529F":s.message),(l=Q.current)===null||l===void 0||l.reload()}})},onCancel:function(){y.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)($.ZP,{type:"primary",danger:!0,size:"small",children:"\u5220\u9664"})},"workdel"),(0,n.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u4E0B\u53D1\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){ue(r);var c={workId:r.id};A.Publish(c).then(function(s){if(s.statusCode===200){var l;y.ZP.success(s.statusCode===200?"\u4E0B\u53D1\u6210\u529F":s.message),(l=Q.current)===null||l===void 0||l.reload()}})},onCancel:function(){y.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)($.ZP,{type:"primary",size:"small",children:"\u4E0B\u53D1"})},"workedit")];case 1:return[(0,n.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u4E0B\u53D1\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){console.log("ssssssssddd",r),ue(r);var c={workId:r.id};A.Publish(c).then(function(s){if(s.statusCode===200){var l;y.ZP.success(s.statusCode===200?"\u4E0B\u53D1\u6210\u529F":s.message),(l=Q.current)===null||l===void 0||l.reload()}})},onCancel:function(){y.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)($.ZP,{type:"primary",size:"small",children:"\u7EE7\u7EED\u4E0B\u53D1"})},"workedit"),(0,n.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u5F3A\u5236\u7ED3\u675F\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){A.ForcedEnd(r.id).then(function(c){if(c.statusCode===200){var s;y.ZP.success(c.statusCode===200?"\u5F3A\u5236\u7ED3\u675F\u6210\u529F":c.message),(s=Q.current)===null||s===void 0||s.reload()}})},onCancel:function(){y.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)($.ZP,{type:"primary",danger:!0,size:"small",children:"\u5F3A\u5236\u7ED3\u675F"})},"forcedend")];case 2:return[(0,n.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u5F3A\u5236\u7ED3\u675F\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){A.ForcedEnd(r.id).then(function(c){c.statusCode===200&&y.ZP.success(c.statusCode===200?"\u5F3A\u5236\u7ED3\u675F\u6210\u529F":c.message)})},onCancel:function(){y.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)($.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5F3A\u5236\u7ED3\u675F"})},"forcedend")];case 3:return[(0,n.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u5F3A\u5236\u7ED3\u675F\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){A.ForcedEnd(r.id).then(function(c){c.statusCode===200&&y.ZP.success(c.statusCode===200?"\u5F3A\u5236\u7ED3\u675F\u6210\u529F":c.message)})},onCancel:function(){y.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)($.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5F3A\u5236\u7ED3\u675F"})},"forcedend")];case 4:return[(0,n.jsx)($.ZP,{type:"primary",ghost:!0,onClick:function(){Ct(!0),A.UpdateStatusList(r.id).then(function(c){c.statusCode===200&&k(c.data)})},children:"\u72B6\u6001\u53D8\u66F4\u8BB0\u5F55"},"workStatusUpdate")];default:return[]}}}],Nn=[{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(p,r,d,c,s){return(0,n.jsx)(n.Fragment,{children:he()(r.createTime).format("YYYY-MM-DD HH:mm:ss")})},align:"center",valueType:"dateRange",ellipsis:!0},{title:"\u64CD\u4F5C",valueType:"option",key:"option",fixed:"right",render:function(p,r){switch(r.status){case 0:return[(0,n.jsx)($.ZP,{type:"primary",size:"small",onClick:v()(C()().mark(function d(){return C()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:i.resetFields(),i.setFieldValue("number","1"),ae(!0),J(r),tt({batchId:r.id}),Ft(function(l){return[r.id]}),B("\u65B0\u589E\u4FE1\u606F");case 7:case"end":return s.stop()}},d)})),children:"\u65B0\u589E\u5DE5\u5355"},"edit"),r.count>0?(0,n.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u4E0B\u53D1\u5168\u90E8\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){ue(r);var c={batchId:r.id};A.publishs(c).then(function(s){if(s.statusCode===200){var l;(l=Q.current)===null||l===void 0||l.reload()}})},onCancel:function(){y.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)($.ZP,{type:"primary",size:"small",children:"\u6279\u6B21\u4E0B\u53D1"})},"workedit"):"",(0,n.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){var c={id:r.id};A.DelBatch(c).then(function(s){if(s.statusCode===200){var l;y.ZP.success(s.statusCode===200?"\u5220\u9664\u6210\u529F":s.message),(l=Q.current)===null||l===void 0||l.reload()}})},onCancel:function(){y.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)($.ZP,{type:"primary",size:"small",danger:!0,children:"\u5220\u9664"})},"workdel")];case 1:return[(0,n.jsx)($.ZP,{type:"primary",size:"small",onClick:v()(C()().mark(function d(){return C()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:i.resetFields(),ae(!0),J(r),B("\u65B0\u589E\u4FE1\u606F");case 4:case"end":return s.stop()}},d)})),children:"\u65B0\u589E\u5DE5\u5355"},"edit"),(0,n.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u4E0B\u53D1\u5168\u90E8\u5DE5\u5355\u5417\uFF1F",onConfirm:function(){ue(r);var c={batchId:r.id};A.publishs(c).then(function(s){if(s.statusCode===200){var l;(l=Q.current)===null||l===void 0||l.reload()}})},onCancel:function(){y.ZP.info("\u5DF2\u53D6\u6D88\u64CD\u4F5C")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)($.ZP,{type:"primary",size:"small",children:"\u7EE7\u7EED\u4E0B\u53D1"})},"workedit"),(0,n.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6279\u6B21\u8BA1\u5212\u5417\uFF1F",onConfirm:function(){var c={id:r.id};A.DelBatch(c).then(function(s){if(s.statusCode===200){var l;y.ZP.success(s.statusCode===200?"\u5220\u9664\u6210\u529F":s.message),(l=Q.current)===null||l===void 0||l.reload()}})},onCancel:function(){y.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)($.ZP,{type:"primary",danger:!0,size:"small",children:"\u5220\u9664"})},"workdel")];case 2:return[];default:return[]}}}];(0,o.useEffect)(function(){Ye.Z.SelectList().then(function(h){h.statusCode===200&&V(h.data)}),xt.Z.List({}).then(function(h){h.statusCode===200&&_(h.data)})},[]);var jt=function(p,r){Fn.Z.List({lineId:p,finalId:r}).then(function(d){d.statusCode===200&&(console.log("res.data",d.data),se(d.data))})},zn=function(){var h=v()(C()().mark(function p(r){var d,c,s,l;return C()().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if(!r.id){W.next=7;break}return W.next=3,A.UpdateBatch(r);case 3:d=W.sent,d.statusCode===200?(y.ZP.success("\u4FEE\u6539\u6210\u529F"),(c=Q.current)===null||c===void 0||c.reload(),L(!1)):y.ZP.error(JSON.stringify(d.errors)||"\u4FEE\u6539\u5931\u8D25"),W.next=12;break;case 7:return W.next=9,A.AddBatch(r);case 9:s=W.sent,console.log("response",s),s.statusCode===200?(y.ZP.success("\u6DFB\u52A0\u6210\u529F"),(l=Q.current)===null||l===void 0||l.reload(),L(!1)):y.ZP.error(JSON.stringify(s.errors)||"\u6DFB\u52A0\u5931\u8D25");case 12:case"end":return W.stop()}},p)}));return function(r){return h.apply(this,arguments)}}(),Wn=function(){var h=v()(C()().mark(function p(r){var d,c,s,l;return C()().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if(r.batchId=Ee==null?void 0:Ee.id,d=[],Object.keys(r).forEach(function(we){if(we.includes("pro")){console.log(we);var Hn={processId:we.split(":")[1],deviceId:r[we]};d.push(Hn)}}),r.workDevices=d,console.log(r),!r.id){W.next=12;break}return W.next=8,A.Update(r);case 8:c=W.sent,c.statusCode===200?(y.ZP.success("\u4FEE\u6539\u6210\u529F"),ae(!1)):y.ZP.error(JSON.stringify(c.errors)||"\u4FEE\u6539\u5931\u8D25"),W.next=17;break;case 12:return W.next=14,A.Add(r);case 14:s=W.sent,console.log("response",s),s.statusCode===200?(y.ZP.success("\u6DFB\u52A0\u6210\u529F"),(l=Q.current)===null||l===void 0||l.reload(),ae(!1)):y.ZP.error(JSON.stringify(s.errors)||"\u6DFB\u52A0\u5931\u8D25");case 17:case"end":return W.stop()}},p)}));return function(r){return h.apply(this,arguments)}}(),Rn=(0,o.useState)([]),Zt=b()(Rn,2),Un=Zt[0],Ft=Zt[1],kn=function(p){console.log("data",p.workList);var r=p.workList;return(0,n.jsx)(at.Z,{search:!1,columns:An,actionRef:On,cardBordered:!0,style:{background:"burlywood"},rowClassName:Pe.rowHeight,loading:wn,params:Ze,dataSource:r,rowKey:"id",pagination:!1,dateFormatter:"string",headerTitle:"\u5DE5\u5355\u5217\u8868",toolBarRender:!1})};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(at.Z,{cardBordered:!0,bordered:!0,scroll:{x:!0},rowClassName:function(p,r,d){return r%2===0?"":"even-row-background"},expandable:{expandedRowRender:kn,expandedRowKeys:Un,onExpand:function(p,r){Ft(function(d){return p?[r.id]:[]})}},columns:Nn,actionRef:Q,request:v()(C()().mark(function h(){var p,r,d,c=arguments;return C()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return p=c.length>0&&c[0]!==void 0?c[0]:{},r={pageIndex:p.current||1,pageSize:p.pageSize||10,id:p.id,endTime:p.createTime?he()(p.createTime[1]):null,startTime:p.createTime?he()(p.createTime[0]):null},l.next=4,A.WorkBatchPagedList(r);case 4:if(d=l.sent,d.statusCode!==200){l.next=9;break}return l.abrupt("return",{data:d.data.items,success:!0,total:d.data.total});case 9:return l.abrupt("return",{data:[],success:!1,total:0});case 10:case"end":return l.stop()}},h)})),rowKey:"id",pagination:{pageSize:10,showTitle:!0,showSizeChanger:!1},dateFormatter:"string",headerTitle:"\u6279\u6B21\u8BA1\u5212\u5217\u8868",toolBarRender:function(){return[(0,n.jsx)($.ZP,{type:"primary",onClick:function(){P.resetFields(),P.setFieldValue("name",he()().format("YYYYMMDDHHmmss")+"\u6279\u6B21\u4EFB\u52A1"),L(!0)},children:"\u65B0\u5EFA\u6279\u6B21"},"button")]}},"myBatchTable"),(0,n.jsx)(Te.Z,{maskClosable:!1,width:1200,title:(0,n.jsx)(Ue.Z,{color:"#cd201f",children:S}),open:nt,onCancel:function(){ae(!1)},footer:[(0,n.jsx)($.ZP,{onClick:function(){ae(!1)},children:"\u8FD4\u56DE"},"back"),(0,n.jsx)($.ZP,{form:"workInfoForm",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],children:(0,n.jsxs)(Tt.A,{form:i,name:"basic",id:"workInfoForm",submitter:{render:function(p,r){return(0,n.jsx)(wt,{children:r})}},onFinish:Wn,autoComplete:"off",children:[(0,n.jsx)(Ht,{width:"md",label:"id",name:"id",hidden:!0}),(0,n.jsx)(Qt,{colProps:{xl:8,md:12},label:"\u751F\u4EA7\u8BA1\u5212",name:"planId",options:N,fieldProps:{fieldNames:{label:"name",value:"id"}},rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],onChange:function(p){i.setFieldValue("lineId",""),xt.Z.Detail(p).then(function(r){r.statusCode===200&&(Je({name:r.data.finalName,finalId:r.data.finalId,quantity:r.data.quantity}),i.setFieldValue("finalName",r.data.finalName),i.setFieldValue("quantity",r.data.quantity),se([]),Ye.Z.FinishLineList(r.data.finalId).then(function(d){d.statusCode===200&&te(d.data)}))})}}),(0,n.jsxs)(_t.Z,{gutter:18,children:[(0,n.jsxs)(ct.Z,{xl:6,md:12,sm:24,children:[(0,n.jsx)(K.Z.Item,{name:"finalId",hidden:!0,label:"\u6210\u54C1",children:(0,n.jsx)(pe.Z,{readOnly:!0,disabled:!0,value:Y==null?void 0:Y.id})}),(0,n.jsx)(K.Z.Item,{name:"finalName",label:"\u6210\u54C1",children:(0,n.jsx)(pe.Z,{readOnly:!0,disabled:!0,value:Y==null?void 0:Y.name})})]}),(0,n.jsx)(ct.Z,{xl:6,md:12,sm:24,children:(0,n.jsx)(K.Z.Item,{label:"\u6570\u91CF",name:"quantity",children:(0,n.jsx)(pe.Z,{readOnly:!0,disabled:!0,value:Y==null?void 0:Y.quantity})})})]}),(0,n.jsx)(K.Z.Item,{label:"\u4EA7\u7EBF",name:"lineId",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,n.jsx)(mt.Z,{onChange:function(p){console.log("selectfinal",Y),jt(p,Y==null?void 0:Y.finalId),i.setFieldValue("deviceId","");var r={lineId:p};Zn.devicelist(r).then(function(d){d.statusCode===200&&qe(d.data)})},children:ee.map(function(h,p){return(0,n.jsx)(mt.Z.Option,{value:h.key,children:(0,n.jsx)("span",{children:h.value})},h.key)})})}),(0,n.jsx)(ke.Z,{title:"\u4EA7\u7EBF\u5DE5\u5E8F\u8DEF\u7EBF",children:(0,n.jsx)("div",{className:Pe.gongyi_tag,children:(0,n.jsx)(en.Z,{wrap:!0,gap:"small",children:Ve.map(function(h,p){return(0,n.jsxs)("div",{className:Pe.gongyi_tag_box,children:[(0,n.jsx)("div",{className:Pe.gongyi_tag_item,children:(0,n.jsx)(Be.Z,{size:"middle",children:(0,n.jsxs)("div",{color:"#2db7f5",style:{fontSize:"22px"},children:[" ",p+1,"-",h.processName]})})}),(0,n.jsx)(ke.Z,{title:"\u9009\u62E9\u8BBE\u5907",size:"small",bordered:!1,style:{height:"200px",overflowY:"auto",overflowX:"hidden"},className:Pe.gongyi_tag_device,children:(0,n.jsx)(K.Z.Item,{name:"pro:"+h.id,rules:[{required:h.devicesInfo.length>0,message:"\u4EA7\u7EBF\u5DE5\u5E8F\u8DEF\u7EBF[".concat(p+1,"-").concat(h.processName,"]\u672A\u9009\u62E9\u8BBE\u5907!"),validator:function(d,c,s){if(c||h.devicesInfo.length==0)return Promise.resolve();y.ZP.error("\u4EA7\u7EBF\u5DE5\u5E8F\u8DEF\u7EBF[".concat(p+1,"-").concat(h.processName,"]\u672A\u9009\u62E9\u8BBE\u5907!"))}}],children:(0,n.jsx)(ut.Z.Group,{children:h.devicesInfo.length>0?(0,n.jsx)(Be.Z,{title:"\u8BBE\u5907",direction:"vertical",children:h.devicesInfo.map(function(r,d){return(0,n.jsx)(ut.Z,{onClick:function(s){},size:"small",title:r.name,value:r.code})})}):(0,n.jsx)(tn.Z,{})})})}),(0,n.jsx)(nn.Z,{})]},p)})})})}),(0,n.jsx)(K.Z.Item,{label:"\u4E0B\u6599(\u9505)",name:"number",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,n.jsx)(pe.Z,{type:"number",min:1})})]})}),(0,n.jsx)(Te.Z,{maskClosable:!1,width:800,title:(0,n.jsx)(Ue.Z,{color:"#cd201f",children:"\u72B6\u6001\u53D8\u66F4\u8BB0\u5F55"}),open:$n,footer:!1,onCancel:function(){Ct(!1)},children:(0,n.jsx)(St,{size:"large",dataSource:w,renderItem:function(p,r){return(0,n.jsx)("div",{children:(0,n.jsx)(St.Item,{children:(0,n.jsxs)(Be.Z,{children:[he()(p.createTime).format("YYYY-MM-DD HH:mm:ss"),p.statusName,p.remark]})})})}})},"workStatusList"),(0,n.jsx)(Te.Z,{maskClosable:!1,width:800,title:(0,n.jsx)(Ue.Z,{color:"#cd201f",children:"\u5DE5\u5355\u4E0B\u53D1-\u9009\u62E9\u533A\u57DF"}),open:bn,onCancel:function(){Le(!1)},footer:[(0,n.jsx)($.ZP,{onClick:function(){Le(!1)},children:"\u8FD4\u56DE"},"back"),(0,n.jsx)($.ZP,{form:"deviceqy",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],children:(0,n.jsx)(ke.Z,{children:(0,n.jsx)(K.Z,{id:"deviceqy",onFinish:function(p){if(console.log(p),p.group){var r={workId:X==null?void 0:X.id,deviceId:p.group};A.Publish(r).then(function(c){if(c.statusCode===200){var s;y.ZP.success(c.statusCode===200?"\u4E0B\u53D1\u6210\u529F":c.message),(s=Q.current)===null||s===void 0||s.reload(),Le(!1)}})}else{var d={workId:X==null?void 0:X.id};A.Publish(d).then(function(c){if(c.statusCode===200){var s;y.ZP.success(c.statusCode===200?"\u4E0B\u53D1\u6210\u529F":c.message),(s=Q.current)===null||s===void 0||s.reload(),Le(!1)}})}},children:(0,n.jsx)(K.Z.Item,{name:"group",children:(0,n.jsx)(Ke.ZP.Group,{name:"radiogroup",defaultValue:"",children:(0,n.jsxs)(Be.Z,{direction:"vertical",children:[(0,n.jsx)(Ke.ZP,{value:"",children:"\u81EA\u52A8(\u7CFB\u7EDF\u6839\u636E\u8BBE\u5907\u4F7F\u7528\u60C5\u51B5\u81EA\u52A8\u5206\u914D)"}),H.map(function(h,p){return(0,n.jsx)(Ke.ZP,{value:h.deviceId,children:h.deviceName},p)})]})})})})})},"01"),(0,n.jsx)(Te.Z,{maskClosable:!1,destroyOnClose:!0,width:800,title:"\u6279\u6B21\u8BA1\u5212",open:O,onCancel:function(){L(!1)},footer:[(0,n.jsx)($.ZP,{onClick:function(){L(!1)},children:"\u8FD4\u56DE"},"back"),(0,n.jsx)($.ZP,{form:"batchForm",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],children:(0,n.jsxs)(K.Z,{form:P,name:"basic",id:"batchForm",onFinish:zn,autoComplete:"off",children:[(0,n.jsx)(K.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,n.jsx)(pe.Z,{})}),(0,n.jsx)(K.Z.Item,{label:"\u6279\u6B21\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,n.jsx)(pe.Z,{defaultValue:he()().format("YYYYMMDDHHmmss")+"\u6279\u6B21\u4EFB\u52A1"})})]})})]})}}}]); diff --git a/frontend/dist/preload_helper.d951a929.js b/frontend/dist/preload_helper.91c9e709.js similarity index 88% rename from frontend/dist/preload_helper.d951a929.js rename to frontend/dist/preload_helper.91c9e709.js index 3f49fe6..7d3a0df 100644 --- a/frontend/dist/preload_helper.d951a929.js +++ b/frontend/dist/preload_helper.91c9e709.js @@ -1 +1 @@ -!function(){"use strict";var t="/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"ant-design-pro","b":"webpack","f":[["20.ba2fc27d.async.js",20],["p__system__role__index.455b2d03.async.js",24],["p__deviceInfo__index.8878b771.async.js",36],["p__user__login__index.26100c69.chunk.css",37],["p__user__login__index.b934e735.async.js",37],["p__workInfo__plan.49094d04.async.js",43],["119.4e6a5656.async.js",119],["145.782fdda3.async.js",145],["p__system__module__index.ef46db37.chunk.css",257],["p__system__module__index.210b5a12.async.js",257],["p__materials__index.8b1d798e.async.js",262],["t__plugin-layout__Layout.5012e1ab.chunk.css",301],["t__plugin-layout__Layout.2c017a91.async.js",301],["390.c53868f3.async.js",390],["393.e127e60f.async.js",393],["p__deviceProductInfo__index.835c0c6c.chunk.css",402],["p__deviceProductInfo__index.1f88a9d8.async.js",402],["p__workInfo__index.a5160833.chunk.css",420],["p__workInfo__index.70520a2f.async.js",420],["p__welcome__index.dde73410.async.js",446],["p__stock__index.3cc68eb4.async.js",450],["p__final__index.49759dc4.chunk.css",460],["p__final__index.9df8868b.async.js",460],["p__system__user__index.695d982e.chunk.css",472],["p__system__user__index.60325376.async.js",472],["t__plugin-maxtabs__Layout.b832af3b.async.js",558],["565.b1a57ede.async.js",565],["p__404.a52587bb.async.js",571],["635.973728c8.async.js",635],["821.b970c16a.async.js",821],["838.1fdf35ab.async.js",838],["p__dict__index.1a76ccc3.async.js",918],["p__plantModel__process.2e985b3e.async.js",988],["p__productLine__line.74e003b9.async.js",990]],"r":{"/*":[27,29],"/":[14,19,25,6,11,12,29,30],"/user/login":[3,4],"/system/user":[6,7,23,24,29,25,11,12,30],"/system/role":[1,6,7,29,25,11,12,30],"/system/module":[6,7,8,9,29,25,11,12,30],"/system/dict":[6,7,29,31,25,11,12,30],"/deviceModal/deviceProduct":[6,7,15,16,29,25,11,12,30],"/deviceModal/deviceinfo":[2,6,7,29,25,11,12,30],"/factory/process":[6,7,29,32,25,11,12,30],"/factory/line":[6,7,26,28,29,33,25,11,12,30],"/production/materials":[6,7,10,29,25,11,12,30],"/production/godown":[6,7,20,29,25,11,12,30],"/production/final":[0,6,7,14,21,22,28,29,25,11,12,30],"/work/workPlan":[5,6,7,29,25,11,12,30],"/work/workInfo":[0,6,7,14,17,18,29,25,11,12,30]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); \ No newline at end of file +!function(){"use strict";var t="/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"ant-design-pro","b":"webpack","f":[["20.ba2fc27d.async.js",20],["p__system__role__index.455b2d03.async.js",24],["p__deviceInfo__index.8878b771.async.js",36],["p__user__login__index.26100c69.chunk.css",37],["p__user__login__index.b934e735.async.js",37],["p__workInfo__plan.49094d04.async.js",43],["119.4e6a5656.async.js",119],["145.782fdda3.async.js",145],["p__system__module__index.ef46db37.chunk.css",257],["p__system__module__index.210b5a12.async.js",257],["p__materials__index.8b1d798e.async.js",262],["t__plugin-layout__Layout.5012e1ab.chunk.css",301],["t__plugin-layout__Layout.2c017a91.async.js",301],["390.c53868f3.async.js",390],["393.e127e60f.async.js",393],["p__deviceProductInfo__index.835c0c6c.chunk.css",402],["p__deviceProductInfo__index.7ef65f5e.async.js",402],["p__workInfo__index.a5160833.chunk.css",420],["p__workInfo__index.c04c64de.async.js",420],["p__welcome__index.dde73410.async.js",446],["p__stock__index.64bdcafa.async.js",450],["p__final__index.49759dc4.chunk.css",460],["p__final__index.817dee2e.async.js",460],["p__system__user__index.695d982e.chunk.css",472],["p__system__user__index.60325376.async.js",472],["t__plugin-maxtabs__Layout.b832af3b.async.js",558],["565.b1a57ede.async.js",565],["p__404.a52587bb.async.js",571],["635.973728c8.async.js",635],["821.b970c16a.async.js",821],["838.1fdf35ab.async.js",838],["p__dict__index.1a76ccc3.async.js",918],["p__plantModel__process.2e985b3e.async.js",988],["p__productLine__line.74e003b9.async.js",990]],"r":{"/*":[27,29],"/":[14,19,25,6,11,12,29,30],"/user/login":[3,4],"/system/user":[6,7,23,24,29,25,11,12,30],"/system/role":[1,6,7,29,25,11,12,30],"/system/module":[6,7,8,9,29,25,11,12,30],"/system/dict":[6,7,29,31,25,11,12,30],"/deviceModal/deviceProduct":[6,7,15,16,29,25,11,12,30],"/deviceModal/deviceinfo":[2,6,7,29,25,11,12,30],"/factory/process":[6,7,29,32,25,11,12,30],"/factory/line":[6,7,26,28,29,33,25,11,12,30],"/production/materials":[6,7,10,29,25,11,12,30],"/production/godown":[6,7,20,29,25,11,12,30],"/production/final":[0,6,7,14,21,22,28,29,25,11,12,30],"/work/workPlan":[5,6,7,29,25,11,12,30],"/work/workInfo":[0,6,7,14,17,18,29,25,11,12,30]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); \ No newline at end of file diff --git a/frontend/dist/umi.7fa0d11b.js b/frontend/dist/umi.0d24bd5c.js similarity index 99% rename from frontend/dist/umi.7fa0d11b.js rename to frontend/dist/umi.0d24bd5c.js index 9c907b1..182e3ec 100644 --- a/frontend/dist/umi.7fa0d11b.js +++ b/frontend/dist/umi.0d24bd5c.js @@ -298,7 +298,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `:case"\u2028":case"\u2029":break;case"0":if(z(_,x))return;a+="\0";break;case"x":if(P=T(_,x,x+2),P===-1)return;x+=2,a+=i(P);break;case"u":if(x<_.length&&f(_,x)==="{"){var U=v(_,"}",++x);if(U===-1)return;P=T(_,x,U),x=U+1}else P=T(_,x,x+4),x+=4;if(P===-1||P>1114111)return;a+=s(P);break;default:if(z(A,0))return;a+=A}r=x}return a+d(_,r)}},63514:function(h,g,e){"use strict";var t=e(19037),o=e(3689),i=e(3615),s=e(72532),f=e(88563),m=e(50806),v=t.structuredClone;h.exports=!!v&&!o(function(){if(f&&i>92||m&&i>94||s&&i>97)return!1;var d=new ArrayBuffer(8),p=v(d,{transfer:[d]});return d.byteLength!==0||p.byteLength!==8})},50146:function(h,g,e){"use strict";var t=e(3615),o=e(3689),i=e(19037),s=i.String;h.exports=!!Object.getOwnPropertySymbols&&!o(function(){var f=Symbol("symbol detection");return!s(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&t&&t<41})},18992:function(h,g,e){"use strict";var t=e(76058),o=e(68844),i=t("Symbol"),s=i.keyFor,f=o(i.prototype.valueOf);h.exports=i.isRegisteredSymbol||function(v){try{return s(f(v))!==void 0}catch(d){return!1}}},8957:function(h,g,e){"use strict";for(var t=e(83430),o=e(76058),i=e(68844),s=e(30734),f=e(44201),m=o("Symbol"),v=m.isWellKnownSymbol,d=o("Object","getOwnPropertyNames"),p=i(m.prototype.valueOf),C=t("wks"),S=0,b=d(m),y=b.length;S0?o(t(i),9007199254740991):0}},90690:function(h,g,e){"use strict";var t=e(74684),o=Object;h.exports=function(i){return o(t(i))}},83250:function(h,g,e){"use strict";var t=e(15904),o=RangeError;h.exports=function(i,s){var f=t(i);if(f%s)throw new o("Wrong offset");return f}},15904:function(h,g,e){"use strict";var t=e(68700),o=RangeError;h.exports=function(i){var s=t(i);if(s<0)throw new o("The argument can't be less than 0");return s}},88732:function(h,g,e){"use strict";var t=e(22615),o=e(48999),i=e(30734),s=e(54849),f=e(35899),m=e(44201),v=TypeError,d=m("toPrimitive");h.exports=function(p,C){if(!o(p)||i(p))return p;var S=s(p,d),b;if(S){if(C===void 0&&(C="default"),b=t(S,p,C),!o(b)||i(b))return b;throw new v("Can't convert object to primitive value")}return C===void 0&&(C="number"),f(p,C)}},18360:function(h,g,e){"use strict";var t=e(88732),o=e(30734);h.exports=function(i){var s=t(i,"string");return o(s)?s:s+""}},2939:function(h,g,e){"use strict";var t=e(76058),o=e(69985),i=e(9603),s=e(48999),f=t("Set"),m=function(v){return s(v)&&typeof v.size=="number"&&o(v.has)&&o(v.keys)};h.exports=function(v){return m(v)?v:i(v)?new f(v):v}},23043:function(h,g,e){"use strict";var t=e(44201),o=t("toStringTag"),i={};i[o]="z",h.exports=String(i)==="[object z]"},34327:function(h,g,e){"use strict";var t=e(50926),o=String;h.exports=function(i){if(t(i)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return o(i)}},87191:function(h){"use strict";var g=Math.round;h.exports=function(e){var t=g(e);return t<0?0:t>255?255:t&255}},21905:function(h,g,e){"use strict";var t=e(50806);h.exports=function(o){try{if(t)return Function('return require("'+o+'")')()}catch(i){}}},23691:function(h){"use strict";var g=String;h.exports=function(e){try{return g(e)}catch(t){return"Object"}}},20716:function(h,g,e){"use strict";var t=e(59976),o=e(47338);h.exports=function(i,s){return t(o(i),s)}},47338:function(h,g,e){"use strict";var t=e(54872),o=e(76373),i=t.aTypedArrayConstructor,s=t.getTypedArrayConstructor;h.exports=function(f){return i(o(f,s(f)))}},14630:function(h,g,e){"use strict";var t=e(68844),o=0,i=Math.random(),s=t(1 .toString);h.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+s(++o+i,36)}},76837:function(h,g,e){"use strict";var t=e(3689),o=e(44201),i=e(67697),s=e(53931),f=o("iterator");h.exports=!t(function(){var m=new URL("b?a=1&b=2&c=3","http://a"),v=m.searchParams,d=new URLSearchParams("a=1&a=2&b=3"),p="";return m.pathname="c%20d",v.forEach(function(C,S){v.delete("b"),p+=S+C}),d.delete("a",2),d.delete("b",void 0),s&&(!m.toJSON||!d.has("a",1)||d.has("a",2)||!d.has("a",void 0)||d.has("b"))||!v.size&&(s||!i)||!v.sort||m.href!=="http://a/c%20d?a=1&c=3"||v.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!v[f]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||p!=="a1c3"||new URL("http://x",void 0).host!=="x"})},39525:function(h,g,e){"use strict";var t=e(50146);h.exports=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},15648:function(h,g,e){"use strict";var t=e(67697),o=e(3689);h.exports=t&&o(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},21500:function(h){"use strict";var g=TypeError;h.exports=function(e,t){if(ea&&C(J,arguments[a]),J});if(L.prototype=A,x!=="Error"?f?f(L,U):m(L,U,{name:!0}):b&&_ in P&&(v(L,P,_),v(L,P,"prepareStackTrace")),m(L,P),!y)try{A.name!==x&&i(A,"name",x),A.constructor=L}catch(k){}return L}}},54927:function(h,g,e){"use strict";var t=e(79989),o=e(76058),i=e(61735),s=e(3689),f=e(51064),m="AggregateError",v=o(m),d=!s(function(){return v([1]).errors[0]!==1})&&s(function(){return v([1],m,{cause:7}).cause!==7});t({global:!0,constructor:!0,arity:2,forced:d},{AggregateError:f(m,function(p){return function(S,b){return i(p,this,arguments)}},d,!0)})},39382:function(h,g,e){"use strict";var t=e(79989),o=e(23622),i=e(61868),s=e(49385),f=e(8758),m=e(25391),v=e(75773),d=e(75684),p=e(62570),C=e(65411),S=e(18734),b=e(13841),y=e(44201),E=y("toStringTag"),z=Error,T=[].push,M=function(r,x){var P=o(_,this),A;s?A=s(new z,P?i(this):_):(A=P?this:m(_),v(A,E,"Error")),x!==void 0&&v(A,"message",b(x)),C(A,M,A.stack,1),arguments.length>2&&p(A,arguments[2]);var U=[];return S(r,T,{that:U}),v(A,"errors",U),A};s?s(M,z):f(M,z,{name:!0});var _=M.prototype=m(z.prototype,{constructor:d(1,M),message:d(1,""),name:d(1,"AggregateError")});t({global:!0,constructor:!0,arity:2},{AggregateError:M})},95879:function(h,g,e){"use strict";e(39382)},92176:function(h,g,e){"use strict";var t=e(79989),o=e(90690),i=e(6310),s=e(68700),f=e(87370);t({target:"Array",proto:!0},{at:function(v){var d=o(this),p=i(d),C=s(v),S=C>=0?C:p+C;return S<0||S>=p?void 0:d[S]}}),f("at")},93383:function(h,g,e){"use strict";var t=e(79989),o=e(61969).findLastIndex,i=e(87370);t({target:"Array",proto:!0},{findLastIndex:function(f){return o(this,f,arguments.length>1?arguments[1]:void 0)}}),i("findLastIndex")},59867:function(h,g,e){"use strict";var t=e(79989),o=e(61969).findLast,i=e(87370);t({target:"Array",proto:!0},{findLast:function(f){return o(this,f,arguments.length>1?arguments[1]:void 0)}}),i("findLast")},70560:function(h,g,e){"use strict";var t=e(79989),o=e(90690),i=e(6310),s=e(5649),f=e(55565),m=e(3689),v=m(function(){return[].push.call({length:4294967296},1)!==4294967297}),d=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(C){return C instanceof TypeError}},p=v||!d();t({target:"Array",proto:!0,arity:1,forced:p},{push:function(S){var b=o(this),y=i(b),E=arguments.length;f(y+E);for(var z=0;z79&&s<83,v=m||!i("reduceRight");t({target:"Array",proto:!0,forced:v},{reduceRight:function(p){return o(this,p,arguments.length,arguments.length>1?arguments[1]:void 0)}})},278:function(h,g,e){"use strict";var t=e(79989),o=e(88820).left,i=e(16834),s=e(3615),f=e(50806),m=!f&&s>79&&s<83,v=m||!i("reduce");t({target:"Array",proto:!0,forced:v},{reduce:function(p){var C=arguments.length;return o(this,p,C,C>1?arguments[1]:void 0)}})},29830:function(h,g,e){"use strict";var t=e(79989),o=e(26166),i=e(65290),s=e(87370),f=Array;t({target:"Array",proto:!0},{toReversed:function(){return o(i(this),f)}}),s("toReversed")},12894:function(h,g,e){"use strict";var t=e(79989),o=e(68844),i=e(10509),s=e(65290),f=e(59976),m=e(88277),v=e(87370),d=Array,p=o(m("Array","sort"));t({target:"Array",proto:!0},{toSorted:function(S){S!==void 0&&i(S);var b=s(this),y=f(d,b);return p(y,S)}}),v("toSorted")},93530:function(h,g,e){"use strict";var t=e(79989),o=e(87370),i=e(55565),s=e(6310),f=e(27578),m=e(65290),v=e(68700),d=Array,p=Math.max,C=Math.min;t({target:"Array",proto:!0},{toSpliced:function(b,y){var E=m(this),z=s(E),T=f(b,z),M=arguments.length,_=0,a,r,x,P;for(M===0?a=r=0:M===1?(a=0,r=z-T):(a=M-2,r=C(p(v(y),0),z-T)),x=i(z+a-r),P=d(x);_=0?y:b+y;return E<0||E>=b?void 0:v(S,E)}})},12281:function(h,g,e){"use strict";var t=e(79989),o=e(68844),i=e(74684),s=e(34327),f=o("".charCodeAt);t({target:"String",proto:!0},{isWellFormed:function(){for(var v=s(i(this)),d=v.length,p=0;p=56320||++p>=d||(f(v,p)&64512)!==56320))return!1}return!0}})},56532:function(h,g,e){"use strict";var t=e(79989),o=e(22615),i=e(68844),s=e(74684),f=e(69985),m=e(981),v=e(91245),d=e(34327),p=e(54849),C=e(63477),S=e(27017),b=e(44201),y=e(53931),E=b("replace"),z=TypeError,T=i("".indexOf),M=i("".replace),_=i("".slice),a=Math.max,r=function(x,P,A){return A>x.length?-1:P===""?A:T(x,P,A)};t({target:"String",proto:!0},{replaceAll:function(P,A){var U=s(this),L,k,G,W,J,oe,le,ie,D,N=0,B=0,H="";if(!m(P)){if(L=v(P),L&&(k=d(s(C(P))),!~T(k,"g")))throw new z("`.replaceAll` does not allow non-global regexes");if(G=p(P,E),G)return o(G,P,U,A);if(y&&L)return M(d(U),P,A)}for(W=d(U),J=d(P),oe=f(A),oe||(A=d(A)),le=J.length,ie=a(1,le),N=r(W,J,0);N!==-1;)D=oe?d(A(J,N,W)):S(J,W,N,[],void 0,A),H+=_(W,B,N)+D,B=N+le,N=r(W,J,N+ie);return B=56320||_+1>=T||(p(z,_+1)&64512)!==56320?M[_]=b:(M[_]=d(z,_),M[++_]=d(z,_))}return C(M,"")}})},95194:function(h,g,e){"use strict";var t=e(54872),o=e(6310),i=e(68700),s=t.aTypedArray,f=t.exportTypedArrayMethod;f("at",function(v){var d=s(this),p=o(d),C=i(v),S=C>=0?C:p+C;return S<0||S>=p?void 0:d[S]})},82:function(h,g,e){"use strict";var t=e(54872),o=e(61969).findLastIndex,i=t.aTypedArray,s=t.exportTypedArrayMethod;s("findLastIndex",function(m){return o(i(this),m,arguments.length>1?arguments[1]:void 0)})},20522:function(h,g,e){"use strict";var t=e(54872),o=e(61969).findLast,i=t.aTypedArray,s=t.exportTypedArrayMethod;s("findLast",function(m){return o(i(this),m,arguments.length>1?arguments[1]:void 0)})},79976:function(h,g,e){"use strict";var t=e(19037),o=e(22615),i=e(54872),s=e(6310),f=e(83250),m=e(90690),v=e(3689),d=t.RangeError,p=t.Int8Array,C=p&&p.prototype,S=C&&C.set,b=i.aTypedArray,y=i.exportTypedArrayMethod,E=!v(function(){var T=new Uint8ClampedArray(2);return o(S,T,{length:1,0:3},1),T[1]!==3}),z=E&&i.NATIVE_ARRAY_BUFFER_VIEWS&&v(function(){var T=new p(2);return T.set(1),T.set("2",1),T[0]!==0||T[1]!==2});y("set",function(M){b(this);var _=f(arguments.length>1?arguments[1]:void 0,1),a=m(M);if(E)return o(S,this,a,_);var r=this.length,x=s(a),P=0;if(x+_>r)throw new d("Wrong length");for(;P1?arguments[1]:void 0)}}),i("filterOut")},54883:function(h,g,e){"use strict";var t=e(79989),o=e(2960).filterReject,i=e(87370);t({target:"Array",proto:!0,forced:!0},{filterReject:function(f){return o(this,f,arguments.length>1?arguments[1]:void 0)}}),i("filterReject")},18073:function(h,g,e){"use strict";var t=e(79989),o=e(2231);t({target:"Array",stat:!0},{fromAsync:o})},96882:function(h,g,e){"use strict";var t=e(79989),o=e(16834),i=e(87370),s=e(44416),f=e(53931);t({target:"Array",proto:!0,name:"groupToMap",forced:f||!o("groupByToMap")},{groupByToMap:s}),i("groupByToMap")},22525:function(h,g,e){"use strict";var t=e(79989),o=e(64976),i=e(16834),s=e(87370);t({target:"Array",proto:!0,forced:!i("groupBy")},{groupBy:function(m){var v=arguments.length>1?arguments[1]:void 0;return o(this,m,v)}}),s("groupBy")},32539:function(h,g,e){"use strict";var t=e(79989),o=e(87370),i=e(44416),s=e(53931);t({target:"Array",proto:!0,forced:s},{groupToMap:i}),o("groupToMap")},36208:function(h,g,e){"use strict";var t=e(79989),o=e(64976),i=e(87370);t({target:"Array",proto:!0},{group:function(f){var m=arguments.length>1?arguments[1]:void 0;return o(this,f,m)}}),i("group")},5082:function(h,g,e){"use strict";var t=e(79989),o=e(92297),i=Object.isFrozen,s=function(f,m){if(!i||!o(f)||!i(f))return!1;for(var v=0,d=f.length,p;v1?arguments[1]:!1);return i([v&255,v>>8&255],10)}})},89246:function(h,g,e){"use strict";var t=e(79989),o=e(68844),i=o(DataView.prototype.getUint8);t({target:"DataView",proto:!0,forced:!0},{getUint8Clamped:function(f){return i(this,f)}})},31186:function(h,g,e){"use strict";var t=e(79989),o=e(68844),i=e(50926),s=e(19842),f=e(15477).pack,m=e(76043),v=TypeError,d=o(DataView.prototype.setUint16);t({target:"DataView",proto:!0},{setFloat16:function(C,S){if(i(this)!=="DataView")throw new v("Incorrect receiver");var b=s(C),y=f(m(S),10,2);return d(this,b,y[1]<<8|y[0],arguments.length>2?arguments[2]:!1)}})},9279:function(h,g,e){"use strict";var t=e(79989),o=e(68844),i=e(50926),s=e(19842),f=e(87191),m=TypeError,v=o(DataView.prototype.setUint8);t({target:"DataView",proto:!0,forced:!0},{setUint8Clamped:function(p,C){if(i(this)!=="DataView")throw new m("Incorrect receiver");var S=s(p);return v(this,S,f(C))}})},26725:function(h,g,e){"use strict";var t=e(79989),o=e(67697),i=e(76058),s=e(10509),f=e(767),m=e(11880),v=e(6045),d=e(62148),p=e(44201),C=e(618),S=e(29199),b=i("SuppressedError"),y=ReferenceError,E=p("dispose"),z=p("toStringTag"),T="DisposableStack",M=C.set,_=C.getterFor(T),a="sync-dispose",r="disposed",x="pending",P=function(L){var k=_(L);if(k.state===r)throw new y(T+" already disposed");return k},A=function(){M(f(this,U),{type:T,state:x,stack:[]}),o||(this.disposed=!1)},U=A.prototype;v(U,{dispose:function(){var k=_(this);if(k.state!==r){k.state=r,o||(this.disposed=!0);for(var G=k.stack,W=G.length,J=!1,oe;W;){var le=G[--W];G[W]=null;try{le()}catch(ie){J?oe=new b(ie,oe):(J=!0,oe=ie)}}if(k.stack=null,J)throw oe}},use:function(k){return S(P(this),k,a),k},adopt:function(k,G){var W=P(this);return s(G),S(W,void 0,a,function(){G(k)}),k},defer:function(k){var G=P(this);s(k),S(G,void 0,a,k)},move:function(){var k=P(this),G=new A;return _(G).stack=k.stack,k.stack=[],k.state=r,o||(this.disposed=!0),G}}),o&&d(U,"disposed",{configurable:!0,get:function(){return _(this).state===r}}),m(U,E,U.dispose,{name:"dispose"}),m(U,z,T,{nonWritable:!0}),t({global:!0,constructor:!0},{DisposableStack:A})},26125:function(h,g,e){"use strict";var t=e(79989),o=e(33505);t({target:"Function",proto:!0,forced:!0},{demethodize:o})},2820:function(h,g,e){"use strict";var t=e(79989),o=e(68844),i=e(69985),s=e(6738),f=e(36812),m=e(67697),v=Object.getOwnPropertyDescriptor,d=/^\s*class\b/,p=o(d.exec),C=function(S){try{if(!m||!p(d,s(S)))return!1}catch(y){}var b=v(S,"prototype");return!!b&&f(b,"writable")&&!b.writable};t({target:"Function",stat:!0,sham:!0,forced:!0},{isCallable:function(b){return i(b)&&!C(b)}})},62517:function(h,g,e){"use strict";var t=e(79989),o=e(19429);t({target:"Function",stat:!0,forced:!0},{isConstructor:o})},54947:function(h,g,e){"use strict";var t=e(44201),o=e(72560).f,i=t("metadata"),s=Function.prototype;s[i]===void 0&&o(s,i,{value:null})},74993:function(h,g,e){"use strict";var t=e(79989),o=e(33505);t({target:"Function",proto:!0,forced:!0,name:"demethodize"},{unThis:o})},50647:function(h,g,e){"use strict";var t=e(79989),o=e(47082);t({target:"Iterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:o})},67602:function(h,g,e){"use strict";var t=e(79989),o=e(19037),i=e(767),s=e(85027),f=e(69985),m=e(61868),v=e(62148),d=e(76522),p=e(3689),C=e(36812),S=e(44201),b=e(12013).IteratorPrototype,y=e(67697),E=e(53931),z="constructor",T="Iterator",M=S("toStringTag"),_=TypeError,a=o[T],r=E||!f(a)||a.prototype!==b||!p(function(){a({})}),x=function(){if(i(this,b),m(this)===b)throw new _("Abstract class Iterator not directly constructable")},P=function(A,U){y?v(b,A,{configurable:!0,get:function(){return U},set:function(L){if(s(this),this===b)throw new _("You can't redefine this property");C(this,A)?this[A]=L:d(this,A,L)}}):b[A]=U};C(b,M)||P(M,T),(r||!C(b,z)||b[z]===Object)&&P(z,x),x.prototype=b,t({global:!0,constructor:!0,forced:r},{Iterator:x})},82639:function(h,g,e){"use strict";var t=e(22615),o=e(11880),i=e(54849),s=e(36812),f=e(44201),m=e(12013).IteratorPrototype,v=f("dispose");s(m,v)||o(m,v,function(){var d=i(this,"return");d&&t(d,this)})},63986:function(h,g,e){"use strict";var t=e(79989),o=e(22615),i=e(85027),s=e(22302),f=e(4654),m=e(15904),v=e(65419),d=e(53931),p=v(function(){for(var C=this.iterator,S=this.next,b,y;this.remaining;)if(this.remaining--,b=i(o(S,C)),y=this.done=!!b.done,y)return;if(b=i(o(S,C)),y=this.done=!!b.done,!y)return b.value});t({target:"Iterator",proto:!0,real:!0,forced:d},{drop:function(S){i(this);var b=m(f(+S));return new p(s(this),{remaining:b})}})},16054:function(h,g,e){"use strict";var t=e(79989),o=e(18734),i=e(10509),s=e(85027),f=e(22302);t({target:"Iterator",proto:!0,real:!0},{every:function(v){s(this),i(v);var d=f(this),p=0;return!o(d,function(C,S){if(!v(C,p++))return S()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},53476:function(h,g,e){"use strict";var t=e(79989),o=e(22615),i=e(10509),s=e(85027),f=e(22302),m=e(65419),v=e(71228),d=e(53931),p=m(function(){for(var C=this.iterator,S=this.predicate,b=this.next,y,E,z;;){if(y=s(o(b,C)),E=this.done=!!y.done,E)return;if(z=y.value,v(C,S,[z,this.counter++],!0))return z}});t({target:"Iterator",proto:!0,real:!0,forced:d},{filter:function(S){return s(this),i(S),new p(f(this),{predicate:S})}})},70928:function(h,g,e){"use strict";var t=e(79989),o=e(18734),i=e(10509),s=e(85027),f=e(22302);t({target:"Iterator",proto:!0,real:!0},{find:function(v){s(this),i(v);var d=f(this),p=0;return o(d,function(C,S){if(v(C,p++))return S(C)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},49411:function(h,g,e){"use strict";var t=e(79989),o=e(22615),i=e(10509),s=e(85027),f=e(22302),m=e(36752),v=e(65419),d=e(72125),p=e(53931),C=v(function(){for(var S=this.iterator,b=this.mapper,y,E;;){if(E=this.inner)try{if(y=s(o(E.next,E.iterator)),!y.done)return y.value;this.inner=null}catch(z){d(S,"throw",z)}if(y=s(o(this.next,S)),this.done=!!y.done)return;try{this.inner=m(b(y.value,this.counter++),!1)}catch(z){d(S,"throw",z)}}});t({target:"Iterator",proto:!0,real:!0,forced:p},{flatMap:function(b){return s(this),i(b),new C(f(this),{mapper:b,inner:null})}})},30005:function(h,g,e){"use strict";var t=e(79989),o=e(18734),i=e(10509),s=e(85027),f=e(22302);t({target:"Iterator",proto:!0,real:!0},{forEach:function(v){s(this),i(v);var d=f(this),p=0;o(d,function(C){v(C,p++)},{IS_RECORD:!0})}})},73494:function(h,g,e){"use strict";var t=e(79989),o=e(22615),i=e(90690),s=e(23622),f=e(12013).IteratorPrototype,m=e(65419),v=e(36752),d=e(53931),p=m(function(){return o(this.next,this.iterator)},!0);t({target:"Iterator",stat:!0,forced:d},{from:function(S){var b=v(typeof S=="string"?i(S):S,!0);return s(f,b.iterator)?b.iterator:new p(b)}})},94564:function(h,g,e){"use strict";var t=e(79989),o=e(47082);t({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:o})},41792:function(h,g,e){"use strict";var t=e(79989),o=e(88983),i=e(53931);t({target:"Iterator",proto:!0,real:!0,forced:i},{map:o})},5985:function(h,g,e){"use strict";var t=e(79989),o=e(98554),i=TypeError;t({target:"Iterator",stat:!0,forced:!0},{range:function(f,m,v){if(typeof f=="number")return new o(f,m,v,"number",0,1);if(typeof f=="bigint")return new o(f,m,v,"bigint",BigInt(0),BigInt(1));throw new i("Incorrect Iterator.range arguments")}})},31107:function(h,g,e){"use strict";var t=e(79989),o=e(18734),i=e(10509),s=e(85027),f=e(22302),m=TypeError;t({target:"Iterator",proto:!0,real:!0},{reduce:function(d){s(this),i(d);var p=f(this),C=arguments.length<2,S=C?void 0:arguments[1],b=0;if(o(p,function(y){C?(C=!1,S=y):S=d(S,y,b),b++},{IS_RECORD:!0}),C)throw new m("Reduce of empty iterator with no initial value");return S}})},28244:function(h,g,e){"use strict";var t=e(79989),o=e(18734),i=e(10509),s=e(85027),f=e(22302);t({target:"Iterator",proto:!0,real:!0},{some:function(v){s(this),i(v);var d=f(this),p=0;return o(d,function(C,S){if(v(C,p++))return S()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},3645:function(h,g,e){"use strict";var t=e(79989),o=e(22615),i=e(85027),s=e(22302),f=e(4654),m=e(15904),v=e(65419),d=e(72125),p=e(53931),C=v(function(){var S=this.iterator;if(!this.remaining--)return this.done=!0,d(S,"normal",void 0);var b=i(o(this.next,S)),y=this.done=!!b.done;if(!y)return b.value});t({target:"Iterator",proto:!0,real:!0,forced:p},{take:function(b){i(this);var y=m(f(+b));return new C(s(this),{remaining:y})}})},58429:function(h,g,e){"use strict";var t=e(79989),o=e(85027),i=e(18734),s=e(22302),f=[].push;t({target:"Iterator",proto:!0,real:!0},{toArray:function(){var v=[];return i(s(o(this)),f,{that:v,IS_RECORD:!0}),v}})},39569:function(h,g,e){"use strict";var t=e(79989),o=e(85027),i=e(29019),s=e(40219),f=e(22302),m=e(53931);t({target:"Iterator",proto:!0,real:!0,forced:m},{toAsync:function(){return new s(f(new i(f(o(this)))))}})},74320:function(h,g,e){"use strict";var t=e(79989),o=e(22818),i=e(55670);t({target:"JSON",stat:!0,forced:!o},{isRawJSON:i})},20691:function(h,g,e){"use strict";var t=e(79989),o=e(67697),i=e(19037),s=e(76058),f=e(68844),m=e(22615),v=e(69985),d=e(48999),p=e(92297),C=e(36812),S=e(34327),b=e(6310),y=e(76522),E=e(3689),z=e(46675),T=e(50146),M=i.JSON,_=i.Number,a=i.SyntaxError,r=M&&M.parse,x=s("Object","keys"),P=Object.getOwnPropertyDescriptor,A=f("".charAt),U=f("".slice),L=f(/./.exec),k=f([].push),G=/^\d$/,W=/^[1-9]$/,J=/^(?:-|\d)$/,oe=/^[\t\n\r ]$/,le=0,ie=1,D=function(te,X){te=S(te);var re=new F(te,0,""),me=re.parse(),Oe=me.value,pe=re.skip(oe,me.end);if(pe1?arguments[1]:void 0);return s(v,function(p,C){if(!d(p,C,v))return!1},!0)!==!1}})},41099:function(h,g,e){"use strict";var t=e(79989),o=e(54071),i=e(9945),s=e(83914),f=e(10613),m=s.Map,v=s.set;t({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(p){var C=i(this),S=o(p,arguments.length>1?arguments[1]:void 0),b=new m;return f(C,function(y,E){S(y,E,C)&&v(b,E,y)}),b}})},20876:function(h,g,e){"use strict";var t=e(79989),o=e(54071),i=e(9945),s=e(10613);t({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(m){var v=i(this),d=o(m,arguments.length>1?arguments[1]:void 0),p=s(v,function(C,S){if(d(C,S,v))return{key:S}},!0);return p&&p.key}})},26320:function(h,g,e){"use strict";var t=e(79989),o=e(54071),i=e(9945),s=e(10613);t({target:"Map",proto:!0,real:!0,forced:!0},{find:function(m){var v=i(this),d=o(m,arguments.length>1?arguments[1]:void 0),p=s(v,function(C,S){if(d(C,S,v))return{value:C}},!0);return p&&p.value}})},6052:function(h,g,e){"use strict";var t=e(79989),o=e(28737);t({target:"Map",stat:!0,forced:!0},{from:o})},76791:function(h,g,e){"use strict";var t=e(79989),o=e(68600),i=e(9945),s=e(10613);t({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(m){return s(i(this),function(v){if(o(v,m))return!0},!0)===!0}})},75341:function(h,g,e){"use strict";var t=e(79989),o=e(22615),i=e(18734),s=e(69985),f=e(10509),m=e(83914).Map;t({target:"Map",stat:!0,forced:!0},{keyBy:function(d,p){var C=s(this)?this:m,S=new C;f(p);var b=f(S.set);return i(d,function(y){o(b,S,p(y),y)}),S}})},40019:function(h,g,e){"use strict";var t=e(79989),o=e(9945),i=e(10613);t({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(f){var m=i(o(this),function(v,d){if(v===f)return{key:d}},!0);return m&&m.key}})},92343:function(h,g,e){"use strict";var t=e(79989),o=e(54071),i=e(9945),s=e(83914),f=e(10613),m=s.Map,v=s.set;t({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(p){var C=i(this),S=o(p,arguments.length>1?arguments[1]:void 0),b=new m;return f(C,function(y,E){v(b,S(y,E,C),y)}),b}})},51096:function(h,g,e){"use strict";var t=e(79989),o=e(54071),i=e(9945),s=e(83914),f=e(10613),m=s.Map,v=s.set;t({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(p){var C=i(this),S=o(p,arguments.length>1?arguments[1]:void 0),b=new m;return f(C,function(y,E){v(b,E,S(y,E,C))}),b}})},4314:function(h,g,e){"use strict";var t=e(79989),o=e(9945),i=e(18734),s=e(83914).set;t({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(m){for(var v=o(this),d=arguments.length,p=0;p1?arguments[1]:void 0);return s(v,function(p,C){if(d(p,C,v))return!0},!0)===!0}})},24453:function(h,g,e){"use strict";var t=e(79989),o=e(41432);t({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:o})},64078:function(h,g,e){"use strict";var t=e(79989),o=e(10509),i=e(9945),s=e(83914),f=TypeError,m=s.get,v=s.has,d=s.set;t({target:"Map",proto:!0,real:!0,forced:!0},{update:function(C,S){var b=i(this),y=arguments.length;o(S);var E=v(b,C);if(!E&&y<3)throw new f("Updating absent value");var z=E?m(b,C):o(y>2?arguments[2]:void 0)(C,b);return d(b,C,S(z,C,b)),b}})},66190:function(h,g,e){"use strict";var t=e(79989),o=e(41432);t({target:"Map",proto:!0,real:!0,forced:!0},{upsert:o})},25684:function(h,g,e){"use strict";var t=e(79989),o=Math.min,i=Math.max;t({target:"Math",stat:!0,forced:!0},{clamp:function(f,m,v){return o(v,i(m,f))}})},31789:function(h,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180})},8677:function(h,g,e){"use strict";var t=e(79989),o=180/Math.PI;t({target:"Math",stat:!0,forced:!0},{degrees:function(s){return s*o}})},59151:function(h,g,e){"use strict";var t=e(79989),o=e(76043);t({target:"Math",stat:!0},{f16round:o})},346:function(h,g,e){"use strict";var t=e(79989),o=e(84463),i=e(37788);t({target:"Math",stat:!0,forced:!0},{fscale:function(f,m,v,d,p){return i(o(f,m,v,d,p))}})},91069:function(h,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,forced:!0},{iaddh:function(i,s,f,m){var v=i>>>0,d=s>>>0,p=f>>>0;return d+(m>>>0)+((v&p|(v|p)&~(v+p>>>0))>>>31)|0}})},18886:function(h,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,forced:!0},{imulh:function(i,s){var f=65535,m=+i,v=+s,d=m&f,p=v&f,C=m>>16,S=v>>16,b=(C*p>>>0)+(d*p>>>16);return C*S+(b>>16)+((d*S>>>0)+(b&f)>>16)}})},88065:function(h,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,forced:!0},{isubh:function(i,s,f,m){var v=i>>>0,d=s>>>0,p=f>>>0;return d-(m>>>0)-((~v&p|~(v^p)&v-p>>>0)>>>31)|0}})},68172:function(h,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})},60445:function(h,g,e){"use strict";var t=e(79989),o=Math.PI/180;t({target:"Math",stat:!0,forced:!0},{radians:function(s){return s*o}})},99457:function(h,g,e){"use strict";var t=e(79989),o=e(84463);t({target:"Math",stat:!0,forced:!0},{scale:o})},613:function(h,g,e){"use strict";var t=e(79989),o=e(85027),i=e(70046),s=e(30974),f=e(27807),m=e(618),v="Seeded Random",d=v+" Generator",p='Math.seededPRNG() argument should have a "seed" field with a finite value.',C=m.set,S=m.getterFor(d),b=TypeError,y=s(function(z){C(this,{type:d,seed:z%2147483647})},v,function(){var z=S(this),T=z.seed=(z.seed*1103515245+12345)%2147483647;return f((T&1073741823)/1073741823,!1)});t({target:"Math",stat:!0,forced:!0},{seededPRNG:function(z){var T=o(z).seed;if(!i(T))throw new b(p);return new y(T)}})},835:function(h,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,forced:!0},{signbit:function(i){var s=+i;return s===s&&s===0?1/s===-1/0:s<0}})},926:function(h,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,forced:!0},{umulh:function(i,s){var f=65535,m=+i,v=+s,d=m&f,p=v&f,C=m>>>16,S=v>>>16,b=(C*p>>>0)+(d*p>>>16);return C*S+(b>>>16)+((d*S>>>0)+(b&f)>>>16)}})},82899:function(h,g,e){"use strict";var t=e(79989),o=e(68844),i=e(68700),s="Invalid number representation",f="Invalid radix",m=RangeError,v=SyntaxError,d=TypeError,p=parseInt,C=Math.pow,S=/^[\d.a-z]+$/,b=o("".charAt),y=o(S.exec),E=o(1 .toString),z=o("".slice),T=o("".split);t({target:"Number",stat:!0,forced:!0},{fromString:function(_,a){var r=1;if(typeof _!="string")throw new d(s);if(!_.length)throw new v(s);if(b(_,0)==="-"&&(r=-1,_=z(_,1),!_.length))throw new v(s);var x=a===void 0?10:i(a);if(x<2||x>36)throw new m(f);if(!y(S,_))throw new v(s);var P=T(_,"."),A=p(P[0],x);if(P.length>1&&(A+=p(P[1],x)/C(x,P[1].length)),x===10&&E(A,x)!==_)throw new v(s);return r*A}})},29977:function(h,g,e){"use strict";var t=e(79989),o=e(98554);t({target:"Number",stat:!0,forced:!0},{range:function(s,f,m){return new o(s,f,m,"number",0,1)}})},31927:function(h,g,e){"use strict";var t=e(79989),o=e(42351);t({target:"Object",stat:!0,forced:!0},{iterateEntries:function(s){return new o(s,"entries")}})},77131:function(h,g,e){"use strict";var t=e(79989),o=e(42351);t({target:"Object",stat:!0,forced:!0},{iterateKeys:function(s){return new o(s,"keys")}})},55174:function(h,g,e){"use strict";var t=e(79989),o=e(42351);t({target:"Object",stat:!0,forced:!0},{iterateValues:function(s){return new o(s,"values")}})},63503:function(h,g,e){"use strict";var t=e(79989),o=e(22615),i=e(67697),s=e(14241),f=e(10509),m=e(85027),v=e(767),d=e(69985),p=e(981),C=e(48999),S=e(54849),b=e(11880),y=e(6045),E=e(62148),z=e(20920),T=e(44201),M=e(618),_=T("observable"),a="Observable",r="Subscription",x="SubscriptionObserver",P=M.getterFor,A=M.set,U=P(a),L=P(r),k=P(x),G=function(ie){this.observer=m(ie),this.cleanup=void 0,this.subscriptionObserver=void 0};G.prototype={type:r,clean:function(){var ie=this.cleanup;if(ie){this.cleanup=void 0;try{ie()}catch(D){z(D)}}},close:function(){if(!i){var ie=this.facade,D=this.subscriptionObserver;ie.closed=!0,D&&(D.closed=!0)}this.observer=void 0},isClosed:function(){return this.observer===void 0}};var W=function(ie,D){var N=A(this,new G(ie)),B;i||(this.closed=!1);try{(B=S(ie,"start"))&&o(B,ie,this)}catch(de){z(de)}if(!N.isClosed()){var H=N.subscriptionObserver=new J(N);try{var F=D(H),Y=F;p(F)||(N.cleanup=d(F.unsubscribe)?function(){Y.unsubscribe()}:f(F))}catch(de){H.error(de);return}N.isClosed()&&N.clean()}};W.prototype=y({},{unsubscribe:function(){var D=L(this);D.isClosed()||(D.close(),D.clean())}}),i&&E(W.prototype,"closed",{configurable:!0,get:function(){return L(this).isClosed()}});var J=function(ie){A(this,{type:x,subscriptionState:ie}),i||(this.closed=!1)};J.prototype=y({},{next:function(D){var N=k(this).subscriptionState;if(!N.isClosed()){var B=N.observer;try{var H=S(B,"next");H&&o(H,B,D)}catch(F){z(F)}}},error:function(D){var N=k(this).subscriptionState;if(!N.isClosed()){var B=N.observer;N.close();try{var H=S(B,"error");H?o(H,B,D):z(D)}catch(F){z(F)}N.clean()}},complete:function(){var D=k(this).subscriptionState;if(!D.isClosed()){var N=D.observer;D.close();try{var B=S(N,"complete");B&&o(B,N)}catch(H){z(H)}D.clean()}}}),i&&E(J.prototype,"closed",{configurable:!0,get:function(){return k(this).subscriptionState.isClosed()}});var oe=function(D){v(this,le),A(this,{type:a,subscriber:f(D)})},le=oe.prototype;y(le,{subscribe:function(D){var N=arguments.length;return new W(d(D)?{next:D,error:N>1?arguments[1]:void 0,complete:N>2?arguments[2]:void 0}:C(D)?D:{},U(this).subscriber)}}),b(le,_,function(){return this}),t({global:!0,constructor:!0,forced:!0},{Observable:oe}),s(a)},9818:function(h,g,e){"use strict";var t=e(79989),o=e(76058),i=e(22615),s=e(85027),f=e(19429),m=e(5185),v=e(54849),d=e(18734),p=e(44201),C=p("observable");t({target:"Observable",stat:!0,forced:!0},{from:function(b){var y=f(this)?this:o("Observable"),E=v(s(b),C);if(E){var z=s(i(E,b));return z.constructor===y?z:new y(function(M){return z.subscribe(M)})}var T=m(b);return new y(function(M){d(T,function(_,a){if(M.next(_),M.closed)return a()},{IS_ITERATOR:!0,INTERRUPTED:!0}),M.complete()})}})},76314:function(h,g,e){"use strict";e(63503),e(9818),e(38771)},38771:function(h,g,e){"use strict";var t=e(79989),o=e(76058),i=e(19429),s=o("Array");t({target:"Observable",stat:!0,forced:!0},{of:function(){for(var m=i(this)?this:o("Observable"),v=arguments.length,d=s(v),p=0;p?@[\\\\\\]^`{|}~"+s+"]","g");t({target:"RegExp",stat:!0,forced:!0},{escape:function(p){var C=i(p),S=f(C,0);return(S>47&&S<58?"\\x3":"")+m(C,v,"\\$&")}})},57282:function(h,g,e){"use strict";var t=e(79989),o=e(10029),i=e(61034).add;t({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var f=o(this),m=0,v=arguments.length;m1?arguments[1]:void 0);return s(v,function(p){if(!d(p,p,v))return!1},!0)!==!1}})},96986:function(h,g,e){"use strict";var t=e(79989),o=e(54071),i=e(10029),s=e(61034),f=e(48774),m=s.Set,v=s.add;t({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(p){var C=i(this),S=o(p,arguments.length>1?arguments[1]:void 0),b=new m;return f(C,function(y){S(y,y,C)&&v(b,y)}),b}})},95681:function(h,g,e){"use strict";var t=e(79989),o=e(54071),i=e(10029),s=e(48774);t({target:"Set",proto:!0,real:!0,forced:!0},{find:function(m){var v=i(this),d=o(m,arguments.length>1?arguments[1]:void 0),p=s(v,function(C){if(d(C,C,v))return{value:C}},!0);return p&&p.value}})},13781:function(h,g,e){"use strict";var t=e(79989),o=e(28737);t({target:"Set",stat:!0,forced:!0},{from:o})},98873:function(h,g,e){"use strict";var t=e(79989),o=e(22615),i=e(2939),s=e(72948);t({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(m){return o(s,this,i(m))}})},33442:function(h,g,e){"use strict";var t=e(79989),o=e(3689),i=e(72948),s=e(53234),f=!s("intersection")||o(function(){return Array.from(new Set([1,2,3]).intersection(new Set([3,2])))!=="3,2"});t({target:"Set",proto:!0,real:!0,forced:f},{intersection:i})},50308:function(h,g,e){"use strict";var t=e(79989),o=e(22615),i=e(2939),s=e(97795);t({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(m){return o(s,this,i(m))}})},61964:function(h,g,e){"use strict";var t=e(79989),o=e(97795),i=e(53234);t({target:"Set",proto:!0,real:!0,forced:!i("isDisjointFrom")},{isDisjointFrom:o})},18955:function(h,g,e){"use strict";var t=e(79989),o=e(22615),i=e(2939),s=e(26951);t({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(m){return o(s,this,i(m))}})},69878:function(h,g,e){"use strict";var t=e(79989),o=e(26951),i=e(53234);t({target:"Set",proto:!0,real:!0,forced:!i("isSubsetOf")},{isSubsetOf:o})},65115:function(h,g,e){"use strict";var t=e(79989),o=e(22615),i=e(2939),s=e(3894);t({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(m){return o(s,this,i(m))}})},52915:function(h,g,e){"use strict";var t=e(79989),o=e(3894),i=e(53234);t({target:"Set",proto:!0,real:!0,forced:!i("isSupersetOf")},{isSupersetOf:o})},19490:function(h,g,e){"use strict";var t=e(79989),o=e(68844),i=e(10029),s=e(48774),f=e(34327),m=o([].join),v=o([].push);t({target:"Set",proto:!0,real:!0,forced:!0},{join:function(p){var C=i(this),S=p===void 0?",":f(p),b=[];return s(C,function(y){v(b,y)}),m(b,S)}})},95752:function(h,g,e){"use strict";var t=e(79989),o=e(54071),i=e(10029),s=e(61034),f=e(48774),m=s.Set,v=s.add;t({target:"Set",proto:!0,real:!0,forced:!0},{map:function(p){var C=i(this),S=o(p,arguments.length>1?arguments[1]:void 0),b=new m;return f(C,function(y){v(b,S(y,y,C))}),b}})},32789:function(h,g,e){"use strict";var t=e(79989),o=e(1114);t({target:"Set",stat:!0,forced:!0},{of:o})},27913:function(h,g,e){"use strict";var t=e(79989),o=e(10509),i=e(10029),s=e(48774),f=TypeError;t({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(v){var d=i(this),p=arguments.length<2,C=p?void 0:arguments[1];if(o(v),s(d,function(S){p?(p=!1,C=S):C=v(C,S,S,d)}),p)throw new f("Reduce of empty set with no initial value");return C}})},6831:function(h,g,e){"use strict";var t=e(79989),o=e(54071),i=e(10029),s=e(48774);t({target:"Set",proto:!0,real:!0,forced:!0},{some:function(m){var v=i(this),d=o(m,arguments.length>1?arguments[1]:void 0);return s(v,function(p){if(d(p,p,v))return!0},!0)===!0}})},90243:function(h,g,e){"use strict";var t=e(79989),o=e(22615),i=e(2939),s=e(62289);t({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(m){return o(s,this,i(m))}})},97895:function(h,g,e){"use strict";var t=e(79989),o=e(62289),i=e(53234);t({target:"Set",proto:!0,real:!0,forced:!i("symmetricDifference")},{symmetricDifference:o})},98030:function(h,g,e){"use strict";var t=e(79989),o=e(22615),i=e(2939),s=e(75674);t({target:"Set",proto:!0,real:!0,forced:!0},{union:function(m){return o(s,this,i(m))}})},22275:function(h,g,e){"use strict";var t=e(79989),o=e(75674),i=e(53234);t({target:"Set",proto:!0,real:!0,forced:!i("union")},{union:o})},86220:function(h,g,e){"use strict";var t=e(79989),o=e(10730).charAt,i=e(74684),s=e(68700),f=e(34327);t({target:"String",proto:!0,forced:!0},{at:function(v){var d=f(i(this)),p=d.length,C=s(v),S=C>=0?C:p+C;return S<0||S>=p?void 0:o(d,S)}})},95853:function(h,g,e){"use strict";var t=e(79989),o=e(30974),i=e(27807),s=e(74684),f=e(34327),m=e(618),v=e(10730),d=v.codeAt,p=v.charAt,C="String Iterator",S=m.set,b=m.getterFor(C),y=o(function(z){S(this,{type:C,string:z,index:0})},"String",function(){var z=b(this),T=z.string,M=z.index,_;return M>=T.length?i(void 0,!0):(_=p(T,M),z.index+=_.length,i({codePoint:d(_,0),position:M},!1))});t({target:"String",proto:!0,forced:!0},{codePoints:function(){return new y(f(s(this)))}})},21917:function(h,g,e){"use strict";var t=e(79989),o=e(8195);t({target:"String",stat:!0,forced:!0},{cooked:o})},66084:function(h,g,e){"use strict";var t=e(71594),o=e(79989),i=e(98702),s=e(68844),f=e(61735),m=e(85027),v=e(90690),d=e(69985),p=e(6310),C=e(72560).f,S=e(9015),b=e(16803),y=e(8195),E=e(98985),z=e(86350),T=new b.WeakMap,M=b.get,_=b.has,a=b.set,r=Array,x=TypeError,P=Object.freeze||Object,A=Object.isFrozen,U=Math.min,L=s("".charAt),k=s("".slice),G=s("".split),W=s(/./.exec),J=/([\n\u2028\u2029]|\r\n?)/g,oe=RegExp("^["+z+"]*"),le=RegExp("[^"+z+"]"),ie="Invalid tag",D="Invalid opening line",N="Invalid closing line",B=function(X){var re=X.raw;if(t&&!A(re))throw new x("Raw template should be frozen");if(_(T,re))return M(T,re);var me=H(re),Oe=Y(me);return C(Oe,"raw",{value:P(me)}),P(Oe),a(T,re,Oe),Oe},H=function(X){var re=v(X),me=p(re),Oe=r(me),pe=r(me),Te=0,Re,De,qe,Le;if(!me)throw new x(ie);for(;Te0)throw new x(D);Re[1]=""}if(Ce){if(Re.length===1||W(le,Re[Re.length-1]))throw new x(N);Re[Re.length-2]="",Re[Re.length-1]=""}for(var ne=2;ne1?arguments[1]:void 0);return i(this,d)},!0)},59359:function(h,g,e){"use strict";var t=e(54872),o=e(2960).filterReject,i=e(20716),s=t.aTypedArray,f=t.exportTypedArrayMethod;f("filterReject",function(v){var d=o(s(this),v,arguments.length>1?arguments[1]:void 0);return i(this,d)},!0)},76677:function(h,g,e){"use strict";var t=e(76058),o=e(52655),i=e(2231),s=e(54872),f=e(59976),m=s.aTypedArrayConstructor,v=s.exportTypedArrayStaticMethod;v("fromAsync",function(p){var C=this,S=arguments.length,b=S>1?arguments[1]:void 0,y=S>2?arguments[2]:void 0;return new(t("Promise"))(function(E){o(C),E(i(p,b,y))}).then(function(E){return f(m(C),E)})},!0)},30548:function(h,g,e){"use strict";var t=e(54872),o=e(64976),i=e(47338),s=t.aTypedArray,f=t.exportTypedArrayMethod;f("groupBy",function(v){var d=arguments.length>1?arguments[1]:void 0;return o(s(this),v,d,i)},!0)},915:function(h,g,e){"use strict";var t=e(54872),o=e(6310),i=e(9401),s=e(27578),f=e(71530),m=e(68700),v=e(3689),d=t.aTypedArray,p=t.getTypedArrayConstructor,C=t.exportTypedArrayMethod,S=Math.max,b=Math.min,y=!v(function(){var E=new Int8Array([1]),z=E.toSpliced(1,0,{valueOf:function(){return E[0]=2,3}});return z[0]!==2||z[1]!==3});C("toSpliced",function(z,T){var M=d(this),_=p(M),a=o(M),r=s(z,a),x=arguments.length,P=0,A,U,L,k,G,W,J;if(x===0)A=U=0;else if(x===1)A=0,U=a-r;else if(U=b(S(m(T),0),a-r),A=x-2,A){k=new _(A),L=i(k);for(var oe=2;oe1?s(arguments[1]):void 0,A=p(P)==="base64"?C:S,U=P?!!P.strict:!1,L=U?x:z(x,_,"");if(L.length%4===0)T(L,-2)==="=="?L=T(L,0,-2):T(L,-1)==="="&&(L=T(L,0,-1));else if(U)throw new y("Input is not correctly padded");var k=L.length%4;switch(k){case 1:throw new y("Bad input length");case 2:L+="AA";break;case 3:L+="A"}for(var G=[],W=0,J=L.length,oe=function(D){var N=E(L,W+D);if(!m(A,N))throw new y('Bad char in input: "'+N+'"');return A[N]<<18-6*D};W>16&255,le>>8&255,le&255)}var ie=G.length;if(k===2){if(U&&G[ie-2]!==0)throw new y(a);ie-=2}else if(k===3){if(U&&G[ie-1]!==0)throw new y(a);ie--}return v(b,G,ie)}})},91117:function(h,g,e){"use strict";var t=e(79989),o=e(19037),i=e(68844),s=e(51082),f=o.Uint8Array,m=o.SyntaxError,v=o.parseInt,d=/[^\da-f]/i,p=i(d.exec),C=i("".slice);f&&t({target:"Uint8Array",stat:!0,forced:!0},{fromHex:function(b){s(b);var y=b.length;if(y%2)throw new m("String should have an even number of characters");if(p(d,b))throw new m("String should only contain hex characters");for(var E=new f(y/2),z=0;z>6*x&63)};M+2<_;M+=3)a=(y[M]<<16)+(y[M+1]<<8)+y[M+2],T+=r(3)+r(2)+r(1)+r(0);return M+2===_?(a=(y[M]<<16)+(y[M+1]<<8),T+=r(3)+r(2)+r(1)+"="):M+1===_&&(a=y[M]<<16,T+=r(3)+r(2)+"=="),T}})},68680:function(h,g,e){"use strict";var t=e(79989),o=e(19037),i=e(68844),s=e(95668),f=o.Uint8Array,m=i(1 .toString);f&&t({target:"Uint8Array",proto:!0,forced:!0},{toHex:function(){s(this);for(var d="",p=0,C=this.length;p1&&!C(arguments[1])?E(arguments[1]):void 0,$e=ce?ce.transfer:void 0,at,Ke;$e!==void 0&&(at=new B,Ke=Xe($e,at));var St=Fe(Ne,at);return Ke&&rt(Ke),St}})},98858:function(h,g,e){"use strict";var t=e(11880),o=e(68844),i=e(34327),s=e(21500),f=URLSearchParams,m=f.prototype,v=o(m.append),d=o(m.delete),p=o(m.forEach),C=o([].push),S=new f("a=1&a=2&b=3");S.delete("a",1),S.delete("b",void 0),S+""!="a=2"&&t(m,"delete",function(b){var y=arguments.length,E=y<2?void 0:arguments[1];if(y&&E===void 0)return d(this,b);var z=[];p(this,function(A,U){C(z,{key:U,value:A})}),s(y,1);for(var T=i(b),M=i(E),_=0,a=0,r=!1,x=z.length,P;_o.length)&&(i=o.length);for(var s=0,f=Array(i);s=0;--de){var te=this.tryEntries[de],X=te.completion;if(te.tryLoc==="root")return Y("end");if(te.tryLoc<=this.prev){var re=m.call(te,"catchLoc"),me=m.call(te,"finallyLoc");if(re&&me){if(this.prev=0;--Y){var de=this.tryEntries[Y];if(de.tryLoc<=this.prev&&m.call(de,"finallyLoc")&&this.prev=0;--F){var Y=this.tryEntries[F];if(Y.finallyLoc===H)return this.complete(Y.completion,Y.afterLoc),ie(Y),a}},catch:function(H){for(var F=this.tryEntries.length-1;F>=0;--F){var Y=this.tryEntries[F];if(Y.tryLoc===H){var de=Y.completion;if(de.type==="throw"){var te=de.arg;ie(Y)}return te}}throw Error("illegal catch attempt")},delegateYield:function(H,F,Y){return this.delegate={iterator:N(H),resultName:F,nextLoc:Y},this.method==="next"&&(this.arg=i),a}},s}},89611:function(h,g,e){"use strict";e.d(g,{Z:function(){return t}});function t(o,i){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,f){return s.__proto__=f,s},t(o,i)}},97685:function(h,g,e){"use strict";e.d(g,{Z:function(){return f}});var t=e(83878);function o(m,v){var d=m==null?null:typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(d!=null){var p,C,S,b,y=[],E=!0,z=!1;try{if(S=(d=d.call(m)).next,v===0){if(Object(d)!==d)return;E=!1}else for(;!(E=(p=S.call(d)).done)&&(y.push(p.value),y.length!==v);E=!0);}catch(T){z=!0,C=T}finally{try{if(!E&&d.return!=null&&(b=d.return(),Object(b)!==b))return}finally{if(z)throw C}}return y}}var i=e(40181),s=e(25267);function f(m,v){return(0,t.Z)(m)||o(m,v)||(0,i.Z)(m,v)||(0,s.Z)()}},84506:function(h,g,e){"use strict";e.d(g,{Z:function(){return f}});var t=e(83878),o=e(59199),i=e(40181),s=e(25267);function f(m){return(0,t.Z)(m)||(0,o.Z)(m)||(0,i.Z)(m)||(0,s.Z)()}},74902:function(h,g,e){"use strict";e.d(g,{Z:function(){return m}});var t=e(30907);function o(v){if(Array.isArray(v))return(0,t.Z)(v)}var i=e(59199),s=e(40181);function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(v){return o(v)||(0,i.Z)(v)||(0,s.Z)(v)||f()}},83997:function(h,g,e){"use strict";e.d(g,{Z:function(){return i}});var t=e(71002);function o(s,f){if((0,t.Z)(s)!="object"||!s)return s;var m=s[Symbol.toPrimitive];if(m!==void 0){var v=m.call(s,f||"default");if((0,t.Z)(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(s)}function i(s){var f=o(s,"string");return(0,t.Z)(f)=="symbol"?f:f+""}},71002:function(h,g,e){"use strict";e.d(g,{Z:function(){return t}});function t(o){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},t(o)}},40181:function(h,g,e){"use strict";e.d(g,{Z:function(){return o}});var t=e(30907);function o(i,s){if(i){if(typeof i=="string")return(0,t.Z)(i,s);var f={}.toString.call(i).slice(8,-1);return f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set"?Array.from(i):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?(0,t.Z)(i,s):void 0}}},58096:function(h,g,e){"use strict";e.d(g,{Z:function(){return t}});function t(){return t=Object.assign?Object.assign.bind():function(o){for(var i=1;i=0)&&(f[v]=i[v]);return f}function o(i,s){if(i==null)return{};var f=t(i,s),m,v;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(i);for(v=0;v=0)&&Object.prototype.propertyIsEnumerable.call(i,m)&&(f[m]=i[m])}return f}}},__webpack_module_cache__={};function __webpack_require__(h){var g=__webpack_module_cache__[h];if(g!==void 0)return g.exports;var e=__webpack_module_cache__[h]={id:h,loaded:!1,exports:{}};return __webpack_modules__[h].call(e.exports,e,e.exports,__webpack_require__),e.loaded=!0,e.exports}__webpack_require__.m=__webpack_modules__,function(){__webpack_require__.amdO={}}(),function(){__webpack_require__.n=function(h){var g=h&&h.__esModule?function(){return h.default}:function(){return h};return __webpack_require__.d(g,{a:g}),g}}(),function(){var h=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},g;__webpack_require__.t=function(e,t){if(t&1&&(e=this(e)),t&8||typeof e=="object"&&e&&(t&4&&e.__esModule||t&16&&typeof e.then=="function"))return e;var o=Object.create(null);__webpack_require__.r(o);var i={};g=g||[null,h({}),h([]),h(h)];for(var s=t&2&&e;typeof s=="object"&&!~g.indexOf(s);s=h(s))Object.getOwnPropertyNames(s).forEach(function(f){i[f]=function(){return e[f]}});return i.default=function(){return e},__webpack_require__.d(o,i),o}}(),function(){__webpack_require__.d=function(h,g){for(var e in g)__webpack_require__.o(g,e)&&!__webpack_require__.o(h,e)&&Object.defineProperty(h,e,{enumerable:!0,get:g[e]})}}(),function(){__webpack_require__.f={},__webpack_require__.e=function(h){return Promise.all(Object.keys(__webpack_require__.f).reduce(function(g,e){return __webpack_require__.f[e](h,g),g},[]))}}(),function(){__webpack_require__.u=function(h){return""+({24:"p__system__role__index",36:"p__deviceInfo__index",37:"p__user__login__index",43:"p__workInfo__plan",257:"p__system__module__index",262:"p__materials__index",301:"t__plugin-layout__Layout",402:"p__deviceProductInfo__index",420:"p__workInfo__index",446:"p__welcome__index",450:"p__stock__index",460:"p__final__index",472:"p__system__user__index",558:"t__plugin-maxtabs__Layout",571:"p__404",918:"p__dict__index",988:"p__plantModel__process",990:"p__productLine__line"}[h]||h)+"."+{20:"ba2fc27d",24:"455b2d03",36:"8878b771",37:"b934e735",43:"49094d04",119:"4e6a5656",145:"782fdda3",257:"210b5a12",262:"8b1d798e",301:"2c017a91",390:"c53868f3",393:"e127e60f",402:"1f88a9d8",420:"70520a2f",446:"dde73410",450:"3cc68eb4",460:"9df8868b",472:"60325376",558:"b832af3b",565:"b1a57ede",571:"a52587bb",635:"973728c8",821:"b970c16a",838:"1fdf35ab",918:"1a76ccc3",988:"2e985b3e",990:"74e003b9"}[h]+".async.js"}}(),function(){__webpack_require__.miniCssF=function(h){return""+{37:"p__user__login__index",257:"p__system__module__index",301:"t__plugin-layout__Layout",402:"p__deviceProductInfo__index",420:"p__workInfo__index",460:"p__final__index",472:"p__system__user__index"}[h]+"."+{37:"26100c69",257:"ef46db37",301:"5012e1ab",402:"835c0c6c",420:"a5160833",460:"49759dc4",472:"695d982e"}[h]+".chunk.css"}}(),function(){__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(h){if(typeof window=="object")return window}}()}(),function(){__webpack_require__.o=function(h,g){return Object.prototype.hasOwnProperty.call(h,g)}}(),function(){var h={},g="ant-design-pro:";__webpack_require__.l=function(e,t,o,i){if(h[e]){h[e].push(t);return}var s,f;if(o!==void 0)for(var m=document.getElementsByTagName("script"),v=0;v=0)&&(f[v]=i[v]);return f}function o(i,s){if(i==null)return{};var f=t(i,s),m,v;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(i);for(v=0;v=0)&&Object.prototype.propertyIsEnumerable.call(i,m)&&(f[m]=i[m])}return f}}},__webpack_module_cache__={};function __webpack_require__(h){var g=__webpack_module_cache__[h];if(g!==void 0)return g.exports;var e=__webpack_module_cache__[h]={id:h,loaded:!1,exports:{}};return __webpack_modules__[h].call(e.exports,e,e.exports,__webpack_require__),e.loaded=!0,e.exports}__webpack_require__.m=__webpack_modules__,function(){__webpack_require__.amdO={}}(),function(){__webpack_require__.n=function(h){var g=h&&h.__esModule?function(){return h.default}:function(){return h};return __webpack_require__.d(g,{a:g}),g}}(),function(){var h=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},g;__webpack_require__.t=function(e,t){if(t&1&&(e=this(e)),t&8||typeof e=="object"&&e&&(t&4&&e.__esModule||t&16&&typeof e.then=="function"))return e;var o=Object.create(null);__webpack_require__.r(o);var i={};g=g||[null,h({}),h([]),h(h)];for(var s=t&2&&e;typeof s=="object"&&!~g.indexOf(s);s=h(s))Object.getOwnPropertyNames(s).forEach(function(f){i[f]=function(){return e[f]}});return i.default=function(){return e},__webpack_require__.d(o,i),o}}(),function(){__webpack_require__.d=function(h,g){for(var e in g)__webpack_require__.o(g,e)&&!__webpack_require__.o(h,e)&&Object.defineProperty(h,e,{enumerable:!0,get:g[e]})}}(),function(){__webpack_require__.f={},__webpack_require__.e=function(h){return Promise.all(Object.keys(__webpack_require__.f).reduce(function(g,e){return __webpack_require__.f[e](h,g),g},[]))}}(),function(){__webpack_require__.u=function(h){return""+({24:"p__system__role__index",36:"p__deviceInfo__index",37:"p__user__login__index",43:"p__workInfo__plan",257:"p__system__module__index",262:"p__materials__index",301:"t__plugin-layout__Layout",402:"p__deviceProductInfo__index",420:"p__workInfo__index",446:"p__welcome__index",450:"p__stock__index",460:"p__final__index",472:"p__system__user__index",558:"t__plugin-maxtabs__Layout",571:"p__404",918:"p__dict__index",988:"p__plantModel__process",990:"p__productLine__line"}[h]||h)+"."+{20:"ba2fc27d",24:"455b2d03",36:"8878b771",37:"b934e735",43:"49094d04",119:"4e6a5656",145:"782fdda3",257:"210b5a12",262:"8b1d798e",301:"2c017a91",390:"c53868f3",393:"e127e60f",402:"7ef65f5e",420:"c04c64de",446:"dde73410",450:"64bdcafa",460:"817dee2e",472:"60325376",558:"b832af3b",565:"b1a57ede",571:"a52587bb",635:"973728c8",821:"b970c16a",838:"1fdf35ab",918:"1a76ccc3",988:"2e985b3e",990:"74e003b9"}[h]+".async.js"}}(),function(){__webpack_require__.miniCssF=function(h){return""+{37:"p__user__login__index",257:"p__system__module__index",301:"t__plugin-layout__Layout",402:"p__deviceProductInfo__index",420:"p__workInfo__index",460:"p__final__index",472:"p__system__user__index"}[h]+"."+{37:"26100c69",257:"ef46db37",301:"5012e1ab",402:"835c0c6c",420:"a5160833",460:"49759dc4",472:"695d982e"}[h]+".chunk.css"}}(),function(){__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(h){if(typeof window=="object")return window}}()}(),function(){__webpack_require__.o=function(h,g){return Object.prototype.hasOwnProperty.call(h,g)}}(),function(){var h={},g="ant-design-pro:";__webpack_require__.l=function(e,t,o,i){if(h[e]){h[e].push(t);return}var s,f;if(o!==void 0)for(var m=document.getElementsByTagName("script"),v=0;vNt.length)&&(Jt=Nt.length);for(var Dn=0,Bn=new Array(Jt);Dn0&&arguments[0]!==void 0?arguments[0]:"";return Nt.endsWith("/")?Nt:"".concat(Nt,"/")}var vr=__webpack_require__(49647),Wn=__webpack_require__(58096),wr=["content"],fa=["content"],Oa=/^(http:|https:)?\/\//;function So(Nt){return Oa.test(Nt)||Nt.startsWith("/")&&!Nt.startsWith("/*")||Nt.startsWith("./")||Nt.startsWith("../")}var Eo=function(){return Gt.createElement("noscript",{dangerouslySetInnerHTML:{__html:"Enable JavaScript to run this app."}})},Aa=function(Jt){var Dn,Bn=Jt.loaderData,qn=Jt.htmlPageOpts,Sr=Jt.manifest,Or=(Sr==null||(Dn=Sr.assets)===null||Dn===void 0?void 0:Dn["umi.css"])||"";return Gt.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"window.__UMI_LOADER_DATA__ = ".concat(JSON.stringify(Bn||{}),"; window.__UMI_METADATA_LOADER_DATA__ = ").concat(JSON.stringify(qn||{}),"; window.__UMI_BUILD_ClIENT_CSS__ = '").concat(Or,"'")}})};function Pa(Nt){var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof Nt=="string")return So(Nt)?jn({src:Nt},Jt):{content:Nt};if(ot(Nt)==="object")return jn(jn({},Nt),Jt);throw new Error("Invalid script type: ".concat(ot(Nt)))}function ao(Nt){return So(Nt)?{type:"link",href:Nt}:{type:"style",content:Nt}}var Da=function(Jt){var Dn,Bn,qn,Sr,Or,Qr,_r=Jt.htmlPageOpts;return Gt.createElement(Gt.Fragment,null,(_r==null?void 0:_r.title)&&Gt.createElement("title",null,_r.title),_r==null||(Dn=_r.favicons)===null||Dn===void 0?void 0:Dn.map(function(oa,ca){return Gt.createElement("link",{key:ca,rel:"shortcut icon",href:oa})}),(_r==null?void 0:_r.description)&&Gt.createElement("meta",{name:"description",content:_r.description}),(_r==null||(Bn=_r.keywords)===null||Bn===void 0?void 0:Bn.length)&&Gt.createElement("meta",{name:"keywords",content:_r.keywords.join(",")}),_r==null||(qn=_r.metas)===null||qn===void 0?void 0:qn.map(function(oa){return Gt.createElement("meta",{key:oa.name,name:oa.name,content:oa.content})}),_r==null||(Sr=_r.links)===null||Sr===void 0?void 0:Sr.map(function(oa,ca){return Gt.createElement("link",(0,Wn.Z)({key:ca},oa))}),_r==null||(Or=_r.styles)===null||Or===void 0?void 0:Or.map(function(oa,ca){var ka=ao(oa),co=ka.type,qa=ka.href,zi=ka.content;if(co==="link")return Gt.createElement("link",{key:ca,rel:"stylesheet",href:qa});if(co==="style")return Gt.createElement("style",{key:ca},zi)}),_r==null||(Qr=_r.headScripts)===null||Qr===void 0?void 0:Qr.map(function(oa,ca){var ka=Pa(oa),co=ka.content,qa=(0,vr.Z)(ka,wr);return Gt.createElement("script",(0,Wn.Z)({dangerouslySetInnerHTML:{__html:co},key:ca,crossOrigin:"anonymous"},qa))}))};function fo(Nt){var Jt,Dn=Nt.children,Bn=Nt.loaderData,qn=Nt.manifest,Sr=Nt.htmlPageOpts,Or=Nt.__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Qr=Nt.mountElementId;if(Or!=null&&Or.pureHtml)return Gt.createElement("html",null,Gt.createElement("head",null),Gt.createElement("body",null,Gt.createElement(Eo,null),Gt.createElement("div",{id:Qr},Dn),Gt.createElement(Aa,{manifest:qn,loaderData:Bn,htmlPageOpts:Sr})));if(Or!=null&&Or.pureApp)return Gt.createElement(Gt.Fragment,null,Dn);var _r=typeof window=="undefined"?qn==null?void 0:qn.assets["umi.css"]:window.__UMI_BUILD_ClIENT_CSS__;return Gt.createElement("html",{suppressHydrationWarning:!0,lang:(Sr==null?void 0:Sr.lang)||"en"},Gt.createElement("head",null,Gt.createElement("meta",{charSet:"utf-8"}),Gt.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),_r&&Gt.createElement("link",{suppressHydrationWarning:!0,rel:"stylesheet",href:_r}),Gt.createElement(Da,{htmlPageOpts:Sr})),Gt.createElement("body",null,Gt.createElement(Eo,null),Gt.createElement("div",{id:Qr},Dn),Gt.createElement(Aa,{manifest:qn,loaderData:Bn,htmlPageOpts:Sr}),Sr==null||(Jt=Sr.scripts)===null||Jt===void 0?void 0:Jt.map(function(oa,ca){var ka=Pa(oa),co=ka.content,qa=(0,vr.Z)(ka,fa);return Gt.createElement("script",(0,Wn.Z)({dangerouslySetInnerHTML:{__html:co},key:ca,crossOrigin:"anonymous"},qa))})))}var vo=Gt.createContext(void 0);function oo(){return Gt.useContext(vo)}var io=["redirect"];function Bo(Nt){var Jt=Nt.routesById,Dn=Nt.parentId,Bn=Nt.routeComponents;return Object.keys(Jt).filter(function(qn){return Jt[qn].parentId===Dn}).map(function(qn){var Sr=Ja(jn({route:Jt[qn],routeComponent:Bn[qn],loadingComponent:Nt.loadingComponent,reactRouter5Compat:Nt.reactRouter5Compat},Nt.reactRouter5Compat&&{hasChildren:Object.keys(Jt).filter(function(Qr){return Jt[Qr].parentId===qn}).length>0})),Or=Bo({routesById:Jt,routeComponents:Bn,parentId:Sr.id,loadingComponent:Nt.loadingComponent,reactRouter5Compat:Nt.reactRouter5Compat});return Or.length>0&&(Sr.children=Or,Sr.routes=Or),Sr})}function ho(Nt){var Jt=(0,dr.UO)(),Dn=(0,dr.Gn)(Nt.to,Jt),Bn=(0,$r.T$)(),qn=(0,dr.TH)();if(Bn!=null&&Bn.keepQuery){var Sr=qn.search+qn.hash;Dn+=Sr}var Or=jn(jn({},Nt),{},{to:Dn});return Gt.createElement(dr.Fg,(0,Wn.Z)({replace:!0},Or))}function Ja(Nt){var Jt=Nt.route,Dn=Jt.redirect,Bn=(0,vr.Z)(Jt,io),qn=Nt.reactRouter5Compat?Cl:H1;return jn({element:Dn?Gt.createElement(ho,{to:Dn}):Gt.createElement(vo.Provider,{value:{route:Nt.route}},Gt.createElement(qn,{loader:Gt.memo(Nt.routeComponent),loadingComponent:Nt.loadingComponent||lo,hasChildren:Nt.hasChildren}))},Bn)}function lo(){return Gt.createElement("div",null)}function Cl(Nt){var Jt=oo(),Dn=Jt.route,Bn=(0,$r.Ov)(),qn=Bn.history,Sr=Bn.clientRoutes,Or=(0,dr.UO)(),Qr={params:Or,isExact:!0,path:Dn.path,url:qn.location.pathname},_r=Nt.loader;return Gt.createElement(Gt.Suspense,{fallback:Gt.createElement(Nt.loadingComponent,null)},Gt.createElement(_r,{location:qn.location,match:Qr,history:qn,params:Or,route:Dn,routes:Sr},Nt.hasChildren&&Gt.createElement(dr.j3,null)))}function H1(Nt){var Jt=Nt.loader;return Gt.createElement(Gt.Suspense,{fallback:Gt.createElement(Nt.loadingComponent,null)},Gt.createElement(Jt,null))}var bl=null;function tl(){return bl}function B1(Nt){var Jt=Nt.history,Dn=Gt.useState({action:Jt.action,location:Jt.location}),Bn=mr(Dn,2),qn=Bn[0],Sr=Bn[1];return(0,Gt.useLayoutEffect)(function(){return Jt.listen(Sr)},[Jt]),(0,Gt.useLayoutEffect)(function(){function Or(Qr){Nt.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:Nt.routes,clientRoutes:Nt.clientRoutes,location:Qr.location,action:Qr.action,basename:Nt.basename,isFirst:!!Qr.isFirst}})}return Or({location:qn.location,action:qn.action,isFirst:!0}),Jt.listen(Or)},[Jt,Nt.routes,Nt.clientRoutes]),Gt.createElement(dr.F0,{navigator:Jt,location:qn.location,basename:Nt.basename},Nt.children)}function kl(){var Nt=(0,$r.Ov)(),Jt=Nt.clientRoutes;return(0,dr.V$)(Jt)}var Kl=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],xa=function(Jt,Dn){var Bn=Jt.basename||"/",qn=Bo({routesById:Jt.routes,routeComponents:Jt.routeComponents,loadingComponent:Jt.loadingComponent,reactRouter5Compat:Jt.reactRouter5Compat});Jt.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:qn}});for(var Sr=Gt.createElement(B1,{basename:Bn,pluginManager:Jt.pluginManager,routes:Jt.routes,clientRoutes:qn,history:Jt.history},Dn),Or=0,Qr=Kl;Or