瀏覽代碼

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

XMLWAN 4 年之前
父節點
當前提交
f2ff2dfcbc

+ 3 - 2
src/xt_pages/outpatientCharges/components/prescriptionTable.vue 查看文件

3
     <el-table v-if="prescription.type == 1" :data="prescription.advices" border style="width: 99%;"
3
     <el-table v-if="prescription.type == 1" :data="prescription.advices" border style="width: 99%;"
4
               :row-style="{ color: '#303133' }"
4
               :row-style="{ color: '#303133' }"
5
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
5
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
6
+      <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
6
       <el-table-column align="center" prop="name" label="名称">
7
       <el-table-column align="center" prop="name" label="名称">
7
         <template slot-scope="scope"><span :title='scope.row.drug_name'>{{ scope.row.drug_name }}</span></template>
8
         <template slot-scope="scope"><span :title='scope.row.drug_name'>{{ scope.row.drug_name }}</span></template>
8
       </el-table-column>
9
       </el-table-column>
55
     <el-table v-if="prescription.type == 2" :data="prescription.project" border style="width: 99%;"
56
     <el-table v-if="prescription.type == 2" :data="prescription.project" border style="width: 99%;"
56
               :row-style="{ color: '#303133' }"
57
               :row-style="{ color: '#303133' }"
57
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
58
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
58
-
59
+      <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
59
       <el-table-column align="center" prop="project_name" label="名称">
60
       <el-table-column align="center" prop="project_name" label="名称">
60
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
61
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
61
       </el-table-column>
62
       </el-table-column>
189
           white-space: nowrap;
190
           white-space: nowrap;
190
           overflow: hidden;
191
           overflow: hidden;
191
           text-overflow: ellipsis;
192
           text-overflow: ellipsis;
192
-          width:60px;
193
+          width:80px;
193
           display: inline-block;
194
           display: inline-block;
194
           font-size: 14px;
195
           font-size: 14px;
195
         }
196
         }

+ 4 - 4
src/xt_pages/outpatientDoctorStation/components/additionalCharges.vue 查看文件

1
 <template>
1
 <template>
2
   <el-dialog
2
   <el-dialog
3
     title="附加收费"
3
     title="附加收费"
4
-    width="300px"
4
+    width="600px"
5
     :visible.sync="visible"
5
     :visible.sync="visible"
6
     :before-close="_close"
6
     :before-close="_close"
7
   >
7
   >
8
-    <el-table :data="chargeTable" border style="width: 100%;" height="300" :row-style="{ color: '#303133' }"
8
+    <el-table :data="chargeTable" border style="width: 100%;" height="350" :row-style="{ color: '#303133' }"
9
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row
9
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row
10
               @select-all="handleSelectionChange"
10
               @select-all="handleSelectionChange"
11
               @select='selectDrugs'>
11
               @select='selectDrugs'>
12
-      <el-table-column align="center" type="selection" width="40"></el-table-column>
13
-      <el-table-column align="center" prop="name" label="名称" width="100">
12
+      <el-table-column align="center" type="selection" width="60"></el-table-column>
13
+      <el-table-column align="center" prop="name" label="名称" width="160">
14
         <template slot-scope="scope">{{ scope.row.item_name }}</template>
14
         <template slot-scope="scope">{{ scope.row.item_name }}</template>
15
       </el-table-column>
15
       </el-table-column>
16
       <el-table-column align="center" prop="name" label="金额(元)">
16
       <el-table-column align="center" prop="name" label="金额(元)">

+ 9 - 9
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue 查看文件

11
     <div class="mainTitle">基本信息:</div>
11
     <div class="mainTitle">基本信息:</div>
12
     <el-form class="basicForm" :model="patientInfo" ref="form" label-width="120px">
12
     <el-form class="basicForm" :model="patientInfo" ref="form" label-width="120px">
13
       <el-form-item label="姓名:" prop="name">
13
       <el-form-item label="姓名:" prop="name">
