Procházet zdrojové kódy

Merge branches '20201109_pc_vue_new_branch' and '20220812' of http://git.shengws.com/csx/Vue_New into 20220812

XMLWAN před 2 roky
rodič
revize
086c2fd40f

+ 168 - 242
src/xt_pages/Pharmacy/DrugDispensing.vue Zobrazit soubor

18
               format="yyyy-MM-dd"
18
               format="yyyy-MM-dd"
19
               value-format="yyyy-MM-dd"
19
               value-format="yyyy-MM-dd"
20
               placeholder="选择日期"
20
               placeholder="选择日期"
21
-              @change="changeTimes()"
21
+              :change="testsss()"
22
             >
22
             >
23
             </el-date-picker>
23
             </el-date-picker>
24
           </div>
24
           </div>
25
 
25
 
26
           <div class="list">
26
           <div class="list">
27
-            <el-radio-group v-model="state" @change="lala()">
27
+            <el-radio-group v-model="state">
28
               <el-radio :label="1">待发药</el-radio>
28
               <el-radio :label="1">待发药</el-radio>
29
               <el-radio :label="2">已发药</el-radio>
29
               <el-radio :label="2">已发药</el-radio>
30
             </el-radio-group>
30
             </el-radio-group>
46
             </el-button>
46
             </el-button>
47
           </div>
47
           </div>
48
 
48
 
49
-          <el-table v-if="state == 1"
49
+          <el-table
50
+            v-if="state == 1"
50
             :height="tableHeight"
51
             :height="tableHeight"
51
-            :data="waiting_drug"
52
+            :data="tableData"
52
             border
53
             border
53
             style="width: 100%"
54
             style="width: 100%"
54
             highlight-current-row
55
             highlight-current-row
55
-            ref="table01"
56
+            ref="singleTable"
56
             @current-change="handleCurrentChange"
57
             @current-change="handleCurrentChange"
57
           >
58
           >
58
             <el-table-column prop="name" label="名称" width="100">
59
             <el-table-column prop="name" label="名称" width="100">
59
                <template slot-scope="scope">
60
                <template slot-scope="scope">
60
-                {{scope.row.name}}
61
+                {{scope.row.drug_name}}
61
               </template>
62
               </template>
62
             </el-table-column>
63
             </el-table-column>
63
             <el-table-column prop="specifications" label="规格" width="100">
64
             <el-table-column prop="specifications" label="规格" width="100">
64
               <template slot-scope="scope">
65
               <template slot-scope="scope">
