Browse Source

Merge branch 'dev' into test

1178232204@qq.com 3 năm trước cách đây
mục cha
commit
31434ce3e8

+ 2 - 4
src/components/FieldProblem/index.js

@@ -144,10 +144,8 @@ function FieldProblem() {
         getColumnResultPage()
         getColumnResultPage()
     }
     }
     const onFinish = (value) => {
     const onFinish = (value) => {
-        if (value.time) {
-            value.behospitalStartDate = moment(value.time[0]).format('YYYY-MM-DD 00:00:00');
-            value.behospitalEndDate = moment(value.time[1]).format('YYYY-MM-DD 23:23:59');
-        }
+        value.behospitalStartDate = moment(value.tbehospitalStartDate).format('YYYY-MM-DD 00:00:00');
+        value.behospitalEndDate = moment(value.behospitalEndDate).format('YYYY-MM-DD 23:23:59');
         delete value.time
         delete value.time
         const param = {
         const param = {
             ...data,
             ...data,