mainqaq 2 年 前
コミット
2bea47244e

+ 2 - 2
src/views/layout/Layout.vue ファイルの表示

@@ -12,10 +12,10 @@
12 12
           <i class="iconfont icon-s_bingli navIcon"></i>
13 13
           <p>电子病历</p>
14 14
         </div>
15
-        <!-- <div v-if="medicianshow" :class="index == 7 ? 'navOne navActive' : 'navOne'" @click="clickActive(7,'药房管理')">
15
+        <div v-if="medicianshow" :class="index == 7 ? 'navOne navActive' : 'navOne'" @click="clickActive(7,'药房管理')">
16 16
           <i class="iconfont icon-shangcheng-1 navIcon"></i>
17 17
           <p>药房管理</p>
18
-        </div> -->
18
+        </div>
19 19
         <div v-if="touxiShow" :class="index == 2 ? 'navOne navActive' : 'navOne'" @click="clickActive(2,'透析管理')">
20 20
           <i class="iconfont icon-computer_fill navIcon"></i>
21 21
           <p>透析管理</p>

+ 1 - 1
src/xt_pages/Pharmacy/DrugDispensing.vue ファイルの表示

@@ -366,7 +366,7 @@ export default {
366 366
           this.$message.error("未选择任何数据");
367 367
           return
368 368
       }
369
-      this.$refs.drugprint.show(this.tableData,this.currentRow,this.state,this.multipleSelection);
369
+      this.$refs.drugprint.show(this.tableData,this.currentRow,this.state,this.multipleSelection,this.start_time);
370 370
     },
371 371
     //列表选择
372 372
     handleSelectionChange(val) {

+ 1 - 1
src/xt_pages/Pharmacy/PatientDispensing.vue ファイルの表示

@@ -396,7 +396,7 @@ export default {
396 396
         this.$message.error("未选择任何数据");
397 397
         return
398 398
       }
399
-      this.$refs.patientprint.show(this.tableData,this.currentRow,this.state);
399
+      this.$refs.patientprint.show(this.tableData,this.currentRow,this.state,this.start_time);
400 400
     },
401 401
 
402 402
     // 搜索患者

+ 18 - 4
src/xt_pages/Pharmacy/print/drugPrint.vue ファイルの表示

@@ -14,7 +14,7 @@
14 14
         <div>药品名称:{{name}}</div>
15 15
         <div>规格:{{specifications}}</div>
16 16
         <div>发药状态:{{state_name}}</div>
17
-        <div>日期:</div>
17
+        <div>日期:{{times}}</div>
18 18
 <!--        <div v-if="state==2">领药人:</div>-->
19 19
       </div>
20 20
 
@@ -83,6 +83,7 @@ export default {
83 83
       tableData: [],
84 84
       isClose:false,
85 85
       name:"",
86
+      times:"",
86 87
       specifications:"",
87 88
       state_name:"",
88 89
       org_name: this.$store.getters.xt_user.org.org_name,
@@ -97,8 +98,20 @@ export default {
97 98
         type:Number
98 99
     }
99 100
   },
100
-
101
+  created(){
102
+    this.init();
103
+  },
101 104
   methods: {
105
+    init(){
106
+      // let year = new Date().getFullYear();
107
+      // let month = new Date().getMonth() +1;
108
+      // let day = new Date().getDate();
109
+      // let hour = new Date().getHours();
110
+      // let minute = new Date().getMinutes();
111
+      // this.times = year + "年" + month + "月" + day + "日" + hour + "时" + minute + "分"
112
+      // console.log("times:",this.times)
113
+    },
114
+
102 115
     // isClose() {
103 116
     //   this.visibility = false;
104 117
     // },
@@ -113,7 +126,8 @@ export default {
113 126
         }
114 127
       }
115 128
     },
