Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

XMLWAN 2 years ago
parent
commit
42408478d3

+ 8 - 0
src/api/config.js View File

@@ -202,3 +202,11 @@ export function changePrescriptionConfig(params) {
202 202
     params: params
203 203
   })
204 204
 }
205
+
206
+export function changeDrugOpenConfig(params) {
207
+  return request({
208
+    url: '/api/changedrugopenconfig',
209
+    method: 'get',
210
+    params: params
211
+  })
212
+}

+ 8 - 0
src/api/dialysis.js View File

@@ -291,3 +291,11 @@ export function GetDialysisGoodStatistics(params) {
291 291
 
292 292
   })
293 293
 }
294
+
295
+export function changeRole(params) {
296
+  return request({
297
+    url: '/api/get/getrolelist',
298
+    method: 'get',
299
+    params: params
300
+  })
301
+}

+ 24 - 0
src/api/his/advice.js View File

@@ -23,3 +23,27 @@ export function updatePharmacyBaseDrug(params) {
23 23
     params: params
24 24
   })
25 25
 }
26
+
27
+export function SaveSetting(params) {
28
+  return request({
29
+    url: '/api/advice/savesetting',
30
+    method: 'get',
31
+    params: params
32
+  })
33
+}
34
+
35
+export function getPharmacyConfig(params) {
36
+  return request({
37
+    url: '/api/advice/getpharmacyconfig',
38
+    method: 'get',
39
+    params: params
40
+  })
41
+}
42
+
43
+export function getUserdDrugList(params) {
44
+  return request({
45
+    url: '/api/advice/getpharmacybasedruglist',
46
+    method: 'get',
47
+    params: params
48
+  })
49
+}

+ 1 - 1
src/router/modules/hospitalCharges.js View File

@@ -40,7 +40,7 @@ export default {
40 40
       path: '/hospitalCharges/summary',
41 41
       component: () => import('@/xt_pages/hospitalStation/summary'),
42 42
       name: 'summary',
43
-      meta: { title: 'summary', noCache: true }
43
+      meta: { title:'summary', noCache: true }
44 44
     },