14
-        <el-input v-model="patientInfo.name" placeholder="" readonly></el-input>
14
+        <el-input v-model="patientInfo.name" placeholder="" :disabled="true"></el-input>
15
       </el-form-item>
15
       </el-form-item>
16
       <el-form-item label="性别: " prop="name">
16
       <el-form-item label="性别: " prop="name">
17
-        <el-input v-model="patientInfo.gender" placeholder="" readonly></el-input>
17
+        <el-input v-model="patientInfo.gender" placeholder="" :disabled="true"></el-input>
18
       </el-form-item>
18
       </el-form-item>
19
       <el-form-item label="年龄: " prop="name">
19
       <el-form-item label="年龄: " prop="name">
20
-        <el-input v-model="patientInfo.age" placeholder="" readonly></el-input>
20
+        <el-input v-model="patientInfo.age" placeholder="" :disabled="true"></el-input>
21
       </el-form-item>
21
       </el-form-item>
22
       <el-form-item label="证件号:" prop="name">
22
       <el-form-item label="证件号:" prop="name">
23
-        <el-input v-model="patientInfo.id_card_no" placeholder="" readonly></el-input>
23
+        <el-input v-model="patientInfo.id_card_no" placeholder="" :disabled="true"></el-input>
24
       </el-form-item>
24
       </el-form-item>
25
       <el-form-item label="出生日期: " prop="name">
25
       <el-form-item label="出生日期: " prop="name">
26
         <el-date-picker
26
         <el-date-picker
27
           style="width:100%;"
27
           style="width:100%;"
28
           v-model="patientInfo.birth"
28
           v-model="patientInfo.birth"
29
           type="date"
29
           type="date"
30
-          readonly
30
+          :disabled="true"
31
           placeholder="选择日期">
31
           placeholder="选择日期">
32
         </el-date-picker>
32
         </el-date-picker>
33
       </el-form-item>
33
       </el-form-item>
34
       <el-form-item label="联系电话: " prop="name">
34
       <el-form-item label="联系电话: " prop="name">
35
-        <el-input v-model="patientInfo.phone" placeholder="" readonly></el-input>
35
+        <el-input v-model="patientInfo.phone" placeholder="" :disabled="true"></el-input>
36
       </el-form-item>
36
       </el-form-item>
37
       <el-form-item label="医保类型: " prop="name">
37
       <el-form-item label="医保类型: " prop="name">
38
-        <el-select v-model="delivery_way" placeholder="请选择">
38
+        <el-select v-model="delivery_way" style="width:100%;" placeholder="请选择">
39
          <el-option
39
          <el-option
40
             v-for="item in wayOptions"
40
             v-for="item in wayOptions"
41
            :key="item.id"
41
            :key="item.id"
45
         </el-select>
45
         </el-select>
46
       </el-form-item>
46
       </el-form-item>
47
       <el-form-item label="医保证号: " prop="name">
47
       <el-form-item label="医保证号: " prop="name">
48
-        <el-input v-model="patientInfo.health_care_no" placeholder="" readonly></el-input>
48
+        <el-input v-model="patientInfo.health_care_no" placeholder="" :disabled="true"></el-input>
49
       </el-form-item>
49
       </el-form-item>
50
       <el-form-item label="家庭住址: " prop="name">
50
       <el-form-item label="家庭住址: " prop="name">
51
-        <el-input v-model="patientInfo.home_address" placeholder="" readonly></el-input>
51
+        <el-input v-model="patientInfo.home_address" placeholder="" :disabled="true"></el-input>
52
       </el-form-item>
52
       </el-form-item>
53
     </el-form>
53
     </el-form>
54
     <div class="mainTitle">体格信息:</div>
54
     <div class="mainTitle">体格信息:</div>

+ 2 - 2
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue 查看文件

129
 
129
 
130
     <div class="additionalBox">
130
     <div class="additionalBox">
131
       <div class="additionalOne" v-for="(item,index) in prescription.addition" :key="index">
131
       <div class="additionalOne" v-for="(item,index) in prescription.addition" :key="index">