116
-    show: function (val,data,state,ids) {
129
+    show: function (val,data,state,ids,times) {
130
+      this.times = times
117 131
       this.visibility = true;
118 132
       this.name = data.name
119 133
       this.specifications = data.specifications
@@ -157,7 +171,7 @@ export default {
157 171
         <div style="width: 230px;padding: 10px 0;">药品名称:${this.name}</div>
158 172
         <div style="width: 230px;padding: 10px 0;">规格:${this.specifications}</div>
159 173
         <div style="width: 230px;padding: 10px 0;">发药状态:${this.state_name}</div>
160
-        <div style="width: 230px;padding: 10px 0;">日期:</div>
174
+        <div style="width: 230px;padding: 10px 0;">日期:${this.times}</div>
161 175
         </div>`, // 打印出来的标题
162 176
         data: this.tableData, // 需要打印的数据
163 177
         serial: true, // 是否需要打印序列号

+ 17 - 4
src/xt_pages/Pharmacy/print/patientPrint.vue ファイルの表示

@@ -13,7 +13,7 @@
13 13
       <div class="list_title">
14 14
         <div>患者名称:{{name}}</div>
15 15
         <div>发药状态:{{state}}</div>
16
-        <div>日期:</div>
16
+        <div>日期:{{times}}</div>
17 17
       </div>
18 18
 
19 19
       <el-table
@@ -82,6 +82,7 @@ export default {
82 82
       isClose:false,
83 83
       name:"",
84 84
       state:null,
85
+      times:"",
85 86
     };
86 87
   },
87 88
   props: {
@@ -89,11 +90,22 @@ export default {
89 90
       type: Object,
90 91
     },
91 92
   },
92
-
93
+  created(){
94
+    this.init();
95
+  },
93 96
   methods: {
94 97
     // isClose() {
95 98
     //   this.visibility = false;
96 99
     // },
100
+    init(){
101
+      // let year = new Date().getFullYear();
102
+      // let month = new Date().getMonth() +1;
103
+      // let day = new Date().getDate();
104
+      // let hour = new Date().getHours();
105
+      // let minute = new Date().getMinutes();
106
+      // this.times = year + "年" + month + "月" + day + "日" + hour + "时" + minute + "分"
107
+      // console.log("times:",this.times)
108
+    },
97 109
 
98 110
     hide: function () {
99 111
       this.visibility = false;
@@ -105,7 +117,8 @@ export default {
105 117
         }
106 118
       }
107 119
     },
108
-    show: function (val,data,state) {
120
+    show: function (val,data,state,times) {
121
+      this.times = times
109 122
       this.visibility = true;
110 123
       console.log("val",val)
111 124
       this.tableData = val
@@ -146,7 +159,7 @@ export default {
146 159
         <div style="width: 940px;border-bottom: 1px solid;display: flex;margin: 30px auto;font-size:14px;">
147 160
         <div style="width: 310px;padding: 10px 0;">患者名称:${this.name}</div>
148 161
         <div style="width: 320px;padding: 10px 0;">发药状态:${this.state}</div>
149
-        <div style="width: 310px;padding: 10px 0;">日期:</div>
162
+        <div style="width: 310px;padding: 10px 0;">日期:${this.times}</div>
150 163
         </div>`, // 打印出来的标题
151 164
         data: this.tableData, // 需要打印的数据
152 165
         serial: true, // 是否需要打印序列号

+ 4 - 1
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue ファイルの表示

@@ -14,7 +14,7 @@
14 14
                         <el-form-item label="模版名称:" prop="name" label-position="right">
15 15
                             <el-input v-model="tempForm.name" placeholder=""></el-input>
16 16
                         </el-form-item>
17
-
17
+                      <el-button  @click="lili">调试</el-button>
18 18
                         <el-form-item label="透析模式: " prop="mode_id" label-position="right">
19 19
                             <el-select v-model="tempForm.mode_id" style="width:100%;" placeholder="请选择"
20 20
                                        :disabled="this.$route.query.id > 0 ?true:false" v-if="this.$route.query.id == 0"
@@ -397,6 +397,9 @@
397 397
       }
398 398
     },
399 399
     methods: {
400
+      lili(){
401
+        console.log("this.$store.getters.treatment_mode",this.$store.getters.treatment_mode)
402
+      },
400 403
       save() {
401 404
         if (this.prescriptions[0].advices.length == 0 && this.prescriptions[0].project.length == 0) {
402 405
           this.$message.error('请先开处方')