"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[819],{97439:function(K,x,o){o.d(x,{MS:function(){return k},fF:function(){return m},fm:function(){return B},i0:function(){return c},wG:function(){return W}});var O=o(15009),p=o.n(O),Z=o(97857),b=o.n(Z),I=o(99289),E=o.n(I),M=o(17788),R=o(2453),d=o(85893),g=M.Z.confirm;function c(r,n,t){g({title:r,content:n,onOk:function(){t()},onCancel:function(){}})}function B(r,n,t,u,s){g({className:"del-confirm",title:s||"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u6761\u6570\u636E?",content:n||"\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01",okText:t||"\u5220\u9664",cancelText:u||"\u53D6\u6D88",okType:"default",icon:(0,d.jsx)("div",{className:"del-icon",children:"?"}),footer:function(e){return[e.props.children[0],e.props.children[1]]},onOk:function(){r()},onCancel:function(){}})}function k(r,n,t,u,s){g({title:s||"\u63D0\u793A",content:n||"\u786E\u8BA4\u5220\u9664\u6240\u9009\u4FE1\u606F\u5417?",okText:t||"\u786E\u8BA4",cancelText:u||"\u5173\u95ED",onOk:function(){r()},onCancel:function(){}})}function _(r,n){return F.apply(this,arguments)}function F(){return F=_asyncToGenerator(_regeneratorRuntime().mark(function r(n,t){var u,s;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(t);case 2:return u=e.sent,s=(u.data.records||u.data).map(function(i){return _objectSpread({label:i.phone,value:i.uid||i.id||i.roleId},i)}),e.abrupt("return",s);case 5:case"end":return e.stop()}},r)})),F.apply(this,arguments)}function $(r,n){return j.apply(this,arguments)}function j(){return j=_asyncToGenerator(_regeneratorRuntime().mark(function r(n,t){var u,s;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(t);case 2:return u=e.sent,s=u.data.map(function(i){return _objectSpread({label:i.dictLabel,value:i.dictCode},i)}),e.abrupt("return",s);case 5:case"end":return e.stop()}},r)})),j.apply(this,arguments)}function a(r,n){return C.apply(this,arguments)}function C(){return C=_asyncToGenerator(_regeneratorRuntime().mark(function r(n,t){var u,s;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(t);case 2:return u=e.sent,s=u.data.map(function(i){return _objectSpread({label:i.equipmentName,value:i.id},i)}),e.abrupt("return",s);case 5:case"end":return e.stop()}},r)})),C.apply(this,arguments)}function L(r){return{list:r.records||[],pagination:{total:r.total||0,pageSize:r.size||10,current:r.current||0}}}function A(r,n){return f.apply(this,arguments)}function f(){return f=_asyncToGenerator(_regeneratorRuntime().mark(function r(n,t){var u,s;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(t);case 2:return u=e.sent,s=Promise.resolve(_objectSpread({},u.data)),e.abrupt("return",s);case 5:case"end":return e.stop()}},r)})),f.apply(this,arguments)}function v(r,n){return D.apply(this,arguments)}function D(){return D=_asyncToGenerator(_regeneratorRuntime().mark(function r(n,t){var u,s;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(t);case 2:return u=e.sent,u.data.parkingDuration=u.data.parkingDuration||"0 \u5206\u949F",s=Promise.resolve(_objectSpread({},u.data)),e.abrupt("return",s);case 6:case"end":return e.stop()}},r)})),D.apply(this,arguments)}function m(r,n){return S.apply(this,arguments)}function S(){return S=E()(p()().mark(function r(n,t){var u,s;return p()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.pageNum=t.current||1,t.pageSize=t.pageSize||10,delete t.current,e.next=5,n(t);case 5:return u=e.sent,s=Promise.resolve({data:u.data.records||[],total:u.data.total||0,success:!0,pageSize:u.data.size||10,pageCurr:u.data.pages||0}),e.abrupt("return",s);case 8:case"end":return e.stop()}},r)})),S.apply(this,arguments)}function h(r,n){return T.apply(this,arguments)}function T(){return T=_asyncToGenerator(_regeneratorRuntime().mark(function r(n,t){var u,s;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(t);case 2:return u=e.sent,s=Promise.resolve({data:u||[],success:!0}),e.abrupt("return",s);case 5:case"end":return e.stop()}},r)})),T.apply(this,arguments)}function G(r,n){return w.apply(this,arguments)}function w(){return w=_asyncToGenerator(_regeneratorRuntime().mark(function r(n,t){var u,s;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(t);case 2:return u=e.sent,s=Promise.resolve({data:u||[],success:!0}),e.abrupt("return",s);case 5:case"end":return e.stop()}},r)})),w.apply(this,arguments)}function V(r,n){n&&typeof n=="function"&&r&&n(r)}function W(r,n){return y.apply(this,arguments)}function y(){return y=E()(p()().mark(function r(n,t){var u,s,l;return p()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return u=R.ZP.loading("\u6B63\u5728\u8BF7\u6C42\u4E2D"),i.prev=1,s=t instanceof Object?b()({},t):t,i.next=5,n(s);case 5:if(l=i.sent,u(),l.code!="200"){i.next=12;break}return R.ZP.success("\u64CD\u4F5C\u6210\u529F"),i.abrupt("return",!0);case 12:if(l.code!="602"){i.next=16;break}return i.abrupt("return",l);case 16:return i.abrupt("return",!1);case 17:i.next=23;break;case 19:return i.prev=19,i.t0=i.catch(1),u(),i.abrupt("return",!1);case 23:case"end":return i.stop()}},r,null,[[1,19]])})),y.apply(this,arguments)}function H(r){var n=document.createElement("a");n.style.display="none",n.href=r,document.body.appendChild(n),n.click(),document.body.removeChild(n)}function z(r){return P.apply(this,arguments)}function P(){return P=_asyncToGenerator(_regeneratorRuntime().mark(function r(n){var t,u,s;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=document.createElement("form"),t.style.display="none",t.action="".concat(api,"tCmPaymentOrd/export"),t.method="POST",document.body.appendChild(t);for(u in n)s=document.createElement("input"),s.type="hidden",s.name=u,s.value=n[u],t.appendChild(s);t.submit(),t.remove();case 8:case"end":return e.stop()}},r)})),P.apply(this,arguments)}var U={size:10,current:1}},83331:function(K,x,o){o.r(x),o.d(x,{default:function(){return L}});var O=o(15009),p=o.n(O),Z=o(99289),b=o.n(Z),I=o(5574),E=o.n(I),M=o(97439),R=o(90930),d=o(53025),g=o(4393),c=o(37804),B=o(78957),k=o(83622),_=o(67294),F=o(94272),$=function(){var A=b()(p()().mark(function f(v){return p()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",(0,F.request)("/api/huacheng-sangeshenbian/workOrderItemConfig/getWorkOrderItemConfigInfo",{method:"GET",params:v}));case 1:case"end":return m.stop()}},f)}));return function(v){return A.apply(this,arguments)}}(),j=function(){var A=b()(p()().mark(function f(v){return p()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",(0,F.request)("/api/huacheng-sangeshenbian/workOrderItemConfig/addWorkOrderItemConfig",{method:"POST",data:v}));case 1:case"end":return m.stop()}},f)}));return function(v){return A.apply(this,arguments)}}(),a=o(85893),C=function(){var f=(0,_.useRef)(),v=(0,_.useRef)(),D=(0,_.useRef)(),m=d.Z.useForm(),S=E()(m,1),h=S[0],T=(0,_.useState)("1"),G=E()(T,2),w=G[0],V=G[1],W=(0,_.useState)([]),y=E()(W,2),H=y[0],z=y[1],P=(0,F.useAccess)();(0,_.useEffect)(function(){$().then(function(r){r.code===200&&(z(r.data),h.setFieldsValue(r.data))})},[]);var U=function(){h.validateFields().then(function(){var n=b()(p()().mark(function t(u){return p()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:u.id=1,(0,M.wG)(j,u).then(function(e){e.code});case 2:case"end":return l.stop()}},t)}));return function(t){return n.apply(this,arguments)}}())};return(0,a.jsx)("div",{children:(0,a.jsx)(R._z,{header:{title:"\u8BC9\u6C42\u4E8B\u9879\u914D\u7F6E",breadcrumb:{}},children:(0,a.jsx)(g.Z,{children:(0,a.jsxs)(d.Z,{scrollToFirstError:!0,form:h,children:[(0,a.jsxs)(g.Z,{children:[(0,a.jsxs)("div",{style:{marginBottom:20},children:[(0,a.jsx)("span",{style:{fontSize:"14px",fontWeight:600},children:"*\u8BC9\u6C42\u5904\u7406\u65F6\u95F4\uFF1A"}),(0,a.jsx)("span",{style:{marginLeft:8,color:"#a5a5a5"},children:"\u8D85\u8FC7\u65F6\u95F4\u672A\u5904\u7406\u8BC9\u6C42\uFF0C\u7CFB\u7EDF\u81EA\u52A8\u5BF9\u8BE5\u4E8B\u4EF6\u627F\u529E\u8005\u53D1\u9001\u77ED\u4FE1\u63D0\u9192\uFF0C\u5E76\u77E5\u4F1A\u81F3\u4E0A\u4E00\u7EA7\u7BA1\u7406\u5C42\u8FDB\u884C\u7763\u529E\u3002"})]}),(0,a.jsx)(d.Z.Item,{label:"\u6DFB\u52A0\u540E\u5904\u7406\u65F6\u95F4",name:"demandProcessingTime",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6DFB\u52A0\u540E\u5904\u7406\u65F6\u95F4"}],children:(0,a.jsx)(c.Z,{precision:0,min:0,addonAfter:"\u5929\u5185",controls:!1})})]}),(0,a.jsxs)(g.Z,{children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{style:{fontSize:"14px",fontWeight:600},children:"*\u65F6\u9650\u4E34\u671F\u63D0\u9192\u914D\u7F6E\uFF1A"}),(0,a.jsx)("span",{style:{marginLeft:8,color:"#a5a5a5"},children:"\u5F53\u4E8B\u4EF6\u5904\u7406\u65F6\u9650\u5373\u5C06\u5230\u8FBE\u65F6\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u901A\u8FC7\u5FAE\u4FE1\u6D88\u606F\u4EE5\u53CA\u77ED\u4FE1\u7684\u65B9\u5F0F\u63D0\u9192\u5355\u4F4D\u7BA1\u7406\u5458\u3002"})]}),(0,a.jsxs)(B.Z,{style:{marginTop:20,display:"flex",flexWrap:"wrap"},children:[(0,a.jsx)(d.Z.Item,{label:"\u5E02\u7EA7\u8D26\u53F7",name:"cityDeadlineReminder",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E02\u7EA7\u8D26\u53F7"}],children:(0,a.jsx)(c.Z,{precision:0,max:h.getFieldValue("demandProcessingTime"),min:0,addonAfter:"\u5929\u524D",controls:!1})}),(0,a.jsx)(d.Z.Item,{label:"\u533A\u53BF\u8D26\u53F7",name:"districtDeadlineReminder",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u533A\u53BF\u8D26\u53F7"}],children:(0,a.jsx)(c.Z,{precision:0,max:h.getFieldValue("demandProcessingTime"),min:0,addonAfter:"\u5929\u524D",controls:!1})}),(0,a.jsx)(d.Z.Item,{label:"\u8857\u9053\u8D26\u53F7",name:"streetDeadlineReminder",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8857\u9053\u8D26\u53F7"}],children:(0,a.jsx)(c.Z,{precision:0,max:h.getFieldValue("demandProcessingTime"),min:0,addonAfter:"\u5929\u524D",controls:!1})}),(0,a.jsx)(d.Z.Item,{label:"\u793E\u533A\u8D26\u53F7",name:"communityDeadlineReminder",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u793E\u533A\u8D26\u53F7"}],children:(0,a.jsx)(c.Z,{precision:0,max:h.getFieldValue("demandProcessingTime"),min:0,addonAfter:"\u5929\u524D",controls:!1})}),(0,a.jsx)(d.Z.Item,{label:"\u515A\u5458\u8D26\u53F7",name:"partyMemberDeadlineReminder",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u515A\u5458\u8D26\u53F7"}],children:(0,a.jsx)(c.Z,{precision:0,max:h.getFieldValue("demandProcessingTime"),min:0,addonAfter:"\u5929\u524D",controls:!1})})]})]}),(0,a.jsxs)(g.Z,{children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{style:{fontSize:"14px",fontWeight:600},children:"*\u8BC9\u6C42\u5904\u7406\u65F6\u95F4\u914D\u7F6E\uFF1A"}),(0,a.jsx)("span",{style:{marginLeft:8,color:"#a5a5a5"},children:"\u8D85\u8FC7\u65F6\u95F4\u672A\u5904\u7406\u8BC9\u6C42\uFF0C\u7CFB\u7EDF\u81EA\u52A8\u5BF9\u8BE5\u4E8B\u4EF6\u627F\u529E\u8005\u53D1\u9001\u77ED\u4FE1\u63D0\u9192\uFF0C\u5E76\u77E5\u4F1A\u81F3\u4E0A\u4E00\u7EA7\u7BA1\u7406\u5C42\u8FDB\u884C\u7763\u529E\u3002"})]}),(0,a.jsxs)(B.Z,{style:{marginTop:20,display:"flex",flexWrap:"wrap"},children:[(0,a.jsx)(d.Z.Item,{label:"\u5E02\u7EA7\u8D26\u53F7",name:"cityHandlingTime",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E02\u7EA7\u8D26\u53F7"}],children:(0,a.jsx)(c.Z,{controls:!1,precision:0,min:0,addonAfter:"\u5929\u5185"})}),(0,a.jsx)(d.Z.Item,{label:"\u533A\u53BF\u8D26\u53F7",name:"districtHandlingTime",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u533A\u53BF\u8D26\u53F7"}],children:(0,a.jsx)(c.Z,{precision:0,min:0,addonAfter:"\u5929\u5185",controls:!1})}),(0,a.jsx)(d.Z.Item,{label:"\u8857\u9053\u8D26\u53F7",name:"streetHandlingTime",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8857\u9053\u8D26\u53F7"}],children:(0,a.jsx)(c.Z,{precision:0,min:0,addonAfter:"\u5929\u5185",controls:!1})}),(0,a.jsx)(d.Z.Item,{label:"\u793E\u533A\u8D26\u53F7",name:"communityHandlingTime",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u793E\u533A\u8D26\u53F7"}],children:(0,a.jsx)(c.Z,{precision:0,min:0,addonAfter:"\u5929\u5185",controls:!1})}),(0,a.jsx)(d.Z.Item,{label:"\u515A\u5458\u8D26\u53F7",name:"partyMemberHandlingTime",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u515A\u5458\u8D26\u53F7"}],children:(0,a.jsx)(c.Z,{precision:0,min:0,addonAfter:"\u5929\u5185",controls:!1})})]})]}),(0,a.jsx)(F.Access,{accessible:P["/work_order_transaction_management/work_order_item_configuration/save"],children:(0,a.jsx)("div",{style:{marginTop:20,display:"flex",justifyContent:"center"},children:(0,a.jsx)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:20},onClick:function(){U()},children:"\u4FDD\u5B58"})})})]})})})})},L=C}}]);
|