65
-                {{scope.row.specifications}}
66
+                {{scope.row.dose}}{{scope.row.dose_unit}}*{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
66
               </template>
67
               </template>
67
             </el-table-column>
68
             </el-table-column>
68
             <el-table-column prop="stock" label="库存" width="100">
69
             <el-table-column prop="stock" label="库存" width="100">
69
                <template slot-scope="scope">
70
                <template slot-scope="scope">
70
-                {{scope.row.stock}}
71
+                {{getWarehoseInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}
71
               </template>
72
               </template>
72
             </el-table-column>
73
             </el-table-column>
73
           </el-table>
74
           </el-table>
75
           <el-table
76
           <el-table
76
             v-if="state == 2"
77
             v-if="state == 2"
77
             :height="tableHeight"
78
             :height="tableHeight"
78
-            :data="issued_drug"
79
+            :data="tableData"
79
             border
80
             border
80
             style="width: 100%"
81
             style="width: 100%"
81
             highlight-current-row
82
             highlight-current-row
82
-            @current-change="handleCurrentChange"
83
-            ref="table02"
83
+            @current-change="handleSelectionChangeOne"
84
+            ref="singleTable"
84
           >
85
           >
85
             <el-table-column prop="name" label="名称" width="100">
86
             <el-table-column prop="name" label="名称" width="100">
86
                <template slot-scope="scope">
87
                <template slot-scope="scope">
87
-                {{scope.row.name}}
88
+                {{scope.row.drug_name}}
88
               </template>
89
               </template>
89
             </el-table-column>
90
             </el-table-column>
90
             <el-table-column prop="specifications" label="规格" width="100">
91
             <el-table-column prop="specifications" label="规格" width="100">
91
               <template slot-scope="scope">
92
               <template slot-scope="scope">
92
-                {{scope.row.specifications}}
93
+                {{scope.row.dose}}{{scope.row.dose_unit}}*{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
93
               </template>
94
               </template>
94
             </el-table-column>
95
             </el-table-column>
95
             <el-table-column prop="stock" label="库存" width="100">
96
             <el-table-column prop="stock" label="库存" width="100">
96
                <template slot-scope="scope">
97
                <template slot-scope="scope">
97
-                {{scope.row.stock}}
98
+                {{getWarehoseInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}
98
               </template>
99
               </template>
99
             </el-table-column>
100
             </el-table-column>
100
           </el-table>
101
           </el-table>
102
       </div>
103
       </div>
103
       <div class="mainRight">
104
       <div class="mainRight">
104
         <div class="titlelist">
105
         <div class="titlelist">
105
-<!--          <el-button type="primary" @click="tt">调试</el-button>-->
106
           <el-button type="primary" @click="dispense" v-if="state == 1">发药</el-button>
106
           <el-button type="primary" @click="dispense" v-if="state == 1">发药</el-button>
107
           <el-button type="primary" @click="toPrint">打印</el-button>
107
           <el-button type="primary" @click="toPrint">打印</el-button>
108
-<!--          <el-button @click="tt">调试</el-button>-->
109
-<!--          <el-button type="primary" @click="toSetting">设置</el-button>-->
108
+          <el-button type="primary" @click="toSetting">设置</el-button>
110
         </div>
109
         </div>
111
         <el-divider></el-divider>
110
         <el-divider></el-divider>
112
         <div>
111
         <div>
113
           <el-table
112
           <el-table
114
             :height="tableHeight"
113
             :height="tableHeight"
115
-            :data="tableData"
114
+            :data="tableData_list"
116
             border
115
             border
117
             style="width: 1328px"
116
             style="width: 1328px"
118
             @selection-change="handleSelectionChange"
117
             @selection-change="handleSelectionChange"
119
              v-if="state == 1"
118
              v-if="state == 1"
120
           >
119
           >
120
+            >
121
             <el-table-column type="selection" width="55"> </el-table-column>
121
             <el-table-column type="selection" width="55"> </el-table-column>
122
             <el-table-column type="index" label="序号" width="120" align="center">
122
             <el-table-column type="index" label="序号" width="120" align="center">
123
+              <template slot-scope="scope">
124
+                {{scope.$index + 1}}
125
+              </template>
123
             </el-table-column>
126
             </el-table-column>
124
             <el-table-column prop="name" label="患者名称" width="180" align="center">
127
             <el-table-column prop="name" label="患者名称" width="180" align="center">
125
                 <template slot-scope="scope">
128
                 <template slot-scope="scope">
126
-                 {{scope.row.name}}
129
+                 {{getPatientName(scope.row.patient_id)}}
127
               </template>
130
               </template>
128
             </el-table-column>
131
             </el-table-column>
129
             <el-table-column prop="name" label="单次用量" width="170" align="center">
132
             <el-table-column prop="name" label="单次用量" width="170" align="center">
130
                <template  slot-scope="scope">
133
                <template  slot-scope="scope">
131
-                 {{scope.row.single_dosage}}
134
+                 {{scope.row.single_dose}}
132
                </template>
135
                </template>
133
             </el-table-column>
136
             </el-table-column>
134
             <el-table-column prop="name" label="用法" width="160" align="center">
137
             <el-table-column prop="name" label="用法" width="160" align="center">
135
                <template  slot-scope="scope">
138
                <template  slot-scope="scope">
136
-                 {{scope.row.usage}}
139
+                 {{scope.row.delivery_way}}
137
                </template>
140
                </template>
138
             </el-table-column>
141
             </el-table-column>
139
             <el-table-column prop="name" label="频率" width="160" align="center">
142
             <el-table-column prop="name" label="频率" width="160" align="center">
140
                 <template  slot-scope="scope">
143
                 <template  slot-scope="scope">
141
-                 {{scope.row.frequency}}
144
+                 {{scope.row.execution_frequency}}
142
                </template>
145
                </template>
143
             </el-table-column>
146
             </el-table-column>
144
             <el-table-column prop="name" label="天数" width="160" align="center">
147
             <el-table-column prop="name" label="天数" width="160" align="center">
145
                <template  slot-scope="scope">
148
                <template  slot-scope="scope">
146
-                 {{scope.row.days}}
149
+                 {{scope.row.day}}
147
                </template>
150
                </template>
148
             </el-table-column>
151
             </el-table-column>
149
             <el-table-column prop="name" label="总量" width="160" align="center">
152
             <el-table-column prop="name" label="总量" width="160" align="center">
150
                 <template  slot-scope="scope">
153
                 <template  slot-scope="scope">
151
-                 {{scope.row.total}}
154
+                 {{scope.row.prescribing_number}}
152
                </template>
155
                </template>
153
             </el-table-column>
156
             </el-table-column>
154
             <el-table-column prop="name" label="数据来源" width="162" align="center">
157
             <el-table-column prop="name" label="数据来源" width="162" align="center">
155
                 <template  slot-scope="scope">
158
                 <template  slot-scope="scope">
156
-                  {{scope.row.data_sources}}
159
+                 <span v-if="scope.row.type == 1">血透</span>
160
+                 <span v-if="scope.row.type == 2">HIS</span>
157
                </template>
161
                </template>
158
             </el-table-column>
162
             </el-table-column>
159
           </el-table>
163
           </el-table>
160
-        </div>
161
-        <div>
162
-          <el-table
164
+
165
+
166
+            <el-table
163
             :height="tableHeight"
167
             :height="tableHeight"
164
-            :data="tableData"
168
+            :data="tableList"
165
             border
169
             border
166
             style="width: 1328px"
170
             style="width: 1328px"
167
             v-if="state == 2"
171
             v-if="state == 2"
168
           >
172
           >
169
-<!--            <el-table-column type="selection" width="55"> </el-table-column>-->
173
+            >
174
+            <el-table-column type="selection" width="55"> </el-table-column>
170
             <el-table-column type="index" label="序号" width="120" align="center">
175
             <el-table-column type="index" label="序号" width="120" align="center">
176
+              <template slot-scope="scope">
177
+                {{scope.$index + 1}}
178
+              </template>
171
             </el-table-column>
179
             </el-table-column>
172
             <el-table-column prop="name" label="患者名称" width="180" align="center">
180
             <el-table-column prop="name" label="患者名称" width="180" align="center">
173
                 <template slot-scope="scope">
181
                 <template slot-scope="scope">
174
-                 {{scope.row.name}}
182
+                 {{getPatientName(scope.row.patient_id)}}
175
               </template>
183
               </template>
176
             </el-table-column>
184
             </el-table-column>
177
             <el-table-column prop="name" label="单次用量" width="170" align="center">
185
             <el-table-column prop="name" label="单次用量" width="170" align="center">
178
                <template  slot-scope="scope">
186
                <template  slot-scope="scope">
179
-                 {{scope.row.single_dosage}}
187
+                 {{scope.row.single_dose}}
180
                </template>
188
                </template>
181
             </el-table-column>
189
             </el-table-column>
182
             <el-table-column prop="name" label="用法" width="160" align="center">
190
             <el-table-column prop="name" label="用法" width="160" align="center">
183
                <template  slot-scope="scope">
191
                <template  slot-scope="scope">
184
-                 {{scope.row.usage}}
192
+                 {{scope.row.delivery_way}}
185
                </template>
193
                </template>
186
             </el-table-column>
194
             </el-table-column>
187
             <el-table-column prop="name" label="频率" width="160" align="center">
195
             <el-table-column prop="name" label="频率" width="160" align="center">
188
                 <template  slot-scope="scope">
196
                 <template  slot-scope="scope">
189
-                 {{scope.row.frequency}}
197
+                 {{scope.row.execution_frequency}}
190
                </template>
198
                </template>
191
             </el-table-column>
199
             </el-table-column>
192
             <el-table-column prop="name" label="天数" width="160" align="center">
200
             <el-table-column prop="name" label="天数" width="160" align="center">
193
                <template  slot-scope="scope">
201
                <template  slot-scope="scope">
194
-                 {{scope.row.days}}
202
+                 {{scope.row.day}}
195
                </template>
203
                </template>
196
             </el-table-column>
204
             </el-table-column>
197
             <el-table-column prop="name" label="总量" width="160" align="center">
205
             <el-table-column prop="name" label="总量" width="160" align="center">
198
                 <template  slot-scope="scope">
206
                 <template  slot-scope="scope">
199
-                 {{scope.row.total}}
207
+                 {{scope.row.prescribing_number}}
200
                </template>
208
                </template>
201
             </el-table-column>
209
             </el-table-column>
202
             <el-table-column prop="name" label="数据来源" width="162" align="center">
210
             <el-table-column prop="name" label="数据来源" width="162" align="center">
203
                 <template  slot-scope="scope">
211
                 <template  slot-scope="scope">
204
-                  {{scope.row.data_sources}}
212
+                 <span v-if="scope.row.type == 1">血透</span>
213
+                 <span v-if="scope.row.type == 2">HIS</span>
205
                </template>
214
                </template>
206
             </el-table-column>
215
             </el-table-column>
207
-              <el-table-column prop="name" label="领药人" width="160" align="center">
208
-                <template  slot-scope="scope">
209
-                  {{scope.row.people}}
210
-                </template>
211
-              </el-table-column>
212
           </el-table>
216
           </el-table>
217
+
218
+
213
         </div>
219
         </div>
214
-        <div style="margin-top" v-if="state == 1">领药人:
220
+        <div style="margin-top:13px;">领药人:
215
           <el-select v-model="admin_user_id" placeholder="请选择">
221
           <el-select v-model="admin_user_id" placeholder="请选择">
216
             <el-option
222
             <el-option
217
               v-for="item in doctorList"
223
               v-for="item in doctorList"
256
 import drugPrint from "./print/drugPrint.vue";
262
 import drugPrint from "./print/drugPrint.vue";
257
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
263
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
258
 import { getTodayAdviceList,getPharmacyBaseDrug,updatePharmacyBaseDrug,SaveSetting,getPharmacyConfig,getUserdDrugList } from "@/api/his/advice";
264
 import { getTodayAdviceList,getPharmacyBaseDrug,updatePharmacyBaseDrug,SaveSetting,getPharmacyConfig,getUserdDrugList } from "@/api/his/advice";
259
-import {
260
-  dispensemedicine,
261
-  waitingmedicine,
262
-  getpatientswithdrugs,
263
-  medicinedeparture,
264
-  getcurrentname
265
-} from "@/api/pharmacy"
265
+// import {
266
+//   waitingdrug,
267
+//   issueddrugs,
268
+//   getpharmacycontent
269
+// } from "@/api/pharmacy"
266
 const moment = require('moment')
270
 const moment = require('moment')
267
 export default {
271
 export default {
268
   components: {
272
   components: {
272
   data() {
276
   data() {
273
     return {
277
     return {
274
       crumbs: [
278
       crumbs: [
275
-        { path: false, name: "药房管理" },
279
+        { path: false, name: "药品发药" },
276
         { path: "/Pharmacy/DrugDispensing", name: "药品发药" },
280
         { path: "/Pharmacy/DrugDispensing", name: "药品发药" },
277
       ],
281
       ],
278
       tableHeight: 400,
282
       tableHeight: 400,
292
       isVisibility:"",
296
       isVisibility:"",
293
       propsTable:"",
297
       propsTable:"",
294
       doctorList:[],
298
       doctorList:[],
295
-      admin_user_id:0,
296
-      waiting_drug:[],//待发药列表
297
-      issued_drug:[],//已发药列表
298
-      currentRow:null,
299
-      tmp:0,
299
+      admin_user_id:this.$store.getters.xt_user.user.id,
300
     };
300
     };
301
   },
301
   },
302
 
302
 
303
   methods: {
303
   methods: {
304
-    tt(){
305
-      console.log("this.currentRow",this.currentRow)
306
-      this.$router.go(0)
307
-    },
308
-    async fun3(){
309
-      console.log("fun3")
310
-      this.fun1().then(val => {
311
-        this.fun2();
312
-      })
313
-    },
314
-    async fun4(tps){
315
-      console.log("fun3",tps)
316
-      this.fun1().then(val => {
317
-        console.log("this.issued_drug",this.issued_drug)
318
-        for(let i = 0;i < this.issued_drug.length;i++){
319
-          if(tps == this.issued_drug[i].id){
320
-            this.$refs.table02.setCurrentRow(this.issued_drug[i]);
321
-            this.handleCurrentChange(this.issued_drug[i])
322
-          }
323
-        }
324
-      })
325
-    },
326
-    async fun5(tps){
327
-      console.log("fun3",tps)
328
-      this.fun1().then(val => {
329
-        console.log("this.issued_drug",this.waiting_drug)
330
-        for(let i = 0;i < this.waiting_drug.length;i++){
331
-          if(tps == this.waiting_drug[i].id){
332
-            this.$refs.table01.setCurrentRow(this.waiting_drug[i]);
333
-            this.handleCurrentChange(this.waiting_drug[i])
334
-          }
335
-        }
336
-      })
337
-    },
338
-    changeTimes(){
339
-      // alert("aa")
340
-      // this.getdruglist();
341
-      this.fun3();
304
+    testsss(){
305
+      console.log("time",this.start_time);
342
     },
306
     },
343
     //初始化
307
     //初始化
344
     init(){
308
     init(){
345
-      this.state = 1
346
-      this.tableData = null
347
-      this.currentRow = null
348
-    },
349
-    lala(){
350
-      this.currentRow = null
351
-      this.tableData = null
352
-      this.selectedbydefault()
309
+
353
     },
310
     },
354
      searchAction() {
311
      searchAction() {
355
-      // this.getlist();
356
-       this.tableData = null
357
-       this.currentRow = null
358
-       this.getdruglist();
312
+      this.getlist();
359
     },
313
     },
360
     // 跳转打印页面
314
     // 跳转打印页面
361
     toPrint() {
315
     toPrint() {
362
-
363
-      if (this.state == 1 && this.multipleSelection.length == 0){
364
-        this.$message.error("未选择任何数据");
365
-        return
366
-      }
367
-      if (this.state == 2 && this.tableData == null){
368
-          this.$message.error("未选择任何数据");
369
-          return
370
-      }
371
-      this.$refs.drugprint.show(this.tableData,this.currentRow,this.state,this.multipleSelection);
316
+      // this.$router.push({ path: "/Pharmacy/print/patientPrint" });
317
+      this.$refs.drugprint.show();
372
     },
318
     },
373
-    //列表选择
374
     handleSelectionChange(val) {
319
     handleSelectionChange(val) {
375
       this.multipleSelection = val;
320
       this.multipleSelection = val;
376
     },
321
     },
377
-    //默认选中
378
-    selectedbydefault(){
379
-      if(this.state == 1 && this.waiting_drug.length > 0){
380
-        this.$refs.table01.setCurrentRow(this.waiting_drug[0]);
381
-        this.handleCurrentChange(this.waiting_drug[0])
382
-      }
383
-      if(this.state == 2 && this.issued_drug.length >0){
384
-        this.$refs.table02.setCurrentRow(this.issued_drug[0]);
385
-        this.handleCurrentChange(this.issued_drug[0])
386
-      }
387
-    },
388
-    //包装selectedbydefault
389
-    fun2(){
390
-      console.log("3333333this.waitmount_data",this.waiting_drug)
391
-      // return new Promise((resolve, reject) => {
392
-      if(this.state == 1 && this.waiting_drug.length > 0){
393
-        this.$refs.table01.setCurrentRow(this.waiting_drug[0]);
394
-        this.handleCurrentChange(this.waiting_drug[0])
395
-      }
396
-      if(this.state == 2 && this.issued_drug.length >0){
397
-        this.$refs.table02.setCurrentRow(this.issued_drug[0]);
398
-        this.handleCurrentChange(this.issued_drug[0])
399
-      }
400
-      // });
322
+    handleSelectionChangeOne(val){
323
+      this.tableList = []
324
+      this.getUserlist(val.id)
401
     },
325
     },
402
     // 药品发药
326
     // 药品发药
403
     dispense() {
327
     dispense() {
404
-      var tps = this.currentRow.id;
405
-      if(this.multipleSelection.length < 1){
406
-        this.$message.error("未选择任何信息")
407
-        return
408
-      }
409
-      var tmp = "";
410
-      console.log("初始值",tmp)
411
-      for (var i=0;i < this.multipleSelection.length;i++){
412
-        tmp = tmp + this.multipleSelection[i].id + ","
413
-      }
414
-      var params = {
415
-        creater: this.admin_user_id,
416
-        ids: tmp,
417
-      }
418
-      medicinedeparture(params).then((res) => {
419
-        if (res.data.state == 1){
420
-          this.$message.success("操作成功")
421
-          this.getdruglist();
422
-          //刷新列表
423
-          this.handleCurrentChange(this.currentRow);
424
-          this.fun4(tps);
425
-          this.state = 2;
426
-        }else{
427
-          this.$message.error("操作失败:" + res.data.msg)
428
-          //刷新列表
429
-          this.handleCurrentChange(this.currentRow);
430
-          this.fun5(tps);
431
-          this.state = 1;
328
+      var blood_ids = []
329
+      var his_ids = []
330
+      var bloodStr = ""
331
+      var hisStr = ""
332
+      for(let i=0;i<this.tableData.length;i++){
333
+        if(this.tableData[i].type == 1){
334
+          blood_ids.push(this.tableData[i].id)
432
         }
335
         }
433
-      })
434
-    },
435
-    //获取药品列表
436
-    getdruglist(){
437
-      var params = {
438
-        keyword: this.keywords,
439
-        time: this.start_time,
440
-      }
441
-      waitingmedicine(params).then((res) => {
442
-        if (res.data.state == 1){
443
-          this.waiting_drug = res.data.data.list
444
-        }
445
-      })
446
-      dispensemedicine(params).then((res) => {
447
-        if (res.data.state == 1){
448
-          this.issued_drug = res.data.data.list
336
+        if(this.tableData[i].type == 2){
337
+          his_ids.push(this.tableData[i].id)
449
         }
338
         }
450
-      })
451
-    },
452
-    async fun1(){
339
+      }
340
+      bloodStr = blood_ids.join(",")
341
+      hisStr =  his_ids.join(",")
453
       var params = {
342
       var params = {
454
-        keyword: this.keywords,
455
-        time: this.start_time,
343
+        bloodStr:bloodStr,
344
+        hisStr:hisStr,
345
+        admin_user_id:this.admin_user_id,
456
       }
346
       }
457
-      await waitingmedicine(params).then((res) => {
458
-        if (res.data.state == 1){
459
-          this.waiting_drug = res.data.data.list
460
-        }
461
-        console.log("fun1lil1111i")
462
-      })
463
-      await dispensemedicine(params).then((res) => {
464
-        if (res.data.state == 1){
465
-          this.issued_drug = res.data.data.list
466
-        }
467
-        console.log("fun122222222")
468
-      })
469
-      console.log("fun1")
347
+      this.$confirm("确定是否对该药品进行发药?", "患者发药", {
348
+        confirmButtonText: "确 定",
349
+        cancelButtonText: "取 消",
350
+        type: "warning",
351
+      }).then(() => {
352
+        updatePharmacyBaseDrug(params).then(response=>{
353
+           if(response.data.state == 1){
354
+           var msg = response.data.data.msg
355
+           var medical =  response.data.data.medical
356
+           if(msg === 1){
357
+             this.$message.success("发药成功!")
358
+           }
359
+           if(msg == 2 || msg ===3){
360
+             this.$message.error("库存不足")
361
+           }
362
+         }
363
+        })
364
+      }).catch(() => {});
470
     },
365
     },
471
 
366
 
472
-    morencreatename(){
473
-      var param ={}
474
-      getcurrentname(param).then((res) => {
475
-        console.log("res(药)",res)
476
-        if (res.data.state == 1){
477
-          this.admin_user_id = res.data.data.list;
478
-          console.log("this.admin_user_id(药)",this.admin_user_id)
479
-        }
480
-      });
367
+    // 药品退药
368
+    endispense() {
369
+      var params = {};
370
+      this.$confirm("确定是否对该药品进行退药?", "患者退药", {
371
+        confirmButtonText: "确 定",
372
+        cancelButtonText: "取 消",
373
+        type: "warning",
374
+      })
375
+        .then(() => {})
376
+        .catch(() => {});
481
     },
377
     },
482
-    //获取领药人选项
378
+
483
     getlist(){
379
     getlist(){
484
       var params = {
380
       var params = {
485
         start_time:this.start_time,
381
         start_time:this.start_time,
487
       }
383
       }
488
       getTodayAdviceList(params).then(response=>{
384
       getTodayAdviceList(params).then(response=>{
489
          if(response.data.state == 1){
385
          if(response.data.state == 1){
490
-           this.doctorList = response.data.data.doctorlist
491
-           console.log("this.admin_user_id(药2)",this.admin_user_id)
492
-           // this.admin_user_id = this.doctorList[0].admin_user_id
493
-           // this.admin_user_id = this.tmp
386
+           var list =  response.data.data.list
387
+           this.$refs.singleTable.setCurrentRow(list[0])
388
+           this.tableData = list
389
+           var doctorlist = response.data.data.doctorlist
390
+           this.doctorList = doctorlist
494
          }
391
          }
495
       })
392
       })
496
     },
393
     },
497
-   //  //获取药品的患者信息
498
-    informationofdrugs(val){
499
-      var params = {
500
-        // patient_id: this.currentRow.
394
+   getWarehoseInfo(arr, max_unit, min_unit, min_number) {
395
+      var total = 0;
396
+      var max_str = "";
397
+      var min_str = "";
398
+      if (arr.length > 0) {
399
+        for (let i = 0; i < arr.length; i++) {
400
+          total += parseInt(arr[i].stock_max_number+ arr[i].stock_min_number);
401
+        }
501
       }
402
       }
502
-    },
503
-    handleCurrentChange(val) {
504
-      this.currentRow = val;
505
-      if(this.state == 1){
506
-        this.getdrugsdetails(0)
403
+      if (total < min_number) {
404
+        min_str = total + min_unit;
507
       }
405
       }
508
-      if (this.state == 2){
509
-        this.getdrugsdetails(1)
406
+      if (total == 0) {
407
+        min_str = "";
408
+        max_str = "";
510
       }
409
       }
410
+      if (total >= min_number) {
411
+        if (parseInt(total / min_number) != 0) {
412
+          max_str = parseInt(total / min_number) + max_unit;
413
+        }
414
+        if (total % min_number != 0) {
415
+          min_str = (total % min_number) + min_unit;
416
+        }
417
+      }
418
+      return max_str + min_str;
419
+    },
420
+
421
+    handleCurrentChange(row) {
422
+      this.getPharmacyBaseDrug(row.id)
511
     },
423
     },
512
-    getdrugsdetails(val){
424
+    getPharmacyBaseDrug(drug_id){
513
       var params = {
425
       var params = {
514
-        drug_id:this.currentRow.id,
515
-        is_medicine:val,
516
-        time:this.start_time,
426
+        start_time:this.start_time,
427
+        drug_id:drug_id,
517
       }
428
       }
518
-      getpatientswithdrugs(params).then((res) => {
519
-        if (res.data.state == 1){
520
-          this.tableData = res.data.data.list;//列表数据
521
-        }else {
522
-          this.$message.error(res.data.msg);
429
+      getPharmacyBaseDrug(params).then(response=>{
430
+        if(response.data.state == 1){
431
+           var advicelist = response.data.data.advicelist
432
+           for(let i=0;i<advicelist.length;i++){
433
+             advicelist[i].type = 1
434
+             advicelist[i].day = " "
435
+             this.tableData_list.push(advicelist[i])
436
+           }
437
+           var hisAdviceList = response.data.data.hisAdviceList
438
+           for(let i=0;i<hisAdviceList.length;i++){
439
+             hisAdviceList[i].type = 2
440
+             this.tableData_list.push(hisAdviceList[i])
441
+           }
442
+           var patient = response.data.data.patient
443
+           this.patientList = patient
523
         }
444
         }
524
       })
445
       })
525
     },
446
     },
526
-
447
+    getPatientName(id){
448
+       var name = ""
449
+       for(let i=0;i<this.patientList.length;i++){
450
+          if(id == this.patientList[i].id){
451
+             name = this.patientList[i].name
452
+          }
453
+       }
454
+       return name
455
+    },
527
     toSetting(){
456
     toSetting(){
528
       getPharmacyConfig().then(response=>{
457
       getPharmacyConfig().then(response=>{
529
         if(response.data.state == 1){
458
         if(response.data.state == 1){
571
   },
500
   },
572
   created() {
501
   created() {
573
     this.init();
502
     this.init();
574
-    this.morencreatename();
575
-    this.getlist();
576
-    // this.getdruglist();
577
-    this.fun3();
503
+    this.getlist()
578
   },
504
   },
579
 };
505
 };
580
 </script>
506
 </script>

+ 101 - 364
src/xt_pages/Pharmacy/PatientDispensing.vue Zobrazit soubor

1
-<template><!--患者发药-->
1
+<template>
2
   <div class="main-contain new-main-contain">
2
   <div class="main-contain new-main-contain">
3
     <div class="position">
3
     <div class="position">
4
       <!--      <bread-crumb :crumbs='crumbs'></bread-crumb>-->
4
       <!--      <bread-crumb :crumbs='crumbs'></bread-crumb>-->
13
           <div class="list">
13
           <div class="list">
14
             <el-date-picker
14
             <el-date-picker
15
               style="width: 200px"
15
               style="width: 200px"
16
-              v-model="start_time"
16
+              v-model="datepick"
17
               type="date"
17
               type="date"
18
-              format="yyyy-MM-dd"
19
-              value-format="yyyy-MM-dd"
20
               placeholder="选择日期"
18
               placeholder="选择日期"
21
-              @change="changeTimes()"
22
             >
19
             >
23
             </el-date-picker>
20
             </el-date-picker>
24
           </div>
21
           </div>
25
-<!--          <el-button @click="testsss">调试1</el-button>-->
26
-<!--          <el-button @click="testsss2">调试2</el-button>-->
22
+
27
           <div class="list">
23
           <div class="list">
28
-            <el-radio-group v-model="state" @change="lala()">
29
-              <el-radio :label="1" >待发药{{ waitmount }}人</el-radio>
30
-              <el-radio :label="2" >已发药{{ alreadmount }}人</el-radio>
24
+            <el-radio-group v-model="state">
25
+              <el-radio :label="1">待发药{{ waitmount }}人</el-radio>
26
+              <el-radio :label="2">已发药{{ alreadmount }}人</el-radio>
31
             </el-radio-group>
27
             </el-radio-group>
32
           </div>
28
           </div>
33
-          <div class="list">
29
+          <div
30
+            class="list"
31
+            style="display: flex; justify-content: space-between"
32
+          >
34
             <el-input
33
             <el-input
35
               size="small"
34
               size="small"
36
               style="width: 130px"
35
               style="width: 130px"
37
               v-model="keywords"
36
               v-model="keywords"
38
               class="filter-item"
37
               class="filter-item"
39
               placeholder="请输入患者名称"
38
               placeholder="请输入患者名称"
40
-              clearable
41
             />
39
             />
42
             <el-button
40
             <el-button
43
               size="small"
41
               size="small"
48
             </el-button>
46
             </el-button>
49
           </div>
47
           </div>
50
 
48
 
51
-          <el-table :height="tableHeight" ref="table01" :data="waitmount_data" highlight-current-row @current-change="handleCurrentChange" border style="width: 100%" v-if="state == 1">
52
-            <el-table-column prop="date" label="患者姓名" width="100" >
53
-              <template slot-scope="scope">
54
-                <span >{{scope.row.Name ? scope.row.Name : ""}}</span>
55
-              </template>
56
-            </el-table-column>
57
-            <el-table-column prop="name" label="透析号" width="100">
58
-              <template slot-scope="scope">
59
-                <span>{{scope.row.DialysisNo ? scope.row.DialysisNo : ""}}</span>
60
-              </template>
61
-            </el-table-column>
62
-          </el-table>
63
-          <el-table :height="tableHeight" ref="table02" :data="alreadmount_data" highlight-current-row @current-change="handleCurrentChange" border style="width: 100%" v-if="state == 2">
64
-            <el-table-column prop="date" label="患者姓名" width="100" >
65
-              <template slot-scope="scope" >
66
-                <span>{{scope.row.Name ? scope.row.Name : ""}}</span>
67
-              </template>
49
+          <el-table
50
+            :height="tableHeight"
51
+            :data="tableData"
52
+            border
53
+            style="width: 100%"
54
+          >
55
+            <el-table-column prop="date" label="患者姓名" width="100">
68
             </el-table-column>
56
             </el-table-column>
69
-            <el-table-column prop="name" label="透析号" width="100">
70
-              <template slot-scope="scope">
71
-                <span>{{scope.row.DialysisNo ? scope.row.DialysisNo : ""}}</span>
72
-              </template>
57
+            <el-table-column prop="name" label="单据编号" width="100">
73
             </el-table-column>
58
             </el-table-column>
74
           </el-table>
59
           </el-table>
75
         </div>
60
         </div>
83
             >退药</el-button
68
             >退药</el-button
84
           >
69
           >
85
           <el-button type="primary" @click="toPrint">打印</el-button>
70
           <el-button type="primary" @click="toPrint">打印</el-button>
86
-<!--          <el-button @click="tiaoshi">调试</el-button>-->
87
-          <el-button type="primary" v-if="state == 1" @click="toSetting">设置</el-button>
71
+          <el-button type="primary" v-if="state == 1">设置</el-button>
88
         </div>
72
         </div>
89
         <el-divider></el-divider>
73
         <el-divider></el-divider>
90
         <div>
74
         <div>
91
           <el-table
75
           <el-table
92
             :height="tableHeight"
76
             :height="tableHeight"
93
-            :data="tableData"
77
+            :data="tableData_list"
94
             border
78
             border
95
             style="width: 100%"
79
             style="width: 100%"
96
           >
80
           >
97
-            <el-table-column type="index" label="序号" width="120" align="center">
81
+            <el-table-column
82
+              type="index"
83
+              label="序号"
84
+              width="120"
85
+              align="center"
86
+            >
98
             </el-table-column>
87
             </el-table-column>
99
-            <el-table-column  label="名称" width="200" align="center">
100
-              <template slot-scope="scope">
101
-                <span>{{scope.row.Name  ? scope.row.Name  : ""}}</span>
102
-              </template>
88
+            <el-table-column
89
+              prop="name"
90
+              label="名称"
91
+              width="220"
92
+              align="center"
93
+            >
103
             </el-table-column>
94
             </el-table-column>
104
-            <el-table-column  label="单次用量" width="150" align="center">
105
-              <template slot-scope="scope">
106
-                <span>{{scope.row.SingleDosage  ? scope.row.SingleDosage  : ""}}</span>
107
-              </template>
95
+            <el-table-column
96
+              prop="name"
97
+              label="单次用量"
98
+              width="170"
99
+              align="center"
100
+            >
108
             </el-table-column>
101
             </el-table-column>
109
-            <el-table-column  label="用法" width="160" align="center">
110
-              <template slot-scope="scope">
111
-                <span>{{scope.row.Usage  ? scope.row.Usage  : ""}}</span>
112
-              </template>
102
+            <el-table-column
103
+              prop="name"
104
+              label="用法"
105
+              width="160"
106
+              align="center"
107
+            >
113
             </el-table-column>
108
             </el-table-column>
114
-            <el-table-column  label="频率" width="160" align="center">
115
-              <template slot-scope="scope">
116
-                <span>{{scope.row.Frequency  ? scope.row.Frequency  : ""}}</span>
117
-              </template>
109
+            <el-table-column
110
+              prop="name"
111
+              label="频率"
112
+              width="160"
113
+              align="center"
114
+            >
118
             </el-table-column>
115
             </el-table-column>
119
-            <el-table-column  label="天数" width="140" align="center">
120
-              <template slot-scope="scope">
121
-                <span>{{scope.row.Days  ? scope.row.Days  : ""}}</span>
122
-              </template>
116
+            <el-table-column
117
+              prop="name"
118
+              label="天数"
119
+              width="160"
120
+              align="center"
121
+            >
123
             </el-table-column>
122
             </el-table-column>
124
-            <el-table-column  label="总量" width="140" align="center">
125
-              <template slot-scope="scope">
126
-                <span>{{scope.row.Total  ? scope.row.Total  : ""}}</span>
127
-              </template>
123
+            <el-table-column
124
+              prop="name"
125
+              label="总量"
126
+              width="160"
127
+              align="center"
128
+            >
128
             </el-table-column>
129
             </el-table-column>
129
-            <el-table-column  label="开立医生" width="150" align="center">
130
-              <template slot-scope="scope">
131
-                <span>{{scope.row.Doctor  ? scope.row.Doctor  : ""}}</span>
132
-              </template>
130
+            <el-table-column
131
+              prop="name"
132
+              label="开立医生"
133
+              width="160"
134
+              align="center"
135
+            >
133
             </el-table-column>
136
             </el-table-column>
134
-            <el-table-column  label="数据来源" width="162" align="center">
135
-              <template slot-scope="scope">
136
-                <span>{{scope.row.DataSources  ? scope.row.DataSources  : ""}}</span>
137
-              </template>
137
+            <el-table-column
138
+              prop="name"
139
+              label="数据来源"
140
+              width="162"
141
+              align="center"
142
+            >
138
             </el-table-column>
143
             </el-table-column>
139
-            <el-table-column  label="备注" width="170" align="center">
140
-              <template slot-scope="scope">
141
-                <span>{{scope.row.Remarks  ? scope.row.Remarks  : ""}}</span>
142
-              </template>
144
+            <el-table-column
145
+              prop="name"
146
+              label="备注"
147
+              width="170"
148
+              align="center"
149
+            >
143
             </el-table-column>
150
             </el-table-column>
144
           </el-table>
151
           </el-table>
145
         </div>
152
         </div>
146
-<!--        <div v-if="state == 2" style="margin-top: 25px">诊断时间:{{ timedate }}</div>-->
153
+        <!-- <div style="margin-top: 25px">诊断时间:2022-05-07 19:22:16</div> -->
147
       </div>
154
       </div>
148
-      <el-dialog
149
-        title="设置"
150
-        :visible.sync="dialogVisible"
151
-        width="30%">
152
-        <span>请选择药品是否要通过药房管理出库</span>
153
-        <span>
154
-          <el-radio v-model="is_open" label="1">是</el-radio>
155
-          <el-radio v-model="is_open" label="2">否</el-radio>
156
-        </span>
157
-        <span>
158
-          若选择为是,则通过药房发药的药品都会在发药之后进行出库,否则按原来的方式进行出库管理
159
-        </span>
160
-        <span slot="footer" class="dialog-footer">
161
-          <el-button @click="dialogVisible = false">取 消</el-button>
162
-          <el-button type="primary" @click="SaveSetting">确 定</el-button>
163
-        </span>
164
-      </el-dialog>
165
     </div>
155
     </div>
166
 
156
 
167
     <patient-print
157
     <patient-print
176
 <script>
166
 <script>
177
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
167
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
178
 import patientPrint from "./print/patientPrint.vue";
168
 import patientPrint from "./print/patientPrint.vue";
179
-import { getPharmacyConfig,SaveSetting } from "@/api/his/advice";
180
-import {
181
-  waitingdrug,
182
-  issueddrugs,
183
-  todaynumber,
184
-  getpharmacycontent,
185
-  dispensingmedicine,
186
-  drugwithdrawal
187
-} from "@/api/pharmacy"
188
-const moment = require('moment')
189
 export default {
169
 export default {
190
   components: {
170
   components: {
191
     BreadCrumb,
171
     BreadCrumb,
193
   },
173
   },
194
   data() {
174
   data() {
195
     return {
175
     return {
196
-      patient_id:0,
197
       crumbs: [
176
       crumbs: [
198
-        { path: false, name: "药房管理" },
177
+        { path: false, name: "患者发药" },
199
         { path: "/Pharmacy/patiantDispensing", name: "患者发药" },
178
         { path: "/Pharmacy/patiantDispensing", name: "患者发药" },
200
       ],
179
       ],
201
       tableHeight: 400,
180
       tableHeight: 400,
202
-      start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
203
-      state: 1,//1待发药,2已发药
204
-      waitmount: 0,//待发药人数
205
-      waitmount_data: [],
206
-      alreadmount: 0,//已发药人数
207
-      alreadmount_data: [],
181
+      datepick: "",
182
+      state: 1,
183
+      waitmount: 0,
184
+      alreadmount: 0,
208
       keywords: "",
185
       keywords: "",
209
       tableData: [],
186
       tableData: [],
210
       propsTable: [],
187
       propsTable: [],
211
       tableData_list: [],
188
       tableData_list: [],
212
       isVisibility: false,
189
       isVisibility: false,
213
-      currentRow:null,
214
-      dialogVisible:false,
215
-      is_open:"2",
216
     };
190
     };
217
   },
191
   },
218
-  watch: {
219
-  },
220
-  created() {
221
-    this.init();
222
-    this.gettodaynumber();
223
-    this.fun3();
224
-    // this.getwaitmount();//fun3
225
-    // this.selectedbydefault();
226
-  },
227
-  methods: {
228
-    tiaoshi(){
229
-      console.log("this.tableData",this.tableData)
230
-    },
231
-    async fun3(){
232
-      console.log("fun3")
233
-        this.fun1().then(val => {
234
-          this.fun2();
235
-        })
236
-    },
237
-    async fun4(tmp){
238
-      console.log("fun3")
239
-      this.fun1().then(val => {
240
-        console.log("this.alreadmount_data",this.alreadmount_data)
241
-        for (let i = 0;i < this.alreadmount_data.length;i++){
242
-          console.log("tmp = ",tmp)
243
-          if (this.alreadmount_data[i].PatientID == tmp){
244
-            console.log("i = ",i)
245
-            this.$refs.table02.setCurrentRow(this.alreadmount_data[i]);
246
-            this.handleCurrentChange(this.alreadmount_data[i])
247
-          }
248
-        }
249
-      })
250
-    },
251
-    async fun5(tmp){
252
-      console.log("fun3")
253
-      this.fun1().then(val => {
254
-        console.log("this.alreadmount_data",this.waitmount_data)
255
-        for (let i = 0;i < this.waitmount_data.length;i++){
256
-          console.log("tmp = ",tmp)
257
-          if (this.waitmount_data[i].PatientID == tmp){
258
-            console.log("i = ",i)
259
-            this.$refs.table02.setCurrentRow(this.waitmount_data[i]);
260
-            this.handleCurrentChange(this.waitmount_data[i])
261
-          }
262
-        }
263
-      })
264
-    },
265
-
266
-    lala(){
267
-      console.log("this.state!!!!!!",this.state)
268
-      //初始化状态
269
-      this.tableData = null
270
-      this.currentRow = null
271
-      this.selectedbydefault()
272
-    },
273
-    //选中行数
274
-    handleCurrentChange(val) {
275
-      this.currentRow = val;
276
-      console.log("this.currentRow",this.currentRow)
277
-      if(this.state == 1){
278
-        this.getpatientdetails(0)
279
-      }
280
-      if(this.state == 2){
281
-        this.getpatientdetails(1)
282
-      }
283
-    },
284
-    init(){
285
-      // console.log("初始化了")
286
-      this.state = 1
287
-      this.tableData = null
288
-      this.currentRow = null
289
-    },
290
-    testsss(){
291
-     this.state = 1;
292
-    },
293
-    //默认选中的
294
-    selectedbydefault(){
295
-      if(this.state == 1 && this.waitmount_data.length > 0){
296
-        this.$refs.table01.setCurrentRow(this.waitmount_data[0]);
297
-        this.handleCurrentChange(this.waitmount_data[0])
298
-      }
299
-      if(this.state == 2 && this.alreadmount_data.length >0){
300
-        this.$refs.table02.setCurrentRow(this.alreadmount_data[0]);
301
-        this.handleCurrentChange(this.alreadmount_data[0])
302
-      }
303
-    },
304
-    //包装selectedbydefault
305
-    fun2(){
306
-      console.log("3333333this.waitmount_data",this.waitmount_data)
307
-      // return new Promise((resolve, reject) => {
308
-        if(this.state == 1 && this.waitmount_data.length > 0){
309
-          this.$refs.table01.setCurrentRow(this.waitmount_data[0]);
310
-          this.handleCurrentChange(this.waitmount_data[0])
311
-        }
312
-        if(this.state == 2 && this.alreadmount_data.length >0){
313
-          this.$refs.table02.setCurrentRow(this.alreadmount_data[0]);
314
-          this.handleCurrentChange(this.alreadmount_data[0])
315
-        }
316
-      // });
317
-    },
318
-    changeTimes(){
319
-      this.gettodaynumber();
320
-      this.getwaitmount();
321
-      this.fun3();
322
-    },
323
-    //获取当天发药的人数
324
-    gettodaynumber(){
325
-      console.log("aaa")
326
-      var params = {
327
-        time: this.start_time,
328
-      }
329
-      todaynumber(params).then((res) => {
330
-        if (res.data.state == 1){
331
-          this.waitmount = res.data.data.itotal;
332
-          this.alreadmount = res.data.data.wtotal;
333
-        }
334
-      })
335
-      // console.log("2222222")
336
-    },
337
-    //获取发药人列表
338
-    getwaitmount(){
339
-      var params = {
340
-        keyword: this.keywords,
341
-        time: this.start_time,
342
-      }
343
-      waitingdrug(params).then((res) => {
344
-        if (res.data.state == 1){
345
-          this.waitmount_data = res.data.data.list;
346
-        }
347
-      })
348
-      issueddrugs(params).then((res) => {
349
-        if (res.data.state == 1){
350
-          this.alreadmount_data = res.data.data.list;
351
-        }
352
-      })
353
-    },
354
-    //包装getwaitmount
355
-    async fun1(){
356
-      // return new Promise((resolve, reject) => {
357
-        var params = {
358
-          keyword: this.keywords,
359
-          time: this.start_time,
360
-        }
361
-        await waitingdrug(params).then((res) => {
362
-          if (res.data.state == 1){
363
-            this.waitmount_data = res.data.data.list;
364
-            console.log("1111111")
365
-          }
366
-        })
367
-        await issueddrugs(params).then((res) => {
368
-          if (res.data.state == 1){
369
-            this.alreadmount_data = res.data.data.list;
370
-            console.log("1111111s")
371
-          }
372
-        })
373
-        console.log("222222222")
192
+  watch: {},
374
 
193
 
375
-      // })
376
-    },
377
-    //获取患者信息详情
378
-    getpatientdetails(val){
379
-      var params = {
380
-        patient_id:this.currentRow.PatientID,
381
-        is_medicine: val,
382
-        time:this.start_time,
383
-      }
384
-      getpharmacycontent(params).then((res) => {
385
-        if (res.data.state == 1){
386
-          this.tableData = res.data.data.list;
387
-        }else{
388
-          this.$message.error(res.data.msg);
389
-        }
390
-      })
391
-    },
194
+  methods: {
392
     // 跳转打印页面
195
     // 跳转打印页面
393
     toPrint() {
196
     toPrint() {
394
-      if (this.tableData == null){
395
-        this.$message.error("未选择任何数据");
396
-        return
397
-      }
398
-      this.$refs.patientprint.show(this.tableData,this.currentRow,this.state);
197
+      // this.$router.push({ path: "/Pharmacy/print/patientPrint" });
198
+      this.$refs.patientprint.show();
399
     },
199
     },
400
 
200
 
401
     // 搜索患者
201
     // 搜索患者
402
-    searchAction() {
403
-      this.tableData = null;
404
-      this.getwaitmount();
405
-    },
202
+    searchAction() {},
406
 
203
 
407
     // 药品发药
204
     // 药品发药
408
     dispense() {
205
     dispense() {
409
-      var tmp = this.currentRow.PatientID;
410
-      var params = {
411
-        patient_id:this.currentRow.PatientID,
412
-        time:this.start_time,
413
-      };
206
+      var params = {};
414
       this.$confirm("确定是否对该药品进行发药?", "患者发药", {
207
       this.$confirm("确定是否对该药品进行发药?", "患者发药", {
415
         confirmButtonText: "确 定",
208
         confirmButtonText: "确 定",
416
         cancelButtonText: "取 消",
209
         cancelButtonText: "取 消",
417
         type: "warning",
210
         type: "warning",
418
-      }).then(() => {
419
-        dispensingmedicine(params).then((res) => {
420
-          if(res.data.state == 1){
421
-            this.$message.success('操作成功');
422
-            this.gettodaynumber();
423
-            this.searchAction();
424
-            this.tableData = null;
425
-            this.fun4(tmp);
426
-            this.state = 2;
427
-            // console.log("this.alreadmount_data",this.alreadmount_data)
428
-            // for (let i = 0;i < this.alreadmount_data.length;i++){
429
-            //   console.log("tmp = ",tmp)
430
-            //     if (this.alreadmount_data[i].PatientID == tmp){
431
-            //       console.log("i = ",i)
432
-            //       this.$refs.table02.setCurrentRow(this.alreadmount_data[i]);
433
-            //       this.handleCurrentChange(this.alreadmount_data[i])
434
-            //     }
435
-            // }
436
-          }else {
437
-            this.$message.error(res.data.msg);
438
-          }
439
-        })
440
-      }).catch(() => {});
441
-    },
442
-
443
-    toSetting(){
444
-      getPharmacyConfig().then(response=>{
445
-        if(response.data.state == 1){
446
-          this.dialogVisible = true
447
-          var config = response.data.data.config
448
-          this.is_open = config.is_open.toString()
449
-        }
450
-      })
451
-    },
452
-    SaveSetting(){
453
-      var params = {
454
-        is_open:parseInt(this.is_open),
455
-      }
456
-      SaveSetting(params).then(response=>{
457
-        if(response.data.state == 1){
458
-          var config = response.data.data.config
459
-          this.$message.success("保存成功!")
460
-          this.dialogVisible = false
461
-        }
462
       })
211
       })
212
+        .then(() => {})
213
+        .catch(() => {});
463
     },
214
     },
215
+
464
     // 药品退药
216
     // 药品退药
465
     endispense() {
217
     endispense() {
466
-      var tmp = this.currentRow.PatientID;
467
-      var params = {
468
-        patient_id:this.currentRow.PatientID,
469
-        time:this.start_time,
470
-      };
218
+      var params = {};
471
       this.$confirm("确定是否对该药品进行退药?", "患者退药", {
219
       this.$confirm("确定是否对该药品进行退药?", "患者退药", {
472
         confirmButtonText: "确 定",
220
         confirmButtonText: "确 定",
473
         cancelButtonText: "取 消",
221
         cancelButtonText: "取 消",
474
         type: "warning",
222
         type: "warning",
475
-      }).then(() => {
476
-        drugwithdrawal(params).then((res) => {
477
-          if(res.data.state == 1){
478
-            this.$message.success('操作成功');
479
-            this.gettodaynumber();
480
-            this.searchAction();
481
-            this.tableData = null;
482
-            this.fun4(tmp);
483
-            this.state = 1;
484
-          }else {
485
-            this.$message.error(res.data.msg);
486
-          }
487
-        })
488
-      }).catch(() => {});
223
+      })
224
+        .then(() => {})
225
+        .catch(() => {});
489
     },
226
     },
490
   },
227
   },
491
-
228
+  created() {},
492
 };
229
 };
493
 </script>
230
 </script>
494
 
231
 
528
     justify-content: flex-end;
265
     justify-content: flex-end;
529
   }
266
   }
530
 }
267
 }
531
-</style>
268
+</style>

+ 34 - 66
src/xt_pages/Pharmacy/print/patientPrint.vue Zobrazit soubor

10
     >
10
     >
11
     <div id="dialysis-print-box-1" class="dialysis-print-box-1">
11
     <div id="dialysis-print-box-1" class="dialysis-print-box-1">
12
       <div class="list_title">
12
       <div class="list_title">
13
-        <div>患者名称:{{name}}</div>
14
-        <div>发药状态:{{state}}</div>
13
+        <div>患者名称:</div>
14
+        <div>数据来源:</div>
15
+        <div>发药状态:</div>
16
+        <div>领药时间:</div>
15
       </div>
17
       </div>
16
 
18
 
17
       <el-table
19
       <el-table
24
         <el-table-column type="index" prop="index" label="序号" width="60">
26
         <el-table-column type="index" prop="index" label="序号" width="60">
25
         </el-table-column>
27
         </el-table-column>
26
         <el-table-column prop="name" label="名称" width="160">
28
         <el-table-column prop="name" label="名称" width="160">
27
-          <template slot-scope="scope" >
28
-            <span>{{scope.row.Name ? scope.row.Name : ""}}</span>
29
-          </template>
30
         </el-table-column>
29
         </el-table-column>
31
         <el-table-column prop="SingleDosage" label="单次用量" width="120">
30
         <el-table-column prop="SingleDosage" label="单次用量" width="120">
32
-          <template slot-scope="scope" >
33
-            <span>{{scope.row.SingleDosage ? scope.row.SingleDosage : ""}}</span>
34
-          </template>
35
-        </el-table-column>
36
-        <el-table-column prop="use" label="用法" width="120">
37
-          <template slot-scope="scope" >
38
-            <span>{{scope.row.Usage ? scope.row.Usage : ""}}</span>
39
-          </template>
40
         </el-table-column>
31
         </el-table-column>
32
+        <el-table-column prop="use" label="用法" width="120"> </el-table-column>
41
         <el-table-column prop="frequency" label="频率" width="120">
33
         <el-table-column prop="frequency" label="频率" width="120">
42
-          <template slot-scope="scope" >
43
-            <span>{{scope.row.Frequency ? scope.row.Frequency : ""}}</span>
44
-          </template>
45
-        </el-table-column>
46
-        <el-table-column prop="day" label="天数" width="120">
47
-          <template slot-scope="scope" >
48
-            <span>{{scope.row.Days ? scope.row.Days : ""}}</span>
49
-          </template>
50
         </el-table-column>
34
         </el-table-column>
35
+        <el-table-column prop="day" label="天数" width="120"> </el-table-column>
51
         <el-table-column prop="amount" label="总量" width="120">
36
         <el-table-column prop="amount" label="总量" width="120">
52
-          <template slot-scope="scope" >
53
-            <span>{{scope.row.Total ? scope.row.Total : ""}}</span>
54
-          </template>
55
-        </el-table-column>
56
-        <el-table-column prop="tips" label="数据来源" width="120">
57
-          <template slot-scope="scope" >
58
-            <span>{{scope.row.DataSources ? scope.row.DataSources : ""}}</span>
59
-          </template>
60
         </el-table-column>
37
         </el-table-column>
61
         <el-table-column prop="tips" label="备注" width="120">
38
         <el-table-column prop="tips" label="备注" width="120">
62
-          <template slot-scope="scope" >
63
-            <span>{{scope.row.Remarks ? scope.row.Remarks : ""}}</span>
64
-          </template>
65
         </el-table-column>
39
         </el-table-column>
66
       </el-table>
40
       </el-table>
67
     </div>
41
     </div>
76
   data() {
50
   data() {
77
     return {
51
     return {
78
       visibility: false,
52
       visibility: false,
79
-      tableData: [],
53
+      tableData: [{}],
80
       isClose:false,
54
       isClose:false,
81
-      name:"",
82
-      state:null,
55
+      org_name:"",
83
     };
56
     };
84
   },
57
   },
85
   props: {
58
   props: {
103
         }
76
         }
104
       }
77
       }
105
     },
78
     },
106
-    show: function (val,data,state) {
79
+    show: function () {
107
       this.visibility = true;
80
       this.visibility = true;
108
-      console.log("val",val)
109
-      this.tableData = val
110
-      this.name = data.Name
111
-      if (state == 1){
112
-        this.state = "待发药"
113
-      }
114
-      if (state == 2){
115
-        this.state = "已发药"
116
-      }
117
-
118
     },
81
     },
119
 
82
 
120
     comfirm: function (formName) {
83
     comfirm: function (formName) {
138
       //     scanStyles: false,
101
       //     scanStyles: false,
139
       //   });
102
       //   });
140
       this.printJson({
103
       this.printJson({
141
-        title: `<div style="width: 940px;border-bottom: 1px solid;display: flex;margin: 30px auto;">
142
-        <div style="width: 230px;padding: 10px 0;">患者名称:${this.name}</div>
143
-        <div style="width: 230px;padding: 10px 0;">发药状态:${this.state}</div>
104
+        title: `<div style="width:100%;text-align:center;font-size:16px;font-weight:bold;">${this.org_name}医院 发药单</div>
105
+        <div style="width: 940px;border-bottom: 1px solid;display: flex;margin: 30px auto;">
106
+        <div style="width: 310px;padding: 10px 0;">患者名称:${1}</div>
107
+        <div style="width: 310px;padding: 10px 0;">数据来源:${1}</div>
108
+        <div style="width: 310px;padding: 10px 0;">发药状态:${1}</div>
144
         </div>`, // 打印出来的标题
109
         </div>`, // 打印出来的标题
145
         data: this.tableData, // 需要打印的数据
110
         data: this.tableData, // 需要打印的数据
146
         serial: true, // 是否需要打印序列号
111
         serial: true, // 是否需要打印序列号
147
         fields: [
112
         fields: [
148
           // 需要打印的字段
113
           // 需要打印的字段
149
 
114
 
150
-          "Name",
115
+          "name",
151
           "SingleDosage",
116
           "SingleDosage",
152
-          "Usage",
153
-          "Frequency",
154
-          "Days",
155
-          "Total",
156
-          "DataSources",
157
-          "Remarks",
117
+          "use",
118
+          "frequency",
119
+          "day",
120
+          "amount",
121
+          "from",
122
+          "tips",
158
         ],
123
         ],
159
         properties: [
124
         properties: [
160
           // 需要打印的字段对应的表头名
125
           // 需要打印的字段对应的表头名
161
 
126
 
162
           {
127
           {
163
-            field: "Name",
128
+            field: "name",
164
             displayName: "姓名",
129
             displayName: "姓名",
165
           },
130
           },
166
           {
131
           {
167
             field: "SingleDosage",
132
             field: "SingleDosage",
168
-            displayName: "单用量",
133
+            displayName: "单用量",
169
           },
134
           },
170
           {
135
           {
171
-            field: "Usage",
136
+            field: "use",
172
             displayName: "用法",
137
             displayName: "用法",
173
           },
138
           },
174
           {
139
           {
175
-            field: "Frequency",
140
+            field: "frequency",
176
             displayName: "频率",
141
             displayName: "频率",
177
           },
142
           },
178
           {
143
           {
179
-            field: "Days",
144
+            field: "day",
180
             displayName: "天数",
145
             displayName: "天数",
181
           },
146
           },
182
           {
147
           {
183
-            field: "Total",
148
+            field: "amount",
184
             displayName: "总量",
149
             displayName: "总量",
185
           },
150
           },
186
           {
151
           {
187
-            field: "DataSources",
152
+            field: "from",
188
             displayName: "数据来源",
153
             displayName: "数据来源",
189
           },
154
           },
190
           {
155
           {
191
-            field: "Remarks",
156
+            field: "tips",
192
             displayName: "备注",
157
             displayName: "备注",
193
           },
158
           },
194
         ],
159
         ],
199
 </script>
164
 </script>
200
 
165
 
201
 <style lang="scss" scoped>
166
 <style lang="scss" scoped>
167
+/deep/ .el-dialog{
168
+  width: 60%;
169
+}
202
 .print_style {
170
 .print_style {
203
   position: absolute;
171
   position: absolute;
204
-  right: 10px;
205
-  top: 42px;
172
+  right: 65px;
173
+  top: 50px;
206
 }
174
 }
207
 
175
 
208
 .list_title {
176
 .list_title {

+ 14 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_twelve.vue Zobrazit soubor

857
                 </tr>
857
                 </tr>
858
                 <tr>
858
                 <tr>
859
                   <td style="width:60px" rowspan="2">时间</td>
859
                   <td style="width:60px" rowspan="2">时间</td>
860
-                  <td colspan="4">透析参数</td>
860
+                  <td colspan="5">透析参数</td>
861
                   <td colspan="5">生命体征</td>
861
                   <td colspan="5">生命体征</td>
862
                   <td colspan="2">治疗中病情变化</td>
862
                   <td colspan="2">治疗中病情变化</td>
863
                   <td style="width:80px" rowspan="2">护士签名</td>
863
                   <td style="width:80px" rowspan="2">护士签名</td>
879
                     <p style="height:20px;line-height:20px">脱水量</p>
879
                     <p style="height:20px;line-height:20px">脱水量</p>
880
                     <p style="height:20px;line-height:20px">ml</p>
880
                     <p style="height:20px;line-height:20px">ml</p>
881
                   </th>
881
                   </th>
882
+                  <th style="width: 70px">
883
+                    <p style="height: 20px; line-height: 20px">KT/V</p>
884
+                    <p style="height: 20px; line-height: 20px">&nbsp;</p>
885
+                  </th>
882
                   <th style="width:30px">
886
                   <th style="width:30px">
883
                     <p style="height:20px;line-height:20px">T</p>
887
                     <p style="height:20px;line-height:20px">T</p>
884
                     <p style="height:20px;line-height:20px">℃</p>
888
                     <p style="height:20px;line-height:20px">℃</p>
949
                       }}
953
                       }}
950
                     </span>
954
                     </span>
951
                   </td>
955
                   </td>
956
+                  <td>
957
+                    <span v-if="getTime(monitor.operate_time) != ''">
958
+                      {{
959
+                        monitor.ktv
960
+                        ? monitor.ktv
961
+                        : ""
962
+                      }}
963
+                    </span>
964
+            </td>
952
                   <td>
965
                   <td>
953
                     <span v-if="getTime(monitor.operate_time) != ''">
966
                     <span v-if="getTime(monitor.operate_time) != ''">
954
                       {{ monitor.temperature ? monitor.temperature : "0" }}
967
                       {{ monitor.temperature ? monitor.temperature : "0" }}

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Zobrazit soubor

28
           <el-col :span="8" v-if="isShow('实际超滤量')">
28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29
             <el-form-item
29
             <el-form-item
30
               label="实际超滤量(ml): "
30
               label="实际超滤量(ml): "
31
-              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 9555 "  >
31
+              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 9555 "  >
32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33
             </el-form-item>
33
             </el-form-item>
34
             <el-form-item label="实际超滤量(L): " v-else>
34
             <el-form-item label="实际超滤量(L): " v-else>

+ 2 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Zobrazit soubor

82
                     </el-col>
82
                     </el-col>
83
 
83
 
84
                     <el-col :span="8"
84
                     <el-col :span="8"
85
-                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45  ||  this.$store.getters.xt_user.template_info.template_id == 46 ||  this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249)">
85
+                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45  ||  this.$store.getters.xt_user.template_info.template_id == 46 ||  this.$store.getters.xt_user.template_info.template_id == 48 ||  this.$store.getters.xt_user.template_info.template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249)">
86
                         <el-form-item label="目标超滤量(ml):">
86
                         <el-form-item label="目标超滤量(ml):">
87
                             <el-input
87
                             <el-input
88
                                     type="number"
88
                                     type="number"
93
 
93
 
94
 
94
 
95
                     <el-col :span="8"
95
                     <el-col :span="8"
96
-                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249">
96
+                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 &&  this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249">
97
                         <el-form-item label="目标超滤量(L):">
97
                         <el-form-item label="目标超滤量(L):">
98
                             <el-input
98
                             <el-input
99
                                     type="number"
99
                                     type="number"

+ 16 - 0
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Zobrazit soubor

233
                 template_id == 51 ||
233
                 template_id == 51 ||
234
                 template_id == 53 ||
234
                 template_id == 53 ||
235
                 template_id == 54 ||
235
                 template_id == 54 ||
236
+                template_id == 56 ||
236
                 org_id == 10210 ||
237
                 org_id == 10210 ||
237
                 org_id == 9555)
238
                 org_id == 9555)
238
             "
239
             "
287
               template_id != 51 &&
288
               template_id != 51 &&
288
               template_id != 53 &&
289
               template_id != 53 &&
289
               template_id != 54 &&
290
               template_id != 54 &&
291
+              template_id != 56 &&
290
               org_id!= 10210 &&
292
               org_id!= 10210 &&
291
               org_id != 9555
293
               org_id != 9555
292
             "
294
             "
334
                 template_id == 48 ||
336
                 template_id == 48 ||
335
                 template_id == 53 ||
337
                 template_id == 53 ||
336
                 template_id == 54 ||
338
                 template_id == 54 ||
339
+                template_id == 56 ||
337
                 template_id == 47)
340
                 template_id == 47)
338
             "
341
             "
339
           >
342
           >
378
               template_id != 46 &&
381
               template_id != 46 &&
379
               template_id != 53 &&
382
               template_id != 53 &&
380
               template_id != 54 &&
383
               template_id != 54 &&
384
+              template_id != 56 &&
381
               template_id != 48 &&
385
               template_id != 48 &&
382
               template_id != 47
386
               template_id != 47
383
             "
387
             "
436
                 template_id == 48 ||
440
                 template_id == 48 ||
437
                 template_id == 53 ||
441
                 template_id == 53 ||
438
                 template_id == 54 ||
442
                 template_id == 54 ||
443
+                template_id == 56 ||
439
                 template_id == 47)
444
                 template_id == 47)
440
             "
445
             "
441
           >
446
           >
460
               template_id != 48 &&
465
               template_id != 48 &&
461
               template_id != 53 &&
466
               template_id != 53 &&
462
               template_id != 54 &&
467
               template_id != 54 &&
468
+              template_id != 56 &&
463
               template_id != 47
469
               template_id != 47
464
             "
470
             "
465
           >
471
           >
501
                 template_id == 29 ||
507
                 template_id == 29 ||
502
                 template_id == 53 ||
508
                 template_id == 53 ||
503
                 template_id == 54 ||
509
                 template_id == 54 ||
510
+                template_id == 56 ||
504
                 template_id == 48)
511
                 template_id == 48)
