(this.webpackJsonpfronted=this.webpackJsonpfronted||[]).push([[0],{272:function(t,e,n){"use strict";n.r(e);var a=n(5),s=n.n(a),o=n(31),i=n.n(o),c=(n(36),n(37),n(4)),r=n.n(c),d=n(13),l=n(14),u=n(15),h=n(17),f=n(16),g=n(2),j="http://wanzq.vaiwan.com",m=(s.a.Component,function(t){Object(h.a)(n,t);var e=Object(f.a)(n);function n(t){var a;return Object(l.a)(this,n),(a=e.call(this,t)).goodsCollectionAndApprove=function(){var t={detailForms:[{textForms:[{name:"\u7269\u54c1\u540d\u79f0",value:"\u6d4b\u8bd5\u7269\u54c1\u9886\u7528-\u7535\u8111"},{name:"\u6570\u91cf",value:"3"}],name:"\u7269\u54c1\u660e\u7ec6"}],originatorUserId:sessionStorage.getItem("userId"),textForms:[{name:"\u7269\u54c1\u7528\u9014",value:"\u6d4b\u8bd5\u7269\u54c1\u9886\u7528"},{name:"\u9886\u7528\u8be6\u60c5",value:"\u9886\u7528\u8be6\u60c51"}],deptId:sessionStorage.getItem("deptId")};r()({url:j+"/process/instance",method:"post",data:t,headers:{"Content-Type":"application/json"}}).then((function(t){alert(JSON.stringify(t.data)),r.a.get(j+"/process/instance/"+t.data.result).then((function(t){alert(JSON.stringify(t.data))})).catch((function(t){alert(JSON.stringify(t))}))})).catch((function(t){console.log(t)}))},a.getTableRowData=function(){r.a.get(j+"/process/instance").then((function(t){alert(JSON.stringify(t.data.result)),a.setState({items:t.data.result})})).catch((function(t){alert(JSON.stringify(t))}))},a.state={items:[]},a}return Object(u.a)(n,[{key:"render",value:function(){return Object(g.jsxs)("div",{children:[Object(g.jsx)("button",{onClick:this.goodsCollectionAndApprove,children:"\u9886\u7528\u5e76\u63d0\u4ea4\u5ba1\u6279"}),Object(g.jsx)("button",{onClick:this.getTableRowData,children:"\u83b7\u53d6\u63d0\u4ea4\u7684\u5ba1\u6279\u4fe1\u606f"}),Object(g.jsxs)("table",{className:"table table-bordered",children:[Object(g.jsx)("thead",{children:Object(g.jsxs)("tr",{children:[Object(g.jsx)("th",{children:"\u7269\u54c1\u7528\u9014"}),Object(g.jsx)("th",{children:"\u5ba1\u6279\u72b6\u6001"}),Object(g.jsx)("th",{children:"\u5ba1\u6279\u4eba"})]})}),Object(g.jsx)("tbody",{})]})]})}}]),n}(s.a.Component)),p="http://wanzq.vaiwan.com";d.ready((function(){d.runtime.permission.requestAuthCode({corpId:"ding9f50b15bccd16741",onSuccess:function(t){r.a.get(p+"/login?authCode="+t.code).then((function(t){sessionStorage.setItem("userId",t.data.result.userid),sessionStorage.setItem("deptId",t.data.result.deptIdList[0])})).catch((function(t){alert(JSON.stringify(t))}))},onFail:function(t){alert(JSON.stringify(t))}})}));var b=function(){return Object(g.jsxs)("div",{className:"App",children:[Object(g.jsx)("button",{onClick:function(){var t={detailForms:[{textForms:[{name:"\u7269\u54c1\u540d\u79f0",value:"\u6d4b\u8bd5\u7269\u54c1\u9886\u7528-\u7535\u8111"},{name:"\u6570\u91cf",value:"3"}],name:"\u7269\u54c1\u660e\u7ec6"}],originatorUserId:sessionStorage.getItem("userId"),textForms:[{name:"\u7269\u54c1\u7528\u9014",value:"\u6d4b\u8bd5\u7269\u54c1\u9886\u7528"},{name:"\u9886\u7528\u8be6\u60c5",value:"\u9886\u7528\u8be6\u60c51"}],deptId:sessionStorage.getItem("deptId")};r()({url:p+"/process/instance",method:"post",data:t,headers:{"Content-Type":"application/json"}}).then((function(t){alert(JSON.stringify(t.data)),r.a.get(p+"/process/instance/"+t.data.result).then((function(t){alert(JSON.stringify(t.data))})).catch((function(t){alert(JSON.stringify(t))}))})).catch((function(t){console.log(t)}))},children:"\u9886\u7528\u5e76\u63d0\u4ea4\u5ba1\u6279"}),Object(g.jsx)("div",{className:"container",children:Object(g.jsx)(m,{})})]})},O=function(t){t&&t instanceof Function&&n.e(3).then(n.bind(null,273)).then((function(e){var n=e.getCLS,a=e.getFID,s=e.getFCP,o=e.getLCP,i=e.getTTFB;n(t),a(t),s(t),o(t),i(t)}))};i.a.render(Object(g.jsx)(s.a.StrictMode,{children:Object(g.jsx)(b,{})}),document.getElementById("root")),O()},36:function(t,e,n){},37:function(t,e,n){}},[[272,1,2]]]);
//# sourceMappingURL=main.d0864a1e.chunk.js.map