132
-        <span>{{item.item_name}}</span>
132
+        <span :title="item.item_name">{{item.item_name}}</span>
133
         <el-input v-model="item.price" placeholder="" style="width:50px;"></el-input>
133
         <el-input v-model="item.price" placeholder="" style="width:50px;"></el-input>
134
134
135
         <el-input v-model="item.count" placeholder="" style="width:50px;"></el-input>
135
         <el-input v-model="item.count" placeholder="" style="width:50px;"></el-input>
371
           white-space: nowrap;
371
           white-space: nowrap;
372
           overflow: hidden;
372
           overflow: hidden;
373
           text-overflow: ellipsis;
373
           text-overflow: ellipsis;
374
-          width:60px;
374
+          width:80px;
375
           display: inline-block;
375
           display: inline-block;
376
           font-size: 14px;
376
           font-size: 14px;
377
         }
377
         }

+ 32 - 5
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

92
 
92
 
93
       @selection-change="handleSelectionChange">
93
       @selection-change="handleSelectionChange">
94
       <el-table-column
94
       <el-table-column
95
+        align='center'
95
         type="selection"
96
         type="selection"
96
         width="50">
97
         width="50">
97
       </el-table-column>
98
       </el-table-column>
98
       <el-table-column
99
       <el-table-column
100
+        align='center'
99
         label="处方编号"
101
         label="处方编号"
100
         width="120">
102
         width="120">
101
         <template  slot-scope="scope">
103
         <template  slot-scope="scope">
102
           <span>处方编号</span>
104
           <span>处方编号</span>
103
         </template>
105
         </template>
104
       </el-table-column>
106
       </el-table-column>
105
-      <el-table-column
106
-        label="处方号"
107
-        width="200">
107
+      <el-table-column label="处方号">
108
         <template slot-scope="scope">
108
         <template slot-scope="scope">
109
           <span>
109
           <span>
110
            <el-input v-model="scope.row.prescription_number" :disabled="true"></el-input>
110
            <el-input v-model="scope.row.prescription_number" :disabled="true"></el-input>
112
         </template>
112
         </template>
113
       </el-table-column>
113
       </el-table-column>
114
     </el-table>
114
     </el-table>
115
+    <el-dialog
116
+      class="centerDialog"
117
+      width="560px"
118
+      title="打印"
119
+      :visible.sync="innerVisible"
120
+      append-to-body>
121
+      
122
+      <print :paramsObj='paramsObj'></print>
123
+    </el-dialog>
115
       <span slot="footer" class="dialog-footer">
124
       <span slot="footer" class="dialog-footer">
116
         <el-button @click="centerDialogVisible = false">取 消</el-button>
125
         <el-button @click="centerDialogVisible = false">取 消</el-button>
117
         <el-button type="primary" @click="savePrint">确 定</el-button>
126
         <el-button type="primary" @click="savePrint">确 定</el-button>
131
   import saveRecordTemplate from './components/saveRecordTemplate'
140
   import saveRecordTemplate from './components/saveRecordTemplate'
132
   import { uParseTime } from '@/utils/tools'
141
   import { uParseTime } from '@/utils/tools'
133
   import { getPrescriptionList } from "@/api/project/project"
142
   import { getPrescriptionList } from "@/api/project/project"