505
             "
512
             "
506
           >
513
           >
529
               template_id != 43 &&
536
               template_id != 43 &&
530
               template_id != 53 &&
537
               template_id != 53 &&
531
               template_id != 54 &&
538
               template_id != 54 &&
539
+              template_id != 56 &&
532
               template_id != 48
540
               template_id != 48
533
             "
541
             "
534
           >
542
           >
1017
                 template_id == 48 ||
1025
                 template_id == 48 ||
1018
                 template_id == 53 ||
1026
                 template_id == 53 ||
1019
                 template_id == 54 ||
1027
                 template_id == 54 ||
1028
+                template_id == 56 ||
1020
                 template_id == 47)
1029
                 template_id == 47)
1021
             "
1030
             "
1022
           >
1031
           >
1055
               template_id != 48 &&
1064
               template_id != 48 &&
1056
               template_id != 53 &&
1065
               template_id != 53 &&
1057
               template_id != 54 &&
1066
               template_id != 54 &&
1067
+              template_id != 56 &&
1058
               template_id != 47
1068
               template_id != 47
1059
             "
1069
             "
1060
           >
1070
           >
1100
                 template_id == 51 ||
1110
                 template_id == 51 ||
1101
                 template_id == 53 ||
1111
                 template_id == 53 ||
