|
@@ -14,17 +14,7 @@ const { Option } = Select;
|
|
|
function FieldProblem() {
|
|
|
useEffect(() => {
|
|
|
getColumnResultPage();
|
|
|
- getColumnResultNumber()
|
|
|
- console.log(new Date((new Date() - 30 * 24 * 3600 * 1000)).toLocaleDateString());
|
|
|
- // getCurrentDataFront() {
|
|
|
- // let time = new Date((new Date() - 30 * 24 * 3600 * 1000)).toLocaleDateString()
|
|
|
- // return time
|
|
|
- // },
|
|
|
- // // 结束时间
|
|
|
- // getCurrentData() {
|
|
|
- // let time = new Date().toLocaleDateString()
|
|
|
- // return time
|
|
|
- // },
|
|
|
+ getColumnResultNumber(date)
|
|
|
}, []);
|
|
|
const [logList, setLogList] = useState([]);
|
|
|
const [total, setTotal] = useState(0);
|
|
@@ -42,6 +32,10 @@ function FieldProblem() {
|
|
|
solveTimeStart: getCurrentDataFront().split('/').join('-') + ' 00:00:00',
|
|
|
solveTimeEnd: getCurrentData().split('/').join('-') + ' 23:23:59'
|
|
|
});
|
|
|
+ const [date, setDate] = useState({
|
|
|
+ solveTimeStart: getCurrentDataFront().split('/').join('-') + ' 00:00:00',
|
|
|
+ solveTimeEnd: getCurrentData().split('/').join('-') + ' 23:23:59'
|
|
|
+ });
|
|
|
const [form] = Form.useForm();
|
|
|
let data = {
|
|
|
pages: 1,
|
|
@@ -58,8 +52,11 @@ function FieldProblem() {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- function getColumnResultNumber() {
|
|
|
- post(api.getColumnResultNumber, { hospitalId: getCookie('hospitalId') }).then((res) => {
|
|
|
+ function getColumnResultNumber(param) {
|
|
|
+ post(api.getColumnResultNumber, {
|
|
|
+ hospitalId: getCookie('hospitalId'),
|
|
|
+ ...param
|
|
|
+ }).then((res) => {
|
|
|
if (res.data.code === 200) {
|
|
|
const data = res.data.data || [];
|
|
|
setProbleData(data)
|
|
@@ -82,6 +79,7 @@ function FieldProblem() {
|
|
|
function userChange() {
|
|
|
setVisible(false)
|
|
|
getColumnResultPage();
|
|
|
+ getColumnResultNumber(date)
|
|
|
}
|
|
|
function onSizeChange(current, pageSize) {
|
|
|
params.current = current
|
|
@@ -108,9 +106,11 @@ function FieldProblem() {
|
|
|
...data,
|
|
|
...value,
|
|
|
}
|
|
|
+ setDate({solveTimeStart:value.solveTimeStart,solveTimeEnd:value.solveTimeEnd})
|
|
|
setCurrent(1)
|
|
|
setParams(param)
|
|
|
getColumnResultPage(param);
|
|
|
+ getColumnResultNumber({solveTimeStart:value.solveTimeStart,solveTimeEnd:value.solveTimeEnd})
|
|
|
};
|
|
|
const onReset = () => {
|
|
|
setCurrent(1)
|
|
@@ -181,22 +181,22 @@ function FieldProblem() {
|
|
|
</Col>
|
|
|
<Col span={5} key={1}>
|
|
|
<Form.Item label="住院序号" name="behospitalCode">
|
|
|
- <Input placeholder="住院序号" autoComplete='off' />
|
|
|
+ <Input placeholder="住院序号" autoComplete='off' maxLength='30'/>
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={5} key={2}>
|
|
|
<Form.Item label="文书编号" name="recId">
|
|
|
- <Input placeholder="文书编号" autoComplete='off' />
|
|
|
+ <Input placeholder="文书编号" autoComplete='off' maxLength='30'/>
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={5} key={3}>
|
|
|
<Form.Item label="文书标题" name="recTitle">
|
|
|
- <Input placeholder="文书标题" autoComplete='off' />
|
|
|
+ <Input placeholder="文书标题" autoComplete='off' maxLength='30'/>
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={5} key={4}>
|
|
|
<Form.Item label="质控模块名称" name="modeName">
|
|
|
- <Input placeholder="质控模块名称" autoComplete='off' />
|
|
|
+ <Input placeholder="质控模块名称" autoComplete='off' maxLength='30'/>
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={5} key={5}>
|