Selaa lähdekoodia

修改医嘱模版

csx 6 vuotta sitten
vanhempi
commit
5fc4a96fb8

+ 1 - 1
src/xt_pages/data/druguseTemplate.vue Näytä tiedosto

@@ -173,8 +173,8 @@
173 173
               </el-form>
174 174
               <div class="txsj" style="text-align: center;margin-bottom: 30px">
175 175
                 <el-button round @click="newRecordAction">新增医嘱内容</el-button>
176
-                <el-button round @click="deleteRecordAction">删除医嘱内容</el-button>
177 176
                 <el-button round @click="modifyRecordAction">修改医嘱内容</el-button>
177
+                <el-button round @click="deleteRecordAction">删除医嘱内容</el-button>
178 178
               </div>
179 179
               <el-table
180 180
                 ref="table" :data="adviceTableData"

+ 8 - 3
src/xt_pages/user/doctorAdvice.vue Näytä tiedosto

@@ -4,7 +4,7 @@
4 4
         <div class="patient-app-container advice-container app-container">
5 5
             <div class="cellButton" style="float:right;">
6 6
               <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" size="small"   @click="openNew" type="primary" icon="el-icon-circle-plus-outline" >新增</el-button>
7
-                <el-button size="small"  @click="printThisInfo()" :type="adviceType==1 || adviceType == 3?'primary':'warning'" icon="el-icon-printer" >打印</el-button>            
7
+                <el-button size="small"  @click="printThisInfo()" :type="adviceType==1 || adviceType == 3?'primary':'warning'" icon="el-icon-printer" >打印</el-button>
8 8
             </div>
9 9
             <div class="cell clearfix">
10 10
                 <el-input   style="width: 400px;" v-model="listQuery.keywords" class="filter-item" size="small" />
@@ -32,7 +32,7 @@
32 32
                 <span class="cellLine"> - </span>
33 33
                 <el-date-picker size="small" v-model="listQuery.end_time"  prefix-icon="el-icon-date" @change="changeTime" :editable="false" style="width: 196px;" type="date" placeholder="选择日期时间" align="right" :picker-options="pickerOptions"  format="yyyy-MM-dd" value-format="yyyy-MM-dd"> </el-date-picker>
34 34
             </div>
35
-            <el-table @cell-click="clickuseradvicecell" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"  row-class-name="user-advice-table-row" :span-method="mergeSpan" ref="multipleTable" :data="adviceTableData" border fit highlight-current-row @select="selectAdvice" @selection-change="changeAdvice" style="width: 100%;margin-top: 10px;" :cell-class-name="adviceNameShow" >
35
+            <el-table id="oictable" @cell-click="clickuseradvicecell" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"  row-class-name="user-advice-table-row" :span-method="mergeSpan" ref="multipleTable" :data="adviceTableData" border fit highlight-current-row @select="selectAdvice" @selection-change="changeAdvice" style="width: 100%;margin-top: 10px;" :cell-class-name="adviceNameShow" >
36 36
 
37 37
                 <el-table-column align="center" label="全选" width="60px" type="selection" fixed></el-table-column>
38 38
                 <!--<el-table-column type="index" :index="indexMethod"  label="序号" width="60px" align="center"></el-table-column>-->
@@ -252,7 +252,7 @@
252 252
                         <el-col :span="5">
253 253
                             <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" round  @click="openGroupAdvice(1)">修改医嘱内容</el-button>
254 254
                         </el-col>
255
-                        
255
+
256 256
                     </el-row>
257 257
                     <el-row>
258 258
                       <el-col :span="24">
@@ -3029,6 +3029,11 @@ export default {
3029 3029
 };
3030 3030
 </script>
3031 3031
 
3032
+<style>
3033
+  #oictable ::-webkit-scrollbar {
3034
+    height: 15px;
3035
+  }
3036
+</style>
3032 3037
 
3033 3038
 <style rel="stylesheet/scss" lang="scss" scoped>
3034 3039
 

+ 28 - 18
src/xt_pages/user/inspection.vue Näytä tiedosto

@@ -5,7 +5,7 @@
5 5
       <el-row :gutter="20">
6 6
         <el-col :span="7">
7 7
           <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :data="projects" border style="width: 100%" highlight-current-row @current-change="handleCurrentChange" ref="singleTable" >
8
-            <el-table-column label="检验检查项目">
8
+            <el-table-column label="检验检查项目" align="center">
9 9
               <el-table-column
10 10
                 prop="project_name"
11 11
                 label="检验项目"
@@ -31,10 +31,11 @@
31 31
           </div>
32 32
           <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
33 33
             :data="items" border style="width: 100%" id="user-inspection-order"  >
34
-         
34
+
35 35
             <el-table-column
36 36
               prop="item_name"
37 37
               label="检验项目"
38
+              align="center"
38 39
               min-width="180">
39 40
               <template slot-scope="scope">
40 41
                 {{scope.row.item_name}} {{scope.row.item_name_addition}}
@@ -43,6 +44,7 @@
43 44
             <el-table-column
44 45
               prop="name"
45 46
               label="结果"
47
+              align="center"
46 48
               min-width="80">
47 49
               <template slot-scope="scope">
48 50
                 <span>{{scope.row.value}}</span>
