Explorar el Código

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

XMLWAN hace 3 años
padre
commit
83e7975228
Se han modificado 1 ficheros con 65 adiciones y 12 borrados
  1. 65 12
      src/xt_pages/outpatientRecord/outpatientRecord.vue

+ 65 - 12
src/xt_pages/outpatientRecord/outpatientRecord.vue Ver fichero

@@ -129,8 +129,8 @@
129 129
             </el-table>
130 130
 
131 131
             <el-dialog title="备案" :visible.sync="dialogFormVisible">
132
-                <el-form :model="form" label-width="100px">
133
-                    <el-form-item label="险种类型" :label-width="formLabelWidth">
132
+                <el-form  label-width="100px">
133
+                    <el-form-item label="险种类型" >
134 134
                         <el-select v-model="insutype_value" placeholder="请选择" style="width: 200px;">
135 135
                             <el-option
136 136
                                     v-for="item in insutypes"
@@ -140,6 +140,48 @@
140 140
                             </el-option>
141 141
                         </el-select>
142 142
                     </el-form-item>
143
+
144
+                  <el-form-item label="医院鉴定日期" >
145
+                    <el-date-picker
146
+                        v-model="check_date"
147
+                        prefix-icon="el-icon-date"
148
+                        :editable="false"
149
+                        style="width: 100%;"
150
+                        type="date"
151
+                        placeholder="选择开始时间"
152
+                        align="right"
153
+                        format="yyyy-MM-dd"
154
+                        value-format="yyyy-MM-dd">
155
+                    </el-date-picker>
156
+
157
+                  </el-form-item>
158
+                  <el-form-item label="开始时间" >
159
+                    <el-date-picker
160
+                        v-model="start_date"
161
+                        prefix-icon="el-icon-date"
162
+                        :editable="false"
163
+                        style="width: 100%;"
164
+                        type="date"
165
+                        placeholder="选择开始时间"
166
+                        align="right"
167
+                        format="yyyy-MM-dd"
168
+                        value-format="yyyy-MM-dd">
169
+                    </el-date-picker>
170
+                  </el-form-item>
171
+
172
+                  <el-form-item label="结束时间" >
173
+                    <el-date-picker
174
+                        v-model="end_date"
175
+                        prefix-icon="el-icon-date"
176
+                        :editable="false"
177
+                        style="width: 100%;"
178
+                        type="date"
179
+                        placeholder="选择结束时间"
180
+                        align="right"
181
+                        format="yyyy-MM-dd"
182
+                        value-format="yyyy-MM-dd">
183
+                    </el-date-picker>
184
+                  </el-form-item>
143 185
                 </el-form>
144 186
                 <div slot="footer" class="dialog-footer">
145 187
                     <el-button @click="dialogFormVisible = false">取 消</el-button>
@@ -178,6 +220,9 @@
178 220
     data() {
179 221
       return {
180 222
         is_put_on_record:0,
223
+        start_date:'',
224
+        end_date:"",
225
+        check_date:"",
181 226
         datas: [
182 227
           {
183 228
             id: 0,
@@ -282,16 +327,7 @@
282 327
         this.keywords = "";
283 328
         this.getList()
284 329
       },
285
-      getName(value){
286
-        console.log(value);
287
-        for(let i = 0; i < this.insutype_arr.length; i++){
288
-          console.log(this.insutype_arr[i].value);
289
-          if(this.insutype_arr[i].value == value){
290
-            return this.insutype_arr[i].label
291
-          }
292
-        }
293
-        return "未知"
294
-      },
330
+
295 331
       getGdybPatientInfo(){
296 332
         let params ={
297 333
           id_card_no:this.currentObject.id_card_no,
@@ -449,10 +485,27 @@
449 485
           return
450 486
         }
451 487
 
488
+        if(this.start_date == '' || this.start_date  == 0){
489
+          this.$message.error("请选择开始时间");
490
+          return
491
+        }
492
+
493
+        if(this.end_date == '' || this.end_date  == 0){
494
+          this.$message.error("请选择结束时间");
495
+          return
496
+        }
497
+        if(this.check_date == '' || this.check_date  == 0){
498
+          this.$message.error("请选择鉴定时间");
499
+          return
500
+        }
501
+
452 502
         let params = {
453 503
           record_type: 0,
454 504
           patient_id: this.currentObject.id,
455 505
           insutype: this.insutype_value,
506
+          start_time: this.start_date,
507
+          end_time: this.end_date,
508
+          check_time: this.check_time,
456 509
           psn_no: this.psn_no,
457 510
           sick_id: this.currentObject.record.sick_type,
458 511
           doctor_id: this.currentObject.record.doctor_id,