|
@@ -7,7 +7,6 @@ import BlockContext from './problem-context';
|
|
import moment from "moment";
|
|
import moment from "moment";
|
|
import "moment/locale/zh-cn"
|
|
import "moment/locale/zh-cn"
|
|
import { getCookie } from '@utils/index'
|
|
import { getCookie } from '@utils/index'
|
|
-const { RangePicker } = DatePicker;
|
|
|
|
const { post, api, xPost } = apiObj;
|
|
const { post, api, xPost } = apiObj;
|
|
const { TextArea } = Input;
|
|
const { TextArea } = Input;
|
|
function EditBlock(props) {
|
|
function EditBlock(props) {
|
|
@@ -104,8 +103,8 @@ function EditBlock(props) {
|
|
}
|
|
}
|
|
//数据对比
|
|
//数据对比
|
|
function dataCheck(values) {
|
|
function dataCheck(values) {
|
|
- values.startDate = moment(values.time[0]).format('YYYY-MM-DD 00:00:00');
|
|
|
|
- values.endDate = moment(values.time[1]).format('YYYY-MM-DD 23:23:59');
|
|
|
|
|
|
+ values.startDate = moment(values.startDate).format('YYYY-MM-DD 00:00:00');
|
|
|
|
+ values.endDate = moment(values.endDate).format('YYYY-MM-DD 23:23:59');
|
|
let params = {
|
|
let params = {
|
|
behospitalCode: values.behospitalCode,
|
|
behospitalCode: values.behospitalCode,
|
|
dateEnd: values.endDate,
|
|
dateEnd: values.endDate,
|
|
@@ -114,7 +113,7 @@ function EditBlock(props) {
|
|
}
|
|
}
|
|
post(api.dataCheck, params).then((res) => {
|
|
post(api.dataCheck, params).then((res) => {
|
|
if (res.data.code === 200) {
|
|
if (res.data.code === 200) {
|
|
- props.userChange()
|
|
|
|
|
|
+ props.userChange(1)
|
|
message.success(res.data.message);
|
|
message.success(res.data.message);
|
|
form.resetFields();
|
|
form.resetFields();
|
|
} else {
|
|
} else {
|
|
@@ -288,7 +287,7 @@ function EditBlock(props) {
|
|
<Form.Item wrapperCol={type == 3 ? { offset: 24, span: 16 } : { offset: 8, span: 16 }} style={{ marginTop: 15 }}>
|
|
<Form.Item wrapperCol={type == 3 ? { offset: 24, span: 16 } : { offset: 8, span: 16 }} style={{ marginTop: 15 }}>
|
|
<Space size="middle" >
|
|
<Space size="middle" >
|
|
<Button htmlType="button" onClick={e => cancel()}>
|
|
<Button htmlType="button" onClick={e => cancel()}>
|
|
- 取消
|
|
|
|
|
|
+ 关闭
|
|
</Button>
|
|
</Button>
|
|
<Button type="primary" htmlType="submit" disabled={disable && type == 1}>
|
|
<Button type="primary" htmlType="submit" disabled={disable && type == 1}>
|
|
{type == 1 ? '确定' : '保存'}
|
|
{type == 1 ? '确定' : '保存'}
|