|
@@ -14,6 +14,13 @@ import {getAppPageConfig} from "src/hrpub/common/utils/utils";
|
|
|
import AssignApprover from "../components/AssignApprover";
|
|
|
|
|
|
import ApproveDetail from 'uap/common/components/ApproveDetail';
|
|
|
+import { bodyButtonClick } from '../actions/bodyButtonClick';
|
|
|
+
|
|
|
+let tmp = null
|
|
|
+const rowEditTable = (editTable ,ele,options) => {
|
|
|
+ tmp = editTable.createEditTable(ele,options)
|
|
|
+ return tmp
|
|
|
+}
|
|
|
|
|
|
const {Header, Content} = Layout;
|
|
|
const HomePage = render({
|
|
@@ -24,7 +31,7 @@ const HomePage = render({
|
|
|
formAct: FormAction
|
|
|
}
|
|
|
})(({props, action, state}) => {
|
|
|
- const {button, table, form, main, cardPagination} = props;
|
|
|
+ const {button, table, form, main, cardPagination,editTable} = props;
|
|
|
const {pageInfo, page, psndoc, showUploader, showFlow, billid, billtype, isEdit, isDisableUpload} = main;
|
|
|
const {createCardPagination} = cardPagination;
|
|
|
return (
|
|
@@ -61,6 +68,35 @@ const HomePage = render({
|
|
|
onBeforeEvent: action.formAct.formBeforeEdit,
|
|
|
onAfterEvent: action.formAct.formAfterEdit
|
|
|
})}
|
|
|
+ <div className="shoulder-definition-area" style={{'display':'flex','flex-direction':'row-reverse'}}>
|
|
|
+ <div className="definition-icons">
|
|
|
+ {(page === 'detail' && isEdit) && props.button.createButtonApp({
|
|
|
+ area: 'tabs_head',
|
|
|
+ onButtonClick: (props, key, text, record, index) => {bodyButtonClick(props, key, text, record, index,tmp.props)},
|
|
|
+ popContainer: document.querySelector('.header-button-area')
|
|
|
+ })}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ {/* {editTable.createEditTable('card_body', {
|
|
|
+ showCheck: true,
|
|
|
+ showIndex: true,
|
|
|
+ // onSelected: action.formAct.selectRow,
|
|
|
+ // onSelectedAll: action.formAct.selectAllRow,
|
|
|
+ adaptionHeight: false
|
|
|
+ })} */}
|
|
|
+ <div className="nc-bill-bottom-area">
|
|
|
+ <div className="nc-bill-table-area">
|
|
|
+ {tmp || rowEditTable(editTable, 'card_body', {
|
|
|
+ showCheck: true,
|
|
|
+ showIndex: true,
|
|
|
+ // onSelected: action.formAct.bodySelectedEvent,
|
|
|
+ // onSelectedAll: action.formAct.bodySelectedAllEvent,
|
|
|
+ // onBeforeEvent: beforeTableEvent,
|
|
|
+ onAfterEvent: action.formAct.afterTableEvent
|
|
|
+ // modelSave: buttonClick.bind(this, { ...this.props, json: this.state.json }, CARD_BUTTON.save, undefined, true),
|
|
|
+ })}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<If condition={showUploader}>
|
|
|
<Uploader
|