Kaynağa Gözat

518合并代码

XMLWAN 2 yıl önce
ebeveyn
işleme
c8864c5365

+ 1 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Dosyayı Görüntüle

@@ -1422,7 +1422,7 @@
1422 1422
               this.irrigations[i].name = this.irrigations[i].specification_name
1423 1423
             }
1424 1424
             this.InnerDialogProps.values = this.irrigations
1425
-            this.InnerDialogProps.titles = '透析器'
1425
+            this.InnerDialogProps.titles = '灌流器'
1426 1426
             this.InnerDialogProps.type = 'irrigations'
1427 1427
             this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_irrigation
1428 1428
             this.InnerDialogProps.isShowTextArea = false

+ 24 - 5
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Dosyayı Görüntüle

@@ -694,18 +694,31 @@
694 694
             </template>
695 695
           </el-table-column>
696 696
 
697
-          <el-table-column
698
-            prop="heparin"
697
+         <el-table-column
698
+            prop="displacement_flow_quantity"
699 699
             align="center"
700 700
             label="累计血容量(ml)"
701
-            width="140"
702
-            v-if="isShow('累计血容量')"
701
+            width="100"
702
+            v-if="isShow('累计血容量') && template_id != 41"
703
+          >
704
+             <template slot-scope="scope">
705
+              {{ scope.row.accumulated_blood_volume }}
706
+            </template>
707
+          </el-table-column>
708
+          <el-table-column
709
+            prop="displacement_flow_quantity"
710
+            align="center"
711
+            label="累计血容量(L)"
712
+            width="100"
713
+            v-if="isShow('累计血容量') && template_id == 41"
703 714
           >
704 715
             <template slot-scope="scope">
705 716
               {{ scope.row.accumulated_blood_volume }}
706 717
             </template>
707 718
           </el-table-column>
708 719
 
720
+
721
+
709 722
           <el-table-column
710 723
             prop="heparin"
711 724
             align="center"
@@ -1355,7 +1368,13 @@
1355 1368
             </el-form-item>
1356 1369
           </el-col>
1357 1370
 
1358
-          <el-col :span="8" v-if="isShow('累计血容量')">
1371
+          <el-col :span="8" v-if="isShow('累计血容量') && template_id == 41">
1372
+            <el-form-item label="累计血容量(L):">
1373
+              <el-input v-model="form.accumulated_blood_volume"></el-input>
1374
+            </el-form-item>
1375
+          </el-col>
1376
+         
1377
+          <el-col :span="8" v-if="isShow('累计血容量') && template_id  != 41">
1359 1378
             <el-form-item label="累计血容量(ml):">
1360 1379
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1361 1380
             </el-form-item>

+ 4 - 1
src/xt_pages/dialysis/details/dialysisMonitoring.vue Dosyayı Görüntüle

@@ -32,7 +32,10 @@
32 32
           <th v-if="isShow('透析液流量')" width="92px">透析液流量(ml/h)</th>
33 33
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
34 34
           <th v-if="isShow('抗凝剂')" width="92px">抗凝剂</th>
35
-          <th v-if="isShow('累计血容量')" width="92px">累计血容量(ml)</th>
35
+          <th v-if="isShow('累计血容量')" width="92px">累计血容量 
36
+            <span v-if="template_id !=41">(ml)</span>
37
+            <span v-if="template_id == 41">(L)</span>
38
+          </th>
36 39
           <th v-if="isShow('血容量')" width="92px">血容量(L)</th>
37 40
           <th v-if="isShow('血温监测')" width="92px">血温监测</th>
38 41
           <th v-if="isShow('尿素监测')" width="92px">尿素监测</th>

+ 1 - 1
src/xt_pages/stock/drugs/inventoryDetails.vue Dosyayı Görüntüle

@@ -27,7 +27,7 @@
27 27
                 >
28 28
             </div>
29 29
             <div>
30
-               <!-- <el-button size="small" type="primary" @click="print_1">打印</el-button> -->
30
+               <el-button size="small" type="primary" @click="print_1">打印</el-button>
31 31
                <el-button size="small" type="primary" @click="print">盘点模版打印</el-button>
