Bladeren bron

历史日期修改

xjj 2 jaren geleden
bovenliggende
commit
95a42eeba5
3 gewijzigde bestanden met toevoegingen van 3 en 9 verwijderingen
  1. 1 1
      src/pages/Detail/HistoryDrawer.js
  2. 1 8
      src/pages/Detail/Index.js
  3. 1 0
      src/pages/Detail/LuckySheet.js

+ 1 - 1
src/pages/Detail/HistoryDrawer.js

@@ -68,7 +68,7 @@ function HistoryDrawer(props) {
   }, [version]);
 
   const TimeLineItemRender = item => {
-    let time = item.m_time ? item.m_time.split('T')[0] : '-';
+    let time = item.c_time ? item.c_time.split('T')[0] : '-';
     let node = flowDetail.Nodes.find(cur => cur.Id == item.template_node_id);
     return (
       <TimelineItem>

+ 1 - 8
src/pages/Detail/Index.js

@@ -138,7 +138,6 @@ function Detail(props) {
     return data;
   }, [auditList, version]);
   const active_audit = flow.active_audit;
-  console.log(flow);
   const isAuditor = useMemo(() => {
     const getUserRole = () => {
       return flow.currentNode.auditor == currentUser.ID;
@@ -231,7 +230,6 @@ function Detail(props) {
   };
 
   const onClickCell = (cell, position, s) => {
-    console.log(cell);
     if (cell?.cid && !statusRef.current.edit) {
       let payload = {
         sheet_id: s.order || '0',
@@ -273,7 +271,6 @@ function Detail(props) {
     sheets.forEach(item => {
       delete item.data;
     });
-    console.log(sheets);
     let params = {
       ...values,
       id: id,
@@ -316,7 +313,6 @@ function Detail(props) {
     sheets.forEach(item => {
       delete item.data;
     });
-    console.log(sheets);
     let params = {
       ...version,
       data: JSON.stringify(sheets),
@@ -598,7 +594,6 @@ function Detail(props) {
   };
 
   const handleMenuClick = e => {
-    console.log('click', e);
     switch (e.key) {
       case 'back':
         // 返回
@@ -710,7 +705,6 @@ function Detail(props) {
         }
         return bool;
       };
-      console.log('是否有权限提交流转   ', getIsSubmit());
       if (getIsSubmit() && version.audit_status != 3)
         menuList.push(<Menu.Item key="commitAudit">提交流转</Menu.Item>);
 
@@ -774,7 +768,6 @@ function Detail(props) {
 
   const getRowOneList = () => {
     const obj = sheetRef.current.getSheetJson();
-    console.log(obj);
     const list = [];
     obj.data.forEach(item => {
       list.push(item.data[0]);
@@ -830,7 +823,7 @@ function Detail(props) {
       },
       onChange(info) {
         if (info.file.status !== 'uploading') {
-          console.log(info.file, info.fileList);
+          // console.log(info.file, info.fileList);
         }
         if (info.file.status === 'done') {
           message.success(`${info.file.name} 文件上传成功`);

+ 1 - 0
src/pages/Detail/LuckySheet.js

@@ -131,6 +131,7 @@ class LuckySheet extends React.Component {
         // flowId: version.flow_id,
         loadUrl: `/api/v1/purchase/record/sheet?gridKey=${version.id}&JWT-TOKEN=${token}`,
         updateUrl: `ws://${location.host}/api/v1/ws?id=${version.id}&sid=${templateId}&JWT-TOKEN=${token}`,
+        // updateUrl: `ws://47.96.12.136:8896/api/v1/ws?id=${version.id}&sid=${templateId}&JWT-TOKEN=${token}`,
         // updateUrl: `ws://120.55.44.4:8896/api/v1/ws?id=${version.id}&sid=${templateId}&JWT-TOKEN=${token}`,
         authorityUrl: `/api/v1/purchase/bom/user/excel/col?depId=${localStorage.depId}&JWT-TOKEN=${token}`,
         getUser,