Browse Source

8月15日

XMLWAN 2 years ago
parent
commit
332c8ec98c

+ 26 - 11
src/xt_pages/dialysis/details/consumable/dialysisGood.vue View File

139
       <span>
139
       <span>
140
         <div class="cell clearfix">
140
         <div class="cell clearfix">
141
           <label class="title"> <span class="name">排班班次</span> : </label>
141
           <label class="title"> <span class="name">排班班次</span> : </label>
142
-           <el-select v-model="schedulType" placeholder="请选择">
142
+           <el-select v-model="schedule_type" placeholder="请选择">
143
             <el-option
143
             <el-option
144
               v-for="item in schedulArr"
144
               v-for="item in schedulArr"
145
               :key="item.value"
145
               :key="item.value"
148
             </el-option>
148
             </el-option>
149
            </el-select>
149
            </el-select>
150
            <label class="title"> <span class="name">病区选择</span> : </label>
150
            <label class="title"> <span class="name">病区选择</span> : </label>
151
-           <el-select v-model="partitionType" placeholder="请选择">
151
+           <el-select v-model="partion_type" placeholder="请选择">
152
             <el-option
152
             <el-option
153
               v-for="item in partitionArr"
153
               v-for="item in partitionArr"
154
               :key="item.id"
154
               :key="item.id"
166
           color: '#606266'
166
           color: '#606266'
167
         }"
167
         }"
168
       >
168
       >
169
-         <el-table-column  align="center" width="55" label="序号">
169
+         <el-table-column  align="center"  label="序号">
170
            <template slot-scope="scope">
170
            <template slot-scope="scope">
171
             
171
             
172
            </template>
172
            </template>
173
         </el-table-column>
173
         </el-table-column>
174
-        <el-table-column  align="center"  width="55" label="耗材名称">
174
+        <el-table-column  align="center"   label="耗材名称">
175
          <template slot-scope="scope">
175
          <template slot-scope="scope">
176
            
176
            
177
            </template>
177
            </template>
178
         </el-table-column>
178
         </el-table-column>
179
-        <el-table-column  align="center"  width="55" label="规格">
179
+        <el-table-column  align="center"  label="规格">
180
            <template slot-scope="scope">
180
            <template slot-scope="scope">
181
           
181
           
182
            </template>
182
            </template>
183
         </el-table-column>
183
         </el-table-column>
184
        
184
        
185
-        <el-table-column  align="center"  width="55" label="数量">
185
+        <el-table-column  align="center"   label="数量">
186
            <template slot-scope="scope">
186
            <template slot-scope="scope">
187
           
187
           
188
            </template>
188
            </template>
193
       </el-table>
193
       </el-table>
194
       </span>
194
       </span>
195
       <span slot="footer" class="dialog-footer">
195
       <span slot="footer" class="dialog-footer">
196
-        <el-button @click="dialogVisible = false">取 消</el-button>
197
-        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
196
+        <el-button @click="startDialogVisible = false">取 消</el-button>
197
+        <el-button type="primary" @click="startDialogVisible = false">确 定</el-button>
198
       </span>
198
       </span>
199
     </el-dialog>
199
     </el-dialog>
200
 
200
 
203
 
203
 
204
 
204
 
205
 <script>
205
 <script>
206
-  import { GetAllZone,getPatientDialysisSolutionGroupList } from '@/api/dialysis'
206
+  import { GetAllZone,getPatientDialysisSolutionGroupList,getDialysisGoodTotalCount } from '@/api/dialysis'
207
 
207
 
208
   import { uParseTime } from "@/utils/tools";
208
   import { uParseTime } from "@/utils/tools";
209
   import { getDataConfig } from '@/utils/data'
209
   import { getDataConfig } from '@/utils/data'
269
         hemodialysisPipelinesOptions:[],
269
         hemodialysisPipelinesOptions:[],
270
         startDialogVisible:false,
270
         startDialogVisible:false,
271
         tableList:[],
271
         tableList:[],
272
+        schedule_type:"",
273
+        partion_type:"",
272
       }
274
       }
273
     },
275
     },
274
     created() {
276
     created() {
386
         })
388
         })
387
       },
389
       },
388
       statistics() {
390
       statistics() {
389
-        this.startDialogVisible = true
391
+        var params = {
392
+          schedule_type:this.schedule_type,
393
+          partion_type:this.partion_type,
394
+          selected_date:this.query.schedule_date,
395
+        }
396
+        console.log("params2332232wo",params)
397
+       getDialysisGoodTotalCount(params).then(response=>{
398
+          if(response.data.state == 1){
399
+            this.startDialogVisible = true
400
+            var list = response.data.data.list
401
+            console.log("list232323223222wid",list)
402
+          }
403
+       })
404
+        
390
       },
405
       },
