mainqaq 2 years ago
parent
commit
2bea47244e

+ 2 - 2
src/views/layout/Layout.vue View File

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

+ 1 - 1
src/xt_pages/Pharmacy/DrugDispensing.vue View File

366
           this.$message.error("未选择任何数据");
366
           this.$message.error("未选择任何数据");
367
           return
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
     handleSelectionChange(val) {
372
     handleSelectionChange(val) {

+ 1 - 1
src/xt_pages/Pharmacy/PatientDispensing.vue View File

396
         this.$message.error("未选择任何数据");
396
         this.$message.error("未选择任何数据");
397
         return
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 View File

14
         <div>药品名称:{{name}}</div>
14
         <div>药品名称:{{name}}</div>
15
         <div>规格:{{specifications}}</div>
15
         <div>规格:{{specifications}}</div>
16
         <div>发药状态:{{state_name}}</div>
16
         <div>发药状态:{{state_name}}</div>
17
-        <div>日期:</div>
17
+        <div>日期:{{times}}</div>
18
 <!--        <div v-if="state==2">领药人:</div>-->
18
 <!--        <div v-if="state==2">领药人:</div>-->
19
       </div>
19
       </div>
20
 
20
 
83
       tableData: [],
83
       tableData: [],
84
       isClose:false,
84
       isClose:false,
85
       name:"",
85
       name:"",
86
+      times:"",
86
       specifications:"",
87
       specifications:"",
87
       state_name:"",
88
       state_name:"",
88
       org_name: this.$store.getters.xt_user.org.org_name,
89
       org_name: this.$store.getters.xt_user.org.org_name,
97
         type:Number
98
         type:Number
98
     }
99
     }
99
   },
100
   },
100
-
101
+  created(){
102
+    this.init();
103
+  },
101
   methods: {
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
     // isClose() {
115
     // isClose() {
103
     //   this.visibility = false;
116
     //   this.visibility = false;
104
     // },
117
     // },
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
       this.visibility = true;
131
       this.visibility = true;
118
       this.name = data.name
132
       this.name = data.name
119
       this.specifications = data.specifications
133
       this.specifications = data.specifications
157
         <div style="width: 230px;padding: 10px 0;">药品名称:${this.name}</div>
171
         <div style="width: 230px;padding: 10px 0;">药品名称:${this.name}</div>
158
         <div style="width: 230px;padding: 10px 0;">规格:${this.specifications}</div>
172
         <div style="width: 230px;padding: 10px 0;">规格:${this.specifications}</div>
159
         <div style="width: 230px;padding: 10px 0;">发药状态:${this.state_name}</div>
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
         </div>`, // 打印出来的标题
175
         </div>`, // 打印出来的标题
162
         data: this.tableData, // 需要打印的数据
176
         data: this.tableData, // 需要打印的数据
163
         serial: true, // 是否需要打印序列号
177
         serial: true, // 是否需要打印序列号

+ 17 - 4
src/xt_pages/Pharmacy/print/patientPrint.vue View File

13
       <div class="list_title">
13
       <div class="list_title">
14
         <div>患者名称:{{name}}</div>
14
         <div>患者名称:{{name}}</div>
15
         <div>发药状态:{{state}}</div>
15
         <div>发药状态:{{state}}</div>
16
-        <div>日期:</div>
16
+        <div>日期:{{times}}</div>
17
       </div>
17
       </div>
18
 
18
 
19
       <el-table
19
       <el-table
82
       isClose:false,
82
       isClose:false,
83
       name:"",
83
       name:"",
84
       state:null,
84
       state:null,
85
+      times:"",
85
     };
86
     };
86
   },
87
   },
87
   props: {
88
   props: {
89
       type: Object,
90
       type: Object,
90
     },
91
     },
91
   },
92
   },
92
-
93
+  created(){
94
+    this.init();
95
+  },
93
   methods: {
96
   methods: {
94
     // isClose() {
97
     // isClose() {
95
     //   this.visibility = false;
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
     hide: function () {
110
     hide: function () {
99
       this.visibility = false;
111
       this.visibility = false;
105
         }
117
         }
106
       }
118
       }
107
     },
119
     },
108
-    show: function (val,data,state) {
120
+    show: function (val,data,state,times) {
121
+      this.times = times
109
       this.visibility = true;
122
       this.visibility = true;
110
       console.log("val",val)
123
       console.log("val",val)
111
       this.tableData = val
124
       this.tableData = val
146
         <div style="width: 940px;border-bottom: 1px solid;display: flex;margin: 30px auto;font-size:14px;">
159
         <div style="width: 940px;border-bottom: 1px solid;display: flex;margin: 30px auto;font-size:14px;">
147
         <div style="width: 310px;padding: 10px 0;">患者名称:${this.name}</div>
160
         <div style="width: 310px;padding: 10px 0;">患者名称:${this.name}</div>
148
         <div style="width: 320px;padding: 10px 0;">发药状态:${this.state}</div>
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
         </div>`, // 打印出来的标题
163
         </div>`, // 打印出来的标题
151
         data: this.tableData, // 需要打印的数据
164
         data: this.tableData, // 需要打印的数据
152
         serial: true, // 是否需要打印序列号
165
         serial: true, // 是否需要打印序列号

+ 4 - 1
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue View File

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