1102
                 template_id == 54 ||
1112
                 template_id == 54 ||
1113
+                template_id == 56 ||
1103
                 org_id == 10210 ||
1114
                 org_id == 10210 ||
1104
                 org_id == 9555)
1115
                 org_id == 9555)
1105
             "
1116
             "
1146
               template_id == 48 &&
1157
               template_id == 48 &&
1147
               template_id == 53 &&
1158
               template_id == 53 &&
1148
               template_id == 54 &&
1159
               template_id == 54 &&
1160
+              template_id == 56 &&
1149
               org_id !=  10210 &&
1161
               org_id !=  10210 &&
1150
               org_id != 9555
1162
               org_id != 9555
1151
             "
1163
             "
1182
               template_id != 47 &&
1194
               template_id != 47 &&
1183
               template_id != 48 &&
1195
               template_id != 48 &&
1184
               template_id != 54 &&
1196
               template_id != 54 &&
1197
+              template_id != 56 &&
1185
               template_id != 53
1198
               template_id != 53
1186
             "
1199
             "
1187
           >
1200
           >
1203
                 template_id == 47 ||
1216
                 template_id == 47 ||
1204
                 template_id == 53 ||
1217
                 template_id == 53 ||
1205
                 template_id == 54 ||
1218
                 template_id == 54 ||
