ソースを参照

518合并代码

XMLWAN 2 年 前
コミット
ab9b093249

+ 8 - 0
src/api/dialysis.js ファイルの表示

@@ -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 ファイルの表示

@@ -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
+}

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

@@ -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()

+ 9 - 3
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示

@@ -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="第二核对人员工号:" 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

+ 6 - 5
src/xt_pages/role/components/AdminInfoForm.vue ファイルの表示

@@ -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;">

+ 2 - 4
src/xt_pages/stock/drugs/components/drugOutDetail.vue ファイルの表示

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

+ 63 - 7
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue ファイルの表示

@@ -13,8 +13,8 @@
13 13
 
14 14
           <div style="float: left;margin-bottom: 1px;">单据编号:{{it.warehouse_out_order_number}}</div>
15 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 18
             <tbody>
19 19
             <tr>
20 20
               <td style="line-height: 50px" width="230">药品名称</td>
@@ -58,6 +58,50 @@
58 58
              </tr>
59 59
             </tbody>
60 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 107
           <div v-if="orgId != 10024" style="display:flex;margin-top:1px;float:right;">
@@ -133,7 +177,9 @@
133 177
         manufactureList:[],
134 178
         tableList:[],
135 179
         loading:false,
136
-        warehouseList:[]
180
+        warehouseList:[],
181
+        orgId:0,
182
+        tableData:[],
137 183
       }
138 184
     },
139 185
     methods: {
@@ -315,9 +361,7 @@
315 361
         getDrugOutOrderDetailPrint(params).then(response=>{
316 362
           if(response.data.state ==1){
317 363
              var info = response.data.data.info
318
-             console.log("info",info)
319 364
             var warehousing = response.data.data.warehousing
320
-            console.log("ware2232",warehousing)
321 365
             this.warehouseList = warehousing
322 366
           
323 367
             for(let i=0;i<info.length;i++){
@@ -330,11 +374,14 @@
330 374
             }
331 375
             
332 376
             var manufacturerList = response.data.data.manufacturerList
333
-            console.log("manufacturelist",manufacturerList)
334 377
             this.manufactureList = manufacturerList
335
-            console.log("列表",info)
336 378
             this.tableList = info
379
+
380
+            var drug_warhouse_out = response.data.data.drug_warhouse_out
381
+            this.tableData = drug_warhouse_out
337 382
             this.loading = false
383
+
384
+           
338 385
           }
339 386
         })
340 387
       },
@@ -346,6 +393,15 @@
346 393
           }
347 394
         }
348 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 407
     created() {

+ 1 - 0
src/xt_pages/stock/inventory.vue ファイルの表示

@@ -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
               }

+ 1 - 1
src/xt_pages/stock/stockPrint.vue ファイルの表示

@@ -60,7 +60,7 @@
60 60
                                    </td>
61 61
                                   
62 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 64
                                         {{getOverFlushInfo(item.xt_warehouse_info)}}
65 65
                                      </span>
66 66
                                      <span v-else>