45 45
     {
46 46
       path: '/hospitalCharges/chargeDetailManagement',

+ 10 - 10
src/utils/request.js View File

@@ -6,23 +6,23 @@ import store from '@/store'
6 6
 // create an axios instance
7 7
 const service = axios.create({
8 8
   baseURL: process.env.BASE_API, // api的base_url
9
-  timeout: 60000, // request timeout
9
+  timeout: 30000, // request timeout
10 10
   withCredentials: true
11 11
 })
12 12
 
13 13
 // request interceptor
14
-service.interceptors.request.use(config => {
14
+// service.interceptors.request.use(config => {
15 15
 //   Do something before request is sent
16
-  if (store.getters.token) {
16
+//   if (store.getters.token) {
17 17
 //     让每个请求携带token-- ['X-Token']为自定义key 请根据实际情况自行修改
18
-    config.headers['token_cookie'] = ""
19
-  }
20
-  return config
21
-}, error => {
18
+//     config.headers['X-Token'] = getToken()
19
+//   }
20
+//   return config
21
+// }, error => {
22 22
 //   Do something with request error
23
-  console.log(error) // for debug
24
-  Promise.reject(error)
25
-})
23
+//   console.log(error) // for debug
24
+//   Promise.reject(error)
25
+// })
26 26
 
27 27
 // respone interceptor
28 28
 service.interceptors.response.use(

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

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

+ 178 - 11
src/xt_pages/Pharmacy/DrugDispensing.vue View File

@@ -79,6 +79,7 @@
79 79
             border
80 80
             style="width: 100%"
81 81
             highlight-current-row
82
+            @current-change="handleSelectionChangeOne"
82 83
             ref="singleTable"
83 84
           >
84 85
             <el-table-column prop="name" label="名称" width="100">
@@ -101,11 +102,9 @@
101 102
       </div>
102 103
       <div class="mainRight">
103 104
         <div class="titlelist">
104
-          <el-button type="primary" @click="dispense" v-if="state == 1"
105
-            >发药</el-button
106
-          >
105
+          <el-button type="primary" @click="dispense" v-if="state == 1">发药</el-button>
107 106
           <el-button type="primary" @click="toPrint">打印</el-button>
108
-          <el-button type="primary" v-if="state == 1">设置</el-button>
107
+          <el-button type="primary" @click="toSetting">设置</el-button>
109 108
         </div>
110 109
         <el-divider></el-divider>
111 110
         <div>
@@ -115,6 +114,60 @@
115 114
             border
116 115
             style="width: 1328px"
117 116
             @selection-change="handleSelectionChange"
117
+             v-if="state == 1"
118
+          >
119
+            >
120
+            <el-table-column type="selection" width="55"> </el-table-column>
121
+            <el-table-column type="index" label="序号" width="120" align="center">
122
+              <template slot-scope="scope">
123
+                {{scope.$index + 1}}
124
+              </template>
125
+            </el-table-column>
126
+            <el-table-column prop="name" label="患者名称" width="180" align="center">
127
+                <template slot-scope="scope">
128
+                 {{getPatientName(scope.row.patient_id)}}
129
+              </template>
130
+            </el-table-column>
131
+            <el-table-column prop="name" label="单次用量" width="170" align="center">
132
+               <template  slot-scope="scope">
133
+                 {{scope.row.single_dose}}
134
+               </template>
135
+            </el-table-column>
136
+            <el-table-column prop="name" label="用法" width="160" align="center">
137
+               <template  slot-scope="scope">
138
+                 {{scope.row.delivery_way}}
139
+               </template>
140
+            </el-table-column>
141
+            <el-table-column prop="name" label="频率" width="160" align="center">
142
+                <template  slot-scope="scope">
143
+                 {{scope.row.execution_frequency}}
144
+               </template>
145
+            </el-table-column>
146
+            <el-table-column prop="name" label="天数" width="160" align="center">
147
+               <template  slot-scope="scope">
148
+                 {{scope.row.day}}
149
+               </template>
150
+            </el-table-column>
151
+            <el-table-column prop="name" label="总量" width="160" align="center">
152
+                <template  slot-scope="scope">
153
+                 {{scope.row.prescribing_number}}
154
+               </template>
155
+            </el-table-column>
156
+            <el-table-column prop="name" label="数据来源" width="162" align="center">
157
+                <template  slot-scope="scope">
158
+                 <span v-if="scope.row.type == 1">血透</span>
159
+                 <span v-if="scope.row.type == 2">HIS</span>
160
+               </template>
161
+            </el-table-column>
162
+          </el-table>
163
+
164
+
165
+            <el-table
166
+            :height="tableHeight"
167
+            :data="tableList"
168
+            border
169
+            style="width: 1328px"
170
+            v-if="state == 2"
118 171
           >
119 172
             >
120 173
             <el-table-column type="selection" width="55"> </el-table-column>
@@ -160,9 +213,38 @@
160 213
                </template>
161 214
             </el-table-column>
162 215
           </el-table>
216
+
217
+
218
+        </div>
219
+        <div style="margin-top">领料人:
220
+          <el-select v-model="admin_user_id" placeholder="请选择">
221
+            <el-option
222
+              v-for="item in doctorList"
223
+              :key="item.admin_user_id"
224
+              :label="item.user_name"
225
+              :value="item.admin_user_id">
226
+            </el-option>
227
+           </el-select>
163 228
         </div>
164
-        <div style="margin-top">诊断时间:2022-05-07 19:22:16</div>
165 229
       </div>
230
+
231
+      <el-dialog
232
+        title="设置"
233
+        :visible.sync="dialogVisible"
234
+        width="30%">
235
+        <span>请选择药品是否要通过药房管理出库</span>
236
+        <span>
237
+          <el-radio v-model="is_open" label="1">是</el-radio>
238
+          <el-radio v-model="is_open" label="2">否</el-radio>
239
+        </span>
240
+        <span>
241
+          若选择为是,则通过药房发药的药品都会在发药之后进行出库,否则按原来的方式进行出库管理
242
+        </span>
243
+        <span slot="footer" class="dialog-footer">
244
+          <el-button @click="dialogVisible = false">取 消</el-button>
245
+          <el-button type="primary" @click="SaveSetting">确 定</el-button>
246
+        </span>
247
+      </el-dialog>
166 248
     </div>
167 249
 
168 250
     <drug-print
@@ -178,7 +260,7 @@
178 260
 <script>
179 261
 import drugPrint from "./print/drugPrint.vue";
180 262
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
181
-import { getTodayAdviceList,getPharmacyBaseDrug,updatePharmacyBaseDrug } from "@/api/his/advice";
263
+import { getTodayAdviceList,getPharmacyBaseDrug,updatePharmacyBaseDrug,SaveSetting,getPharmacyConfig,getUserdDrugList } from "@/api/his/advice";
182 264
 const moment = require('moment')
183 265
 export default {
184 266
   components: {
@@ -198,10 +280,17 @@ export default {
198 280
       alreadmount: 0,
199 281
       tableData: [],
200 282
       tableData_list: [],
283
+      tableList:[],
201 284
       multipleSelection: [],
202 285
       start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
203 286
       patientList:[],
204 287
       keywords:"",
288
+      dialogVisible:false,
289
+      is_open:"2",
290
+      isVisibility:"",
291
+      propsTable:"",
292
+      doctorList:[],
293
+      admin_user_id:this.$store.getters.xt_user.user.id,
205 294
     };
206 295
   },
207 296
 
@@ -217,17 +306,49 @@ export default {
217 306
     handleSelectionChange(val) {
218 307
       this.multipleSelection = val;
219 308
     },
220
-
309
+    handleSelectionChangeOne(val){
310
+      this.tableList = []
311
+      this.getUserlist(val.id)
312
+    },
221 313
     // 药品发药
222 314
     dispense() {
223
-      var params = {};
315
+      var blood_ids = []
316
+      var his_ids = []
317
+      var bloodStr = ""
318
+      var hisStr = ""
319
+      for(let i=0;i<this.tableData.length;i++){
320
+        if(this.tableData[i].type == 1){
321
+          blood_ids.push(this.tableData[i].id)
322
+        }
323
+        if(this.tableData[i].type == 2){
324
+          his_ids.push(this.tableData[i].id)
325
+        }
326
+      }
327
+      bloodStr = blood_ids.join(",")
328
+      hisStr =  his_ids.join(",")
329
+      var params = {
330
+        bloodStr:bloodStr,
331
+        hisStr:hisStr,
332
+        admin_user_id:this.admin_user_id,
333
+      }
224 334
       this.$confirm("确定是否对该药品进行发药?", "患者发药", {
225 335
         confirmButtonText: "确 定",
226 336
         cancelButtonText: "取 消",
227 337
         type: "warning",
228
-      })
229
-        .then(() => {})
230
-        .catch(() => {});
338
+      }).then(() => {
339
+        updatePharmacyBaseDrug(params).then(response=>{
340
+           if(response.data.state == 1){
341
+           var msg = response.data.data.msg
342
+           var medical =  response.data.data.medical
343
+           if(msg === 1){
344
+             this.$message.success("发药成功!")
345
+           }
346
+           if(msg == 2 || msg ===3){
347
+             this.$message.error("库存不足")
348
+           }
349
+         }
350
+        })
351
+      }).catch(() => {});
231 352
     },
232 353
 
233 354
     // 药品退药
@@ -255,6 +376,8 @@ export default {
255 376
            var list =  response.data.data.list
256 377
            this.$refs.singleTable.setCurrentRow(list[0])
257 378
            this.tableData = list
379
+           var doctorlist = response.data.data.doctorlist
380
+           this.doctorList = doctorlist
258 381
          }
259 382
       }) 
260 383
     }, 
@@ -320,6 +443,50 @@ export default {
320 443
        }
321 444
        return name
322 445
     },
446
+    toSetting(){
447
+      getPharmacyConfig().then(response=>{
448
+        if(response.data.state == 1){
449
+           this.dialogVisible = true
450
+           var config = response.data.data.config
451
+           this.is_open = config.is_open.toString()
452
+        }
453
+      })
454
+    },
455
+    SaveSetting(){
456
+      var params = {
457
+        is_open:parseInt(this.is_open),
458
+      }
459
+     SaveSetting(params).then(response=>{
460
+       if(response.data.state == 1){
461
+         var config = response.data.data.config
462
+         this.$message.success("保存成功!")
463
+         this.dialogVisible = false
464
+       }
465
+     })
466
+    },
467
+    getUserlist(drug_id){
468
+       var params = {
469
+        start_time:this.start_time,
470
+        drug_id:drug_id,
471
+      }
472
+      getUserdDrugList(params).then(response=>{
473
+       if(response.data.state == 1){
474
+           var advicelist = response.data.data.advicelist
475
+           for(let i=0;i<advicelist.length;i++){
476
+             advicelist[i].type = 1
477
+             advicelist[i].day = " "
478
+             this.tableList.push(advicelist[i])
479
+           }
480
+           var hisAdviceList = response.data.data.hisAdviceList
481
+           for(let i=0;i<hisAdviceList.length;i++){
482
+             hisAdviceList[i].type = 2
483
+             this.tableList.push(hisAdviceList[i])
484
+           }
485
+           var patient = response.data.data.patient
486
+           this.patientList = patient
487
+        }
488
+      })
489
+    }
323 490
   },