1219
+                template_id == 56 ||
1206
                 template_id == 48)
1220
                 template_id == 48)
1207
             "
1221
             "
1208
           >
1222
           >
1229
               template_id != 46 &&
1243
               template_id != 46 &&
1230
               template_id != 53 &&
1244
               template_id != 53 &&
1231
               template_id != 54 &&
1245
               template_id != 54 &&
1246
+              template_id != 56 &&
1232
               template_id != 48
1247
               template_id != 48
1233
             "
1248
             "
1234
           >
1249
           >
1252
                 template_id == 46 ||
1267
                 template_id == 46 ||
1253
                 template_id == 53 ||
1268
                 template_id == 53 ||
1254
                 template_id == 54 ||
1269
                 template_id == 54 ||
1270
+                template_id == 56 ||
1255
                 template_id == 48)
1271
                 template_id == 48)
1256
             "
1272
             "
1257
           >
1273
           >

+ 8 - 8
src/xt_pages/dialysis/details/dialysisMonitoring.vue Zobrazit soubor

14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
17
-          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 39 || template_id == 40  || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || template_id == 53 || template_id == 54)" width="76px" > 超滤量(ml)</th>
18
-          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40  && template_id != 41 && template_id != 43 && template_id != 44 && template_id != 46  && template_id != 47 && template_id != 48 && template_id != 53  && template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 9555"  width="76px"> 超滤量(L) </th>
19
-          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47  || template_id == 48  || template_id == 53)" width="50px"> 超滤率 <br />(ml/h) </th>
20
-          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=46 && template_id !=47 &&  template_id !=48 &&  template_id !=53" width="50px"> 超滤率 <br />(L/h) </th>
17
+          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 39 || template_id == 40  || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || template_id == 53 || template_id == 54 || template_id == 56)" width="76px" > 超滤量(ml)</th>
18
+          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40  && template_id != 41 && template_id != 43 && template_id != 44 && template_id != 46  && template_id != 47 && template_id != 48 && template_id != 53  && template_id != 54  && template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555"  width="76px"> 超滤量(L) </th>
19
+          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47  || template_id == 48  || template_id == 53 || template_id == 54 || template_id == 56)" width="50px"> 超滤率 <br />(ml/h) </th>
20
+          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=46 && template_id !=47 &&  template_id !=48 &&  template_id !=53 &&  template_id !=54 &&  template_id !=56" width="50px"> 超滤率 <br />(L/h) </th>
21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
23
-          <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 47 || template_id == 48 || template_id == 53  || template_id == 54) " width="92px" > 置换率(ml/min) </th>
24
-          <th v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 47 && template_id != 48 && template_id != 53 && template_id != 54" width="92px" > 置换率(L/h)  </th>
23
+          <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 47 || template_id == 48 || template_id == 53  || template_id == 54 || template_id == 56) " width="92px" > 置换率(ml/min) </th>
24
+          <th v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 47 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56" width="92px" > 置换率(L/h)  </th>
25
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
25
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
26
-          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54)" width="92px"  > 置换量(ml)  </th>
27
-          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54)" width="92px" > 置换量(L) </th>
26
+          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56)" width="92px"  > 置换量(ml)  </th>
27
+          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56)" width="92px" > 置换量(L) </th>
28
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
28
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
29
           <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