391
       handleScheduleDateChange(val) {
406
       handleScheduleDateChange(val) {
392
         this.query.schedule_date = val
407
         this.query.schedule_date = val
441
           
456
           
442
         }
457
         }
443
         if(filed_name_cn == "目标超滤量"){
458
         if(filed_name_cn == "目标超滤量"){
444
-          return ""
459
+          return val.target_ultrafiltration
445
         }
460
         }
446
         if(filed_name_cn == "透析液配方"){
461
         if(filed_name_cn == "透析液配方"){
447
           return this.getDialysateFormulation(val.dialysate_formulation)
462
           return this.getDialysateFormulation(val.dialysate_formulation)

+ 2 - 13
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

84
         <div class="mainCell fixedCell" style="margin-bottom:10px;">
84
         <div class="mainCell fixedCell" style="margin-bottom:10px;">
85
 
85
 
86
           <div v-if="org_id == 10340 || org_id == 0">
86
           <div v-if="org_id == 10340 || org_id == 0">
87
-<!--                        <el-button size="small"-->
88
-<!--                                   @click="openZb(1)"-->
89
-<!--                                   type="primary">登记-->
90
-<!--                        </el-button>-->
91
-
92
                         <el-button  size="small"
87
                         <el-button  size="small"
93
                                    @click="openZb(4)"
88
                                    @click="openZb(4)"
94
-                                   type="primary">记账
89
+                                   v-if=" this.order.id == 0"
90
+                          type="primary">记账
95
                         </el-button>
91
                         </el-button>
96
-
97
-<!--                        <el-button   size="small"-->
98
-<!--                                   @click="openZb(3)"-->
99
-<!--                                   type="primary">撤销记账-->
100
-<!--                        </el-button>-->
101
-
102
           </div>
92
           </div>
103
 
93
 
104
-
105
           <div  v-if="org_id != 10340 || org_id != 0">
94
           <div  v-if="org_id != 10340 || org_id != 0">
106
 <!--            <el-button size="small"-->
95
 <!--            <el-button size="small"-->
107
 <!--                       @click="openZb(1)"-->
96
 <!--                       @click="openZb(1)"-->

+ 10 - 6
src/xt_pages/outpatientCharges/summary.vue View File

1499
             for (let i = 0; i < med_chrgitm_types.length; i++) {
1499
             for (let i = 0; i < med_chrgitm_types.length; i++) {
1500
               let price = 0
1500
               let price = 0
1501
               let obj = {
1501
               let obj = {
1502
+                number:"440722196501072316",
1502
                 name: order.patient.name,
1503
                 name: order.patient.name,
1503
                 idNo: order.patient.id_card_no,
1504
                 idNo: order.patient.id_card_no,
1504
                 med_chrgitm_name:this.getType(med_chrgitm_types[i]),
1505
                 med_chrgitm_name:this.getType(med_chrgitm_types[i]),
1525
           var tarList = []
1526
           var tarList = []
1526
           for (let i = 0; i < list.length; i++) {
1527
           for (let i = 0; i < list.length; i++) {
1527
             let obj = {
1528
             let obj = {
1528
-              "姓名": list[i].name,
1529
+              "购方名称": list[i].name,
1530
+              "购方纳税人识别号":list[i].number,
1529
               "身份证":  list[i].idNo,
1531
               "身份证":  list[i].idNo,
1530
-              "收费项目": list[i].med_chrgitm_name,
1532
+              "商品名称": list[i].med_chrgitm_name,
1531
               "金额": list[i].price,
1533
               "金额": list[i].price,
1532
               "备注": list[i].remark,
1534
               "备注": list[i].remark,
1533
 
1535
 
1537
 
1539
 
1538
           import("@/vendor/Export2Excel").then((excel) => {
1540
           import("@/vendor/Export2Excel").then((excel) => {
1539
             const tHeader = [
1541
             const tHeader = [
1540
-              "姓名",
1542
+              "购方名称",
1543
+              "购方纳税人识别号",
1541
               "身份证",
1544
               "身份证",
1542
-              "收费项目",
1545
+              "商品名称",
1543
               "金额",
1546
               "金额",
1544
               "备注",
1547
               "备注",
1545
             ];
1548
             ];
1546
             const filterVal = [
1549
             const filterVal = [
1547
-              "姓名",
1550
+              "购方名称",
1551
+              "购方纳税人识别号",
1548
               "身份证",
1552
               "身份证",
1549
-              "收费项目",
1553
+              "商品名称",
1550
               "金额",
1554
               "金额",
1551
               "备注",
1555
               "备注",
1552
             ];
1556
             ];

+ 1 - 1
src/xt_pages/stock/query/purchaseStockQuery.vue View File

667
     this.goodTypeList= []
667
     this.goodTypeList= []
668
     this.getStorehouseList()
668
     this.getStorehouseList()
669
     this.getlist()
669
     this.getlist()
670
-    this.getStockDrugCount()
670
+    //this.getStockDrugCount()
671
    },
671
    },
672
    getWarehouseInfoStartPrice(arr,arr1,arr2,arr3,arr4){
672
    getWarehouseInfoStartPrice(arr,arr1,arr2,arr3,arr4){
673
      var total_price = 0
673
      var total_price = 0

+ 9 - 5
src/xt_pages/stock/stockOutOrder.vue View File

1416
                 list[i].child.push(this.flowList[j])
1416
                 list[i].child.push(this.flowList[j])
1417
               }
1417
               }
1418
             }
1418
             }
1419
-         
1419
+           
1420
             this.tableList.push(list[i]);
1420
             this.tableList.push(list[i]);
1421
           }
1421
           }
1422
-         
1422
+          console.log("tablielist2332323",this.tableList)
1423
         }
1423
         }
1424
       });
1424
       });
1425
     },
1425
     },
