Browse Source

518合并代码

XMLWAN 2 years ago
parent
commit
ab9b093249

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

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
     params: params
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
+}

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

79
             border
79
             border
80
             style="width: 100%"
80
             style="width: 100%"
81
             highlight-current-row
81
             highlight-current-row
82
+            @current-change="handleSelectionChangeOne"
82
             ref="singleTable"
83
             ref="singleTable"
83
           >
84
           >
84
             <el-table-column prop="name" label="名称" width="100">
85
             <el-table-column prop="name" label="名称" width="100">
101
       </div>
102
       </div>
102
       <div class="mainRight">
103
       <div class="mainRight">
103
         <div class="titlelist">
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
           <el-button type="primary" @click="toPrint">打印</el-button>
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
         </div>
108
         </div>
110
         <el-divider></el-divider>
109
         <el-divider></el-divider>
111
         <div>
110
         <div>
115
             border
114
             border
116
             style="width: 1328px"
115
             style="width: 1328px"
117
             @selection-change="handleSelectionChange"
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
             <el-table-column type="selection" width="55"> </el-table-column>
173
             <el-table-column type="selection" width="55"> </el-table-column>
160
                </template>
213
                </template>
161
             </el-table-column>
214
             </el-table-column>
162
           </el-table>
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
         </div>
228
         </div>
164
-        <div style="margin-top">诊断时间:2022-05-07 19:22:16</div>
165
       </div>
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
     </div>
248
     </div>
167
 
249
 
168
     <drug-print
250
     <drug-print
178
 <script>
260
 <script>
179
 import drugPrint from "./print/drugPrint.vue";
261
 import drugPrint from "./print/drugPrint.vue";
180
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
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
 const moment = require('moment')
264
 const moment = require('moment')
183
 export default {
265
 export default {
184
   components: {
266
   components: {
198
       alreadmount: 0,
280
       alreadmount: 0,
199
       tableData: [],
281
       tableData: [],
200
       tableData_list: [],
282
       tableData_list: [],
283
+      tableList:[],
201
       multipleSelection: [],
284
       multipleSelection: [],
202
       start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
285
       start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
203
       patientList:[],
286
       patientList:[],
204
       keywords:"",
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
     handleSelectionChange(val) {
306
     handleSelectionChange(val) {
218
       this.multipleSelection = val;
307
       this.multipleSelection = val;
219
     },
308
     },
220
-
309
+    handleSelectionChangeOne(val){
310
+      this.tableList = []
311
+      this.getUserlist(val.id)
312
+    },
221
     // 药品发药
313
     // 药品发药
222
     dispense() {
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
       this.$confirm("确定是否对该药品进行发药?", "患者发药", {
334
       this.$confirm("确定是否对该药品进行发药?", "患者发药", {
225
         confirmButtonText: "确 定",
335
         confirmButtonText: "确 定",
226
         cancelButtonText: "取 消",
336
         cancelButtonText: "取 消",
227
         type: "warning",
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
            var list =  response.data.data.list
376
            var list =  response.data.data.list
256
            this.$refs.singleTable.setCurrentRow(list[0])
377
            this.$refs.singleTable.setCurrentRow(list[0])
257
            this.tableData = list
378
            this.tableData = list
379
+           var doctorlist = response.data.data.doctorlist
380
+           this.doctorList = doctorlist
258
          }
381
          }
259
       }) 
382
       }) 
260
     }, 
383
     }, 
320
        }
443
        }