143
+  import print from './print'
134
   export default {
144
   export default {
135
     components: {
145
     components: {
136
       BreadCrumb,
146
       BreadCrumb,
137
       deskPrescription,
147
       deskPrescription,
138
       deskRecord,
148
       deskRecord,
139
       medicalRecord,
149
       medicalRecord,
140
-      saveRecordTemplate
150
+      saveRecordTemplate,
151
+      print
141
     },
152
     },
142
     data() {
153
     data() {
143
       return {
154
       return {
184
         index:0,
195
         index:0,
185
         admin_info:{},
196
         admin_info:{},
186
         saveLoading:false,
197
         saveLoading:false,
198
+        innerVisible:false,
199
+        paramsObj:{}
187
 
200
 
188
       }
201
       }
189
     },
202
     },
688
          var ids = arr.join(",")
701
          var ids = arr.join(",")
689
          console.log("ids",ids)
702
          console.log("ids",ids)
690
          if(this.index == 2){
703
          if(this.index == 2){
691
-           this.$router.push("/outpatientDoctorStation/print?record="+this.record_date+"&prescription_id="+this.prescription_id+"&ids="+ids+"&patient_id="+this.patientid)
704
+           let obj = {
705
+             record:this.record_date,
706
+             prescription_id:this.prescription_id,
707
+             ids:ids,
708
+             patient_id:this.patientid
709
+           }
710
+           this.paramsObj = obj
711
+           this.innerVisible = true
712
+           
713
+          //  this.$router.push("/outpatientDoctorStation/print?record="+this.record_date+"&prescription_id="+this.prescription_id+"&ids="+ids+"&patient_id="+this.patientid)
692
          }
714
          }
693
          if(this.index == 6){
715
          if(this.index == 6){
694
             this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id+"&ids="+ids+"&patient_id="+this.patientid)
716
             this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id+"&ids="+ids+"&patient_id="+this.patientid)
978
   }
1000
   }
979
 
1001
 
980
   }
1002
   }
1003
+  .centerDialog{
1004
+    .el-dialog__body{
1005
+      max-height: calc(100vh - 100px) !important;
1006
+    }
1007
+  }
981
 </style>
1008
 </style>

+ 36 - 31
src/xt_pages/outpatientDoctorStation/print.vue 查看文件

1
 <template>
1
 <template>
2
-  <div class="main-contain">
3
-    <div class="position">
4
-      <bread-crumb :crumbs="crumbs"></bread-crumb>
2
+  <div>
5
        <template>
3
        <template>
6
         <el-button
4
         <el-button
7
           :loading="loading"
5
           :loading="loading"
12
           >打印</el-button
10
           >打印</el-button
13
         >
11
         >
14
       </template>
12
       </template>
15
-    </div>
16
-    <div class="app-container" style="min-height:0;">
17
-        <el-container class="newContainer">
18
-            <!-- <div style="width:270px;margin-right:20px;">
19
-                <div class="cell clearfix" style="margin-bottom:10px;">
20
-                    <el-input size="small"  v-model.trim="search_input" class="filter-item"/>
21
-                    <el-button size="small" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
22
-                </div>
23
-                <el-table ref="tab"   @current-change="changePatient" highlight-current-row :data="patientTableData" 
24
-                 height="480" border style="width: 100%">
25
-                    <el-table-column prop="date"  label="患者">   
26
-                      <template slot-scope="scope">{{scope.row.patients?scope.row.patients.name:''}}</template> 
27
-                    </el-table-column>
28
-                    <el-table-column prop="name" label="就诊号">
29
-                        <template slot-scope="scope">{{ scope.row.his_patient ?scope.row.his_patient.number:''}}</template>
30
-                    </el-table-column>
31
-                </el-table>
32
-            </div> -->
33
             
13
             
34
-            <div class='dialysisPage' style="flex: 1;height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px;margin:0 auto;width:960px;">
35
-              <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
36
-            </div>
37
-        </el-container>
14
+    <div class='dialysisPage'>
15
+      <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
38
     </div>
16
     </div>
39
   </div>
17
   </div>
40
 </template>
18
 </template>
57
     BreadCrumb,
35
     BreadCrumb,
58
     printOne
36
     printOne
59
   },
37
   },
38
+  props:{
39
+    paramsObj:Object
40
+  },
60
   data() {
41
   data() {
61
     return {
42
     return {
62
       crumbs: [
43
       crumbs: [
72
        search_input:"",
53
        search_input:"",
73
        loading:false,
54
        loading:false,
74
        patient_id:"",
55
        patient_id:"",
75
-       prescription_id:""
56
+       prescription_id:"",
57
+       ids:'',
58
+       paramsObj:{}
76
     };
59
     };
77
   },
60
   },
78
   methods:{
61
   methods:{
127
                 cal_two = cal_two + 1
110
                 cal_two = cal_two + 1
128
               }
111
               }
129
             }
112
             }