29
           <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
30
           <th v-if="isShow('置换液流量') && template_id != 27" width="92px">置换液流量(ml/h)</th>
30
           <th v-if="isShow('置换液流量') && template_id != 27" width="92px">置换液流量(ml/h)</th>

+ 36 - 31
src/xt_pages/dialysis/details/index.vue Zobrazit soubor

17
           @click="next"
17
           @click="next"
18
           >下一位</el-button
18
           >下一位</el-button
19
         >
19
         >
20
-        <el-button
20
+        <!-- <el-button
21
           size="small"
21
           size="small"
22
           type="primary"
22
           type="primary"
23
           @click="printOrderOne"
23
           @click="printOrderOne"
24
           icon="el-icon-printer"
24
           icon="el-icon-printer"
25
-          >打印上机单</el-button
26
-        >
25
+          >打印上机单</el-button> -->
26
+
27
         <el-button
27
         <el-button
28
           size="small"
28
           size="small"
29
           type="primary"
29
           type="primary"
214
         </el-tab-pane>
214
         </el-tab-pane>
215
       </el-tabs>
215
       </el-tabs>
216
 
216
 
217
-     
217
+
218
 
218
 
219
         <el-dialog
219
         <el-dialog
220
                 :visible.sync="startVisibility"
220
                 :visible.sync="startVisibility"
237
              <div v-for="(main_collection,index) in printList" :key="index">
237
              <div v-for="(main_collection,index) in printList" :key="index">
238
               <div class="signPrint" style="font-size:16px;">
238
               <div class="signPrint" style="font-size:16px;">
239
                 <div style="margin-left:50px;">姓名:
239
                 <div style="margin-left:50px;">姓名:
240
-                  <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
241
-                  <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
240
+                  <span>{{main_collection.patient.name}} </span>
242
                   ({{ main_collection.patient.dialysis_no }},{{ main_collection.patient.age }}岁)
241
                   ({{ main_collection.patient.dialysis_no }},{{ main_collection.patient.age }}岁)
243
                 </div>
242
                 </div>
244
                 <div class="printCell">
243
                 <div class="printCell">
248
                     <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
247
                     <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
249
                     <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
248
                     <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
250
                   </span>
249
                   </span>
251
-                  <span> </span>
250
+                  <span>{{ printDate }}</span>
252
                 </div>
251
                 </div>
253
                 <div class="printCell">
252
                 <div class="printCell">
254
                    <span>干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
253
                    <span>干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
255
                     <span>抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
254
                     <span>抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
256
-                 
255
+
257
                 </div>
256
                 </div>
258
                 <div class="printCell">
257
                 <div class="printCell">
259
                   <span>净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
258
                   <span>净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
290
                    </span>
289
                    </span>
291
                 </div>
290
                 </div>
292
                 <div class="printCell">
291
                 <div class="printCell">
293
-                  <span>体重增加:{{ (main_collection.assessmentbefor.weight_before - main_collection.lastafterweight.weight_after).toFixed(2) }}Kg</span>
292
+                  <span>体重增加:{{ (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2) }}Kg</span>
294
                  维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
293
                  维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
295
                    <span v-if="main_collection.dialysissolution.anticoagulant == 1">
294
                    <span v-if="main_collection.dialysissolution.anticoagulant == 1">
296
                     mg/h
295
                     mg/h
371
 
370
 
372
       <span slot="footer" class="dialog-footer">
371
       <span slot="footer" class="dialog-footer">
373
         <el-button @click="startVisibility = false">取 消</el-button>
372
         <el-button @click="startVisibility = false">取 消</el-button>
374
-        <el-button type="primary" @click="startVisibility = false">确 定</el-button>
375
       </span>
373
       </span>
376
     </el-dialog>
374
     </el-dialog>
377
 
375
 
858
       startVisibility:false,
856
       startVisibility:false,
859
       printList:[],
857
       printList:[],
860
       anticoagulants_confit:null,
858
       anticoagulants_confit:null,
859
+      printDate:'',
860
+      assessmentAfterDislysis:{},
861
     }
861
     }
862
   },
862
   },
863
   created() {
863
   created() {
864
+   this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
864
     if(this.$route.query.showView){
865
     if(this.$route.query.showView){
865
       this.showView = this.$route.query.showView
866
       this.showView = this.$route.query.showView
866
     }
867
     }
903
     };
904
     };
904
     this.websocketSend(this.initData)
905
     this.websocketSend(this.initData)
905
     this.getInitData()
906
     this.getInitData()
906
-    this.getInitPrintData()
907
+
907
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
908
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
908
   },
909
   },
909
   beforeMount() {
910
   beforeMount() {
1173
           }
1174
           }
1174
 
1175
 
1175
           var solution = resp.data.solution // 透析方案
1176
           var solution = resp.data.solution // 透析方案
1176
-         
1177
+
1177
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
1178
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
1178
 
1179
 
1179
           var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