32 32
             </div>
33 33
             <!-- <div>

+ 9 - 5
src/xt_pages/stock/drugs/print.vue Dosyayı Görüntüle

@@ -52,7 +52,7 @@
52 52
                           <span v-if="item.inventory_type == 11">盘亏</span>  
53 53
                         </td>
54 54
                         <td>{{getPrice(item.id)}}</td>
55
-                        <td>{{getTotalPrice(item.last_stock_max_number,item.last_stock_min_number,item.min_number,item.id)}}</td>
55
+                        <td>{{getTotalPrice(item.last_stock_max_number,item.last_stock_min_number,item.min_number,item.id,item.stock_max_number,item.stock_min_number)}}</td>
56 56
                     </tr>
57 57
                     </tbody>
58 58
                 </table>
@@ -144,7 +144,7 @@ export default {
144 144
           }
145 145
           return number
146 146
          },
147
-         getTotalPrice(last_stock_max_number,last_stock_min_number,min_number,id){
147
+         getTotalPrice(last_stock_max_number,last_stock_min_number,min_number,id,stock_max_number,stock_min_number){
148 148
            var retail_price = 0
149 149
            var totail_price =0
150 150
            for(let i=0;i<this.inventoryList.length;i++){
@@ -152,9 +152,10 @@ export default {
152 152
               retail_price = this.inventoryList[i].drug_warehouse_info.retail_price
153 153
             }
154 154
           }
155
-         var totail_price = last_stock_max_number * min_number * retail_price + last_stock_min_number * retail_price 
155
+          var totail_price = (stock_max_number*min_number +stock_min_number - last_stock_max_number * min_number + last_stock_min_number) * retail_price
156
+        //  var totail_price = last_stock_max_number * min_number * retail_price + last_stock_min_number * retail_price 
156 157
           if(totail_price > 0){
157
-             return totail_price
158
+             return totail_price.toFixed(4)
158 159
           }else{
159 160
             return ""
160 161
           }
@@ -163,10 +164,13 @@ export default {
163 164
            var retail_price = 0
164 165
            for(let i=0;i<this.inventoryList.length;i++){
165 166
             if(id == this.inventoryList[i].id){
166
-              retail_price = this.inventoryList[i].drug_warehouse_info.retail_price
167
+               retail_price = this.inventoryList[i].drug_warehouse_info.retail_price
167 168
             }
168 169
           }
170
+          if(retail_price > 0){
169 171
           return retail_price
172
+          }
173
+          
170 174
          }
171 175
     },
172 176
     created(){

+ 3 - 1
src/xt_pages/stock/print_all.vue Dosyayı Görüntüle

@@ -45,7 +45,9 @@
45 45
                           <span v-if="item.stock_count < item.last_stock_count">盘盈</span>
46 46
                         </td>
47 47
                         <td>{{item.buy_price}}</td>
48
-                        <td>{{(item.last_stock_count * item.buy_price).toFixed(2)}}</td>
48
+                        <td>
49
+                          <span v-if="item.stock_count > item.last_stock_count">{{((item.stock_count - item.last_stock_count)  * item.buy_price).toFixed(2)}}</span> 
50
+                        </td>
49 51
                     </tr>
50 52
                     </tbody>
51 53
                 </table>

+ 12 - 11
src/xt_pages/user/dialysisSolution.vue Dosyayı Görüntüle

@@ -537,7 +537,7 @@
537 537
               </el-select>
538 538
             </el-form-item>
539 539
 
540
-            <el-form-item
540
+            <!-- <el-form-item
541 541
               label="置换方式:"
542 542
               v-if="
543 543
                 isShows('置换液')   && (addPlan.mode == 2 || addPlan.mode == 5 || addPlan.mode == 12)
@@ -555,7 +555,7 @@
555 555
                   :value="option.id"
556 556
                 ></el-option>
557 557
               </el-select>
558
-            </el-form-item>
558
+            </el-form-item> -->
559 559
           </el-col>
560 560
 
561 561
           <el-col :span="8" v-if="isShows('置换液总量')  && (addPlan.mode == 2 || addPlan.mode == 5 || addPlan.mode == 12)">
@@ -1401,7 +1401,7 @@ export default {
1401 1401
                 type: 'success',
1402 1402
                 duration: 2000
1403 1403
               })
1404
-              this.$refs[formName].resetFields()
1404
+              
1405 1405
               this.dialogFormVisible = false
1406 1406
               this.tableData[this.current_index].doctor =
1407 1407
                 response.data.data.solution.doctor
@@ -1410,6 +1410,7 @@ export default {
1410 1410
               this.tableData[this.current_index].initiate_mode =
1411 1411
                 response.data.data.solution.initiate_mode
1412 1412
               this.current_index = -1
1413
+              this.$refs[formName].resetFields()
1413 1414
               return false
1414 1415
             }
1415 1416
           })
