update to japanese

This commit is contained in:
2021-07-12 14:49:27 +05:30
parent d1a6786d4a
commit 82b9c624f0
17 changed files with 32 additions and 53 deletions

View File

@ -0,0 +1,2 @@
(this["webpackJsonp@coreui/coreui-free-react-admin-template"]=this["webpackJsonp@coreui/coreui-free-react-admin-template"]||[]).push([[6],{687:function(e,t,n){"use strict";n.r(t);var c=n(657),s=n.n(c),o=n(658),a=n(678),i=n(1),r=n(659),l=n.n(r),j=n(631),u=n(629),h=n(20),d=n(677);t.default=function(){var e=new Date,t=e.getMonth()+1+"/"+e.getDate()+"/"+e.getFullYear(),n=Object(i.useState)([]),c=Object(a.a)(n,2),r=c[0],b=c[1],O=Object(i.useState)(t),x=Object(a.a)(O,2),p=x[0],m=x[1],f=Object(i.useState)(""),g=Object(a.a)(f,2),v=g[0],k=g[1],C=Object(i.useState)(""),S=Object(a.a)(C,2),w=S[0],M=S[1];return Object(i.useEffect)((function(){function e(){return(e=Object(o.a)(s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l()("https://natnats.mobilous.com/getConstructionList");case 2:t=e.sent,b(t.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]),Object(h.jsxs)(j.J,{children:[Object(h.jsx)(j.k,{xs:"12",sm:"12",md:"12",children:Object(h.jsxs)(j.f,{children:[Object(h.jsx)(j.j,{children:"\u30ec\u30dd\u30fc\u30c8"}),Object(h.jsxs)(j.g,{children:[Object(h.jsxs)(j.K,{custom:!0,name:"cons_select",id:"cons_select",onChange:function(e){M(e.target.value)},children:['" ',Object(h.jsx)("option",{value:"",children:"-- \u9078\u629e --"}),'"+',r.map((function(e,t){return Object(h.jsx)("option",{value:e.construction_id,children:e.construction_name},e.construction_id)}))]}),Object(h.jsxs)(j.f,{children:[Object(h.jsx)(j.g,{children:Object(h.jsxs)(j.t,{action:"",method:"post",encType:"multipart/form-data",className:"form-horizontal",children:[Object(h.jsxs)(j.u,{row:!0,children:[Object(h.jsx)(j.k,{md:"3",children:Object(h.jsxs)(j.G,{htmlFor:"date-input",children:["\u65e5\u4ed8 (",p,")"]})}),Object(h.jsx)(j.k,{xs:"12",md:"9",children:Object(h.jsx)(j.B,{type:"date",id:"date-input",name:"date-input",placeholder:"\u65e5\u4ed8",value:p,onChange:function(e){m(e.target.value)}})})]}),Object(h.jsxs)(j.u,{row:!0,children:[Object(h.jsx)(j.k,{md:"3",children:Object(h.jsx)(j.G,{htmlFor:"select",children:"\u9078\u629e"})}),Object(h.jsx)(j.k,{xs:"12",md:"9",children:Object(h.jsxs)(j.K,{custom:!0,name:"select",id:"select",onChange:function(e){k(e.target.value)},value:v,children:[Object(h.jsx)("option",{value:"",children:"-- \u9078\u629e --"}),Object(h.jsx)("option",{value:"generateBoxDisplacement",children:"Box Displacement"}),Object(h.jsx)("option",{value:"generateMachineControl",children:"Machine Control"}),Object(h.jsx)("option",{value:"generateMachineSheet",children:"Machine Sheet"}),Object(h.jsx)("option",{value:"generateMeasurement",children:"Measurement"}),Object(h.jsx)("option",{value:"generateCheckSheet",children:"Check Sheet"}),Object(h.jsx)("option",{value:"generateInjection",children:"Injection"})]})})]})]})}),Object(h.jsx)(j.h,{children:Object(h.jsxs)(j.e,{type:"submit",size:"sm",color:"primary",onClick:function(){if(""!=v&&""!=w){var e="https://natnats.mobilous.com//"+v+"?construction_id="+w+"&construction_date="+p;console.log(w),console.log(p),console.log(v),function(e){var t=l()(e).then((function(e){d(e.data,"report.xls")}));console.log(t)}(e)}else alert("Please select both Construction and Report")},children:[Object(h.jsx)(u.a,{name:"cil-scrubber"})," \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9"]})})]})]})]})}),Object(h.jsx)(j.k,{xs:"1",sm:"1",md:"1"})]})}}}]);
//# sourceMappingURL=6.003f68de.chunk.js.map