Преглед изворни кода

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

XMLWAN пре 3 година
родитељ
комит
900d001c9f

+ 1 - 1
src/api/project/project.js Прегледај датотеку

@@ -230,7 +230,7 @@ export function getAllDoctorList(params){
230 230
 export function saveHisPatient(params){
231 231
 
232 232
   return request({
233
-    url:"/api/his/savehispatient",
233
+    url:"/api/register/get",
234 234
     methods:"get",
235 235
     params:params
236 236
   })

+ 1 - 1
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Прегледај датотеку

@@ -2549,7 +2549,7 @@
2549 2549
       this.getSelfMedicalList()
2550 2550
     },mounted(){
2551 2551
       console.log("~~~~~")
2552
-      console.log(this.his_is_open)
2552
+      console.log(this.doctor_advices)
2553 2553
       console.log("~~~~~")
2554 2554
 
2555 2555
 

+ 1 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Прегледај датотеку

@@ -1546,7 +1546,7 @@
1546 1546
       getAfterWeight(record) {
1547 1547
         if (record.id > 0) {
1548 1548
           if (record.weight_after > 0) {
1549
-            return record.weight_after - this.predialysis.additional_weight
1549
+            return parseFloat(record.weight_after - this.predialysis.additional_weight).toFixed(1)
1550 1550
           } else {
1551 1551
             return ''
1552 1552
           }

+ 7 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue Прегледај датотеку

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <div id="dialysis-print-box-1" style="width:920px">
2
+  <div id="dialysis-print-box-1" style="width:940px">
3 3
     <div
4 4
       id="dialysis-print-box-1-1"
5 5
       class="dialysis-print-order print-template-two print_page_main_content"
@@ -39,9 +39,10 @@
39 39
           </div>
40 40
         </div>
41 41
         <div class="inline_block">
42
-          门诊:
43
-          <div class="under_line" style="width: 30px;text-align: center;">
44
-            <check-box :checked="receiverTreatmentAccess.condition == 2 ? true : false"></check-box>
42
+          <div class="under_line" style="width: 50px;text-align: center;">
43
+            <!-- <check-box :checked="receiverTreatmentAccess.condition == 2 ? true : false"></check-box> -->
44
+            <span v-if="receiverTreatmentAccess.condition == 2">门诊</span>
45
+            <span v-if="receiverTreatmentAccess.condition == 1">住院</span>
45 46
           </div>
46 47
         </div>
47 48
         <div class="inline_block">
@@ -583,7 +584,7 @@
583 584
                 <table class="inside_table">
584 585
                   <tbody>
585 586
                     <tr>
586
-                      <td colspan="9" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 0px 8px;line-height: 30px;">
587
+                      <td colspan="11" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 0px 8px;line-height: 30px;">
587 588
                         监测记录
588 589
                       </td>
589 590
                     </tr>
@@ -633,7 +634,7 @@
633 634
                       </td>
634 635
                     </tr>
635 636
                     <tr>
636
-                      <td colspan="10" style="line-height:25px;text-align:left;">
637
+                      <td colspan="11" style="line-height:25px;text-align:left;">
637 638
                         医师记录:{{ summary.special_record ? summary.special_record : '' }}
638 639
                       </td>
639 640
                     </tr>

+ 2 - 1
src/xt_pages/outpatientCharges/summary.vue Прегледај датотеку

@@ -205,7 +205,8 @@
205 205
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
206 206
   import { getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund } from '@/api/his/his'
207 207
   import { uParseTime } from '@/utils/tools'
208
-  import NewStatementPrint from './newStatementPrint'
208
+  // import NewStatementPrint from './newStatementPrint'
209
+  import NewStatementPrint from './statementPrint.vue'
209 210
   import listPrint from './listPrint'
210 211
   import allListPrint from './allListPrint'
211 212
   import NewStatementPrintTwo from './newStatementPrintTwo'

+ 30 - 1
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue Прегледај датотеку

@@ -1474,7 +1474,23 @@
1474 1474
       }, changeAllGoodInfoTableDataTwo(row) {
1475 1475
         this.teamList = row
1476 1476
       },
1477
-      selectChange(row) {
1477
+      selectChange(selection, row) {
1478
+        console.log('row',row)
1479
+        if(row.total <= 0){
1480
+          if(row.type == 3){
1481
+            if (selection) {
1482
+              selection.forEach(row => {
1483
+                if(row.total <= 0){
1484
+                  this.$refs.tables.toggleRowSelection(row);
1485
+                }
1486
+              });
1487
+            } else {
1488
+              this.$refs.tables.clearSelection();
1489
+            }
1490
+            this.$message.error(row.project_name + '库存不足')
1491
+            return
1492
+          }
1493
+        }
1478 1494
         this.teamList = row
1479 1495
       }, getPrescriptionTemplateInfo() {
1480 1496
         let params = {
@@ -1640,6 +1656,7 @@
1640 1656
                 price: good_info[i].retail_price,
1641 1657
                 medical_code: good_info[i].medical_insurance_number,
1642 1658
                 unit: this.getGoodUnit(good_info[i].good_unit),
1659
+                total: good_info[i].total,
1643 1660
                 type: 3
1644 1661
               }
1645 1662
               this.tabProject.push(obj)
@@ -1715,6 +1732,7 @@
1715 1732
         getPojectListById(params).then(response => {
1716 1733
           if (response.data.state == 1) {
1717 1734
             this.teamList = []
1735
+            let num = 0
1718 1736
             var project = response.data.data.project
1719 1737
             for (let i = 0; i < project.length; i++) {
1720 1738
               if (project[i].type == 2) {
@@ -1740,6 +1758,17 @@
1740 1758
 
1741 1759
                 this.teamList.push(obj)
1742 1760
               } else if (project[i].type == 3) {
1761
+                if(project[i].good_info.total <= 0){
1762
+                  num++
1763
+                  this.$refs.tabProjectTeam.toggleRowSelection(row);
1764
+                  setTimeout(() => {
1765
+                    this.$message.error(project[i].good_info.good_name + '库存不足')
1766
+                  },100)
1767
+                }
1768
+                if(num > 0){
1769
+                  this.$refs.tabProjectTeam.clearSelection();
1770
+                }
1771
+
1743 1772
                 let obj = {
1744 1773
                   id: project[i].project_id,
1745 1774
                   project_name: project[i].good_info.good_name,

+ 20 - 20
src/xt_pages/outpatientRegistration/index.vue Прегледај датотеку

@@ -371,26 +371,26 @@
371 371
                     <!--</el-select>-->
372 372
                     <!--</el-form-item>-->
373 373
 
374
-                    <el-form-item label="医生:" prop="doctor" :validate-event="is_Name">
375
-                        <el-select v-model="form.doctor" placeholder="请选择" @change="changeDoctor">
376
-                            <el-option
377
-                                    v-for="item in doctorList"
378
-                                    :key="item.admin_user_id"
379
-                                    :label="item.user_name"
380
-                                    :value="item.admin_user_id">
381
-                            </el-option>
382
-                        </el-select>
383
-                    </el-form-item>
384
-                    <el-form-item label="科室:" prop="department" :validate-event="is_Name">
385
-                        <el-select v-model="form.department" placeholder="请选择">
386
-                            <el-option
387
-                                    v-for="item in departmentList"
388
-                                    :key="item.id"
389
-                                    :label="item.name"
390
-                                    :value="item.id">
391
-                            </el-option>
392
-                        </el-select>
393
-                    </el-form-item>
374
+                    <!--<el-form-item label="医生:" prop="doctor" :validate-event="is_Name">-->
375
+                        <!--<el-select v-model="form.doctor" placeholder="请选择" @change="changeDoctor">-->
376
+                            <!--<el-option-->
377
+                                    <!--v-for="item in doctorList"-->
378
+                                    <!--:key="item.admin_user_id"-->
379
+                                    <!--:label="item.user_name"-->
380
+                                    <!--:value="item.admin_user_id">-->
381
+                            <!--</el-option>-->
382
+                        <!--</el-select>-->
383
+                    <!--</el-form-item>-->
384
+                    <!--<el-form-item label="科室:" prop="department" :validate-event="is_Name">-->
385
+                        <!--<el-select v-model="form.department" placeholder="请选择">-->
386
+                            <!--<el-option-->
387
+                                    <!--v-for="item in departmentList"-->
388
+                                    <!--:key="item.id"-->
389
+                                    <!--:label="item.name"-->
390
+                                    <!--:value="item.id">-->
391
+                            <!--</el-option>-->
392
+                        <!--</el-select>-->
393
+                    <!--</el-form-item>-->
394 394
                     <!-- <el-form-item>
395 395
                         <el-checkbox v-model="form.costChecked">是否需要工本费</el-checkbox>
396 396
                     </el-form-item> -->