77 lines
1.6 KiB
JavaScript
77 lines
1.6 KiB
JavaScript
/*
|
|
* Author: 黎永顺
|
|
* name: 调差
|
|
* Description:
|
|
* Date: 2022/12/5
|
|
*/
|
|
import React, { Component } from "react";
|
|
import { inject, observer } from "mobx-react";
|
|
import { WeaButtonIcon, WeaSlideModal } from "ecCom";
|
|
import { Button } from "antd";
|
|
import SlideModalTitle from "../../../../components/slideModalTitle";
|
|
import "./index.less";
|
|
|
|
|
|
@inject("taxAgentStore")
|
|
@observer
|
|
class AdjustmentSlide extends Component {
|
|
constructor(props) {
|
|
super(props);
|
|
this.state = {
|
|
current: 0,
|
|
loading: false,
|
|
taxAgentId: ""
|
|
};
|
|
}
|
|
|
|
componentWillReceiveProps(nextProps, nextContext) {
|
|
if (nextProps.visible !== this.props.visible) {
|
|
}
|
|
}
|
|
|
|
renderCustomOperate = () => {
|
|
return [
|
|
<WeaButtonIcon
|
|
buttonType="del"
|
|
type="primary"
|
|
/>,
|
|
<WeaButtonIcon buttonType="add" type="primary"/>,
|
|
<Button type="primary">保存全部</Button>
|
|
];
|
|
};
|
|
|
|
render() {
|
|
const { title, visible, onCancel, taxAgentStore: { showOperateBtn } } = this.props;
|
|
return (
|
|
<WeaSlideModal
|
|
className="adjustmentWrapper"
|
|
visible={visible}
|
|
top={0}
|
|
width={50}
|
|
height={100}
|
|
direction="right"
|
|
measure="%"
|
|
title={
|
|
<SlideModalTitle
|
|
subtitle={title}
|
|
tabs={[]}
|
|
loading={false}
|
|
showOperateBtn={showOperateBtn}
|
|
editable={false}
|
|
customOperate={this.renderCustomOperate()}
|
|
/>
|
|
}
|
|
content={
|
|
<div>
|
|
table
|
|
</div>
|
|
}
|
|
onClose={onCancel}
|
|
/>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default AdjustmentSlide;
|
|
|