1180
           var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
1180
-        
1181
+
1181
           if (predialysis_evaluation != null) {
1182
           if (predialysis_evaluation != null) {
1182
             if (predialysis_evaluation.blood_access_part_id == -2) {
1183
             if (predialysis_evaluation.blood_access_part_id == -2) {
1183
               predialysis_evaluation.blood_access_part_id = 0
1184
               predialysis_evaluation.blood_access_part_id = 0
1230
           var system_prescribe = resp.data.system_prescribe
1231
           var system_prescribe = resp.data.system_prescribe
1231
 
1232
 
1232
           var lastAssessment =  resp.data.lastAssessment
1233
           var lastAssessment =  resp.data.lastAssessment
1233
-         
1234
+
1234
           this.$refs.nav.setLastRecord(
1235
           this.$refs.nav.setLastRecord(
1235
             lastPredialysisEvaluation,
1236
             lastPredialysisEvaluation,
1236
             lastMonitorRecord,
1237
             lastMonitorRecord,
1320
           this.device_numbers = resp.data.device_numbers
1321
           this.device_numbers = resp.data.device_numbers
1321
 
1322
 
1322
           var his_doctor_advices = resp.data.his_advices
1323
           var his_doctor_advices = resp.data.his_advices
1323
-        
1324
+
1324
           this.his_doctor_advices = his_doctor_advices
1325
           this.his_doctor_advices = his_doctor_advices
1325
           this.his_is_open = resp.data.is_open_config.is_open
1326
           this.his_is_open = resp.data.is_open_config.is_open
1326
 
1327
 
1327
           this.is_advice_open = resp.data.is_advice_open.is_advice_open
1328
           this.is_advice_open = resp.data.is_advice_open.is_advice_open
1328
-          
1329
+
1329
           var stockType =  resp.data.stockType
1330
           var stockType =  resp.data.stockType
1330
           this.stockType = stockType
1331
           this.stockType = stockType
1331
 
1332
 
1336
           }else{
1337
           }else{
1337
             this.preparestock = []
1338
             this.preparestock = []
1338
           }
1339
           }
1339
-    
1340
+
1340
           for (let i = 0; i <  this.doctor_advices.length; i++){
1341
           for (let i = 0; i <  this.doctor_advices.length; i++){
1341
             this.doctor_advices[i]['origin'] = 1
1342
             this.doctor_advices[i]['origin'] = 1
1342
           }
1343
           }
1400
       )
1401
       )
1401
     },
1402
     },
1402
     printOrderOne(){
1403
     printOrderOne(){
1403
-      this.startVisibility = true
1404
+      this.getInitPrintData()
1405
+
1404
     },
1406
     },
1405
     // 日期
1407
     // 日期
1406
     handleScheduleDateChange: function(index) {
1408
     handleScheduleDateChange: function(index) {
1524
           //   }
1526
           //   }
1525
           // }
1527
           // }
1526
 
1528
 
1527
-         
1529
+
1528
           this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1530
           this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1529
           const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
1531
           const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
1530
           if (this.activeName == 'first') {
1532
           if (this.activeName == 'first') {
1552
           })
1554
           })
1553
           this.tableData = newArr
1555
           this.tableData = newArr
1554
           this.getData()
1556
           this.getData()
1555
-         
1557
+
1556
         } else {
1558
         } else {
1557
           this.$message.error(resp.msg)
1559
           this.$message.error(resp.msg)
1558
         }
1560
         }
1725
           for (let j = 0; j < patientArr[i].schedules.length; j++) {
1727
           for (let j = 0; j < patientArr[i].schedules.length; j++) {
1726
             if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order == null) {
1728
             if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order == null) {
1727
               // 删除元素后改变i的值
1729
               // 删除元素后改变i的值
1728
-              
1730
+
1729
               patientArr[i].schedules.splice(j--, 1)
1731
               patientArr[i].schedules.splice(j--, 1)
1730
             }
1732
             }
1731
           }
1733
           }
1732
         }
1734
         }
1733
         let arr1 = []
1735
         let arr1 = []
1734
-     
1736
+
1735
         // let patientArr =
1737
         // let patientArr =
1736
         if (this.patientStateVal == 0) {
1738
         if (this.patientStateVal == 0) {
1737
           arr1 = patientArr
1739
           arr1 = patientArr
1746
               }
1748
               }
1747
             }
1749
             }
1748
           }
1750
           }
1749
-         
1751
+
1750
           arr1 = arr
1752
           arr1 = arr
1751
         } else if (this.patientStateVal == 2) {
1753
         } else if (this.patientStateVal == 2) {
1752
           let arr = []
1754
           let arr = []
1759
               }
1761
               }
1760
             }
1762
             }
1761
           }
1763
           }
1762
-         
1764
+
1763
           arr1 = arr
1765
           arr1 = arr
1764
         } else if (this.patientStateVal == 3) {
1766
         } else if (this.patientStateVal == 3) {
1765
           let arr = []
1767
           let arr = []
1785
               }
1787
               }
1786
             }
1788
             }
1787
           }
1789
           }
1788
-      
1790
+
1789
           arr1 = arr
1791
           arr1 = arr
1790
         }
1792
         }
1791
 
1793
 
1809
           arr = JSON.parse(JSON.stringify(arr1))
1811
           arr = JSON.parse(JSON.stringify(arr1))
1810
           for (let i = 0; i < arr.length; i++) {
1812
           for (let i = 0; i < arr.length; i++) {
1811
             for (let j = 0; j < arr[i].schedules.length; j++) {
1813
             for (let j = 0; j < arr[i].schedules.length; j++) {
1812
-             
1814
+
1813
               if(arr[i].schedules[j].doctor_advice.length == 0){
1815
               if(arr[i].schedules[j].doctor_advice.length == 0){
1814
                 arr[i].schedules.splice(j--, 1)
1816
                 arr[i].schedules.splice(j--, 1)
1815
               }
1817
               }
1918
       }
1920
       }
1919
     },
1921
     },
1920
     websocketMess() {
1922
     websocketMess() {
1921
-     
1923
+
1922
       this.websocket.onmessage = e => {
1924
       this.websocket.onmessage = e => {
1923
         let res = JSON.parse(e.data);
1925
         let res = JSON.parse(e.data);
1924
         // let res = re.data;
1926
         // let res = re.data;
1967
                   calledArr.push(item)
1969
                   calledArr.push(item)
1968
               }
1970
               }
1969
           })
1971
           })
1970
-    
1972
+
1971
           this.waitingCalled = waitingCalledArr
1973
           this.waitingCalled = waitingCalledArr
1972
           this.called = calledArr
1974
           this.called = calledArr
1973
         }else if(res.channel == 'allQueueList'){
1975
         }else if(res.channel == 'allQueueList'){
2024
       let org_id =  parseInt(sessionStorage.getItem("org_id"));
2026
       let org_id =  parseInt(sessionStorage.getItem("org_id"));
2025
       let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
2027
       let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
2026
       axios.get('/api/index/callpatient?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id).then(res => {
2028
       axios.get('/api/index/callpatient?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id).then(res => {
2027
-       
2029
+
2028
         // let patientArr = res.data.queue_list.data
2030
         // let patientArr = res.data.queue_list.data
2029
         // this.patientArr = patientArr
2031
         // this.patientArr = patientArr
2030
         // this.$emit('child-event',this.patientArr)
2032
         // this.$emit('child-event',this.patientArr)
2086
       }else {
2088
       }else {
2087
         schedule_type = 2
2089
         schedule_type = 2
2088
       }
2090
       }
2089
-     
2091
+
2090
       let org_id =  parseInt(sessionStorage.getItem("org_id"));
2092
       let org_id =  parseInt(sessionStorage.getItem("org_id"));
2091
       let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
2093
       let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
2092
       axios.get('/api/index/nextcall?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id + '&schedule_type=' + schedule_type).then(res => {
2094
       axios.get('/api/index/nextcall?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id + '&schedule_type=' + schedule_type).then(res => {
2150
           documentTitle: '  ',
2152
           documentTitle: '  ',
2151
           style: style1,
2153
           style: style1,
2152
           scanStyles: false
2154
           scanStyles: false
2153
-        }) 
2155
+        })
2154
       },
2156
       },
2155
     getInitPrintData(){
2157
     getInitPrintData(){
2156
        var params = {
2158
        var params = {
2160
       getInitPrintData(params).then(response=>{
2162
       getInitPrintData(params).then(response=>{
2161
         if(response.data.state == 1){
2163
         if(response.data.state == 1){
2162
           var list = response.data.data.list
2164
           var list = response.data.data.list
2165
+          var assessmentAfterDislysis =  response.data.data.assessmentAfterDislysis
2163
           console.log("list2332322332",list)
2166
           console.log("list2332322332",list)
2164
           this.printList = list
2167
           this.printList = list
2168
+          this.assessmentAfterDislysis = assessmentAfterDislysis
2169
+          this.startVisibility = true
2165
         }
2170
         }
2166
       })
2171
       })
2167
     }
2172
     }

+ 3 - 5
src/xt_pages/dialysis/dialysisDoctorAdvice.vue Zobrazit soubor

559
             
559
             
560
             if(project_config.is_open == 1){
560
             if(project_config.is_open == 1){
561
               this.project = resp.data.project
561
               this.project = resp.data.project
562
-              console.log( this.project)
562
+              console.log("wode 2o2o3o3o23o32o32o23o32o32o", this.project)
563
              
563
              
564
               let projectArr = []
564
               let projectArr = []
565
               if(this.org_id!= 10318){
565
               if(this.org_id!= 10318){
570
                     }
570
                     }
571
                   })
571
                   })
572
                 })
572
                 })
573
-                
573
+                console.log("projectArr2332323232323232",projectArr)
574
                  resp.data.hisAdvices.map((item,index) => {
574
                  resp.data.hisAdvices.map((item,index) => {
575
                   if(projectArr[index].project && projectArr[index].project.length > 0){
575
                   if(projectArr[index].project && projectArr[index].project.length > 0){
576
                      projectArr[index].project.map(it => {
576
                      projectArr[index].project.map(it => {
598
                     })
598
                     })
599
                   }
599
                   }
600
                 })
600
                 })
601
+                console.log("hh3oo1o3o123o3oo312o132o312o31o132o",resp.data.hisAdvices)
601
               }
602
               }
602
-            
603
-             
604
-
605
             }
603
             }
606
            
604
            