321
        return name
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
   created() {
491
   created() {
325
     this.getlist()
492
     this.getlist()

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

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

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

162
       if (this.form.puncture_nurse_id == 0) {
162
       if (this.form.puncture_nurse_id == 0) {
163
         this.form.puncture_nurse_id = this.$store.getters.xt_user.user.id
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
     watch: {
181
     watch: {
169
       patient:{
182
       patient:{
182
         this.form.change_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.change_nurse
195
         this.form.change_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.change_nurse
183
         this.form.difficult_puncture_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id:this.dialysis_order.difficult_puncture_nurse
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
         this.form.new_fistula_nurse = this.dialysis_order.id ==0?this.$store.getters.xt_user.user.id:this.dialysis_order.new_fistula_nurse
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
         var nowDate = new Date()
199
         var nowDate = new Date()
186
         var nowYear = nowDate.getFullYear()
200
         var nowYear = nowDate.getFullYear()
187
         var nowMonth = nowDate.getMonth() + 1
201
         var nowMonth = nowDate.getMonth() + 1

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

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

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

74
         <el-input v-model="form.doctor_number"></el-input>
74
         <el-input v-model="form.doctor_number"></el-input>
75
        </el-form-item>
75
        </el-form-item>
76
     </el-col>
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
    </el-row>
82
    </el-row>
78
   
83
   
79
   <div v-show="show">
84
   <div v-show="show">
203
         
208
         
204
        </el-form-item>
209
        </el-form-item>
205
     </el-col>
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
     <el-col :span="8">
212
     <el-col :span="8">
212
        <el-form-item label="处方资格标志:">
213
        <el-form-item label="处方资格标志:">
213
            <el-select v-model="form.prescription_qualification_identification" placeholder="处方资格标志" style="width:180px;">
214
            <el-select v-model="form.prescription_qualification_identification" placeholder="处方资格标志" style="width:180px;">

+ 2 - 4
src/xt_pages/stock/drugs/components/drugOutDetail.vue View File

699
          end_time:this.end_time,
699
          end_time:this.end_time,
700
          order_type:2,
700
          order_type:2,
701
       }  
701
       }  
702
-     
703
      getDrugOutOrderPrint(params).then(response=>{
702
      getDrugOutOrderPrint(params).then(response=>{
704
         if(response.data.state == 1){
703
         if(response.data.state == 1){
705
             var list = response.data.data.list
704
             var list = response.data.data.list
706
-          
707
             let objInfo = {}
705
             let objInfo = {}
708
             if(this.org_id == 9919){
706
             if(this.org_id == 9919){
709
               list.forEach((item,index)=>{
707
               list.forEach((item,index)=>{
726
                   min_price:item.XtBaseDrug.min_price,
724
                   min_price:item.XtBaseDrug.min_price,
727
                 }
725
                 }
728
               }
726
               }
729
-            })
727
+             })
730
             }else{
728
             }else{
731
-               list.forEach((item,index)=>{
729
+             list.forEach((item,index)=>{
732
               let { drug_id } = item
730
               let { drug_id } = item
733
               if(!objInfo[drug_id]){
731
               if(!objInfo[drug_id]){
734
                 objInfo[drug_id] = {
732
                 objInfo[drug_id] = {

+ 63 - 7
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue View File

13
 
13
 
14
           <div style="float: left;margin-bottom: 1px;">单据编号:{{it.warehouse_out_order_number}}</div>
14
           <div style="float: left;margin-bottom: 1px;">单据编号:{{it.warehouse_out_order_number}}</div>
15
           <div style="float: right;margin-bottom: 1px;">{{getDateTwo()}}</div>
15
           <div style="float: right;margin-bottom: 1px;">{{getDateTwo()}}</div>
16
-
17
-          <table class="print-table" border="1">
16
+         
17
+           <table class="print-table" border="1" v-if = "org_id == 10210">
18
             <tbody>
18
             <tbody>
19
             <tr>
19
             <tr>
20
               <td style="line-height: 50px" width="230">药品名称</td>
20
               <td style="line-height: 50px" width="230">药品名称</td>
58
              </tr>
58
              </tr>
59
             </tbody>
59
             </tbody>
60
           </table>
60
           </table>
61
+          <table class="print-table" border="1" v-if = "org_id !=10210">
62
+            <tbody>
63
+            <tr>
64
+              <td style="line-height: 50px" width="230">药品名称</td>
65
+              <td style="line-height: 50px" width="230">规格型号</td>
66
+              <td style="line-height: 50px" width="80">出货数量</td>
67
+              <td style="line-height: 50px" width="50">单位</td>
68
+              <td style="line-height:50px" width="80">出库价格</td>
69
+              <td style="line-height: 50px" width="80">总价</td>
70
+              <td style="line-height: 50px" width="80">批号</td>
71
+              <td style="line-height: 50px" width="80">生产日期</td>
72
+              <td style="line-height: 50px" width="80">有效日期</td>
73
+            </tr>
74
+
75
+            <tr v-for="(item,i) in tableData" :key="i">
76
+              <td style="line-height: 50px">
77
+                <span>{{item.drug.drug_name}}</span>
78
+              </td>
79
+              <td style="line-height: 50px">
80
+                <span>{{item.drug.dose}}{{item.drug.dose_unit}}*{{item.drug.min_number}}{{item.drug.min_unit}}/{{item.drug.max_unit}}</span>
81
+              </td>
82
+              <td style="line-height: 50px">
83
+                  {{item.count}}
84
+              </td>
85
+              <td style="line-height: 50px">
86
+                <span>{{item.count_unit}}</span>
87
+              </td>
88
+              <td style="line-height:50px">
89
+                  {{item.price}}
90
+              </td>
91
+             <td  style="line-height:50px">
92
+                {{(item.count * item.price).toFixed(2)}}
93
+             </td>
94
+             <td>{{item.batch_number}}</td>
95
+             <td>{{(getTime(item.product_date))}}</td>
96
+             <td>{{(getTime(item.expire_date))}}</td>
97
+            </tr>
98
+             <tr>
99
+               <td style="line-height:50px">合计</td>
100
+               <td colspan="7"></td>
101
+               <td>{{getTotalPrice()}} </td>
102
+             </tr>
103
+            </tbody>
104
+          </table>
61
 
105
 
62
 
106
 
63
           <div v-if="orgId != 10024" style="display:flex;margin-top:1px;float:right;">
107
           <div v-if="orgId != 10024" style="display:flex;margin-top:1px;float:right;">
133
         manufactureList:[],
177
         manufactureList:[],
134
         tableList:[],
178
         tableList:[],
135
         loading:false,
179
         loading:false,
136
-        warehouseList:[]
180
+        warehouseList:[],
181
+        orgId:0,
182
+        tableData:[],
137
       }
183
       }
138
     },
184
     },
139
     methods: {
185
     methods: {
315
         getDrugOutOrderDetailPrint(params).then(response=>{
361
         getDrugOutOrderDetailPrint(params).then(response=>{
316
           if(response.data.state ==1){
362
           if(response.data.state ==1){
317
              var info = response.data.data.info
363
              var info = response.data.data.info
318
-             console.log("info",info)
319
             var warehousing = response.data.data.warehousing
364
             var warehousing = response.data.data.warehousing
320
-            console.log("ware2232",warehousing)
321
             this.warehouseList = warehousing
365
             this.warehouseList = warehousing
322
           
366
           
323
             for(let i=0;i<info.length;i++){
367
             for(let i=0;i<info.length;i++){
330
             }
374
             }
331
             
375
             
332
             var manufacturerList = response.data.data.manufacturerList
376
             var manufacturerList = response.data.data.manufacturerList
333
-            console.log("manufacturelist",manufacturerList)
334
             this.manufactureList = manufacturerList
377
             this.manufactureList = manufacturerList
335
-            console.log("列表",info)
336
             this.tableList = info
378
             this.tableList = info
379
+
380
+            var drug_warhouse_out = response.data.data.drug_warhouse_out
381
+            this.tableData = drug_warhouse_out
337
             this.loading = false
382
             this.loading = false
383
+
384
+           
338
           }
385
           }
339
         })
386
         })
340
       },
387
       },
346
           }
393
           }
347
         }
394
         }
348
         return count
395
         return count
396
+      },
397
+      getTotalPrice(){
398
+         var count = 0
399
+        for(let i=0;i<this.tableList.length;i++){
400
+          if(id == this.tableList[i].warehouse_out_id){
401
+             count +=this.tableList[i].count * this.tableList[i].price
402
+          }
403
+        }
404
+        return count.toFixed(2)
349
       }
405
       }
350
     },
406
     },
351
     created() {
407
     created() {

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

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

+ 1 - 1
src/xt_pages/stock/stockPrint.vue View File

60
                                    </td>
60
                                    </td>
61
                                   
61
                                   
62
                                    <td v-if="end_time == ''">
62
                                    <td v-if="end_time == ''">
63
-                                     <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779 || org_id == 10290 || org_id == 10265">
63
+                                     <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779 || org_id == 10290 || org_id == 10265 || org_id == 10210">
64
                                         {{getOverFlushInfo(item.xt_warehouse_info)}}
64
                                         {{getOverFlushInfo(item.xt_warehouse_info)}}
65
                                      </span>
65
                                      </span>
66
                                      <span v-else>
66
                                      <span v-else>