@@ -1484,7 +1485,7 @@ export default {
1484 1485
           }
1485 1486
           this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1486 1487
           this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1487
-
1488
+          this.addPlan.mode_id = parseInt(this.addPlan.mode_id)
1488 1489
           editPatientDialysisSolution(this.patientID,this.addPlan.id,this.addPlan, mode).then(response => {
1489 1490
             if (response.data.state == 0) {
1490 1491
               this.$message.error(response.data.msg)
@@ -1496,10 +1497,8 @@ export default {
1496 1497
                 type: 'success',
1497 1498
                 duration: 2000
1498 1499
               })
1499
-              this.$refs[formName].resetFields()
1500
-
1501 1500
               this.dialogVisible = false
1502
-
1501
+              // this.$refs[formName].resetFields()
1503 1502
               for (var dindex in response.data.data.solution) {
1504 1503
                 if (dindex == 'id') {
1505 1504
                   continue
@@ -1512,6 +1511,7 @@ export default {
1512 1511
               // this.tableData[this.current_index].updated_time = response.data.data.solution.updated_time;
1513 1512
 
1514 1513
               this.current_index = -1
1514
+              this.fetchPatientDialysisSolutions()
1515 1515
               return false
1516 1516
             }
1517 1517
           })
@@ -1526,6 +1526,7 @@ export default {
1526 1526
           const mode = '1'
1527 1527
           this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1528 1528
           this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1529
+          this.addPlan.mode_id = parseInt(this.addPlan.mode_id)
1529 1530
           console.log("add",this.addPlan)
1530 1531
           createPatientDialysisSolution(
1531 1532
             this.patientID,
@@ -1542,13 +1543,14 @@ export default {
1542 1543
                 type: 'success',
1543 1544
                 duration: 2000
1544 1545
               })
1545
-              this.$refs[formName].resetFields()
1546 1546
               this.dialogVisible = false
1547
-              this.tableData.unshift(response.data.data.solution)
1547
+              // this.tableData.unshift(response.data.data.solution)
1548 1548
               if (this.tableData.length > 10) {
1549 1549
                 this.tableData.pop()
1550 1550
               }
1551 1551
               this.total += 1
1552
+              // this.$refs[formName].resetFields()
1553
+              this.fetchPatientDialysisSolutions()
1552 1554
               return false
1553 1555
             }
1554 1556
           })
@@ -1944,7 +1946,6 @@ export default {
1944 1946
 
1945 1947
     addPlanModeChange() {
1946 1948
       var thismode = parseInt(this.addPlan.mode)
1947
-      console.log("addplan22323",this.addPlan.mode)
1948 1949
       if(thismode == 2 || thismode == 5 || thismode ==12){
1949 1950
           this.zhiShow = true
1950 1951
           this.huShow= true
@@ -2195,7 +2196,7 @@ export default {
2195 2196
     this.plasmaSeparatorList = getDataConfig('hemodialysis','plasma_separator')
2196 2197
     this.bilirubinAdsorptionColumn = getDataConfig('hemodialysis','bilirubin_adsorption_column')
2197 2198
     this.queryParams.id = this.patientID
2198
-    // this.fetchAllDoctorAndNurse();
2199
+  
2199 2200
 
2200 2201
   }
2201 2202
 }