From a2ee06963e96f08669c1e58665d47aa979dbba58 Mon Sep 17 00:00:00 2001 From: Yanko <747575620@qq.com> Date: Fri, 23 Aug 2024 18:02:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E7=BA=BF=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/dist/index.html | 4 +- .../dist/p__craftInfo__pot.925de306.async.js | 1 - .../dist/p__craftInfo__pot.d395d8d9.async.js | 1 + .../dist/p__final__index.0c5211d3.async.js | 1 + .../dist/p__final__index.b1c7fb46.async.js | 1 - .../p__productLine__line.22ddcd1b.async.js | 1 + .../p__productLine__line.255fd01c.async.js | 1 - .../dist/p__recipe__index.0f84fa24.async.js | 1 - .../dist/p__recipe__index.101f5df6.async.js | 1 + ...7c13d836.js => preload_helper.2b894109.js} | 2 +- .../dist/{umi.bd1d8650.js => umi.c553e74a.js} | 4 +- frontend/src/pages/productLine/line.tsx | 99 +++++++++++++++++-- 12 files changed, 100 insertions(+), 17 deletions(-) delete mode 100644 frontend/dist/p__craftInfo__pot.925de306.async.js create mode 100644 frontend/dist/p__craftInfo__pot.d395d8d9.async.js create mode 100644 frontend/dist/p__final__index.0c5211d3.async.js delete mode 100644 frontend/dist/p__final__index.b1c7fb46.async.js create mode 100644 frontend/dist/p__productLine__line.22ddcd1b.async.js delete mode 100644 frontend/dist/p__productLine__line.255fd01c.async.js delete mode 100644 frontend/dist/p__recipe__index.0f84fa24.async.js create mode 100644 frontend/dist/p__recipe__index.101f5df6.async.js rename frontend/dist/{preload_helper.7c13d836.js => preload_helper.2b894109.js} (74%) rename frontend/dist/{umi.bd1d8650.js => umi.c553e74a.js} (99%) diff --git a/frontend/dist/index.html b/frontend/dist/index.html index b8be070..a9fe077 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__craftInfo__pot.925de306.async.js b/frontend/dist/p__craftInfo__pot.925de306.async.js deleted file mode 100644 index f3ecf4d..0000000 --- a/frontend/dist/p__craftInfo__pot.925de306.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[869],{37387:function(H,I,n){var g=n(97857),o=n.n(g),s=n(56002);I.Z={Add:function(t){return(0,s.request)("/api/devicesinfo/add",{method:"POST",data:o()({},t)})},Del:function(t){return(0,s.request)("/api/devicesinfo/del",{method:"POST",data:o()({},t)})},Update:function(t){return(0,s.request)("/api/devicesinfo/update",{method:"POST",data:o()({},t)})},Detail:function(t){return(0,s.request)("/api/devicesinfo/detail?id=".concat(t),{method:"GET"})},List:function(){return(0,s.request)("/api/devicesinfo/list",{method:"POST"})},UnBindList:function(){return(0,s.request)("/api/devicesinfo/UnBindList",{method:"GET"})},PagedList:function(t){return(0,s.request)("/api/devicesinfo/pagedlist",{method:"POST",data:o()({},t)})},BatchUpdate:function(t){return(0,s.request)("/api/devicerecipe/batchupdate",{method:"POST",data:t})},RecipeList:function(t){return(0,s.request)(" api/devicerecipe/list",{method:"POST",data:{deviceId:t}})},selectlist:function(){return(0,s.request)("/api/devicesinfo/selectlist",{method:"GET"})}}},30744:function(H,I,n){var g=n(97857),o=n.n(g),s=n(56002);I.Z={Add:function(t){return(0,s.request)("/api/craftsinfo/add",{method:"POST",data:o()({},t)})},Del:function(t){return(0,s.request)("/api/craftsinfo/del",{method:"POST",data:o()({},t)})},Update:function(t){return(0,s.request)("/api/craftsinfo/update",{method:"POST",data:o()({},t)})},Detail:function(t){return(0,s.request)("/api/craftsinfo/detail?id=".concat(t),{method:"GET"})},List:function(){return(0,s.request)("/api/craftsinfo/list",{method:"POST"})},UnBindList:function(){return(0,s.request)("/api/craftsinfo/UnBindList",{method:"GET"})},PagedList:function(t){return(0,s.request)("/api/craftsinfo/pagedlist",{method:"POST",data:o()({},t)})},BatchUpdate:function(t){return(0,s.request)("/api/craftsrecipe/batchupdate",{method:"POST",data:t})},selectlist:function(){return(0,s.request)("/api/craftsinfo/selectlist",{method:"GET"})},BatchAdd:function(t){return(0,s.request)("",{method:"POST",data:o()({},t)})},craftsStepPage:function(t){return(0,s.request)("/api/craftssteps/pagedlist",{method:"POST",data:o()({},t)})},BatchUpdateStep:function(t){return(0,s.request)("/api/craftssteps/batchupdate",{method:"POST",data:t})},UpdateStep:function(t){return(0,s.request)("/api/craftssteps/update",{method:"POST",data:t})},DelStep:function(t){return(0,s.request)("/api/craftssteps/del",{method:"POST",data:o()({},t)})},StepAdd:function(t){return(0,s.request)("/api/craftssteps/add",{method:"POST",data:t})}}},77386:function(H,I,n){var g=n(97857),o=n.n(g),s=n(56002);I.Z={Add:function(t){return(0,s.request)("/api/deviceProduct/add",{method:"POST",data:o()({},t)})},Del:function(t){return(0,s.request)("/api/deviceProduct/del",{method:"POST",data:o()({},t)})},Update:function(t){return(0,s.request)("/api/deviceProduct/update",{method:"POST",data:o()({},t)})},Detail:function(t){return(0,s.request)("/api/deviceProduct/detail?id=".concat(t),{method:"GET"})},List:function(t){return(0,s.request)("/api/deviceProduct/list",{method:"POST",data:o()({},t)})},PagedList:function(t){return(0,s.request)("/api/deviceProduct/pagedlist",{method:"POST",data:o()({},t)})},SelectList:function(){return(0,s.request)("/api/deviceProduct/selectlist",{method:"GET"})}}},16940:function(H,I,n){var g=n(97857),o=n.n(g),s=n(56002);I.Z={Add:function(t){return(0,s.request)("/api/deviceproductfunction/add",{method:"POST",data:o()({},t)})},Del:function(t){return(0,s.request)("/api/deviceproductfunction/del",{method:"POST",data:o()({},t)})},Update:function(t){return(0,s.request)("/api/deviceproductfunction/update",{method:"POST",data:o()({},t)})},Detail:function(t){return(0,s.request)("/api/deviceproductfunction/detail?id=".concat(t),{method:"GET"})},List:function(t){return(0,s.request)("/api/deviceproductfunction/list",{method:"POST",data:o()({},t)})},PagedList:function(t){return(0,s.request)("/api/deviceproductfunction/pagedlist",{method:"POST",data:o()({},t)})}}},48223:function(H,I,n){var g=n(97857),o=n.n(g),s=n(56002);I.Z={Add:function(t){return(0,s.request)("/api/materialsinfo/add",{method:"POST",data:o()({},t)})},Del:function(t){return(0,s.request)("/api/materialsinfo/del",{method:"POST",data:o()({},t)})},Update:function(t){return(0,s.request)("/api/materialsinfo/update",{method:"POST",data:o()({},t)})},List:function(){return(0,s.request)("/api/materialsinfo/list",{method:"GET"})},selectlist:function(){return(0,s.request)("/api/materialsinfo/selectlist",{method:"GET"})},PagedList:function(t){return(0,s.request)("/api/materialsinfo/pagedlist",{method:"POST",data:o()({},t)})}}},7579:function(H,I,n){n.r(I),n.d(I,{default:function(){return h}});var g=n(15009),o=n.n(g),s=n(99289),r=n.n(s),t=n(5574),P=n.n(t),Oe=n(62763),oe=n(8256),ie=n(34994),le=n(86550),F=n(8232),M=n(14726),de=n(86738),j=n(45360),be=n(71230),J=n(15746),Y=n(42075),w=n(34041),K=n(49978),ue=n(85576),q=n(66309),Ie=n(74330),ye=n(4393),C=n(67294),Z=n(57632),b=n(30744),De=n(37387),ce=n(77386),Ue=n(16940),fe=n(48223),i=n(85893),e=function(){var u=F.Z.useForm(),v=P()(u,1),T=v[0],E=(0,C.useState)(!1),B=P()(E,2),A=B[0],x=B[1],_=(0,C.useState)(!1),R=P()(_,2),U=R[0],X=R[1],k=(0,C.useState)(!1),D=P()(k,2),ee=D[0],z=D[1],Fe=(0,C.useState)(!1),te=P()(Fe,2),pe=te[0],N=te[1],xe=(0,C.useState)([]),y=P()(xe,2),Ne=y[0],Ze=y[1],Be=(0,C.useState)([]),me=P()(Be,2),Ae=me[0],_e=me[1],Le=(0,C.useState)(),ae=P()(Le,2),ve=ae[0],he=ae[1],W=(0,C.useState)(),ge=P()(W,2),L=ge[0],Se=ge[1],ne=(0,C.useState)("\u6B65\u9AA4\u5217\u8868"),$e=P()(ne,2),Xe=$e[0],Qe=$e[1],Ye=(0,C.useState)(),Re=P()(Ye,2),qe=Re[0],ke=Re[1],et=(0,C.useState)(),ze=P()(et,2),G=ze[0],Me=ze[1],tt=(0,C.useState)([]),We=P()(tt,2),we=We[0],at=We[1],nt=(0,C.useState)([]),Ke=P()(nt,2),Ge=Ke[0],re=Ke[1],Pe=(0,C.useRef)(),rt=F.Z.useForm(),st=P()(rt,1),Ce=st[0],ot=F.Z.useForm(),it=P()(ot,1),je=it[0],se=(0,C.useRef)(),ut=(0,C.useRef)();(0,C.useEffect)(function(){De.Z.selectlist().then(function(f){f.statusCode===200&&Ze(f.data)}),ce.Z.SelectList().then(function(f){f.statusCode===200&&_e(f.data)}),fe.Z.selectlist().then(function(f){if(f.statusCode===200){var p=f.data;p.map(function(l){return l.label=l.value,l.value=l.key}),Se(f.data)}})},[]),(0,C.useEffect)(function(){},[Ge]);var Ve=[{dataIndex:"id",align:"center",hideInTable:!0,hideInForm:!0,readonly:!0,search:!1},{title:"\u8BBE\u5907\u4EA7\u54C1",dataIndex:"deviceProductId",align:"center",valueType:"select",request:function(){var f=r()(o()().mark(function l(){var d,c;return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,ce.Z.SelectList();case 2:return d=a.sent,c=d.data,c.map(function(O){return O.label=O.value,O.value=O.key}),a.abrupt("return",c);case 6:case"end":return a.stop()}},l)}));function p(){return f.apply(this,arguments)}return p}()},{title:"\u5DE5\u827A\u540D\u79F0",dataIndex:"name",align:"center",search:!1},{title:"\u5DE5\u827A\u63CF\u8FF0",dataIndex:"description",align:"center",hideInSearch:!0},{title:"\u64CD\u4F5C",align:"center",valueType:"option",render:function(p,l){return[(0,i.jsx)(M.ZP,{type:"primary",ghost:!0,onClick:r()(o()().mark(function d(){var c;return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:x(!0),console.log("record",l),c=JSON.parse(JSON.stringify(l)),Me(l),T.setFieldsValue(c);case 5:case"end":return a.stop()}},d)})),children:"\u7F16\u8F91"},(0,Z.Z)()),(0,i.jsx)(de.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){var c={id:l.id,step:0,craftId:"",deviceProductId:""};b.Z.Del(c).then(function(m){if(m.statusCode===200){var a;j.ZP.success(m.statusCode===200?"\u5220\u9664\u6210\u529F":m.message),(a=Pe.current)===null||a===void 0||a.reload()}})},onCancel:function(){j.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,i.jsx)(M.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5220\u9664"})},"craftinfoDel")]}}];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(be.Z,{wrap:!1,gutter:[10,10],children:[(0,i.jsx)(J.Z,{flex:.1,children:(0,i.jsx)(le.Z,{columns:Ve,actionRef:Pe,className:"box",cardBordered:!0,dateFormatter:"string",headerTitle:"\u5DE5\u827A\u5217\u8868",rowClassName:function(p,l){return l===qe?"rowBgColor":""},onRow:function(p,l){return{onClick:function(){p.id&&(ke(l),Me(p),he({craftId:p.id}),Qe("[".concat(p.name,"]\u6B65\u9AA4\u5217\u8868")))}}},request:r()(o()().mark(function f(){var p,l,d,c=arguments;return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return p=c.length>0&&c[0]!==void 0?c[0]:{},l={pageIndex:p.current||1,pageSize:p.pageSize||10,name:p.name||"",deviceType:0},a.next=4,b.Z.PagedList(l);case 4:if(d=a.sent,d.statusCode!==200){a.next=9;break}return a.abrupt("return",{data:d.data.items,success:!0,total:d.data.total});case 9:return a.abrupt("return",{data:[],success:!1,total:0});case 10:case"end":return a.stop()}},f)})),rowKey:"id",pagination:{pageSize:10,showSizeChanger:!1},toolBarRender:function(){return[(0,i.jsx)(M.ZP,{type:"primary",onClick:function(){T.resetFields(),x(!0),Me({id:"",name:"",step:0,craftId:"",deviceType:0})},children:"\u6DFB\u52A0\u5DE5\u827A"},(0,Z.Z)())]}})}),(0,i.jsx)(J.Z,{flex:4,children:(0,i.jsx)(Oe.Z,{toolBarRender:function(){return[(0,i.jsx)(M.ZP,{type:"primary",onClick:function(){T.resetFields(),N(!0)},children:"\u6DFB\u52A0\u6B65\u9AA4"},(0,Z.Z)())]},actionRef:se,headerTitle:Xe,columns:[{title:"\u6B65\u9AA4",dataIndex:"step",align:"center",hideInSearch:!0,render:function(p,l,d){return(0,i.jsx)("span",{className:"customRender",children:"".concat(d+1)})}},{title:"\u6B65\u9AA4\u63CF\u8FF0",dataIndex:"description",align:"center",hideInSearch:!0},{title:"\u529F\u80FD",dataIndex:"deviceProductFunctionName",align:"center",hideInSearch:!0},{title:"\u64CD\u4F5C",align:"center",valueType:"option",key:"option",render:function(p,l,d,c){return[(0,i.jsxs)(Y.Z,{size:"middle",children:[(0,i.jsx)(M.ZP,{type:"primary",ghost:!0,onClick:r()(o()().mark(function m(){var a;return o()().wrap(function($){for(;;)switch($.prev=$.next){case 0:a=JSON.parse(JSON.stringify(l)),console.log("copyFormData",a),T.setFieldsValue(a),N(!0);case 4:case"end":return $.stop()}},m)})),children:"\u7F16\u8F91"},(0,Z.Z)()),(0,i.jsx)(M.ZP,{type:"primary",ghost:!0,onClick:r()(o()().mark(function m(){var a,O;return o()().wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:z(!0),re([]),X(!0),a=JSON.parse(JSON.stringify(l)),Ce.setFieldsValue(a),console.log("record",l),O={deviceProductId:G==null?void 0:G.deviceProductId},Ue.Z.List(O).then(function(Ee){Ee.succeeded&&(at(Ee.data),setTimeout(function(){var V=Ee.data.find(function(Q){return Q.id===l.deviceProductFunctionId});if(V!=null&&V.params){var He=JSON.parse(V==null?void 0:V.params);console.log(He);var Je=[];He.map(function(Q){var dt={title:Q.paramName,dataIndex:Q.paramCode,width:"md",renderFormItem:function(ft,pt,mt){return Q.paramType===1?(0,i.jsx)(w.Z,{mode:"multiple",options:L}):(0,i.jsx)(K.Z,{addonAfter:Q.paramUnit})},colProps:{xs:24,md:12}};Je.push(dt)}),re(Je)}if(je){var lt=JSON.parse(l.params);je.setFieldsValue(lt)}X(!1)},200))});case 8:case"end":return Te.stop()}},m)})),children:"\u914D\u7F6E\u8BBE\u5907\u53C2\u6570"},(0,Z.Z)()),(0,i.jsx)(de.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){var a={id:l.id,step:0,craftId:"",deviceProductId:""};b.Z.DelStep(a).then(function(O){O.statusCode===200&&(j.ZP.success(O.statusCode===200?"\u5220\u9664\u6210\u529F":O.message),c==null||c.reload())})},onCancel:function(){j.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,i.jsx)(M.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5220\u9664"})},(0,Z.Z)())]},(0,Z.Z)())]}}],rowKey:"step",search:!1,pagination:{pageSize:100,showSizeChanger:!1},params:ve,request:r()(o()().mark(function f(){var p,l,d,c=arguments;return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(p=c.length>0&&c[0]!==void 0?c[0]:{},p.craftId){a.next=3;break}return a.abrupt("return",{data:[],success:!1,total:0});case 3:return l={pageIndex:p.current||1,pageSize:p.pageSize||10,craftId:p.craftId},a.next=6,b.Z.craftsStepPage(l);case 6:if(d=a.sent,d.statusCode!==200){a.next=11;break}return a.abrupt("return",{data:d.data.items,success:!0,total:d.data.total});case 11:return a.abrupt("return",{data:[],success:!1,total:0});case 12:case"end":return a.stop()}},f)})),dragSortKey:"step",onDragSortEnd:function(p,l,d){console.log("newDataSource",d),d.map(function(c,m){c.step=m+1}),console.log("\u6392\u5E8F\u540E\u7684\u6570\u636E",d),b.Z.BatchUpdateStep(d).then(function(c){if(c.data){var m;(m=se.current)===null||m===void 0||m.reload(),j.ZP.success("\u4FEE\u6539\u5217\u8868\u6392\u5E8F\u6210\u529F")}})}})})]}),(0,i.jsx)(ue.Z,{maskClosable:!1,width:800,title:(0,i.jsx)(q.Z,{color:"#cd201f",children:"\u5DE5\u827A\u4FE1\u606F"}),open:A,onCancel:function(){x(!1)},footer:!1,children:(0,i.jsx)(oe.Z,{onFinish:function(){var f=r()(o()().mark(function p(l){return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:G!=null&&G.id?(l.id=G.id,b.Z.Update(l).then(function(m){if(m.data){var a;j.ZP.success("\u4FEE\u6539\u6210\u529F\uFF01"),x(!1),(a=Pe.current)===null||a===void 0||a.reload()}else j.ZP.success(m.errors)})):b.Z.Add(l).then(function(m){if(m.data){var a;j.ZP.success("\u6DFB\u52A0\u6210\u529F\uFF01"),x(!1),(a=Pe.current)===null||a===void 0||a.reload()}else j.ZP.success(m.errors)});case 1:case"end":return c.stop()}},p)}));return function(p){return f.apply(this,arguments)}}(),form:T,columns:Ve})},(0,Z.Z)()),(0,i.jsx)(ue.Z,{maskClosable:!1,destroyOnClose:!0,width:800,open:pe,onCancel:function(){N(!1)},footer:!1,title:(0,i.jsx)(q.Z,{color:"#cd201f",children:" \u6DFB\u52A0\u6B65\u9AA4 "}),children:(0,i.jsxs)(ie.A,{form:T,onFinish:function(){var f=r()(o()().mark(function p(l){return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:l.craftId=ve.craftId,console.log(l),l.id?b.Z.UpdateStep(l).then(function(m){if(m.data){var a;j.ZP.success("\u63D0\u4EA4\u6210\u529F"),N(!1),(a=se.current)===null||a===void 0||a.reload()}else j.ZP.success(m.errors)}):b.Z.StepAdd(l).then(function(m){if(m.data){var a;j.ZP.success("\u63D0\u4EA4\u6210\u529F"),N(!1),(a=se.current)===null||a===void 0||a.reload()}else j.ZP.success(m.errors)});case 3:case"end":return c.stop()}},p)}));return function(p){return f.apply(this,arguments)}}(),children:[(0,i.jsx)(F.Z.Item,{label:"\u6B65\u9AA4Id",name:"id",hidden:!0,children:(0,i.jsx)(K.Z,{})}),(0,i.jsx)(F.Z.Item,{children:(0,i.jsx)("div",{children:"\u5C06\u81EA\u52A8\u751F\u6210\u6B65\u9AA4\u5E8F\u53F7"})}),(0,i.jsx)(F.Z.Item,{label:"\u6B65\u9AA4\u8BF4\u660E",name:"description",children:(0,i.jsx)(K.Z,{})})]})}),(0,i.jsx)(ue.Z,{maskClosable:!1,destroyOnClose:!0,width:800,title:(0,i.jsx)(q.Z,{color:"#cd201f",children:" \u914D\u7F6E\u8BBE\u5907\u53C2\u6570\u4FE1\u606F"}),open:ee,onCancel:function(){z(!1),je.resetFields(),re([])},footer:!1,children:(0,i.jsxs)(Ie.Z,{spinning:U,children:[(0,i.jsxs)(F.Z,{form:Ce,name:"basic1",id:"myForm1111",labelCol:{span:4},wrapperCol:{span:12},autoComplete:"off",children:[(0,i.jsx)(F.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,i.jsx)(K.Z,{})}),(0,i.jsx)(F.Z.Item,{label:"\u8BBE\u5907\u529F\u80FD\u4FE1\u606F",name:"deviceProductFunctionId",rules:[{required:!0,message:"\u6B64\u9879\u5FC5\u586B\uFF01"}],children:(0,i.jsx)(w.Z,{onChange:function(p,l){var d=we.find(function(a){return a.id===p});if(d!=null&&d.params){var c=JSON.parse(d==null?void 0:d.params);console.log(c);var m=[];c.map(function(a){var O={title:a.paramName,dataIndex:a.paramCode,width:"md",renderFormItem:function(Te,Ee,V){return a.paramType===1?(0,i.jsx)(w.Z,{mode:"multiple",options:L}):(0,i.jsx)(K.Z,{addonAfter:a.paramUnit})},colProps:{xs:24,md:12}};m.push(O)}),re(m)}else re([])},placeholder:"\u4E0B\u62C9\u9009\u62E9\u529F\u80FD",children:we.map(function(f){return(0,i.jsx)(w.Z.Option,{value:f.id,children:(0,i.jsx)("span",{children:f.name})},f.id)})})})]}),(0,i.jsx)(ye.Z,{children:(0,i.jsx)(oe.Z,{trigger:(0,i.jsx)("a",{children:"\u70B9\u51FB\u6211"}),rowProps:{gutter:[16,16]},colProps:{span:12},grid:!0,onFinish:function(){var f=r()(o()().mark(function p(l){var d,c;return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(console.log(Ce.getFieldsValue()),d=Ce.getFieldsValue(),d.deviceProductFunctionId){a.next=5;break}return j.ZP.error("\u8BF7\u9009\u62E9\u8BBE\u5907\u4EA7\u54C1\u529F\u80FD"),a.abrupt("return");case 5:console.log(d.deviceProductFunctionId),c={id:d.id,deviceProductFunctionId:d.deviceProductFunctionId,params:JSON.stringify(l),deviceProductId:""},b.Z.UpdateStep(c).then(function(O){if(O.data){var $;($=se.current)===null||$===void 0||$.reload(),j.ZP.success("\u6210\u529F\uFF01"),z(!1)}});case 8:case"end":return a.stop()}},p)}));return function(p){return f.apply(this,arguments)}}(),columns:Ge,form:je})})]})})]})},h=e},66309:function(H,I,n){n.d(I,{Z:function(){return i}});var g=n(67294),o=n(93967),s=n.n(o),r=n(98423),t=n(98787),P=n(69760),Oe=n(96159),oe=n(45353),ie=n(53124),le=n(85088),F=n(10274),M=n(14747),de=n(45503),j=n(27036);const be=e=>{const{paddingXXS:h,lineWidth:S,tagPaddingHorizontal:u,componentCls:v,calc:T}=e,E=T(u).sub(S).equal(),B=T(h).sub(S).equal();return{[v]:Object.assign(Object.assign({},(0,M.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:E,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,le.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${v}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${v}-close-icon`]:{marginInlineStart:B,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${v}-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(${v}-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:E}}),[`${v}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},J=e=>{const{lineWidth:h,fontSizeIcon:S,calc:u}=e,v=e.fontSizeSM;return(0,de.TS)(e,{tagFontSize:v,tagLineHeight:(0,le.bf)(u(e.lineHeightSM).mul(v).equal()),tagIconSize:u(S).sub(u(h).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Y=e=>({defaultBg:new F.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var w=(0,j.I$)("Tag",e=>{const h=J(e);return be(h)},Y),K=function(e,h){var S={};for(var u in e)Object.prototype.hasOwnProperty.call(e,u)&&h.indexOf(u)<0&&(S[u]=e[u]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,u=Object.getOwnPropertySymbols(e);v{const{prefixCls:S,style:u,className:v,checked:T,onChange:E,onClick:B}=e,A=K(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:x,tag:_}=g.useContext(ie.E_),R=z=>{E==null||E(!T),B==null||B(z)},U=x("tag",S),[X,k,D]=w(U),ee=s()(U,`${U}-checkable`,{[`${U}-checkable-checked`]:T},_==null?void 0:_.className,v,k,D);return X(g.createElement("span",Object.assign({},A,{ref:h,style:Object.assign(Object.assign({},u),_==null?void 0:_.style),className:ee,onClick:R})))}),Ie=n(98719);const ye=e=>(0,Ie.Z)(e,(h,S)=>{let{textColor:u,lightBorderColor:v,lightColor:T,darkColor:E}=S;return{[`${e.componentCls}${e.componentCls}-${h}`]:{color:u,background:T,borderColor:v,"&-inverse":{color:e.colorTextLightSolid,background:E,borderColor:E},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var C=(0,j.bk)(["Tag","preset"],e=>{const h=J(e);return ye(h)},Y);function Z(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const b=(e,h,S)=>{const u=Z(S);return{[`${e.componentCls}${e.componentCls}-${h}`]:{color:e[`color${S}`],background:e[`color${u}Bg`],borderColor:e[`color${u}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var De=(0,j.bk)(["Tag","status"],e=>{const h=J(e);return[b(h,"success","Success"),b(h,"processing","Info"),b(h,"error","Error"),b(h,"warning","Warning")]},Y),ce=function(e,h){var S={};for(var u in e)Object.prototype.hasOwnProperty.call(e,u)&&h.indexOf(u)<0&&(S[u]=e[u]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,u=Object.getOwnPropertySymbols(e);v{const{prefixCls:S,className:u,rootClassName:v,style:T,children:E,icon:B,color:A,onClose:x,bordered:_=!0,visible:R}=e,U=ce(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:X,direction:k,tag:D}=g.useContext(ie.E_),[ee,z]=g.useState(!0),Fe=(0,r.Z)(U,["closeIcon","closable"]);g.useEffect(()=>{R!==void 0&&z(R)},[R]);const te=(0,t.o2)(A),pe=(0,t.yT)(A),N=te||pe,xe=Object.assign(Object.assign({backgroundColor:A&&!N?A:void 0},D==null?void 0:D.style),T),y=X("tag",S),[Ne,Ze,Be]=w(y),me=s()(y,D==null?void 0:D.className,{[`${y}-${A}`]:N,[`${y}-has-color`]:A&&!N,[`${y}-hidden`]:!ee,[`${y}-rtl`]:k==="rtl",[`${y}-borderless`]:!_},u,v,Ze,Be),Ae=W=>{W.stopPropagation(),x==null||x(W),!W.defaultPrevented&&z(!1)},[,_e]=(0,P.Z)((0,P.w)(e),(0,P.w)(D),{closable:!1,closeIconRender:W=>{const ge=g.createElement("span",{className:`${y}-close-icon`,onClick:Ae},W);return(0,Oe.wm)(W,ge,L=>({onClick:Se=>{var ne;(ne=L==null?void 0:L.onClick)===null||ne===void 0||ne.call(L,Se),Ae(Se)},className:s()(L==null?void 0:L.className,`${y}-close-icon`)}))}}),Le=typeof U.onClick=="function"||E&&E.type==="a",ae=B||null,ve=ae?g.createElement(g.Fragment,null,ae,E&&g.createElement("span",null,E)):E,he=g.createElement("span",Object.assign({},Fe,{ref:h,className:me,style:xe}),ve,_e,te&&g.createElement(C,{key:"preset",prefixCls:y}),pe&&g.createElement(De,{key:"status",prefixCls:y}));return Ne(Le?g.createElement(oe.Z,{component:"Tag"},he):he)});fe.CheckableTag=q;var i=fe}}]); diff --git a/frontend/dist/p__craftInfo__pot.d395d8d9.async.js b/frontend/dist/p__craftInfo__pot.d395d8d9.async.js new file mode 100644 index 0000000..75d61c4 --- /dev/null +++ b/frontend/dist/p__craftInfo__pot.d395d8d9.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[869],{37387:function(te,I,n){var P=n(97857),o=n.n(P),u=n(56002);I.Z={Add:function(r){return(0,u.request)("/api/devicesinfo/add",{method:"POST",data:o()({},r)})},Del:function(r){return(0,u.request)("/api/devicesinfo/del",{method:"POST",data:o()({},r)})},Update:function(r){return(0,u.request)("/api/devicesinfo/update",{method:"POST",data:o()({},r)})},Detail:function(r){return(0,u.request)("/api/devicesinfo/detail?id=".concat(r),{method:"GET"})},List:function(){return(0,u.request)("/api/devicesinfo/list",{method:"POST"})},UnBindList:function(){return(0,u.request)("/api/devicesinfo/UnBindList",{method:"GET"})},PagedList:function(r){return(0,u.request)("/api/devicesinfo/pagedlist",{method:"POST",data:o()({},r)})},BatchUpdate:function(r){return(0,u.request)("/api/devicerecipe/batchupdate",{method:"POST",data:r})},RecipeList:function(r){return(0,u.request)(" api/devicerecipe/list",{method:"POST",data:{deviceId:r}})},selectlist:function(){return(0,u.request)("/api/devicesinfo/selectlist",{method:"GET"})}}},77386:function(te,I,n){var P=n(97857),o=n.n(P),u=n(56002);I.Z={Add:function(r){return(0,u.request)("/api/deviceProduct/add",{method:"POST",data:o()({},r)})},Del:function(r){return(0,u.request)("/api/deviceProduct/del",{method:"POST",data:o()({},r)})},Update:function(r){return(0,u.request)("/api/deviceProduct/update",{method:"POST",data:o()({},r)})},Detail:function(r){return(0,u.request)("/api/deviceProduct/detail?id=".concat(r),{method:"GET"})},List:function(r){return(0,u.request)("/api/deviceProduct/list",{method:"POST",data:o()({},r)})},PagedList:function(r){return(0,u.request)("/api/deviceProduct/pagedlist",{method:"POST",data:o()({},r)})},SelectList:function(){return(0,u.request)("/api/deviceProduct/selectlist",{method:"GET"})}}},16940:function(te,I,n){var P=n(97857),o=n.n(P),u=n(56002);I.Z={Add:function(r){return(0,u.request)("/api/deviceproductfunction/add",{method:"POST",data:o()({},r)})},Del:function(r){return(0,u.request)("/api/deviceproductfunction/del",{method:"POST",data:o()({},r)})},Update:function(r){return(0,u.request)("/api/deviceproductfunction/update",{method:"POST",data:o()({},r)})},Detail:function(r){return(0,u.request)("/api/deviceproductfunction/detail?id=".concat(r),{method:"GET"})},List:function(r){return(0,u.request)("/api/deviceproductfunction/list",{method:"POST",data:o()({},r)})},PagedList:function(r){return(0,u.request)("/api/deviceproductfunction/pagedlist",{method:"POST",data:o()({},r)})}}},48223:function(te,I,n){var P=n(97857),o=n.n(P),u=n(56002);I.Z={Add:function(r){return(0,u.request)("/api/materialsinfo/add",{method:"POST",data:o()({},r)})},Del:function(r){return(0,u.request)("/api/materialsinfo/del",{method:"POST",data:o()({},r)})},Update:function(r){return(0,u.request)("/api/materialsinfo/update",{method:"POST",data:o()({},r)})},List:function(){return(0,u.request)("/api/materialsinfo/list",{method:"GET"})},selectlist:function(){return(0,u.request)("/api/materialsinfo/selectlist",{method:"GET"})},PagedList:function(r){return(0,u.request)("/api/materialsinfo/pagedlist",{method:"POST",data:o()({},r)})}}},30488:function(te,I,n){n.r(I),n.d(I,{default:function(){return h}});var P=n(15009),o=n.n(P),u=n(99289),l=n.n(u),r=n(5574),C=n.n(r),xe=n(62763),le=n(8256),de=n(34994),ue=n(86550),x=n(8232),L=n(14726),ce=n(86738),j=n(45360),De=n(71230),H=n(15746),ae=n(42075),z=n(34041),w=n(49978),fe=n(85576),ne=n(66309),Be=n(74330),Ze=n(4393),T=n(67294),A=n(57632),J=n(97857),M=n.n(J),O=n(56002),D={Add:function(i){return(0,O.request)("/api/craftsinfo/add",{method:"POST",data:M()({},i)})},Del:function(i){return(0,O.request)("/api/craftsinfo/del",{method:"POST",data:M()({},i)})},Update:function(i){return(0,O.request)("/api/craftsinfo/update",{method:"POST",data:M()({},i)})},Detail:function(i){return(0,O.request)("/api/craftsinfo/detail?id=".concat(i),{method:"GET"})},List:function(){return(0,O.request)("/api/craftsinfo/list",{method:"POST"})},UnBindList:function(){return(0,O.request)("/api/craftsinfo/UnBindList",{method:"GET"})},PagedList:function(i){return(0,O.request)("/api/craftsinfo/pagedlist",{method:"POST",data:M()({},i)})},BatchUpdate:function(i){return(0,O.request)("/api/craftsrecipe/batchupdate",{method:"POST",data:i})},selectlist:function(){return(0,O.request)("/api/craftsinfo/selectlist",{method:"GET"})},BatchAdd:function(i){return(0,O.request)("",{method:"POST",data:M()({},i)})},craftsStepPage:function(i){return(0,O.request)("/api/craftssteps/pagedlist",{method:"POST",data:M()({},i)})},BatchUpdateStep:function(i){return(0,O.request)("/api/craftssteps/batchupdate",{method:"POST",data:i})},UpdateStep:function(i){return(0,O.request)("/api/craftssteps/update",{method:"POST",data:i})},DelStep:function(i){return(0,O.request)("/api/craftssteps/del",{method:"POST",data:M()({},i)})},StepAdd:function(i){return(0,O.request)("/api/craftssteps/add",{method:"POST",data:i})}},pe=n(37387),me=n(77386),e=n(16940),g=n(48223),a=n(85893),c=function(){var i=x.Z.useForm(),U=C()(i,1),y=U[0],W=(0,T.useState)(!1),B=C()(W,2),_=B[0],b=B[1],re=(0,T.useState)(!1),X=C()(re,2),Z=X[0],Q=X[1],Y=(0,T.useState)(!1),ve=C()(Y,2),he=ve[0],q=ve[1],se=(0,T.useState)(!1),ge=C()(se,2),F=ge[0],K=ge[1],Ae=(0,T.useState)([]),Se=C()(Ae,2),$e=Se[0],Pe=Se[1],Le=(0,T.useState)([]),Ce=C()(Le,2),Me=Ce[0],Ue=Ce[1],Te=(0,T.useState)(),N=C()(Te,2),je=N[0],$=N[1],Oe=(0,T.useState)(),k=C()(Oe,2),Re=k[0],Qe=k[1],Ye=(0,T.useState)("\u6B65\u9AA4\u5217\u8868"),ze=C()(Ye,2),qe=ze[0],ke=ze[1],et=(0,T.useState)(),we=C()(et,2),tt=we[0],at=we[1],nt=(0,T.useState)(),We=C()(nt,2),G=We[0],Ne=We[1],rt=(0,T.useState)([]),_e=C()(rt,2),Ke=_e[0],st=_e[1],ot=(0,T.useState)([]),Ge=C()(ot,2),Ve=Ge[0],oe=Ge[1],Ee=(0,T.useRef)(),it=x.Z.useForm(),lt=C()(it,1),ye=lt[0],dt=x.Z.useForm(),ut=C()(dt,1),be=ut[0],ie=(0,T.useRef)(),pt=(0,T.useRef)();(0,T.useEffect)(function(){pe.Z.selectlist().then(function(p){p.statusCode===200&&Pe(p.data)}),me.Z.SelectList().then(function(p){p.statusCode===200&&Ue(p.data)}),g.Z.selectlist().then(function(p){if(p.statusCode===200){var m=p.data;m.map(function(s){return s.label=s.value,s.value=s.key}),Qe(p.data)}})},[]),(0,T.useEffect)(function(){},[Ve]);var He=[{dataIndex:"id",align:"center",hideInTable:!0,hideInForm:!0,readonly:!0,search:!1},{title:"\u8BBE\u5907\u4EA7\u54C1",dataIndex:"deviceProductId",align:"center",valueType:"select",request:function(){var p=l()(o()().mark(function s(){var d,f;return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,me.Z.SelectList();case 2:return d=t.sent,f=d.data,f.map(function(E){return E.label=E.value,E.value=E.key}),t.abrupt("return",f);case 6:case"end":return t.stop()}},s)}));function m(){return p.apply(this,arguments)}return m}()},{title:"\u5DE5\u827A\u540D\u79F0",dataIndex:"name",align:"center",search:!1},{title:"\u5DE5\u827A\u63CF\u8FF0",dataIndex:"description",align:"center",hideInSearch:!0},{title:"\u64CD\u4F5C",align:"center",valueType:"option",render:function(m,s){return[(0,a.jsx)(L.ZP,{type:"primary",ghost:!0,onClick:l()(o()().mark(function d(){var f;return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:b(!0),console.log("record",s),f=JSON.parse(JSON.stringify(s)),Ne(s),y.setFieldsValue(f);case 5:case"end":return t.stop()}},d)})),children:"\u7F16\u8F91"},(0,A.Z)()),(0,a.jsx)(ce.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){var f={id:s.id,step:0,craftId:"",deviceProductId:""};D.Del(f).then(function(v){if(v.statusCode===200){var t;j.ZP.success(v.statusCode===200?"\u5220\u9664\u6210\u529F":v.message),(t=Ee.current)===null||t===void 0||t.reload()}})},onCancel:function(){j.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,a.jsx)(L.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5220\u9664"})},"craftinfoDel")]}}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(De.Z,{wrap:!1,gutter:[10,10],children:[(0,a.jsx)(H.Z,{flex:.1,children:(0,a.jsx)(ue.Z,{columns:He,actionRef:Ee,className:"box",cardBordered:!0,dateFormatter:"string",headerTitle:"\u5DE5\u827A\u5217\u8868",rowClassName:function(m,s){return s===tt?"rowBgColor":""},onRow:function(m,s){return{onClick:function(){m.id&&(at(s),Ne(m),$({craftId:m.id}),ke("[".concat(m.name,"]\u6B65\u9AA4\u5217\u8868")))}}},request:l()(o()().mark(function p(){var m,s,d,f=arguments;return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return m=f.length>0&&f[0]!==void 0?f[0]:{},s={pageIndex:m.current||1,pageSize:m.pageSize||10,name:m.name||"",deviceType:0},t.next=4,D.PagedList(s);case 4:if(d=t.sent,d.statusCode!==200){t.next=9;break}return t.abrupt("return",{data:d.data.items,success:!0,total:d.data.total});case 9:return t.abrupt("return",{data:[],success:!1,total:0});case 10:case"end":return t.stop()}},p)})),rowKey:"id",pagination:{pageSize:10,showSizeChanger:!1},toolBarRender:function(){return[(0,a.jsx)(L.ZP,{type:"primary",onClick:function(){y.resetFields(),b(!0),Ne({id:"",name:"",step:0,craftId:"",deviceType:0})},children:"\u6DFB\u52A0\u5DE5\u827A"},(0,A.Z)())]}})}),(0,a.jsx)(H.Z,{flex:4,children:(0,a.jsx)(xe.Z,{toolBarRender:function(){return[(0,a.jsx)(L.ZP,{type:"primary",onClick:function(){y.resetFields(),K(!0)},children:"\u6DFB\u52A0\u6B65\u9AA4"},(0,A.Z)())]},actionRef:ie,headerTitle:qe,columns:[{title:"\u6B65\u9AA4",dataIndex:"step",align:"center",hideInSearch:!0,render:function(m,s,d){return(0,a.jsx)("span",{className:"customRender",children:"".concat(d+1)})}},{title:"\u6B65\u9AA4\u63CF\u8FF0",dataIndex:"description",align:"center",hideInSearch:!0},{title:"\u529F\u80FD",dataIndex:"deviceProductFunctionName",align:"center",hideInSearch:!0},{title:"\u64CD\u4F5C",align:"center",valueType:"option",key:"option",render:function(m,s,d,f){return[(0,a.jsxs)(ae.Z,{size:"middle",children:[(0,a.jsx)(L.ZP,{type:"primary",ghost:!0,onClick:l()(o()().mark(function v(){var t;return o()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:t=JSON.parse(JSON.stringify(s)),console.log("copyFormData",t),y.setFieldsValue(t),K(!0);case 4:case"end":return R.stop()}},v)})),children:"\u7F16\u8F91"},(0,A.Z)()),(0,a.jsx)(L.ZP,{type:"primary",ghost:!0,onClick:l()(o()().mark(function v(){var t,E;return o()().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:q(!0),oe([]),Q(!0),t=JSON.parse(JSON.stringify(s)),ye.setFieldsValue(t),console.log("record",s),E={deviceProductId:G==null?void 0:G.deviceProductId},e.Z.List(E).then(function(Ie){Ie.succeeded&&(st(Ie.data),setTimeout(function(){var V=Ie.data.find(function(ee){return ee.id===s.deviceProductFunctionId});if(V!=null&&V.params){var Je=JSON.parse(V==null?void 0:V.params);console.log(Je);var Xe=[];Je.map(function(ee){var ft={title:ee.paramName,dataIndex:ee.paramCode,width:"md",renderFormItem:function(vt,ht,gt){return ee.paramType===1?(0,a.jsx)(z.Z,{mode:"multiple",options:Re}):(0,a.jsx)(w.Z,{addonAfter:ee.paramUnit})},colProps:{xs:24,md:12}};Xe.push(ft)}),oe(Xe)}if(be){var ct=JSON.parse(s.params);be.setFieldsValue(ct)}Q(!1)},200))});case 8:case"end":return Fe.stop()}},v)})),children:"\u914D\u7F6E\u8BBE\u5907\u53C2\u6570"},(0,A.Z)()),(0,a.jsx)(ce.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){var t={id:s.id,step:0,craftId:"",deviceProductId:""};D.DelStep(t).then(function(E){E.statusCode===200&&(j.ZP.success(E.statusCode===200?"\u5220\u9664\u6210\u529F":E.message),f==null||f.reload())})},onCancel:function(){j.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,a.jsx)(L.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5220\u9664"})},(0,A.Z)())]},(0,A.Z)())]}}],rowKey:"step",search:!1,pagination:{pageSize:100,showSizeChanger:!1},params:je,request:l()(o()().mark(function p(){var m,s,d,f=arguments;return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(m=f.length>0&&f[0]!==void 0?f[0]:{},m.craftId){t.next=3;break}return t.abrupt("return",{data:[],success:!1,total:0});case 3:return s={pageIndex:m.current||1,pageSize:m.pageSize||10,craftId:m.craftId},t.next=6,D.craftsStepPage(s);case 6:if(d=t.sent,d.statusCode!==200){t.next=11;break}return t.abrupt("return",{data:d.data.items,success:!0,total:d.data.total});case 11:return t.abrupt("return",{data:[],success:!1,total:0});case 12:case"end":return t.stop()}},p)})),dragSortKey:"step",onDragSortEnd:function(m,s,d){console.log("newDataSource",d),d.map(function(f,v){f.step=v+1}),console.log("\u6392\u5E8F\u540E\u7684\u6570\u636E",d),D.BatchUpdateStep(d).then(function(f){if(f.data){var v;(v=ie.current)===null||v===void 0||v.reload(),j.ZP.success("\u4FEE\u6539\u5217\u8868\u6392\u5E8F\u6210\u529F")}})}})})]}),(0,a.jsx)(fe.Z,{maskClosable:!1,width:800,title:(0,a.jsx)(ne.Z,{color:"#cd201f",children:"\u5DE5\u827A\u4FE1\u606F"}),open:_,onCancel:function(){b(!1)},footer:!1,children:(0,a.jsx)(le.Z,{onFinish:function(){var p=l()(o()().mark(function m(s){return o()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:G!=null&&G.id?(s.id=G.id,D.Update(s).then(function(v){if(v.data){var t;j.ZP.success("\u4FEE\u6539\u6210\u529F\uFF01"),b(!1),(t=Ee.current)===null||t===void 0||t.reload()}else j.ZP.success(v.errors)})):D.Add(s).then(function(v){if(v.data){var t;j.ZP.success("\u6DFB\u52A0\u6210\u529F\uFF01"),b(!1),(t=Ee.current)===null||t===void 0||t.reload()}else j.ZP.success(v.errors)});case 1:case"end":return f.stop()}},m)}));return function(m){return p.apply(this,arguments)}}(),form:y,columns:He})},(0,A.Z)()),(0,a.jsx)(fe.Z,{maskClosable:!1,destroyOnClose:!0,width:800,open:F,onCancel:function(){K(!1)},footer:!1,title:(0,a.jsx)(ne.Z,{color:"#cd201f",children:" \u6DFB\u52A0\u6B65\u9AA4 "}),children:(0,a.jsxs)(de.A,{form:y,onFinish:function(){var p=l()(o()().mark(function m(s){return o()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:s.craftId=je.craftId,console.log(s),s.id?D.UpdateStep(s).then(function(v){if(v.data){var t;j.ZP.success("\u63D0\u4EA4\u6210\u529F"),K(!1),(t=ie.current)===null||t===void 0||t.reload()}else j.ZP.success(v.errors)}):D.StepAdd(s).then(function(v){if(v.data){var t;j.ZP.success("\u63D0\u4EA4\u6210\u529F"),K(!1),(t=ie.current)===null||t===void 0||t.reload()}else j.ZP.success(v.errors)});case 3:case"end":return f.stop()}},m)}));return function(m){return p.apply(this,arguments)}}(),children:[(0,a.jsx)(x.Z.Item,{label:"\u6B65\u9AA4Id",name:"id",hidden:!0,children:(0,a.jsx)(w.Z,{})}),(0,a.jsx)(x.Z.Item,{children:(0,a.jsx)("div",{children:"\u5C06\u81EA\u52A8\u751F\u6210\u6B65\u9AA4\u5E8F\u53F7"})}),(0,a.jsx)(x.Z.Item,{label:"\u6B65\u9AA4\u8BF4\u660E",name:"description",children:(0,a.jsx)(w.Z,{})})]})}),(0,a.jsx)(fe.Z,{maskClosable:!1,destroyOnClose:!0,width:800,title:(0,a.jsx)(ne.Z,{color:"#cd201f",children:" \u914D\u7F6E\u8BBE\u5907\u53C2\u6570\u4FE1\u606F"}),open:he,onCancel:function(){q(!1),be.resetFields(),oe([])},footer:!1,children:(0,a.jsxs)(Be.Z,{spinning:Z,children:[(0,a.jsxs)(x.Z,{form:ye,name:"basic1",id:"myForm1111",labelCol:{span:4},wrapperCol:{span:12},autoComplete:"off",children:[(0,a.jsx)(x.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,a.jsx)(w.Z,{})}),(0,a.jsx)(x.Z.Item,{label:"\u8BBE\u5907\u529F\u80FD\u4FE1\u606F",name:"deviceProductFunctionId",rules:[{required:!0,message:"\u6B64\u9879\u5FC5\u586B\uFF01"}],children:(0,a.jsx)(z.Z,{onChange:function(m,s){var d=Ke.find(function(t){return t.id===m});if(d!=null&&d.params){var f=JSON.parse(d==null?void 0:d.params);console.log(f);var v=[];f.map(function(t){var E={title:t.paramName,dataIndex:t.paramCode,width:"md",renderFormItem:function(Fe,Ie,V){return t.paramType===1?(0,a.jsx)(z.Z,{mode:"multiple",options:Re}):(0,a.jsx)(w.Z,{addonAfter:t.paramUnit})},colProps:{xs:24,md:12}};v.push(E)}),oe(v)}else oe([])},placeholder:"\u4E0B\u62C9\u9009\u62E9\u529F\u80FD",children:Ke.map(function(p){return(0,a.jsx)(z.Z.Option,{value:p.id,children:(0,a.jsx)("span",{children:p.name})},p.id)})})})]}),(0,a.jsx)(Ze.Z,{children:(0,a.jsx)(le.Z,{trigger:(0,a.jsx)("a",{children:"\u70B9\u51FB\u6211"}),rowProps:{gutter:[16,16]},colProps:{span:12},grid:!0,onFinish:function(){var p=l()(o()().mark(function m(s){var d,f;return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(console.log(ye.getFieldsValue()),d=ye.getFieldsValue(),d.deviceProductFunctionId){t.next=5;break}return j.ZP.error("\u8BF7\u9009\u62E9\u8BBE\u5907\u4EA7\u54C1\u529F\u80FD"),t.abrupt("return");case 5:console.log(d.deviceProductFunctionId),f={id:d.id,deviceProductFunctionId:d.deviceProductFunctionId,params:JSON.stringify(s),deviceProductId:""},D.UpdateStep(f).then(function(E){if(E.data){var R;(R=ie.current)===null||R===void 0||R.reload(),j.ZP.success("\u6210\u529F\uFF01"),q(!1)}});case 8:case"end":return t.stop()}},m)}));return function(m){return p.apply(this,arguments)}}(),columns:Ve,form:be})})]})})]})},h=c},66309:function(te,I,n){n.d(I,{Z:function(){return me}});var P=n(67294),o=n(93967),u=n.n(o),l=n(98423),r=n(98787),C=n(69760),xe=n(96159),le=n(45353),de=n(53124),ue=n(85088),x=n(10274),L=n(14747),ce=n(45503),j=n(27036);const De=e=>{const{paddingXXS:g,lineWidth:a,tagPaddingHorizontal:c,componentCls:h,calc:S}=e,i=S(c).sub(a).equal(),U=S(g).sub(a).equal();return{[h]:Object.assign(Object.assign({},(0,L.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,ue.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${h}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${h}-close-icon`]:{marginInlineStart:U,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${h}-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(${h}-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:i}}),[`${h}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},H=e=>{const{lineWidth:g,fontSizeIcon:a,calc:c}=e,h=e.fontSizeSM;return(0,ce.TS)(e,{tagFontSize:h,tagLineHeight:(0,ue.bf)(c(e.lineHeightSM).mul(h).equal()),tagIconSize:c(a).sub(c(g).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},ae=e=>({defaultBg:new x.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var z=(0,j.I$)("Tag",e=>{const g=H(e);return De(g)},ae),w=function(e,g){var a={};for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&g.indexOf(c)<0&&(a[c]=e[c]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,c=Object.getOwnPropertySymbols(e);h{const{prefixCls:a,style:c,className:h,checked:S,onChange:i,onClick:U}=e,y=w(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:W,tag:B}=P.useContext(de.E_),_=Y=>{i==null||i(!S),U==null||U(Y)},b=W("tag",a),[re,X,Z]=z(b),Q=u()(b,`${b}-checkable`,{[`${b}-checkable-checked`]:S},B==null?void 0:B.className,h,X,Z);return re(P.createElement("span",Object.assign({},y,{ref:g,style:Object.assign(Object.assign({},c),B==null?void 0:B.style),className:Q,onClick:_})))}),Be=n(98719);const Ze=e=>(0,Be.Z)(e,(g,a)=>{let{textColor:c,lightBorderColor:h,lightColor:S,darkColor:i}=a;return{[`${e.componentCls}${e.componentCls}-${g}`]:{color:c,background:S,borderColor:h,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var T=(0,j.bk)(["Tag","preset"],e=>{const g=H(e);return Ze(g)},ae);function A(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const J=(e,g,a)=>{const c=A(a);return{[`${e.componentCls}${e.componentCls}-${g}`]:{color:e[`color${a}`],background:e[`color${c}Bg`],borderColor:e[`color${c}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var M=(0,j.bk)(["Tag","status"],e=>{const g=H(e);return[J(g,"success","Success"),J(g,"processing","Info"),J(g,"error","Error"),J(g,"warning","Warning")]},ae),O=function(e,g){var a={};for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&g.indexOf(c)<0&&(a[c]=e[c]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,c=Object.getOwnPropertySymbols(e);h{const{prefixCls:a,className:c,rootClassName:h,style:S,children:i,icon:U,color:y,onClose:W,bordered:B=!0,visible:_}=e,b=O(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:re,direction:X,tag:Z}=P.useContext(de.E_),[Q,Y]=P.useState(!0),ve=(0,l.Z)(b,["closeIcon","closable"]);P.useEffect(()=>{_!==void 0&&Y(_)},[_]);const he=(0,r.o2)(y),q=(0,r.yT)(y),se=he||q,ge=Object.assign(Object.assign({backgroundColor:y&&!se?y:void 0},Z==null?void 0:Z.style),S),F=re("tag",a),[K,Ae,Se]=z(F),$e=u()(F,Z==null?void 0:Z.className,{[`${F}-${y}`]:se,[`${F}-has-color`]:y&&!se,[`${F}-hidden`]:!Q,[`${F}-rtl`]:X==="rtl",[`${F}-borderless`]:!B},c,h,Ae,Se),Pe=N=>{N.stopPropagation(),W==null||W(N),!N.defaultPrevented&&Y(!1)},[,Le]=(0,C.Z)((0,C.w)(e),(0,C.w)(Z),{closable:!1,closeIconRender:N=>{const je=P.createElement("span",{className:`${F}-close-icon`,onClick:Pe},N);return(0,xe.wm)(N,je,$=>({onClick:Oe=>{var k;(k=$==null?void 0:$.onClick)===null||k===void 0||k.call($,Oe),Pe(Oe)},className:u()($==null?void 0:$.className,`${F}-close-icon`)}))}}),Ce=typeof b.onClick=="function"||i&&i.type==="a",Me=U||null,Ue=Me?P.createElement(P.Fragment,null,Me,i&&P.createElement("span",null,i)):i,Te=P.createElement("span",Object.assign({},ve,{ref:g,className:$e,style:ge}),Ue,Le,he&&P.createElement(T,{key:"preset",prefixCls:F}),q&&P.createElement(M,{key:"status",prefixCls:F}));return K(Ce?P.createElement(le.Z,{component:"Tag"},Te):Te)});pe.CheckableTag=ne;var me=pe}}]); diff --git a/frontend/dist/p__final__index.0c5211d3.async.js b/frontend/dist/p__final__index.0c5211d3.async.js new file mode 100644 index 0000000..58663fa --- /dev/null +++ b/frontend/dist/p__final__index.0c5211d3.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[460],{55492:function(R,C,e){var D=e(97857),l=e.n(D),o=e(56002);C.Z={Add:function(i){return(0,o.request)("/api/finalsinfo/add",{method:"POST",data:l()({},i)})},Del:function(i){return(0,o.request)("/api/finalsinfo/del",{method:"POST",data:l()({},i)})},Update:function(i){return(0,o.request)("/api/finalsinfo/update",{method:"POST",data:l()({},i)})},Detail:function(i){return(0,o.request)("/api/finalsinfo/detail?id=".concat(i),{method:"GET"})},List:function(){return(0,o.request)("/api/finalsinfo/list",{method:"POST"})},SelectList:function(){return(0,o.request)("/api/finalsinfo/selectlist",{method:"GET"})},UnBindList:function(){return(0,o.request)("/api/finalsinfo/UnBindList",{method:"GET"})},PagedList:function(i){return(0,o.request)("/api/finalsinfo/pagedlist",{method:"POST",data:l()({},i)})},BatchUpdate:function(i){return(0,o.request)("/api/finalsinfo/batchupdate",{method:"POST",data:i})},RecipeList:function(i){return(0,o.request)(" api/finalsinfo/list",{method:"POST",data:{deviceId:i}})}}},48223:function(R,C,e){var D=e(97857),l=e.n(D),o=e(56002);C.Z={Add:function(i){return(0,o.request)("/api/materialsinfo/add",{method:"POST",data:l()({},i)})},Del:function(i){return(0,o.request)("/api/materialsinfo/del",{method:"POST",data:l()({},i)})},Update:function(i){return(0,o.request)("/api/materialsinfo/update",{method:"POST",data:l()({},i)})},List:function(){return(0,o.request)("/api/materialsinfo/list",{method:"GET"})},selectlist:function(){return(0,o.request)("/api/materialsinfo/selectlist",{method:"GET"})},PagedList:function(i){return(0,o.request)("/api/materialsinfo/pagedlist",{method:"POST",data:l()({},i)})}}},23052:function(R,C,e){e.r(C),e.d(C,{default:function(){return se}});var D=e(15009),l=e.n(D),o=e(99289),u=e.n(o),i=e(5574),p=e.n(i),H=e(86550),Q=e(29933),X=e(88280),O=e(8232),P=e(14726),Y=e(86738),v=e(45360),M=e(85576),ee=e(66309),b=e(49978),te=e(74330),m=e(67294),y=e(55492),ae=e(97857),I=e.n(ae),g=e(56002),U={Add:function(c){return(0,g.request)("/api/finalmaterial/add",{method:"POST",data:I()({},c)})},Del:function(c){return(0,g.request)("/api/finalmaterial/del",{method:"POST",data:I()({},c)})},Update:function(c){return(0,g.request)("/api/finalmaterial/update",{method:"POST",data:I()({},c)})},Detail:function(c){return(0,g.request)("/api/finalmaterial/detail?id=".concat(c),{method:"GET"})},List:function(c){return(0,g.request)("/api/finalmaterial/list",{method:"POST",data:I()({},c)})},PagedList:function(c){return(0,g.request)("/api/finalmaterial/pagedlist",{method:"POST",data:I()({},c)})},BatchAdd:function(c){return(0,g.request)("/api/finalmaterial/batchadd",{method:"POST",data:c})}},ne=e(48223),a=e(85893),re=function(){var c=O.Z.useForm(),ie=p()(c,1),ue=ie[0],le=(0,m.useState)(!1),_=p()(le,2),oe=_[0],x=_[1],de=(0,m.useState)(!1),N=p()(de,2),Ae=N[0],be=N[1],fe=(0,m.useRef)(),$=(0,m.useRef)(),ce=(0,m.useState)([]),G=p()(ce,2),Z=G[0],F=G[1],me=(0,m.useState)([]),K=p()(me,2),pe=K[0],he=K[1],Se=(0,m.useState)(),W=p()(Se,2),ve=W[0],Pe=W[1],ge=O.Z.useForm(),je=p()(ge,1),B=je[0],Te=(0,m.useState)(!1),J=p()(Te,2),Ce=J[0],E=J[1],L=(0,m.useRef)(),Oe=(0,m.useState)(),z=p()(Oe,2),Ee=z[0],q=z[1],De=(0,m.useState)(),V=p()(De,2),Ie=V[0],A=V[1],Ze=[{title:"id",dataIndex:"id",hideInSearch:!0,hideInTable:!0},{title:"\u6210\u54C1\u7F16\u53F7",dataIndex:"code",hideInSearch:!1,ellipsis:!0},{title:"\u6210\u54C1\u540D\u79F0",dataIndex:"name",hideInSearch:!1,ellipsis:!0},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(f,n){return[(0,a.jsx)(P.ZP,{type:"primary",ghost:!0,onClick:u()(l()().mark(function s(){var r;return l()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:E(!0),q("\u6210\u54C1\u7F16\u8F91"),r=JSON.parse(JSON.stringify(n)),r.state=r.state==="0",B.setFieldsValue(r);case 5:case"end":return t.stop()}},s)})),children:"\u7F16\u8F91"},"edit"),(0,a.jsx)(P.ZP,{type:"primary",ghost:!0,onClick:u()(l()().mark(function s(){var r;return l()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:x(!0),r={finalId:n.id},Pe(n),U.List(r).then(function(T){T.statusCode===200&&(F(T.data),A(!0)),x(!1)}).catch(function(){A(!1),x(!1)});case 4:case"end":return t.stop()}},s)})),children:"\u914D\u65B9\u8BBE\u7F6E"},"peifang"),(0,a.jsx)(Y.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){var r={id:n.id};y.Z.Del(r).then(function(h){if(h.statusCode===200){var t;v.ZP.success(h.statusCode===200?"\u5220\u9664\u6210\u529F":h.message),(t=L.current)===null||t===void 0||t.reload()}})},onCancel:function(){v.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,a.jsx)(P.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5220\u9664"})},"del")]}}],ye=function(){var d=u()(l()().mark(function f(n){var s,r,h,t;return l()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(!n.id){S.next=7;break}return S.next=3,y.Z.Update(n);case 3:s=S.sent,s.statusCode===200?(v.ZP.success("\u4FEE\u6539\u6210\u529F"),(r=L.current)===null||r===void 0||r.reload(),E(!1)):v.ZP.error(JSON.stringify(s.errors)||"\u4FEE\u6539\u5931\u8D25"),S.next=11;break;case 7:return S.next=9,y.Z.Add(n);case 9:h=S.sent,h.statusCode===200?(v.ZP.success("\u6DFB\u52A0\u6210\u529F"),(t=L.current)===null||t===void 0||t.reload(),E(!1)):v.ZP.error(JSON.stringify(h.errors)||"\u6DFB\u52A0\u5931\u8D25");case 11:case"end":return S.stop()}},f)}));return function(n){return d.apply(this,arguments)}}(),Fe=(0,m.useState)([]),w=p()(Fe,2),xe=w[0],Be=w[1],Le=(0,m.useState)([]),k=p()(Le,2),Re=k[0],Me=k[1];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(H.Z,{columns:Ze,actionRef:L,cardBordered:!0,request:u()(l()().mark(function d(){var f,n,s,r=arguments;return l()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return f=r.length>0&&r[0]!==void 0?r[0]:{},n={pageIndex:f.current||1,pageSize:f.pageSize||10,name:f.name||"",id:"",code:""},t.next=4,y.Z.PagedList(n);case 4:if(s=t.sent,s.statusCode!==200){t.next=9;break}return t.abrupt("return",{data:s.data.items,success:!0,total:s.data.total});case 9:return t.abrupt("return",{data:[],success:!1,total:0});case 10:case"end":return t.stop()}},d)})),rowKey:"id",pagination:{pageSize:10,showSizeChanger:!1},dateFormatter:"string",headerTitle:"\u6210\u54C1\u5217\u8868",toolBarRender:function(){return[(0,a.jsx)(P.ZP,{type:"primary",onClick:function(){B.resetFields(),E(!0),q("\u65B0\u589E\u6210\u54C1")},children:"\u65B0\u589E\u6210\u54C1"},"button")]}},"myTable"),(0,a.jsx)(M.Z,{maskClosable:!1,width:800,title:(0,a.jsx)(ee.Z,{color:"#cd201f",children:Ee}),open:Ce,onCancel:function(){E(!1)},footer:[(0,a.jsx)(P.ZP,{onClick:function(){E(!1)},children:"\u8FD4\u56DE"},"back"),(0,a.jsx)(P.ZP,{form:"finalForm",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],children:(0,a.jsxs)(O.Z,{form:B,name:"basic",id:"finalForm",lCol:{span:4},wrapperCol:{span:12},onFinish:ye,autoComplete:"off",children:[(0,a.jsx)(O.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,a.jsx)(b.Z,{})}),(0,a.jsx)(O.Z.Item,{label:"\u6210\u54C1\u7F16\u7801",name:"code",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,a.jsx)(b.Z,{})}),(0,a.jsx)(O.Z.Item,{name:"name",label:"\u6210\u54C1\u540D\u79F0",rules:[{required:!0,message:"Missing area"}],children:(0,a.jsx)(b.Z,{})})]})},"01"),(0,a.jsx)(M.Z,{maskClosable:!1,width:1200,title:"\u914D\u7F6E\u7269\u6599",open:Ie,destroyOnClose:!0,onCancel:function(){A(!1),F([])},onOk:function(){var f=JSON.parse(JSON.stringify(Z));f.map(function(n){n.finalId=ve.id}),U.BatchAdd(f).then(function(n){n.statusCode===200?(v.ZP.success("\u4FDD\u5B58\u6210\u529F!"),A(!1)):v.ZP.error("\u4FDD\u5B58\u5931\u8D25!")})},children:(0,a.jsx)(te.Z,{spinning:oe,children:(0,a.jsx)(Q.Z,{children:(0,a.jsx)("div",{style:{maxWidth:1200,margin:"auto"},children:(0,a.jsx)(X.Z,{rowKey:"id",controlled:!0,editableFormRef:fe,actionRef:$,columns:[{title:"\u7269\u6599\u540D\u79F0",dataIndex:"materialId",valueType:"select",ellipsis:!0,request:function(){var d=u()(l()().mark(function n(){var s,r;return l()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ne.Z.List();case 2:return s=t.sent,r=[],s.statusCode===200&&(he(s.data),s.data.map(function(T){return r.push({label:"".concat(T.name,"[").concat(T.unit,"]"),value:T.id})})),t.abrupt("return",r);case 6:case"end":return t.stop()}},n)}));function f(){return d.apply(this,arguments)}return f}(),formItemProps:function(){return{rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879"}]}}},{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(f,n){return[(0,a.jsx)(P.ZP,{type:"primary",ghost:!0,onClick:function(){var r;console.log(n),(r=$.current)===null||r===void 0||r.startEditable(n.id)},children:"\u7F16\u8F91\u539F\u6599"},"edit")]}}],value:Z,recordCreatorProps:{record:function(){return{id:Date.now().toString(),materialId:"",finalId:"",weight:""}}},editable:{form:ue,type:"single",onValuesChange:function(f,n){console.log(pe),n?F(n):(Z.push(f),F(Z)),console.log("materiallist",Z)},actionRender:function(f,n,s){return[s.delete,s.save,s.cancel]}}})})})})},"02")]})},se=re}}]); diff --git a/frontend/dist/p__final__index.b1c7fb46.async.js b/frontend/dist/p__final__index.b1c7fb46.async.js deleted file mode 100644 index 9625463..0000000 --- a/frontend/dist/p__final__index.b1c7fb46.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[460],{30744:function(J,D,a){var p=a(97857),l=a.n(p),r=a(56002);D.Z={Add:function(t){return(0,r.request)("/api/craftsinfo/add",{method:"POST",data:l()({},t)})},Del:function(t){return(0,r.request)("/api/craftsinfo/del",{method:"POST",data:l()({},t)})},Update:function(t){return(0,r.request)("/api/craftsinfo/update",{method:"POST",data:l()({},t)})},Detail:function(t){return(0,r.request)("/api/craftsinfo/detail?id=".concat(t),{method:"GET"})},List:function(){return(0,r.request)("/api/craftsinfo/list",{method:"POST"})},UnBindList:function(){return(0,r.request)("/api/craftsinfo/UnBindList",{method:"GET"})},PagedList:function(t){return(0,r.request)("/api/craftsinfo/pagedlist",{method:"POST",data:l()({},t)})},BatchUpdate:function(t){return(0,r.request)("/api/craftsrecipe/batchupdate",{method:"POST",data:t})},selectlist:function(){return(0,r.request)("/api/craftsinfo/selectlist",{method:"GET"})},BatchAdd:function(t){return(0,r.request)("",{method:"POST",data:l()({},t)})},craftsStepPage:function(t){return(0,r.request)("/api/craftssteps/pagedlist",{method:"POST",data:l()({},t)})},BatchUpdateStep:function(t){return(0,r.request)("/api/craftssteps/batchupdate",{method:"POST",data:t})},UpdateStep:function(t){return(0,r.request)("/api/craftssteps/update",{method:"POST",data:t})},DelStep:function(t){return(0,r.request)("/api/craftssteps/del",{method:"POST",data:l()({},t)})},StepAdd:function(t){return(0,r.request)("/api/craftssteps/add",{method:"POST",data:t})}}},55492:function(J,D,a){var p=a(97857),l=a.n(p),r=a(56002);D.Z={Add:function(t){return(0,r.request)("/api/finalsinfo/add",{method:"POST",data:l()({},t)})},Del:function(t){return(0,r.request)("/api/finalsinfo/del",{method:"POST",data:l()({},t)})},Update:function(t){return(0,r.request)("/api/finalsinfo/update",{method:"POST",data:l()({},t)})},Detail:function(t){return(0,r.request)("/api/finalsinfo/detail?id=".concat(t),{method:"GET"})},List:function(){return(0,r.request)("/api/finalsinfo/list",{method:"POST"})},SelectList:function(){return(0,r.request)("/api/finalsinfo/selectlist",{method:"GET"})},UnBindList:function(){return(0,r.request)("/api/finalsinfo/UnBindList",{method:"GET"})},PagedList:function(t){return(0,r.request)("/api/finalsinfo/pagedlist",{method:"POST",data:l()({},t)})},BatchUpdate:function(t){return(0,r.request)("/api/finalsinfo/batchupdate",{method:"POST",data:t})},RecipeList:function(t){return(0,r.request)(" api/finalsinfo/list",{method:"POST",data:{deviceId:t}})}}},70226:function(J,D,a){var p=a(97857),l=a.n(p),r=a(56002);D.Z={Add:function(t){return(0,r.request)("/api/recipesinfo/add",{method:"POST",data:l()({},t)})},Del:function(t){return(0,r.request)("/api/recipesinfo/del",{method:"POST",data:l()({},t)})},Update:function(t){return(0,r.request)("/api/recipesinfo/update",{method:"POST",data:l()({},t)})},List:function(){return(0,r.request)("/api/recipesinfo/list",{method:"GET"})},PagedList:function(t){return(0,r.request)("/api/recipesinfo/pagedlist",{method:"POST",data:l()({},t)})},MaterialList:function(t){return(0,r.request)("/api/recipematerial/list",{method:"POST",data:l()({},t)})},BatchAdd:function(t){return(0,r.request)("/api/recipematerial/batchadd",{method:"POST",data:t})},ChangeGroup:function(t){return(0,r.request)("/api/recipesinfo/changegroup",{method:"POST",data:t})},selectlist:function(){return(0,r.request)("/api/recipesinfo/selectlist",{method:"GET"})}}},72677:function(J,D,a){a.r(D);var p=a(15009),l=a.n(p),r=a(99289),s=a.n(r),t=a(5574),j=a.n(t),Y=a(86550),y=a(8232),v=a(14726),k=a(86738),A=a(45360),X=a(85576),ee=a(66309),x=a(49978),N=a(34041),S=a(67294),L=a(55492),q=a(30744),te=a(70226),u=a(85893),ae=function(){var ne=y.Z.useForm(),re=j()(ne,1),G=re[0],W=(0,S.useState)(!1),Q=j()(W,2),H=Q[0],U=Q[1],Z=(0,S.useRef)(),se=(0,S.useState)(),e=j()(se,2),d=e[0],f=e[1],o=(0,S.useState)(),i=j()(o,2),E=i[0],h=i[1],M=[{title:"id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u6210\u54C1\u7F16\u53F7",dataIndex:"code",hideInSearch:!1,ellipsis:!0},{title:"\u6210\u54C1\u540D\u79F0",dataIndex:"name",hideInSearch:!1,ellipsis:!0},{title:"\u6210\u54C1\u914D\u65B9",dataIndex:"recipeName",ellipsis:!0,hideInSearch:!0},{title:"\u6210\u54C1\u5DE5\u827A",dataIndex:"craftName",ellipsis:!0,hideInSearch:!0},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(P,g){return[(0,u.jsx)(v.ZP,{type:"primary",ghost:!0,onClick:s()(l()().mark(function m(){var c;return l()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:U(!0),f("\u6210\u54C1\u7F16\u8F91"),c=JSON.parse(JSON.stringify(g)),c.state=c.state==="0",G.setFieldsValue(c);case 5:case"end":return n.stop()}},m)})),children:"\u7F16\u8F91"},"edit"),(0,u.jsx)(v.ZP,{type:"primary",ghost:!0,onClick:s()(l()().mark(function m(){return l()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:h(!0);case 1:case"end":return C.stop()}},m)})),children:"\u914D\u65B9\u8BBE\u7F6E"},"peifang"),(0,u.jsx)(k.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){var c={id:g.id};L.Z.Del(c).then(function(C){if(C.statusCode===200){var n;A.ZP.success(C.statusCode===200?"\u5220\u9664\u6210\u529F":C.message),(n=Z.current)===null||n===void 0||n.reload()}})},onCancel:function(){A.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,u.jsx)(v.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5220\u9664"})},"del")]}}];(0,S.useEffect)(function(){if(H){var _=function(){var g=s()(l()().mark(function m(){var c;return l()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,q.Z.selectlist();case 2:c=n.sent,I(c.data);case 4:case"end":return n.stop()}},m)}));return function(){return g.apply(this,arguments)}}();_();var P=function(){var g=s()(l()().mark(function m(){var c;return l()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,te.Z.selectlist();case 2:c=n.sent,w(c.data);case 4:case"end":return n.stop()}},m)}));return function(){return g.apply(this,arguments)}}();P()}},[H]);var B=function(){var _=s()(l()().mark(function P(g){var m,c,C,n;return l()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(!g.id){T.next=7;break}return T.next=3,L.Z.Update(g);case 3:m=T.sent,m.statusCode===200?(A.ZP.success("\u4FEE\u6539\u6210\u529F"),(c=Z.current)===null||c===void 0||c.reload(),U(!1)):A.ZP.error(JSON.stringify(m.errors)||"\u4FEE\u6539\u5931\u8D25"),T.next=11;break;case 7:return T.next=9,L.Z.Add(g);case 9:C=T.sent,C.statusCode===200?(A.ZP.success("\u6DFB\u52A0\u6210\u529F"),(n=Z.current)===null||n===void 0||n.reload(),U(!1)):A.ZP.error(JSON.stringify(C.errors)||"\u6DFB\u52A0\u5931\u8D25");case 11:case"end":return T.stop()}},P)}));return function(g){return _.apply(this,arguments)}}(),F=(0,S.useState)([]),b=j()(F,2),$=b[0],I=b[1],V=(0,S.useState)([]),K=j()(V,2),O=K[0],w=K[1];return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Y.Z,{columns:M,actionRef:Z,cardBordered:!0,request:s()(l()().mark(function _(){var P,g,m,c=arguments;return l()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return P=c.length>0&&c[0]!==void 0?c[0]:{},g={pageIndex:P.current||1,pageSize:P.pageSize||10,name:P.name||"",id:"",code:""},n.next=4,L.Z.PagedList(g);case 4:if(m=n.sent,m.statusCode!==200){n.next=9;break}return n.abrupt("return",{data:m.data.items,success:!0,total:m.data.total});case 9:return n.abrupt("return",{data:[],success:!1,total:0});case 10:case"end":return n.stop()}},_)})),rowKey:"id",pagination:{pageSize:10,showSizeChanger:!1},dateFormatter:"string",headerTitle:"\u6210\u54C1\u5217\u8868",toolBarRender:function(){return[(0,u.jsx)(v.ZP,{type:"primary",onClick:function(){G.resetFields(),U(!0),f("\u65B0\u589E\u6210\u54C1")},children:"\u65B0\u589E\u6210\u54C1"},"button")]}},"myTable"),(0,u.jsx)(X.Z,{maskClosable:!1,width:800,title:(0,u.jsx)(ee.Z,{color:"#cd201f",children:d}),open:H,onCancel:function(){U(!1)},footer:[(0,u.jsx)(v.ZP,{onClick:function(){U(!1)},children:"\u8FD4\u56DE"},"back"),(0,u.jsx)(v.ZP,{form:"finalForm",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],children:(0,u.jsxs)(y.Z,{form:G,name:"basic",id:"finalForm",lCol:{span:4},wrapperCol:{span:12},onFinish:B,autoComplete:"off",children:[(0,u.jsx)(y.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,u.jsx)(x.Z,{})}),(0,u.jsx)(y.Z.Item,{label:"\u6210\u54C1\u7F16\u7801",name:"code",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,u.jsx)(x.Z,{})}),(0,u.jsx)(y.Z.Item,{name:"name",label:"\u6210\u54C1\u540D\u79F0",rules:[{required:!0,message:"Missing area"}],children:(0,u.jsx)(x.Z,{})}),(0,u.jsx)(y.Z.Item,{name:"craftId",label:"\u6210\u54C1\u5DE5\u827A",rules:[{required:!0,message:"Missing area"}],children:(0,u.jsx)(N.Z,{placeholder:"\u8BF7\u9009\u62E9\u5DE5\u827A",children:$.map(function(_){return(0,u.jsx)(N.Z.Option,{value:_.key,children:(0,u.jsx)("span",{children:_.value})},_.key)})})}),(0,u.jsx)(y.Z.Item,{name:"recipeId",label:"\u6210\u54C1\u914D\u65B9",rules:[{required:!0,message:"Missing area"}],children:(0,u.jsx)(N.Z,{placeholder:"\u8BF7\u9009\u62E9\u6210\u54C1\u914D\u65B9",children:O.map(function(_){return(0,u.jsx)(N.Z.Option,{value:_.key,children:(0,u.jsx)("span",{children:_.value})},_.key)})})})]})},"01"),(0,u.jsx)(X.Z,{maskClosable:!1,width:800,title:"\u914D\u65B9\u8BBE\u7F6E",open:E,onCancel:function(){h(!1)},footer:[(0,u.jsx)(v.ZP,{onClick:function(){h(!1)},children:"\u8FD4\u56DE"},"back"),(0,u.jsx)(v.ZP,{form:"finalForm",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")]},"01")]})};D.default=ae},66309:function(J,D,a){a.d(D,{Z:function(){return se}});var p=a(67294),l=a(93967),r=a.n(l),s=a(98423),t=a(98787),j=a(69760),Y=a(96159),y=a(45353),v=a(53124),k=a(85088),A=a(10274),X=a(14747),ee=a(45503),x=a(27036);const N=e=>{const{paddingXXS:d,lineWidth:f,tagPaddingHorizontal:o,componentCls:i,calc:E}=e,h=E(o).sub(f).equal(),M=E(d).sub(f).equal();return{[i]:Object.assign(Object.assign({},(0,X.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:h,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,k.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:M,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-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(${i}-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:h}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},S=e=>{const{lineWidth:d,fontSizeIcon:f,calc:o}=e,i=e.fontSizeSM;return(0,ee.TS)(e,{tagFontSize:i,tagLineHeight:(0,k.bf)(o(e.lineHeightSM).mul(i).equal()),tagIconSize:o(f).sub(o(d).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},L=e=>({defaultBg:new A.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var q=(0,x.I$)("Tag",e=>{const d=S(e);return N(d)},L),te=function(e,d){var f={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&d.indexOf(o)<0&&(f[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i{const{prefixCls:f,style:o,className:i,checked:E,onChange:h,onClick:M}=e,B=te(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:F,tag:b}=p.useContext(v.E_),$=_=>{h==null||h(!E),M==null||M(_)},I=F("tag",f),[V,K,O]=q(I),w=r()(I,`${I}-checkable`,{[`${I}-checkable-checked`]:E},b==null?void 0:b.className,i,K,O);return V(p.createElement("span",Object.assign({},B,{ref:d,style:Object.assign(Object.assign({},o),b==null?void 0:b.style),className:w,onClick:$})))}),le=a(98719);const ne=e=>(0,le.Z)(e,(d,f)=>{let{textColor:o,lightBorderColor:i,lightColor:E,darkColor:h}=f;return{[`${e.componentCls}${e.componentCls}-${d}`]:{color:o,background:E,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:h,borderColor:h},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var re=(0,x.bk)(["Tag","preset"],e=>{const d=S(e);return ne(d)},L);function G(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const W=(e,d,f)=>{const o=G(f);return{[`${e.componentCls}${e.componentCls}-${d}`]:{color:e[`color${f}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Q=(0,x.bk)(["Tag","status"],e=>{const d=S(e);return[W(d,"success","Success"),W(d,"processing","Info"),W(d,"error","Error"),W(d,"warning","Warning")]},L),H=function(e,d){var f={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&d.indexOf(o)<0&&(f[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i{const{prefixCls:f,className:o,rootClassName:i,style:E,children:h,icon:M,color:B,onClose:F,bordered:b=!0,visible:$}=e,I=H(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:V,direction:K,tag:O}=p.useContext(v.E_),[w,_]=p.useState(!0),P=(0,s.Z)(I,["closeIcon","closable"]);p.useEffect(()=>{$!==void 0&&_($)},[$]);const g=(0,t.o2)(B),m=(0,t.yT)(B),c=g||m,C=Object.assign(Object.assign({backgroundColor:B&&!c?B:void 0},O==null?void 0:O.style),E),n=V("tag",f),[ie,T,_e]=q(n),pe=r()(n,O==null?void 0:O.className,{[`${n}-${B}`]:c,[`${n}-has-color`]:B&&!c,[`${n}-hidden`]:!w,[`${n}-rtl`]:K==="rtl",[`${n}-borderless`]:!b},o,i,T,_e),ue=z=>{z.stopPropagation(),F==null||F(z),!z.defaultPrevented&&_(!1)},[,me]=(0,j.Z)((0,j.w)(e),(0,j.w)(O),{closable:!1,closeIconRender:z=>{const Ce=p.createElement("span",{className:`${n}-close-icon`,onClick:ue},z);return(0,Y.wm)(z,Ce,R=>({onClick:fe=>{var oe;(oe=R==null?void 0:R.onClick)===null||oe===void 0||oe.call(R,fe),ue(fe)},className:r()(R==null?void 0:R.className,`${n}-close-icon`)}))}}),he=typeof I.onClick=="function"||h&&h.type==="a",de=M||null,ge=de?p.createElement(p.Fragment,null,de,h&&p.createElement("span",null,h)):h,ce=p.createElement("span",Object.assign({},P,{ref:d,className:pe,style:C}),ge,me,g&&p.createElement(re,{key:"preset",prefixCls:n}),m&&p.createElement(Q,{key:"status",prefixCls:n}));return ie(he?p.createElement(y.Z,{component:"Tag"},ce):ce)});Z.CheckableTag=ae;var se=Z}}]); diff --git a/frontend/dist/p__productLine__line.22ddcd1b.async.js b/frontend/dist/p__productLine__line.22ddcd1b.async.js new file mode 100644 index 0000000..8bd29b3 --- /dev/null +++ b/frontend/dist/p__productLine__line.22ddcd1b.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[990],{37387:function(V,I,t){var E=t(97857),g=t.n(E),f=t(56002);I.Z={Add:function(d){return(0,f.request)("/api/devicesinfo/add",{method:"POST",data:g()({},d)})},Del:function(d){return(0,f.request)("/api/devicesinfo/del",{method:"POST",data:g()({},d)})},Update:function(d){return(0,f.request)("/api/devicesinfo/update",{method:"POST",data:g()({},d)})},Detail:function(d){return(0,f.request)("/api/devicesinfo/detail?id=".concat(d),{method:"GET"})},List:function(){return(0,f.request)("/api/devicesinfo/list",{method:"POST"})},UnBindList:function(){return(0,f.request)("/api/devicesinfo/UnBindList",{method:"GET"})},PagedList:function(d){return(0,f.request)("/api/devicesinfo/pagedlist",{method:"POST",data:g()({},d)})},BatchUpdate:function(d){return(0,f.request)("/api/devicerecipe/batchupdate",{method:"POST",data:d})},RecipeList:function(d){return(0,f.request)(" api/devicerecipe/list",{method:"POST",data:{deviceId:d}})},selectlist:function(){return(0,f.request)("/api/devicesinfo/selectlist",{method:"GET"})}}},24493:function(V,I,t){var E=t(97857),g=t.n(E),f=t(56002);I.Z={Add:function(d){return(0,f.request)("/api/process/add",{method:"POST",data:g()({},d)})},Del:function(d){return(0,f.request)("/api/process/del",{method:"POST",data:g()({},d)})},Update:function(d){return(0,f.request)("/api/process/update",{method:"POST",data:g()({},d)})},Detail:function(d){return(0,f.request)("/api/process/detail?id=".concat(d),{method:"GET"})},List:function(d){return(0,f.request)("/api/process/list",{method:"POST",data:g()({},d)})},PagedList:function(d){return(0,f.request)("/api/process/pagedlist",{method:"POST",data:g()({},d)})},Selectlist:function(){return(0,f.request)("/api/process/selectlist",{method:"GET"})}}},77330:function(V,I,t){t.r(I),t.d(I,{default:function(){return xe}});var E=t(13769),g=t.n(E),f=t(97857),s=t.n(f),d=t(15009),x=t.n(d),de=t(99289),R=t.n(de),le=t(5574),h=t.n(le),Y=t(51042),ce=t(86550),fe=t(62763),U=t(42075),Q=t(86738),A=t(45360),S=t(8232),j=t(14726),M=t(85576),pe=t(86250),me=t(42119),y=t(34041),m=t(67294),he=t(43775),ve=t(60258),ge=t(87080),Se=t(27484),Ae=t.n(Se),N=t(57632),v=t(56002),B={Add:function(i){return(0,v.request)("/api/productline/add",{method:"POST",data:s()({},i)})},Del:function(i){return(0,v.request)("/api/productline/del",{method:"POST",data:s()({},i)})},Update:function(i){return(0,v.request)("/api/productline/update",{method:"POST",data:s()({},i)})},Detail:function(i){return(0,v.request)("/api/productline/detail?id=".concat(i),{method:"GET"})},List:function(i){return(0,v.request)("/api/productline/list",{method:"POST",data:s()({},i)})},PagedList:function(i){return(0,v.request)("/api/productline/pagedlist",{method:"POST",data:s()({},i)})}},Pe=t(24493),je=t(37387),F={Add:function(i){return(0,v.request)("/api/productlinesteps/add",{method:"POST",data:s()({},i)})},Del:function(i){return(0,v.request)("/api/productlinesteps/del",{method:"POST",data:s()({},i)})},Update:function(i){return(0,v.request)("/api/productlinesteps/update",{method:"POST",data:s()({},i)})},Detail:function(i){return(0,v.request)("/api/productlinesteps/detail?id=".concat(i),{method:"GET"})},List:function(i){return(0,v.request)("/api/productlinesteps/list",{method:"POST",data:s()({},i)})},PagedList:function(i){return(0,v.request)("/api/productlinesteps/pagedlist",{method:"POST",data:s()({},i)})},BatchUpdateStep:function(i){return(0,v.request)("/api/productlinesteps/batchupdate",{method:"POST",data:i})}},De=[{id:"a1",data:{title:"XXX_API_a1",logo:"https://mdn.alipayobjects.com/huamei_ntgeqc/afts/img/A*kgyiRKi04eUAAAAAAAAAAAAADvuvAQ/original",description:"XXX_XXX_XXX_API"}},{id:"a2",data:{title:"XXX_API_a2",logo:"https://mdn.alipayobjects.com/huamei_ntgeqc/afts/img/A*kgyiRKi04eUAAAAAAAAAAAAADvuvAQ/original",description:"XXX_XXX_XXX_API"}},{id:"a3",data:{title:"XXX_API_a3",logo:"https://mdn.alipayobjects.com/huamei_ntgeqc/afts/img/A*kgyiRKi04eUAAAAAAAAAAAAADvuvAQ/original",description:"XXX_XXX_XXX_API"}}],qe=[{id:"a1-a2",source:"a1",target:"a2"},{id:"a1-a3",source:"a1",target:"a3",type:"radius"}],e=t(85893),Ie=["key","name"],xe=function(){var p,i,Ee=(0,m.useState)("table"),H=h()(Ee,2),O=H[0],T=H[1],L=(0,m.useRef)(),J=(0,m.useRef)(),k=function(){var n,r;(n=L.current)===null||n===void 0||n.resetFields(),(r=J.current)===null||r===void 0||r.reload()},Fe=(0,m.useState)(!1),q=h()(Fe,2),Te=q[0],K=q[1],Ce=(0,m.useState)(!1),w=h()(Ce,2),Ze=w[0],D=w[1],ye=(0,m.useState)(!1),ee=h()(ye,2),Be=ee[0],we=ee[1],Oe=(0,m.useState)(0),te=h()(Oe,2),et=te[0],tt=te[1],Le=[{title:"\u4E3B\u952E",dataIndex:"id",width:160,formItemProps:{hidden:!0},hideInSearch:!0},{title:"\u540D\u79F0",dataIndex:"name",ellipsis:!0,width:120,formItemProps:{rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}]}},{title:"\u63CF\u8FF0",dataIndex:"describe",search:!1},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createTime",render:function(n,r){return(0,e.jsx)(e.Fragment,{children:Ae()(r.createTime).format("YYYY-MM-DD HH:mm:ss")})},search:!1,hideInForm:!0},{title:"\u64CD\u4F5C",valueType:"option",render:function(n,r){return[(0,e.jsxs)(U.Z,{children:[(0,e.jsx)("a",{onClick:function(){var o;T("form"),(o=L.current)===null||o===void 0||o.setFieldsValue(r)},target:"_blank",rel:"noopener noreferrer",children:"\u7F16\u8F91"},+new Date+Math.random()),(0,e.jsx)("a",{onClick:function(){K(!0),Ne({lineId:r.id})},target:"_blank",rel:"noopener noreferrer",children:"\u914D\u7F6E\u5DE5\u827A\u6D41\u7A0B"},+new Date+Math.random()),(0,e.jsx)("a",{onClick:function(){},target:"_blank",rel:"noopener noreferrer",children:"\u914D\u7F6E\u8BBE\u5907"},+new Date+Math.random()),(0,e.jsx)(Q.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){B.Del(r).then(function(o){o.statusCode===200?(A.ZP.info("\u5220\u9664\u6210\u529F!"),k()):A.ZP.error(o.errors)})},onCancel:function(){A.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,e.jsx)("a",{children:"\u5220\u9664"})},"del")]},+new Date+Math.random())]}}],Xe=(0,ge.kc)(function(){return{container:{width:"100%",height:"400px"}}}),be=(0,m.useState)(),ne=h()(be,2),nt=ne[0],at=ne[1],Re=(0,m.useState)(),ae=h()(Re,2),G=ae[0],Ue=ae[1],Me=(0,m.useState)(),re=h()(Me,2),W=re[0],Ne=re[1],ke=S.Z.useForm(),Ke=h()(ke,1),rt=Ke[0],Ge=Xe(),st=Ge.styles,$=(0,he.Zi)(),it=$.selectNode,ot=$.selectEdges,ut=$.selectNodes,We=(0,ve.R)(De),se=h()(We,3),dt=se[0],lt=se[2],$e=(0,m.useState)(null),ie=h()($e,2),ct=ie[0],ft=ie[1],X=(0,m.useRef)(),ze=(0,m.useState)([]),oe=h()(ze,2),C=oe[0],_e=oe[1],Ve=(0,m.useState)([]),ue=h()(Ve,2),Ye=ue[0],Qe=ue[1],He=S.Z.useForm(),Je=h()(He,1),b=Je[0],z=S.Z.useWatch("processId",b);return(0,m.useEffect)(function(){Pe.Z.List({name:""}).then(function(a){a.statusCode===200&&(console.log("processAPI.List",a.data),_e(a.data))}),je.Z.selectlist().then(function(a){a.statusCode===200&&(console.log("v.data",a.data),Qe(a.data))})},[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ce.Z,{columns:Le,type:O,formRef:L,actionRef:J,onSubmit:function(n){console.log(n),O==="form"&&(n.id?B.Update(n).then(function(r){r.statusCode===200?(A.ZP.info("\u66F4\u65B0\u6210\u529F!"),T("table"),k()):A.ZP.error(r.errors)}):B.Add(n).then(function(r){r.statusCode===200?(A.ZP.info("\u65B0\u589E\u6210\u529F!"),T("table"),k()):A.ZP.error(r.errors)}))},form:{ignoreRules:!0,submitter:{onReset:function(){var n;(n=L.current)===null||n===void 0||n.resetFields(),T("table")},searchConfig:{resetText:O==="form"?"\u8FD4\u56DE":"\u91CD\u7F6E",submitText:O==="form"?"\u63D0\u4EA4":"\u67E5\u8BE2"}}},request:R()(x()().mark(function a(){var n,r,l,o=arguments;return x()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return n=o.length>0&&o[0]!==void 0?o[0]:{},r={pageIndex:n.current||1,pageSize:n.pageSize||10,name:n.name||""},u.next=4,B.PagedList(r);case 4:if(l=u.sent,l.statusCode!==200){u.next=9;break}return u.abrupt("return",{data:l.data.items,success:!0,total:l.data.total});case 9:return u.abrupt("return",{data:[],success:!1,total:0});case 10:case"end":return u.stop()}},a)})),pagination:{pageSize:10,showSizeChanger:!1},rowKey:"id",dateFormatter:"string",headerTitle:"\u5217\u8868",toolBarRender:function(){return[(0,e.jsxs)(j.ZP,{type:"primary",onClick:function(){T("form")},children:[(0,e.jsx)(Y.Z,{}),"\u65B0\u5EFA"]},"3")]}}),(0,e.jsx)(M.Z,{open:Te,maskClosable:!1,footer:null,width:"50%",height:"50%",title:"\u914D\u7F6E\u5DE5\u827A\u6D41\u7A0B",onOk:function(){K(!1)},onCancel:function(n){return K(!1)},children:(0,e.jsxs)(pe.Z,{vertical:!1,children:[(0,e.jsx)("div",{style:{width:"300px",margin:"auto"},children:(0,e.jsx)(me.Z,{progressDot:!0,direction:"vertical",items:G==null?void 0:G.map(function(a){var n;return s()(s()({},a),{},{title:(n=C.find(function(r){return r.key==a.processId}))===null||n===void 0?void 0:n.value,status:"finish"})})})}),(0,e.jsx)("div",{style:{margin:"auto"},children:(0,e.jsx)(fe.Z,{style:{width:"600px"},toolBarRender:function(){return[(0,e.jsx)(j.ZP,{type:"primary",onClick:function(){b.resetFields(),D(!0)},children:"\u6DFB\u52A0\u6B65\u9AA4"},new Date().toDateString())]},actionRef:X,columns:[{title:"\u5DE5\u5E8F",dataIndex:"step",align:"center",hideInSearch:!0,render:function(n,r,l){return(0,e.jsx)("span",{className:"customRender",children:"".concat(l+1)})}},{title:"Id",dataIndex:"id",align:"center",hideInSearch:!0},{title:"\u5DE5\u827A\u540D\u79F0",dataIndex:"processId",align:"center",hideInSearch:!0,render:function(n,r,l,o,c){var u;return(0,e.jsx)(e.Fragment,{children:(u=C.find(function(P){return P.id==r.processId}))===null||u===void 0?void 0:u.name})}},{title:"\u64CD\u4F5C",align:"center",valueType:"option",key:"option",render:function(n,r,l,o){return[(0,e.jsxs)(U.Z,{size:"middle",children:[(0,e.jsx)(j.ZP,{type:"primary",ghost:!0,onClick:R()(x()().mark(function c(){var u;return x()().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:u=JSON.parse(JSON.stringify(r)),b.setFieldsValue(u),D(!0);case 3:case"end":return Z.stop()}},c)})),children:"\u7F16\u8F91"},(0,N.Z)()),(0,e.jsx)(Q.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){var u={id:r.id};F.Del(u).then(function(P){P.statusCode===200&&(A.ZP.success(P.statusCode===200?"\u5220\u9664\u6210\u529F":P.message),o==null||o.reload())})},onCancel:function(){A.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,e.jsx)(j.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5220\u9664"})},(0,N.Z)())]},(0,N.Z)())]}}],rowKey:"step",search:!1,pagination:{pageSize:100,showSizeChanger:!1},params:W,request:R()(x()().mark(function a(){var n,r,l,o=arguments;return x()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return n=o.length>0&&o[0]!==void 0?o[0]:{},r={lineId:n.lineId},u.next=4,F.List(r);case 4:if(l=u.sent,l.statusCode!==200){u.next=10;break}return Ue(l.data),u.abrupt("return",{data:l.data,success:!0});case 10:return u.abrupt("return",{data:[],success:!1,total:0});case 11:case"end":return u.stop()}},a)})),dragSortKey:"step",onDragSortEnd:function(n,r,l){console.log("newDataSource",l),l.map(function(o,c){o.step=c+1}),console.log("\u6392\u5E8F\u540E\u7684\u6570\u636E",l),F.BatchUpdateStep(l).then(function(o){if(o.data){var c;(c=X.current)===null||c===void 0||c.reload(),A.ZP.success("\u4FEE\u6539\u5217\u8868\u6392\u5E8F\u6210\u529F")}})}})})]})}),(0,e.jsx)(M.Z,{open:Ze,maskClosable:!1,width:500,title:"\u6DFB\u52A0\u6B65\u9AA4",footer:[(0,e.jsx)(j.ZP,{onClick:function(){D(!1)},children:"\u8FD4\u56DE"},"back"),(0,e.jsx)(j.ZP,{form:"addprocessForm",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],onOk:function(){D(!1)},onCancel:function(n){return D(!1)},children:(0,e.jsxs)(S.Z,{id:"addprocessForm",form:b,onFinish:function(n){if(console.log(n),n.id){var r={step:0,processId:n.processId,id:n.id,lineId:W.lineId,processName:""};F.Update(r).then(function(o){if(o.statusCode===200){var c;D(!1),(c=X.current)===null||c===void 0||c.reload()}})}else{var l={step:0,processId:n.processId,id:"",lineId:W.lineId,processName:""};F.Add(l).then(function(o){if(o.statusCode===200){var c;D(!1),(c=X.current)===null||c===void 0||c.reload()}})}},children:[(0,e.jsx)(S.Z.Item,{label:"\u4E3B\u952E",name:"id",hidden:!0}),(0,e.jsx)(S.Z.Item,{label:"\u6B65\u9AA4",name:"step",hidden:!0}),(0,e.jsx)(S.Z.Item,{label:"\u5DE5\u827A",name:"processId",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,e.jsx)(y.Z,{onChange:function(n){},placeholder:"\u8BF7\u9009\u62E9\u5DE5\u827A",style:{width:375},children:C.map(function(a){return(0,e.jsx)(y.Z.Option,{value:a.id,children:(0,e.jsx)("span",{children:a.name})},a.id)})})}),(p=C.find(function(a){return a.id==z}))===null||p===void 0?void 0:p.processType,((i=C.find(function(a){return a.id==z}))===null||i===void 0?void 0:i.processType)===0?z:(0,e.jsx)(S.Z.List,{name:"finalsl",children:function(n,r){var l=r.add,o=r.remove;return(0,e.jsxs)(e.Fragment,{children:[n.map(function(c){var u=c.key,P=c.name,Z=g()(c,Ie);return(0,e.jsx)(U.Z,{align:"baseline",children:(0,e.jsx)(S.Z.Item,{shouldUpdate:!0,children:function(){return(0,e.jsx)(S.Z.Item,s()(s()({},Z),{},{label:"\u8BF7\u9009\u62E9\u8BBE\u5907",name:[P,"finalslId"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BBE\u5907"}],children:(0,e.jsx)(y.Z,{style:{width:400},children:Ye.map(function(_){return(0,e.jsx)(y.Z.Option,{value:_.key,children:_.value},_.key)})})}))}})},u)}),(0,e.jsx)(S.Z.Item,{children:(0,e.jsx)(j.ZP,{type:"dashed",onClick:function(){return l()},block:!0,icon:(0,e.jsx)(Y.Z,{}),children:"\u6DFB\u52A0\u8BBE\u5907"})})]})}})]})}),(0,e.jsx)(M.Z,{open:Be,maskClosable:!1,width:500,title:"\u8BBE\u7F6E\u8BBE\u5907\u5DE5\u827A"})]})}}}]); diff --git a/frontend/dist/p__productLine__line.255fd01c.async.js b/frontend/dist/p__productLine__line.255fd01c.async.js deleted file mode 100644 index 2e7846a..0000000 --- a/frontend/dist/p__productLine__line.255fd01c.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[990],{24493:function(_,F,t){var E=t(97857),d=t.n(E),A=t(56002);F.Z={Add:function(f){return(0,A.request)("/api/process/add",{method:"POST",data:d()({},f)})},Del:function(f){return(0,A.request)("/api/process/del",{method:"POST",data:d()({},f)})},Update:function(f){return(0,A.request)("/api/process/update",{method:"POST",data:d()({},f)})},Detail:function(f){return(0,A.request)("/api/process/detail?id=".concat(f),{method:"GET"})},List:function(f){return(0,A.request)("/api/process/list",{method:"POST",data:d()({},f)})},PagedList:function(f){return(0,A.request)("/api/process/pagedlist",{method:"POST",data:d()({},f)})},Selectlist:function(){return(0,A.request)("/api/process/selectlist",{method:"GET"})}}},77330:function(_,F,t){t.r(F),t.d(F,{default:function(){return pe}});var E=t(97857),d=t.n(E),A=t(15009),c=t.n(A),f=t(99289),Z=t.n(f),ee=t(5574),v=t.n(ee),te=t(51042),ne=t(86550),ae=t(62763),M=t(42075),K=t(86738),g=t(45360),D=t(8232),S=t(14726),$=t(85576),re=t(86250),se=t(42119),k=t(34041),m=t(67294),oe=t(43775),ue=t(60258),ie=t(87080),de=t(27484),le=t.n(de),X=t(57632),p=t(56002),x={Add:function(s){return(0,p.request)("/api/productline/add",{method:"POST",data:d()({},s)})},Del:function(s){return(0,p.request)("/api/productline/del",{method:"POST",data:d()({},s)})},Update:function(s){return(0,p.request)("/api/productline/update",{method:"POST",data:d()({},s)})},Detail:function(s){return(0,p.request)("/api/productline/detail?id=".concat(s),{method:"GET"})},List:function(s){return(0,p.request)("/api/productline/list",{method:"POST",data:d()({},s)})},PagedList:function(s){return(0,p.request)("/api/productline/pagedlist",{method:"POST",data:d()({},s)})}},ce=t(24493),C={Add:function(s){return(0,p.request)("/api/productlinesteps/add",{method:"POST",data:d()({},s)})},Del:function(s){return(0,p.request)("/api/productlinesteps/del",{method:"POST",data:d()({},s)})},Update:function(s){return(0,p.request)("/api/productlinesteps/update",{method:"POST",data:d()({},s)})},Detail:function(s){return(0,p.request)("/api/productlinesteps/detail?id=".concat(s),{method:"GET"})},List:function(s){return(0,p.request)("/api/productlinesteps/list",{method:"POST",data:d()({},s)})},PagedList:function(s){return(0,p.request)("/api/productlinesteps/pagedlist",{method:"POST",data:d()({},s)})},BatchUpdateStep:function(s){return(0,p.request)("/api/productlinesteps/batchupdate",{method:"POST",data:s})}},fe=[{id:"a1",data:{title:"XXX_API_a1",logo:"https://mdn.alipayobjects.com/huamei_ntgeqc/afts/img/A*kgyiRKi04eUAAAAAAAAAAAAADvuvAQ/original",description:"XXX_XXX_XXX_API"}},{id:"a2",data:{title:"XXX_API_a2",logo:"https://mdn.alipayobjects.com/huamei_ntgeqc/afts/img/A*kgyiRKi04eUAAAAAAAAAAAAADvuvAQ/original",description:"XXX_XXX_XXX_API"}},{id:"a3",data:{title:"XXX_API_a3",logo:"https://mdn.alipayobjects.com/huamei_ntgeqc/afts/img/A*kgyiRKi04eUAAAAAAAAAAAAADvuvAQ/original",description:"XXX_XXX_XXX_API"}}],Re=[{id:"a1-a2",source:"a1",target:"a2"},{id:"a1-a3",source:"a1",target:"a3",type:"radius"}],n=t(85893),pe=function(){var l=(0,m.useState)("table"),s=v()(l,2),I=s[0],j=s[1],T=(0,m.useRef)(),z=(0,m.useRef)(),O=function(){var e,a;(e=T.current)===null||e===void 0||e.resetFields(),(a=z.current)===null||a===void 0||a.reload()},me=(0,m.useState)(!1),G=v()(me,2),he=G[0],B=G[1],ve=(0,m.useState)(!1),Y=v()(ve,2),ge=Y[0],y=Y[1],Ae=[{title:"\u4E3B\u952E",dataIndex:"id",width:160,formItemProps:{hidden:!0},hideInSearch:!0},{title:"\u540D\u79F0",dataIndex:"name",ellipsis:!0,width:120,formItemProps:{rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}]}},{title:"\u63CF\u8FF0",dataIndex:"describe",search:!1},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createTime",render:function(e,a){return(0,n.jsx)(n.Fragment,{children:le()(a.createTime).format("YYYY-MM-DD HH:mm:ss")})},search:!1,hideInForm:!0},{title:"\u64CD\u4F5C",valueType:"option",render:function(e,a){return[(0,n.jsxs)(M.Z,{children:[(0,n.jsx)("a",{onClick:function(){var o;j("form"),(o=T.current)===null||o===void 0||o.setFieldsValue(a)},target:"_blank",rel:"noopener noreferrer",children:"\u7F16\u8F91"},+new Date+Math.random()),(0,n.jsx)("a",{onClick:function(){B(!0),Fe({lineId:a.id})},target:"_blank",rel:"noopener noreferrer",children:"\u914D\u7F6E\u5DE5\u827A\u6D41\u7A0B"},+new Date+Math.random()),(0,n.jsx)(K.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){x.Del(a).then(function(o){o.statusCode===200?(g.ZP.info("\u5220\u9664\u6210\u529F!"),O()):g.ZP.error(o.errors)})},onCancel:function(){g.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)("a",{children:"\u5220\u9664"})},"del")]},+new Date+Math.random())]}}],Se=(0,ie.kc)(function(){return{container:{width:"100%",height:"400px"}}}),Pe=(0,m.useState)(),Q=v()(Pe,2),Ue=Q[0],be=Q[1],De=(0,m.useState)(),V=v()(De,2),L=V[0],je=V[1],ye=(0,m.useState)(),W=v()(ye,2),w=W[0],Fe=W[1],xe=D.Z.useForm(),Ce=v()(xe,1),Ne=Ce[0],Ie=Se(),Me=Ie.styles,R=(0,oe.Zi)(),Ke=R.selectNode,$e=R.selectEdges,ke=R.selectNodes,Te=(0,ue.R)(fe),H=v()(Te,3),ze=H[0],Ge=H[2],Ee=(0,m.useState)(null),J=v()(Ee,2),Ye=J[0],Qe=J[1],U=(0,m.useRef)(),Ze=(0,m.useState)([]),q=v()(Ze,2),b=q[0],Xe=q[1],Oe=D.Z.useForm(),Be=v()(Oe,1),Le=Be[0];return(0,m.useEffect)(function(){ce.Z.Selectlist().then(function(r){r.statusCode===200&&(console.log("v.data",r.data),Xe(r.data))})},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ne.Z,{columns:Ae,type:I,formRef:T,actionRef:z,onSubmit:function(e){console.log(e),I==="form"&&(e.id?x.Update(e).then(function(a){a.statusCode===200?(g.ZP.info("\u66F4\u65B0\u6210\u529F!"),j("table"),O()):g.ZP.error(a.errors)}):x.Add(e).then(function(a){a.statusCode===200?(g.ZP.info("\u65B0\u589E\u6210\u529F!"),j("table"),O()):g.ZP.error(a.errors)}))},form:{ignoreRules:!0,submitter:{onReset:function(){var e;(e=T.current)===null||e===void 0||e.resetFields(),j("table")},searchConfig:{resetText:I==="form"?"\u8FD4\u56DE":"\u91CD\u7F6E",submitText:I==="form"?"\u63D0\u4EA4":"\u67E5\u8BE2"}}},request:Z()(c()().mark(function r(){var e,a,i,o=arguments;return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return e=o.length>0&&o[0]!==void 0?o[0]:{},a={pageIndex:e.current||1,pageSize:e.pageSize||10,name:e.name||""},u.next=4,x.PagedList(a);case 4:if(i=u.sent,i.statusCode!==200){u.next=9;break}return u.abrupt("return",{data:i.data.items,success:!0,total:i.data.total});case 9:return u.abrupt("return",{data:[],success:!1,total:0});case 10:case"end":return u.stop()}},r)})),pagination:{pageSize:10,showSizeChanger:!1},rowKey:"id",dateFormatter:"string",headerTitle:"\u5217\u8868",toolBarRender:function(){return[(0,n.jsxs)(S.ZP,{type:"primary",onClick:function(){j("form")},children:[(0,n.jsx)(te.Z,{}),"\u65B0\u5EFA"]},"3")]}}),(0,n.jsx)($.Z,{open:he,maskClosable:!1,footer:null,width:1e3,height:1e3,title:"\u914D\u7F6E\u5DE5\u827A\u6D41\u7A0B",onOk:function(){B(!1)},onCancel:function(e){return B(!1)},children:(0,n.jsxs)(re.Z,{vertical:!1,justify:"space-between",children:[(0,n.jsx)("div",{style:{width:"300px",margin:"auto"},children:(0,n.jsx)(se.Z,{progressDot:!0,direction:"vertical",items:L==null?void 0:L.map(function(r){var e;return d()(d()({},r),{},{title:(e=b.find(function(a){return a.key==r.processId}))===null||e===void 0?void 0:e.value,status:"finish"})})})}),(0,n.jsx)("div",{style:{margin:"auto"},children:(0,n.jsx)(ae.Z,{style:{width:"600px"},toolBarRender:function(){return[(0,n.jsx)(S.ZP,{type:"primary",onClick:function(){y(!0)},children:"\u6DFB\u52A0\u6B65\u9AA4"},new Date().toDateString())]},actionRef:U,columns:[{title:"\u5DE5\u5E8F",dataIndex:"step",align:"center",hideInSearch:!0,render:function(e,a,i){return(0,n.jsx)("span",{className:"customRender",children:"".concat(i+1)})}},{title:"\u5DE5\u827A\u540D\u79F0",dataIndex:"processId",align:"center",hideInSearch:!0,render:function(e,a,i,o,h){var u;return(0,n.jsx)(n.Fragment,{children:(u=b.find(function(P){return P.key==a.processId}))===null||u===void 0?void 0:u.value})}},{title:"\u64CD\u4F5C",align:"center",valueType:"option",key:"option",render:function(e,a,i,o){return[(0,n.jsxs)(M.Z,{size:"middle",children:[(0,n.jsx)(S.ZP,{type:"primary",ghost:!0,onClick:Z()(c()().mark(function h(){var u;return c()().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:u=JSON.parse(JSON.stringify(a)),console.log("copyFormData",u);case 2:case"end":return N.stop()}},h)})),children:"\u7F16\u8F91"},(0,X.Z)()),(0,n.jsx)(K.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){var u={id:a.id};C.Del(u).then(function(P){P.statusCode===200&&(g.ZP.success(P.statusCode===200?"\u5220\u9664\u6210\u529F":P.message),o==null||o.reload())})},onCancel:function(){g.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,n.jsx)(S.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5220\u9664"})},(0,X.Z)())]},(0,X.Z)())]}}],rowKey:"step",search:!1,pagination:{pageSize:100,showSizeChanger:!1},params:w,request:Z()(c()().mark(function r(){var e,a,i,o=arguments;return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return e=o.length>0&&o[0]!==void 0?o[0]:{},a={lineId:e.lineId},u.next=4,C.List(a);case 4:if(i=u.sent,i.statusCode!==200){u.next=10;break}return je(i.data),u.abrupt("return",{data:i.data,success:!0});case 10:return u.abrupt("return",{data:[],success:!1,total:0});case 11:case"end":return u.stop()}},r)})),dragSortKey:"step",onDragSortEnd:function(e,a,i){console.log("newDataSource",i),i.map(function(o,h){o.step=h+1}),console.log("\u6392\u5E8F\u540E\u7684\u6570\u636E",i),C.BatchUpdateStep(i).then(function(o){if(o.data){var h;(h=U.current)===null||h===void 0||h.reload(),g.ZP.success("\u4FEE\u6539\u5217\u8868\u6392\u5E8F\u6210\u529F")}})}})})]})}),(0,n.jsx)($.Z,{open:ge,maskClosable:!1,width:500,title:"\u6DFB\u52A0\u6B65\u9AA4",footer:[(0,n.jsx)(S.ZP,{onClick:function(){y(!1)},children:"\u8FD4\u56DE"},"back"),(0,n.jsx)(S.ZP,{form:"addprocessForm",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],onOk:function(){y(!1)},onCancel:function(e){return y(!1)},children:(0,n.jsxs)(D.Z,{id:"addprocessForm",form:Le,onFinish:function(e){console.log(e);var a={step:0,processId:e.processId,id:"",lineId:w.lineId,processName:""};C.Add(a).then(function(i){if(i.statusCode===200){var o;y(!1),(o=U.current)===null||o===void 0||o.reload()}})},children:[(0,n.jsx)(D.Z.Item,{label:"\u4E3B\u952E",name:"id",hidden:!0}),(0,n.jsx)(D.Z.Item,{label:"\u5DE5\u827A",name:"processId",rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879!"}],children:(0,n.jsx)(k.Z,{placeholder:"\u8BF7\u9009\u62E9\u5DE5\u827A",style:{width:375},children:b.map(function(r){return(0,n.jsx)(k.Z.Option,{value:r.key,children:(0,n.jsx)("span",{children:r.value})},r.key)})})})]})})]})}}}]); diff --git a/frontend/dist/p__recipe__index.0f84fa24.async.js b/frontend/dist/p__recipe__index.0f84fa24.async.js deleted file mode 100644 index d7989db..0000000 --- a/frontend/dist/p__recipe__index.0f84fa24.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[187],{48223:function(L,D,e){var I=e(97857),o=e.n(I),_=e(56002);D.Z={Add:function(u){return(0,_.request)("/api/materialsinfo/add",{method:"POST",data:o()({},u)})},Del:function(u){return(0,_.request)("/api/materialsinfo/del",{method:"POST",data:o()({},u)})},Update:function(u){return(0,_.request)("/api/materialsinfo/update",{method:"POST",data:o()({},u)})},List:function(){return(0,_.request)("/api/materialsinfo/list",{method:"GET"})},selectlist:function(){return(0,_.request)("/api/materialsinfo/selectlist",{method:"GET"})},PagedList:function(u){return(0,_.request)("/api/materialsinfo/pagedlist",{method:"POST",data:o()({},u)})}}},70226:function(L,D,e){var I=e(97857),o=e.n(I),_=e(56002);D.Z={Add:function(u){return(0,_.request)("/api/recipesinfo/add",{method:"POST",data:o()({},u)})},Del:function(u){return(0,_.request)("/api/recipesinfo/del",{method:"POST",data:o()({},u)})},Update:function(u){return(0,_.request)("/api/recipesinfo/update",{method:"POST",data:o()({},u)})},List:function(){return(0,_.request)("/api/recipesinfo/list",{method:"GET"})},PagedList:function(u){return(0,_.request)("/api/recipesinfo/pagedlist",{method:"POST",data:o()({},u)})},MaterialList:function(u){return(0,_.request)("/api/recipematerial/list",{method:"POST",data:o()({},u)})},BatchAdd:function(u){return(0,_.request)("/api/recipematerial/batchadd",{method:"POST",data:u})},ChangeGroup:function(u){return(0,_.request)("/api/recipesinfo/changegroup",{method:"POST",data:u})},selectlist:function(){return(0,_.request)("/api/recipesinfo/selectlist",{method:"GET"})}}},44148:function(L,D,e){e.r(D);var I=e(15009),o=e.n(I),_=e(99289),l=e.n(_),u=e(5574),p=e.n(u),$=e(29933),G=e(88280),w=e(86550),O=e(8232),P=e(45360),z=e(42075),E=e(14726),J=e(86738),R=e(85576),k=e(66309),A=e(49978),V=e(74330),c=e(67294),M=e(70226),H=e(48223),a=e(85893),Q=function(){var X=O.Z.useForm(),Y=p()(X,1),T=Y[0],q=(0,c.useState)(!1),b=p()(q,2),ee=b[0],v=b[1],te=(0,c.useState)(!1),F=p()(te,2),re=F[0],B=F[1],ae=(0,c.useState)(!1),Z=p()(ae,2),ne=Z[0],S=Z[1],se=(0,c.useState)(),U=p()(se,2),ue=U[0],ge=U[1],ie=(0,c.useState)(),y=p()(ie,2),oe=y[0],le=y[1],_e=(0,c.useState)([]),K=p()(_e,2),g=K[0],C=K[1],de=(0,c.useState)([]),W=p()(de,2),ce=W[0],me=W[1],pe=(0,c.useState)(),x=p()(pe,2),fe=x[0],Pe=x[1],j=(0,c.useRef)(),Ee=O.Z.useForm(),he=p()(Ee,1),De=he[0],Oe=(0,c.useRef)(),N=(0,c.useRef)(),Me=function(){var d=l()(o()().mark(function i(r){var n,s,m,t;return o()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(r.picUrl=fe,!r.id){f.next=8;break}return f.next=4,M.Z.Update(r);case 4:n=f.sent,n.statusCode===200?(P.ZP.success("\u4FEE\u6539\u6210\u529F"),(s=j.current)===null||s===void 0||s.reload(),v(!1)):P.ZP.error(n.errors||"\u4FEE\u6539\u5931\u8D25"),f.next=12;break;case 8:return f.next=10,M.Z.Add(r);case 10:m=f.sent,m.statusCode===200?(P.ZP.success("\u6DFB\u52A0\u6210\u529F"),(t=j.current)===null||t===void 0||t.reload(),v(!1)):P.ZP.error(m.errors||"\u6DFB\u52A0\u5931\u8D25");case 12:case"end":return f.stop()}},i)}));return function(r){return d.apply(this,arguments)}}(),ve=[{title:"\u914D\u65B9\u540D\u79F0",dataIndex:"name",align:"center"},{title:"\u914D\u65B9\u7F16\u7801",dataIndex:"code",align:"center",hideInSearch:!0},{title:"\u64CD\u4F5C",align:"center",valueType:"option",key:"option",render:function(i,r){return[(0,a.jsxs)(z.Z,{size:"middle",children:[(0,a.jsx)(E.ZP,{type:"primary",ghost:!0,onClick:l()(o()().mark(function n(){var s;return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:v(!0),s=JSON.parse(JSON.stringify(r)),Pe(s.picUrl),T.setFieldsValue(s);case 4:case"end":return t.stop()}},n)})),children:"\u7F16\u8F91"},"edit"),(0,a.jsx)(E.ZP,{type:"primary",ghost:!0,onClick:l()(o()().mark(function n(){var s;return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:S(!0),B(!0),s={id:"",materialId:"",recipesId:r.id,weight:""},le(r),M.Z.MaterialList(s).then(function(h){h.statusCode===200&&(C(h.data),S(!0)),B(!1)}).catch(function(){S(!1),B(!1)});case 5:case"end":return t.stop()}},n)})),children:"\u914D\u7F6E\u7269\u6599"},"site"),(0,a.jsx)(J.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){var s={id:r.id,name:"",code:"",picUrl:"",groupId:""};M.Z.Del(s).then(function(m){if(m.statusCode===200){var t;P.ZP.success(m.statusCode===200?"\u5220\u9664\u6210\u529F":m.message),(t=j.current)===null||t===void 0||t.reload()}})},onCancel:function(){P.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,a.jsx)(E.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5220\u9664"})},"del")]},"nm")]}}],Ie=[{title:"\u7269\u6599\u540D\u79F0",dataIndex:"materialId",valueType:"select",ellipsis:!0,request:function(){var d=l()(o()().mark(function r(){var n,s;return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,H.Z.List();case 2:return n=t.sent,s=[],n.statusCode===200&&(me(n.data),n.data.map(function(h){return s.push({label:"".concat(h.name,"[").concat(h.unit,"]"),value:h.id})})),t.abrupt("return",s);case 6:case"end":return t.stop()}},r)}));function i(){return d.apply(this,arguments)}return i}(),formItemProps:function(){return{rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879"}]}}},{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(i,r){return[(0,a.jsx)(E.ZP,{type:"primary",ghost:!0,onClick:function(){var s;console.log(r),(s=N.current)===null||s===void 0||s.startEditable(r.id)},children:"\u7F16\u8F91\u539F\u6599"},"edit")]}}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w.Z,{columns:ve,actionRef:j,cardBordered:!0,params:ue,request:l()(o()().mark(function d(){var i,r,n,s=arguments;return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=s.length>0&&s[0]!==void 0?s[0]:{},console.log("params",i),r={pageIndex:i.current||1,pageSize:i.pageSize||10,name:i.name||"",id:i.id,code:i.code,picUrl:"",groupId:i.groupId},t.next=5,M.Z.PagedList(r);case 5:if(n=t.sent,n.statusCode!==200){t.next=10;break}return t.abrupt("return",{data:n.data.items,success:!0,total:n.data.total});case 10:return t.abrupt("return",{data:[],success:!1,total:0});case 11:case"end":return t.stop()}},d)})),rowKey:"id",pagination:{pageSize:10,showSizeChanger:!1},dateFormatter:"string",headerTitle:"\u914D\u65B9\u5217\u8868",toolBarRender:function(){return[(0,a.jsx)(E.ZP,{type:"primary",onClick:function(){T.resetFields(),v(!0)},children:"\u6DFB\u52A0\u914D\u65B9\u914D\u65B9"},"button")]}},"myTable"),(0,a.jsx)(R.Z,{maskClosable:!1,width:800,title:(0,a.jsx)(k.Z,{color:"#cd201f",children:"\u65B0\u589E\u4FE1\u606F"}),open:ee,onCancel:function(){v(!1)},footer:[(0,a.jsx)(E.ZP,{onClick:function(){v(!1)},children:"\u8FD4\u56DE"},"back"),(0,a.jsx)(E.ZP,{form:"myForm",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],children:(0,a.jsxs)(O.Z,{form:T,name:"basic",id:"myForm",labelCol:{span:4},wrapperCol:{span:12},onFinish:Me,autoComplete:"off",children:[(0,a.jsx)(O.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,a.jsx)(A.Z,{})}),(0,a.jsx)(O.Z.Item,{label:"\u914D\u65B9\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u6B64\u9879\u5FC5\u586B\uFF01"}],children:(0,a.jsx)(A.Z,{})}),(0,a.jsx)(O.Z.Item,{label:"\u914D\u65B9\u7F16\u7801",name:"code",rules:[{required:!0,message:"\u6B64\u9879\u5FC5\u586B\uFF01"}],children:(0,a.jsx)(A.Z,{})})]})},"01"),(0,a.jsx)(R.Z,{maskClosable:!1,width:1200,title:"\u914D\u7F6E\u7269\u6599",open:ne,destroyOnClose:!0,onCancel:function(){S(!1),C([])},onOk:function(){var i=JSON.parse(JSON.stringify(g));i.map(function(r){r.recipesId=oe.id,r.id=""}),M.Z.BatchAdd(i).then(function(r){r.statusCode===200?(P.ZP.success("\u4FDD\u5B58\u6210\u529F!"),S(!1)):P.ZP.error("\u4FDD\u5B58\u5931\u8D25!")})},children:(0,a.jsx)(V.Z,{spinning:re,children:(0,a.jsx)($.Z,{children:(0,a.jsx)("div",{style:{maxWidth:1200,margin:"auto"},children:(0,a.jsx)(G.Z,{rowKey:"id",controlled:!0,editableFormRef:Oe,actionRef:N,columns:Ie,value:g,recordCreatorProps:{record:function(){return{id:Date.now().toString(),materialId:"",recipesId:"",weight:""}}},editable:{form:De,type:"single",onValuesChange:function(i,r){console.log(ce),r?C(r):(g.push(i),C(g)),console.log("materiallist",g)},actionRender:function(i,r,n){return[n.delete,n.save,n.cancel]}}})})})})},"02")]})};D.default=Q}}]); diff --git a/frontend/dist/p__recipe__index.101f5df6.async.js b/frontend/dist/p__recipe__index.101f5df6.async.js new file mode 100644 index 0000000..5c9b571 --- /dev/null +++ b/frontend/dist/p__recipe__index.101f5df6.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[187],{48223:function(w,O,t){var R=t(97857),o=t.n(R),S=t(56002);O.Z={Add:function(p){return(0,S.request)("/api/materialsinfo/add",{method:"POST",data:o()({},p)})},Del:function(p){return(0,S.request)("/api/materialsinfo/del",{method:"POST",data:o()({},p)})},Update:function(p){return(0,S.request)("/api/materialsinfo/update",{method:"POST",data:o()({},p)})},List:function(){return(0,S.request)("/api/materialsinfo/list",{method:"GET"})},selectlist:function(){return(0,S.request)("/api/materialsinfo/selectlist",{method:"GET"})},PagedList:function(p){return(0,S.request)("/api/materialsinfo/pagedlist",{method:"POST",data:o()({},p)})}}},68153:function(w,O,t){t.r(O),t.d(O,{default:function(){return ae}});var R=t(15009),o=t.n(R),S=t(99289),d=t.n(S),p=t(5574),f=t.n(p),V=t(29933),k=t(88280),H=t(86550),y=t(8232),P=t(45360),Q=t(42075),C=t(14726),X=t(86738),b=t(85576),Y=t(66309),A=t(49978),q=t(74330),c=t(67294),_=t(97857),Z=t.n(_),h=t(56002),F={Add:function(l){return(0,h.request)("/api/recipesinfo/add",{method:"POST",data:Z()({},l)})},Del:function(l){return(0,h.request)("/api/recipesinfo/del",{method:"POST",data:Z()({},l)})},Update:function(l){return(0,h.request)("/api/recipesinfo/update",{method:"POST",data:Z()({},l)})},List:function(){return(0,h.request)("/api/recipesinfo/list",{method:"GET"})},PagedList:function(l){return(0,h.request)("/api/recipesinfo/pagedlist",{method:"POST",data:Z()({},l)})},MaterialList:function(l){return(0,h.request)("/api/recipematerial/list",{method:"POST",data:Z()({},l)})},BatchAdd:function(l){return(0,h.request)("/api/recipematerial/batchadd",{method:"POST",data:l})},ChangeGroup:function(l){return(0,h.request)("/api/recipesinfo/changegroup",{method:"POST",data:l})},selectlist:function(){return(0,h.request)("/api/recipesinfo/selectlist",{method:"GET"})}},ee=t(48223),r=t(85893),te=function(){var l=y.Z.useForm(),re=f()(l,1),B=re[0],ne=(0,c.useState)(!1),L=f()(ne,2),se=L[0],I=L[1],ie=(0,c.useState)(!1),U=f()(ie,2),ue=U[0],M=U[1],oe=(0,c.useState)(!1),$=f()(oe,2),le=$[0],T=$[1],de=(0,c.useState)(),G=f()(de,2),ce=G[0],xe=G[1],me=(0,c.useState)(),N=f()(me,2),fe=N[0],pe=N[1],he=(0,c.useState)([]),z=f()(he,2),D=z[0],x=z[1],ve=(0,c.useState)([]),K=f()(ve,2),ge=K[0],Se=K[1],Pe=(0,c.useState)(),W=f()(Pe,2),Ce=W[0],je=W[1],E=(0,c.useRef)(),ye=y.Z.useForm(),Fe=f()(ye,1),Ie=Fe[0],Ze=(0,c.useRef)(),J=(0,c.useRef)(),Te=function(){var u=d()(o()().mark(function i(a){var n,s,m,e;return o()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(a.picUrl=Ce,!a.id){g.next=8;break}return g.next=4,F.Update(a);case 4:n=g.sent,n.statusCode===200?(P.ZP.success("\u4FEE\u6539\u6210\u529F"),(s=E.current)===null||s===void 0||s.reload(),I(!1)):P.ZP.error(n.errors||"\u4FEE\u6539\u5931\u8D25"),g.next=12;break;case 8:return g.next=10,F.Add(a);case 10:m=g.sent,m.statusCode===200?(P.ZP.success("\u6DFB\u52A0\u6210\u529F"),(e=E.current)===null||e===void 0||e.reload(),I(!1)):P.ZP.error(m.errors||"\u6DFB\u52A0\u5931\u8D25");case 12:case"end":return g.stop()}},i)}));return function(a){return u.apply(this,arguments)}}(),De=[{title:"\u914D\u65B9\u540D\u79F0",dataIndex:"name",align:"center"},{title:"\u914D\u65B9\u7F16\u7801",dataIndex:"code",align:"center",hideInSearch:!0},{title:"\u64CD\u4F5C",align:"center",valueType:"option",key:"option",render:function(i,a){return[(0,r.jsxs)(Q.Z,{size:"middle",children:[(0,r.jsx)(C.ZP,{type:"primary",ghost:!0,onClick:d()(o()().mark(function n(){var s;return o()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:I(!0),s=JSON.parse(JSON.stringify(a)),je(s.picUrl),B.setFieldsValue(s);case 4:case"end":return e.stop()}},n)})),children:"\u7F16\u8F91"},"edit"),(0,r.jsx)(C.ZP,{type:"primary",ghost:!0,onClick:d()(o()().mark(function n(){var s;return o()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:T(!0),M(!0),s={id:"",materialId:"",recipesId:a.id,weight:""},pe(a),F.MaterialList(s).then(function(j){j.statusCode===200&&(x(j.data),T(!0)),M(!1)}).catch(function(){T(!1),M(!1)});case 5:case"end":return e.stop()}},n)})),children:"\u914D\u7F6E\u7269\u6599"},"site"),(0,r.jsx)(X.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",onConfirm:function(){var s={id:a.id,name:"",code:"",picUrl:"",groupId:""};F.Del(s).then(function(m){if(m.statusCode===200){var e;P.ZP.success(m.statusCode===200?"\u5220\u9664\u6210\u529F":m.message),(e=E.current)===null||e===void 0||e.reload()}})},onCancel:function(){P.ZP.info("\u5DF2\u53D6\u6D88\u5220\u9664")},okText:"\u786E\u8BA4",cancelText:"\u5173\u95ED",children:(0,r.jsx)(C.ZP,{type:"primary",danger:!0,ghost:!0,children:"\u5220\u9664"})},"del")]},"nm")]}}],Oe=[{title:"\u7269\u6599\u540D\u79F0",dataIndex:"materialId",valueType:"select",ellipsis:!0,request:function(){var u=d()(o()().mark(function a(){var n,s;return o()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ee.Z.List();case 2:return n=e.sent,s=[],n.statusCode===200&&(Se(n.data),n.data.map(function(j){return s.push({label:"".concat(j.name,"[").concat(j.unit,"]"),value:j.id})})),e.abrupt("return",s);case 6:case"end":return e.stop()}},a)}));function i(){return u.apply(this,arguments)}return i}(),formItemProps:function(){return{rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879"}]}}},{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(i,a){return[(0,r.jsx)(C.ZP,{type:"primary",ghost:!0,onClick:function(){var s;console.log(a),(s=J.current)===null||s===void 0||s.startEditable(a.id)},children:"\u7F16\u8F91\u539F\u6599"},"edit")]}}];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(H.Z,{columns:De,actionRef:E,cardBordered:!0,params:ce,request:d()(o()().mark(function u(){var i,a,n,s=arguments;return o()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=s.length>0&&s[0]!==void 0?s[0]:{},console.log("params",i),a={pageIndex:i.current||1,pageSize:i.pageSize||10,name:i.name||"",id:i.id,code:i.code,picUrl:"",groupId:i.groupId},e.next=5,F.PagedList(a);case 5:if(n=e.sent,n.statusCode!==200){e.next=10;break}return e.abrupt("return",{data:n.data.items,success:!0,total:n.data.total});case 10:return e.abrupt("return",{data:[],success:!1,total:0});case 11:case"end":return e.stop()}},u)})),rowKey:"id",pagination:{pageSize:10,showSizeChanger:!1},dateFormatter:"string",headerTitle:"\u914D\u65B9\u5217\u8868",toolBarRender:function(){return[(0,r.jsx)(C.ZP,{type:"primary",onClick:function(){B.resetFields(),I(!0)},children:"\u6DFB\u52A0\u914D\u65B9\u914D\u65B9"},"button")]}},"myTable"),(0,r.jsx)(b.Z,{maskClosable:!1,width:800,title:(0,r.jsx)(Y.Z,{color:"#cd201f",children:"\u65B0\u589E\u4FE1\u606F"}),open:se,onCancel:function(){I(!1)},footer:[(0,r.jsx)(C.ZP,{onClick:function(){I(!1)},children:"\u8FD4\u56DE"},"back"),(0,r.jsx)(C.ZP,{form:"myForm",type:"primary",htmlType:"submit",children:"\u63D0\u4EA4"},"submit")],children:(0,r.jsxs)(y.Z,{form:B,name:"basic",id:"myForm",labelCol:{span:4},wrapperCol:{span:12},onFinish:Te,autoComplete:"off",children:[(0,r.jsx)(y.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,r.jsx)(A.Z,{})}),(0,r.jsx)(y.Z.Item,{label:"\u914D\u65B9\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u6B64\u9879\u5FC5\u586B\uFF01"}],children:(0,r.jsx)(A.Z,{})}),(0,r.jsx)(y.Z.Item,{label:"\u914D\u65B9\u7F16\u7801",name:"code",rules:[{required:!0,message:"\u6B64\u9879\u5FC5\u586B\uFF01"}],children:(0,r.jsx)(A.Z,{})})]})},"01"),(0,r.jsx)(b.Z,{maskClosable:!1,width:1200,title:"\u914D\u7F6E\u7269\u6599",open:le,destroyOnClose:!0,onCancel:function(){T(!1),x([])},onOk:function(){var i=JSON.parse(JSON.stringify(D));i.map(function(a){a.recipesId=fe.id,a.id=""}),F.BatchAdd(i).then(function(a){a.statusCode===200?(P.ZP.success("\u4FDD\u5B58\u6210\u529F!"),T(!1)):P.ZP.error("\u4FDD\u5B58\u5931\u8D25!")})},children:(0,r.jsx)(q.Z,{spinning:ue,children:(0,r.jsx)(V.Z,{children:(0,r.jsx)("div",{style:{maxWidth:1200,margin:"auto"},children:(0,r.jsx)(k.Z,{rowKey:"id",controlled:!0,editableFormRef:Ze,actionRef:J,columns:Oe,value:D,recordCreatorProps:{record:function(){return{id:Date.now().toString(),materialId:"",recipesId:"",weight:""}}},editable:{form:Ie,type:"single",onValuesChange:function(i,a){console.log(ge),a?x(a):(D.push(i),x(D)),console.log("materiallist",D)},actionRender:function(i,a,n){return[n.delete,n.save,n.cancel]}}})})})})},"02")]})},ae=te}}]); diff --git a/frontend/dist/preload_helper.7c13d836.js b/frontend/dist/preload_helper.2b894109.js similarity index 74% rename from frontend/dist/preload_helper.7c13d836.js rename to frontend/dist/preload_helper.2b894109.js index 82e24e2..c2b5978 100644 --- a/frontend/dist/preload_helper.7c13d836.js +++ b/frontend/dist/preload_helper.2b894109.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":[["p__system__role__index.eede85e8.async.js",24],["p__deviceInfo__index.ff2808b7.async.js",36],["p__user__login__index.26100c69.chunk.css",37],["p__user__login__index.b934e735.async.js",37],["119.4e6a5656.async.js",119],["p__recipe__index.0f84fa24.async.js",187],["222.4d9ce06a.async.js",222],["p__system__module__index.ef46db37.chunk.css",257],["p__system__module__index.4ef32e9c.async.js",257],["p__materials__index.0233f7a0.async.js",262],["t__plugin-layout__Layout.5012e1ab.chunk.css",301],["t__plugin-layout__Layout.bb77edb1.async.js",301],["390.c53868f3.async.js",390],["393.e127e60f.async.js",393],["p__deviceProductInfo__index.835c0c6c.chunk.css",402],["p__deviceProductInfo__index.ab3fbfed.async.js",402],["p__workInfo__index.8432356b.async.js",420],["p__welcome__index.dde73410.async.js",446],["p__final__index.b1c7fb46.async.js",460],["p__system__user__index.695d982e.chunk.css",472],["p__system__user__index.f6e08770.async.js",472],["550.26374af7.async.js",550],["t__plugin-maxtabs__Layout.b832af3b.async.js",558],["563.9aeac478.async.js",563],["p__404.a52587bb.async.js",571],["635.dbb47eab.async.js",635],["715.8ca32649.async.js",715],["821.b970c16a.async.js",821],["865.5becc75b.async.js",865],["p__craftInfo__pot.b10f2cd8.chunk.css",869],["p__craftInfo__pot.925de306.async.js",869],["p__plantModel__process.ae647f4d.async.js",988],["p__productLine__line.255fd01c.async.js",990]],"r":{"/*":[24,27],"/":[13,17,22,4,10,11,27,28],"/work":[4,6,13,16,21,27,22,10,11,28],"/user/login":[2,3],"/system/user":[4,19,20,21,27,22,10,11,28],"/system/role":[0,4,21,27,22,10,11,28],"/system/module":[4,7,8,21,27,22,10,11,28],"/wmx/deviceProduct":[4,14,15,21,27,22,10,11,28],"/wmx/deviceinfo":[1,4,21,27,22,10,11,28],"/base/process":[4,21,27,31,22,10,11,28],"/base/materials":[4,9,21,27,22,10,11,28],"/base/final":[4,18,21,27,22,10,11,28],"/base/line":[4,21,25,26,27,32,22,10,11,28],"/recipeCraft/recipe":[4,5,21,23,27,22,10,11,28],"/recipeCraft/pot":[4,13,21,25,27,29,30,22,10,11,28]}},{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":[["p__system__role__index.eede85e8.async.js",24],["p__deviceInfo__index.ff2808b7.async.js",36],["p__user__login__index.26100c69.chunk.css",37],["p__user__login__index.b934e735.async.js",37],["119.4e6a5656.async.js",119],["p__recipe__index.101f5df6.async.js",187],["222.4d9ce06a.async.js",222],["p__system__module__index.ef46db37.chunk.css",257],["p__system__module__index.4ef32e9c.async.js",257],["p__materials__index.0233f7a0.async.js",262],["t__plugin-layout__Layout.5012e1ab.chunk.css",301],["t__plugin-layout__Layout.bb77edb1.async.js",301],["390.c53868f3.async.js",390],["393.e127e60f.async.js",393],["p__deviceProductInfo__index.835c0c6c.chunk.css",402],["p__deviceProductInfo__index.ab3fbfed.async.js",402],["p__workInfo__index.8432356b.async.js",420],["p__welcome__index.dde73410.async.js",446],["p__final__index.0c5211d3.async.js",460],["p__system__user__index.695d982e.chunk.css",472],["p__system__user__index.f6e08770.async.js",472],["550.26374af7.async.js",550],["t__plugin-maxtabs__Layout.b832af3b.async.js",558],["563.9aeac478.async.js",563],["p__404.a52587bb.async.js",571],["635.dbb47eab.async.js",635],["715.8ca32649.async.js",715],["821.b970c16a.async.js",821],["865.5becc75b.async.js",865],["p__craftInfo__pot.b10f2cd8.chunk.css",869],["p__craftInfo__pot.d395d8d9.async.js",869],["p__plantModel__process.ae647f4d.async.js",988],["p__productLine__line.22ddcd1b.async.js",990]],"r":{"/*":[24,27],"/":[13,17,22,4,10,11,27,28],"/work":[4,6,13,16,21,27,22,10,11,28],"/user/login":[2,3],"/system/user":[4,19,20,21,27,22,10,11,28],"/system/role":[0,4,21,27,22,10,11,28],"/system/module":[4,7,8,21,27,22,10,11,28],"/wmx/deviceProduct":[4,14,15,21,27,22,10,11,28],"/wmx/deviceinfo":[1,4,21,27,22,10,11,28],"/base/process":[4,21,27,31,22,10,11,28],"/base/materials":[4,9,21,27,22,10,11,28],"/base/final":[4,18,21,23,27,22,10,11,28],"/base/line":[4,21,25,26,27,32,22,10,11,28],"/recipeCraft/recipe":[4,5,21,23,27,22,10,11,28],"/recipeCraft/pot":[4,13,21,25,27,29,30,22,10,11,28]}},{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.bd1d8650.js b/frontend/dist/umi.c553e74a.js similarity index 99% rename from frontend/dist/umi.bd1d8650.js rename to frontend/dist/umi.c553e74a.js index f440f87..51a5985 100644 --- a/frontend/dist/umi.bd1d8650.js +++ b/frontend/dist/umi.c553e74a.js @@ -295,7 +295,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `:case"\u2028":case"\u2029":break;case"0":if(M(I,b))return;z+="\0";break;case"x":if(R=S(I,b,b+2),R===-1)return;b+=2,z+=n(R);break;case"u":if(b1114111)return;z+=i(R);break;default:if(M(_,0))return;z+=_}P=b}return z+u(I,P)}},63514:function(v,h,e){"use strict";var r=e(19037),t=e(3689),n=e(3615),i=e(72532),d=e(88563),a=e(50806),f=r.structuredClone;v.exports=!!f&&!t(function(){if(d&&n>92||a&&n>94||i&&n>97)return!1;var u=new ArrayBuffer(8),m=f(u,{transfer:[u]});return u.byteLength!==0||m.byteLength!==8})},50146:function(v,h,e){"use strict";var r=e(3615),t=e(3689),n=e(19037),i=n.String;v.exports=!!Object.getOwnPropertySymbols&&!t(function(){var d=Symbol("symbol detection");return!i(d)||!(Object(d)instanceof Symbol)||!Symbol.sham&&r&&r<41})},18992:function(v,h,e){"use strict";var r=e(76058),t=e(68844),n=r("Symbol"),i=n.keyFor,d=t(n.prototype.valueOf);v.exports=n.isRegisteredSymbol||function(f){try{return i(d(f))!==void 0}catch(u){return!1}}},8957:function(v,h,e){"use strict";for(var r=e(83430),t=e(76058),n=e(68844),i=e(30734),d=e(44201),a=t("Symbol"),f=a.isWellKnownSymbol,u=t("Object","getOwnPropertyNames"),m=n(a.prototype.valueOf),y=r("wks"),C=0,O=u(a),g=O.length;C0?t(r(n),9007199254740991):0}},90690:function(v,h,e){"use strict";var r=e(74684),t=Object;v.exports=function(n){return t(r(n))}},83250:function(v,h,e){"use strict";var r=e(15904),t=RangeError;v.exports=function(n,i){var d=r(n);if(d%i)throw new t("Wrong offset");return d}},15904:function(v,h,e){"use strict";var r=e(68700),t=RangeError;v.exports=function(n){var i=r(n);if(i<0)throw new t("The argument can't be less than 0");return i}},88732:function(v,h,e){"use strict";var r=e(22615),t=e(48999),n=e(30734),i=e(54849),d=e(35899),a=e(44201),f=TypeError,u=a("toPrimitive");v.exports=function(m,y){if(!t(m)||n(m))return m;var C=i(m,u),O;if(C){if(y===void 0&&(y="default"),O=r(C,m,y),!t(O)||n(O))return O;throw new f("Can't convert object to primitive value")}return y===void 0&&(y="number"),d(m,y)}},18360:function(v,h,e){"use strict";var r=e(88732),t=e(30734);v.exports=function(n){var i=r(n,"string");return t(i)?i:i+""}},2939:function(v,h,e){"use strict";var r=e(76058),t=e(69985),n=e(9603),i=e(48999),d=r("Set"),a=function(f){return i(f)&&typeof f.size=="number"&&t(f.has)&&t(f.keys)};v.exports=function(f){return a(f)?f:n(f)?new d(f):f}},23043:function(v,h,e){"use strict";var r=e(44201),t=r("toStringTag"),n={};n[t]="z",v.exports=String(n)==="[object z]"},34327:function(v,h,e){"use strict";var r=e(50926),t=String;v.exports=function(n){if(r(n)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}},87191:function(v){"use strict";var h=Math.round;v.exports=function(e){var r=h(e);return r<0?0:r>255?255:r&255}},21905:function(v,h,e){"use strict";var r=e(50806);v.exports=function(t){try{if(r)return Function('return require("'+t+'")')()}catch(n){}}},23691:function(v){"use strict";var h=String;v.exports=function(e){try{return h(e)}catch(r){return"Object"}}},20716:function(v,h,e){"use strict";var r=e(59976),t=e(47338);v.exports=function(n,i){return r(t(n),i)}},47338:function(v,h,e){"use strict";var r=e(54872),t=e(76373),n=r.aTypedArrayConstructor,i=r.getTypedArrayConstructor;v.exports=function(d){return n(t(d,i(d)))}},14630:function(v,h,e){"use strict";var r=e(68844),t=0,n=Math.random(),i=r(1 .toString);v.exports=function(d){return"Symbol("+(d===void 0?"":d)+")_"+i(++t+n,36)}},76837:function(v,h,e){"use strict";var r=e(3689),t=e(44201),n=e(67697),i=e(53931),d=t("iterator");v.exports=!r(function(){var a=new URL("b?a=1&b=2&c=3","http://a"),f=a.searchParams,u=new URLSearchParams("a=1&a=2&b=3"),m="";return a.pathname="c%20d",f.forEach(function(y,C){f.delete("b"),m+=C+y}),u.delete("a",2),u.delete("b",void 0),i&&(!a.toJSON||!u.has("a",1)||u.has("a",2)||!u.has("a",void 0)||u.has("b"))||!f.size&&(i||!n)||!f.sort||a.href!=="http://a/c%20d?a=1&c=3"||f.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!f[d]||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"||m!=="a1c3"||new URL("http://x",void 0).host!=="x"})},39525:function(v,h,e){"use strict";var r=e(50146);v.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},15648:function(v,h,e){"use strict";var r=e(67697),t=e(3689);v.exports=r&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},21500:function(v){"use strict";var h=TypeError;v.exports=function(e,r){if(ez&&y(Q,arguments[z]),Q});if(A.prototype=_,b!=="Error"?d?d(A,U):a(A,U,{name:!0}):O&&I in R&&(f(A,R,I),f(A,R,"prepareStackTrace")),a(A,R),!g)try{_.name!==b&&n(_,"name",b),_.constructor=A}catch(W){}return A}}},54927:function(v,h,e){"use strict";var r=e(79989),t=e(76058),n=e(61735),i=e(3689),d=e(51064),a="AggregateError",f=t(a),u=!i(function(){return f([1]).errors[0]!==1})&&i(function(){return f([1],a,{cause:7}).cause!==7});r({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:d(a,function(m){return function(C,O){return n(m,this,arguments)}},u,!0)})},39382:function(v,h,e){"use strict";var r=e(79989),t=e(23622),n=e(61868),i=e(49385),d=e(8758),a=e(25391),f=e(75773),u=e(75684),m=e(62570),y=e(65411),C=e(18734),O=e(13841),g=e(44201),w=g("toStringTag"),M=Error,S=[].push,E=function(P,b){var R=t(I,this),_;i?_=i(new M,R?n(this):I):(_=R?this:a(I),f(_,w,"Error")),b!==void 0&&f(_,"message",O(b)),y(_,E,_.stack,1),arguments.length>2&&m(_,arguments[2]);var U=[];return C(P,S,{that:U}),f(_,"errors",U),_};i?i(E,M):d(E,M,{name:!0});var I=E.prototype=a(M.prototype,{constructor:u(1,E),message:u(1,""),name:u(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:E})},95879:function(v,h,e){"use strict";e(39382)},92176:function(v,h,e){"use strict";var r=e(79989),t=e(90690),n=e(6310),i=e(68700),d=e(87370);r({target:"Array",proto:!0},{at:function(f){var u=t(this),m=n(u),y=i(f),C=y>=0?y:m+y;return C<0||C>=m?void 0:u[C]}}),d("at")},93383:function(v,h,e){"use strict";var r=e(79989),t=e(61969).findLastIndex,n=e(87370);r({target:"Array",proto:!0},{findLastIndex:function(d){return t(this,d,arguments.length>1?arguments[1]:void 0)}}),n("findLastIndex")},59867:function(v,h,e){"use strict";var r=e(79989),t=e(61969).findLast,n=e(87370);r({target:"Array",proto:!0},{findLast:function(d){return t(this,d,arguments.length>1?arguments[1]:void 0)}}),n("findLast")},70560:function(v,h,e){"use strict";var r=e(79989),t=e(90690),n=e(6310),i=e(5649),d=e(55565),a=e(3689),f=a(function(){return[].push.call({length:4294967296},1)!==4294967297}),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(y){return y instanceof TypeError}},m=f||!u();r({target:"Array",proto:!0,arity:1,forced:m},{push:function(C){var O=t(this),g=n(O),w=arguments.length;d(g+w);for(var M=0;M79&&i<83,f=a||!n("reduceRight");r({target:"Array",proto:!0,forced:f},{reduceRight:function(m){return t(this,m,arguments.length,arguments.length>1?arguments[1]:void 0)}})},278:function(v,h,e){"use strict";var r=e(79989),t=e(88820).left,n=e(16834),i=e(3615),d=e(50806),a=!d&&i>79&&i<83,f=a||!n("reduce");r({target:"Array",proto:!0,forced:f},{reduce:function(m){var y=arguments.length;return t(this,m,y,y>1?arguments[1]:void 0)}})},29830:function(v,h,e){"use strict";var r=e(79989),t=e(26166),n=e(65290),i=e(87370),d=Array;r({target:"Array",proto:!0},{toReversed:function(){return t(n(this),d)}}),i("toReversed")},12894:function(v,h,e){"use strict";var r=e(79989),t=e(68844),n=e(10509),i=e(65290),d=e(59976),a=e(88277),f=e(87370),u=Array,m=t(a("Array","sort"));r({target:"Array",proto:!0},{toSorted:function(C){C!==void 0&&n(C);var O=i(this),g=d(u,O);return m(g,C)}}),f("toSorted")},93530:function(v,h,e){"use strict";var r=e(79989),t=e(87370),n=e(55565),i=e(6310),d=e(27578),a=e(65290),f=e(68700),u=Array,m=Math.max,y=Math.min;r({target:"Array",proto:!0},{toSpliced:function(O,g){var w=a(this),M=i(w),S=d(O,M),E=arguments.length,I=0,z,P,b,R;for(E===0?z=P=0:E===1?(z=0,P=M-S):(z=E-2,P=y(m(f(g),0),M-S)),b=n(M+z-P),R=u(b);I=0?g:O+g;return w<0||w>=O?void 0:f(C,w)}})},12281:function(v,h,e){"use strict";var r=e(79989),t=e(68844),n=e(74684),i=e(34327),d=t("".charCodeAt);r({target:"String",proto:!0},{isWellFormed:function(){for(var f=i(n(this)),u=f.length,m=0;m=56320||++m>=u||(d(f,m)&64512)!==56320))return!1}return!0}})},56532:function(v,h,e){"use strict";var r=e(79989),t=e(22615),n=e(68844),i=e(74684),d=e(69985),a=e(981),f=e(91245),u=e(34327),m=e(54849),y=e(63477),C=e(27017),O=e(44201),g=e(53931),w=O("replace"),M=TypeError,S=n("".indexOf),E=n("".replace),I=n("".slice),z=Math.max,P=function(b,R,_){return _>b.length?-1:R===""?_:S(b,R,_)};r({target:"String",proto:!0},{replaceAll:function(R,_){var U=i(this),A,W,K,j,Q,ne,oe,re,B,N=0,H=0,L="";if(!a(R)){if(A=f(R),A&&(W=u(i(y(R))),!~S(W,"g")))throw new M("`.replaceAll` does not allow non-global regexes");if(K=m(R,w),K)return t(K,R,U,_);if(g&&A)return E(u(U),R,_)}for(j=u(U),Q=u(R),ne=d(_),ne||(_=u(_)),oe=Q.length,re=z(1,oe),N=P(j,Q,0);N!==-1;)B=ne?u(_(Q,N,j)):C(Q,j,N,[],void 0,_),L+=I(j,H,N)+B,H=N+oe,N=P(j,Q,N+re);return H=56320||I+1>=S||(m(M,I+1)&64512)!==56320?E[I]=O:(E[I]=u(M,I),E[++I]=u(M,I))}return y(E,"")}})},95194:function(v,h,e){"use strict";var r=e(54872),t=e(6310),n=e(68700),i=r.aTypedArray,d=r.exportTypedArrayMethod;d("at",function(f){var u=i(this),m=t(u),y=n(f),C=y>=0?y:m+y;return C<0||C>=m?void 0:u[C]})},82:function(v,h,e){"use strict";var r=e(54872),t=e(61969).findLastIndex,n=r.aTypedArray,i=r.exportTypedArrayMethod;i("findLastIndex",function(a){return t(n(this),a,arguments.length>1?arguments[1]:void 0)})},20522:function(v,h,e){"use strict";var r=e(54872),t=e(61969).findLast,n=r.aTypedArray,i=r.exportTypedArrayMethod;i("findLast",function(a){return t(n(this),a,arguments.length>1?arguments[1]:void 0)})},79976:function(v,h,e){"use strict";var r=e(19037),t=e(22615),n=e(54872),i=e(6310),d=e(83250),a=e(90690),f=e(3689),u=r.RangeError,m=r.Int8Array,y=m&&m.prototype,C=y&&y.set,O=n.aTypedArray,g=n.exportTypedArrayMethod,w=!f(function(){var S=new Uint8ClampedArray(2);return t(C,S,{length:1,0:3},1),S[1]!==3}),M=w&&n.NATIVE_ARRAY_BUFFER_VIEWS&&f(function(){var S=new m(2);return S.set(1),S.set("2",1),S[0]!==0||S[1]!==2});g("set",function(E){O(this);var I=d(arguments.length>1?arguments[1]:void 0,1),z=a(E);if(w)return t(C,this,z,I);var P=this.length,b=i(z),R=0;if(b+I>P)throw new u("Wrong length");for(;R1?arguments[1]:void 0)}}),n("filterOut")},54883:function(v,h,e){"use strict";var r=e(79989),t=e(2960).filterReject,n=e(87370);r({target:"Array",proto:!0,forced:!0},{filterReject:function(d){return t(this,d,arguments.length>1?arguments[1]:void 0)}}),n("filterReject")},18073:function(v,h,e){"use strict";var r=e(79989),t=e(2231);r({target:"Array",stat:!0},{fromAsync:t})},96882:function(v,h,e){"use strict";var r=e(79989),t=e(16834),n=e(87370),i=e(44416),d=e(53931);r({target:"Array",proto:!0,name:"groupToMap",forced:d||!t("groupByToMap")},{groupByToMap:i}),n("groupByToMap")},22525:function(v,h,e){"use strict";var r=e(79989),t=e(64976),n=e(16834),i=e(87370);r({target:"Array",proto:!0,forced:!n("groupBy")},{groupBy:function(a){var f=arguments.length>1?arguments[1]:void 0;return t(this,a,f)}}),i("groupBy")},32539:function(v,h,e){"use strict";var r=e(79989),t=e(87370),n=e(44416),i=e(53931);r({target:"Array",proto:!0,forced:i},{groupToMap:n}),t("groupToMap")},36208:function(v,h,e){"use strict";var r=e(79989),t=e(64976),n=e(87370);r({target:"Array",proto:!0},{group:function(d){var a=arguments.length>1?arguments[1]:void 0;return t(this,d,a)}}),n("group")},5082:function(v,h,e){"use strict";var r=e(79989),t=e(92297),n=Object.isFrozen,i=function(d,a){if(!n||!t(d)||!n(d))return!1;for(var f=0,u=d.length,m;f1?arguments[1]:!1);return n([f&255,f>>8&255],10)}})},89246:function(v,h,e){"use strict";var r=e(79989),t=e(68844),n=t(DataView.prototype.getUint8);r({target:"DataView",proto:!0,forced:!0},{getUint8Clamped:function(d){return n(this,d)}})},31186:function(v,h,e){"use strict";var r=e(79989),t=e(68844),n=e(50926),i=e(19842),d=e(15477).pack,a=e(76043),f=TypeError,u=t(DataView.prototype.setUint16);r({target:"DataView",proto:!0},{setFloat16:function(y,C){if(n(this)!=="DataView")throw new f("Incorrect receiver");var O=i(y),g=d(a(C),10,2);return u(this,O,g[1]<<8|g[0],arguments.length>2?arguments[2]:!1)}})},9279:function(v,h,e){"use strict";var r=e(79989),t=e(68844),n=e(50926),i=e(19842),d=e(87191),a=TypeError,f=t(DataView.prototype.setUint8);r({target:"DataView",proto:!0,forced:!0},{setUint8Clamped:function(m,y){if(n(this)!=="DataView")throw new a("Incorrect receiver");var C=i(m);return f(this,C,d(y))}})},26725:function(v,h,e){"use strict";var r=e(79989),t=e(67697),n=e(76058),i=e(10509),d=e(767),a=e(11880),f=e(6045),u=e(62148),m=e(44201),y=e(618),C=e(29199),O=n("SuppressedError"),g=ReferenceError,w=m("dispose"),M=m("toStringTag"),S="DisposableStack",E=y.set,I=y.getterFor(S),z="sync-dispose",P="disposed",b="pending",R=function(A){var W=I(A);if(W.state===P)throw new g(S+" already disposed");return W},_=function(){E(d(this,U),{type:S,state:b,stack:[]}),t||(this.disposed=!1)},U=_.prototype;f(U,{dispose:function(){var W=I(this);if(W.state!==P){W.state=P,t||(this.disposed=!0);for(var K=W.stack,j=K.length,Q=!1,ne;j;){var oe=K[--j];K[j]=null;try{oe()}catch(re){Q?ne=new O(re,ne):(Q=!0,ne=re)}}if(W.stack=null,Q)throw ne}},use:function(W){return C(R(this),W,z),W},adopt:function(W,K){var j=R(this);return i(K),C(j,void 0,z,function(){K(W)}),W},defer:function(W){var K=R(this);i(W),C(K,void 0,z,W)},move:function(){var W=R(this),K=new _;return I(K).stack=W.stack,W.stack=[],W.state=P,t||(this.disposed=!0),K}}),t&&u(U,"disposed",{configurable:!0,get:function(){return I(this).state===P}}),a(U,w,U.dispose,{name:"dispose"}),a(U,M,S,{nonWritable:!0}),r({global:!0,constructor:!0},{DisposableStack:_})},26125:function(v,h,e){"use strict";var r=e(79989),t=e(33505);r({target:"Function",proto:!0,forced:!0},{demethodize:t})},2820:function(v,h,e){"use strict";var r=e(79989),t=e(68844),n=e(69985),i=e(6738),d=e(36812),a=e(67697),f=Object.getOwnPropertyDescriptor,u=/^\s*class\b/,m=t(u.exec),y=function(C){try{if(!a||!m(u,i(C)))return!1}catch(g){}var O=f(C,"prototype");return!!O&&d(O,"writable")&&!O.writable};r({target:"Function",stat:!0,sham:!0,forced:!0},{isCallable:function(O){return n(O)&&!y(O)}})},62517:function(v,h,e){"use strict";var r=e(79989),t=e(19429);r({target:"Function",stat:!0,forced:!0},{isConstructor:t})},54947:function(v,h,e){"use strict";var r=e(44201),t=e(72560).f,n=r("metadata"),i=Function.prototype;i[n]===void 0&&t(i,n,{value:null})},74993:function(v,h,e){"use strict";var r=e(79989),t=e(33505);r({target:"Function",proto:!0,forced:!0,name:"demethodize"},{unThis:t})},50647:function(v,h,e){"use strict";var r=e(79989),t=e(47082);r({target:"Iterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:t})},67602:function(v,h,e){"use strict";var r=e(79989),t=e(19037),n=e(767),i=e(85027),d=e(69985),a=e(61868),f=e(62148),u=e(76522),m=e(3689),y=e(36812),C=e(44201),O=e(12013).IteratorPrototype,g=e(67697),w=e(53931),M="constructor",S="Iterator",E=C("toStringTag"),I=TypeError,z=t[S],P=w||!d(z)||z.prototype!==O||!m(function(){z({})}),b=function(){if(n(this,O),a(this)===O)throw new I("Abstract class Iterator not directly constructable")},R=function(_,U){g?f(O,_,{configurable:!0,get:function(){return U},set:function(A){if(i(this),this===O)throw new I("You can't redefine this property");y(this,_)?this[_]=A:u(this,_,A)}}):O[_]=U};y(O,E)||R(E,S),(P||!y(O,M)||O[M]===Object)&&R(M,b),b.prototype=O,r({global:!0,constructor:!0,forced:P},{Iterator:b})},82639:function(v,h,e){"use strict";var r=e(22615),t=e(11880),n=e(54849),i=e(36812),d=e(44201),a=e(12013).IteratorPrototype,f=d("dispose");i(a,f)||t(a,f,function(){var u=n(this,"return");u&&r(u,this)})},63986:function(v,h,e){"use strict";var r=e(79989),t=e(22615),n=e(85027),i=e(22302),d=e(4654),a=e(15904),f=e(65419),u=e(53931),m=f(function(){for(var y=this.iterator,C=this.next,O,g;this.remaining;)if(this.remaining--,O=n(t(C,y)),g=this.done=!!O.done,g)return;if(O=n(t(C,y)),g=this.done=!!O.done,!g)return O.value});r({target:"Iterator",proto:!0,real:!0,forced:u},{drop:function(C){n(this);var O=a(d(+C));return new m(i(this),{remaining:O})}})},16054:function(v,h,e){"use strict";var r=e(79989),t=e(18734),n=e(10509),i=e(85027),d=e(22302);r({target:"Iterator",proto:!0,real:!0},{every:function(f){i(this),n(f);var u=d(this),m=0;return!t(u,function(y,C){if(!f(y,m++))return C()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},53476:function(v,h,e){"use strict";var r=e(79989),t=e(22615),n=e(10509),i=e(85027),d=e(22302),a=e(65419),f=e(71228),u=e(53931),m=a(function(){for(var y=this.iterator,C=this.predicate,O=this.next,g,w,M;;){if(g=i(t(O,y)),w=this.done=!!g.done,w)return;if(M=g.value,f(y,C,[M,this.counter++],!0))return M}});r({target:"Iterator",proto:!0,real:!0,forced:u},{filter:function(C){return i(this),n(C),new m(d(this),{predicate:C})}})},70928:function(v,h,e){"use strict";var r=e(79989),t=e(18734),n=e(10509),i=e(85027),d=e(22302);r({target:"Iterator",proto:!0,real:!0},{find:function(f){i(this),n(f);var u=d(this),m=0;return t(u,function(y,C){if(f(y,m++))return C(y)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},49411:function(v,h,e){"use strict";var r=e(79989),t=e(22615),n=e(10509),i=e(85027),d=e(22302),a=e(36752),f=e(65419),u=e(72125),m=e(53931),y=f(function(){for(var C=this.iterator,O=this.mapper,g,w;;){if(w=this.inner)try{if(g=i(t(w.next,w.iterator)),!g.done)return g.value;this.inner=null}catch(M){u(C,"throw",M)}if(g=i(t(this.next,C)),this.done=!!g.done)return;try{this.inner=a(O(g.value,this.counter++),!1)}catch(M){u(C,"throw",M)}}});r({target:"Iterator",proto:!0,real:!0,forced:m},{flatMap:function(O){return i(this),n(O),new y(d(this),{mapper:O,inner:null})}})},30005:function(v,h,e){"use strict";var r=e(79989),t=e(18734),n=e(10509),i=e(85027),d=e(22302);r({target:"Iterator",proto:!0,real:!0},{forEach:function(f){i(this),n(f);var u=d(this),m=0;t(u,function(y){f(y,m++)},{IS_RECORD:!0})}})},73494:function(v,h,e){"use strict";var r=e(79989),t=e(22615),n=e(90690),i=e(23622),d=e(12013).IteratorPrototype,a=e(65419),f=e(36752),u=e(53931),m=a(function(){return t(this.next,this.iterator)},!0);r({target:"Iterator",stat:!0,forced:u},{from:function(C){var O=f(typeof C=="string"?n(C):C,!0);return i(d,O.iterator)?O.iterator:new m(O)}})},94564:function(v,h,e){"use strict";var r=e(79989),t=e(47082);r({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:t})},41792:function(v,h,e){"use strict";var r=e(79989),t=e(88983),n=e(53931);r({target:"Iterator",proto:!0,real:!0,forced:n},{map:t})},5985:function(v,h,e){"use strict";var r=e(79989),t=e(98554),n=TypeError;r({target:"Iterator",stat:!0,forced:!0},{range:function(d,a,f){if(typeof d=="number")return new t(d,a,f,"number",0,1);if(typeof d=="bigint")return new t(d,a,f,"bigint",BigInt(0),BigInt(1));throw new n("Incorrect Iterator.range arguments")}})},31107:function(v,h,e){"use strict";var r=e(79989),t=e(18734),n=e(10509),i=e(85027),d=e(22302),a=TypeError;r({target:"Iterator",proto:!0,real:!0},{reduce:function(u){i(this),n(u);var m=d(this),y=arguments.length<2,C=y?void 0:arguments[1],O=0;if(t(m,function(g){y?(y=!1,C=g):C=u(C,g,O),O++},{IS_RECORD:!0}),y)throw new a("Reduce of empty iterator with no initial value");return C}})},28244:function(v,h,e){"use strict";var r=e(79989),t=e(18734),n=e(10509),i=e(85027),d=e(22302);r({target:"Iterator",proto:!0,real:!0},{some:function(f){i(this),n(f);var u=d(this),m=0;return t(u,function(y,C){if(f(y,m++))return C()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},3645:function(v,h,e){"use strict";var r=e(79989),t=e(22615),n=e(85027),i=e(22302),d=e(4654),a=e(15904),f=e(65419),u=e(72125),m=e(53931),y=f(function(){var C=this.iterator;if(!this.remaining--)return this.done=!0,u(C,"normal",void 0);var O=n(t(this.next,C)),g=this.done=!!O.done;if(!g)return O.value});r({target:"Iterator",proto:!0,real:!0,forced:m},{take:function(O){n(this);var g=a(d(+O));return new y(i(this),{remaining:g})}})},58429:function(v,h,e){"use strict";var r=e(79989),t=e(85027),n=e(18734),i=e(22302),d=[].push;r({target:"Iterator",proto:!0,real:!0},{toArray:function(){var f=[];return n(i(t(this)),d,{that:f,IS_RECORD:!0}),f}})},39569:function(v,h,e){"use strict";var r=e(79989),t=e(85027),n=e(29019),i=e(40219),d=e(22302),a=e(53931);r({target:"Iterator",proto:!0,real:!0,forced:a},{toAsync:function(){return new i(d(new n(d(t(this)))))}})},74320:function(v,h,e){"use strict";var r=e(79989),t=e(22818),n=e(55670);r({target:"JSON",stat:!0,forced:!t},{isRawJSON:n})},20691:function(v,h,e){"use strict";var r=e(79989),t=e(67697),n=e(19037),i=e(76058),d=e(68844),a=e(22615),f=e(69985),u=e(48999),m=e(92297),y=e(36812),C=e(34327),O=e(6310),g=e(76522),w=e(3689),M=e(46675),S=e(50146),E=n.JSON,I=n.Number,z=n.SyntaxError,P=E&&E.parse,b=i("Object","keys"),R=Object.getOwnPropertyDescriptor,_=d("".charAt),U=d("".slice),A=d(/./.exec),W=d([].push),K=/^\d$/,j=/^[1-9]$/,Q=/^(?:-|\d)$/,ne=/^[\t\n\r ]$/,oe=0,re=1,B=function(ae,X){ae=C(ae);var ie=new F(ae,0,""),pe=ie.parse(),ge=pe.value,Ce=ie.skip(ne,pe.end);if(Ce1?arguments[1]:void 0);return i(f,function(m,y){if(!u(m,y,f))return!1},!0)!==!1}})},41099:function(v,h,e){"use strict";var r=e(79989),t=e(54071),n=e(9945),i=e(83914),d=e(10613),a=i.Map,f=i.set;r({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(m){var y=n(this),C=t(m,arguments.length>1?arguments[1]:void 0),O=new a;return d(y,function(g,w){C(g,w,y)&&f(O,w,g)}),O}})},20876:function(v,h,e){"use strict";var r=e(79989),t=e(54071),n=e(9945),i=e(10613);r({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(a){var f=n(this),u=t(a,arguments.length>1?arguments[1]:void 0),m=i(f,function(y,C){if(u(y,C,f))return{key:C}},!0);return m&&m.key}})},26320:function(v,h,e){"use strict";var r=e(79989),t=e(54071),n=e(9945),i=e(10613);r({target:"Map",proto:!0,real:!0,forced:!0},{find:function(a){var f=n(this),u=t(a,arguments.length>1?arguments[1]:void 0),m=i(f,function(y,C){if(u(y,C,f))return{value:y}},!0);return m&&m.value}})},6052:function(v,h,e){"use strict";var r=e(79989),t=e(28737);r({target:"Map",stat:!0,forced:!0},{from:t})},76791:function(v,h,e){"use strict";var r=e(79989),t=e(68600),n=e(9945),i=e(10613);r({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(a){return i(n(this),function(f){if(t(f,a))return!0},!0)===!0}})},75341:function(v,h,e){"use strict";var r=e(79989),t=e(22615),n=e(18734),i=e(69985),d=e(10509),a=e(83914).Map;r({target:"Map",stat:!0,forced:!0},{keyBy:function(u,m){var y=i(this)?this:a,C=new y;d(m);var O=d(C.set);return n(u,function(g){t(O,C,m(g),g)}),C}})},40019:function(v,h,e){"use strict";var r=e(79989),t=e(9945),n=e(10613);r({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(d){var a=n(t(this),function(f,u){if(f===d)return{key:u}},!0);return a&&a.key}})},92343:function(v,h,e){"use strict";var r=e(79989),t=e(54071),n=e(9945),i=e(83914),d=e(10613),a=i.Map,f=i.set;r({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(m){var y=n(this),C=t(m,arguments.length>1?arguments[1]:void 0),O=new a;return d(y,function(g,w){f(O,C(g,w,y),g)}),O}})},51096:function(v,h,e){"use strict";var r=e(79989),t=e(54071),n=e(9945),i=e(83914),d=e(10613),a=i.Map,f=i.set;r({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(m){var y=n(this),C=t(m,arguments.length>1?arguments[1]:void 0),O=new a;return d(y,function(g,w){f(O,w,C(g,w,y))}),O}})},4314:function(v,h,e){"use strict";var r=e(79989),t=e(9945),n=e(18734),i=e(83914).set;r({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(a){for(var f=t(this),u=arguments.length,m=0;m1?arguments[1]:void 0);return i(f,function(m,y){if(u(m,y,f))return!0},!0)===!0}})},24453:function(v,h,e){"use strict";var r=e(79989),t=e(41432);r({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:t})},64078:function(v,h,e){"use strict";var r=e(79989),t=e(10509),n=e(9945),i=e(83914),d=TypeError,a=i.get,f=i.has,u=i.set;r({target:"Map",proto:!0,real:!0,forced:!0},{update:function(y,C){var O=n(this),g=arguments.length;t(C);var w=f(O,y);if(!w&&g<3)throw new d("Updating absent value");var M=w?a(O,y):t(g>2?arguments[2]:void 0)(y,O);return u(O,y,C(M,y,O)),O}})},66190:function(v,h,e){"use strict";var r=e(79989),t=e(41432);r({target:"Map",proto:!0,real:!0,forced:!0},{upsert:t})},25684:function(v,h,e){"use strict";var r=e(79989),t=Math.min,n=Math.max;r({target:"Math",stat:!0,forced:!0},{clamp:function(d,a,f){return t(f,n(a,d))}})},31789:function(v,h,e){"use strict";var r=e(79989);r({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180})},8677:function(v,h,e){"use strict";var r=e(79989),t=180/Math.PI;r({target:"Math",stat:!0,forced:!0},{degrees:function(i){return i*t}})},59151:function(v,h,e){"use strict";var r=e(79989),t=e(76043);r({target:"Math",stat:!0},{f16round:t})},346:function(v,h,e){"use strict";var r=e(79989),t=e(84463),n=e(37788);r({target:"Math",stat:!0,forced:!0},{fscale:function(d,a,f,u,m){return n(t(d,a,f,u,m))}})},91069:function(v,h,e){"use strict";var r=e(79989);r({target:"Math",stat:!0,forced:!0},{iaddh:function(n,i,d,a){var f=n>>>0,u=i>>>0,m=d>>>0;return u+(a>>>0)+((f&m|(f|m)&~(f+m>>>0))>>>31)|0}})},18886:function(v,h,e){"use strict";var r=e(79989);r({target:"Math",stat:!0,forced:!0},{imulh:function(n,i){var d=65535,a=+n,f=+i,u=a&d,m=f&d,y=a>>16,C=f>>16,O=(y*m>>>0)+(u*m>>>16);return y*C+(O>>16)+((u*C>>>0)+(O&d)>>16)}})},88065:function(v,h,e){"use strict";var r=e(79989);r({target:"Math",stat:!0,forced:!0},{isubh:function(n,i,d,a){var f=n>>>0,u=i>>>0,m=d>>>0;return u-(a>>>0)-((~f&m|~(f^m)&f-m>>>0)>>>31)|0}})},68172:function(v,h,e){"use strict";var r=e(79989);r({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})},60445:function(v,h,e){"use strict";var r=e(79989),t=Math.PI/180;r({target:"Math",stat:!0,forced:!0},{radians:function(i){return i*t}})},99457:function(v,h,e){"use strict";var r=e(79989),t=e(84463);r({target:"Math",stat:!0,forced:!0},{scale:t})},613:function(v,h,e){"use strict";var r=e(79989),t=e(85027),n=e(70046),i=e(30974),d=e(27807),a=e(618),f="Seeded Random",u=f+" Generator",m='Math.seededPRNG() argument should have a "seed" field with a finite value.',y=a.set,C=a.getterFor(u),O=TypeError,g=i(function(M){y(this,{type:u,seed:M%2147483647})},f,function(){var M=C(this),S=M.seed=(M.seed*1103515245+12345)%2147483647;return d((S&1073741823)/1073741823,!1)});r({target:"Math",stat:!0,forced:!0},{seededPRNG:function(M){var S=t(M).seed;if(!n(S))throw new O(m);return new g(S)}})},835:function(v,h,e){"use strict";var r=e(79989);r({target:"Math",stat:!0,forced:!0},{signbit:function(n){var i=+n;return i===i&&i===0?1/i===-1/0:i<0}})},926:function(v,h,e){"use strict";var r=e(79989);r({target:"Math",stat:!0,forced:!0},{umulh:function(n,i){var d=65535,a=+n,f=+i,u=a&d,m=f&d,y=a>>>16,C=f>>>16,O=(y*m>>>0)+(u*m>>>16);return y*C+(O>>>16)+((u*C>>>0)+(O&d)>>>16)}})},82899:function(v,h,e){"use strict";var r=e(79989),t=e(68844),n=e(68700),i="Invalid number representation",d="Invalid radix",a=RangeError,f=SyntaxError,u=TypeError,m=parseInt,y=Math.pow,C=/^[\d.a-z]+$/,O=t("".charAt),g=t(C.exec),w=t(1 .toString),M=t("".slice),S=t("".split);r({target:"Number",stat:!0,forced:!0},{fromString:function(I,z){var P=1;if(typeof I!="string")throw new u(i);if(!I.length)throw new f(i);if(O(I,0)==="-"&&(P=-1,I=M(I,1),!I.length))throw new f(i);var b=z===void 0?10:n(z);if(b<2||b>36)throw new a(d);if(!g(C,I))throw new f(i);var R=S(I,"."),_=m(R[0],b);if(R.length>1&&(_+=m(R[1],b)/y(b,R[1].length)),b===10&&w(_,b)!==I)throw new f(i);return P*_}})},29977:function(v,h,e){"use strict";var r=e(79989),t=e(98554);r({target:"Number",stat:!0,forced:!0},{range:function(i,d,a){return new t(i,d,a,"number",0,1)}})},31927:function(v,h,e){"use strict";var r=e(79989),t=e(42351);r({target:"Object",stat:!0,forced:!0},{iterateEntries:function(i){return new t(i,"entries")}})},77131:function(v,h,e){"use strict";var r=e(79989),t=e(42351);r({target:"Object",stat:!0,forced:!0},{iterateKeys:function(i){return new t(i,"keys")}})},55174:function(v,h,e){"use strict";var r=e(79989),t=e(42351);r({target:"Object",stat:!0,forced:!0},{iterateValues:function(i){return new t(i,"values")}})},63503:function(v,h,e){"use strict";var r=e(79989),t=e(22615),n=e(67697),i=e(14241),d=e(10509),a=e(85027),f=e(767),u=e(69985),m=e(981),y=e(48999),C=e(54849),O=e(11880),g=e(6045),w=e(62148),M=e(20920),S=e(44201),E=e(618),I=S("observable"),z="Observable",P="Subscription",b="SubscriptionObserver",R=E.getterFor,_=E.set,U=R(z),A=R(P),W=R(b),K=function(re){this.observer=a(re),this.cleanup=void 0,this.subscriptionObserver=void 0};K.prototype={type:P,clean:function(){var re=this.cleanup;if(re){this.cleanup=void 0;try{re()}catch(B){M(B)}}},close:function(){if(!n){var re=this.facade,B=this.subscriptionObserver;re.closed=!0,B&&(B.closed=!0)}this.observer=void 0},isClosed:function(){return this.observer===void 0}};var j=function(re,B){var N=_(this,new K(re)),H;n||(this.closed=!1);try{(H=C(re,"start"))&&t(H,re,this)}catch(de){M(de)}if(!N.isClosed()){var L=N.subscriptionObserver=new Q(N);try{var F=B(L),G=F;m(F)||(N.cleanup=u(F.unsubscribe)?function(){G.unsubscribe()}:d(F))}catch(de){L.error(de);return}N.isClosed()&&N.clean()}};j.prototype=g({},{unsubscribe:function(){var B=A(this);B.isClosed()||(B.close(),B.clean())}}),n&&w(j.prototype,"closed",{configurable:!0,get:function(){return A(this).isClosed()}});var Q=function(re){_(this,{type:b,subscriptionState:re}),n||(this.closed=!1)};Q.prototype=g({},{next:function(B){var N=W(this).subscriptionState;if(!N.isClosed()){var H=N.observer;try{var L=C(H,"next");L&&t(L,H,B)}catch(F){M(F)}}},error:function(B){var N=W(this).subscriptionState;if(!N.isClosed()){var H=N.observer;N.close();try{var L=C(H,"error");L?t(L,H,B):M(B)}catch(F){M(F)}N.clean()}},complete:function(){var B=W(this).subscriptionState;if(!B.isClosed()){var N=B.observer;B.close();try{var H=C(N,"complete");H&&t(H,N)}catch(L){M(L)}B.clean()}}}),n&&w(Q.prototype,"closed",{configurable:!0,get:function(){return W(this).subscriptionState.isClosed()}});var ne=function(B){f(this,oe),_(this,{type:z,subscriber:d(B)})},oe=ne.prototype;g(oe,{subscribe:function(B){var N=arguments.length;return new j(u(B)?{next:B,error:N>1?arguments[1]:void 0,complete:N>2?arguments[2]:void 0}:y(B)?B:{},U(this).subscriber)}}),O(oe,I,function(){return this}),r({global:!0,constructor:!0,forced:!0},{Observable:ne}),i(z)},9818:function(v,h,e){"use strict";var r=e(79989),t=e(76058),n=e(22615),i=e(85027),d=e(19429),a=e(5185),f=e(54849),u=e(18734),m=e(44201),y=m("observable");r({target:"Observable",stat:!0,forced:!0},{from:function(O){var g=d(this)?this:t("Observable"),w=f(i(O),y);if(w){var M=i(n(w,O));return M.constructor===g?M:new g(function(E){return M.subscribe(E)})}var S=a(O);return new g(function(E){u(S,function(I,z){if(E.next(I),E.closed)return z()},{IS_ITERATOR:!0,INTERRUPTED:!0}),E.complete()})}})},76314:function(v,h,e){"use strict";e(63503),e(9818),e(38771)},38771:function(v,h,e){"use strict";var r=e(79989),t=e(76058),n=e(19429),i=t("Array");r({target:"Observable",stat:!0,forced:!0},{of:function(){for(var a=n(this)?this:t("Observable"),f=arguments.length,u=i(f),m=0;m?@[\\\\\\]^`{|}~"+i+"]","g");r({target:"RegExp",stat:!0,forced:!0},{escape:function(m){var y=n(m),C=d(y,0);return(C>47&&C<58?"\\x3":"")+a(y,f,"\\$&")}})},57282:function(v,h,e){"use strict";var r=e(79989),t=e(10029),n=e(61034).add;r({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var d=t(this),a=0,f=arguments.length;a1?arguments[1]:void 0);return i(f,function(m){if(!u(m,m,f))return!1},!0)!==!1}})},96986:function(v,h,e){"use strict";var r=e(79989),t=e(54071),n=e(10029),i=e(61034),d=e(48774),a=i.Set,f=i.add;r({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(m){var y=n(this),C=t(m,arguments.length>1?arguments[1]:void 0),O=new a;return d(y,function(g){C(g,g,y)&&f(O,g)}),O}})},95681:function(v,h,e){"use strict";var r=e(79989),t=e(54071),n=e(10029),i=e(48774);r({target:"Set",proto:!0,real:!0,forced:!0},{find:function(a){var f=n(this),u=t(a,arguments.length>1?arguments[1]:void 0),m=i(f,function(y){if(u(y,y,f))return{value:y}},!0);return m&&m.value}})},13781:function(v,h,e){"use strict";var r=e(79989),t=e(28737);r({target:"Set",stat:!0,forced:!0},{from:t})},98873:function(v,h,e){"use strict";var r=e(79989),t=e(22615),n=e(2939),i=e(72948);r({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(a){return t(i,this,n(a))}})},33442:function(v,h,e){"use strict";var r=e(79989),t=e(3689),n=e(72948),i=e(53234),d=!i("intersection")||t(function(){return Array.from(new Set([1,2,3]).intersection(new Set([3,2])))!=="3,2"});r({target:"Set",proto:!0,real:!0,forced:d},{intersection:n})},50308:function(v,h,e){"use strict";var r=e(79989),t=e(22615),n=e(2939),i=e(97795);r({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(a){return t(i,this,n(a))}})},61964:function(v,h,e){"use strict";var r=e(79989),t=e(97795),n=e(53234);r({target:"Set",proto:!0,real:!0,forced:!n("isDisjointFrom")},{isDisjointFrom:t})},18955:function(v,h,e){"use strict";var r=e(79989),t=e(22615),n=e(2939),i=e(26951);r({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(a){return t(i,this,n(a))}})},69878:function(v,h,e){"use strict";var r=e(79989),t=e(26951),n=e(53234);r({target:"Set",proto:!0,real:!0,forced:!n("isSubsetOf")},{isSubsetOf:t})},65115:function(v,h,e){"use strict";var r=e(79989),t=e(22615),n=e(2939),i=e(3894);r({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(a){return t(i,this,n(a))}})},52915:function(v,h,e){"use strict";var r=e(79989),t=e(3894),n=e(53234);r({target:"Set",proto:!0,real:!0,forced:!n("isSupersetOf")},{isSupersetOf:t})},19490:function(v,h,e){"use strict";var r=e(79989),t=e(68844),n=e(10029),i=e(48774),d=e(34327),a=t([].join),f=t([].push);r({target:"Set",proto:!0,real:!0,forced:!0},{join:function(m){var y=n(this),C=m===void 0?",":d(m),O=[];return i(y,function(g){f(O,g)}),a(O,C)}})},95752:function(v,h,e){"use strict";var r=e(79989),t=e(54071),n=e(10029),i=e(61034),d=e(48774),a=i.Set,f=i.add;r({target:"Set",proto:!0,real:!0,forced:!0},{map:function(m){var y=n(this),C=t(m,arguments.length>1?arguments[1]:void 0),O=new a;return d(y,function(g){f(O,C(g,g,y))}),O}})},32789:function(v,h,e){"use strict";var r=e(79989),t=e(1114);r({target:"Set",stat:!0,forced:!0},{of:t})},27913:function(v,h,e){"use strict";var r=e(79989),t=e(10509),n=e(10029),i=e(48774),d=TypeError;r({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(f){var u=n(this),m=arguments.length<2,y=m?void 0:arguments[1];if(t(f),i(u,function(C){m?(m=!1,y=C):y=f(y,C,C,u)}),m)throw new d("Reduce of empty set with no initial value");return y}})},6831:function(v,h,e){"use strict";var r=e(79989),t=e(54071),n=e(10029),i=e(48774);r({target:"Set",proto:!0,real:!0,forced:!0},{some:function(a){var f=n(this),u=t(a,arguments.length>1?arguments[1]:void 0);return i(f,function(m){if(u(m,m,f))return!0},!0)===!0}})},90243:function(v,h,e){"use strict";var r=e(79989),t=e(22615),n=e(2939),i=e(62289);r({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(a){return t(i,this,n(a))}})},97895:function(v,h,e){"use strict";var r=e(79989),t=e(62289),n=e(53234);r({target:"Set",proto:!0,real:!0,forced:!n("symmetricDifference")},{symmetricDifference:t})},98030:function(v,h,e){"use strict";var r=e(79989),t=e(22615),n=e(2939),i=e(75674);r({target:"Set",proto:!0,real:!0,forced:!0},{union:function(a){return t(i,this,n(a))}})},22275:function(v,h,e){"use strict";var r=e(79989),t=e(75674),n=e(53234);r({target:"Set",proto:!0,real:!0,forced:!n("union")},{union:t})},86220:function(v,h,e){"use strict";var r=e(79989),t=e(10730).charAt,n=e(74684),i=e(68700),d=e(34327);r({target:"String",proto:!0,forced:!0},{at:function(f){var u=d(n(this)),m=u.length,y=i(f),C=y>=0?y:m+y;return C<0||C>=m?void 0:t(u,C)}})},95853:function(v,h,e){"use strict";var r=e(79989),t=e(30974),n=e(27807),i=e(74684),d=e(34327),a=e(618),f=e(10730),u=f.codeAt,m=f.charAt,y="String Iterator",C=a.set,O=a.getterFor(y),g=t(function(M){C(this,{type:y,string:M,index:0})},"String",function(){var M=O(this),S=M.string,E=M.index,I;return E>=S.length?n(void 0,!0):(I=m(S,E),M.index+=I.length,n({codePoint:u(I,0),position:E},!1))});r({target:"String",proto:!0,forced:!0},{codePoints:function(){return new g(d(i(this)))}})},21917:function(v,h,e){"use strict";var r=e(79989),t=e(8195);r({target:"String",stat:!0,forced:!0},{cooked:t})},66084:function(v,h,e){"use strict";var r=e(71594),t=e(79989),n=e(98702),i=e(68844),d=e(61735),a=e(85027),f=e(90690),u=e(69985),m=e(6310),y=e(72560).f,C=e(9015),O=e(16803),g=e(8195),w=e(98985),M=e(86350),S=new O.WeakMap,E=O.get,I=O.has,z=O.set,P=Array,b=TypeError,R=Object.freeze||Object,_=Object.isFrozen,U=Math.min,A=i("".charAt),W=i("".slice),K=i("".split),j=i(/./.exec),Q=/([\n\u2028\u2029]|\r\n?)/g,ne=RegExp("^["+M+"]*"),oe=RegExp("[^"+M+"]"),re="Invalid tag",B="Invalid opening line",N="Invalid closing line",H=function(X){var ie=X.raw;if(r&&!_(ie))throw new b("Raw template should be frozen");if(I(S,ie))return E(S,ie);var pe=L(ie),ge=G(pe);return y(ge,"raw",{value:R(pe)}),R(ge),z(S,ie,ge),ge},L=function(X){var ie=f(X),pe=m(ie),ge=P(pe),Ce=P(pe),Ve=0,Ze,ke,Ne,Le;if(!pe)throw new b(re);for(;Ve0)throw new b(B);Ze[1]=""}if(we){if(Ze.length===1||j(oe,Ze[Ze.length-1]))throw new b(N);Ze[Ze.length-2]="",Ze[Ze.length-1]=""}for(var ee=2;ee1?arguments[1]:void 0);return n(this,u)},!0)},59359:function(v,h,e){"use strict";var r=e(54872),t=e(2960).filterReject,n=e(20716),i=r.aTypedArray,d=r.exportTypedArrayMethod;d("filterReject",function(f){var u=t(i(this),f,arguments.length>1?arguments[1]:void 0);return n(this,u)},!0)},76677:function(v,h,e){"use strict";var r=e(76058),t=e(52655),n=e(2231),i=e(54872),d=e(59976),a=i.aTypedArrayConstructor,f=i.exportTypedArrayStaticMethod;f("fromAsync",function(m){var y=this,C=arguments.length,O=C>1?arguments[1]:void 0,g=C>2?arguments[2]:void 0;return new(r("Promise"))(function(w){t(y),w(n(m,O,g))}).then(function(w){return d(a(y),w)})},!0)},30548:function(v,h,e){"use strict";var r=e(54872),t=e(64976),n=e(47338),i=r.aTypedArray,d=r.exportTypedArrayMethod;d("groupBy",function(f){var u=arguments.length>1?arguments[1]:void 0;return t(i(this),f,u,n)},!0)},915:function(v,h,e){"use strict";var r=e(54872),t=e(6310),n=e(9401),i=e(27578),d=e(71530),a=e(68700),f=e(3689),u=r.aTypedArray,m=r.getTypedArrayConstructor,y=r.exportTypedArrayMethod,C=Math.max,O=Math.min,g=!f(function(){var w=new Int8Array([1]),M=w.toSpliced(1,0,{valueOf:function(){return w[0]=2,3}});return M[0]!==2||M[1]!==3});y("toSpliced",function(M,S){var E=u(this),I=m(E),z=t(E),P=i(M,z),b=arguments.length,R=0,_,U,A,W,K,j,Q;if(b===0)_=U=0;else if(b===1)_=0,U=z-P;else if(U=O(C(a(S),0),z-P),_=b-2,_){W=new I(_),A=n(W);for(var ne=2;ne1?i(arguments[1]):void 0,_=m(R)==="base64"?y:C,U=R?!!R.strict:!1,A=U?b:M(b,I,"");if(A.length%4===0)S(A,-2)==="=="?A=S(A,0,-2):S(A,-1)==="="&&(A=S(A,0,-1));else if(U)throw new g("Input is not correctly padded");var W=A.length%4;switch(W){case 1:throw new g("Bad input length");case 2:A+="AA";break;case 3:A+="A"}for(var K=[],j=0,Q=A.length,ne=function(B){var N=w(A,j+B);if(!a(_,N))throw new g('Bad char in input: "'+N+'"');return _[N]<<18-6*B};j>16&255,oe>>8&255,oe&255)}var re=K.length;if(W===2){if(U&&K[re-2]!==0)throw new g(z);re-=2}else if(W===3){if(U&&K[re-1]!==0)throw new g(z);re--}return f(O,K,re)}})},91117:function(v,h,e){"use strict";var r=e(79989),t=e(19037),n=e(68844),i=e(51082),d=t.Uint8Array,a=t.SyntaxError,f=t.parseInt,u=/[^\da-f]/i,m=n(u.exec),y=n("".slice);d&&r({target:"Uint8Array",stat:!0,forced:!0},{fromHex:function(O){i(O);var g=O.length;if(g%2)throw new a("String should have an even number of characters");if(m(u,O))throw new a("String should only contain hex characters");for(var w=new d(g/2),M=0;M>6*b&63)};E+21&&!y(arguments[1])?w(arguments[1]):void 0,We=le?le.transfer:void 0,ct,Xe;We!==void 0&&(ct=new H,Xe=Qe(We,ct));var xt=Re(Fe,ct);return Xe&&ot(Xe),xt}})},98858:function(v,h,e){"use strict";var r=e(11880),t=e(68844),n=e(34327),i=e(21500),d=URLSearchParams,a=d.prototype,f=t(a.append),u=t(a.delete),m=t(a.forEach),y=t([].push),C=new d("a=1&a=2&b=3");C.delete("a",1),C.delete("b",void 0),C+""!="a=2"&&r(a,"delete",function(O){var g=arguments.length,w=g<2?void 0:arguments[1];if(g&&w===void 0)return u(this,O);var M=[];m(this,function(_,U){y(M,{key:U,value:_})}),i(g,1);for(var S=n(O),E=n(w),I=0,z=0,P=!1,b=M.length,R;It.length)&&(n=t.length);for(var i=0,d=Array(n);i=0;--de){var ae=this.tryEntries[de],X=ae.completion;if(ae.tryLoc==="root")return G("end");if(ae.tryLoc<=this.prev){var ie=a.call(ae,"catchLoc"),pe=a.call(ae,"finallyLoc");if(ie&&pe){if(this.prev=0;--G){var de=this.tryEntries[G];if(de.tryLoc<=this.prev&&a.call(de,"finallyLoc")&&this.prev=0;--F){var G=this.tryEntries[F];if(G.finallyLoc===L)return this.complete(G.completion,G.afterLoc),re(G),z}},catch:function(L){for(var F=this.tryEntries.length-1;F>=0;--F){var G=this.tryEntries[F];if(G.tryLoc===L){var de=G.completion;if(de.type==="throw"){var ae=de.arg;re(G)}return ae}}throw Error("illegal catch attempt")},delegateYield:function(L,F,G){return this.delegate={iterator:N(L),resultName:F,nextLoc:G},this.method==="next"&&(this.arg=n),z}},i}},89611:function(v,h,e){"use strict";e.d(h,{Z:function(){return r}});function r(t,n){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,d){return i.__proto__=d,i},r(t,n)}},97685:function(v,h,e){"use strict";e.d(h,{Z:function(){return d}});var r=e(83878);function t(a,f){var u=a==null?null:typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(u!=null){var m,y,C,O,g=[],w=!0,M=!1;try{if(C=(u=u.call(a)).next,f===0){if(Object(u)!==u)return;w=!1}else for(;!(w=(m=C.call(u)).done)&&(g.push(m.value),g.length!==f);w=!0);}catch(S){M=!0,y=S}finally{try{if(!w&&u.return!=null&&(O=u.return(),Object(O)!==O))return}finally{if(M)throw y}}return g}}var n=e(40181),i=e(25267);function d(a,f){return(0,r.Z)(a)||t(a,f)||(0,n.Z)(a,f)||(0,i.Z)()}},84506:function(v,h,e){"use strict";e.d(h,{Z:function(){return d}});var r=e(83878),t=e(59199),n=e(40181),i=e(25267);function d(a){return(0,r.Z)(a)||(0,t.Z)(a)||(0,n.Z)(a)||(0,i.Z)()}},74902:function(v,h,e){"use strict";e.d(h,{Z:function(){return a}});var r=e(30907);function t(f){if(Array.isArray(f))return(0,r.Z)(f)}var n=e(59199),i=e(40181);function d(){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 a(f){return t(f)||(0,n.Z)(f)||(0,i.Z)(f)||d()}},83997:function(v,h,e){"use strict";e.d(h,{Z:function(){return n}});var r=e(71002);function t(i,d){if((0,r.Z)(i)!="object"||!i)return i;var a=i[Symbol.toPrimitive];if(a!==void 0){var f=a.call(i,d||"default");if((0,r.Z)(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(i)}function n(i){var d=t(i,"string");return(0,r.Z)(d)=="symbol"?d:d+""}},71002:function(v,h,e){"use strict";e.d(h,{Z:function(){return r}});function r(t){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},r(t)}},40181:function(v,h,e){"use strict";e.d(h,{Z:function(){return t}});var r=e(30907);function t(n,i){if(n){if(typeof n=="string")return(0,r.Z)(n,i);var d={}.toString.call(n).slice(8,-1);return d==="Object"&&n.constructor&&(d=n.constructor.name),d==="Map"||d==="Set"?Array.from(n):d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?(0,r.Z)(n,i):void 0}}},58096:function(v,h,e){"use strict";e.d(h,{Z:function(){return r}});function r(){return r=Object.assign?Object.assign.bind():function(t){for(var n=1;n=0)&&(d[f]=n[f]);return d}function t(n,i){if(n==null)return{};var d=r(n,i),a,f;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);for(f=0;f=0)&&Object.prototype.propertyIsEnumerable.call(n,a)&&(d[a]=n[a])}return d}}},__webpack_module_cache__={};function __webpack_require__(v){var h=__webpack_module_cache__[v];if(h!==void 0)return h.exports;var e=__webpack_module_cache__[v]={id:v,loaded:!1,exports:{}};return __webpack_modules__[v].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(v){var h=v&&v.__esModule?function(){return v.default}:function(){return v};return __webpack_require__.d(h,{a:h}),h}}(),function(){var v=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},h;__webpack_require__.t=function(e,r){if(r&1&&(e=this(e)),r&8||typeof e=="object"&&e&&(r&4&&e.__esModule||r&16&&typeof e.then=="function"))return e;var t=Object.create(null);__webpack_require__.r(t);var n={};h=h||[null,v({}),v([]),v(v)];for(var i=r&2&&e;typeof i=="object"&&!~h.indexOf(i);i=v(i))Object.getOwnPropertyNames(i).forEach(function(d){n[d]=function(){return e[d]}});return n.default=function(){return e},__webpack_require__.d(t,n),t}}(),function(){__webpack_require__.d=function(v,h){for(var e in h)__webpack_require__.o(h,e)&&!__webpack_require__.o(v,e)&&Object.defineProperty(v,e,{enumerable:!0,get:h[e]})}}(),function(){__webpack_require__.f={},__webpack_require__.e=function(v){return Promise.all(Object.keys(__webpack_require__.f).reduce(function(h,e){return __webpack_require__.f[e](v,h),h},[]))}}(),function(){__webpack_require__.u=function(v){return""+({24:"p__system__role__index",36:"p__deviceInfo__index",37:"p__user__login__index",187:"p__recipe__index",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",460:"p__final__index",472:"p__system__user__index",558:"t__plugin-maxtabs__Layout",571:"p__404",869:"p__craftInfo__pot",988:"p__plantModel__process",990:"p__productLine__line"}[v]||v)+"."+{24:"eede85e8",36:"ff2808b7",37:"b934e735",119:"4e6a5656",187:"0f84fa24",222:"4d9ce06a",257:"4ef32e9c",262:"0233f7a0",301:"bb77edb1",390:"c53868f3",393:"e127e60f",402:"ab3fbfed",420:"8432356b",446:"dde73410",460:"b1c7fb46",472:"f6e08770",550:"26374af7",558:"b832af3b",563:"9aeac478",571:"a52587bb",635:"dbb47eab",715:"8ca32649",821:"b970c16a",865:"5becc75b",869:"925de306",988:"ae647f4d",990:"255fd01c"}[v]+".async.js"}}(),function(){__webpack_require__.miniCssF=function(v){return""+{37:"p__user__login__index",257:"p__system__module__index",301:"t__plugin-layout__Layout",402:"p__deviceProductInfo__index",472:"p__system__user__index",869:"p__craftInfo__pot"}[v]+"."+{37:"26100c69",257:"ef46db37",301:"5012e1ab",402:"835c0c6c",472:"695d982e",869:"b10f2cd8"}[v]+".chunk.css"}}(),function(){__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(v){if(typeof window=="object")return window}}()}(),function(){__webpack_require__.o=function(v,h){return Object.prototype.hasOwnProperty.call(v,h)}}(),function(){var v={},h="ant-design-pro:";__webpack_require__.l=function(e,r,t,n){if(v[e]){v[e].push(r);return}var i,d;if(t!==void 0)for(var a=document.getElementsByTagName("script"),f=0;f=0)&&(d[f]=n[f]);return d}function t(n,i){if(n==null)return{};var d=r(n,i),a,f;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);for(f=0;f=0)&&Object.prototype.propertyIsEnumerable.call(n,a)&&(d[a]=n[a])}return d}}},__webpack_module_cache__={};function __webpack_require__(v){var h=__webpack_module_cache__[v];if(h!==void 0)return h.exports;var e=__webpack_module_cache__[v]={id:v,loaded:!1,exports:{}};return __webpack_modules__[v].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(v){var h=v&&v.__esModule?function(){return v.default}:function(){return v};return __webpack_require__.d(h,{a:h}),h}}(),function(){var v=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},h;__webpack_require__.t=function(e,r){if(r&1&&(e=this(e)),r&8||typeof e=="object"&&e&&(r&4&&e.__esModule||r&16&&typeof e.then=="function"))return e;var t=Object.create(null);__webpack_require__.r(t);var n={};h=h||[null,v({}),v([]),v(v)];for(var i=r&2&&e;typeof i=="object"&&!~h.indexOf(i);i=v(i))Object.getOwnPropertyNames(i).forEach(function(d){n[d]=function(){return e[d]}});return n.default=function(){return e},__webpack_require__.d(t,n),t}}(),function(){__webpack_require__.d=function(v,h){for(var e in h)__webpack_require__.o(h,e)&&!__webpack_require__.o(v,e)&&Object.defineProperty(v,e,{enumerable:!0,get:h[e]})}}(),function(){__webpack_require__.f={},__webpack_require__.e=function(v){return Promise.all(Object.keys(__webpack_require__.f).reduce(function(h,e){return __webpack_require__.f[e](v,h),h},[]))}}(),function(){__webpack_require__.u=function(v){return""+({24:"p__system__role__index",36:"p__deviceInfo__index",37:"p__user__login__index",187:"p__recipe__index",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",460:"p__final__index",472:"p__system__user__index",558:"t__plugin-maxtabs__Layout",571:"p__404",869:"p__craftInfo__pot",988:"p__plantModel__process",990:"p__productLine__line"}[v]||v)+"."+{24:"eede85e8",36:"ff2808b7",37:"b934e735",119:"4e6a5656",187:"101f5df6",222:"4d9ce06a",257:"4ef32e9c",262:"0233f7a0",301:"bb77edb1",390:"c53868f3",393:"e127e60f",402:"ab3fbfed",420:"8432356b",446:"dde73410",460:"0c5211d3",472:"f6e08770",550:"26374af7",558:"b832af3b",563:"9aeac478",571:"a52587bb",635:"dbb47eab",715:"8ca32649",821:"b970c16a",865:"5becc75b",869:"d395d8d9",988:"ae647f4d",990:"22ddcd1b"}[v]+".async.js"}}(),function(){__webpack_require__.miniCssF=function(v){return""+{37:"p__user__login__index",257:"p__system__module__index",301:"t__plugin-layout__Layout",402:"p__deviceProductInfo__index",472:"p__system__user__index",869:"p__craftInfo__pot"}[v]+"."+{37:"26100c69",257:"ef46db37",301:"5012e1ab",402:"835c0c6c",472:"695d982e",869:"b10f2cd8"}[v]+".chunk.css"}}(),function(){__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(v){if(typeof window=="object")return window}}()}(),function(){__webpack_require__.o=function(v,h){return Object.prototype.hasOwnProperty.call(v,h)}}(),function(){var v={},h="ant-design-pro:";__webpack_require__.l=function(e,r,t,n){if(v[e]){v[e].push(r);return}var i,d;if(t!==void 0)for(var a=document.getElementsByTagName("script"),f=0;fGt.length)&&(nn=Gt.length);for(var Bn=0,An=new Array(nn);Bn0&&arguments[0]!==void 0?arguments[0]:"";return Gt.endsWith("/")?Gt:"".concat(Gt,"/")}var dr=__webpack_require__(49647),jn=__webpack_require__(58096),Or=["content"],Qr=["content"],ta=/^(http:|https:)?\/\//;function Ga(Gt){return ta.test(Gt)||Gt.startsWith("/")&&!Gt.startsWith("/*")||Gt.startsWith("./")||Gt.startsWith("../")}var Ya=function(){return an.createElement("noscript",{dangerouslySetInnerHTML:{__html:"Enable JavaScript to run this app."}})},da=function(nn){var Bn,An=nn.loaderData,Yn=nn.htmlPageOpts,Cr=nn.manifest,gr=(Cr==null||(Bn=Cr.assets)===null||Bn===void 0?void 0:Bn["umi.css"])||"";return an.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"window.__UMI_LOADER_DATA__ = ".concat(JSON.stringify(An||{}),"; window.__UMI_METADATA_LOADER_DATA__ = ").concat(JSON.stringify(Yn||{}),"; window.__UMI_BUILD_ClIENT_CSS__ = '").concat(gr,"'")}})};function ua(Gt){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof Gt=="string")return Ga(Gt)?Nn({src:Gt},nn):{content:Gt};if(dt(Gt)==="object")return Nn(Nn({},Gt),nn);throw new Error("Invalid script type: ".concat(dt(Gt)))}function Pa(Gt){return Ga(Gt)?{type:"link",href:Gt}:{type:"style",content:Gt}}var ha=function(nn){var Bn,An,Yn,Cr,gr,Nr,Rr=nn.htmlPageOpts;return an.createElement(an.Fragment,null,(Rr==null?void 0:Rr.title)&&an.createElement("title",null,Rr.title),Rr==null||(Bn=Rr.favicons)===null||Bn===void 0?void 0:Bn.map(function(kr,Gr){return an.createElement("link",{key:Gr,rel:"shortcut icon",href:kr})}),(Rr==null?void 0:Rr.description)&&an.createElement("meta",{name:"description",content:Rr.description}),(Rr==null||(An=Rr.keywords)===null||An===void 0?void 0:An.length)&&an.createElement("meta",{name:"keywords",content:Rr.keywords.join(",")}),Rr==null||(Yn=Rr.metas)===null||Yn===void 0?void 0:Yn.map(function(kr){return an.createElement("meta",{key:kr.name,name:kr.name,content:kr.content})}),Rr==null||(Cr=Rr.links)===null||Cr===void 0?void 0:Cr.map(function(kr,Gr){return an.createElement("link",(0,jn.Z)({key:Gr},kr))}),Rr==null||(gr=Rr.styles)===null||gr===void 0?void 0:gr.map(function(kr,Gr){var wa=Pa(kr),Aa=wa.type,Ta=wa.href,Jo=wa.content;if(Aa==="link")return an.createElement("link",{key:Gr,rel:"stylesheet",href:Ta});if(Aa==="style")return an.createElement("style",{key:Gr},Jo)}),Rr==null||(Nr=Rr.headScripts)===null||Nr===void 0?void 0:Nr.map(function(kr,Gr){var wa=ua(kr),Aa=wa.content,Ta=(0,dr.Z)(wa,Or);return an.createElement("script",(0,jn.Z)({dangerouslySetInnerHTML:{__html:Aa},key:Gr,crossOrigin:"anonymous"},Ta))}))};function Ba(Gt){var nn,Bn=Gt.children,An=Gt.loaderData,Yn=Gt.manifest,Cr=Gt.htmlPageOpts,gr=Gt.__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Nr=Gt.mountElementId;if(gr!=null&&gr.pureHtml)return an.createElement("html",null,an.createElement("head",null),an.createElement("body",null,an.createElement(Ya,null),an.createElement("div",{id:Nr},Bn),an.createElement(da,{manifest:Yn,loaderData:An,htmlPageOpts:Cr})));if(gr!=null&&gr.pureApp)return an.createElement(an.Fragment,null,Bn);var Rr=typeof window=="undefined"?Yn==null?void 0:Yn.assets["umi.css"]:window.__UMI_BUILD_ClIENT_CSS__;return an.createElement("html",{suppressHydrationWarning:!0,lang:(Cr==null?void 0:Cr.lang)||"en"},an.createElement("head",null,an.createElement("meta",{charSet:"utf-8"}),an.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),Rr&&an.createElement("link",{suppressHydrationWarning:!0,rel:"stylesheet",href:Rr}),an.createElement(ha,{htmlPageOpts:Cr})),an.createElement("body",null,an.createElement(Ya,null),an.createElement("div",{id:Nr},Bn),an.createElement(da,{manifest:Yn,loaderData:An,htmlPageOpts:Cr}),Cr==null||(nn=Cr.scripts)===null||nn===void 0?void 0:nn.map(function(kr,Gr){var wa=ua(kr),Aa=wa.content,Ta=(0,dr.Z)(wa,Qr);return an.createElement("script",(0,jn.Z)({dangerouslySetInnerHTML:{__html:Aa},key:Gr,crossOrigin:"anonymous"},Ta))})))}var Da=an.createContext(void 0);function Fa(){return an.useContext(Da)}var Za=["redirect"];function co(Gt){var nn=Gt.routesById,Bn=Gt.parentId,An=Gt.routeComponents;return Object.keys(nn).filter(function(Yn){return nn[Yn].parentId===Bn}).map(function(Yn){var Cr=xa(Nn({route:nn[Yn],routeComponent:An[Yn],loadingComponent:Gt.loadingComponent,reactRouter5Compat:Gt.reactRouter5Compat},Gt.reactRouter5Compat&&{hasChildren:Object.keys(nn).filter(function(Nr){return nn[Nr].parentId===Yn}).length>0})),gr=co({routesById:nn,routeComponents:An,parentId:Cr.id,loadingComponent:Gt.loadingComponent,reactRouter5Compat:Gt.reactRouter5Compat});return gr.length>0&&(Cr.children=gr,Cr.routes=gr),Cr})}function $a(Gt){var nn=(0,sr.UO)(),Bn=(0,sr.Gn)(Gt.to,nn),An=(0,Hr.T$)(),Yn=(0,sr.TH)();if(An!=null&&An.keepQuery){var Cr=Yn.search+Yn.hash;Bn+=Cr}var gr=Nn(Nn({},Gt),{},{to:Bn});return an.createElement(sr.Fg,(0,jn.Z)({replace:!0},gr))}function xa(Gt){var nn=Gt.route,Bn=nn.redirect,An=(0,dr.Z)(nn,Za),Yn=Gt.reactRouter5Compat?ji:o1;return Nn({element:Bn?an.createElement($a,{to:Bn}):an.createElement(Da.Provider,{value:{route:Gt.route}},an.createElement(Yn,{loader:an.memo(Gt.routeComponent),loadingComponent:Gt.loadingComponent||_a,hasChildren:Gt.hasChildren}))},An)}function _a(){return an.createElement("div",null)}function ji(Gt){var nn=Fa(),Bn=nn.route,An=(0,Hr.Ov)(),Yn=An.history,Cr=An.clientRoutes,gr=(0,sr.UO)(),Nr={params:gr,isExact:!0,path:Bn.path,url:Yn.location.pathname},Rr=Gt.loader;return an.createElement(an.Suspense,{fallback:an.createElement(Gt.loadingComponent,null)},an.createElement(Rr,{location:Yn.location,match:Nr,history:Yn,params:gr,route:Bn,routes:Cr},Gt.hasChildren&&an.createElement(sr.j3,null)))}function o1(Gt){var nn=Gt.loader;return an.createElement(an.Suspense,{fallback:an.createElement(Gt.loadingComponent,null)},an.createElement(nn,null))}var Ui=null;function Ei(){return Ui}function i1(Gt){var nn=Gt.history,Bn=an.useState({action:nn.action,location:nn.location}),An=hr(Bn,2),Yn=An[0],Cr=An[1];return(0,an.useLayoutEffect)(function(){return nn.listen(Cr)},[nn]),(0,an.useLayoutEffect)(function(){function gr(Nr){Gt.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:Gt.routes,clientRoutes:Gt.clientRoutes,location:Nr.location,action:Nr.action,basename:Gt.basename,isFirst:!!Nr.isFirst}})}return gr({location:Yn.location,action:Yn.action,isFirst:!0}),nn.listen(gr)},[nn,Gt.routes,Gt.clientRoutes]),an.createElement(sr.F0,{navigator:nn,location:Yn.location,basename:Gt.basename},Gt.children)}function gl(){var Gt=(0,Hr.Ov)(),nn=Gt.clientRoutes;return(0,sr.V$)(nn)}var pl=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],ia=function(nn,Bn){var An=nn.basename||"/",Yn=co({routesById:nn.routes,routeComponents:nn.routeComponents,loadingComponent:nn.loadingComponent,reactRouter5Compat:nn.reactRouter5Compat});nn.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:Yn}});for(var Cr=an.createElement(i1,{basename:An,pluginManager:nn.pluginManager,routes:nn.routes,clientRoutes:Yn,history:nn.history},Bn),gr=0,Nr=pl;gr0&&arguments[0]!==void 0?arguments[0]:"";return Gt.endsWith("/")?Gt:"".concat(Gt,"/")}var dr=__webpack_require__(49647),jn=__webpack_require__(58096),Or=["content"],Qr=["content"],ta=/^(http:|https:)?\/\//;function Ga(Gt){return ta.test(Gt)||Gt.startsWith("/")&&!Gt.startsWith("/*")||Gt.startsWith("./")||Gt.startsWith("../")}var Ya=function(){return an.createElement("noscript",{dangerouslySetInnerHTML:{__html:"Enable JavaScript to run this app."}})},da=function(nn){var Bn,An=nn.loaderData,Yn=nn.htmlPageOpts,Cr=nn.manifest,gr=(Cr==null||(Bn=Cr.assets)===null||Bn===void 0?void 0:Bn["umi.css"])||"";return an.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"window.__UMI_LOADER_DATA__ = ".concat(JSON.stringify(An||{}),"; window.__UMI_METADATA_LOADER_DATA__ = ").concat(JSON.stringify(Yn||{}),"; window.__UMI_BUILD_ClIENT_CSS__ = '").concat(gr,"'")}})};function ua(Gt){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof Gt=="string")return Ga(Gt)?Nn({src:Gt},nn):{content:Gt};if(dt(Gt)==="object")return Nn(Nn({},Gt),nn);throw new Error("Invalid script type: ".concat(dt(Gt)))}function Pa(Gt){return Ga(Gt)?{type:"link",href:Gt}:{type:"style",content:Gt}}var ha=function(nn){var Bn,An,Yn,Cr,gr,Nr,Rr=nn.htmlPageOpts;return an.createElement(an.Fragment,null,(Rr==null?void 0:Rr.title)&&an.createElement("title",null,Rr.title),Rr==null||(Bn=Rr.favicons)===null||Bn===void 0?void 0:Bn.map(function(kr,Gr){return an.createElement("link",{key:Gr,rel:"shortcut icon",href:kr})}),(Rr==null?void 0:Rr.description)&&an.createElement("meta",{name:"description",content:Rr.description}),(Rr==null||(An=Rr.keywords)===null||An===void 0?void 0:An.length)&&an.createElement("meta",{name:"keywords",content:Rr.keywords.join(",")}),Rr==null||(Yn=Rr.metas)===null||Yn===void 0?void 0:Yn.map(function(kr){return an.createElement("meta",{key:kr.name,name:kr.name,content:kr.content})}),Rr==null||(Cr=Rr.links)===null||Cr===void 0?void 0:Cr.map(function(kr,Gr){return an.createElement("link",(0,jn.Z)({key:Gr},kr))}),Rr==null||(gr=Rr.styles)===null||gr===void 0?void 0:gr.map(function(kr,Gr){var wa=Pa(kr),Aa=wa.type,Ta=wa.href,Jo=wa.content;if(Aa==="link")return an.createElement("link",{key:Gr,rel:"stylesheet",href:Ta});if(Aa==="style")return an.createElement("style",{key:Gr},Jo)}),Rr==null||(Nr=Rr.headScripts)===null||Nr===void 0?void 0:Nr.map(function(kr,Gr){var wa=ua(kr),Aa=wa.content,Ta=(0,dr.Z)(wa,Or);return an.createElement("script",(0,jn.Z)({dangerouslySetInnerHTML:{__html:Aa},key:Gr,crossOrigin:"anonymous"},Ta))}))};function Ba(Gt){var nn,Bn=Gt.children,An=Gt.loaderData,Yn=Gt.manifest,Cr=Gt.htmlPageOpts,gr=Gt.__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Nr=Gt.mountElementId;if(gr!=null&&gr.pureHtml)return an.createElement("html",null,an.createElement("head",null),an.createElement("body",null,an.createElement(Ya,null),an.createElement("div",{id:Nr},Bn),an.createElement(da,{manifest:Yn,loaderData:An,htmlPageOpts:Cr})));if(gr!=null&&gr.pureApp)return an.createElement(an.Fragment,null,Bn);var Rr=typeof window=="undefined"?Yn==null?void 0:Yn.assets["umi.css"]:window.__UMI_BUILD_ClIENT_CSS__;return an.createElement("html",{suppressHydrationWarning:!0,lang:(Cr==null?void 0:Cr.lang)||"en"},an.createElement("head",null,an.createElement("meta",{charSet:"utf-8"}),an.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),Rr&&an.createElement("link",{suppressHydrationWarning:!0,rel:"stylesheet",href:Rr}),an.createElement(ha,{htmlPageOpts:Cr})),an.createElement("body",null,an.createElement(Ya,null),an.createElement("div",{id:Nr},Bn),an.createElement(da,{manifest:Yn,loaderData:An,htmlPageOpts:Cr}),Cr==null||(nn=Cr.scripts)===null||nn===void 0?void 0:nn.map(function(kr,Gr){var wa=ua(kr),Aa=wa.content,Ta=(0,dr.Z)(wa,Qr);return an.createElement("script",(0,jn.Z)({dangerouslySetInnerHTML:{__html:Aa},key:Gr,crossOrigin:"anonymous"},Ta))})))}var Da=an.createContext(void 0);function Fa(){return an.useContext(Da)}var Za=["redirect"];function co(Gt){var nn=Gt.routesById,Bn=Gt.parentId,An=Gt.routeComponents;return Object.keys(nn).filter(function(Yn){return nn[Yn].parentId===Bn}).map(function(Yn){var Cr=xa(Nn({route:nn[Yn],routeComponent:An[Yn],loadingComponent:Gt.loadingComponent,reactRouter5Compat:Gt.reactRouter5Compat},Gt.reactRouter5Compat&&{hasChildren:Object.keys(nn).filter(function(Nr){return nn[Nr].parentId===Yn}).length>0})),gr=co({routesById:nn,routeComponents:An,parentId:Cr.id,loadingComponent:Gt.loadingComponent,reactRouter5Compat:Gt.reactRouter5Compat});return gr.length>0&&(Cr.children=gr,Cr.routes=gr),Cr})}function $a(Gt){var nn=(0,sr.UO)(),Bn=(0,sr.Gn)(Gt.to,nn),An=(0,Hr.T$)(),Yn=(0,sr.TH)();if(An!=null&&An.keepQuery){var Cr=Yn.search+Yn.hash;Bn+=Cr}var gr=Nn(Nn({},Gt),{},{to:Bn});return an.createElement(sr.Fg,(0,jn.Z)({replace:!0},gr))}function xa(Gt){var nn=Gt.route,Bn=nn.redirect,An=(0,dr.Z)(nn,Za),Yn=Gt.reactRouter5Compat?ji:o1;return Nn({element:Bn?an.createElement($a,{to:Bn}):an.createElement(Da.Provider,{value:{route:Gt.route}},an.createElement(Yn,{loader:an.memo(Gt.routeComponent),loadingComponent:Gt.loadingComponent||_a,hasChildren:Gt.hasChildren}))},An)}function _a(){return an.createElement("div",null)}function ji(Gt){var nn=Fa(),Bn=nn.route,An=(0,Hr.Ov)(),Yn=An.history,Cr=An.clientRoutes,gr=(0,sr.UO)(),Nr={params:gr,isExact:!0,path:Bn.path,url:Yn.location.pathname},Rr=Gt.loader;return an.createElement(an.Suspense,{fallback:an.createElement(Gt.loadingComponent,null)},an.createElement(Rr,{location:Yn.location,match:Nr,history:Yn,params:gr,route:Bn,routes:Cr},Gt.hasChildren&&an.createElement(sr.j3,null)))}function o1(Gt){var nn=Gt.loader;return an.createElement(an.Suspense,{fallback:an.createElement(Gt.loadingComponent,null)},an.createElement(nn,null))}var Ui=null;function Ei(){return Ui}function i1(Gt){var nn=Gt.history,Bn=an.useState({action:nn.action,location:nn.location}),An=hr(Bn,2),Yn=An[0],Cr=An[1];return(0,an.useLayoutEffect)(function(){return nn.listen(Cr)},[nn]),(0,an.useLayoutEffect)(function(){function gr(Nr){Gt.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:Gt.routes,clientRoutes:Gt.clientRoutes,location:Nr.location,action:Nr.action,basename:Gt.basename,isFirst:!!Nr.isFirst}})}return gr({location:Yn.location,action:Yn.action,isFirst:!0}),nn.listen(gr)},[nn,Gt.routes,Gt.clientRoutes]),an.createElement(sr.F0,{navigator:nn,location:Yn.location,basename:Gt.basename},Gt.children)}function gl(){var Gt=(0,Hr.Ov)(),nn=Gt.clientRoutes;return(0,sr.V$)(nn)}var pl=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],ia=function(nn,Bn){var An=nn.basename||"/",Yn=co({routesById:nn.routes,routeComponents:nn.routeComponents,loadingComponent:nn.loadingComponent,reactRouter5Compat:nn.reactRouter5Compat});nn.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:Yn}});for(var Cr=an.createElement(i1,{basename:An,pluginManager:nn.pluginManager,routes:nn.routes,clientRoutes:Yn,history:nn.history},Bn),gr=0,Nr=pl;gr { const [flowOpen, setFlowOpen] = useState(false) const [flowItemOpen, setFlowItemOpen] = useState(false) + const [deviceOpen, setDeviceOpen] = useState(false) + + const [selectProcess,setSelectProcess] =useState(0) + const columns: ProColumns[] = [ { title: '主键', @@ -108,7 +113,7 @@ export default () => { 配置工艺流程 { - // setFlowOpen(true) + // setDeviceOpen(true) // setStepparams({ lineId: row.id }) }} key={+new Date() + Math.random()} target="_blank" rel="noopener noreferrer"> 配置设备 @@ -159,15 +164,22 @@ export default () => { const [node, setNode] = useState(null); const sortActionRef = useRef(); const [proList, setProList] = useState([]); + const [deviceList, setDeviceList] = useState([]); const [form] = Form.useForm(); + const processIdFlag = Form.useWatch('processId', form); useEffect(() => { - processAPI.Selectlist().then((v: MyResponse.Content) => { + processAPI.List({name:''}).then((v: MyResponse.Content) => { if (v.statusCode === 200) { - console.log('v.data', v.data); + console.log('processAPI.List', v.data); setProList(v.data) } }) - + deviceAPI.selectlist().then((v: MyResponse.Content) => { + if (v.statusCode === 200) { + console.log('v.data', v.data); + setDeviceList(v.data) + } + }) }, []) @@ -310,7 +322,7 @@ export default () => { align: 'center', hideInSearch: true, render(dom, entity, index, action, schema) { - return <>{proList.find((x) => x.key == entity.processId)?.value} + return <>{proList.find((x) => x.id == entity.processId)?.name} }, }, { @@ -483,9 +495,69 @@ export default () => { - { + // console.log(proList.find(x=>x.id==v)?.processType); + // setSelectProcess(v.processType) + + + }} placeholder='请选择工艺' style={{ width: 375 }}> + { + proList.map((item: processType.output) => { + return + {item.name} + + }) + } + + + {proList.find(x=>x.id==processIdFlag)?.processType} + {proList.find(x=>x.id==processIdFlag)?.processType===0?processIdFlag: + + {(fields, { add, remove }) => ( + <> + {fields.map(({ key, name, ...restField }) => ( + + + {() => ( + + + + )} + + + ))} + + + + + )} + +} + {/* {proList.find(x=>x.id==intranetFlag)?.processType===0 ?"": + - + } */} + + + + {/* + 工艺 + */} + + + + + ); }; \ No newline at end of file