130
-            this.$refs.tab.setCurrentRow(this.patientTableData[0])
131
-            console.log(this.patientTableData[0])
132
-            this.choosePatient(this.patientTableData[0])
113
+            // this.$refs.tab.setCurrentRow(this.patientTableData[0])
114
+            // console.log(this.patientTableData[0])
115
+            // this.choosePatient(this.patientTableData[0])
133
             this.cal_one = cal_one
116
             this.cal_one = cal_one
134
             this.cal_two = cal_two   
117
             this.cal_two = cal_two   
135
          }
118
          }
171
 
154
 
172
   created() {
155
   created() {
173
     this.getAllDoctorList()
156
     this.getAllDoctorList()
174
-    var record_date = this.$route.query.record
157
+    var record_date = this.paramsObj.record
175
     this.record_date = record_date
158
     this.record_date = record_date
176
     console.log("record_date",record_date)
159
     console.log("record_date",record_date)
177
-    var prescription_id = this.$route.query.prescription_id
160
+    var prescription_id = this.paramsObj.prescription_id
178
     this.prescription_id = prescription_id
161
     this.prescription_id = prescription_id
162
+    this.patient_id = this.paramsObj.patient_id
163
+    this.ids = this.paramsObj.ids
164
+    // var record_date = this.$route.query.record
165
+    // this.record_date = record_date
166
+    // console.log("record_date",record_date)
167
+    // var prescription_id = this.$route.query.prescription_id
168
+    // this.prescription_id = prescription_id
179
     this.getAllHisPatientList(record_date)
169
     this.getAllHisPatientList(record_date)
180
   },
170
   },
171
+  watch:{
172
+    paramsObj:{//深度监听,可监听到对象、数组的变化
173
+      handler(val, oldVal){
174
+        this.paramsObj = val
175
+        this.patient_id = this.paramsObj.patient_id
176
+        var record_date = this.paramsObj.record
177
+        this.record_date = record_date
178
+        console.log("record_date",record_date)
179
+        var prescription_id = this.paramsObj.prescription_id
180
+        this.prescription_id = prescription_id
181
+        this.ids = this.paramsObj.ids
182
+      },
183
+      deep:true
184
+    }
185
+  }
181
 
186
 
182
 };
187
 };
183
 </script>
188
 </script>

+ 13 - 5
src/xt_pages/outpatientDoctorStation/template/printOne.vue 查看文件

57
     props:{
57
     props:{
58
       patient_id:Number,
58
       patient_id:Number,
59
       record_date:String,
59
       record_date:String,
60
-      prescription_id:Number
60
+      prescription_id:Number,
61
+      ids:String
61
     }, 
62
     }, 
