包含后厨 团餐 门店分支
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2 lines
17 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4424],{58211:function(Ge,le,n){"use strict";n.r(le),n.d(le,{default:function(){return we}});var Ye=n(71194),ie=n(50146),k=n(11849),Oe=n(57663),M=n(71577),ke=n(62350),fe=n(24565),Me=n(12968),pe=n(92726),i=n(39428),Q=n(3182),ze=n(43185),W=n(93349),He=n(34792),h=n(48086),Ve=n(9715),x=n(55843),S=n(2824),B=n(67294),me=n(28790),Ee=n(85224),oe=n(49101),Qe=n(16894),We=n(77883),ye=n(21888),Xe=n(47673),de=n(4107),qe=n(43358),z=n(34041),F=n(48971),P=n(96690);function Ce(v){return X.apply(this,arguments)}function X(){return X=(0,Q.Z)((0,i.Z)().mark(function v(s){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,F.WY)((0,P.w)()+"/api/devicevesion/page",{method:"POST",data:s}));case 1:case"end":return u.stop()}},v)})),X.apply(this,arguments)}function Ze(v){return q.apply(this,arguments)}function q(){return q=(0,Q.Z)((0,i.Z)().mark(function v(s){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,F.WY)((0,P.w)()+"/api/devicevesion/add",{method:"POST",data:s}));case 1:case"end":return u.stop()}},v)})),q.apply(this,arguments)}function ce(v){return $.apply(this,arguments)}function $(){return $=(0,Q.Z)((0,i.Z)().mark(function v(s){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,F.WY)((0,P.w)()+"\u200B/api/devicevesion/delete",{method:"POST",data:s}));case 1:case"end":return u.stop()}},v)})),$.apply(this,arguments)}function Be(v){return _.apply(this,arguments)}function _(){return _=(0,Q.Z)((0,i.Z)().mark(function v(s){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,F.WY)((0,P.w)()+"\u200B/api/devicevesion/update",{method:"POST",data:s}));case 1:case"end":return u.stop()}},v)})),_.apply(this,arguments)}function $e(v){return ee.apply(this,arguments)}function ee(){return ee=_asyncToGenerator(_regeneratorRuntime().mark(function v(s){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request(getDataBaseUrl()+"\u200B/api/devicevesion/updatestatus",{method:"POST",data:s}));case 1:case"end":return u.stop()}},v)})),ee.apply(this,arguments)}function Se(){return ae.apply(this,arguments)}function ae(){return ae=(0,Q.Z)((0,i.Z)().mark(function v(){return(0,i.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",(0,F.WY)((0,P.w)()+"/api/product/list",{method:"Get"}));case 1:case"end":return E.stop()}},v)})),ae.apply(this,arguments)}function Ae(v){return te.apply(this,arguments)}function te(){return te=(0,Q.Z)((0,i.Z)().mark(function v(s){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,F.WY)((0,P.w)()+"/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:s}));case 1:case"end":return u.stop()}},v)})),te.apply(this,arguments)}var Ie=n(9669),he=n.n(Ie),r=n(85893),xe=function(s){s.form.setFieldsValue(s.values);var E=z.Z.Option,u=z.Z.OptGroup,L={name:"file",showUploadList:!1,multiple:!1,accept:".xlsx, .xls",headers:{"Content-Type":"application/octet-stream"},customRequest:function(o){var d=o.action,l=o.file,p=o.headers,G=o.onError,R=o.onProgress,j=o.onSuccess,T=o.withCredentials;console.log("\u4E0A\u4F20\u56FE\u7247",l);var Y=l.name.lastIndexOf("."),U=l.name.substr(Y+1),N=null;return Ae({directory:"goods",fileExtension:U,method:"PUT"}).then(function(I){d=I.allUrl;var b=new FileReader;b.readAsArrayBuffer(l),b.onload=function(w){N=w.target.result,he().put(d,N,{withCredentials:T,headers:p,onUploadProgress:function(D){var O=D.total,se=D.loaded;R({percent:Math.round(se/O*100).toFixed(2)},l)}}).then(function(y){console.log("onSuccess",y,l),(y.status==200||y.statusText=="OK")&&s.form.setFieldsValue({productUrl:I.seeUrl})}).catch(G)}}),{abort:function(){console.log("upload progress is aborted.")}}}},C={name:"file",showUploadList:!0,multiple:!1,accept:".png, .jpg, .jpeg, .gif",headers:{"Content-Type":"application/octet-stream"},customRequest:function(o){var d=o.action,l=o.file,p=o.headers,G=o.onError,R=o.onProgress,j=o.withCredentials,T=l.name.lastIndexOf("."),Y=l.name.substr(T+1),U=null;return Ae({directory:"applet",fileExtension:Y,method:"PUT"}).then(function(N){d=N.allUrl;var I=new FileReader;I.readAsArrayBuffer(l),I.onload=function(b){U=b.target.result,he().put(d,U,{withCredentials:j,headers:p,onUploadProgress:function(y){var D=y.total,O=y.loaded;R({percent:Math.round(O/D*100).toFixed(2)},l)}}).then(function(w){if(w.status==200||w.statusText=="OK"){debugger;var y=JSON.parse(JSON.stringify(s.currentImage));y.materialPath=[],y.materialPath.push(N.seeUrl),s.setCurrentImage(y),h.default.success("\u4E0A\u4F20\u6210\u529F\uFF01")}}).catch(G)}}),{abort:function(){console.log("upload progress is aborted.")}}}},ne=(0,r.jsxs)("div",{children:[(0,r.jsx)(oe.Z,{}),(0,r.jsx)("div",{style:{marginTop:8},children:"Upload"})]}),H=function(){var Z=(0,Q.Z)((0,i.Z)().mark(function o(d){return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(!(!d.url&&!d.preview)){p.next=4;break}return p.next=3,getBase64(d.originFileObj);case 3:d.preview=p.sent;case 4:setPreviewImage(d.url||d.preview),setPreviewVisible(!0),setPreviewTitle(d.name||d.url.substring(d.url.lastIndexOf("/")+1));case 7:case"end":return p.stop()}},o)}));return function(d){return Z.apply(this,arguments)}}(),re=function(o){var d=o.fileList;debugger;d.forEach(function(l){l.status="done"}),s.setFileList(d)};return(0,r.jsx)(ie.Z,{title:s.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:s.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){s.onCancel()},maskClosable:!1,destroyOnClose:!0,children:(0,r.jsxs)(x.Z,{layout:"vertical",preserve:!1,form:s.form,onFinish:s.onFinish,children:[(0,r.jsx)(x.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(de.Z,{})}),(0,r.jsx)(x.Z.Item,{label:"\u6240\u5C5E\u4EA7\u54C1",name:"productId",rules:[{required:!0,max:50}],children:(0,r.jsx)(z.Z,{children:s.dicData.map(function(Z,o){return(0,r.jsx)(z.Z.Option,{index:o,value:Z.id,children:Z.label},Z.id)})})}),(0,r.jsx)(x.Z.Item,{label:"\u7248\u672C\u53F7",name:"vesion",rules:[{required:!0,max:50}],children:(0,r.jsx)(de.Z,{})}),(0,r.jsx)(x.Z.Item,{label:"\u4ED3\u4F4D\u6570\u91CF",name:"productNumber",rules:[{required:!0}],children:(0,r.jsx)(ye.Z,{min:1})}),(0,r.jsx)(x.Z.Item,{label:"\u56FE\u7247",children:(0,r.jsx)(W.Z,(0,k.Z)((0,k.Z)({listType:"picture-card",fileList:s.fileList,onPreview:H,onChange:re,onRemove:function(o){var d=s.fileList.findIndex(function(p){return p.uid===o.uid});if(d>-1){var l=JSON.parse(JSON.stringify(s.currentImage));l.materialPath.splice(d,1),s.setCurrentImage(l)}}},C),{},{children:function(){return s.fileList.length>=1?null:ne}()}))}),(0,r.jsx)(x.Z.Item,{children:(0,r.jsx)(M.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},je=xe,K="message",Ne=function(){var s=(0,B.useState)(!1),E=(0,S.Z)(s,2),u=E[0],L=E[1],C=(0,B.useRef)(),ne=(0,B.useState)([]),H=(0,S.Z)(ne,2),re=H[0],Z=H[1],o=(0,B.useState)(),d=(0,S.Z)(o,2),l=d[0],p=d[1],G=(0,B.useState)([]),R=(0,S.Z)(G,2),j=R[0],T=R[1],Y=(0,B.useState)(!1),U=(0,S.Z)(Y,2),N=U[0],I=U[1],b=(0,B.useState)(!1),w=(0,S.Z)(b,2),y=w[0],D=w[1],O=x.Z.useForm(),se=(0,S.Z)(O,1),Fe=se[0],Ue=(0,B.useState)([{uid:"-1",name:"image.png",status:"done",url:""}]),ve=(0,S.Z)(Ue,2),Je=ve[0],V=ve[1],Pe=(0,B.useState)({id:"",pageId:"",materialName:"",materialCode:"",materialPath:[],materialType:0}),ge=(0,S.Z)(Pe,2),J=ge[0],Re=ge[1],Te={beforeUpload:function(a){return a.type!=="application/vnd.ms-excel"&&a.type!=="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"&&h.default.error("".concat(a.name," \u4E0D\u662F exelce \u6587\u4EF6")),a.type=="application/vnd.ms-excel"||a.type=="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"?!0:W.Z.LIST_IGNORE},name:"file",data:{id:l==null?void 0:l.id,deviceClientType:l==null?void 0:l.deviceTypeKey,version:l==null?void 0:l.vesion,isAddGoodsTemplate:y},action:"/saasbase/api/goods/goodstemplateexport",headers:{Authorization:"Bearer "+localStorage.getItem("token")},onChange:function(a){a.file.status!=="uploading"&&console.log(a.file,a.fileList),D(!1),a.file.status==="done"?(I(!1),C.current.reloadAndRest(),h.default.success("".concat(a.file.name," \u6587\u4EF6\u4E0A\u4F20\u6210\u529F."))):a.file.status==="error"&&h.default.error("".concat(a.file.name," \u6587\u4EF6\u4E0A\u8F7D\u5931\u8D25."))}},be=function(){var c=(0,Q.Z)((0,i.Z)().mark(function a(t){return(0,i.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.productUrl=J==null?void 0:J.materialPath[0],h.default.loading("\u6B63\u5728\u6DFB\u52A0",K),e.next=5,Ze(JSON.stringify(t)).then(function(f){if(h.default.destroy(K),f.data){var g,m;return h.default.success("\u6DFB\u52A0\u6210\u529F"),(g=C.current)===null||g===void 0||(m=g.reloadAndRest)===null||m===void 0||m.call(g),!0}else return h.default.error("\u6DFB\u52A0\u5931\u8D25"),!1});case 5:e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(0),h.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),e.abrupt("return",!1);case 11:case"end":return e.stop()}},a,null,[[0,7]])}));return function(t){return c.apply(this,arguments)}}(),De=function(){var c=(0,Q.Z)((0,i.Z)().mark(function a(t){return(0,i.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,t.productUrl=J==null?void 0:J.materialPath[0];debugger;return h.default.loading("\u6B63\u5728\u4FEE\u6539",K),h.default.destroy(K),e.next=7,Be(JSON.stringify(t)).then(function(f){if(h.default.destroy(K),f.data){var g,m;return h.default.success("\u4FEE\u6539\u6210\u529F"),(g=C.current)===null||g===void 0||(m=g.reloadAndRest)===null||m===void 0||m.call(g),!0}else return h.default.success("\u4FEE\u6539\u5931\u8D25"),!1});case 7:e.next=13;break;case 9:return e.prev=9,e.t0=e.catch(0),h.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),e.abrupt("return",!1);case 13:case"end":return e.stop()}},a,null,[[0,9]])}));return function(t){return c.apply(this,arguments)}}(),Ke=function(){var c=(0,Q.Z)((0,i.Z)().mark(function a(t){var A;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.prev=0,h.default.loading("\u6B63\u5728\u5220\u9664"),A=[],t.forEach(function(g){A.push(g.id)}),f.next=6,ce(A).then(function(g){if(g.data){var m,ue;return h.default.success("\u5220\u9664\u6210\u529F"),(m=C.current)===null||m===void 0||(ue=m.reloadAndRest)===null||ue===void 0||ue.call(m),!0}else return h.default.error(g.errors),!1});case 6:f.next=12;break;case 8:return f.prev=8,f.t0=f.catch(0),h.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),f.abrupt("return",!1);case 12:case"end":return f.stop()}},a,null,[[0,8]])}));return function(t){return c.apply(this,arguments)}}(),Le=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7248\u672C\u53F7",dataIndex:"vesion",valueType:"textarea"},{title:"\u6240\u5C5E\u4EA7\u54C1",dataIndex:"productName",valueType:"textarea"},{title:"\u4ED3\u4F4D\u6570\u91CF",dataIndex:"productNumber",valueType:"textarea",hideInSearch:!0},{title:"\u56FE\u7247",dataIndex:"productUrl",hideInSearch:!0,render:function(a,t){return t!=null&&t.productUrl?(0,r.jsx)(pe.Z,{style:{width:"50px",height:"50px"},src:t==null?void 0:t.productUrl,fallback:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQa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CRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg=="}):""}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",fixed:"right",width:700,render:function(a,t){return[(0,r.jsx)("a",{onClick:function(){L(!0),p(t);var e=JSON.parse(JSON.stringify([{url:""}]));t.productUrl?(e[0].url=t.productUrl,V(e)):V([])},children:" \u66F4\u65B0"},"config"),(0,r.jsx)(fe.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){ce([t.id]).then(function(e){e.data?(h.default.success("\u5220\u9664\u6210\u529F"),C.current.reloadAndRest()):h.default.error(e.errors)})},onCancel:function(){},children:(0,r.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary11"),(0,r.jsx)("a",{onClick:function(){F.m8.push({pathname:"/device/productmanage",query:{isAdd:!1,values:t,tabStatus:"basis"}})},children:" \u7BA1\u7406"},"config")]}}];return(0,B.useEffect)(function(){Se().then(function(c){var a=c.data,t={};if(c.succeeded){var A=[];a.forEach(function(e){t[e.code]={text:e.code},A.push({label:e.name,text:e.name,id:e.id})}),Z(A)}})},[]),(0,r.jsxs)(me.ZP,{host:!0,header:{title:"",breadcrumb:{}},children:[(0,r.jsx)(Qe.ZP,{headerTitle:"\u8BBE\u5907\u7248\u672C",actionRef:C,rowKey:"id",pagination:{defaultPageSize:10},search:{labelWidth:120},toolBarRender:function(){return[(0,r.jsxs)(M.Z,{type:"primary",onClick:function(){V([]),L(!0)},children:[(0,r.jsx)(oe.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var c=(0,Q.Z)((0,i.Z)().mark(function a(t){var A,e;return(0,i.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return A=[],e=0,g.next=4,Ce(t).then(function(m){A=m.data.data,e=m.data.total});case 4:return g.abrupt("return",{data:A,success:!0,total:e});case 5:case"end":return g.stop()}},a)}));return function(a){return c.apply(this,arguments)}}(),columns:Le,rowSelection:{onChange:function(a,t){T(t)}}}),(j==null?void 0:j.length)>0&&(0,r.jsx)(Ee.Z,{extra:(0,r.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,r.jsx)("a",{style:{fontWeight:600},children:j.length})," ","\u9879 \xA0\xA0"]}),children:(0,r.jsx)(M.Z,{onClick:(0,Q.Z)((0,i.Z)().mark(function c(){var a,t;return(0,i.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ke(j);case 2:T([]),(a=C.current)===null||a===void 0||(t=a.reloadAndRest)===null||t===void 0||t.call(a);case 4:case"end":return e.stop()}},c)})),children:"\u5220\u9664"})}),(0,r.jsx)(je,{onFinish:function(){var c=(0,Q.Z)((0,i.Z)().mark(function a(t){var A;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:A=!1,t.id?(A=De(t),C.current.reload()):(A=be(t),C.current.reload()),A&&(L(!1),p(void 0)),C.current.reloadAndRest();case 4:case"end":return f.stop()}},a)}));return function(a){return c.apply(this,arguments)}}(),onCancel:function(){L(!1),p(void 0)},createModalVisible:u,values:l||{},form:Fe,currentImage:J,setCurrentImage:Re,fileList:Je,setFileList:V,dicData:re}),(0,r.jsx)(ie.Z,{title:"\u4E0A\u4F20\u5DE5\u827A\u6A21\u7248",open:N,footer:null,onCancel:function(){I(!1)},children:(0,r.jsx)(W.Z,(0,k.Z)((0,k.Z)({},Te),{},{maxCount:1,children:(0,r.jsx)(M.Z,{children:"\u5BFC\u5165\u5DE5\u827A\u6A21\u7248"})}))})]})},we=Ne}}]);