瀏覽代碼

修改医嘱模版

csx 6 年之前
父節點
當前提交
5fc4a96fb8
共有 3 個文件被更改,包括 37 次插入22 次删除
  1. 1 1
      src/xt_pages/data/druguseTemplate.vue
  2. 8 3
      src/xt_pages/user/doctorAdvice.vue
  3. 28 18
      src/xt_pages/user/inspection.vue

+ 1 - 1
src/xt_pages/data/druguseTemplate.vue 查看文件

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

+ 8 - 3
src/xt_pages/user/doctorAdvice.vue 查看文件

4
         <div class="patient-app-container advice-container app-container">
4
         <div class="patient-app-container advice-container app-container">
5
             <div class="cellButton" style="float:right;">
5
             <div class="cellButton" style="float:right;">
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>
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
             </div>
8
             </div>
9
             <div class="cell clearfix">
9
             <div class="cell clearfix">
10
                 <el-input   style="width: 400px;" v-model="listQuery.keywords" class="filter-item" size="small" />
10
                 <el-input   style="width: 400px;" v-model="listQuery.keywords" class="filter-item" size="small" />
32
                 <span class="cellLine"> - </span>
32
                 <span class="cellLine"> - </span>
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>
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
             </div>
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
                 <el-table-column align="center" label="全选" width="60px" type="selection" fixed></el-table-column>
37
                 <el-table-column align="center" label="全选" width="60px" type="selection" fixed></el-table-column>
38
                 <!--<el-table-column type="index" :index="indexMethod"  label="序号" width="60px" align="center"></el-table-column>-->
38
                 <!--<el-table-column type="index" :index="indexMethod"  label="序号" width="60px" align="center"></el-table-column>-->
252
                         <el-col :span="5">
252
                         <el-col :span="5">
253
                             <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" round  @click="openGroupAdvice(1)">修改医嘱内容</el-button>
253
                             <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" round  @click="openGroupAdvice(1)">修改医嘱内容</el-button>
254
                         </el-col>
254
                         </el-col>
255
-                        
255
+
256
                     </el-row>
256
                     </el-row>
257
                     <el-row>
257
                     <el-row>
258
                       <el-col :span="24">
258
                       <el-col :span="24">
3029
 };
3029
 };
3030
 </script>
3030
 </script>
3031
 
3031
 
3032
+<style>
3033
+  #oictable ::-webkit-scrollbar {
3034
+    height: 15px;
3035
+  }
3036
+</style>
3032
 
3037
 
3033
 <style rel="stylesheet/scss" lang="scss" scoped>
3038
 <style rel="stylesheet/scss" lang="scss" scoped>
3034
 
3039
 

+ 28 - 18
src/xt_pages/user/inspection.vue 查看文件

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