62
     data(){
63
     data(){
63
       return {
64
       return {
104
           // patient_id:this.patient_id,
105
           // patient_id:this.patient_id,
105
           // record_date:this.record_date,
106
           // record_date:this.record_date,
106
           // prescription_id:this.prescription_id,
107
           // prescription_id:this.prescription_id,
107
-          patient_id:this.$route.query.patient_id,
108
-          record_date:this.$route.query.record,
109
-          prescription_id:this.$route.query.prescription_id,
110
-          ids:this.$route.query.ids
108
+          patient_id:this.patient_id,
109
+          record_date:this.record_date,
110
+          prescription_id:this.prescription_id,
111
+          ids:this.ids
111
         }
112
         }
112
         console.log("params",params)
113
         console.log("params",params)
113
        getPrescriptionPrint(params).then(response=>{
114
        getPrescriptionPrint(params).then(response=>{
193
 
194
 
194
 
195
 
195
 <style lang="scss" scoped>
196
 <style lang="scss" scoped>
197
+.prescription-print{
198
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
199
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; 
200
+    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
201
+    margin-bottom: 20px;
202
+    padding:20px 0px;
203
+}
196
 .printTitle{
204
 .printTitle{
197
     font-size: 22px;
205
     font-size: 22px;
198
     text-align: center;
206
     text-align: center;

+ 245 - 9
src/xt_pages/outpatientRegistration/registrationHistory.vue 查看文件

97
                 <el-table-column align="center" prop="name" label="操作人" width="70">
97
                 <el-table-column align="center" prop="name" label="操作人" width="70">
98
                     <template slot-scope="scope">{{creator}}</template>
98
                     <template slot-scope="scope">{{creator}}</template>
99
                 </el-table-column>
99
                 </el-table-column>
100
-                <el-table-column align="center" prop="name" label="操作" width="80">
100
+                <el-table-column align="center" prop="name" label="操作" width="180">
101
                     <template slot-scope="scope">
101
                     <template slot-scope="scope">
102
-                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 1 && scope.row.record_date < startUnix" :disabled="true">已过号</el-button> 
103
-                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 1 && scope.row.record_date >= startUnix" @click ="toReturnPatient(scope.row.id)">退号</el-button> 
104
-                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 2" :disabled="true">已退号</el-button>
105
-                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 3" >已就诊</el-button>  
102
+                      <el-button size="mini" type="primary" v-if="scope.row.is_return == 1 && scope.row.record_date < startUnix" :disabled="true">已过号</el-button> 
103
+                      <el-button size="mini" type="primary" v-if="scope.row.is_return == 1 && scope.row.record_date >= startUnix" @click ="toReturnPatient(scope.row.id)">退号</el-button> 
104
+                      <el-button size="mini" type="primary" v-if="scope.row.is_return == 2" :disabled="true">已退号</el-button>
105
+                      <el-button size="mini" type="primary" v-if="scope.row.is_return == 3" >已就诊</el-button>  
106
+                      <el-button size="mini" type="primary" @click="open(scope.row)">详情</el-button>
106
                     </template>
107
                     </template>
107
                 </el-table-column>
108
                 </el-table-column>
108
             </el-table>
109
             </el-table>
118
                 :total="total"
119
                 :total="total"
119
             >
120
             >
120
             </el-pagination>
121
             </el-pagination>
122
+            <el-dialog
123
+              title="挂号历史详情"
124
+              :visible.sync="dialogVisible"
125
+              width="1100px"
126
+              :before-close="handleClose">
127
+              <div>
128
+                <div class="formMain">
129
+                  <el-form class="basicForm" :model="form"  ref="form"  label-width="130px">
130
+                    <el-form-item label="患者姓名:"  prop="name">
131
+                       <div>{{ form.name }}</div>
132
+                    </el-form-item>
133
+
134
+                    <el-form-item label="性别:" prop="gender">
135
+                      <div v-if="form.gender == 1">男</div>
136
+                      <div v-if="form.gender == 2">女</div>
137
+                    </el-form-item>
138
+
139
+                    <el-form-item label="年龄:" prop="age">
140
+                      <div>{{ form.age }}</div>
141
+                    </el-form-item>
142
+
143
+
144
+                    <el-form-item label="出生日期:" prop="birthday">
145
+                      <div>{{ getTime(form.birthday,"{y}-{m}-{d}") }}</div>
146
+                    </el-form-item>
147
+
148
+                    <el-form-item label="手机号码:" prop="phone">
149
+                      <div>{{ form.phone }}</div>
150
+                    </el-form-item>
151
+
152
+
153
+                    <el-form-item label="医疗类别:">
154
+                      <div>{{ getDictionaryDataConfig(form.medical_treatment_type) }}</div>
155
+                    </el-form-item>
156
+
157
+
158
+                    <el-form-item label="证件类型:">
159
+                      <div>{{ getCertificates(form.id_type) }}</div>
160
+                    </el-form-item>
161
+
162
+                    <el-form-item label="证件号码:" prop="idCard">
163
+                      {{ form.id_card_no }}
164
+                    </el-form-item>
165
+
166
+
167
+                      <el-form-item label="结算类型:">
168
+                        {{ getSettlement(form.balance_accounts_type) }}
169
+                      </el-form-item>
170
+
171
+
172
+                    <el-form-item label="社保类型:">
173
+                      <div>{{ getMedicalCare(form.social_type) }}</div>
174
+                    </el-form-item>
175
+                    <el-form-item class="specialFormItem" style="width:66.5%;" label="医保卡号:">
176
+                      <div>{{ form.medical_insurance_number }}</div>
177
+                    </el-form-item>
178
+                    <el-form-item label="挂号类型:"  prop="register"  :validate-event="is_Name">
179
+                      <div>{{ getRegister(form.register_type) }}</div>
180
+                    </el-form-item>
181
+                    <el-form-item label="医生:"  prop="doctor" :validate-event="is_Name" >
182
+                      <div>{{ getDoctor(form.admin_user_id) }}</div>
183
+                    </el-form-item>
184
+                    <el-form-item label="科室:"  prop="department" :validate-event="is_Name">
185
+                      <div>{{ getDepartMent(form.departments) }}</div>
186
+                    </el-form-item>
187
+                    <el-form-item label="是否需要工本费:"> 
188
+                      <div v-if="form.is_need_cost_of_production == 1">是</div>
189
+                      <div v-else>否</div>
190
+                    </el-form-item>
191
+                    <el-form-item label="挂号费:">
192
+                      <div>{{ form.register_cost }}</div>
193
+                    </el-form-item>
194
+                    <el-form-item label="诊疗费:">
195
+                      <div>{{ form.treatment_cost }}</div>
196
+                    </el-form-item>
197
+                    <el-form-item label="工本费:">
198
+                      <div>{{ form.cost_of_production }}</div>
199
+                    </el-form-item>
200
+                    <el-form-item label="合计:">
201
+                      <div>{{ form.total }}</div>
202
+                    </el-form-item>
203
+                    <el-form-item>
204
+                        <!-- <el-input v-model="form.name"></el-input> -->
205
+                    </el-form-item>
206
+                  </el-form>
207
+                </div>
208
+              </div>
209
+              <span slot="footer" class="dialog-footer">
210
+                <el-button @click="dialogVisible = false">取 消</el-button>
211
+                <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
212
+              </span>
213
+            </el-dialog>
121
         </div>
214
         </div>
122
     </div>
215
     </div>
123
 </template>
216
 </template>
127
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
220
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
128
 import { getHisPatientHistory,changePatient,getHisPatient } from "@/api/project/project"
221
 import { getHisPatientHistory,changePatient,getHisPatient } from "@/api/project/project"
129
 import { uParseTime } from "@/utils/tools";
222
 import { uParseTime } from "@/utils/tools";
223
+import { getDictionaryDataConfig } from '@/utils/data'
130
 
224
 
131
 export default {
225
 export default {
132
     components:{
226
     components:{
180
                 id: 7,
274
                 id: 7,
181
                 name: "生育保险"
275
                 name: "生育保险"
182
             }],
276
             }],
277
+            certificates: [{
278
+              value: 1,
279
+              label: '内地身份证'
280
+              }, {
281
+              value: 2,
282
+              label: "社保卡"
283
+              },{
284
+              value: 3,
285
+              label: "护照"
286
+              },{
287
+              value: 4,
288
+              label: "军官证"
289
+              },{
290
+              value: 5,
291
+              label: "台胞证"
292
+              },{
293
+              value: 6,
294
+              label: "港澳地区身份证"
295
+            }],
296
+            settlement: 
297
+            [
298
+              {value: 1,label: '医保'},
299
+              {value: 2,label: '自费'},
300
+              {value: 3,label:'公费'},
301
+              {value: 4,label:'农保'},
302
+              {value: 5,label:'会员'},
303
+              {value: 6,label:'职工'},
304
+              {value: 7,label:'合同'}
305
+            ],
306
+            medicalCare: [{
307
+              value: 1,
308
+              label: '职工基本医疗保险'
309
+              }, {
310
+              value: 2,
311
+              label: "公务员医疗补助"
312
+              },{
313
+              value: 3,
314
+              label: "大额医疗费用补助"
315
+              },{
316
+              value: 4,
317
+              label: "离休人员医疗"
318
+              },{
319
+              value: 5,
320
+              label: "城乡居民基本医疗保险"
321
+              },{
322
+              value: 6,
323
+              label: "城乡居民大病医疗保险"
324
+              },
325
+              {
326
+              value: 7,
327
+              label: "生育保险"
328
+            }],
329
+            newRegister: [{
330
+              value: 1,
331
+              label: '普通'
332
+              }, {
333
+              value: 2,
334
+              label: "主治"
335
+              },{
336
+              value: 3,
337
+              label: "主任"
338
+              },{
339
+              value: 4,
340
+              label: "免收诊金"
341
+              },{
342
+              value: 5,
343
+              label: "专家"
344
+            }],
183
             
345
             
184
             tablePatient:[],
346
             tablePatient:[],
185
             creator:"",
347
             creator:"",
186
-            startUnix:''
348
+            startUnix:'',
349
+
350
+            dialogVisible:false,
351
+            form:{}
187
         }
352
         }
188
     },
353
     },
189
     created(){
354
     created(){
205
        this.startUnix = todayUnix - 28800
370
        this.startUnix = todayUnix - 28800
206
       
371
       
207
        this.getlist()
372
        this.getlist()
373
+       this.getDictionaryDataConfig()
208
     },
374
     },
209
     methods:{
375
     methods:{
210
         searchAction(){
376
         searchAction(){
349
       },
515
       },
350
 
516
 
351
       handleSelect(val){   
517
       handleSelect(val){   
352
-          this.search_input = val.name
353
-          this.getlist()
354
-       },
518
+        this.search_input = val.name
519
+        this.getlist()
520
+      },
521
+      handleClose(done){
522
+        done()
523
+      },
524
+      open(obj){
525
+        this.dialogVisible = true
526
+        this.form = obj
527
+        console.log(obj)
528
+      },
529
+      getDictionaryDataConfig(type){
530
+        let arr = getDictionaryDataConfig('system','social_type')
531
+        let str = ''
532
+        arr.map(item => {
533
+          if(item.id == type)
534
+          str = item.name
535
+        })
536
+        return str
537
+      },
538
+      getCertificates(type){
539
+        let arr = this.certificates
540
+        let str = ''
541
+        arr.map(item => {
542
+          if(item.value == type)
543
+          str = item.label
544
+        })
545
+        return str
546
+      },
547
+      getSettlement(type){
548
+        let arr = this.settlement
549
+        let str = ''
550
+        arr.map(item => {
551
+          if(item.value == type)
552
+          str = item.label
553
+        })
554
+        return str
555
+      },
556
+      getMedicalCare(type){
557
+        let arr = this.medicalCare
558
+        let str = ''
559
+        arr.map(item => {
560
+          if(item.value == type)
561
+          str = item.label
562
+        })
563
+        return str
564
+      },
565
+      getRegister(type){
566
+        let arr = this.newRegister
567
+        let str = ''
568
+        arr.map(item => {
569
+          if(item.value == type)
570
+          str = item.label
571
+        })
572
+        return str
573
+      },
574
+      getDepartMent(type){
575
+        let arr = this.departMent
576
+        let str = ''
577
+        arr.map(item => {
578
+          if(item.id == type)
579
+          str = item.name
580
+        })
581
+        return str
582
+      },
355
 
583
 
356
     }
584
     }
357
 }
585
 }
358
 </script>
586
 </script>
359
 
587
 
360
 <style lang="scss" scoped>
588
 <style lang="scss" scoped>
589
+.basicForm{
590
+  display: flex;
591
+  flex-wrap: wrap;
592
+  justify-content: space-between;
593
+  .el-form-item{
594
+    width: 33%;
595
+  }
596
+}
361
 </style>
597
 </style>