324 491
   created() {
325 492
     this.getlist()

+ 30 - 1
src/xt_pages/data/basicConfig.vue View File

@@ -39,6 +39,9 @@
39 39
             <p style="margin-top:20px;">耗材先出库再执行:
40 40
                 <el-switch v-model="is_open_is_type" @change="changeFuncType"></el-switch>
41 41
             </p>
42
+            <!-- <p style="margin-top:20px;">药品在保存处方时出库:
43
+                <el-switch v-model="drug_out_open" @change="changeDrugOpen"></el-switch>
44
+            </p> -->
42 45
         </div>
43 46
 
44 47
 
@@ -94,7 +97,7 @@
94 97
 
95 98
 <script>
96 99
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
97
-import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig,changePrescriptionConfig} from '@/api/config'
100
+import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig,changePrescriptionConfig,changeDrugOpenConfig} from '@/api/config'
98 101
 
99 102
 export default {
100 103
   name: "printTemplate",
@@ -115,6 +118,7 @@ export default {
115 118
       is_open_is_type:false,
116 119
       is_open_advice_xt_his:false,
117 120
       is_open_prescription_xt_his:false,
121
+      drug_out_open:false,
118 122
     };
119 123
   },
120 124
   methods: {
@@ -154,6 +158,12 @@ export default {
154 158
               this.is_open_prescription_xt_his = false
155 159
             }
156 160
 
161
+            if(response.data.data.is_open == 1){
162
+              this.drug_out_open = true
163
+            }else{
164
+              this.drug_out_open = false
165
+            }
166
+
157 167
           } else {
158 168
             this.$message.error(response.data.msg)
159 169
           }
@@ -376,6 +386,25 @@ export default {
376 386
             this.$message.success("保存成功!")
377 387
           }
378 388
       })
389
+    },
390
+    changeDrugOpen(){
391
+      var drug_out_open = 0
392
+      if(this.drug_out_open == false){
393
+        drug_out_open = 2
394
+      }
395
+      if(this.drug_out_open == true){
396
+        drug_out_open = 1
397
+      }
398
+      var params = {
399
+        drug_out_open:drug_out_open,
400
+      }
401
+      changeDrugOpenConfig(params).then(response=>{
402
+        if(response.data.state == 1){
403
+           var msg =  response.data.data.msg
404
+           this.$message.success("保存成功!")
405
+        }
406
+      })
407
+
379 408
     }
380 409
 
381 410
   },

+ 9 - 3
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue View File

@@ -1636,10 +1636,15 @@
1636 1636
           this.$message.error('你没有执行医嘱的权限')
1637 1637
           return false
1638 1638
         }
1639
+
1640
+        console.log("王哈",this.currentRow)
1641
+        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id ==10340 ){
1642
+           if(this.currentRow.checker == 0){
1643
+              this.$message.error("请先核对医嘱")
1644
+              return
1645
+           }
1646
+        }
1639 1647
         this.execTimeDialogVisible = true
1640
-        // if (this.currentAdvices.length <= 0) {
1641
-        //   return;
1642
-        //  }
1643 1648
         if (this.current_select_object == 1) {
1644 1649
           var isExecution = true
1645 1650
           var adviceArr = this.advice_groups[this.current_group_index].advices
@@ -2085,6 +2090,7 @@
2085 2090
         }
2086 2091
       },
2087 2092
       cellMouseEnter: function(row, column, event) {
2093
+        console.log("row323323322323233232",row)
2088 2094
         this.currentRow = row
2089 2095
         this.groupSelectRow = row
2090 2096
         // this.sameRowArr.forEach((arr, i) => {

+ 15 - 1
src/xt_pages/dialysis/details/dialog/computer_dialog.vue View File

@@ -162,8 +162,21 @@
162 162
       if (this.form.puncture_nurse_id == 0) {
163 163
         this.form.puncture_nurse_id = this.$store.getters.xt_user.user.id
164 164
       }
165
+     
166
+      if(this.form.change_nurse == 0){
165 167
 
166
-
168
+         this.form.change_nurse = this.$store.getters.xt_user.user.id
169
+      }
170
+      
171
+      if(this.form.washpipe_nurse == 0){
172
+        this.form.washpipe_nurse =  this.$store.getters.xt_user.user.id
173
+      }
174
+      if(this.form.difficult_puncture_nurse == 0){
175
+        this.form.difficult_puncture_nurse =  this.$store.getters.xt_user.user.id
176
+      }
177
+      if(this.form.new_fistula_nurse == 0){
178
+        this.form.new_fistula_nurse = this.$store.getters.xt_user.user.id
179
+      }
167 180
     },
168 181
     watch: {
169 182
       patient:{
@@ -182,6 +195,7 @@
182 195
         this.form.change_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.change_nurse
183 196
         this.form.difficult_puncture_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id:this.dialysis_order.difficult_puncture_nurse
184 197
         this.form.new_fistula_nurse = this.dialysis_order.id ==0?this.$store.getters.xt_user.user.id:this.dialysis_order.new_fistula_nurse
198
+
185 199
         var nowDate = new Date()
186 200
         var nowYear = nowDate.getFullYear()
187 201
         var nowMonth = nowDate.getMonth() + 1

+ 25 - 17
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue View File

@@ -128,7 +128,7 @@
128 128
         </el-select>
129 129
       </el-form-item>
130 130
 
131
-      <el-form-item label="第二核对人员工号:" isShowFiled label-width="140px">
131
+      <el-form-item label="第二核对人员工号:" v-if="isShowFiled('第二核对人员工号')" label-width="150px">
132 132
         <el-input style="width:200px" v-model="doubleReview.employee_number"></el-input>
133 133
       </el-form-item>
134 134
 
@@ -151,7 +151,7 @@
151 151
 </template>
152 152
 
153 153
 <script>
154
-  import { postDoubleCheck } from '@/api/dialysis'
154
+  import { postDoubleCheck,changeRole } from '@/api/dialysis'
155 155
   import { uParseTime } from '@/utils/tools'
156 156
   import { parseTime } from '@/utils'
157 157
   import { getDataConfig } from '@/utils/data'
@@ -209,6 +209,8 @@
209 209
         dialysate_flow:"透析液流量:",
210 210
         blood_access_part_opera_id:"通路类型:",
211 211
         displace_liqui_value:"置换液总量:",
212
+        job_number:"",
213
+        org_id:0,
212 214
       }
213 215
     }, 
