Browse Source

uas手机版
通用表单详情组件

RaoMeng 5 years ago
parent
commit
a760b8074e

+ 12 - 3
uas-office-web/uas-mobile/src/components/common/currencyDetail/CurrencyDetail.jsx

@@ -6,6 +6,7 @@
 import React, { Component } from 'react'
 import { connect } from 'react-redux'
 import './currency-detail.less'
+import { getFormItems } from '../../../utils/common/form.util'
 
 class CurrencyDetail extends Component {
 
@@ -16,7 +17,7 @@ class CurrencyDetail extends Component {
   }
 
   componentDidMount () {
-    document.title = '单据详情'
+
   }
 
   componentWillUnmount () {
@@ -24,9 +25,17 @@ class CurrencyDetail extends Component {
   }
 
   render () {
+    const { formGroups } = this.props
+    const formItems = getFormItems(formGroups)
+
     return (
-      <div>
-        单据详情
+      <div className='currency-detail-root'>
+        <div className='currency-detail-content'>
+          {formItems}
+        </div>
+        <div className='currency-detail-operation'>
+
+        </div>
       </div>
     )
   }

+ 17 - 0
uas-office-web/uas-mobile/src/components/common/currencyDetail/currency-detail.less

@@ -0,0 +1,17 @@
+.currency-detail-root {
+  .com-column-flex;
+  width: 100%;
+  height: 100vh;
+
+  .currency-detail-content {
+    overflow: auto;
+    -webkit-overflow-scrolling: touch;
+    flex: 1;
+    width: 100%;
+  }
+
+  .currency-detail-operation {
+    .com-row-flex;
+    padding: 14px;
+  }
+}

+ 2 - 2
uas-office-web/uas-mobile/src/components/common/currencyList/CurrencyList.jsx

@@ -167,10 +167,10 @@ class CurrencyList extends Component {
     return (
       <div
         className='currency-list-content-filter-content'>
-        <List
+        <div
           className='currency-list-content-filter-config'>
           {formItems}
-        </List>
+        </div>
         <div className='currency-list-content-filter-func'>
           <Button
             className='currency-list-content-filter-func-button'

+ 3 - 3
uas-office-web/uas-mobile/src/configs/api.config.js

@@ -4,9 +4,9 @@
  */
 
 export const _host = window.location.origin
-  && 'http://10.1.7.104:8090/ERP'//吴炳
-  && 'http://usoft.f3322.net:10007/uas'
-  && 'http://10.1.7.44:8081/erp'//吴雨骁
+  // && 'http://10.1.7.104:8090/ERP'//吴炳
+  // && 'http://10.1.7.44:8081/erp'//吴雨骁
+  // && 'http://usoft.f3322.net:10007/uas'
 
 export const _baseURL = _host + (process.env.REACT_APP_ROUTER_BASE_NAME || '')