import React, { Component } from 'react'; import st from 'styled-components'; import { connect } from 'dva'; import { withRouter } from 'dva/router'; import { Tabs, Alert, Input, Select, Button, Modal } from 'antd'; import tablePage from '../../../utils/hoc/tablePage'; import $nModal from '../../../utils/modal/nModal'; import $modal from '../../../utils/modal'; import { taskComBhGrantSaveComBhGrantInfo, taskComBhAccountGetComBhAccount } from '../../../services/api'; import columnFun from './columns'; const { TabPane } = Tabs; const { Option } = Select; export const formItemLayout = { labelCol: { xs: { span: 24 }, sm: { span: 7 } }, wrapperCol: { xs: { span: 24 }, sm: { span: 12 }, md: { span: 12 } } }; @connect(state => ({ global: state.global })) @withRouter @tablePage() export default class SalaryProxyOnline extends Component { constructor(props, context) { super(props, context); this.state = { addModal: false, //新增代发弹窗 isOpenSalaryAuth: null,//企业是否有发薪权限 }; } componentDidMount() { this._taskComBhAccountGetComBhAccount() } componentWillMount() { } //获取是否有发薪权限 _taskComBhAccountGetComBhAccount() { taskComBhAccountGetComBhAccount().then(res => { this.setState({ isOpenSalaryAuth: res.data.isOpenSalaryAuth }) }) } // 表格渲染 _renderOrderList = () => { const columns = columnFun.call(this); const { PageTable, isInit } = this.props; if (!isInit) return; return ( `总共 ${total} 条` }} dateChange={(data) => { // this.setState({ // total: data.total // }); }} /> ); }; render() { const { SearchForm, Form } = this.props; const { getFieldDecorator } = this.props.form; return (
{ }}> 薪资代发:仅支持发放薪资到渤海银行保安员证联名卡或其他渤海银行卡。
权限建议:建议此页面授权给具有发放薪资权限的财务或相关人员。
代发确认时效:薪资代发申请提交后,需当日登录渤海银行微信小程序进行确认发放,否则逾期会导致发放失败。 {/* 代发审核:薪资代发申请提交后,需当日登录 { $nModal({ footer: null, content: (
) }); }}>渤海银行微信小程序
进行确认发放,否则逾期会导致发放失败。
*/}
} type="warning" showIcon style={{ marginBottom: '15px' }} /> { // console.log(values) // return values; // }} > <> {getFieldDecorator('keyword', { initialValue: '' })( )} {this._renderOrderList()} { this.state.addModal && { this.props.form.validateFields((err, values) => { if (err) return; Reflect.deleteProperty(values, 'keyword'); // 提交values taskComBhGrantSaveComBhGrantInfo(values).then(res => { this.setState({ addModal: false }); this.props.updateTable(); }); }); }} onCancel={() => { this.setState({ addModal: false }); }} > {getFieldDecorator('title', { initialValue: '', rules: [ { required: true, message: '请输入标题' } ] })( )} {getFieldDecorator('remark', { initialValue: '', rules: [ { required: true, message: '请输入备注' } ] })( )} {getFieldDecorator('grantType', { initialValue: '3', rules: [ { required: true, message: '请选择发放类型' } ] })( )} } ); } } const Btns = st.div` margin-top: 15px; button { margin-right: 15px; } `;