214 216
     methods: {
@@ -262,8 +264,7 @@
262 264
           //   this.check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
263 265
           // }
264 266
           this.first_check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
265
-          console.log( this.first_check_time )
266
-          console.log( this.check_time )
267
+          
267 268
 
268 269
         }
269 270
       },
@@ -307,15 +308,16 @@
307 308
         if(this.check_time){
308 309
           ParamsQuery['check_time'] = this.record_date + ' ' + this.check_time
309 310
         }
310
-        // ParamsQuery['check_time'] = this.record_date + ' ' + this.check_time
311
+        
311 312
         if(this.first_check_time){
312 313
           ParamsQuery['first_check_time'] = this.record_date + ' ' + this.first_check_time
313 314
         }
314 315
         
315 316
         ParamsQuery['creater'] = this.doubleReview.creater
316 317
         ParamsQuery['modifier'] = this.doubleReview.modifier
317
-
318
-
318
+            
319
+    
320
+       
319 321
         postDoubleCheck(ParamsQuery).then(response => {
320 322
           if (response.data.state == 0) {
321 323
             this.$message.error(response.data.msg)
@@ -341,7 +343,6 @@
341 343
            
342 344
 
343 345
             let doublecheck_resp = response.data.data.doubleCheck
344
-            console.log("处方233232323232232332",this.prescription)
345 346
             var doubleCheck = this.double_check
346 347
             for (var index in doublecheck_resp) {        
347 348
               this.$set(doubleCheck, index, doublecheck_resp[index])
@@ -550,7 +551,6 @@
550 551
          
551 552
          var arr = []
552 553
          var str = val.join(';')
553
-         console.log("strw222222222",str)
554 554
         if(str.indexOf('透析器/灌流器')!=-1 && this.prescription!=null){
555 555
             arr.push("透析器/灌流器:"+(this.prescription.dialyzer_perfusion_apparatus?this.prescription.dialyzer_perfusion_apparatus:""))
556 556
         }
@@ -586,7 +586,7 @@
586 586
         if(str.indexOf('钙')!=-1 && this.prescription==null ){
587 587
           arr.push("钙:")
588 588
         }
589
-        console.log("arr",arr)
589
+    
590 590
         this.doubleReview.dialysis_item_desc = arr.join(";")
591 591
         if(val.length > 0){
592 592
           this.doubleReview.dialysis_item_check = 2
@@ -684,7 +684,6 @@
684 684
         if(str.indexOf("置换液总量")!=-1 && this.prescription == null){
685 685
            arr.push("置换液总量:")
686 686
         }
687
-        console.log("arr",arr)
688 687
         this.doubleReview.dialysis_parameter_desc = arr.join(";")
689 688
         if(val.length>0){
690 689
           this.doubleReview.dialysis_parameter_check = 2
@@ -719,7 +718,6 @@
719 718
           if(str.indexOf('滑脱')!=-1){
720 719
              arr.push("滑脱:")
721 720
           }
722
-        console.log("arr",arr)
723 721
         this.doubleReview.vascular_access_desc = arr.join(";")
724 722
         if(val.length>0){
725 723
           this.doubleReview.vascular_access_verification = 2
@@ -790,7 +788,6 @@
790 788
 
791 789
       GetDialysateFormulationById(val) {
792 790
          this.dialysate_formulation_options = getDataConfig('hemodialysis','dialysate_formulation')
793
-         console.log("透析液配方",this.dialysate_formulation_options)
794 791
         
795 792
         let name = ''
796 793
         let dfl = this.dialysate_formulation_options.length
@@ -932,7 +929,6 @@
932 929
      getDisplace(id){
933 930
        var name = ""
934 931
        var arr = this.$store.getters.displace_liqui
935
-       console.log("arr233233233223",arr)
936 932
        for(let i=0;i<arr.length;i++){
937 933
         if(id == arr[i].id){
938 934
           name = arr[i].name
@@ -940,6 +936,17 @@
940 936
        }
941 937
        return name
942 938
      },
939
+     changeRole(admin_user_id){
940
+        var params = {
941
+          admin_user_id:admin_user_id,
942
+        }
943
+       changeRole(params).then(response=>{
944
+         if(response.data.state == 1){
945
+           var role = response.data.data.adminRole
946
+           this.job_number = role.job_number
947
+         }
948
+       })
949
+     }
943 950
     },
944 951
 
945 952
     props: {
@@ -1084,7 +1091,7 @@
1084 1091
           if(this.prescription.displace_liqui_value!=""){
1085 1092
             this.displace_liqui_value = "置换液总量:"
1086 1093
             this.displace_liqui_value = this.displace_liqui_value + this.prescription.displace_liqui_value
1087
-            console.log("置换液总量",this.displace_liqui_value)
1094
+          
1088 1095
           }
1089 1096
         
1090 1097
         }
@@ -1194,7 +1201,7 @@
1194 1201
            if(this.double_check.pipeline_connection_desc.indexOf("管路打折")!=-1){
1195 1202
              this.checkListThree.push("管路打折")
1196 1203
            }
1197
-           console.log("hhh",this.checkListOne)
1204
+      
1198 1205
         }
1199 1206
       }, 
1200 1207
       'double_check.id': function() {
@@ -1268,7 +1275,8 @@
1268 1275
      
1269 1276
       var date = this.$route.query && this.$route.query.date
1270 1277
       this.record_date = date ? uParseTime(date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}')
1271
-
1278
+      this.org_id = this.$store.getters.xt_user.org.id
1279
+     
1272 1280
       var nowDate = new Date()
1273 1281
       var nowYear = nowDate.getFullYear()
1274 1282
       var nowMonth = nowDate.getMonth() + 1

+ 3 - 3
src/xt_pages/dialysis/details/dialog/finish_dialog.vue View File

@@ -38,7 +38,7 @@
38 38
           <el-input v-model="form.catheter" @focus="showInnerDialog('4')" style="width:200px"></el-input>
39 39
         </el-form-item>
40 40
 
41
-        <el-form-item label="透析器凝血: ">
41
+        <el-form-item label="透析器凝血: " v-if="isShowFiled('透析器凝血')">
42 42
           <el-input
43 43
             style="width:200px"
44 44
             v-model="form.cruor"
@@ -256,7 +256,7 @@
256 256
         ParamsQuery["nurse"] = this.form.nurse_id;
257 257
         ParamsQuery["end_time"] = this.end_time;
258 258
         ParamsQuery["mode"] = "2"
259
-        ParamsQuery["puncture_point_haematoma"] = this.form.puncture_point_haematoma
259
+        ParamsQuery["puncture_point_haematoma"] = paseInt(this.form.puncture_point_haematoma)
260 260
         ParamsQuery["internal_fistula"] = this.form.internal_fistula
261 261
         ParamsQuery["catheter"] = this.form.catheter
262 262
         ParamsQuery["cruor"] = this.form.cruor
@@ -284,7 +284,7 @@
284 284
       submit: function() {
285 285
         this.loading = true
286 286
         let mode = "1"
287
-        finishDialysis(this.patient_id,this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.end_time, this.form.nurse_id,mode,this.form.puncture_point_haematoma,this.form.internal_fistula,this.form.catheter,this.form.cruor).then(rs => {
287
+        finishDialysis(this.patient_id,this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.end_time, this.form.nurse_id,mode,parseInt(this.form.puncture_point_haematoma),this.form.internal_fistula,this.form.catheter,this.form.cruor).then(rs => {
288 288
           this.loading = false
289 289
           var resp = rs.data
290 290
           if (resp.state == 1) {

+ 7 - 4
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

@@ -1011,16 +1011,20 @@
1011 1011
             v-if="org_template_info.template_id == 42"
1012 1012
           >
1013 1013
           </DialysisPrintOrderFortyTwo>
1014
+
1015
+        
1014 1016
           <DialysisPrintOrderFortyThree
1015 1017
             v-bind:childResponse="childResponse"
1016 1018
             v-if="org_template_info.template_id == 43"
1017 1019
           >
1018 1020
           </DialysisPrintOrderFortyThree>
1021
+
1019 1022
           <DialysisPrintOrderFortyFour
1020 1023
             v-bind:childResponse="childResponse"
1021 1024
             v-if="org_template_info.template_id == 44"
1022 1025
           >
1023 1026
           </DialysisPrintOrderFortyFour>
1027
+
1024 1028
           <DialysisPrintOrderFortyFive
1025 1029
             v-bind:childResponse="childResponse"
1026 1030
             v-if="org_template_info.template_id == 45"
@@ -1375,14 +1379,13 @@ export default {
1375 1379
       const style9 =
1376 1380
         '@media print {#dialysis-print-box-1{margin:0 auto;}.dialysis-print-order{width:920px;margin:0 10px;font-size:10px;}.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; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 940px;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;}@page {margin-top:5px;}.table-box1 tr {border-bottom: 1px solid #000;}';
1377 1381
       const style10 =
1378
-        '@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}.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;}';
1382
+        '@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} .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;}';
1379 1383
 
1380 1384
       // 三明曙光样式
1381 1385
       const style11 =
1382 1386
         '@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;}';
1383 1387
       // 漳浦天福样式
1384
-      const style12 =
1385
-        '@media print {.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}';
1388
+      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;}';
1386 1389
 
1387 1390
       if (this.org_template_info.template_id == 1) {
1388 1391
         printJS({
@@ -1667,7 +1670,7 @@ export default {
1667 1670
         printJS({
1668 1671
           printable: "dialysis-print-box",
1669 1672
           type: "html",
1670
-          style: style10,
1673
+          style: style2,
1671 1674
           scanStyles: false,
1672 1675
         });
1673 1676
       } else if (this.org_template_info.template_id == 43) {

File diff suppressed because it is too large
+ 597 - 329
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue


+ 7 - 14
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyTwo.vue View File

@@ -187,18 +187,6 @@
187 187
                     </div>
188 188
                     <div class="inline_block" style="margin-left:10px;flex:1;">
189 189
                       穿刺方式:
190
-                      <!-- <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 0">
191
-                        /
192
-                      </div>
193
-                      <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 1">
194
-                        绳梯
195
-                      </div>
196
-                      <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 2">
197
-                        扣眼
198
-                      </div>
199
-                      <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 3">
200
-                        区域
201
-                      </div> -->
202 190
                       <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == ''">
203 191
                         /
204 192
                       </div>
@@ -211,6 +199,12 @@
211 199
                       <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way.indexOf('区域')>-1">
212 200
                         区域
213 201
                       </div>
202
+                      <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way.indexOf('顺穿')>-1">
203
+                        顺穿
204
+                      </div>
205
+                      <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way.indexOf('反穿')>-1">
206
+                        反穿
207
+                      </div>
214 208
                     </div>
215 209
                     <div class="inline_block" style="margin-left:10px;flex:1;">
216 210
                       穿刺针:
@@ -548,8 +542,7 @@
548 542
                         <td width="50">血流量<br />(ml/min)</td>
549 543
                         <td width="50">静脉压<br />({{monitors[0]&&monitors[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</td>
550 544
                         <td width="50">跨膜压<br />({{monitors[0]&&monitors[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</td>
551
-                        <td width="60" v-if="org_id != 9836">透析液温度(°C)</td>
552
-                        <td width="60" v-if="org_id == 9836">体温(°C)</td>
545
+                        <td width="60">透析液温度(°C)</td>
553 546
                         <td width="50">电导度<br />(ms/cm)</td>
554 547
                         <td width="50">超滤量<br />(ml)</td>
555 548
                         <td v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12" width="50">

+ 1 - 1
src/xt_pages/hospitalStation/components/chargeDialog.vue View File

@@ -216,7 +216,7 @@
216 216
           // {value: 2, label: '银行卡'},
217 217
           // {value: 3, label: '微信'},
218 218
           // {value: 4, label: '支付宝'},
219
-          { value: 5, label: '医保卡' },
219
+          { value: 4, label: '医保卡' },
220 220
 
221 221
         ],
222 222
         total: "",

File diff suppressed because it is too large
+ 832 - 807
src/xt_pages/outpatientCharges/listPrint.vue


+ 2 - 2
src/xt_pages/outpatientDoctorStation/recordPrint.vue View File

@@ -13,7 +13,7 @@
13 13
 
14 14
     <div class="dialysisPage" style="padding-top: 40px">
15 15
       <printOne
16
-        v-if="org_id != 10217 && org_id != 9675 && org_id != 9671 && org_id != 0 &&org_id != 10164"
16
+        v-if="org_id != 10217 && org_id != 9675 && org_id != 9671 && org_id != 0 &&org_id != 10164 && org_id == 10188"
17 17
         ref="printOne"
18 18
         v-bind:childResponse="childResponse"
19 19
         :patient="patient"
@@ -23,7 +23,7 @@
23 23
       ></printOne>
24 24
       <printTwo
25 25
         v-if="
26
-          org_id == 10217 || org_id == 0 || org_id == 9675 || org_id == 9671 || org_id == 10164
26
+          org_id == 10217 || org_id == 0 || org_id == 9675 || org_id == 9671 || org_id == 10164 ||org_id == 10188
27 27
         "
28 28
         ref="printTwo"
29 29
         v-bind:childResponse="childResponse"

+ 14 - 12
src/xt_pages/outpatientTool/components/detailStatistics.vue View File

@@ -11,7 +11,7 @@
11 11
           style="width: 150px; margin-left: 10px"
12 12
           @change="changeItem"
13 13
         >
14
-          <el-option label="全部" value=0> </el-option>
14
+          <el-option label="全部" value="0"> </el-option>
15 15
           <el-option
16 16
             v-for="(item, index) in items"
17 17
             :key="index"
@@ -330,14 +330,7 @@ export default {
330 330
 
331 331
           var new_arr = [];
332 332
 
333
-          let list_1 = this.$store.getters.pagedata.list;
334
-          if (list_1.keywords == undefined) {
335
-            this.keywords = "";
336
-          } else {
337
-            this.keywords = list_1.keywords;
338
-          }
339
-          this.id = list_1.type_id;
340
-          this.item_type = this.id
333
+          
341 334
 
342 335
           if (this.keywords != "") {
343 336
             for (let i = 0; i < this.tableData.length; i++) {
@@ -443,7 +436,7 @@ export default {
443 436
           act_pay += this.list[i].orders[j].acct_pay;
444 437
         }
445 438
       }
446
-      return act_pay.toFixed(2)
439
+      return act_pay.toFixed(2);
447 440
     },
448 441
     getFundPaySumamt() {
449 442
       var fund_pay_sumamt = 0;
@@ -528,8 +521,17 @@ export default {
528 521
     },
529 522
   },
530 523
   created() {
531
-    this.org_id = this.$store.getters.xt_user.org.id;
532
-    console.log("org_id233232323232",this.org_id)
524
+    let list_1 = this.$store.getters.pagedata.list;
525
+          if (list_1.start_time == "") {
526
+            this.chargeDate[0] = "";
527
+          } else {
528
+            this.chargeDate[0] = list_1.start_time;
529
+          }
530
+           if (list_1.end_time == "") {
531
+            this.chargeDate[1] = "";
532
+          } else {
533
+            this.chargeDate[1] = list_1.end_time;
534
+          }
533 535
     this.start_time = this.chargeDate[0];
534 536
     this.end_time = this.chargeDate[1];
535 537
     this.getHisSummaryDetailList();

+ 11 - 0
src/xt_pages/outpatientTool/components/gatherStatistics.vue View File

@@ -1246,6 +1246,17 @@ export default {
1246 1246
     },
1247 1247
   },
1248 1248
   created() {
1249
+    let list_1 = this.$store.getters.pagedata.list;
1250
+          if (list_1.start_time == "") {
1251
+            this.chargeDate[0] = "";
1252
+          } else {
1253
+            this.chargeDate[0] = list_1.start_time;
1254
+          }
1255
+           if (list_1.end_time == "") {
1256
+            this.chargeDate[1] = "";
1257
+          } else {
1258
+            this.chargeDate[1] = list_1.end_time;
1259
+    }
1249 1260
     this.start_time = this.chargeDate[0];
1250 1261
     this.end_time = this.chargeDate[1];
1251 1262
     this.tableList = [];

+ 6 - 5
src/xt_pages/role/components/AdminInfoForm.vue View File

@@ -74,6 +74,11 @@
74 74
         <el-input v-model="form.doctor_number"></el-input>
75 75
        </el-form-item>
76 76
     </el-col>
77
+    <el-col :span="8">
78
+       <el-form-item label="工号:">
79
+           <el-input v-model="form.job_number" style="width:180px;"></el-input>
80
+       </el-form-item>
81
+    </el-col>
77 82
    </el-row>
78 83
   
79 84
   <div v-show="show">
@@ -203,11 +208,7 @@
203 208
         
204 209
        </el-form-item>
205 210
     </el-col>
206
-     <el-col :span="8">
207
-       <el-form-item label="工号:">
208
-           <el-input v-model="form.job_number" style="width:180px;"></el-input>
209
-       </el-form-item>
210
-    </el-col>
211
+   
211 212
     <el-col :span="8">
212 213
        <el-form-item label="处方资格标志:">
213 214
            <el-select v-model="form.prescription_qualification_identification" placeholder="处方资格标志" style="width:180px;">

+ 23 - 29
src/xt_pages/stock/drugs/components/drugOutDetail.vue View File

@@ -159,26 +159,17 @@
159 159
         </el-table-column>
160 160
         <el-table-column label="总价" align="center">
161 161
           <template slot-scope="scope">
162
-           <span v-if="org_id == 9919">{{(scope.row.last_price * scope.row.count).toFixed(2)}} </span> 
163
-           <span v-if="org_id == 10210 ">{{(scope.row.price * scope.row.count).toFixed(2)}} </span> 
164
-           <span v-if="org_id == 9671 ">{{(scope.row.price * scope.row.count).toFixed(2)}} </span> 
165
-           <span v-if ="org_id!=9919 && org_id!=10210 && org_id!=9671">
166
-             <!-- <span v-if="scope.row.price >0">
167
-                <span v-if="scope.row.count_unit == scope.row.min_unit">
168
-                  {{(scope.row.price * scope.row.count).toFixed(2)}}
169
-                </span>  
170
-                <span v-if="scope.row.count_unit == scope.row.max_unit">{{(scope.row.price * scope.row.count * scope.row.min_number).toFixed(2)}}</span>
171
-              </span>
172
-             <span v-if="scope.row.price  == 0">
173
-               <span v-if="scope.row.count_unit  == scope.row.min_unit">
174
-                 {{((getPrice(scope.row.drug_id)* scope.row.count)).toFixed(2)}}
175
-               </span> 
176
-               <span v-if="scope.row.count_unit == scope.row.max_unit">
177
-                 {{(getPrice(scope.row.drug_id)* scope.row.count * scope.row.min_number).toFixed(2)}}
178
-              </span>
179
-             </span> -->
180
-             {{scope.row.total_price}}
181
-           </span>
162
+            <span v-if="scope.row.is_total !=1">
163
+              <span v-if="org_id == 9919">{{(scope.row.last_price * scope.row.count).toFixed(2)}} </span> 
164
+              <span v-if="org_id == 10210 ">{{(scope.row.price * scope.row.count).toFixed(2)}} </span> 
165
+              <span v-if="org_id == 9671 ">{{(scope.row.price * scope.row.count).toFixed(2)}} </span> 
166
+              <span v-if ="org_id!=9919 && org_id!=10210 && org_id!=9671">
167
+                 {{scope.row.total_price}}
168
+               </span>
169
+            </span>
170
+            <span v-if="scope.row.is_total == 1">
171
+              {{scope.row.total_price}}
172
+            </span>
182 173
           </template>
183 174
         </el-table-column>
184 175
       </el-table>
@@ -437,10 +428,11 @@ export default {
437 428
                order[i].total_price = order[i].count * order[i].last_price
438 429
                total_price += order[i].count * order[i].last_price
439 430
              }else{
431
+               console.log("555555555555",order[i])
440 432
                if(order[i].price > 0){
433
+                console.log("近来33232323322323")
441 434
                  if(order[i].count_unit == order[i].min_unit && order[i].max_unit!=order[i].min_unit){
442 435
                    order[i].total_price = order[i].count * order[i].price
443
-                  total_price += order[i].total_price
444 436
                  }
445 437
                  if(order[i].count_unit == order[i].max_unit){
446 438
                    if(order[i].is_sys == 0){
@@ -449,12 +441,15 @@ export default {
449 441
                      order[i].total_price += order[i].count * order[i].price * order[i].min_number
450 442
                    }
451 443
                  }
444
+
445
+                total_price += order[i].total_price
452 446
                 
453 447
                }
448
+
454 449
                if(order[i].price ==0 ){
455 450
                  if(order[i].count_unit == order[i].min_unit && order[i].max_unit!=order[i].min_unit){
456 451
                     order[i].total_price = order[i].count * this.getPrice(order[i].drug_id)
457
-                   total_price +=order[i].total_price
452
+                  
458 453
                     order[i].price = this.getPrice(order[i].drug_id)
459 454
                  }
460 455
                 
@@ -466,13 +461,13 @@ export default {
466 461
                    }
467 462
                    order[i].price = this.getPrice(order[i].drug_id)
468 463
                 }
469
-                 
464
+                total_price +=order[i].total_price
470 465
                } 
471 466
                
472 467
              }
473 468
             
474 469
           }
475
-         
470
+           console.log("toal_p3232332332233232",total_price)
476 471
            order.push({
477 472
             warehouse_out_order_number: "合计",
478 473
             is_total: 1,
@@ -487,6 +482,7 @@ export default {
487 482
        
488 483
           console.log("233223322323322332232323",order)
489 484
           this.tableData = order
485
+
490 486
            let objInfo = {}
491 487
           order.forEach((item,index)=>{
492 488
              let { drug_id } = item
@@ -579,7 +575,7 @@ export default {
579 575
           this.tablePrint[i].index = i+1
580 576
         }
581 577
         for(let i=0;i<this.tablePrint.length;i++){
582
-           if(this.org_id == 9919 ){
578
+           if(this.org_id == 9919){
583 579
            
584 580
              this.tablePrint[i].count = this.getCountSix(this.tablePrint[i].drug_id,this.tablePrint[i].child)
585 581
              this.tablePrint[i].total_price = this.getCountSenven(this.tablePrint.drug_id,this.tablePrint[i].child,this.tablePrint[i].price)
@@ -699,11 +695,9 @@ export default {
699 695
          end_time:this.end_time,
700 696
          order_type:2,
701 697
       }  
702
-     
703 698
      getDrugOutOrderPrint(params).then(response=>{
704 699
         if(response.data.state == 1){
705 700
             var list = response.data.data.list
706
-          
707 701
             let objInfo = {}
708 702
             if(this.org_id == 9919){
709 703
               list.forEach((item,index)=>{
@@ -726,9 +720,9 @@ export default {
726 720
                   min_price:item.XtBaseDrug.min_price,
727 721
                 }
728 722
               }
729
-            })
723
+             })
730 724
             }else{
731
-               list.forEach((item,index)=>{
725
+             list.forEach((item,index)=>{
732 726
               let { drug_id } = item
733 727
               if(!objInfo[drug_id]){
734 728
                 objInfo[drug_id] = {

+ 1 - 1
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue View File

@@ -523,7 +523,7 @@ export default {
523 523
           this.list = response.data.data.list;
524 524
           this.doctorList = response.data.data.doctorList;
525 525
           
526
-          this.doctorList.push({index:"999",user_name:"护士站", admin_user_id:"999"})
526
+          // this.doctorList.push({index:999,user_name:"护士站", admin_user_id:999})
527 527
         
528 528
         }
529 529
         loading.close();

+ 102 - 25
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue View File

@@ -7,6 +7,7 @@
7 7
     </div>
8 8
     <div class="app-container ">
9 9
       <div id="dialysis-print-box">
10
+        <div v-if="org_id!=9671 && org_id!=10210">
10 11
         <div class="dialysis-print-order" v-for="(it,index) in tableList" :key="index">
11 12
          <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
12 13
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
@@ -58,8 +59,77 @@
58 59
              </tr>
59 60
             </tbody>
60 61
           </table>
62
+          <div v-if="orgId != 10024" style="display:flex;margin-top:1px;float:right;">
63
+            <div style="width:50px;">审批:</div><div style="width:100px;"></div>
64
+            <div style="width:80px;">药材主任:</div><div style="width:100px;"></div>
65
+            <div style="width:50px;">会计:</div><div style="width:100px;"></div>
66
+            <div style="width:50px;">审核:</div><div style="width:100px;"></div>
67
+            <div style="width:70px;">制单人:</div><div style="width:100px;"></div>
68
+          </div>
69
+          <div v-if="orgId == 10024" style="display:flex;margin-top:1px;float:right;">
70
+            <div style="width:50px;">科室:</div><div style="width:60px;"></div>
71
+            <div style="width:70px;">领料人:</div><div style="width:60px;"></div>
72
+            <div style="width:80px;">审批:</div><div style="width:100px;">肖庆娥</div>
73
+            <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
74
+            <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>
75
+            <div style="width:70px;">制单人:</div><div style="width:100px;">徐立琼</div>
76
+          </div>
77
+        </div>
78
+      </div> 
79
+
61 80
 
81
+      <div v-if="org_id == 9671 || org_id == 10210">
82
+       <div class="dialysis-print-order" v-for="(it,index) in tableData" :key="index" >
83
+         <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
84
+          <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
62 85
 
86
+          <div style="float: left;margin-bottom: 1px;">单据编号:{{it.warehouse_out_order_number}}</div>
87
+          <div style="float: right;margin-bottom: 1px;">{{getDateTwo()}}</div>
88
+
89
+          <table class="print-table" border="1">
90
+            <tbody>
91
+            <tr>
92
+              <td style="line-height: 50px" width="230">药品名称</td>
93
+              <td style="line-height: 50px" width="230">规格型号</td>
94
+              <td style="line-height: 50px" width="80">出货数量</td>
95
+              <td style="line-height: 50px" width="50">单位</td>
96
+              <td style="line-height:50px" width="80">出库价格</td>
97
+              <td style="line-height: 50px" width="80">总价</td>
98
+              <td style="line-height: 50px" width="80">批号</td>
99
+              <td style="line-height: 50px" width="80">生产日期</td>
100
+              <td style="line-height: 50px" width="80">有效日期</td>
101
+            </tr>
102
+
103
+            <tr v-for="(item,i) in it.xt_drug_warehouse_out_info" :key="i">
104
+              <td style="line-height: 50px">
105
+                <span>{{item.drug.drug_name}}</span>
106
+              </td>
107
+              <td style="line-height: 50px">
108
+                  <span>{{item.drug.dose}}{{item.dose_unit}}*{{item.drug.min_number}}{{item.drug.min_unit}}/{{item.drug.max_unit}}</span>
109
+              </td>
110
+              <td style="line-height: 50px">
111
+                  {{item.count}}
112
+              </td>
113
+              <td style="line-height: 50px">
114
+                <span>{{item.count_unit}}</span>
115
+              </td>
116
+              <td style="line-height:50px">
117
+                  {{item.price}}
118
+              </td>
119
+             <td  style="line-height:50px">
120
+                {{(item.count * item.price).toFixed(2)}}
121
+             </td>
122
+             <td>{{item.batch_number}}</td>
123
+             <td>{{(getTime(item.product_date))}}</td>
124
+             <td>{{(getTime(item.expire_date))}}</td>
125
+            </tr>
126
+             <tr>
127
+               <td style="line-height:50px">合计</td>
128
+               <td colspan="7"></td>
129
+               <td>{{getTotalPrince(it.xt_drug_warehouse_out_info).toFixed(2)}}</td>
130
+             </tr>
131
+            </tbody>
132
+          </table>
63 133
           <div v-if="orgId != 10024" style="display:flex;margin-top:1px;float:right;">
64 134
             <div style="width:50px;">审批:</div><div style="width:100px;"></div>
65 135
             <div style="width:80px;">药材主任:</div><div style="width:100px;"></div>
@@ -77,6 +147,7 @@
77 147
           </div>
78 148
         </div>
79 149
 
150
+       </div>
80 151
       </div>
81 152
 
82 153
     </div>
@@ -133,7 +204,8 @@
133 204
         manufactureList:[],
134 205
         tableList:[],
135 206
         loading:false,
136
-        warehouseList:[]
207
+        warehouseList:[],
208
+        tableData:[],
137 209
       }
138 210
     },
139 211
     methods: {
@@ -175,25 +247,25 @@
175 247
             const params = {
176 248
             'id': order_id
177 249
             };
178
-            getDrugWarehouseOutInfo(params).then(response => {
179
-            if (response.data.state == 0) {
250
+     getDrugWarehouseOutInfo(params).then(response => {
251
+        if (response.data.state == 0) {
180 252
 
181
-                this.$message.error(response.data.msg);
182
-                return false
183
-            } else {
184
-              for (let i = 0; i < response.data.data.list.length; i++) {
185
-                this.warehousingOutInfo.warehousingOutData.push(response.data.data.list[i])
186
-               }
187
-               var total_price = 0;
188
-               for(let i=0;i<this.warehousingOutInfo.warehousingOutData.length;i++){
189
-                 total_price += this.warehousingOutInfo.warehousingOutData[i].count * this.warehousingOutInfo.warehousingOutData[i].price
190
-               }
191
-               this.allPrice = total_price;
192
-               this.warehousingOutInfo.info = response.data.data.info;
193
-               this.handleSpanTempArr()
253
+            this.$message.error(response.data.msg);
254
+            return false
255
+        } else {
256
+          for (let i = 0; i < response.data.data.list.length; i++) {
257
+            this.warehousingOutInfo.warehousingOutData.push(response.data.data.list[i])
194 258
             }
195
-            })
196
-        },
259
+            var total_price = 0;
260
+            for(let i=0;i<this.warehousingOutInfo.warehousingOutData.length;i++){
261
+              total_price += this.warehousingOutInfo.warehousingOutData[i].count * this.warehousingOutInfo.warehousingOutData[i].price
262
+            }
263
+            this.allPrice = total_price;
264
+            this.warehousingOutInfo.info = response.data.data.info;
265
+            this.handleSpanTempArr()
266
+        }
267
+      })
268
+     },
197 269
         getList() {
198 270
         let params = {
199 271
           page: this.page,
@@ -213,7 +285,7 @@
213 285
             for (let i = 0; i < response.data.data.list.length; i++) {
214 286
               this.list.push(response.data.data.list[i])
215 287
             }
216
-            console.log("list222222",this.list)
288
+           
217 289
           }
218 290
         })
219 291
       },
@@ -265,7 +337,6 @@
265 337
         getDrugWarehouseOrderInfo().then(response=>{
266 338
            if(response.data.state == 1){
267 339
              var list =  response.data.data.list
268
-             console.log("入库单详情",list)
269 340
              this.drugOrderList = list
270 341
            }
271 342
         })
@@ -315,9 +386,7 @@
315 386
         getDrugOutOrderDetailPrint(params).then(response=>{
316 387
           if(response.data.state ==1){
317 388
              var info = response.data.data.info
318
-             console.log("info",info)
319 389
             var warehousing = response.data.data.warehousing
320
-            console.log("ware2232",warehousing)
321 390
             this.warehouseList = warehousing
322 391
           
323 392
             for(let i=0;i<info.length;i++){
@@ -330,10 +399,11 @@
330 399
             }
331 400
             
332 401
             var manufacturerList = response.data.data.manufacturerList
333
-            console.log("manufacturelist",manufacturerList)
402
+           
334 403
             this.manufactureList = manufacturerList
335
-            console.log("列表",info)
404
+
336 405
             this.tableList = info
406
+            this.tableData = response.data.data.drug_warhouse_out
337 407
             this.loading = false
338 408
           }
339 409
         })
@@ -346,7 +416,14 @@
346 416
           }
347 417
         }
348 418
         return count
349
-      }
419
+      },
420
+      getTotalPrice(val){
421
+        var count = 0
422
+        for(let i=0;i<val.length;i++){
423
+           count +=val[i].count * val[i].price
424
+          }
425
+         return count.toFixed(2)
426
+        }
350 427
     },
351 428
     created() {
352 429
       this.orgName = this.$store.getters.xt_user.org.org_name;

File diff suppressed because it is too large
+ 883 - 696
src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue


+ 1 - 0
src/xt_pages/stock/inventory.vue View File

@@ -320,6 +320,7 @@ export default {
320 320
               this.total = total
321 321
               this.doctorList =  response.data.data.doctorlist
322 322
               this.houseList = response.data.data.houseList
323
+              console.log("仓库行吗32323232232332",this.houseList)
323 324
               var houseConfig = response.data.data.houseConfig
324 325
               this.storehouse_id = houseConfig.storehouse_out_info
325 326
               }