607
            if(config.is_open == 0 || config.is_open == 2){
605
            if(config.is_open == 0 || config.is_open == 2){

+ 1 - 1
src/xt_pages/dialysis/dialysisPage.vue Zobrazit soubor

648
                     <p>{{ DialysisPrescriptionComfirmUserName }}</p>
648
                     <p>{{ DialysisPrescriptionComfirmUserName }}</p>
649
                     <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="commitDialysisPrescriptionAndOther">提交并设为长期处方</el-button>
649
                     <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="commitDialysisPrescriptionAndOther">提交并设为长期处方</el-button>
650
                     <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="commitDialysisPrescription">提交</el-button>
650
                     <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="commitDialysisPrescription">提交</el-button>
651
-                    <el-button type="primary" @click="printDan">打印上机单</el-button>
651
+                    <!-- <el-button type="primary" @click="printDan">打印上机单</el-button> -->
652
                   </el-form-item>
652
                   </el-form-item>
653
                 </el-col>
653
                 </el-col>
654
 
654
 

+ 65 - 5
src/xt_pages/dialysis/dialysisPrintOrder.vue Zobrazit soubor

688
           >打印</el-button
688
           >打印</el-button
689
         >
689
         >
690
       </template>
690
       </template>
691
+      <template
692
+        v-if="
693
+          org_template_info.template_id == 55
694
+        "
695
+      >
696
+        <el-button
697
+          :loading="loading"
698
+          size="small"
699
+          icon="el-icon-printer"
700
+          @click="printThisPage"
701
+          type="primary"
702
+          >打印</el-button
703
+        >
704
+      </template>
705
+      <template
706
+        v-if="
707
+          org_template_info.template_id == 56
708
+        "
709
+      >
710
+        <el-button
711
+          :loading="loading"
712
+          size="small"
713
+          icon="el-icon-printer"
714
+          @click="printThisPage"
715
+          type="primary"
716
+          >打印</el-button
717
+        >
718
+      </template>
691
     </div>
719
     </div>
692
     <div class="app-container" style="min-height: 0">
720
     <div class="app-container" style="min-height: 0">
693
       <!--<div class="order-print-btn"-->
721
       <!--<div class="order-print-btn"-->
846
             v-if="org_template_info.template_id == 5"
874
             v-if="org_template_info.template_id == 5"
847
           >
875
           >
848
           </DialysisPrintOrderFive>
876
           </DialysisPrintOrderFive>
849
-
877
+                                  
850
           <DialysisPrintOrderSix
878
           <DialysisPrintOrderSix
851
             v-bind:childResponse="childResponse"
879
             v-bind:childResponse="childResponse"
852
             v-if="org_template_info.template_id == 6"
880
             v-if="org_template_info.template_id == 6"
1089
             v-if="org_template_info.template_id == 54"
1117
             v-if="org_template_info.template_id == 54"
1090
           >
1118
           >
1091
           </DialysisPrintOrderFiftyFour>
1119
           </DialysisPrintOrderFiftyFour>
1120
+           <DialysisPrintOrderFiftyfive
1121
+            v-bind:childResponse="childResponse"
1122
+            v-if="org_template_info.template_id == 55"
1123
+          >
1124
+          </DialysisPrintOrderFiftyfive>
1125
+          <DialysisPrintOrderFiftySix
1126
+            v-bind:childResponse="childResponse"
1127
+            v-if="org_template_info.template_id == 56"
1128
+          >
1129
+          </DialysisPrintOrderFiftySix>
1092
           
1130
           
1093
         </div>
1131
         </div>
1094
       </el-container>
1132
       </el-container>
1161
 import DialysisPrintOrderFiftyOne from "./template/DialysisPrintOrderFiftyOne";
1199
 import DialysisPrintOrderFiftyOne from "./template/DialysisPrintOrderFiftyOne";
1162
 import DialysisPrintOrderFiftyTwo from "./template/DialysisPrintOrderFiftyTwo";
1200
 import DialysisPrintOrderFiftyTwo from "./template/DialysisPrintOrderFiftyTwo";
1163
 import DialysisPrintOrderFiftyThree from "./template/DialysisPrintOrderFiftyThree";
1201
 import DialysisPrintOrderFiftyThree from "./template/DialysisPrintOrderFiftyThree";
1164
-import DialysisPrintOrderFiftyFour from "./template/DialysisPrintOrderFiftyFour"
1202
+import DialysisPrintOrderFiftyFour from "./template/DialysisPrintOrderFiftyFour";
1203
+import DialysisPrintOrderFiftyfive from "./template/DialysisPrintOrderFiftyfive"
1204
+import DialysisPrintOrderFiftySix from "./template/DialysisPrintOrderFiftySix"
1165
 export default {
1205
 export default {
1166
   name: "dialysisPrintOrder",
1206
   name: "dialysisPrintOrder",
1167
   components: {
1207
   components: {
1208
+    DialysisPrintOrderFiftySix,
1209
+    DialysisPrintOrderFiftyfive,
1168
     DialysisPrintOrderFiftyFour,
1210
     DialysisPrintOrderFiftyFour,
1169
     DialysisPrintOrderFiftyThree,
1211
     DialysisPrintOrderFiftyThree,
1170
     DialysisPrintOrderFiftyTwo,
1212
     DialysisPrintOrderFiftyTwo,
1379
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1421
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1380
       const style2 =
1422
       const style2 =
1381
         // 防止分页错位问题:table设置border: none;.tr设置page-break-inside:avoid; // 防止table数据太多,tr分页错乱 td设置border: 1px solid #000;// 防止部分分页的tr边框线没有
1423
         // 防止分页错位问题:table设置border: none;.tr设置page-break-inside:avoid; // 防止table数据太多,tr分页错乱 td设置border: 1px solid #000;// 防止部分分页的tr边框线没有
1382
-        '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}';
1424
+        '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px} ';
1383
       const style3 =
1425
       const style3 =
1384
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:16px;border-color: #000;}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #000;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #000;text-align: center;white-space: nowrap; width: 50%;}';
1426
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:16px;border-color: #000;}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #000;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #000;text-align: center;white-space: nowrap; width: 50%;}';
1385
       // const style3 =
1427
       // const style3 =
1402
       // 三明曙光样式
1444
       // 三明曙光样式
1403
       const style11 =
1445
       const style11 =
1404
         '@media print {.dialysis-print-order{width:960px;margin:100px auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:30px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:15px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1446
         '@media print {.dialysis-print-order{width:960px;margin:100px auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:30px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:15px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1405
-      // 漳浦天福样式
1406
-      const style12 ='@page {margin-top:5px;}@media print {.dialysis-print-order{width:960px;margin:0 auto} .dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px} .dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .print-table tbody tr td{border-collapse:collapse;} .list_table{border-collapse:collapse;height:40px;display: flex;justify-content: flex-start;} .list_table div{text-align: left;flex: 1;}  .list_table_1{height:40px;line-height:40px;text-align:left;border-collapse:collapse;} .list_table_1 div{height:40px;line-height:40px;} .dialysis-print-order .print-table-2{ width: 100%;text-align: left;border-collapse: collapse;line-height: 38px;font-size: 14px;} .dialysis-print-order .print-table-2 tbody tr{height:43px; padding-bottom:-12px;} .print-table-2 tbody tr td{padding-bottom:-12px;} .td_div1{display:flex;white-space: normal;} .print-table-3{text-align: center;width: 300px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-3 .tr_3{border-bottom: 1px solid;} .print-table-3 .td_3 {border-right: 1px solid;} .print-table-3 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-3 .td_3_2 {width:72px;border-right: 1px solid;} .dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}@page {margin-left:30px;margin-right:40px;}';
1447
+      // 雷州惠爱样式
1448
+      const style12 ='@page {margin-top:5px;}@media print {.dialysis-print-order{width:960px;margin:0 auto;margin-top:50px;} .dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px} .dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .print-table tbody tr td{border-collapse:collapse;} .dialysis-print-order .print-table .short_tr th p{height:20px !important; line-height:20px !important;} .list_table{border-collapse:collapse;height:40px;display: flex;justify-content: flex-start;} .list_table div{text-align: left;flex: 1;}  .list_table_1{height:40px;line-height:40px;text-align:left;border-collapse:collapse;} .list_table_1 div{height:40px;line-height:40px;} .dialysis-print-order .td_div1{display:flex;white-space: normal;} .dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-table tr th p{height: 20px; line-height: 20px}  .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}@page {margin-left:30px;margin-right:40px;} ';
1407
       // 金乡宏大样式
1449
       // 金乡宏大样式
1408
       const style13 ='@page {margin-top:5px;}@media print {.dialysis-print-order{width:960px;margin:0 auto} .dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px} .dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .print-table tbody tr td{border-collapse:collapse;} .list_table{border-collapse:collapse;height:40px;display: flex;justify-content: flex-start;} .list_table div{text-align: left;flex: 1;}  .list_table_1{height:40px;line-height:40px;text-align:left;border-collapse:collapse;} .list_table_1 div{height:40px;line-height:40px;} .dialysis-print-order .print-table-2{ width: 100%;text-align: left;border-collapse: collapse;line-height: 38px;font-size: 14px;} .dialysis-print-order .print-table-2 tbody tr{height:43px; padding-bottom:-12px;} .print-table-2 tbody tr td{padding-bottom:-12px;} .td_div1{display:flex;white-space: normal;} .print-table-3{text-align: center;width: 390px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-3 .tr_3{border-bottom: 1px solid;} .print-table-3 .td_3 {border-right: 1px solid;} .print-table-3 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-3 .td_3_2 {width:72px;border-right: 1px solid;} .print-table-4{text-align: center;width: 300px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-4 .tr_3{border-bottom: 1px solid;}  .print-table-4 .td_3 {border-right: 1px solid;} .print-table-4 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-4 .td_3_2 {width:72px;border-right: 1px solid;} .print-table-5{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .dialysis-print-order .print-table-5 tr td_5{width:75px;} .dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}@page {margin-left:30px;margin-right:40px;}';
1450
       const style13 ='@page {margin-top:5px;}@media print {.dialysis-print-order{width:960px;margin:0 auto} .dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px} .dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .print-table tbody tr td{border-collapse:collapse;} .list_table{border-collapse:collapse;height:40px;display: flex;justify-content: flex-start;} .list_table div{text-align: left;flex: 1;}  .list_table_1{height:40px;line-height:40px;text-align:left;border-collapse:collapse;} .list_table_1 div{height:40px;line-height:40px;} .dialysis-print-order .print-table-2{ width: 100%;text-align: left;border-collapse: collapse;line-height: 38px;font-size: 14px;} .dialysis-print-order .print-table-2 tbody tr{height:43px; padding-bottom:-12px;} .print-table-2 tbody tr td{padding-bottom:-12px;} .td_div1{display:flex;white-space: normal;} .print-table-3{text-align: center;width: 390px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-3 .tr_3{border-bottom: 1px solid;} .print-table-3 .td_3 {border-right: 1px solid;} .print-table-3 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-3 .td_3_2 {width:72px;border-right: 1px solid;} .print-table-4{text-align: center;width: 300px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-4 .tr_3{border-bottom: 1px solid;}  .print-table-4 .td_3 {border-right: 1px solid;} .print-table-4 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-4 .td_3_2 {width:72px;border-right: 1px solid;} .print-table-5{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .dialysis-print-order .print-table-5 tr td_5{width:75px;} .dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}@page {margin-left:30px;margin-right:40px;}';
1409
 
1451
 
1762
           style: style13,
1804
           style: style13,
1763
           scanStyles: false,
1805
           scanStyles: false,
1764
         });
1806
         });
1807
+      }else if (
1808
+        this.org_template_info.template_id == 55
1809
+      ) {
1810
+        printJS({
1811
+          printable: "dialysis-print-box-1",
1812
+          type: "html",
1813
+          style: style2,
1814
+          scanStyles: false,
1815
+        });
1816
+      }else if (
1817
+        this.org_template_info.template_id == 56
1818
+      ) {
1819
+        printJS({
1820
+          printable: "dialysis-print-box-1",
1821
+          type: "html",
1822
+          style: style2,
1823
+          scanStyles: false,
1824
+        });
1765
       }
1825
       }
1766
     },
1826
     },
1767
     printThisOnePage() {
1827
     printThisOnePage() {

Diff nebyl zobrazen, protože je příliš veliký
+ 3791 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderFiftySix.vue


+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue Zobrazit soubor

324
               医师签名:
324
               医师签名:
325
               <span
325
               <span
326
                 style="height: 20px"
326
                 style="height: 20px"
327
-                v-if="setAdminUserES(prescription.creater) == ''"
327
+                v-if="setAdminUserES(prescription.modifier) == ''"
328
               >
328
               >
329
-                {{ getAdminUser(prescription.creater) }}
329
+                {{ getAdminUser(prescription.modifier) }}
330
               </span>
330
               </span>
331
               <img
331
               <img
332
                 class="es-img"
332
                 class="es-img"
333
                 style="height: 25px"
333
                 style="height: 25px"
334
-                :src="setAdminUserES(prescription.creater)"
334
+                :src="setAdminUserES(prescription.modifier)"
335
                 alt
335
                 alt
336
                 srcset
336
                 srcset
337
                 v-else
337
                 v-else

Diff nebyl zobrazen, protože je příliš veliký
+ 3598 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyfive.vue


+ 1 - 6
src/xt_pages/hospitalStation/invoiceTemplate/printTwo.vue Zobrazit soubor

186
           </span>
186
           </span>
187
           <span style="position: absolute; top: 235px; left: 250px">
187
           <span style="position: absolute; top: 235px; left: 250px">
188
             <span v-if="zhongwen.indexOf('仟') > -1">
188
             <span v-if="zhongwen.indexOf('仟') > -1">
189
-              {{
190
-                zhongwen.substring(
191
-                  zhongwen.indexOf("仟") - 1,
192
-                  zhongwen.indexOf("仟")
193
-                )
194
-              }}
189
+              {{zhongwen.substring(zhongwen.indexOf("仟") - 1,zhongwen.indexOf("仟"))}}
195
             </span>
190
             </span>
196
             <span v-else>零</span>
191
             <span v-else>零</span>
197
           </span>
192
           </span>

+ 1 - 1
src/xt_pages/outpatientCharges/statementPrint.vue Zobrazit soubor

420
               this.balanceAccounts.order_info.map((item) => {
420
               this.balanceAccounts.order_info.map((item) => {
421
                 if (item.advice_id > 0) {
421
                 if (item.advice_id > 0) {
422
                   obj.details.push(item);
422
                   obj.details.push(item);
423
-                  obj.total += item.pric * item.advice.prescribing_number;
423
+                  obj.total += item.pric.toFixed(2) * item.advice.prescribing_number
424
                   num++;
424
                   num++;
425
                 } else {
425
                 } else {
426
                   if (item.project.type == 2) {
426
                   if (item.project.type == 2) {

+ 1 - 1
src/xt_pages/outpatientCharges/summary.vue Zobrazit soubor

1234
         number: obj.mdtrt_id,
1234
         number: obj.mdtrt_id,
1235
         name: obj.patient.name,
1235
         name: obj.patient.name,
1236
         age: obj.age,
1236
         age: obj.age,
1237
-        gend: obj.gend,
1237
+        gend: obj.patient.gender,
1238
         setl_time: obj.setl_time,
1238
         setl_time: obj.setl_time,
1239
         chargeName: this.getName(obj.creator),
1239
         chargeName: this.getName(obj.creator),
1240
       };
1240
       };