1900
             if(newArr!=null && newArr.length > 0){
1900
             if(newArr!=null && newArr.length > 0){
1901
               for(let i=0;i<newArr.length;i++){
1901
               for(let i=0;i<newArr.length;i++){
1902
                for(let j=0;j<cancelInfo.length;j++){
1902
                for(let j=0;j<cancelInfo.length;j++){
1903
-                 if(newArr[i].patient_id == cancelInfo[j].patient_id){
1903
+                if(cancelInfo[j].patient_id > 0){
1904
+                  if(newArr[i].patient_id == cancelInfo[j].patient_id){
1904
                     newArr[i].child.push(cancelInfo[j])
1905
                     newArr[i].child.push(cancelInfo[j])
1905
                  }
1906
                  }
1907
+                }
1908
+               
1906
                }
1909
                }
1907
               }
1910
               }
1908
             }
1911
             }
1924
           console.log("2o32o3o3232j32oo23o2332oj2wo",arr)
1927
           console.log("2o32o3o3232j32oo23o2332oj2wo",arr)
1925
           var arrTwo= []
1928
           var arrTwo= []
1926
           for(let i=0;i<arr.length;i++){
1929
           for(let i=0;i<arr.length;i++){
1927
-            if((arr[i].count - arr[i].cancel_count)!=0){
1930
+            if((arr[i].count - arr[i].cancel_count)  >0){
1928
                arrTwo.push(arr[i])
1931
                arrTwo.push(arr[i])
1929
             }
1932
             }
1930
           }
1933
           }
2308
      var count =0
2311
      var count =0
2309
      var arr = []
2312
      var arr = []
2310
      for(let i=0;i<this.cancelInfoList.length;i++){
2313
      for(let i=0;i<this.cancelInfoList.length;i++){
2311
-       if(warehousing_id == this.cancelInfoList[i].warehousing_id && good_id == this.cancelInfoList[i].good_id){
2314
+       
2315
+       if(this.cancelInfoList[i].patient_id >0 && warehousing_id == this.cancelInfoList[i].warehousing_id && good_id == this.cancelInfoList[i].good_id){
2312
           arr.push(this.cancelInfoList[i])
2316
           arr.push(this.cancelInfoList[i])
2313
        }
2317
        }
2314
      }
2318
      }

+ 8 - 6
src/xt_pages/user/dialysisRecord.vue View File

353
               <tr v-for="item in recordData" :key="item.id">
353
               <tr v-for="item in recordData" :key="item.id">
354
                 <td>{{ item.dialysis_date | parseTime("{y}-{m}-{d}") }}</td>
354
                 <td>{{ item.dialysis_date | parseTime("{y}-{m}-{d}") }}</td>
355
                 <td>{{ scheduleType(item.schedule_type) }}</td>
355
                 <td>{{ scheduleType(item.schedule_type) }}</td>
356
-                <td>{{ item.partition_name }}-{{ item.device_number }}</td>
356
+                <td>{{ item.partition_name }}-{{ item.device.number }}</td>
357
                 <td>{{ modeName(item.prescription.mode_id) }}</td>
