소스 검색

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

XMLWAN 3 년 전
부모
커밋
83e7975228
1개의 변경된 파일65개의 추가작업 그리고 12개의 파일을 삭제
  1. 65 12
      src/xt_pages/outpatientRecord/outpatientRecord.vue

+ 65 - 12
src/xt_pages/outpatientRecord/outpatientRecord.vue 파일 보기

129
             </el-table>
129
             </el-table>
130
 
130
 
131
             <el-dialog title="备案" :visible.sync="dialogFormVisible">
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
                         <el-select v-model="insutype_value" placeholder="请选择" style="width: 200px;">
134
                         <el-select v-model="insutype_value" placeholder="请选择" style="width: 200px;">
135
                             <el-option
135
                             <el-option
136
                                     v-for="item in insutypes"
136
                                     v-for="item in insutypes"
140
                             </el-option>
140
                             </el-option>
141
                         </el-select>
141
                         </el-select>
142
                     </el-form-item>
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
                 </el-form>
185
                 </el-form>
144
                 <div slot="footer" class="dialog-footer">
186
                 <div slot="footer" class="dialog-footer">
145
                     <el-button @click="dialogFormVisible = false">取 消</el-button>
187
                     <el-button @click="dialogFormVisible = false">取 消</el-button>
178
     data() {
220
     data() {
179
       return {
221
       return {
180
         is_put_on_record:0,
222
         is_put_on_record:0,
223
+        start_date:'',
224
+        end_date:"",
225
+        check_date:"",
181
         datas: [
226
         datas: [
182
           {
227
           {
183
             id: 0,
228
             id: 0,
282
         this.keywords = "";
327
         this.keywords = "";
283
         this.getList()
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
       getGdybPatientInfo(){
331
       getGdybPatientInfo(){
296
         let params ={
332
         let params ={
297
           id_card_no:this.currentObject.id_card_no,
333
           id_card_no:this.currentObject.id_card_no,
449
           return
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
         let params = {
502
         let params = {
453
           record_type: 0,
503
           record_type: 0,
454
           patient_id: this.currentObject.id,
504
           patient_id: this.currentObject.id,
455
           insutype: this.insutype_value,
505
           insutype: this.insutype_value,
506
+          start_time: this.start_date,
507
+          end_time: this.end_date,
508
+          check_time: this.check_time,
456
           psn_no: this.psn_no,
509
           psn_no: this.psn_no,
457
           sick_id: this.currentObject.record.sick_type,
510
           sick_id: this.currentObject.record.sick_type,
458
           doctor_id: this.currentObject.record.doctor_id,
511
           doctor_id: this.currentObject.record.doctor_id,