@@ -52,6 +54,7 @@
52 54
             <el-table-column
53 55
               prop="address"
54 56
               label="参考值"
57
+              align="center"
55 58
               min-width="120">
56 59
               <template slot-scope="scope">
57 60
                 <span v-if="scope.row.range_type==1">{{scope.row.range_min}}~{{scope.row.range_max}}</span>
@@ -61,6 +64,7 @@
61 64
             <el-table-column
62 65
               prop="unit"
63 66
               label="单位"
67
+              align="center"
64 68
               min-width="80">
65 69
             </el-table-column>
66 70
           </el-table>
@@ -100,13 +104,13 @@
100 104
 
101 105
           <template v-for="(item, index) in form.formItem" >
102 106
             <el-col :span="7" :key="index">
103
-              <el-form-item :label="item.item_name" v-if="item.range_type==1"  :key="item.item_id" :prop="'formItem.' + index + '.value'" 
107
+              <el-form-item :label="item.item_name" v-if="item.range_type==1"  :key="item.item_id" :prop="'formItem.' + index + '.value'"
104 108
              >
105 109
                 <el-input placeholder="请填入" v-model="item.value" style="width:95%" type="number">
106 110
                   <template slot="append">{{item.unit}}</template>
107 111
                 </el-input>
108
-              </el-form-item> 
109
-              <el-form-item :label="item.item_name" v-else :key="item.item_id" :prop="'formItem.' + index + '.value'"  
112
+              </el-form-item>
113
+              <el-form-item :label="item.item_name" v-else :key="item.item_id" :prop="'formItem.' + index + '.value'"
110 114
               >
111 115
                 <el-select  v-model="item.value" placeholder="请选择" style="width:95%">
112 116
                   <el-option
@@ -116,14 +120,14 @@
116 120
                     :value="optionItem">
117 121
                   </el-option>
118 122
                 </el-select>
119
-              </el-form-item> 
123
+              </el-form-item>
120 124
             </el-col>
121 125
             <el-col :span="1" :key="'form-col'+index">&nbsp;</el-col>
122 126
           </template>
123
-          
127
+
124 128
         </el-row>
125
-        
126
-        
129
+
130
+
127 131
       </el-form>
128 132
       <div slot="footer" class="dialog-footer">
129 133
         <el-button @click="dialogFormVisible = false">取 消</el-button>
@@ -180,12 +184,12 @@ export default {
180 184
   },
181 185
   methods:{
182 186
     deleteInspection(){
183
-      
187
+
184 188
       if(this.project == null || this.itemDate == "") {
185 189
         this.$message.error("请先选择删除删除的记录");
186 190
         return false;
187 191
       }
188
-      
192
+
189 193
       this.$confirm('确认删除此记录?', '删除', {
190 194
           confirmButtonText: '确定',
191 195
           cancelButtonText: '取消',
@@ -203,7 +207,7 @@ export default {
203 207
                     type: "success",
204 208
                     duration: 2000
205 209
                 });
206
-                
210
+
207 211
                 for( var index in this.projects) {
208 212
                   if (this.projects[index].project_id == params.project_id) {
209 213
                     this.projects[index].count --;
@@ -226,7 +230,7 @@ export default {
226 230
         this.$message.error("请先选择项目");
227 231
         return false;
228 232
       }
229
-      
233
+
230 234
       this.form.method = "edit";
231 235
       this.formTitle = "修改" + this.project.project_name;
232 236
       this.form.project_id = this.project.project_id;
@@ -268,7 +272,7 @@ export default {
268 272
         // formItem["value"] = '';
269 273
         // if (formItem.range_type==2) {
270 274
         //   formItem["select_options"] = formItem.range_options.split(",");
271
-        // } 
275
+        // }
272 276
         this.form.formItem.push({
273 277
           id:    0,
274 278
           project_id: this.project.inspection_reference[index].project_id,
@@ -340,7 +344,7 @@ export default {
340 344
                   this.items.push(item);
341 345
                 }
342 346
               }
343
-              
347
+
344 348
               this.resetForm(formName);
345 349
               this.dialogFormVisible = false;
346 350
 
@@ -421,7 +425,7 @@ export default {
421 425
                   this.items.push(item);
422 426
                 }
423 427
               }
424
-              
428
+
425 429
               this.resetForm(formName);
426 430
               this.dialogFormVisible = false;
427 431
 
@@ -439,7 +443,7 @@ export default {
439 443
           return false;
440 444
         }
441 445
       });
442
-      
446
+
443 447
     },
444 448
     fetchInspectionReference(){
445 449
       fetchInspectionReference(this.patientID).then(response=>{
@@ -480,7 +484,7 @@ export default {
480 484
         this.fetchPatientInspections(this.queryParams);
481 485
       }
482 486
     },
483
-    
487
+
484 488
     handleCurrentChangePage(val) {
485 489
         this.itemLoading = true;
486 490
       this.queryParams.page = val;
@@ -549,6 +553,12 @@ export default {
549 553
 };
550 554
 </script>
551 555
 
556
+<style>
557
+  #oictable ::-webkit-scrollbar {
558
+    height: 15px;
559
+  }
560
+</style>
561
+
552 562
 <style >
553 563
 #user-inspection-order td {
554 564
     border-bottom:0px !important;