357
                 <td>{{ modeName(item.prescription.mode_id) }}</td>
358
-                <td>{{ item.prescription.dialysis_duration }}</td>
358
+                <td>{{getTime(item.assessment_after_dislysis)}}</td>
359
                 <td>{{ item.predialysis_evaluation.dry_weight }}</td>
359
                 <td>{{ item.predialysis_evaluation.dry_weight }}</td>
360
                 <td>{{ item.predialysis_evaluation.weight_before }}</td>
360
                 <td>{{ item.predialysis_evaluation.weight_before }}</td>
361
                 <td>{{ item.assessment_after_dislysis.weight_after }}</td>
361
                 <td>{{ item.assessment_after_dislysis.weight_after }}</td>
650
             this.recordData[i].AnticoagulantsConfit = this.setAnticoagulantsConfit(this.recordData[i].prescription)
650
             this.recordData[i].AnticoagulantsConfit = this.setAnticoagulantsConfit(this.recordData[i].prescription)
651
             this.recordData[i].nurse_name = this.recordData[i].role.user_name
651
             this.recordData[i].nurse_name = this.recordData[i].role.user_name
652
             this.recordData[i].doc_name = this.recordData[i].prescription.role.user_name
652
             this.recordData[i].doc_name = this.recordData[i].prescription.role.user_name
653
-            this.recordData[i].bed_number = this.recordData[i].partition_name + "-" + this.recordData[i].device_number
654
-            this.recordData[i].dialysis_duration = this.recordData[i].prescription.dialysis_duration
653
+       
654
+            this.recordData[i].bed_number = this.recordData[i].partition_name + "-" + this.recordData[i].device.number
655
+            this.recordData[i].dialysis_duration_hour = this.getTime(this.recordData[i].assessment_after_dislysis)
655
             this.recordData[i].dry_weight = this.recordData[i].predialysis_evaluation.dry_weight
656
             this.recordData[i].dry_weight = this.recordData[i].predialysis_evaluation.dry_weight
656
             this.recordData[i].weight_before = this.recordData[i].predialysis_evaluation.weight_before
657
             this.recordData[i].weight_before = this.recordData[i].predialysis_evaluation.weight_before
657
             this.recordData[i].weight_after = this.recordData[i].assessment_after_dislysis.weight_after
658
             this.recordData[i].weight_after = this.recordData[i].assessment_after_dislysis.weight_after
663
             if(this.recordData[i].dialyzer_perfusion_apparatus == ""){
664
             if(this.recordData[i].dialyzer_perfusion_apparatus == ""){
664
               this.recordData[i].dialyzer_perfusion_apparatus = this.recordData[i].prescription.dialysis_dialyszers + "/" + this.recordData[i].prescription.dialysis_irrigation
665
               this.recordData[i].dialyzer_perfusion_apparatus = this.recordData[i].prescription.dialysis_dialyszers + "/" + this.recordData[i].prescription.dialysis_irrigation
665
             }
666
             }
667
+            this.recordData[i].patient_name = this.currentPatient.name
666
           }
668
           }
667
          }
669
          }
668
          
670
          
669
-         const tHeader = ['透析日期','班次', '分区机号', '透析模式','透析时长','干体重','透前体重','透后体重','透前血压','透后血压','目标超滤量','抗凝剂 首剂/维持/总量','透析器型号','治疗护士','治疗医生']
670
-         const filterVal = ['dialysis_date_one','bed_class', 'bed_number', 'mode_name','dialysis_duration','dry_weight','weight_before','weight_after','befor_pressure','after_pressure','target_ultrafiltration','AnticoagulantsConfit','dialyzer_perfusion_apparatus','nurse_name','doc_name']
671
+         const tHeader = ['姓名','透析日期','班次', '分区机号', '透析模式','透析时长','干体重(kg)','透前体重(kg)','透后体重(kg)','透前血压(mmHg)','透后血压(mmHg)','目标超滤量','抗凝剂 首剂/维持/总量','透析器型号','治疗护士','治疗医生']
672
+         const filterVal = ['patient_name','dialysis_date_one','bed_class', 'bed_number', 'mode_name','dialysis_duration_hour','dry_weight','weight_before','weight_after','befor_pressure','after_pressure','target_ultrafiltration','AnticoagulantsConfit','dialyzer_perfusion_apparatus','nurse_name','doc_name']
671
         
673
         
672
          const data = this.formatJson(filterVal, this.recordData)
674
          const data = this.formatJson(filterVal, this.recordData)
673
          excel.export_json_to_excel({
675
          excel.export_json_to_excel({