Bladeren bron

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

csx 3 jaren geleden
bovenliggende
commit
a847060aec
34 gewijzigde bestanden met toevoegingen van 5034 en 364 verwijderingen
  1. 8 0
      src/api/drug/drug.js
  2. 7 7
      src/api/patient.js
  3. 10 2
      src/api/stock.js
  4. 12 0
      src/router/modules/dialysis.js
  5. 21 25
      src/utils/tools.js
  6. 1851 0
      src/xt_pages/dialysis/batch_print/batch_print_order_fortyOne.vue
  7. 12 0
      src/xt_pages/dialysis/bloodPresssWatch.vue
  8. 1 1
      src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue
  9. 24 4
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  10. 2 2
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  11. 1 1
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  12. 26 0
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  13. 1717 0
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyTwo.vue
  14. 11 1
      src/xt_pages/management/components/UserForm.vue
  15. 1 1
      src/xt_pages/management/home.vue
  16. 27 15
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  17. 98 50
      src/xt_pages/outpatientCharges/statementPrint.vue
  18. 156 18
      src/xt_pages/outpatientCharges/statementTemplate/printFour.vue
  19. 37 6
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  20. 162 60
      src/xt_pages/stock/drugs/drugDamaged.vue
  21. 106 37
      src/xt_pages/stock/drugs/drugModifyPrice.vue
  22. 1 1
      src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue
  23. 11 10
      src/xt_pages/stock/drugs/inventory.vue
  24. 1 1
      src/xt_pages/stock/drugs/inventoryDetails.vue
  25. 249 24
      src/xt_pages/stock/inventory.vue
  26. 186 15
      src/xt_pages/stock/stockDamaged.vue
  27. 73 32
      src/xt_pages/stock/stockModifyPrice.vue
  28. 1 0
      src/xt_pages/user/courseOfDisease.vue
  29. 16 0
      src/xt_pages/user/dialysisSolution.vue
  30. 82 23
      src/xt_pages/user/templateSummary.vue
  31. 9 6
      src/xt_pages/user/templateSummaryPrint.vue
  32. 45 8
      src/xt_pages/workforce/components/nextTableWeeks.vue
  33. 68 12
      src/xt_pages/workforce/components/tableWeeks.vue
  34. 2 2
      src/xt_pages/workforce/remind_print_setting.vue

+ 8 - 0
src/api/drug/drug.js Bestand weergeven

@@ -459,3 +459,11 @@ export function SaveDrugProofInventory(params) {
459 459
     params: params
460 460
   })
461 461
 }
462
+
463
+export function getDrugWarehouseInfoTotal(params) {
464
+  return request({
465
+    url: '/api/drug/getdrugwarehouseinfototal',
466
+    method: 'Get',
467
+    params: params
468
+  })
469
+}

+ 7 - 7
src/api/patient.js Bestand weergeven

@@ -501,12 +501,12 @@ export function getInspectionItemList(params) {
501 501
   })
502 502
 }
503 503
 
504
-export function saveCreation(params) {
505
-  console.log('中国龚3223呃3额', params)
504
+export function saveCreation(data) {
505
+  console.log('中国龚3223呃3额', data)
506 506
   return request({
507 507
     url: '/api/patient/savecreationinspection',
508
-    method: 'get',
509
-    params: params
508
+    method: 'post',
509
+    data: data
510 510
   })
511 511
 }
512 512
 
@@ -534,11 +534,11 @@ export function getTemplateSummaryPrintDetail(params) {
534 534
   })
535 535
 }
536 536
 
537
-export function UpdateTemplateSummary(params) {
537
+export function UpdateTemplateSummary(data) {
538 538
   return request({
539 539
     url: '/api/patient/updatetemplatesummary',
540
-    method: 'get',
541
-    params: params
540
+    method: 'post',
541
+    data: data
542 542
   })
543 543
 }
544 544
 

+ 10 - 2
src/api/stock.js Bestand weergeven

@@ -835,9 +835,9 @@ export function updateStockPrice(params) {
835 835
   })
836 836
 }
837 837
 
838
-export function deleteStockPrice(id, params) {
838
+export function deleteStockPrice(params) {
839 839
   return request({
840
-    url: '/api/stock/deletestockprice?id=' + id,
840
+    url: '/api/stock/deletestockprice',
841 841
     method: 'Get',
842 842
     params: params
843 843
   })
@@ -938,3 +938,11 @@ export function proofInventory(params) {
938 938
     params: params
939 939
   })
940 940
 }
941
+
942
+export function getWarehouseTotal(params) {
943
+  return request({
944
+    url: '/api/stock/getwarehousetotal',
945
+    method: 'Get',
946
+    params: params
947
+  })
948
+}

+ 12 - 0
src/router/modules/dialysis.js Bestand weergeven

@@ -435,6 +435,18 @@ export default {
435 435
         noCache: true
436 436
       }
437 437
     },
438
+    {
439
+      path: '/dialysis/print/batch/fortyOne',
440
+      component: () =>
441
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_fortyOne'),
442
+      hidden: true,
443
+      is_menu: false,
444
+      name: 'batch_print_order_fortyOne',
445
+      meta: {
446
+        title: '批量打印',
447
+        noCache: true
448
+      }
449
+    },
438 450
     {
439 451
       path: '/dialysis/print/batch/thirtyThree_one',
440 452
       component: () =>

+ 21 - 25
src/utils/tools.js Bestand weergeven

@@ -153,7 +153,7 @@ export function uParseTime(time, cFormat) {
153 153
 }
154 154
 
155 155
 export function calculateAnticoagulantZL(type, shouji, shichang, weichi) {
156
- 
156
+  console.log('t', type)
157 157
   var t = 0.5
158 158
   if (type == 1) {
159 159
     t = 0.5
@@ -168,34 +168,30 @@ export function calculateAnticoagulantZL(type, shouji, shichang, weichi) {
168 168
   if (isNaN(shouji) || isNaN(shichang) || isNaN(weichi)) {
169 169
     return 0
170 170
   }
171
- console.log((shouji + (shichang - t) * weichi).toFixed(1))
171
+  console.log((shouji + (shichang - t) * weichi).toFixed(1))
172 172
   return (shouji + (shichang - t) * weichi).toFixed(1)
173 173
 }
174 174
 
175
-
176
-
177
-
178
-
179
-export function formatDate (date, format) {
175
+export function formatDate(date, format) {
180 176
   if (/(y+)/.test(format)) {
181
-      format= format.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
177
+    format = format.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length))
182 178
   }
183
-  let o = {
184
-      'M+': date.getMonth() + 1,
185
-      'd+': date.getDate(),
186
-      'h+': date.getHours(),
187
-      'm+': date.getMinutes(),
188
-      's+': date.getSeconds()
189
-  };
190
-  for (let k in o) {
191
-      if (new RegExp(`(${k})`).test(format)) {
192
-          let str = o[k] + '';
193
-          format= format.replace(RegExp.$1, (RegExp.$1.length === 1) ? str : padLeftZero(str));
194
-      }
179
+  const o = {
180
+    'M+': date.getMonth() + 1,
181
+    'd+': date.getDate(),
182
+    'h+': date.getHours(),
183
+    'm+': date.getMinutes(),
184
+    's+': date.getSeconds()
195 185
   }
196
-  return format;
197
-};
186
+  for (const k in o) {
187
+    if (new RegExp(`(${k})`).test(format)) {
188
+      const str = o[k] + ''
189
+      format = format.replace(RegExp.$1, (RegExp.$1.length === 1) ? str : padLeftZero(str))
190
+    }
191
+  }
192
+  return format
193
+}
198 194
 
199
-function padLeftZero (str) {
200
-  return ('00' + str).substr(str.length);
201
-};
195
+function padLeftZero(str) {
196
+  return ('00' + str).substr(str.length)
197
+}

Diff onderdrukt omdat het te groot bestand
+ 1851 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_fortyOne.vue


+ 12 - 0
src/xt_pages/dialysis/bloodPresssWatch.vue Bestand weergeven

@@ -279,6 +279,16 @@
279 279
           >批量打印</el-button
280 280
         >
281 281
       </template>
282
+      <template v-if="this.template_id == 41">
283
+        <el-button
284
+          size="small"
285
+          icon="el-icon-printer"
286
+          :disabled="selecting_schs.length == 0"
287
+          @click="batchPrintAction"
288
+          type="primary"
289
+          >批量打印</el-button
290
+        >
291
+      </template>
282 292
     </div>
283 293
     <div class="app-container">
284 294
       <!-- <div class="filter-container">
@@ -869,6 +879,8 @@ export default {
869 879
         this.$router.push({ path: "/dialysis/print/batch/thirtyNine" });
870 880
       } else if (this.template_id == 40) {
871 881
         this.$router.push({ path: "/dialysis/print/batch/forty" });
882
+      } else if (this.template_id == 41) {
883
+        this.$router.push({ path: "/dialysis/print/batch/fortyOne" });
872 884
       }
873 885
     },
874 886
     batchPrintActionOne: function() {

+ 1 - 1
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Bestand weergeven

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

+ 24 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Bestand weergeven

@@ -2118,7 +2118,7 @@
2118 2118
         this.isVisibility = false
2119 2119
       },
2120 2120
       changeThisAnticoagulant: function(val) {
2121
-
2121
+        console.log("val",val)
2122 2122
         var thismode = val
2123 2123
         if (isNaN(thismode) || thismode <= 0) {
2124 2124
           return false
@@ -2145,6 +2145,16 @@
2145 2145
           this.anticoagulant.weichi_unit = 'ml'
2146 2146
           this.anticoagulant.zongliang_unit = 'ml'
2147 2147
         }
2148
+
2149
+        console.log('首季9999', this.dialysisPrescription.anticoagulant_zongliang)
2150
+        console.log("收集",this.dialysisPrescription.anticoagulant_shouji)
2151
+        console.log("weichi",this.dialysisPrescription.anticoagulant_weichi)
2152
+        if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
2153
+          this.dialysisPrescription.anticoagulant_zongliang = ""
2154
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
2155
+        }
2156
+
2157
+
2148 2158
       },
2149 2159
       handleCommit: function() {
2150 2160
         if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
@@ -3445,7 +3455,7 @@
3445 3455
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3446 3456
           this.dialysisPrescription.anticoagulant_zongliang = ''
3447 3457
         }
3448
-
3458
+        
3449 3459
       },
3450 3460
       'dialysisPrescription.anticoagulant_shouji': function() {
3451 3461
         let dialysis_duration_minute = 0
@@ -3477,6 +3487,11 @@
3477 3487
           this.dialysisPrescription.anticoagulant_zongliang = ''
3478 3488
         }
3479 3489
 
3490
+      if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
3491
+          this.dialysisPrescription.anticoagulant_zongliang = ""
3492
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
3493
+       }
3494
+
3480 3495
       },
3481 3496
       'dialysisPrescription.anticoagulant_weichi': function() {
3482 3497
         let dialysis_duration_minute = 0
@@ -3502,8 +3517,13 @@
3502 3517
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3503 3518
           this.dialysisPrescription.anticoagulant_zongliang = ''
3504 3519
         }
3505
-        console.log('首季', this.dialysisPrescription.anticoagulant_zongliang)
3506
-
3520
+        console.log('首季9999', this.dialysisPrescription.anticoagulant_zongliang)
3521
+        console.log("收集",this.dialysisPrescription.anticoagulant_shouji)
3522
+        console.log("weichi",this.dialysisPrescription.anticoagulant_weichi)
3523
+        if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
3524
+         this.dialysisPrescription.anticoagulant_zongliang = ""
3525
+         this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
3526
+       }
3507 3527
       },
3508 3528
       'prescription.id': {
3509 3529
         immediate: true,

+ 2 - 2
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Bestand weergeven

@@ -443,7 +443,7 @@
443 443
            <el-table-column
444 444
             prop="heparin"
445 445
             align="center"
446
-            label="累计血容量"
446
+            label="累计血容量(ml)"
447 447
             width="140"
448 448
             v-if="isShow('累计血容量')"
449 449
           >
@@ -776,7 +776,7 @@
776 776
          </el-col>
777 777
 
778 778
           <el-col :span="8" v-if=" isShow('累计血容量')">
779
-            <el-form-item label="累计血容量:">
779
+            <el-form-item label="累计血容量(ml):">
780 780
               <el-input v-model="form.accumulated_blood_volume"></el-input>
781 781
             </el-form-item>
782 782
           </el-col>

+ 1 - 1
src/xt_pages/dialysis/details/dialysisMonitoring.vue Bestand weergeven

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

+ 26 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue Bestand weergeven

@@ -573,6 +573,16 @@
573 573
           >打印</el-button
574 574
         >
575 575
       </template>
576
+      <template v-if="org_template_info.template_id == 42">
577
+        <el-button
578
+          :loading="loading"
579
+          size="small"
580
+          icon="el-icon-printer"
581
+          @click="printThisPage"
582
+          type="primary"
583
+          >打印</el-button
584
+        >
585
+      </template>
576 586
     </div>
577 587
     <div class="app-container" style="min-height:0;">
578 588
       <!--<div class="order-print-btn"-->
@@ -858,6 +868,11 @@
858 868
             v-if="org_template_info.template_id == 41"
859 869
           >
860 870
           </DialysisPrintOrderFortyOne>
871
+          <DialysisPrintOrderFortyTwo
872
+            v-bind:childResponse="childResponse"
873
+            v-if="org_template_info.template_id == 42"
874
+          >
875
+          </DialysisPrintOrderFortyTwo>
861 876
         </div>
862 877
       </el-container>
863 878
     </div>
@@ -918,9 +933,11 @@ import DialysisPrintOrderThirtyEight from "./template/DialysisPrintOrderThirtyEi
918 933
 import DialysisPrintOrderThirtyNine from "./template/DialysisPrintOrderThirtyNine";
919 934
 import DialysisPrintOrderForty from "./template/DialysisPrintOrderForty";
920 935
 import DialysisPrintOrderFortyOne from "./template/DialysisPrintOrderFortyOne";
936
+import DialysisPrintOrderFortyTwo from "./template/DialysisPrintOrderFortyTwo";
921 937
 export default {
922 938
   name: "dialysisPrintOrder",
923 939
   components: {
940
+    DialysisPrintOrderFortyTwo,
924 941
     DialysisPrintOrderFortyOne,
925 942
     DialysisPrintOrderForty,
926 943
     DialysisPrintOrderThirtyNine,
@@ -1141,6 +1158,8 @@ export default {
1141 1158
         '@media print {.dialysis-print-order{width:960px;margin:0 auto;font-size:10px;}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:10px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.widthLength25{width: 25%;}.lineHeight{line-height: 20px;display: flex;justify-content: space-between;}';
1142 1159
       const style9 =
1143 1160
         '@media print {#dialysis-print-box-1{margin:0 auto;}.dialysis-print-order{width:920px;margin:0 10px;font-size:10px;}.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 940px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;}';
1161
+      const style10 =
1162
+        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1144 1163
 
1145 1164
       if (this.org_template_info.template_id == 1) {
1146 1165
         printJS({
@@ -1415,6 +1434,13 @@ export default {
1415 1434
           style: style9,
1416 1435
           scanStyles: false
1417 1436
         });
1437
+      } else if (this.org_template_info.template_id == 42) {
1438
+        printJS({
1439
+          printable: "dialysis-print-box",
1440
+          type: "html",
1441
+          style: style10,
1442
+          scanStyles: false
1443
+        });
1418 1444
       }
1419 1445
     },
1420 1446
     printThisOnePage() {

Diff onderdrukt omdat het te groot bestand
+ 1717 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderFortyTwo.vue


+ 11 - 1
src/xt_pages/management/components/UserForm.vue Bestand weergeven

@@ -1041,7 +1041,8 @@ export default {
1041 1041
         { id: 1, name: "0.22%季铵盐" },
1042 1042
         { id: 2, name: "500mg/l含氯消毒剂" },
1043 1043
         { id: 3, name: "1000mg/l含氯消毒剂" },
1044
-        { id: 4, name: "1500mg/l含氯消毒剂" }
1044
+        { id: 4, name: "1500mg/l含氯消毒剂" },
1045
+        { id: 5, name: "消毒湿巾" }
1045 1046
       ],
1046 1047
       // 夜路消毒方式
1047 1048
       sterilizeType: [
@@ -1292,6 +1293,9 @@ export default {
1292 1293
             if (information[index].disinfectant_type === 4) {
1293 1294
               information[index].disinfectant_type = "1500mg/l含氯消毒剂";
1294 1295
             }
1296
+            if (information[index].disinfectant_type === 5) {
1297
+               information[index].disinfectant_type = "消毒湿巾";
1298
+            }
1295 1299
 
1296 1300
             if (information[index].disinfection === 1) {
1297 1301
               information[index].disinfection = "已消毒";
@@ -1817,6 +1821,9 @@ export default {
1817 1821
             if (information[index].disinfectant_type === 4) {
1818 1822
               information[index].disinfectant_type = "1500mg/l含氯消毒剂";
1819 1823
             }
1824
+            if (information[index].disinfectant_type === 5) {
1825
+              information[index].disinfectant_type = "消毒湿巾";
1826
+            }
1820 1827
 
1821 1828
             if (information[index].disinfection === 0) {
1822 1829
               information[index].disinfection = "";
@@ -2103,6 +2110,9 @@ export default {
2103 2110
             if (information[index].disinfectant_type === 4) {
2104 2111
               information[index].disinfectant_type = "1500mg/l含氯消毒剂";
2105 2112
             }
2113
+           if (information[index].disinfectant_type === 5) {
2114
+              information[index].disinfectant_type = "消毒湿巾";
2115
+            }
2106 2116
 
2107 2117
             if (information[index].disinfection === 0) {
2108 2118
               information[index].disinfection = "";

+ 1 - 1
src/xt_pages/management/home.vue Bestand weergeven

@@ -981,7 +981,7 @@
981 981
                                      </el-form-item>
982 982
                                     </el-col>
983 983
                                     <el-col :span="8">
984
-                                       <el-form-item label="患者:" required prop ="patient_name">
984
+                                       <el-form-item label="患者:">
985 985
                                            <el-autocomplete
986 986
                                                style="width:150px"
987 987
                                                popper-class="my-autocomplete"

+ 27 - 15
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Bestand weergeven

@@ -1,5 +1,8 @@
1 1
 <template>
2
-    <div class="main-contain outpatientChargesManagement">
2
+    <div class="main-contain outpatientChargesManagement" v-loading="newLoading"
3
+    element-loading-text="拼命加载中"
4
+    element-loading-spinner="el-icon-loading"
5
+    element-loading-background="rgba(0, 0, 0, 0.8)">
3 6
         <div class="position">
4 7
             <bread-crumb :crumbs='crumbs'></bread-crumb>
5 8
         </div>
@@ -120,9 +123,7 @@
120 123
                                                                 type="primary"
121 124
                                                         >修改医疗类型
122 125
                                                         </el-button>
123
-                                                    </el-tab-pane>
124
-
125
-                                                    <div style="margin-bottom:10px;float: right">
126
+                                                        <div style="margin-bottom:10px;float: right">
126 127
                                                         <div>
127 128
                                                             <el-button
128 129
                                                                     v-if="(hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0)"
@@ -148,6 +149,9 @@
148 149
                                                             </el-button>
149 150
                                                         </div>
150 151
                                                     </div>
152
+                                                    </el-tab-pane>
153
+
154
+                                                    
151 155
 
152 156
                                                     <prescription-table ref="prescription_tables"
153 157
                                                                         :prescription="items.curPrescriptions"></prescription-table>
@@ -690,7 +694,8 @@
690 694
 
691 695
         temp_ids: '',
692 696
 
693
-        other_prescriptions: []
697
+        other_prescriptions: [],
698
+        newLoading:false
694 699
 
695 700
       }
696 701
     },
@@ -859,7 +864,7 @@
859 864
         })
860 865
 
861 866
       }, chargeConfirm(form) {
862
-
867
+        this.newLoading = true
863 868
         form['id'] = this.patientInfo.id
864 869
         form['his_patient_id'] = this.hisPatientInfo.id
865 870
         form['record_time'] = this.record_date
@@ -886,6 +891,7 @@
886 891
             if (response.data.state == 0) {
887 892
               this.$message.error(response.data.msg)
888 893
               this.loadingtwo = false
894
+              this.newLoading = false
889 895
               this.$refs.charge.hide()
890 896
               return false
891 897
             } else {
@@ -898,6 +904,7 @@
898 904
               this.$message({ message: '收费成功', type: 'success' })
899 905
               this.$refs.charge.hide()
900 906
               this.loadingtwo = false
907
+              this.newLoading = false
901 908
             }
902 909
           })
903 910
 
@@ -921,8 +928,9 @@
921 928
                     confirmButtonText: '确 定',
922 929
                     type: 'warning'
923 930
                   }).then(() => {
924
-
931
+                    that.newLoading = false
925 932
                   }).catch(() => {
933
+                    that.newLoading = false
926 934
                   })
927 935
 
928 936
                 } else {
@@ -936,12 +944,12 @@
936 944
                   that.cal_one = this.cal_one - 1
937 945
                   that.cal_two = this.cal_two + 1
938 946
                   that.patientTableData.splice(this.current_index, 1)
939
-
947
+                  that.newLoading = false
940 948
                 }
941 949
               }
942 950
             })
943 951
             .catch(function(error) {
944
-
952
+              that.newLoading = false
945 953
             })
946 954
         }
947 955
       }, chargeCancel() {
@@ -2115,7 +2123,7 @@
2115 2123
           }
2116 2124
           var ids_str = ids.join(',')
2117 2125
           this.temp_ids = ids_str
2118
-
2126
+          this.newLoading = true
2119 2127
           var that = this
2120 2128
           let form = {}
2121 2129
           form['id'] = this.patientInfo.id
@@ -2148,14 +2156,16 @@
2148 2156
                 if (response.data.state == 0) {
2149 2157
                   this.$message.error(response.data.msg)
2150 2158
                   this.loadingtwo = false
2159
+                  this.newLoading = false
2151 2160
                   return false
2152 2161
                 } else {
2153 2162
                   this.changeRadioAndPatient(1)
2154 2163
                   this.$message({ message: '预结算成功', type: 'success' })
2164
+                  this.newLoading = false
2155 2165
                 }
2156 2166
               })
2157 2167
             }).catch(() => {
2158
-
2168
+              this.newLoading = false
2159 2169
             })
2160 2170
 
2161 2171
           } else {
@@ -2180,20 +2190,22 @@
2180 2190
                         confirmButtonText: '确 定',
2181 2191
                         type: 'warning'
2182 2192
                       }).then(() => {
2183
-
2193
+                        that.newLoading = false
2184 2194
                       }).catch(() => {
2195
+                        that.newLoading = false
2185 2196
                       })
2186 2197
                     } else {
2187 2198
                       that.changeRadioAndPatient(1)
2188 2199
                       that.$message({ message: '预结算成功', type: 'success', duration: 5000 })
2200
+                      that.newLoading = false
2189 2201
                     }
2190 2202
                   }
2191 2203
                 })
2192 2204
                 .catch(function(error) {
2193
-
2205
+                  that.newLoading = false
2194 2206
                 })
2195 2207
             }).catch(() => {
2196
-
2208
+              that.newLoading = false
2197 2209
             })
2198 2210
           }
2199 2211
 
@@ -4105,7 +4117,7 @@
4105 4117
         position: relative;
4106 4118
 
4107 4119
         overflow-y: auto;
4108
-        height: 350px;
4120
+        height: 450px;
4109 4121
 
4110 4122
 
4111 4123
     .el-tabs__item {

+ 98 - 50
src/xt_pages/outpatientCharges/statementPrint.vue Bestand weergeven

@@ -13,10 +13,10 @@
13 13
       </template>
14 14
 
15 15
       <div class='dialysisPage' style="padding-top:40px;">
16
-        <div v-if="org_id == 9990 || org_id == 10138 || org_id == 9504 || org_id == 10028">
16
+        <div v-if="org_id == 9990 || org_id == 10138 || org_id == 9504 || org_id == 10028 || org_id == 0">
17 17
           <printTwo :info="info" v-if="org_id == 9990"></printTwo>
18 18
           <printThree :info="info" :paramsObj="paramsObj" :balanceAccounts="balanceAccounts" v-if="org_id == 10138"></printThree>
19
-          <printFour v-if="org_id == 9504 || org_id == 10028" :info="info"></printFour>
19
+          <printFour v-if="org_id == 9504 || org_id == 10028 || org_id == 0" :info="info" :paramsObj="paramsObj" :balanceAccounts="balanceAccounts"></printFour>
20 20
         </div>
21 21
         <printOne :info="info" v-else></printOne>
22 22
       </div>
@@ -300,58 +300,106 @@ export default {
300 300
           id: obj.order_id,
301 301
 
302 302
         }
303
-        getPrivateExpenses(params).then(response => {
304
-          if (response.data.state == 0) {
305
-            // this.$message.error(response.data.msg)
306
-
307
-            return false
308
-          } else {
309
-
310
-            this.balanceAccounts = response.data.data
311
-            let arr = []
312
-            let obj = {
313
-              type:1,
314
-              details: [],
315
-              total: 0
316
-            }
317
-            let obj2 = {
318
-              type:2,
319
-              details: [],
320
-              total: 0
321
-            }
322
-            let obj3 = {
323
-              type:3,
324
-              details: [],
325
-              total: 0
326
-            }
327
-            let num = 0
328
-            this.balanceAccounts.order_info.map(item => {
329
-
330
-              if(item.advice_id > 0){
331
-                obj.details.push(item)
332
-                obj.total += (item.pric * item.advice.prescribing_number)
333
-                num++
334
-              }else{
335
-                if(item.project.type == 2){
336
-                  obj2.details.push(item)
337
-                  obj2.total += (item.pric * item.project.count)
303
+        if(this.org_id == 10138){
304
+          getPrivateExpenses(params).then(response => {
305
+            if (response.data.state == 0) {
306
+              // this.$message.error(response.data.msg)
307
+
308
+              return false
309
+            } else {
310
+
311
+              this.balanceAccounts = response.data.data
312
+              let arr = []
313
+              let obj = {
314
+                type:1,
315
+                details: [],
316
+                total: 0
317
+              }
318
+              let obj2 = {
319
+                type:2,
320
+                details: [],
321
+                total: 0
322
+              }
323
+              let obj3 = {
324
+                type:3,
325
+                details: [],
326
+                total: 0
327
+              }
328
+              let num = 0
329
+              this.balanceAccounts.order_info.map(item => {
330
+
331
+                if(item.advice_id > 0){
332
+                  obj.details.push(item)
333
+                  obj.total += (item.pric * item.advice.prescribing_number)
338 334
                   num++
339 335
                 }else{
340
-                  obj3.details.push(item)
341
-                  obj3.total += (item.pric * item.project.count)
342
-                  num++
336
+                  if(item.project.type == 2){
337
+                    obj2.details.push(item)
338
+                    obj2.total += (item.pric * item.project.count)
339
+                    num++
340
+                  }else{
341
+                    obj3.details.push(item)
342
+                    obj3.total += (item.pric * item.project.count)
343
+                    num++
344
+                  }
343 345
                 }
346
+              })
347
+              this.balanceAccounts.new_detail_list = []
348
+              this.balanceAccounts.new_detail_list.push(obj)
349
+              this.balanceAccounts.new_detail_list.push(obj2)
350
+              this.balanceAccounts.new_detail_list.push(obj3)
351
+              console.log(111,this.balanceAccounts)
352
+              this.num = num
353
+              console.log('this.num',this.num)
354
+            }
355
+          })
356
+        }else if(this.org_id == 10028){
357
+          getPrivateExpenses(params).then(response => {
358
+            if (response.data.state == 0) {
359
+              // this.$message.error(response.data.msg)
360
+
361
+              return false
362
+            } else {
363
+
364
+              this.balanceAccounts = response.data.data
365
+              let obj = {
366
+                type:1,
367
+                details: [],
368
+                total: 0
344 369
               }
345
-            })
346
-            this.balanceAccounts.new_detail_list = []
347
-            this.balanceAccounts.new_detail_list.push(obj)
348
-            this.balanceAccounts.new_detail_list.push(obj2)
349
-            this.balanceAccounts.new_detail_list.push(obj3)
350
-            console.log(111,this.balanceAccounts)
351
-            this.num = num
352
-            console.log('this.num',this.num)
353
-          }
354
-        })
370
+              let obj2 = {
371
+                type:2,
372
+                details: [],
373
+                total: 0
374
+              }
375
+              let obj3 = {
376
+                type:3,
377
+                details: [],
378
+                total: 0
379
+              }
380
+              this.balanceAccounts.order_info.map(item => {
381
+
382
+                if(item.advice_id > 0){
383
+                  obj.details.push(item)
384
+                  obj.total += (item.pric * item.advice.prescribing_number)
385
+                }else{
386
+                  if(item.project.type == 2){
387
+                    obj2.details.push(item)
388
+                    obj2.total += (item.pric * item.project.count)
389
+                  }else{
390
+                    obj3.details.push(item)
391
+                    obj3.total += (item.pric * item.project.count)
392
+                  }
393
+                }
394
+              })
395
+              this.balanceAccounts.new_detail_list = []
396
+              this.balanceAccounts.new_detail_list.push(obj)
397
+              this.balanceAccounts.new_detail_list.push(obj2)
398
+              this.balanceAccounts.new_detail_list.push(obj3)
399
+              console.log(111,this.balanceAccounts)
400
+            }
401
+          })
402
+        }
355 403
 
356 404
 
357 405
       }else {

+ 156 - 18
src/xt_pages/outpatientCharges/statementTemplate/printFour.vue Bestand weergeven

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
     <div>
3
-        <div id='prescription-print' class="prescription-print">
3
+        <div v-if="paramsObj.balance_accounts_type != 2" id='prescription-print' class="prescription-print">
4 4
             <div v-for='(i,pageIndex) in pageArr.length' :key="pageIndex">
5 5
                 <div class="printTitle">血液透析中心医药费收据及收费项目清单</div>
6 6
                 <div class="infoMain">
@@ -133,12 +133,118 @@
133 133
             </div>
134 134
 
135 135
         </div>
136
+        <div v-else id='prescription-print' class="prescription-print">
137
+          <div v-for='(i,pageIndex) in pageArr.length' :key="pageIndex">
138
+              <div class="printTitle">血液透析中心医药费收据及收费项目清单</div>
139
+              <div class="infoMain">
140
+                  <div class="infoP">医院(药店)编号:{{balanceAccounts.org_config.code}}</div>
141
+                  <div class="infoP">名称:{{balanceAccounts.org_config.org_name}}</div>
142
+                  <div class="infoP">医生工号:</div>
143
+                  <div class="infoP">门诊流水号:{{balanceAccounts.his.number ? balanceAccounts.his.number : ''}}</div>
144
+                  <div class="infoP">科别: {{balanceAccounts.order.department_name ? balanceAccounts.order.department_name : ''}}</div>
145
+                  <div class="infoP">处方单据号:{{balanceAccounts.order.number ? balanceAccounts.order.number : ''}}</div>
146
+                  <div class="infoP">姓名:{{balanceAccounts.patient ? balanceAccounts.patient.name : ''}}</div>
147
+                  <div class="infoP">医疗账号:</div>
148
+                  <div class="infoP">医疗类别:自费</div>
149
+              </div>
150
+              <div class="chargeBox">
151
+                  <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;">
152
+                      <div class="chargeUl" style="width:20%;">
153
+                          <p style="width:50%;border-right:1px solid #000;">费用类型</p>
154
+                          <p style="width:50%;border-right:1px solid #000;">金额</p>
155
+                      </div>
156
+                      <div class="chargeUl" style="width:80%;">
157
+                          <p style="width:40%;border-right:1px solid #000;">明细名称</p>
158
+                          <p style="width:15%;border-right:1px solid #000;">规格</p>
159
+                          <p style="width:15%;border-right:1px solid #000;">数量</p>
160
+                          <p style="width:15%;border-right:1px solid #000;">单价</p>
161
+                          <p style="width:15%;">金额</p>
162
+                      </div>
163
+                  </div>
164
+                  <div style="display:flex;justify-content: space-between;">
165
+                      <div style="width:20%;">
166
+                          <div class="chargeUl" v-for="(item,i) in balanceAccounts.new_detail_list" :key="i">
167
+                              <p style="width:50%;">
168
+                                <span v-if="item.type == 1">药品费</span>
169
+                                <span v-if="item.type == 2">治疗费</span>
170
+                                <span v-if="item.type == 3">耗材费</span>
171
+                              </p>
172
+                              <p style="width:50%;">{{item.total?item.total:0}}元</p>
173
+                          </div>
174
+                          <div class="chargeUl" style="border-top:1px solid #000;">
175
+                              <p style="width:50%;">费用合计</p>
176
+                              <p style="width:50%;">{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</p>
177
+                          </div>
178
+                          <div class="chargeUl" style="border-top:1px solid #000;">
179
+                              <p style="width:50%;">记账支付</p>
180
+                              <p style="width:50%;">0元</p>
181
+                          </div>
182
+                          <div class="chargeUl" style="border-top:1px solid #000;">
183
+                              <p style="width:50%;">个人账号</p>
184
+                              <p style="width:50%;">0元</p>
185
+                          </div>
186
+                          <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
187
+                              <p style="width:50%;">现金支付</p>
188
+                              <p style="width:50%;">{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</p>
189
+                          </div>
190
+                      </div>
191
+                      <div style="width:80%;max-height:500px;">
192
+                          <div style="display:flex;" v-for="(item,i) in balanceAccounts.order_info.slice(pageIndex * 13,(pageIndex * 13) + pageArr[pageIndex])" :key="i">
193
+                              <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
194
+                                  <p class="chargeP">
195
+                                      <span v-if='item.advice_id > 0'>{{item.advice.advice_name}}</span>
196
+                                      <span v-if='item.project.type == 2'>{{item.project.project.project_name}}</span>
197
+                                      <span v-if='item.project.type == 3'>{{item.project.good_info.specification_name}}</span>
198
+                                  </p>
199
+                              </div>
200
+                              <div style="border-right:1px solid #000;width:15%;text-align:center;">
201
+                                  <p class="chargeP">
202
+                                      <span v-if='item.advice_id > 0'>{{item.advice.drug.drug_spec}}</span>
203
+                                      <span v-if='item.project.type == 2'>{{item.project.project.unit}}</span>
204
+                                      <span v-if='item.project.type == 3'>{{item.project.unit}}</span>
205
+                                  </p>
206
+                              </div>
207
+                              <div style="border-right:1px solid #000;width:15%;text-align:center;">
208
+                                  <p class="chargeP">
209
+                                      <span>{{item.cnt}}次</span>
210
+                                  </p>
211
+                              </div>
212
+                              <div style="border-right:1px solid #000;width:15%;text-align:center;">
213
+                                  <p class="chargeP">
214
+                                      <span>{{item.pric}}元</span>
215
+                                  </p>
216
+                              </div>
217
+                              <div style="width:15%;text-align:center;">
218
+                                  <p class="chargeP">
219
+                                      <span>{{item.cnt * item.pric}}元</span>
220
+                                  </p>
221
+                              </div>
222
+                          </div>
223
+                      </div>
224
+                  </div>
225
+
226
+              </div>
227
+              <div class="moneyBox">
228
+                  <p>实收金:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</p>
229
+                  <p>记账前金额:{{0.00}}元</p>
230
+                  <p>扣款金额:{{0.00}}元</p>
231
+                  <p>记账后金额:{{0.00}}元</p>
232
+                  <p>找赎金:{{0.00}}元</p>
233
+              </div>
234
+              <div class="actionBar">
235
+                  <div>收费员:{{balanceAccounts.current_admin.user_name}}</div>
236
+                  <div>日期:{{getTime(new Date(),"{y}-{m}-{d}")?getTime(new Date(),"{y}-{m}-{d}"):""}}</div>
237
+              </div>
238
+          </div>
239
+
240
+        </div>
136 241
     </div>
137 242
 
138 243
 </template>
139 244
 <script>
140 245
   import axios from 'axios'
141 246
   import { getChargePrint } from '@/api/project/project'
247
+  import { uParseTime } from '@/utils/tools'
142 248
 
143 249
   export default {
144 250
     data() {
@@ -166,7 +272,9 @@
166 272
       }
167 273
     },
168 274
     props: {
169
-      info: Object
275
+      paramsObj: Object,
276
+      info: Object,
277
+      balanceAccounts:Object
170 278
     },
171 279
     methods: {
172 280
       getItemName(number) {
@@ -278,22 +386,48 @@
278 386
 
279 387
       },
280 388
       getPage(){
281
-        this.page = 1
282
-        this.pageArr = []
283
-        if(this.info.order_infos.length <= 13){
284
-            this.page = 1
285
-            this.pageArr.push(this.info.order_infos.length)
286
-            console.log('this.pageArr',this.pageArr)
287
-        }else if(this.info.order_infos.length > 13){
288
-            this.page = parseInt(this.info.order_infos.length / 13)
289
-            let num = this.info.order_infos.length % 13
290
-            for (var i=0;i<this.page;i++){
291
-                this.pageArr.push(13)
292
-            }
293
-            if(num != 0){
294
-                this.pageArr.push(num)
295
-            }
389
+        if(this.paramsObj.balance_accounts_type != 2){
390
+          this.page = 1
391
+          this.pageArr = []
392
+          if(this.info.order_infos.length <= 13){
393
+              this.page = 1
394
+              this.pageArr.push(this.info.order_infos.length)
395
+              console.log('this.pageArr',this.pageArr)
396
+          }else if(this.info.order_infos.length > 13){
397
+              this.page = parseInt(this.info.order_infos.length / 13)
398
+              let num = this.info.order_infos.length % 13
399
+              for (var i=0;i<this.page;i++){
400
+                  this.pageArr.push(13)
401
+              }
402
+              if(num != 0){
403
+                  this.pageArr.push(num)
404
+              }
405
+          }
406
+        }else{
407
+          this.page = 1
408
+          this.pageArr = []
409
+          if(this.balanceAccounts.order_info.length <= 13){
410
+              this.page = 1
411
+              this.pageArr.push(this.balanceAccounts.order_info.length)
412
+              console.log('this.pageArr',this.pageArr)
413
+          }else if(this.balanceAccounts.order_info.length > 13){
414
+              this.page = parseInt(this.balanceAccounts.order_info.length / 13)
415
+              let num = this.balanceAccounts.order_info.length % 13
416
+              for (var i=0;i<this.page;i++){
417
+                  this.pageArr.push(13)
418
+              }
419
+              if(num != 0){
420
+                  this.pageArr.push(num)
421
+              }
422
+          }
423
+        }
424
+        
425
+      },
426
+      getTime(value, temp) {
427
+        if (value != undefined) {
428
+          return uParseTime(value, temp)
296 429
         }
430
+        return ''
297 431
       }
298 432
     },
299 433
     created() {
@@ -306,7 +440,11 @@
306 440
             this.getPage()
307 441
         },
308 442
         deep: true,
309
-      }
443
+      },
444
+      balanceAccounts(){
445
+        this.getPage()
446
+      },
447
+      deep: true
310 448
     }
311 449
 
312 450
   }

+ 37 - 6
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Bestand weergeven

@@ -2655,7 +2655,7 @@
2655 2655
 
2656 2656
       comfirm() {
2657 2657
 
2658
-        if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
2658
+        if (this.curDrugs.length > 0) {
2659 2659
           if (this.$store.getters.xt_user.org_id == 10138) {
2660 2660
             for (let i = 0; i < this.curDrugs.length; i++) {
2661 2661
               if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
@@ -2666,8 +2666,35 @@
2666 2666
             }
2667 2667
           }
2668 2668
         }
2669
+        if (this.teamList.length > 0) {
2670
+          if (this.$store.getters.xt_user.org_id == 10138) {
2671
+            for (let i = 0; i < this.teamList.length; i++) {
2672
+              if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
2673
+                this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
2674
+                // return
2675
+              }
2669 2676
 
2670
-        if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
2677
+            }
2678
+          }
2679
+          
2680
+          if(this.$store.getters.xt_user.org_id == 10138){
2681
+            let arr = this.teamList
2682
+            let newArr = []
2683
+            arr.map(item => {
2684
+              if(this.curPrescriptions.med_type != 14){
2685
+                newArr.push(item)
2686
+              }
2687
+              if(this.curPrescriptions.med_type == 14 && item.is_special_diseases == 1){
2688
+                newArr.push(item)
2689
+              }
2690
+            })
2691
+            this.teamList = newArr
2692
+          }
2693
+        }
2694
+        
2695
+        
2696
+
2697
+        if (this.curDrugs.length == 0) {
2671 2698
           if (this.$store.getters.xt_user.org_id == 10138) {
2672 2699
             for (let i = 0; i < this.curDrugs.length; i++) {
2673 2700
               if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
@@ -2911,7 +2938,8 @@
2911 2938
                 cus_total: 1,
2912 2939
                 unit: project[i].unit,
2913 2940
                 type: 2,
2914
-                total: project[i].total
2941
+                total: project[i].total,
2942
+                is_special_diseases: project[i].disease_directory
2915 2943
               }
2916 2944
 
2917 2945
               this.tabProject.push(obj)
@@ -2933,7 +2961,8 @@
2933 2961
                 medical_code: good_info[i].medical_insurance_number,
2934 2962
                 unit: this.getGoodUnit(good_info[i].good_unit),
2935 2963
                 type: 3,
2936
-                total: good_info[i].total
2964
+                total: good_info[i].total,
2965
+                is_special_diseases: good_info[i].is_special_diseases
2937 2966
               }
2938 2967
               this.tabProject.push(obj)
2939 2968
             }
@@ -3027,7 +3056,8 @@
3027 3056
                   remark: '',
3028 3057
                   medical_code: project[i].project.medical_code,
3029 3058
                   unit: project[i].project.unit,
3030
-                  type: project[i].type
3059
+                  type: project[i].type,
3060
+                  is_special_diseases: project[i].project.disease_directory
3031 3061
                 }
3032 3062
                 if (obj.cus_total == 0 || obj.cus_total == undefined) {
3033 3063
                   obj.cus_total = 1
@@ -3056,7 +3086,8 @@
3056 3086
                   remark: '',
3057 3087
                   medical_code: project[i].good_info.medical_insurance_number,
3058 3088
                   unit: project[i].good_info.unit,
3059
-                  type: project[i].type
3089
+                  type: project[i].type,
3090
+                  is_special_diseases: project[i].good_info.is_special_diseases
3060 3091
                 }
3061 3092
                 if (obj.cus_total == 0 || obj.cus_total == undefined) {
3062 3093
                   obj.cus_total = 1

+ 162 - 60
src/xt_pages/stock/drugs/drugDamaged.vue Bestand weergeven

@@ -41,8 +41,8 @@
41 41
             <div>
42 42
                 <el-button size="small" type="primary" @click="dialogVisible = true">新增</el-button>
43 43
                 <el-button size="small" type="primary" @click="toCheck">核对</el-button>
44
-                <el-button size="small" type="primary" @click="print">打印</el-button>
45
-                <el-button size="small" type="primary">导出</el-button>
44
+                <!-- <el-button size="small" type="primary" @click="print">打印</el-button>
45
+                <el-button size="small" type="primary">导出</el-button> -->
46 46
             </div>
47 47
         </div>
48 48
         <el-table :data="tableList" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"  @selection-change="changePrice">
@@ -57,6 +57,16 @@
57 57
                   {{getTime(scope.row.start_time)}}
58 58
                 </template>
59 59
             </el-table-column>
60
+            <el-table-column prop="name" label="药品名称" align="center">
61
+               <template slot-scope="scope">
62
+                  {{scope.row.drug_name}}
63
+                </template>
64
+            </el-table-column>
65
+            <el-table-column prop="name" label="规格" align="center">
66
+               <template slot-scope="scope">
67
+                  {{scope.row.specification_name}}
68
+                </template>
69
+            </el-table-column>
60 70
             <el-table-column prop="name" label="报损数量" align="center">
61 71
                <template slot-scope="scope">
62 72
                   {{scope.row.count}}
@@ -83,7 +93,7 @@
83 93
                 <span v-if="scope.row.checker_status == 2">未核对</span>
84 94
               </template>   
85 95
             </el-table-column>
86
-            <el-table-column label="操作" align="center">
96
+            <el-table-column label="操作" align="center" width="200">
87 97
                 <template slot-scope="scope">
88 98
                   <el-button type="primary" size="small" @click="moDrugDamage(scope.row.id,scope.row.checker_status)">编辑</el-button>
89 99
                   <el-button type="danger" size="small" @click="deleteDrugDamage(scope.row.id,scope.row.checker_status,scope.$index)">删除</el-button>
@@ -102,12 +112,12 @@
102 112
         </el-pagination>
103 113
     </div>
104 114
     <el-dialog
105
-        title="库房报损"
115
+        title="药品报损"
106 116
         :visible.sync="dialogVisible"
107 117
         width="1200px">
108 118
         <el-form :model="form" class="modifyDialog" label-width="120px">
109 119
             <el-form-item label="药品ID">
110
-                <el-input v-model="form.drug_id"></el-input>
120
+                <el-input v-model="form.drug_id" :disabled="true"></el-input>
111 121
             </el-form-item>
112 122
             <el-form-item label="药品名称">
113 123
               <el-autocomplete
@@ -119,7 +129,7 @@
119 129
                   placeholder="请输入药品名称"
120 130
                   @select="handleSelect"
121 131
                   @input="changeGoodName(scope.$index)"
122
-                  style="width:160px;"
132
+                  style="width:260px;"
123 133
                   >
124 134
                   <i class="el-icon-search el-input__icon" slot="suffix"></i>
125 135
                   <template slot-scope="{ item }">
@@ -140,36 +150,28 @@
140 150
             </el-form-item>
141 151
          
142 152
             <el-form-item label="单位">
143
-                <el-input v-model="form.warehousing_unit"></el-input>
144
-              <!-- <el-select v-model="scope.row.warehousing_unit" filterable placeholder="请选择单位" style="width:80px">
145
-                <el-option
146
-                  v-for="(option, index) in unitList"
147
-                  :key="index"
148
-                  :label="option.name"
149
-                  :value="option.name">
150
-                </el-option>
151
-              </el-select> -->
153
+                <el-input v-model="form.warehousing_unit" :disabled="true"></el-input>
152 154
             </el-form-item>
153 155
             <el-form-item label="进货价">
154
-                <el-input v-model="form.last_price"></el-input>
156
+                <el-input v-model="form.last_price" :disabled="true"></el-input>
155 157
             </el-form-item>
156 158
             <el-form-item label="零售价">
157
-                <el-input v-model="form.retail_price"></el-input>
159
+                <el-input v-model="form.retail_price" :disabled="true"></el-input>
158 160
             </el-form-item>
159 161
             <el-form-item label="报损数量">
160 162
                 <el-input v-model="form.count"></el-input>
161 163
             </el-form-item>
162 164
             <el-form-item label="库存">
163
-                <el-input v-model="form.total"></el-input>
165
+                <el-input v-model="form.total" :disabled="true" ></el-input>
164 166
             </el-form-item>
165 167
             <el-form-item label="产地">
166
-                <el-input v-model="form.drug_origin_place"></el-input>
168
+                <el-input v-model="form.drug_origin_place" :disabled="true"></el-input>
167 169
             </el-form-item>
168 170
             <el-form-item label="批准文号">
169
-                <el-input v-model="form.number"></el-input>
171
+                <el-input v-model="form.number" :disabled="true"></el-input>
170 172
             </el-form-item>
171 173
             <el-form-item label="生产厂商">
172
-                <el-input v-model="form.manufacturer"></el-input>
174
+                <el-input v-model="form.manufacturer" :disabled="true"></el-input>
173 175
             </el-form-item>
174 176
             <el-form-item label="备注">
175 177
                 <div style="display:flex;">
@@ -214,11 +216,7 @@
214 216
                 {{scope.row.retail_price}}
215 217
               </template>
216 218
             </el-table-column>
217
-            <!-- <el-table-column prop="name" label="新零售价" width="100" align="center">
218
-                <template slot-scope="scope">
219
-                {{scope.row.new_price}}
220
-               </template>
221
-            </el-table-column> -->
219
+        
222 220
             <el-table-column  prop="name"  label="生产厂商"  width="100" align="center">
223 221
               <template slot-scope="scope">
224 222
                 {{scope.row.manufacturer}}
@@ -245,7 +243,7 @@
245 243
             label="操作">
246 244
                 <template slot-scope="scope">
247 245
                     <el-button type="text" size="small" @click="toDel(scope.$index)">删除</el-button>
248
-                    <el-button type="text" size="small" @click="toEdit(scope.row)">编辑</el-button>
246
+                    <el-button type="text" size="small" @click="toEdit(scope.row,scope.$index)">编辑</el-button>
249 247
                 </template>
250 248
             </el-table-column>
251 249
         </el-table>
@@ -257,7 +255,7 @@
257 255
    
258 256
 
259 257
     <el-dialog
260
-        title="耗材盘点核对"
258
+        title="药品盘点核对"
261 259
         :visible.sync="checkDialogVisible"
262 260
         width="30%"
263 261
         >
@@ -305,7 +303,7 @@
305 303
         width="1200px">
306 304
         <el-form :model="form" class="modifyDialog" label-width="120px">
307 305
             <el-form-item label="药品ID">
308
-                <el-input v-model="form.drug_id"></el-input>
306
+                <el-input v-model="form.drug_id" :disabled="true"></el-input>
309 307
             </el-form-item>
310 308
             <el-form-item label="药品名称">
311 309
             <el-autocomplete
@@ -325,37 +323,46 @@
325 323
                 </template>
326 324
                 </el-autocomplete>  
327 325
             </el-form-item>
328
-            <!-- <el-form-item label="规格">
329
-                <el-input v-model="form.name"></el-input>
330
-            </el-form-item> -->
326
+            <el-form-item label="批次">
327
+               <el-select v-model="form.batch_number" filterable placeholder="请选择" @change="changeNumber">
328
+                  <el-option
329
+                    v-for="(item,index) in numberList"
330
+                    :key="index"
331
+                    :label="item.batch_number"
332
+                    :value="item.id">
333
+                  </el-option>
334
+               </el-select>
335
+            </el-form-item>
336
+            <el-form-item label="规格">
337
+                <el-input v-model="form.specification_name" :disabled="true"></el-input>
338
+            </el-form-item>
331 339
             <el-form-item label="单位">
332
-                <el-input v-model="form.warehousing_unit"></el-input>
340
+                <el-input v-model="form.warehousing_unit" :disabled="true"></el-input>
333 341
             </el-form-item>
334 342
             <el-form-item label="进货价">
335
-                <el-input v-model="form.last_price"></el-input>
343
+                <el-input v-model="form.last_price" :disabled="true"></el-input>
336 344
             </el-form-item>
337 345
             <el-form-item label="零售价">
338
-                <el-input v-model="form.retail_price"></el-input>
346
+                <el-input v-model="form.retail_price" :disabled="true"></el-input>
339 347
             </el-form-item>
340 348
             <el-form-item label="报损数量">
341 349
                 <el-input v-model="form.count"></el-input>
342 350
             </el-form-item>
343 351
             <el-form-item label="库存">
344
-                <el-input v-model="form.total"></el-input>
352
+                <el-input v-model="form.total" :disabled="true"></el-input>
345 353
             </el-form-item>
346 354
             <el-form-item label="产地">
347
-                <el-input v-model="form.drug_origin_place"></el-input>
355
+                <el-input v-model="form.drug_origin_place" :disabled="true"></el-input>
348 356
             </el-form-item>
349 357
             <el-form-item label="批准文号">
350
-                <el-input v-model="form.number"></el-input>
358
+                <el-input v-model="form.number" :disabled="true"></el-input>
351 359
             </el-form-item>
352 360
             <el-form-item label="生产厂商">
353
-                <el-input v-model="form.manufacturer"></el-input>
361
+                <el-input v-model="form.manufacturer" :disabled="true"></el-input>
354 362
             </el-form-item>
355 363
             <el-form-item label="备注">
356 364
                 <div style="display:flex;">
357 365
                     <el-input v-model="form.remark"></el-input>
358
-                    <el-button style="margin-left:5px;" type="primary" @click="addPrice">添加</el-button>
359 366
                 </div>
360 367
             </el-form-item>
361 368
         </el-form>
@@ -373,7 +380,7 @@
373 380
         width="1200px">
374 381
         <el-form :model="form" class="modifyDialog" label-width="120px">
375 382
             <el-form-item label="药品ID">
376
-                <el-input v-model="form.drug_id"></el-input>
383
+                <el-input v-model="form.drug_id" :disabled="true"></el-input>
377 384
             </el-form-item>
378 385
             <el-form-item label="药品名称">
379 386
             <el-autocomplete
@@ -397,33 +404,32 @@
397 404
                 <el-input v-model="form.name"></el-input>
398 405
             </el-form-item> -->
399 406
             <el-form-item label="单位">
400
-                <el-input v-model="form.warehousing_unit"></el-input>
407
+                <el-input v-model="form.warehousing_unit" :disabled="true"></el-input>
401 408
             </el-form-item>
402 409
             <el-form-item label="进货价">
403
-                <el-input v-model="form.last_price"></el-input>
410
+                <el-input v-model="form.last_price" :disabled="true"></el-input>
404 411
             </el-form-item>
405 412
             <el-form-item label="零售价">
406
-                <el-input v-model="form.retail_price"></el-input>
413
+                <el-input v-model="form.retail_price" :disabled="true"></el-input>
407 414
             </el-form-item>
408 415
             <el-form-item label="报损数量">
409 416
                 <el-input v-model="form.count"></el-input>
410 417
             </el-form-item>
411 418
             <el-form-item label="库存">
412
-                <el-input v-model="form.total"></el-input>
419
+                <el-input v-model="form.total" :disabled="true"></el-input>
413 420
             </el-form-item>
414 421
             <el-form-item label="产地">
415
-                <el-input v-model="form.drug_origin_place"></el-input>
422
+                <el-input v-model="form.drug_origin_place" :disabled="true"></el-input>
416 423
             </el-form-item>
417 424
             <el-form-item label="批准文号">
418
-                <el-input v-model="form.number"></el-input>
425
+                <el-input v-model="form.number" :disabled="true"></el-input>
419 426
             </el-form-item>
420 427
             <el-form-item label="生产厂商">
421
-                <el-input v-model="form.manufacturer"></el-input>
428
+                <el-input v-model="form.manufacturer" :disabled="true"></el-input>
422 429
             </el-form-item>
423 430
             <el-form-item label="备注">
424 431
                 <div style="display:flex;">
425 432
                     <el-input v-model="form.remark"></el-input>
426
-                    <el-button style="margin-left:5px;" type="primary" @click="addPrice">添加</el-button>
427 433
                 </div>
428 434
             </el-form-item>
429 435
         </el-form>
@@ -439,7 +445,7 @@
439 445
 
440 446
 <script>
441 447
 import BreadCrumb from "../../components/bread-crumb";
442
-import { postSearchDrugWarehouseList,saveDrugDamage,getDrugDamageList,SaveDrugDamagePrice,getDrugDamageDetail,modifyDrugDamage,deleteDrugDamage,getDrugWarehouseInfoList } from "@/api/drug/drug"
448
+import { postSearchDrugWarehouseList,saveDrugDamage,getDrugDamageList,SaveDrugDamagePrice,getDrugDamageDetail,modifyDrugDamage,deleteDrugDamage,getDrugWarehouseInfoList,getDrugWarehouseInfoTotal } from "@/api/drug/drug"
443 449
 import { getDrugBatchNumber } from  "@/api/drug/drug_stock"
444 450
 import { uParseTime } from '@/utils/tools'
445 451
 export default {
@@ -488,6 +494,8 @@ export default {
488 494
                 warehouse_info_id:"",
489 495
                 expiry_date:"",
490 496
                 product_date:"",
497
+                stock_max_number:"",
498
+                stock_min_number:"",
491 499
             },
492 500
             drugList:[],
493 501
             manufacturerList:[],
@@ -508,11 +516,12 @@ export default {
508 516
             modifyDialogVisible:false,
509 517
             id:"",
510 518
             numberList:[],
519
+            index:0,
511 520
         }
512 521
     },
513 522
     methods:{
514 523
         search(){
515
-
524
+          this.getlist()
516 525
         },
517 526
         print(){
518 527
           if(this.ids == ""){
@@ -596,14 +605,17 @@ export default {
596 605
                 this.form.dealer = val.dealer
597 606
                 this.form.manufacturer = val.manufacturer
598 607
                 this.form.remark = val.remark
599
-                this.form.warehousing_unit = val.max_unit  
600
-                this.form.total = this.getTotal(total,val.max_unit,val.min_unit,val.min_number)
601
-                this.form.batch_number = val.batch_number
608
+                this.form.warehousing_unit = val.max_unit 
609
+                this.form.total = "" 
610
+                // this.form.total = this.getTotal(total,val.max_unit,val.min_unit,val.min_number)
611
+                // this.form.batch_number = val.batch_number
602 612
                 this.form.last_price = val.last_price
603 613
                 this.form.expiry_date = val.expiry_date
604 614
                 this.form.product_date = val.product_date
605 615
                 this.form.specification_name =  val.dose + val.dose_unit +"*"+val.min_number+val.min_unit+"/"+val.max_unit
606 616
                 this.form.drug_origin_place = val.drug_origin_place
617
+                this.form.batch_number = ""
618
+                this.form.total = ""
607 619
              }
608 620
            }) 
609 621
         },
@@ -629,6 +641,7 @@ export default {
629 641
         changeNumber(val){
630 642
           console.log("val",val)
631 643
           this.form.warehousing_info_id = val
644
+          this.getDrugWarehouseInfoTotal(val)
632 645
         },
633 646
         getDrugBatchNumber(id){
634 647
             var params = {
@@ -653,6 +666,19 @@ export default {
653 666
          }
654 667
         },
655 668
         addPrice(){
669
+          console.log("批次号",this.form.batch_number)
670
+          if(this.form.drug_name == ""){
671
+             this.$message.error("请输入药品名称")
672
+             return
673
+          }
674
+          if(this.form.batch_number == ""){
675
+            this.$message.error("请选择批次号")
676
+            return false
677
+          }
678
+          if(this.form.count == ""){
679
+             this.$message.error("请输入报损数量")
680
+             return false
681
+          }
656 682
           var obj = {
657 683
             drug_id:this.form.drug_id,
658 684
             drug_name:this.form.drug_name,
@@ -674,7 +700,10 @@ export default {
674 700
             specification_name:this.form.specification_name,
675 701
             drug_origin_place:this.form.drug_origin_place,
676 702
             warehousing_info_id:this.form.warehousing_info_id,
677
-            batch_number:this.form.batch_number
703
+            batch_number:this.form.batch_number,
704
+            stock_max_number:this.form.stock_max_number,
705
+            stock_min_number:this.form.stock_min_number,
706
+            total:this.form.total,
678 707
           } 
679 708
           this.tableData.push(obj)   
680 709
           this.form.drug_name = ""
@@ -694,15 +723,25 @@ export default {
694 723
           this.form.product_date = ""
695 724
           this.form.specification_name = ""
696 725
           this.form.drug_origin_place = "" 
726
+          this.form.total = ""
697 727
         },
698 728
         saveDrugDamage(){
699
-          console.log("hhhh",this.tableData)
700
-          console.log("oooo",this.numberList)
729
+        
701 730
           for(let i=0;i<this.tableData.length;i++){
702 731
               this.tableData[i].retail_price = this.tableData[i].retail_price.toString()
703 732
               this.tableData[i].last_price = this.tableData[i].last_price.toString()
704 733
               this.tableData[i].new_price = this.tableData[i].new_price.toString()
705 734
               this.tableData[i].count =  parseInt(this.tableData[i].count)
735
+              if(this.tableData[i].stock_max_number == ""){
736
+                this.tableData[i].stock_max_number = 0
737
+              }else{
738
+                this.tableData[i].stock_max_number = parseInt(this.tableData[i].stock_max_number)
739
+              }
740
+              if(this.tableData[i].stock_min_number == ""){
741
+                this.tableData[i].stock_min_number = 0
742
+              }else{
743
+                this.tableData[i].stock_min_number = parseInt(this.tableData[i].stock_min_number)
744
+              }
706 745
               if(this.tableData[i].expiry_date == undefined){
707 746
                 this.tableData[i].expiry_date  = 0
708 747
               }else{
@@ -723,7 +762,7 @@ export default {
723 762
             tableData:this.tableData,
724 763
           }
725 764
           console.log("parasm222",params)
726
- 
765
+   
727 766
         saveDrugDamage(params).then(response=>{
728 767
             if(response.data.state == 1){
729 768
             var msg =  response.data.data.msg
@@ -741,6 +780,7 @@ export default {
741 780
           page:this.page, 
742 781
           start_time:this.start_time,
743 782
           end_time:this.end_time,
783
+          keyword:this.searchKey,
744 784
         }
745 785
         getDrugDamageList(params).then(response=>{
746 786
            if(response.data.state == 1){
@@ -798,7 +838,8 @@ export default {
798 838
      toDel(index){
799 839
        this.tableList.splice(index,1)
800 840
      },
801
-     toEdit(val){
841
+     toEdit(val,index){
842
+       this.index = index
802 843
        this.form.drug_name = val.drug_name
803 844
        this.form.drug_origin_place = val.drug_origin_place
804 845
        this.form.last_price = val.last_price
@@ -810,6 +851,10 @@ export default {
810 851
        this.form.remark = val.remark
811 852
        this.form.id = val.id
812 853
        this.form.count = val.count
854
+       this.form.specification_name = val.specification_name
855
+       this.form.warehousing_unit = val.warehousing_unit
856
+       this.form.stock_max_number = val.stock_max_number
857
+       this.form.stock_min_number = val.stock_min_number,
813 858
        this.editDialogVisible = true
814 859
      },
815 860
      EditDrugDamage(){
@@ -823,6 +868,24 @@ export default {
823 868
             this.tableData[i].retail_price = this.form.retail_price
824 869
             this.tableData[i].remark = this.form.remark
825 870
             this.tableData[i].count = this.form.count
871
+            this.tableData[i].stock_max_number = this.form.stock_max_number
872
+            this.tableData[i].stock_min_number = this.form.stock_min_number
873
+            this.tableData[i].manufacturer = this.form.manufacturer
874
+            this.tableData[i].dealer = this.form.dealer
875
+          }
876
+          if(this.index == i){
877
+            this.tableData[i].drug_name = this.form.drug_name
878
+            this.tableData[i].drug_origin_place = this.form.drug_origin_place
879
+            this.tableData[i].last_price = this.form.last_price
880
+            this.tableData[i].new_price = this.form.new_price
881
+            this.tableData[i].number = this.form.number
882
+            this.tableData[i].retail_price = this.form.retail_price
883
+            this.tableData[i].remark = this.form.remark
884
+            this.tableData[i].count = this.form.count
885
+            this.tableData[i].stock_max_number = this.form.stock_max_number
886
+            this.tableData[i].stock_min_number = this.form.stock_min_number
887
+            this.tableData[i].manufacturer = this.form.manufacturer
888
+            this.tableData[i].dealer = this.form.dealer
826 889
           }
827 890
        }
828 891
        this.editDialogVisible = false
@@ -844,6 +907,7 @@ export default {
844 907
        getDrugDamageDetail(id).then(response=>{
845 908
          if(response.data.state ==1){
846 909
            var detail = response.data.data.detail
910
+           console.log("系准给",detail)
847 911
            this.form.drug_id = detail.drug_id
848 912
            this.form.drug_name = detail.drug_name
849 913
            this.form.drug_origin_place = detail.drug_origin_place
@@ -855,12 +919,26 @@ export default {
855 919
            this.form.remark = detail.remark
856 920
            this.form.count = detail.count
857 921
            this.id = detail.id
858
-           this.form.warehousing_unit = detail.warehouseing_unit
922
+           this.form.warehousing_unit = detail.warehousing_unit
923
+           this.form.stock_max_number = detail.stock_max_number
924
+           this.form.stock_min_number = detail.stock_min_number
925
+           this.form.total = detail.total
926
+           this.form.warehousing_info_id = detail.warehousing_info_id
859 927
            this.modifyDialogVisible = true
860 928
          }
861 929
        })
862 930
      },
863 931
      modifyDrugDamage(){
932
+       if(this.form.stock_max_number == ""){
933
+         this.form.stock_max_number = 0
934
+       }else{
935
+         this.form.stock_max_number = parseInt(this.form.stock_max_number)
936
+       }
937
+       if(this.form.stock_min_number == ""){
938
+         this.form.stock_min_number = 0
939
+       }else{
940
+         this.form.stock_min_number = parseInt(this.form.stock_min_number)
941
+       }
864 942
          var params = {
865 943
            drug_id:this.form.drug_id,
866 944
            drug_name:this.form.drug_name,
@@ -874,6 +952,9 @@ export default {
874 952
            count:parseInt(this.form.count),
875 953
            warehousing_unit:this.form.warehousing_unit,
876 954
            id:this.id,
955
+           total:this.form.total,
956
+           stock_max_number:this.form.stock_max_number,
957
+           stock_min_number:this.form.stock_min_number,
877 958
          }
878 959
        modifyDrugDamage(params).then(response=>{
879 960
           if(response.data.state == 1){
@@ -916,6 +997,27 @@ export default {
916 997
      changeEndTime(val){
917 998
        this.end_time = this.getTime(val)
918 999
        this.getlist()
1000
+     },
1001
+     getDrugWarehouseInfoTotal(val){
1002
+        var params = {
1003
+          id:val,
1004
+        }
1005
+      getDrugWarehouseInfoTotal(params).then(response=>{
1006
+         if(response.data.state == 1){
1007
+           var list = response.data.data.list
1008
+           console.log("list",list)
1009
+          //  this.form.total = list.stock_max_number + list.XtBaseDrug.max_unit + list.stock_min_number + list.XtBaseDrug.min_unit
1010
+          if(list.stock_max_number > 0){
1011
+            this.form.total = list.stock_max_number + list.XtBaseDrug.max_unit
1012
+            this.form.stock_max_number = list.stock_max_number
1013
+          }
1014
+          if(list.stock_min_number >0 ){
1015
+            this.form.total = list.stock_min_number + list.XtBaseDrug.min_unit
1016
+            this.form.stock_min_number = list.stock_min_number
1017
+          }
1018
+          
1019
+         }
1020
+      })
919 1021
      }
920 1022
     },
921 1023
     created(){

+ 106 - 37
src/xt_pages/stock/drugs/drugModifyPrice.vue Bestand weergeven

@@ -55,28 +55,38 @@
55 55
                     {{scope.row.warehousing_order}}
56 56
                   </template>
57 57
                 </el-table-column>
58
-                <el-table-column prop="date" label="调价日期" width="200px"  align="center">
58
+                <el-table-column prop="date" label="调价日期" width="150px"  align="center">
59 59
                    <template slot-scope="scope">
60 60
                     {{getTime(scope.row.start_time)}}
61 61
                   </template>  
62 62
                 </el-table-column>
63
-                 <el-table-column prop="date" label="现价格" width="200px"  align="center">
63
+                <el-table-column prop="date" label="药品名称" width="200px"  align="center">
64
+                   <template slot-scope="scope">
65
+                    {{scope.row.drug_name}}
66
+                  </template>  
67
+                </el-table-column>
68
+                <el-table-column prop="date" label="药品规格" width="100px"  align="center">
69
+                   <template slot-scope="scope">
70
+                    {{scope.row.specification_name}}
71
+                  </template>  
72
+                </el-table-column>
73
+                 <el-table-column prop="date" label="现价格" width="100px"  align="center">
64 74
                    <template slot-scope="scope">
65 75
                     {{scope.row.new_price}}
66 76
                   </template>  
67 77
                 </el-table-column>
68
-                <el-table-column prop="name" label="操作人" width="200px"  align="center">
78
+                <el-table-column prop="name" label="操作人" width="100px"  align="center">
69 79
                  <template slot-scope="scope">
70 80
                     {{getDoctorName(scope.row.creater)}}
71 81
                   </template>  
72 82
                 </el-table-column>
73
-                <el-table-column prop="name" label="状态"  align="center">
83
+                <el-table-column prop="name" label="状态"  align="center" width="100px">
74 84
                   <template slot-scope="scope">
75 85
                      <span v-if="scope.row.checker_status == 1">已核对</span>
76 86
                      <span v-if="scope.row.checker_status == 2">未核对</span>
77 87
                   </template>  
78 88
                 </el-table-column>
79
-                <el-table-column prop="name" label="核对人"  align="center">
89
+                <el-table-column prop="name" label="核对人"  align="center" width="100px">
80 90
                   <template slot-scope="scope">
81 91
                     {{getDoctorName(scope.row.checker)}}
82 92
                   </template>  
@@ -102,7 +112,7 @@
102 112
         </div>
103 113
     </div>
104 114
     <el-dialog
105
-        title="库房调价"
115
+        title="药品调价"
106 116
         :visible.sync="dialogVisible"
107 117
         width="1200px">
108 118
         <el-form :model="form" class="modifyDialog" label-width="120px">
@@ -117,7 +127,7 @@
117 127
                     placeholder="请输入药品名称"
118 128
                     @select="handleSelect"
119 129
                     @input="changeGoodName(scope.$index)"
120
-                    style="width:160px;"
130
+                    style="width:300px;"
121 131
                   >
122 132
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
123 133
                   <template slot-scope="{ item }">
@@ -126,7 +136,7 @@
126 136
                  </el-autocomplete>  
127 137
             </el-form-item>
128 138
             <el-form-item label="原价格">
129
-                <el-input v-model="form.retail_price"></el-input>
139
+                <el-input v-model="form.retail_price" :disabled="true"></el-input>
130 140
             </el-form-item>
131 141
             <el-form-item label="现价格">
132 142
                 <el-input v-model="form.new_price"></el-input>
@@ -142,22 +152,22 @@
142 152
             </el-form-item>
143 153
         </el-form>
144 154
         <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
145
-            <el-table-column prop="date" label="单据编号" width="100">
155
+            <el-table-column prop="date" label="单据编号" width="100" align="center">
146 156
                <template slot-scope="scope">
147 157
                  {{scope.row.warehousing_order}}
148 158
                 </template>  
149 159
             </el-table-column>
150
-            <el-table-column prop="date"label="药品名称" width="100">
160
+            <el-table-column prop="date"label="药品名称" width="100" align="center">
151 161
               <template slot-scope="scope">
152 162
                  {{scope.row.drug_name}}
153 163
                 </template>  
154 164
             </el-table-column>
155
-            <el-table-column prop="name"label="规格" width="100">
165
+            <el-table-column prop="name"label="规格" width="100" align="center">
156 166
               <template slot-scope="scope">
157
-                  {{scope.row.dose}}{{scope.row.dose_unit}}*{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
167
+                 {{scope.row.specification_name}}
158 168
               </template>
159 169
             </el-table-column>
160
-            <el-table-column prop="name" label="单位" width="100">
170
+            <el-table-column prop="name" label="单位" width="100" align="center">
161 171
               <template slot-scope="scope">
162 172
               {{scope.row.warehousing_unit}}
163 173
               </template>
@@ -167,37 +177,37 @@
167 177
               {{scope.row.count}}
168 178
               </template>
169 179
             </el-table-column> -->
170
-            <el-table-column prop="name" label="原进货价" width="100">
180
+            <el-table-column prop="name" label="原进货价" width="100" align="center">
171 181
                 <template slot-scope="scope">
172 182
                 {{scope.row.retail_price}}
173 183
                 </template>
174 184
             </el-table-column>
175
-            <el-table-column prop="name" label="原零售价" width="100">
185
+            <el-table-column prop="name" label="原零售价" width="100" align="center">
176 186
                  <template slot-scope="scope">
177 187
                   {{scope.row.retail_price}}
178 188
                 </template>
179 189
             </el-table-column>
180
-            <el-table-column  prop="name" label="新零售价" width="100">
190
+            <el-table-column  prop="name" label="新零售价" width="100" align="center">
181 191
                 <template slot-scope="scope">
182 192
                   {{scope.row.new_price}}
183 193
                 </template>  
184 194
             </el-table-column>
185
-            <el-table-column prop="name" label="生产厂商" width="100">
195
+            <el-table-column prop="name" label="生产厂商" width="100" align="center">
186 196
                 <template slot-scope="scope">
187 197
                   {{scope.row.manufacturer}}
188 198
                 </template>   
189 199
             </el-table-column>
190
-            <el-table-column prop="name" label="批准文号" width="100">
200
+            <el-table-column prop="name" label="批准文号" width="100" align="center">
191 201
                  <template slot-scope="scope">
192 202
                   {{scope.row.number}}
193 203
                 </template>    
194 204
             </el-table-column>
195
-            <el-table-column prop="name" label="供应商" width="100">
205
+            <el-table-column prop="name" label="经销商" width="100" align="center">
196 206
                 <template slot-scope="scope">
197
-                  {{scope.row.manufacturer}}
207
+                  {{scope.row.dealer}}
198 208
                 </template>    
199 209
             </el-table-column>
200
-            <el-table-column prop="name" label="备注"  width="100">
210
+            <el-table-column prop="name" label="备注"  width="100" align="center">
201 211
                <template slot-scope="scope">
202 212
                   {{scope.row.remark}}
203 213
                 </template>      
@@ -281,7 +291,7 @@
281 291
                     placeholder="请输入药品名称"
282 292
                     @select="handleSelect"
283 293
                     @input="changeGoodName(scope.$index)"
284
-                    style="width:160px;"
294
+                    style="width:300px;"
285 295
                   >
286 296
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
287 297
                   <template slot-scope="{ item }">
@@ -289,19 +299,25 @@
289 299
                   </template>
290 300
                  </el-autocomplete>  
291 301
               </el-form-item>
302
+               <el-form-item label="规格:">
303
+                 <el-input v-model="form.specification_name" style="width:200px" :disabled="true"></el-input>
304
+               </el-form-item>
292 305
                <el-form-item label="原价格:">
293
-                 <el-input v-model="form.retail_price" style="width:200px"></el-input>
306
+                 <el-input v-model="form.retail_price" style="width:200px" :disabled="true"></el-input>
294 307
                </el-form-item>
295 308
                <el-form-item label="现价格:">
296 309
                     <el-input v-model="form.new_price" style="width:200px"></el-input>
297 310
                 </el-form-item>
311
+                <el-form-item label="生产厂商:">
312
+                    <el-input v-model="form.manufacturer" style="width:200px" :disabled="true"></el-input>
313
+                </el-form-item>
314
+               <el-form-item label="经销商:">
315
+                    <el-input v-model="form.dealer" style="width:200px" :disabled="true"></el-input>
316
+                </el-form-item>
298 317
              </el-col> 
299 318
             </el-row>
300 319
             <el-row>
301 320
              <el-col>
302
-               <!-- <el-form-item label="调价数量:">
303
-                    <el-input v-model="form.count"  style="width:200px"></el-input>
304
-                </el-form-item> -->
305 321
                 <el-form-item label="备注:">
306 322
                     <div style="display:flex;">
307 323
                         <el-input v-model="form.remark"  style="width:200px"></el-input>
@@ -336,7 +352,7 @@
336 352
                     placeholder="请输入药品名称"
337 353
                     @select="handleSelect"
338 354
                     @input="changeGoodName(scope.$index)"
339
-                    style="width:160px;"
355
+                    style="width:200px;"
340 356
                   >
341 357
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
342 358
                   <template slot-scope="{ item }">
@@ -344,19 +360,31 @@
344 360
                   </template>
345 361
                  </el-autocomplete>  
346 362
               </el-form-item>
363
+               <el-form-item label="规格:">
364
+                 <el-input v-model="form.specification_name" style="width:200px" :disabled="true"></el-input>
365
+               </el-form-item>
366
+               <el-form-item label="单位:">
367
+                 <el-input v-model="form.warehousing_unit" style="width:200px" :disabled="true"></el-input>
368
+               </el-form-item>
347 369
                <el-form-item label="原价格:">
348
-                 <el-input v-model="form.retail_price" style="width:200px"></el-input>
370
+                 <el-input v-model="form.retail_price" style="width:200px" :disabled="true"></el-input>
349 371
                </el-form-item>
350 372
                <el-form-item label="现价格:">
351 373
                     <el-input v-model="form.new_price" style="width:200px"></el-input>
352 374
                 </el-form-item>
375
+                <el-form-item label="生产厂商:">
376
+                    <el-input v-model="form.manufacturer" style="width:200px" :disabled="true"></el-input>
377
+                </el-form-item>
378
+                <el-form-item label="批准文号:">
379
+                    <el-input v-model="form.number" style="width:200px" :disabled="true"></el-input>
380
+                </el-form-item>
381
+                <el-form-item label="经销商:">
382
+                    <el-input v-model="form.number" style="width:200px" :disabled="true"></el-input>
383
+                </el-form-item>
353 384
              </el-col> 
354 385
             </el-row>
355 386
             <el-row>
356 387
              <el-col>
357
-               <!-- <el-form-item label="调价数量:">
358
-                    <el-input v-model="form.count"  style="width:200px"></el-input>
359
-                </el-form-item> -->
360 388
                 <el-form-item label="备注:">
361 389
                     <div style="display:flex;">
362 390
                         <el-input v-model="form.remark"  style="width:200px"></el-input>
@@ -456,7 +484,16 @@ export default {
456 484
            }  
457 485
         },
458 486
         addPrice(){
487
+          if(this.form.drug_name == ""){
488
+            this.$message.error("请输入药品名称")
489
+            return
490
+          }
491
+          if(this.form.new_price == ""){
492
+            this.$message.error("请输入现价格")
493
+            return
494
+          }
459 495
           var obj = {
496
+            id:this.form.id,
460 497
             drug_id:this.form.drug_id,
461 498
             drug_name:this.form.drug_name,
462 499
             warehousing_unit:this.form.warehousing_unit,
@@ -471,7 +508,8 @@ export default {
471 508
             dealer:this.form.dealer,
472 509
             last_price:this.form.last_price,
473 510
             start_time:this.getTime(new Date()),
474
-            } 
511
+            specification_name:this.form.specification_name,
512
+          } 
475 513
           this.tableData.push(obj)     
476 514
         },
477 515
         querySearchAsync(keyword, cb) {
@@ -522,13 +560,19 @@ export default {
522 560
             this.form.retail_price = val.retail_price
523 561
             this.form.warehousing_order = val.warehousing_order
524 562
             this.form.number = val.number
525
-            this.form.dealer = val.dealer
563
+            if(val.dealer == 0){
564
+              this.form.dealer = ""
565
+            }else{
566
+               this.form.dealer = val.dealer
567
+            }
526 568
             this.form.manufacturer = val.manufacturer
527 569
             this.form.remark = val.remark
528
-            this.form.warehousing_unit = val.warehouseing_unit  
570
+            this.form.warehousing_unit = val.max_unit  
529 571
             this.form.total = val.total
530 572
             this.form.batch_number = val.batch_number
531 573
             this.form.last_price = val.last_price
574
+            this.form.specification_name =  val.dose + val.dose_unit +"*"+val.min_number+val.min_unit+"/"+val.max_unit
575
+            this.form.new_price = ""
532 576
         },
533 577
         getTime(val) {
534 578
          if(val < 0){
@@ -545,7 +589,7 @@ export default {
545 589
            this.tableData[i].retail_price = this.tableData[i].retail_price.toString()
546 590
            this.tableData[i].last_price = this.tableData[i].last_price.toString()
547 591
            this.tableData[i].new_price = this.tableData[i].new_price.toString()
548
-           this.tableData[i].count =  parseInt(this.tableData[i].count)
592
+          //  this.tableData[i].count =  parseInt(this.tableData[i].count)
549 593
            if(this.tableData[i].dealer == 0){
550 594
              this.tableData[i].dealer = ""
551 595
            }
@@ -633,12 +677,17 @@ export default {
633 677
        this.tableData.splice(index,1)
634 678
      },
635 679
      toEdit(row){
680
+      console.log("row2222",row)
636 681
       this.form.drug_name = row.drug_name
637 682
       this.form.retail_price = row.retail_price
638 683
       this.form.new_price = row.new_price
639
-      this.form.count = row.count
640 684
       this.form.remark = row.remark
641 685
       this.form.id = row.id
686
+      this.form.specification_name = row.specification_name
687
+      this.form.last_price = row.last_price
688
+      this.form.number = row.number
689
+      this.form.manufacturer = row.manufacturer
690
+      this.form.dealer = row.dealer
642 691
       this.editPriceDialogVisible = true  
643 692
      },
644 693
      upatePrice(){
@@ -649,6 +698,12 @@ export default {
649 698
             this.tableData[i].new_price = this.form.new_price
650 699
             this.tableData[i].count = this.form.count
651 700
             this.tableData[i].remark = this.form.remark
701
+         }else{
702
+           this.tableData[i].drug_name = this.form.drug_name
703
+           this.tableData[i].retail_price = this.form.retail_price
704
+           this.tableData[i].new_price - this.form.new_price
705
+           this.tableData[i].count = this.form.count
706
+           this.tableData[i].remark = this.form.remark
652 707
          }
653 708
        }
654 709
        this.editPriceDialogVisible = false
@@ -666,12 +721,20 @@ export default {
666 721
        getDrugModiftyPrice(id).then(response=>{
667 722
           if(response.data.state == 1){
668 723
              var detail = response.data.data.detail
724
+             console.log("detail",detail)
669 725
              this.form.drug_name = detail.drug_name
726
+             this.form.specification_name = detail.specification_name
727
+             this.form.last_price = detail.last_price
728
+             this.form.dealer = detail.dealer
729
+             this.form.manufacturer = detail.manufacturer
670 730
              this.form.retail_price = detail.retail_price
671 731
              this.form.new_price = detail.new_price
672 732
              this.form.count = detail.count
673 733
              this.form.remark = detail.remark
674 734
              this.id = detail.id
735
+             this.form.warehousing_unit = detail.warehousing_unit
736
+             this.form.number = detail.number
737
+             this.form.drug_id = detail.drug_id
675 738
              this.modifyPriceDialogVisible = true
676 739
           }
677 740
        })
@@ -679,12 +742,18 @@ export default {
679 742
      modifyDrugPrice(){
680 743
         var params = {
681 744
           drug_name:this.form.drug_name,
745
+          specification_name:this.form.specification_name,
746
+          warehousing_unit:this.form.warehousing_unit,
682 747
           retail_price:this.form.retail_price.toString(),
683 748
           new_price:this.form.new_price.toString(),
749
+          manufacturer:this.form.manufacturer,
750
+          number:this.form.number,
684 751
           count:parseInt(this.form.count),
685 752
           remark:this.form.remark,
686
-          id:this.id
753
+          id:this.id,
754
+          drug_id:this.form.drug_id,
687 755
         }
756
+      
688 757
       modifyDrugPrice(params).then(response=>{
689 758
          if(response.data.state == 1){
690 759
            var adjustPrice = response.data.data.adjustPrice

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue Bestand weergeven

@@ -352,7 +352,7 @@
352 352
         var count = 0
353 353
         for(let i=0;i<this.warehouseList.length;i++){
354 354
           if(id == this.warehouseList[i].warehousing_id){
355
-             count +=this.warehouseList[i].warehousing_count * this.warehouseList[i].last_price
355
+             count +=this.warehouseList[i].warehousing_count * this.warehouseList[i].price
356 356
           }
357 357
         }
358 358
         return count

+ 11 - 10
src/xt_pages/stock/drugs/inventory.vue Bestand weergeven

@@ -100,12 +100,12 @@
100 100
         >
101 101
         </el-pagination>
102 102
         <el-dialog
103
-        title="库房调价"
103
+        title="药品盘点"
104 104
         :visible.sync="dialogVisible"
105 105
         width="1200px">
106 106
             <el-form :model="form" class="modifyDialog" label-width="120px">
107
-                <el-form-item label="耗材ID">
108
-                    <el-input v-model="form.drug_id"></el-input>
107
+                <el-form-item label="药品ID">
108
+                    <el-input v-model="form.drug_id" :disabled="true"></el-input>
109 109
                 </el-form-item>
110 110
                 <el-form-item label="药品名称">
111 111
                   <el-autocomplete
@@ -139,13 +139,13 @@
139 139
                     <el-input v-model="form.specification_name" :disabled="true"></el-input>
140 140
                 </el-form-item>
141 141
                 <el-form-item label="单位">
142
-                    <el-input v-model="form.warehousing_unit"></el-input>
142
+                    <el-input v-model="form.warehousing_unit" :disabled="true"></el-input>
143 143
                 </el-form-item>
144 144
                 <el-form-item label="进货价">
145
-                    <el-input v-model="form.last_price"></el-input>
145
+                    <el-input v-model="form.last_price" :disabled="true"></el-input>
146 146
                 </el-form-item>
147 147
                 <el-form-item label="零售价">
148
-                    <el-input v-model="form.retail_price"></el-input>
148
+                    <el-input v-model="form.retail_price" :disabled="true"></el-input>
149 149
                 </el-form-item>
150 150
                 <el-form-item label="盘点数量">
151 151
                     <el-input v-model="form.count"></el-input>
@@ -154,13 +154,13 @@
154 154
                     <el-input v-model="form.total" :disabled="true"></el-input>
155 155
                 </el-form-item>
156 156
                 <el-form-item label="产地">
157
-                    <el-input v-model="form.drug_origin_place"></el-input>
157
+                    <el-input v-model="form.drug_origin_place" :disabled="true"></el-input>
158 158
                 </el-form-item>
159 159
                 <el-form-item label="批准文号">
160
-                    <el-input v-model="form.number"></el-input>
160
+                    <el-input v-model="form.number" :disabled="true"></el-input>
161 161
                 </el-form-item>
162 162
                 <el-form-item label="生产厂商">
163
-                    <el-input v-model="form.manufacturer"></el-input>
163
+                    <el-input v-model="form.manufacturer" :disabled="true"></el-input>
164 164
                 </el-form-item>
165 165
                 <el-form-item label="备注">
166 166
                     <div style="display:flex;">
@@ -594,6 +594,7 @@ export default {
594 594
          handleSelect(val){
595 595
            console.log("val233223232332",val)
596 596
            this.getDrugBatchNumber(val.drug_id)
597
+           
597 598
             var params = {
598 599
               id:val.drug_id
599 600
             }
@@ -993,7 +994,7 @@ export default {
993 994
              warehouse_info_id:this.form.warehouse_info_id,
994 995
              total:this.total.toString(),
995 996
              remark:this.remark,
996
-             prof_count:parseInt(this.prof_count),
997
+             proof_count:parseInt(this.form.proof_count),
997 998
            }
998 999
           console.log("params",params)
999 1000
          SaveDrugProofInventory(params).then(response=>{

+ 1 - 1
src/xt_pages/stock/drugs/inventoryDetails.vue Bestand weergeven

@@ -25,7 +25,7 @@
25 25
                 style="width: 200px;margin-left:10px;"
26 26
                 class="filter-item"
27 27
                 v-model.trim="searchKey"
28
-                placeholder=""
28
+               placeholder="请输入单据编号或操作人姓名"
29 29
                 />
30 30
                 <el-button
31 31
                 size="small"

+ 249 - 24
src/xt_pages/stock/inventory.vue Bestand weergeven

@@ -60,6 +60,16 @@
60 60
               <template slot-scope="scope" >
61 61
                 {{getTime(scope.row.start_time)}}
62 62
               </template>  
63
+            </el-table-column>
64
+            <el-table-column  prop="date" label="耗材名称" align="center">
65
+              <template slot-scope="scope" >
66
+                {{scope.row.good_name}}
67
+              </template>  
68
+            </el-table-column>
69
+            <el-table-column  prop="date" label="耗材规格" align="center">
70
+              <template slot-scope="scope" >
71
+                {{scope.row.specification_name}}
72
+              </template>  
63 73
             </el-table-column>
64 74
              <el-table-column  prop="date" label="盘点数量" align="center">
65 75
               <template slot-scope="scope" >
@@ -97,9 +107,9 @@
97 107
                 <span v-if="scope.row.checker_status == 2">正在盘点</span>
98 108
              </template>
99 109
             </el-table-column>
100
-            <el-table-column label="操作" align="center" width="300">
110
+            <el-table-column label="操作" align="center" width="200">
101 111
                 <template slot-scope="scope">
102
-                  <el-button type="primary" size="small" @click="getInventory(scope.row.id,scope.row.checker_status)">校对</el-button>
112
+                  <!-- <el-button type="primary" size="small" @click="getInventory(scope.row.id,scope.row.checker_status)">校对</el-button> -->
103 113
                   <el-button type="primary" size="small" @click="getInventoryDetail(scope.row.id,scope.row.checker_status)">编辑</el-button>
104 114
                   <el-button type="danger" size="small" @click="deleteInventory(scope.row.id,scope.row.checker_status,scope.$index)">删除</el-button>
105 115
                 </template>
@@ -122,7 +132,7 @@
122 132
         width="1200px">
123 133
             <el-form :model="form" class="modifyDialog" label-width="120px">
124 134
                 <el-form-item label="耗材ID">
125
-                    <el-input v-model="form.good_id"></el-input>
135
+                    <el-input v-model="form.good_id" :disabled="true"></el-input>
126 136
                 </el-form-item>
127 137
                 <el-form-item label="耗材名称">
128 138
                    <el-autocomplete
@@ -143,42 +153,42 @@
143 153
                  </el-autocomplete>
144 154
                 </el-form-item>
145 155
                 <el-form-item label="规格">
146
-                    <el-input v-model="form.specification_name"></el-input>
156
+                    <el-input v-model="form.specification_name" :disabled="true"></el-input>
147 157
                 </el-form-item>
148 158
                 <el-form-item label="批号">
149
-                  <el-select v-model="form.number" filterable placeholder="请选择">
159
+                  <el-select v-model="form.number" filterable placeholder="请选择" @change="changeNumber">
150 160
                       <el-option
151 161
                         v-for="(item,index) in numberList"
152 162
                         :key="index"
153 163
                         :label="item.number"
154
-                        :value="item.number">
164
+                        :value="item.id">
155 165
                       </el-option>
156 166
                   </el-select>
157 167
                 </el-form-item>
158 168
 
159 169
                 <el-form-item label="单位">
160
-                    <el-input v-model="form.warehousing_unit"></el-input>
170
+                    <el-input v-model="form.warehousing_unit" :disabled="true"></el-input>
161 171
                 </el-form-item>
162 172
                 <el-form-item label="进货价">
163
-                    <el-input v-model="form.buy_price"></el-input>
173
+                    <el-input v-model="form.buy_price" :disabled="true"></el-input>
164 174
                 </el-form-item>
165 175
                 <el-form-item label="零售价">
166
-                    <el-input v-model="form.packing_price"></el-input>
176
+                    <el-input v-model="form.packing_price" :disabled="true"></el-input>
167 177
                 </el-form-item>
168 178
                 <el-form-item label="盘点数量">
169 179
                     <el-input v-model="form.count"></el-input>
170 180
                 </el-form-item>
171 181
                 <el-form-item label="库存">
172
-                    <el-input v-model="form.total"></el-input>
182
+                    <el-input v-model="form.total" :disabled="true"></el-input>
173 183
                 </el-form-item>
174 184
                 <el-form-item label="产地">
175 185
                     <el-input v-model="form.good_origin_place"></el-input>
176 186
                 </el-form-item>
177 187
                 <el-form-item label="批准文号">
178
-                    <el-input v-model="form.license_number"></el-input>
188
+                    <el-input v-model="form.license_number" :disabled="true"></el-input>
179 189
                 </el-form-item>
180 190
                 <el-form-item label="生产厂商">
181
-                    <el-input v-model="form.manufacturer"></el-input>
191
+                    <el-input v-model="form.manufacturer" :disabled="true"></el-input>
182 192
                 </el-form-item>
183 193
                 <el-form-item label="备注">
184 194
                     <div style="display:flex;">
@@ -329,6 +339,47 @@
329 339
                     </template>
330 340
                     </el-autocomplete>
331 341
                 </el-form-item>
342
+               <el-form-item label="规格">
343
+                    <el-input v-model="form.specification_name" :disabled="true" style="width:200px"></el-input>
344
+                </el-form-item>
345
+                <el-form-item label="批号">
346
+                  <el-select v-model="form.number" filterable placeholder="请选择"  @change="changeNumber">
347
+                      <el-option
348
+                        v-for="(item,index) in numberList"
349
+                        :key="index"
350
+                        :label="item.number"
351
+                        :value="item.id">
352
+                      </el-option>
353
+                  </el-select>
354
+                </el-form-item>
355
+
356
+                <el-form-item label="单位">
357
+                    <el-input v-model="form.warehousing_unit" :disabled="true" style="width:200px"></el-input>
358
+                </el-form-item>
359
+                <el-form-item label="进货价">
360
+                    <el-input v-model="form.buy_price" :disabled="true" style="width:200px"></el-input>
361
+                </el-form-item>
362
+                <el-form-item label="零售价">
363
+                    <el-input v-model="form.packing_price" :disabled="true" style="width:200px"></el-input>
364
+                </el-form-item>
365
+                <el-form-item label="盘点数量">
366
+                    <el-input v-model="form.count" style="width:200px"></el-input>
367
+                </el-form-item>
368
+                <el-form-item label="库存">
369
+                    <el-input v-model="form.total" :disabled="true" style="width:200px"></el-input>
370
+                </el-form-item>
371
+                <el-form-item label="产地">
372
+                    <el-input v-model="form.good_origin_place" style="width:200px"></el-input>
373
+                </el-form-item>
374
+                <el-form-item label="批准文号">
375
+                    <el-input v-model="form.license_number" :disabled="true" style="width:200px"></el-input>
376
+                </el-form-item>
377
+                <el-form-item label="生产厂商">
378
+                    <el-input v-model="form.manufacturer" :disabled="true" style="width:200px"></el-input>
379
+                </el-form-item>
380
+                <el-form-item label="经销商">
381
+                    <el-input v-model="form.dealer" :disabled="true" style="width:200px"></el-input>
382
+                </el-form-item>
332 383
                <el-form-item label="盘点数量:">
333 384
                  <el-input v-model="form.count" style="width:200px"></el-input>
334 385
                </el-form-item>
@@ -360,6 +411,65 @@
360 411
           <el-form  :model="form">
361 412
             <el-row>
362 413
                <el-col>
414
+                <el-form-item label="耗材名称:">
415
+                      <el-autocomplete
416
+                          class="checkSearch"
417
+                          popper-class="my-autocomplete"
418
+                          v-model="form.good_name"
419
+                          :fetch-suggestions="querySearchAsync"
420
+                          :trigger-on-focus="true"
421
+                          placeholder="请输入耗材名称"
422
+                          @select="handleSelect"
423
+                          @input="changeGoodName(scope.$index)"
424
+                          style="width:160px;"
425
+                      >
426
+                          <i class="el-icon-search el-input__icon" slot="suffix"></i>
427
+                      <template slot-scope="{ item }">
428
+                          <div class="name">{{ item.good_name +"  " +item.specification_name + "  "+item.manufacturer }}</div>
429
+                      </template>
430
+                      </el-autocomplete>
431
+                </el-form-item>
432
+                <el-form-item label="规格">
433
+                    <el-input v-model="form.specification_name" :disabled="true" style="width:200px"></el-input>
434
+                </el-form-item>
435
+                <el-form-item label="批号">
436
+                  <el-select v-model="form.number" filterable placeholder="请选择"  @change="changeNumber">
437
+                      <el-option
438
+                        v-for="(item,index) in numberList"
439
+                        :key="index"
440
+                        :label="item.number"
441
+                        :value="item.id">
442
+                      </el-option>
443
+                  </el-select>
444
+                </el-form-item>
445
+
446
+                <el-form-item label="单位">
447
+                    <el-input v-model="form.warehousing_unit" :disabled="true" style="width:200px"></el-input>
448
+                </el-form-item>
449
+                <el-form-item label="进货价">
450
+                    <el-input v-model="form.buy_price" :disabled="true" style="width:200px"></el-input>
451
+                </el-form-item>
452
+                <el-form-item label="零售价">
453
+                    <el-input v-model="form.packing_price" :disabled="true" style="width:200px"></el-input>
454
+                </el-form-item>
455
+                <el-form-item label="盘点数量">
456
+                    <el-input v-model="form.count" style="width:200px"></el-input>
457
+                </el-form-item>
458
+                <el-form-item label="库存">
459
+                    <el-input v-model="form.total" :disabled="true" style="width:200px"></el-input>
460
+                </el-form-item>
461
+                <el-form-item label="产地">
462
+                    <el-input v-model="form.good_origin_place" style="width:200px"></el-input>
463
+                </el-form-item>
464
+                <el-form-item label="批准文号">
465
+                    <el-input v-model="form.license_number" :disabled="true" style="width:200px"></el-input>
466
+                </el-form-item>
467
+                <el-form-item label="生产厂商">
468
+                    <el-input v-model="form.manufacturer" :disabled="true" style="width:200px"></el-input>
469
+                </el-form-item>
470
+                <el-form-item label="经销商">
471
+                    <el-input v-model="form.dealer" :disabled="true" style="width:200px"></el-input>
472
+                </el-form-item>
363 473
                <el-form-item label="盘点数量:">
364 474
                  <el-input v-model="form.count" style="width:200px"></el-input>
365 475
                </el-form-item>
@@ -436,7 +546,7 @@
436 546
 
437 547
 <script> 
438 548
 import { uParseTime } from '@/utils/tools'
439
-import { postSearchGoodWarehouseList,saveInventory,getInventoryList,SaveCheckedInventory,getInventoryDetail,modifyInventory,deleteInventory,getStockBatchNumber,getGoodWarehouseList,proofInventory } from "@/api/stock"
549
+import { postSearchGoodWarehouseList,saveInventory,getInventoryList,SaveCheckedInventory,getInventoryDetail,modifyInventory,deleteInventory,getStockBatchNumber,getGoodWarehouseList,proofInventory,getWarehouseTotal } from "@/api/stock"
440 550
 export default {
441 551
     name: "inventory",
442 552
     data() {
@@ -482,7 +592,7 @@ export default {
482 592
          dealerList:[],
483 593
          goodList:[],
484 594
          currentIndex: 0,
485
-         inventory_status:"",
595
+         inventory_status:0,
486 596
          limit:10,
487 597
          page:1,
488 598
          doctorList:[],
@@ -541,23 +651,28 @@ export default {
541 651
           this.currentIndex = val
542 652
         },
543 653
          handleSelect(val){
544
-            console.log("val232323223",val)
545 654
             this.getStockBatchNumber(val.good_id)
546
-            this.getGoodWarehouseList(val.good_id)
655
+            // this.getGoodWarehouseList(val.good_id)
547 656
             this.form.id = val.id
548 657
             this.form.good_id = val.good_id,
549 658
             this.form.good_name = val.good_name
550 659
             this.form.packing_price = val.packing_price
551 660
             this.form.warehousing_order = val.warehousing_order
552 661
             this.form.license_number = val.license_number
553
-            this.form.dealer = val.dealer
662
+            if(val.dealer == ""){
663
+              this.form.dealer = ""
664
+            }else{
665
+              this.form.dealer = val.dealer
666
+            }
554 667
             this.form.manufacturer = val.manufacturer
555 668
             this.form.specification_name = val.specification_name
556 669
             this.form.remark = val.remark
557 670
             this.form.buy_price = val.buy_price
558 671
             this.form.warehousing_unit = val.packing_unit  
559
-            this.form.total = val.total
560
-            this.form.number = val.number
672
+            this.form.total = ""
673
+            this.form.number = ""
674
+            // this.form.total = val.total
675
+            // this.form.number = val.number
561 676
             this.form.expiry_date = val.expiry_date
562 677
             this.form.product_date = val.product_date
563 678
         },
@@ -591,7 +706,26 @@ export default {
591 706
           this.getlist()
592 707
         },
593 708
         addInventory(){
709
+           if(this.form.good_name == ""){
710
+             this.$message.error("请输入耗材名称")
711
+             return 
712
+           }
713
+           if(this.form.count == ""){
714
+             this.$message.error("请输入盘点数量")
715
+             return
716
+           }
717
+           var number = ""
718
+           for(let i=0;i<this.numberList.length;i++){
719
+             if(this.form.number == this.numberList[i].id){
720
+                number = this.numberList[i].number
721
+             }
722
+           }
723
+           if(number == ""){
724
+             this.$message.error("请选择批次")
725
+             return
726
+           }
594 727
            var obj = {
728
+            id:this.form.id,
595 729
             good_id:this.form.good_id,
596 730
             good_name:this.form.good_name,
597 731
             specification_name:this.form.specification_name,
@@ -608,11 +742,11 @@ export default {
608 742
             start_time:this.getTime(new Date()),
609 743
             product_date:this.form.product_date,
610 744
             expiry_date:this.form.expiry_date,
611
-            number:this.form.number,
745
+            number:number,
612 746
             warehousing_info_id:0,
613 747
             total:this.form.total,
614
-
615 748
            } 
749
+           console.log("比阿哥",this.tableData)
616 750
            this.tableData.push(obj)
617 751
         },
618 752
       saveInventory(){
@@ -633,6 +767,12 @@ export default {
633 767
           if(this.tableData[i].dealer == 0){
634 768
             this.tableData[i].dealer = ""
635 769
           }
770
+          if(this.tableData[i].packing_price == 0){
771
+            this.tableData[i].packing_price = ""
772
+          }
773
+          if(this.tableData[i].buy_price == 0){
774
+            this.tableData[i].buy_price = ""
775
+          }
636 776
         }
637 777
         var params = {
638 778
          tableData:this.tableData,
@@ -643,7 +783,22 @@ export default {
643 783
          if(response.data.state == 1){
644 784
            var msg = response.data.data.msg
645 785
            this.$message.success("保存成功")
786
+           this.tableData = []
787
+           this.form.good_id = ""
788
+           this.form.good_name = ""
789
+           this.form.specification_name = ""
790
+           this.form.manufacturer = ""
791
+           this.form.dealer = ""
792
+           this.form.good_origin_place = ""
793
+           this.form.buy_price = ""
794
+           this.form.packing_price = ""
795
+           this.form.count = ""
796
+           this.form.remark = ""
797
+           this.form.number = ""
798
+           this.form.total = ""
799
+           this.form.warehousing_unit = ""
646 800
            this.dialogVisible = false
801
+           
647 802
            this.getlist()
648 803
          }
649 804
        })
@@ -719,23 +874,52 @@ export default {
719 874
      },
720 875
      toEdit(row){
721 876
       this.form.good_name = row.good_name
877
+      this.form.specification_name = row.specification_name
878
+      this.form.number = row.number
879
+      this.form.warehousing_unit = row.warehousing_unit
880
+      this.form.manufacturer = row.manufacturer
881
+      this.form.dealer = row.dealer
882
+      this.form.buy_price = row.buy_price
883
+      this.form.packing_price = row.packing_price
884
+      this.form.good_origin_place = row.good_origin_place
722 885
       this.form.count = row.count
723 886
       this.form.remark = row.remark
724 887
       this.form.id = row.id
725 888
       this.editPriceDialogVisible = true  
726 889
      },
727 890
      upateInventory(){
891
+       console.log("hhhhhh",this.form.id)
892
+       console.log("999",this.tableData)
728 893
        for(let i=0;i<this.tableData.length;i++){
729 894
          if(this.form.id == this.tableData[i].id){
730 895
             this.tableData[i].good_name = this.form.good_name
731
-            // this.tableData[i].packing_price = this.form.packing_price
896
+            this.tableData[i].packing_price = this.form.packing_price
897
+            this.tableData[i].buy_price = this.form.buy_price
898
+            this.tableData[i].specification_name = this.form.specification_name
899
+            this.tableData[i].warehousing_unit = this.form.warehousing_unit
900
+            this.tableData[i].number = this.form.number
901
+            this.tableData[i].good_origin_place = this.form.good_origin_place
902
+            this.tableData[i].dealer = this.form.dealer
903
+            this.tableData[i].manufacturer = this.form.manufacturer
732 904
             this.tableData[i].count = this.form.count
733 905
             this.tableData[i].remark = this.form.remark
906
+         }else{
907
+           this.tableData[i].id = this.form.id
908
+           this.tableData[i].good_name = this.form.good_name
909
+           this.tableData[i].packing_price = this.form.packing_price
910
+           this.tableData[i].buy_price = this.form.buy_price
911
+           this.tableData[i].specification_name = this.form.specification_name
912
+           this.tableData[i].warehousing_unit = this.form.warehousing_unit
913
+           this.tableData[i].number = this.form.number
914
+           this.tableData[i].good_origin_place = this.form.good_origin_place
915
+           this.tableData[i].dealer = this.form.dealer
916
+           this.tableData[i].manufacturer = this.form.manufacturer
917
+           this.tableData[i].count = this.form.count
918
+           this.tableData[i].remark = this.form.remark
734 919
          }
735 920
        }
736 921
        this.editPriceDialogVisible = false
737 922
        this.form.good_name = ""
738
-      //  this.form.packing_price = ""
739 923
        this.form.count = ""
740 924
        this.form.remark = ""
741 925
      },
@@ -766,9 +950,22 @@ export default {
766 950
           if(response.data.state == 1){
767 951
             var detail =  response.data.data.detail
768 952
             console.log("detial",detail)
953
+            this.form.good_name = detail.good_name
954
+            this.form.good_id = detail.good_id
955
+            this.form.specification_name = detail.specification_name
956
+            this.form.number = detail.number
957
+            this.form.license_number = detail.license_number
958
+            this.form.good_origin_place = detail.good_origin_place
959
+            this.form.dealer = detail.dealer
960
+            this.form.manufacturer = detail.manufacturer
769 961
             this.form.count = detail.count
770 962
             this.form.remark = detail.remark
963
+            this.form.warehousing_info_id = detail.warehousing_info_id
771 964
             this.id = detail.id
965
+            this.form.buy_price = detail.buy_price
966
+            this.form.packing_price = detail.packing_price
967
+            this.form.warehousing_unit = detail.warehousing_unit
968
+            this.form.total = detail.total
772 969
             this.modefiyePriceDialogVisible = true
773 970
 
774 971
           }
@@ -777,6 +974,18 @@ export default {
777 974
      modifyInventory(){
778 975
          var params = {
779 976
            id:this.id,
977
+           good_id:this.form.good_id,
978
+           good_name:this.form.good_name,
979
+           specification_name:this.form.specification_name,
980
+           number:this.form.number,
981
+           warehousing_unit:this.form.warehousing_unit,
982
+           buy_price:this.form.buy_price.toString(),
983
+           packing_price:this.form.packing_price.toString(),
984
+           total:parseInt(this.form.total),
985
+           good_origin_place:this.form.good_origin_place,
986
+           license_number:this.form.license_number,
987
+           dealer:this.form.dealer,
988
+           manufacturer:this.form.manufacturer,
780 989
            count:parseInt(this.form.count),
781 990
            remark:this.form.remark,
782 991
          }
@@ -901,7 +1110,23 @@ export default {
901 1110
      changeEndTime(val){
902 1111
        this.end_time = this.getTime(val)
903 1112
        this.getlist()
904
-     }
1113
+     },
1114
+    changeNumber(val){
1115
+     this.getWarehouseTotal(val)
1116
+     this.form.warehousing_info_id = val
1117
+     },
1118
+    getWarehouseTotal(id){
1119
+        var params = {
1120
+          id:id,
1121
+        }
1122
+      getWarehouseTotal(params).then(response=>{
1123
+         if(response.data.state == 1){
1124
+           var list =  response.data.data.list
1125
+           console.log("档期批次库促",list)
1126
+           this.form.total = list.stock_count
1127
+         }
1128
+      })
1129
+    }
905 1130
     },
906 1131
     created(){
907 1132
       this.getlist()

+ 186 - 15
src/xt_pages/stock/stockDamaged.vue Bestand weergeven

@@ -54,6 +54,16 @@
54 54
               <template  slot-scope="scope">
55 55
                 {{getTime(scope.row.start_time)}}
56 56
                </template>    
57
+            </el-table-column>
58
+            <el-table-column prop="date" label="耗材名称"  align="center">
59
+              <template  slot-scope="scope">
60
+                {{scope.row.good_name}}
61
+               </template>    
62
+            </el-table-column>
63
+            <el-table-column prop="date" label="耗材规格"  align="center">
64
+              <template  slot-scope="scope">
65
+                {{scope.row.specification_name}}
66
+               </template>    
57 67
             </el-table-column>
58 68
              <el-table-column prop="date" label="报损数量"  align="center">
59 69
               <template  slot-scope="scope">
@@ -81,7 +91,7 @@
81 91
                 <span v-if="scope.row.checker_status == 2">未核对</span>
82 92
               </template>
83 93
             </el-table-column>
84
-            <el-table-column label="操作"  align="center">
94
+            <el-table-column label="操作"  align="center"  width="200" >
85 95
                 <template slot-scope="scope">
86 96
                 <el-button type="primary" size="small" @click="editStockDamage(scope.row.id,scope.row.checker_status)">编辑</el-button>
87 97
                 <el-button type="danger" size="small" @click="deleteStockDamage(scope.row.id,scope.row.checker_status,scope.$index)">删除</el-button>
@@ -108,7 +118,7 @@
108 118
         <el-form :model="form" class="modifyDialog" label-width="120px">
109 119
           
110 120
             <el-form-item label="耗材ID">
111
-                <el-input v-model="form.good_id"></el-input>
121
+                <el-input v-model="form.good_id" :disabled="true"></el-input>
112 122
             </el-form-item>
113 123
             <el-form-item label="耗材名称">
114 124
                   <el-autocomplete
@@ -129,10 +139,10 @@
129 139
                  </el-autocomplete>
130 140
             </el-form-item>
131 141
             <el-form-item label="规格">
132
-                <el-input v-model="form.specification_name"></el-input>
142
+                <el-input v-model="form.specification_name" :disabled="true"></el-input>
133 143
             </el-form-item>
134 144
             <el-form-item label="批号">
135
-                 <el-select v-model="form.number" filterable placeholder="请选择">
145
+                 <el-select v-model="form.number" filterable placeholder="请选择"  @change="chageNumberlist">
136 146
                   <el-option
137 147
                     v-for="(item,index) in numberList"
138 148
                     :key="index"
@@ -142,28 +152,31 @@
142 152
                 </el-select>
143 153
             </el-form-item>
144 154
             <el-form-item label="单位">
145
-                <el-input v-model="form.warehousing_unit"></el-input>
155
+                <el-input v-model="form.warehousing_unit" :disabled="true"></el-input>
146 156
             </el-form-item>
147 157
             <el-form-item label="进货价">
148
-                <el-input v-model="form.buy_price"></el-input>
158
+                <el-input v-model="form.buy_price" :disabled="true"></el-input>
149 159
             </el-form-item>
150 160
             <el-form-item label="零售价">
151
-                <el-input v-model="form.packing_price"></el-input>
161
+                <el-input v-model="form.packing_price" :disabled="true"></el-input>
152 162
             </el-form-item>
153 163
             <el-form-item label="报损数量">
154 164
                 <el-input v-model="form.count"></el-input>
155 165
             </el-form-item>
156 166
             <el-form-item label="库存">
157
-                <el-input v-model="form.total"></el-input>
167
+                <el-input v-model="form.total" :disabled="true"></el-input>
158 168
             </el-form-item>
159 169
             <el-form-item label="产地">
160 170
                 <el-input v-model="form.good_origin_place"></el-input>
161 171
             </el-form-item>
162 172
             <el-form-item label="批准文号">
163
-                <el-input v-model="form.license_number"></el-input>
173
+                <el-input v-model="form.license_number" :disabled="true"></el-input>
164 174
             </el-form-item>
165 175
             <el-form-item label="生产厂商">
166
-                <el-input v-model="form.manufacturer"></el-input>
176
+                <el-input v-model="form.manufacturer" :disabled="true"></el-input>
177
+            </el-form-item>
178
+           <el-form-item label="供应商">
179
+                <el-input v-model="form.dealer" :disabled="true"></el-input>
167 180
             </el-form-item>
168 181
             <el-form-item label="备注">
169 182
                 <div style="display:flex;">
@@ -284,7 +297,7 @@
284 297
 
285 298
 <!-- 编辑 -->
286 299
       <el-dialog
287
-        title="编辑"
300
+        title="编辑报损"
288 301
         :visible.sync="editPriceDialogVisible"
289 302
         width="50%">
290 303
         <span>
@@ -309,7 +322,44 @@
309 322
                     </template>
310 323
                     </el-autocomplete>
311 324
                 </el-form-item>
312
-               <el-form-item label="报损数量:">
325
+               <el-form-item label="规格:">
326
+                 <el-input v-model="form.specification_name" style="width:200px"></el-input>
327
+               </el-form-item>
328
+               <el-form-item label="批号">
329
+                 <el-select v-model="form.number" filterable placeholder="请选择"  @change="chageNumberlist">
330
+                  <el-option
331
+                    v-for="(item,index) in numberList"
332
+                    :key="index"
333
+                    :label="item.number"
334
+                    :value="item.number">
335
+                  </el-option>
336
+                </el-select>
337
+              </el-form-item>
338
+              <el-form-item label="单位">
339
+                 <el-input v-model="form.warehousing_unit" style="width:200px" :disabled="true"></el-input>
340
+              </el-form-item>
341
+              <el-form-item label="进货价">
342
+                  <el-input v-model="form.buy_price" style="width:200px" :disabled="true"></el-input>
343
+              </el-form-item>
344
+              <el-form-item label="零售价">
345
+                  <el-input v-model="form.packing_price" style="width:200px" :disabled="true"></el-input>
346
+              </el-form-item>
347
+              <el-form-item label="库存">
348
+                  <el-input v-model="form.total" style="width:200px" :disabled="true"></el-input>
349
+              </el-form-item>
350
+              <el-form-item label="产地">
351
+                  <el-input v-model="form.good_origin_place" style="width:200px" :disabled="true"></el-input>
352
+              </el-form-item>
353
+              <el-form-item label="批准文号">
354
+                  <el-input v-model="form.license_number" style="width:200px" :disabled="true"></el-input>
355
+              </el-form-item>
356
+              <el-form-item label="生产厂商">
357
+                  <el-input v-model="form.manufacturer" style="width:200px" :disabled="true"></el-input>
358
+              </el-form-item>
359
+              <el-form-item label="供应商">
360
+                  <el-input v-model="form.dealer" style="width:200px" :disabled="true"></el-input>
361
+              </el-form-item>
362
+                <el-form-item label="报损数量:">
313 363
                  <el-input v-model="form.count" style="width:200px"></el-input>
314 364
                </el-form-item>
315 365
              </el-col> 
@@ -339,7 +389,62 @@
339 389
         <span>
340 390
           <el-form  :model="form">
341 391
             <el-row>
342
-               <el-col>
392
+             <el-col>
393
+                <el-form-item label="耗材名称:">
394
+                    <el-autocomplete
395
+                        class="checkSearch"
396
+                        popper-class="my-autocomplete"
397
+                        v-model="form.good_name"
398
+                        :fetch-suggestions="querySearchAsync"
399
+                        :trigger-on-focus="true"
400
+                        placeholder="请输入耗材名称"
401
+                        @select="handleSelect"
402
+                        @input="changeGoodName(scope.$index)"
403
+                        style="width:160px;"
404
+                    >
405
+                        <i class="el-icon-search el-input__icon" slot="suffix"></i>
406
+                    <template slot-scope="{ item }">
407
+                        <div class="name">{{ item.good_name +"  " +item.specification_name + "  "+item.manufacturer }}</div>
408
+                    </template>
409
+                    </el-autocomplete>
410
+                </el-form-item>
411
+               <el-form-item label="规格:">
412
+                 <el-input v-model="form.specification_name" style="width:200px" :disabled="true"></el-input>
413
+               </el-form-item>
414
+               <el-form-item label="批号">
415
+                 <el-select v-model="form.number" filterable placeholder="请选择" @change="chageNumberlist">
416
+                  <el-option
417
+                    v-for="(item,index) in numberList"
418
+                    :key="index"
419
+                    :label="item.number"
420
+                    :value="item.number">
421
+                  </el-option>
422
+                </el-select>
423
+              </el-form-item>
424
+               <el-form-item label="单位">
425
+                 <el-input v-model="form.warehousing_unit" style="width:200px" :disabled="true"></el-input>
426
+              </el-form-item>
427
+              <el-form-item label="进货价">
428
+                  <el-input v-model="form.buy_price" style="width:200px" :disabled="true"></el-input>
429
+              </el-form-item>
430
+              <el-form-item label="零售价">
431
+                  <el-input v-model="form.packing_price" style="width:200px" :disabled="true"></el-input>
432
+              </el-form-item>
433
+              <el-form-item label="库存">
434
+                  <el-input v-model="form.total" style="width:200px" :disabled="true"></el-input>
435
+              </el-form-item>
436
+              <el-form-item label="产地">
437
+                  <el-input v-model="form.good_origin_place" style="width:200px" :disabled="true"></el-input>
438
+              </el-form-item>
439
+              <el-form-item label="批准文号">
440
+                  <el-input v-model="form.license_number" style="width:200px" :disabled="true"></el-input>
441
+              </el-form-item>
442
+              <el-form-item label="生产厂商">
443
+                  <el-input v-model="form.manufacturer" style="width:200px" :disabled="true"></el-input>
444
+              </el-form-item>
445
+              <el-form-item label="供应商">
446
+                  <el-input v-model="form.dealer" style="width:200px" :disabled="true"></el-input>
447
+              </el-form-item>
343 448
                <el-form-item label="报损数量:">
344 449
                  <el-input v-model="form.count" style="width:200px"></el-input>
345 450
                </el-form-item>
@@ -500,7 +605,11 @@ export default {
500 605
           this.form.packing_price = val.packing_price
501 606
           this.form.warehousing_order = val.warehousing_order
502 607
           this.form.license_number = val.license_number
503
-          this.form.dealer = val.dealer
608
+          if(this.form.dealer == 0){
609
+            this.form.dealer = ""
610
+          }else{
611
+            this.form.dealer = val.dealer
612
+          }
504 613
           this.form.manufacturer = val.manufacturer
505 614
           this.form.specification_name = val.specification_name
506 615
           this.form.remark = val.remark
@@ -512,6 +621,11 @@ export default {
512 621
           this.form.product_date = val.product_date
513 622
       },
514 623
       addStock(){
624
+
625
+        if(this.form.count == ""){
626
+          this.$message.error("请输入报损数量")
627
+          return 
628
+        }
515 629
         var obj = {
516 630
           good_id:this.form.good_id,
517 631
           good_name:this.form.good_name,
@@ -531,6 +645,7 @@ export default {
531 645
           warehousing_info_id:0,
532 646
           product_date:this.form.product_date,
533 647
           expiry_date:this.form.expiry_date,
648
+          total:this.form.total,
534 649
         } 
535 650
         this.tableData.push(obj)
536 651
         this.form.good_id = 0
@@ -548,6 +663,7 @@ export default {
548 663
         this.form.dealer = ""
549 664
         this.form.number = ""
550 665
         this.form.good_id = ""
666
+        this.form.total= ""
551 667
       },
552 668
       saveReportStock(){
553 669
          for(let i = 0;i<this.tableData.length;i++){
@@ -576,6 +692,7 @@ export default {
576 692
             tableData:this.tableData,
577 693
           }
578 694
           console.log("params",params)
695
+       
579 696
         saveReportStock(params).then(response=>{
580 697
            if(response.data.state == 1){
581 698
              var msg = response.data.data.msg
@@ -674,21 +791,40 @@ export default {
674 791
        this.tableData.splice(index,1)
675 792
      },
676 793
      toEdit(row){
794
+      console.log("row",row)
677 795
       this.form.good_name = row.good_name
678
-      this.form.packing_unit = row.packing_unit
796
+      this.form.warehousing_unit = row.warehousing_unit
679 797
       this.form.packing_price = row.packing_price
680 798
       this.form.count = row.count
681 799
       this.form.remark = row.remark
682 800
       this.form.id = row.id
801
+      this.form.specification_name = row.specification_name
802
+      this.form.dealer = row.dealer
803
+      this.form.manufacturer = row.manufacturer
804
+      this.form.good_origin_place = row.good_origin_place
805
+      this.form.total = row.total
806
+      this.form.number = row.number
807
+      this.form.license_number = row.license_number
683 808
       this.editPriceDialogVisible = true  
684 809
      },
685 810
      upatePrice(){
811
+       if(this.form.count == ""){
812
+         this.$message.error("请输入报损数量")
813
+         return false
814
+       }
686 815
        for(let i=0;i<this.tableData.length;i++){
687 816
          if(this.form.id == this.tableData[i].id){
688 817
             this.tableData[i].good_name = this.form.good_name
689 818
             this.tableData[i].packing_price = this.form.packing_price
690 819
             this.tableData[i].count = this.form.count
691 820
             this.tableData[i].remark = this.form.remark
821
+            this.tableData[i].good_name = this.form.specification_name
822
+            this.tableData[i].warehousing_unit  = this.form.warehousing_unit
823
+            this.tableData[i].total = this.form.total
824
+            this.tableData[i].number = this.form.number
825
+            this.tableData[i].license_number = this.form.license_number
826
+            this.tableData[i].manufacturer = this.form.manufacturer
827
+            this.tableData[i].good_origin_place = this.form.good_origin_place
692 828
          }
693 829
        }
694 830
        this.editPriceDialogVisible = false
@@ -705,8 +841,22 @@ export default {
705 841
        getStockDamageDetail(id).then(response=>{
706 842
          if(response.data.state == 1){
707 843
            var detail = response.data.data.detail
844
+           console.log("hhhhh32233223",detail)
708 845
            this.form.count = detail.count
846
+           this.form.good_name = detail.good_name
847
+           this.form.specification_name = detail.specification_name
848
+           this.form.total = detail.total
849
+           this.form.buy_price = detail.buy_price
850
+           this.form.packing_price = detail.packing_price
851
+           this.form.good_origin_place = detail.good_origin_place
852
+           this.form.warehousing_unit = detail.warehousing_unit
853
+           this.form.manufacturer = detail.manufacturer
854
+           this.form.dealer = detail.dealer
855
+           this.form.license_number = detail.license_number
856
+           this.form.number = detail.number
709 857
            this.id = detail.id
858
+           this.form.good_id = detail.good_id
859
+           this.form.warehousing_info_id = detail.warehousing_info_id
710 860
            this.modifyPriceDialogVisible = true
711 861
          }
712 862
        })
@@ -715,8 +865,21 @@ export default {
715 865
         var params = {
716 866
           count:parseInt(this.form.count),
717 867
           id:this.id,
868
+          good_name:this.form.good_name,
869
+          specification_name:this.form.specification_name,
870
+          number:this.form.number,
871
+          warehousing_unit:this.form.warehousing_unit,
872
+          buy_price:this.form.buy_price.toString(),
873
+          packing_price:this.form.packing_price.toString(),
874
+          good_origin_place:this.form.good_origin_place,
875
+          manufacturer:this.form.manufacturer,
876
+          dealer:this.form.dealer,
877
+          license_number:this.form.license_number,
878
+          warehousing_info_id:this.form.warehousing_info_id,
879
+          good_id:this.form.good_id,
718 880
         }
719 881
         console.log("param2323",params)
882
+       
720 883
        modifyPrice(params).then(response=>{
721 884
          if(response.data.state ==1){
722 885
            var adjust = response.data.data.adjust
@@ -811,6 +974,14 @@ export default {
811 974
      changeEndTime(val){
812 975
        this.end_time = this.getTime(val)
813 976
        this.getlist()
977
+     },
978
+     chageNumberlist(val){
979
+       console.log("val2323322",val)
980
+       for(let i=0;i<this.numberList.length;i++){
981
+         if(this.numberList[i].number == val){
982
+            this.form.warehousing_info_id = this.numberList[i].id
983
+         }
984
+       }
814 985
      }
815 986
     },
816 987
     created(){

+ 73 - 32
src/xt_pages/stock/stockModifyPrice.vue Bestand weergeven

@@ -26,14 +26,16 @@
26 26
             v-model="start_time"
27 27
             type="date"
28 28
             style="margin-left:5px;width:140px;"
29
-            placeholder="选择日期">
29
+            placeholder="选择日期"
30
+            @change="changeStartTime">
30 31
             </el-date-picker>
31 32
             <el-date-picker
32 33
             size="small"
33 34
             v-model="end_time"
34 35
             type="date"
35 36
             style="margin-left:5px;width:140px;"
36
-            placeholder="选择日期">
37
+            placeholder="选择日期"
38
+            @change="changeEndTime">
37 39
             </el-date-picker>
38 40
         </div>
39 41
         <div>
@@ -168,15 +170,21 @@
168 170
                   </template>
169 171
                  </el-autocomplete>
170 172
             </el-form-item>
173
+            <el-form-item label="规格">
174
+                <el-input v-model="form.specification_name" :disabled="true"></el-input>
175
+            </el-form-item>
171 176
             <el-form-item label="原价格">
172
-                <el-input v-model="form.packing_price"></el-input>
177
+                <el-input v-model="form.packing_price" :disabled="true"></el-input>
173 178
             </el-form-item>
174 179
             <el-form-item label="现价格">
175 180
                 <el-input v-model="form.new_price"></el-input>
176 181
             </el-form-item>
177
-            <!-- <el-form-item label="调价数量">
178
-                <el-input v-model="form.count" type="number"></el-input>
179
-            </el-form-item> -->
182
+            <el-form-item label="生产商">
183
+                <el-input v-model="form.manufacturer" :disabled="true"></el-input>
184
+            </el-form-item>
185
+            <el-form-item label="供应商">
186
+                <el-input v-model="form.dealer" :disabled="true"></el-input>
187
+            </el-form-item>
180 188
             <el-form-item label="备注" style="width:66%;">
181 189
                 <div style="display:flex;">
182 190
                     <el-input v-model="form.remark"></el-input>
@@ -205,11 +213,6 @@
205 213
                {{scope.row.warehousing_unit}}
206 214
                </template>
207 215
             </el-table-column>
208
-            <!-- <el-table-column prop="name" label="调价数量" width="100" align="center">
209
-              <template slot-scope="scope">
210
-                {{scope.row.count}}
211
-              </template> 
212
-            </el-table-column> -->
213 216
             <el-table-column prop="name" label="原进货价" width="100" align="center">
214 217
                <template slot-scope="scope">
215 218
                 {{scope.row.buy_price}}
@@ -288,26 +291,26 @@
288 291
                     </template>
289 292
                     </el-autocomplete>
290 293
                 </el-form-item>
294
+               <el-form-item label="规格">
295
+                 <el-input v-model="form.specification_name" style="width:200px" :disabled="true"></el-input>
296
+               </el-form-item>
297
+               <el-form-item label="生产厂商">
298
+                 <el-input v-model="form.manufacturer" style="width:200px" :disabled="true"></el-input>
299
+               </el-form-item>
300
+              <el-form-item label="供应商">
301
+                 <el-input v-model="form.dealer" style="width:200px" :disabled="true"></el-input>
302
+               </el-form-item>
291 303
                <el-form-item label="原价格:">
292
-                 <el-input v-model="form.packing_price" style="width:200px"></el-input>
304
+                 <el-input v-model="form.packing_price" style="width:200px" :disabled="true"></el-input>
293 305
                </el-form-item>
294 306
                <el-form-item label="现价格:">
295 307
                     <el-input v-model="form.new_price" style="width:200px"></el-input>
296 308
                 </el-form-item>
309
+               <el-form-item label="备注:">
310
+                    <el-input v-model="form.remark" style="width:200px"></el-input>
311
+                </el-form-item>
297 312
              </el-col> 
298 313
             </el-row>
299
-            <!-- <el-row>
300
-             <el-col>
301
-               <el-form-item label="调价数量:">
302
-                    <el-input v-model="form.count"  style="width:200px"></el-input>
303
-                </el-form-item>
304
-                <el-form-item label="备注:">
305
-                    <div style="display:flex;">
306
-                        <el-input v-model="form.remark"  style="width:200px"></el-input>
307
-                    </div>
308
-                </el-form-item>
309
-              </el-col>  
310
-            </el-row> -->
311 314
           </el-form>
312 315
         </span>
313 316
         <span slot="footer" class="dialog-footer">
@@ -379,7 +382,6 @@
379 382
                         placeholder="请输入耗材名称"
380 383
                         @select="handleSelect"
381 384
                         @input="changeGoodName(scope.$index)"
382
-                        :disabled="true"
383 385
                         style="width:160px;"
384 386
                     >
385 387
                         <i class="el-icon-search el-input__icon" slot="suffix"></i>
@@ -388,12 +390,21 @@
388 390
                     </template>
389 391
                     </el-autocomplete>
390 392
                 </el-form-item>
393
+               <el-form-item label="规格:">
394
+                 <el-input v-model="form.specification_name" style="width:200px" :disabled="true"></el-input>
395
+               </el-form-item>
391 396
                <el-form-item label="原价格:">
392
-                 <el-input v-model="form.packing_price" style="width:200px"></el-input>
397
+                 <el-input v-model="form.packing_price" style="width:200px" :disabled="true"></el-input>
393 398
                </el-form-item>
394 399
                <el-form-item label="现价格:">
395 400
                     <el-input v-model="form.new_price" style="width:200px"></el-input>
396 401
                 </el-form-item>
402
+               <el-form-item label="生产商">
403
+                 <el-input v-model="form.manufacturer" style="width:200px" :disabled="true"></el-input>
404
+               </el-form-item>
405
+              <el-form-item label="供应商">
406
+                 <el-input v-model="form.dealer" style="width:200px" :disabled="true"></el-input>
407
+               </el-form-item>
397 408
                 <el-form-item label="备注:">
398 409
                     <el-input v-model="form.remark" style="width:200px"></el-input>
399 410
                 </el-form-item>
@@ -534,11 +545,12 @@ export default {
534 545
           }else{
535 546
             this.form.dealer = val.dealer
536 547
           }
537
-          if(this.form.manufacturer == 0){
538
-            this.form.manufacturer = ""
539
-          }else{
540
-            this.form.manufacturer = val.manufacturer
541
-          }
548
+          // if(this.form.manufacturer == 0){
549
+          //   this.form.manufacturer = ""
550
+          // }else{
551
+          //   this.form.manufacturer = val.manufacturer
552
+          // }
553
+          this.form.manufacturer = val.manufacturer
542 554
           this.form.specification_name = val.specification_name
543 555
           this.form.remark = val.remark
544 556
           this.form.buy_price = val.buy_price
@@ -546,6 +558,10 @@ export default {
546 558
          
547 559
       },
548 560
       addPrice(){
561
+        if(this.form.new_price == ""){
562
+           this.$message.error("请输入现价格")
563
+           return
564
+        }
549 565
         var obj = {
550 566
          id:this.form.id,
551 567
          good_name:this.form.good_name,
@@ -601,9 +617,16 @@ export default {
601 617
       this.form.count = row.count
602 618
       this.form.remark = row.remark
603 619
       this.form.id = row.id
620
+      this.form.specification_name = row.specification_name
621
+      this.form.manufacturer = row.manufacturer
622
+      this.form.dealer = row.dealer
604 623
       this.editPriceDialogVisible = true  
605 624
      },
606 625
      upatePrice(){
626
+       if(this.form.new_price == ""){
627
+          this.$message.error("请输入现价格")
628
+          return false
629
+       }
607 630
        for(let i=0;i<this.tableData.length;i++){
608 631
          if(this.form.id == this.tableData[i].id){
609 632
             this.tableData[i].good_name = this.form.good_name
@@ -769,21 +792,30 @@ export default {
769 792
            }else{
770 793
              this.form.new_price = info.new_price
771 794
            }
772
-          
795
+           this.form.specification_name = info.specification_name
773 796
            this.form.packing_price = info.packing_price
774 797
            this.form.remark = info.remark
798
+           this.form.manufacturer = info.manufacturer
799
+           this.form.dealer = info.dealer
775 800
            this.modifyDialogVisible = true
776 801
          }
777 802
        })
778 803
      },
779 804
      updateStockPrice(){
805
+         if(this.form.new_price == ""){
806
+           this.$message.error("请输入现价格")
807
+           return
808
+         }
780 809
          var params = {
810
+
781 811
            new_price:this.form.new_price.toString(),
782 812
            id:this.id,
783 813
            packing_price:this.form.packing_price.toString(),
784 814
            remark:this.form.remark,
785 815
            good_id:this.form.good_id,
786 816
            good_name:this.form.good_name,
817
+           manufacturer:this.form.manufacturer,
818
+           dealer:this.form.dealer,
787 819
          }
788 820
          console.log("params",params)
789 821
        updateStockPrice(params).then(response=>{
@@ -808,6 +840,7 @@ export default {
808 840
           let params = {
809 841
             id:id,
810 842
           }
843
+          console.log("id23232322332233223",id)
811 844
           deleteStockPrice(params).then(response => {
812 845
             if (response.data.state == 1) {
813 846
               var msg = response.data.data.msg
@@ -818,6 +851,14 @@ export default {
818 851
         }).catch(() => {
819 852
           this.loading = false
820 853
         });
854
+     },
855
+     changeStartTime(val){
856
+       this.start_time = this.getTime(val)
857
+       this.getAllStockPrice()
858
+     },
859
+     changeEndTime(val){
860
+       this.end_time = this.getTime(val)
861
+       this.getAllStockPrice()
821 862
      }
822 863
     },
823 864
     created(){

+ 1 - 0
src/xt_pages/user/courseOfDisease.vue Bestand weergeven

@@ -330,6 +330,7 @@
330 330
 
331 331
       createAction: function() {
332 332
         this.new_content = this.$refs.editor.content
333
+        console.log("hhhhh2h3h232323232",this.new_content)
333 334
         if (this.new_content.length == 0) {
334 335
           this.$message.error('请填写病程内容')
335 336
           return

+ 16 - 0
src/xt_pages/user/dialysisSolution.vue Bestand weergeven

@@ -1063,6 +1063,12 @@ export default {
1063 1063
         this.addPlan.dialysis_duration,
1064 1064
         this.addPlan.anticoagulant_weichi
1065 1065
       )
1066
+
1067
+      if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1068
+         this.addPlan.anticoagulant_zongliang = ""
1069
+         this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1070
+      }
1071
+      
1066 1072
     },
1067 1073
     'addPlan.anticoagulant_weichi': function() {
1068 1074
       this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
@@ -1071,6 +1077,11 @@ export default {
1071 1077
         this.addPlan.dialysis_duration,
1072 1078
         this.addPlan.anticoagulant_weichi
1073 1079
       )
1080
+
1081
+      if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1082
+         this.addPlan.anticoagulant_zongliang = ""
1083
+         this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1084
+      }
1074 1085
     }
1075 1086
   },
1076 1087
 
@@ -1917,6 +1928,11 @@ export default {
1917 1928
         return false
1918 1929
       }
1919 1930
       this.anticoagulant = this.anticoagulantsConfit[thismode]
1931
+
1932
+      if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1933
+         this.addPlan.anticoagulant_zongliang = ""
1934
+         this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1935
+      }
1920 1936
     },
1921 1937
 
1922 1938
     addPlanModeChange() {

+ 82 - 23
src/xt_pages/user/templateSummary.vue Bestand weergeven

@@ -60,7 +60,7 @@
60 60
             <el-col :span="14">
61 61
               <div class="record_content_panel">
62 62
                 <div style="background-color:rgb(245, 247, 250)" class="title">阶段小结内容</div>
63
-                <div style="padding:10px;border-bottom:1px solid #DCDFE6;"><span v-if="editObj.record_time!=''">阶段小结时间:{{getTime(editObj.record_time)}}</span></div>
63
+                <div style="padding:10px;border-bottom:1px solid #DCDFE6;">阶段小结时间:<span v-if="editObj.record_time!=''">{{getTime(editObj.record_time)}}</span></div>
64 64
                 <!-- <div style="padding: 10px 10px 0;">阶段小结概要:</div>
65 65
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;">
66 66
                   <span style="margin-right:10px;line-height:30px;">干体重(kg):{{editObj.dry_weight}}</span>
@@ -87,7 +87,7 @@
87 87
                   <span style="margin-right:10px;line-height:30px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
88 88
                 </div> -->
89 89
                  <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:
90
-                   {{editObj.template_summary_content}}
90
+                   <span v-html="editObj.template_summary_content"></span>
91 91
                  </div>
92 92
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结化验结果:
93 93
                   <div>
@@ -109,7 +109,9 @@
109 109
                   </div>
110 110
                 </div>
111 111
 
112
-                <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:{{editObj.template_plan_content}}</div>
112
+                <!-- <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:
113
+                  <span v-html="editObj.template_plan_content"></span>
114
+                </div> -->
113 115
               </div>
114 116
             </el-col>
115 117
           </el-row>
@@ -303,9 +305,16 @@
303 305
                         :value="item.value">
304 306
                         </el-option>
305 307
                      </el-select>
306
-                     <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_summary_content"></el-input>
308
+                     <keep-alive>
309
+                        <editor ref="edit_neditor"
310
+                                id="edit_editor1"
311
+                                style="width: 800px"
312
+                                v-bind:r_content="form.template_summary_content">
313
+                        </editor>
314
+                    </keep-alive>
315
+                     <!-- <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_summary_content"></el-input> -->
307 316
                   </el-row>
308
-                  <el-row>
317
+                  <!-- <el-row>
309 318
                     <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
310 319
                      <el-select v-model="form.template_plan_id" placeholder="请选择" @change="changeTempalte">
311 320
                         <el-option
@@ -315,8 +324,15 @@
315 324
                         :value="item.value">
316 325
                         </el-option>
317 326
                      </el-select>
318
-                     <el-input style="margin:10px 0;" type="textarea"  autosize v-model="form.template_plan_content"></el-input>
319
-                  </el-row>
327
+                     <keep-alive>
328
+                        <editor ref="edit_neditorOne"
329
+                                id="edit_editor"
330
+                                style="width: 800px"
331
+                                v-bind:r_content="form.template_plan_content">
332
+                        </editor>
333
+                    </keep-alive>
334
+                    
335
+                  </el-row> -->
320 336
                   <el-row>
321 337
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
322 338
                     <el-button type="primary" @click="toInspection">选择检验检查</el-button>
@@ -561,9 +577,16 @@
561 577
                         :value="item.value">
562 578
                         </el-option>
563 579
                      </el-select>
564
-                     <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_summary_content"></el-input>
580
+                       <keep-alive>
581
+                        <editor ref="edit_neditor"
582
+                                id="edit_editor2"
583
+                                style="width: 800px"
584
+                                v-bind:r_content="form.template_summary_content">
585
+                        </editor>
586
+                      </keep-alive>
587
+                     <!-- <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_summary_content"></el-input> -->
565 588
                   </el-row>
566
-                  <el-row>
589
+                  <!-- <el-row>
567 590
                     <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
568 591
                      <el-select v-model="form.template_plan_id" placeholder="请选择" @change="changeTempalte">
569 592
                         <el-option
@@ -573,8 +596,14 @@
573 596
                         :value="item.value">
574 597
                         </el-option>
575 598
                      </el-select>
576
-                     <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_plan_content"></el-input>
577
-                  </el-row>
599
+                      <keep-alive>
600
+                        <editor ref="editorOne"
601
+                                id="edit_editor"
602
+                                style="width: 800px"
603
+                                v-bind:r_content="form.template_plan_content">
604
+                        </editor>
605
+                    </keep-alive>
606
+                  </el-row> -->
578 607
                   <el-row>
579 608
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
580 609
                     <el-button type="primary" @click="toInspection">选择检验检查</el-button>
@@ -850,7 +879,6 @@
850 879
           template_summary_id:"",
851 880
           template_summary_content:"",
852 881
           template_plan_id:"",
853
-          template_summary_content:"",
854 882
           template_inspection_id:0,
855 883
           template_inspection_content:"",
856 884
           admin_user_id:this.$store.getters.xt_user.user.id,
@@ -960,7 +988,8 @@
960 988
     },
961 989
     methods: {
962 990
       getTime(val) {
963
-         if(val == ""){
991
+         console.log("val2322332322323223",val)
992
+         if(val == "" || val == undefined){
964 993
           return ""
965 994
          }else {
966 995
           return uParseTime(val, '{y}-{m}-{d}')
@@ -1042,7 +1071,7 @@
1042 1071
           start_time:this.start_date,
1043 1072
           end_time:this.end_date,
1044 1073
         }
1045
-        console.log("世纪时间",params)
1074
+        // console.log("世纪时间",params)
1046 1075
         console.log(moment(moment(2020 + '-01-01').toDate()).quarter(2).format("YYYY-MM-DD"))
1047 1076
         getInitDataList(params).then(response=>{
1048 1077
           if(response.data.state == 1){
@@ -1253,10 +1282,18 @@
1253 1282
         if(this.form.befor_pressure == ""){
1254 1283
           this.form.befor_pressure = 0
1255 1284
         }
1285
+        if(this.form.template_plan_id == ""){
1286
+          this.form.template_plan_id = 0
1287
+        }
1288
+        if(this.form.template_summary_id == ""){
1289
+          this.form.template_summary_id = 0
1290
+        }
1256 1291
         var year = this.form.start_year+"-"+"01"+"-"+"01"
1257 1292
         console.log("年",year)
1258 1293
         var month = this.form.start_year+"-"+this.form.start_month+"-"+"01"
1259
-        console.log("月",month)
1294
+        console.log("月",this.$refs)
1295
+      
1296
+
1260 1297
          var params = {
1261 1298
             title:this.form.title,
1262 1299
             dry_weight:this.form.dry_weight.toString(),
@@ -1276,14 +1313,12 @@
1276 1313
             befor_weight:this.form.befor_weight.toString(),
1277 1314
             after_weight:this.form.after_weight.toString(),
1278 1315
             befor_pressure:this.form.befor_pressure,
1279
-            template_summary_content:this.form.template_summary_content,
1280
-            template_plan_content:this.form.template_plan_content,
1281
-            // template_inspection_content:JSON.stringify(this.form.template_inspection_content),
1316
+            template_plan_content:"",
1282 1317
             admin_user_id:this.form.admin_user_id,
1283 1318
             record_time:this.form.record_time,
1284 1319
             after_pressure:this.form.after_pressure,
1285 1320
             template_summary_id:this.form.template_summary_id,
1286
-            template_summary_content:this.form.template_summary_content,
1321
+            template_summary_content:this.$refs.edit_neditor.content,
1287 1322
             template_plan_id:this.form.template_plan_id,
1288 1323
             template_inspection_id:this.form.template_inspection_id,
1289 1324
             patient_id:parseInt(this.patient_id),
@@ -1292,6 +1327,7 @@
1292 1327
             start_year:year,
1293 1328
             start_month:month,
1294 1329
             radio:this.form.radio,
1330
+
1295 1331
          }
1296 1332
           console.log("parawm232323223",params)
1297 1333
 
@@ -1342,7 +1378,10 @@
1342 1378
               var list = response.data.data.list
1343 1379
               this.inspectionList = list
1344 1380
               this.$refs.inspection_table.setCurrentRow(this.inspectionList[0])
1345
-              this.getCurrentRecordDetail(this.inspectionList[0].id)
1381
+              if (list.length > 0) {
1382
+               this.getCurrentRecordDetail(this.inspectionList[0].id)
1383
+              }
1384
+
1346 1385
            }
1347 1386
         })
1348 1387
       },
@@ -1454,6 +1493,7 @@
1454 1493
                this.form.minute = list.minute
1455 1494
                this.form.natrium =list.natrium
1456 1495
                this.form.perfusion_apparatus= list.perfusion_apparatus
1496
+               this.form.other_count = list.other_count
1457 1497
                this.form.record_time = this.getTimeTwo(list.record_time)
1458 1498
                console.log("时间232233232",list.record_time)
1459 1499
                if(list.template_inspection_id == 0){
@@ -1469,7 +1509,6 @@
1469 1509
                  this.form.template_plan_id = list.template_plan_id
1470 1510
                }
1471 1511
 
1472
-               console.log("hhhhhhhhh",list.template_plan_id)
1473 1512
                this.form.template_summary_content =list.template_summary_content
1474 1513
                if(list.template_summary_id == 0){
1475 1514
                  this.form.template_summary_id = ""
@@ -1504,6 +1543,18 @@
1504 1543
        }
1505 1544
       },
1506 1545
       editCreation(){
1546
+        if(this.form.template_summary_id == ""){
1547
+           this.form.template_summary_id = 0
1548
+        }
1549
+        if(this.form.template_inspection_id == ""){
1550
+           this.form.template_inspection_id = 0
1551
+        }
1552
+        if(this.form.template_plan_id == ""){
1553
+           this.form.template_plan_id = 0
1554
+        }
1555
+        if(this.form.dialysis_count == ""){
1556
+            this.form.dialysis_count = 0
1557
+        }
1507 1558
         var params = {
1508 1559
             id:this.form.id,
1509 1560
             title:this.form.title,
@@ -1524,8 +1575,10 @@
1524 1575
             befor_weight:this.form.befor_weight.toString(),
1525 1576
             after_weight:this.form.after_weight.toString(),
1526 1577
             befor_pressure:this.form.befor_pressure,
1527
-            template_summary_content:this.form.template_summary_content,
1528
-            template_plan_content:this.form.template_plan_content,
1578
+            // template_summary_content:this.form.template_summary_content,
1579
+            // template_plan_content:this.form.template_plan_content,
1580
+            template_plan_content:"",
1581
+            template_summary_content:this.$refs.edit_neditor.content,
1529 1582
             admin_user_id:this.form.admin_user_id,
1530 1583
             record_time:this.form.record_time,
1531 1584
             after_pressure:this.form.after_pressure,
@@ -1714,6 +1767,12 @@
1714 1767
         console.log("val2323323223",val)
1715 1768
         if(val == "2021-02"){
1716 1769
           this.startYear = val+"-" + "28"
1770
+        }else if(val == "2021-08"){
1771
+          this.startYear = val+"-" + "31"
1772
+        }else if(val == "2021-10"){
1773
+          this.startYear = val+"-" + "31"
1774
+        }else if(val == "2021-12"){
1775
+          this.startYear = val+"-" + "31"
1717 1776
         }else{
1718 1777
           this.startYear = val+"-" + "30"
1719 1778
         }

+ 9 - 6
src/xt_pages/user/templateSummaryPrint.vue Bestand weergeven

@@ -6,7 +6,7 @@
6 6
   <div id="dialysis-print-box">
7 7
     <div class="dialysis-print-order">
8 8
       <div class="order-yy-name"></div>
9
-      <div class="order-title">{{ orgname }}&nbsp;&nbsp;&nbsp;血液透析患者诊疗阶段小结</div>
9
+      <div class="order-title">{{ orgname }}血液透析患者诊疗阶段小结</div>
10 10
       
11 11
       <div style="padding-bottom:20px;border-bottom:1px solid #000;margin-top:40px;">
12 12
          <span>姓名:{{patientList.patient.name}}</span>  
@@ -47,7 +47,9 @@
47 47
         </div>
48 48
       </div> -->
49 49
       <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
50
-        <span style="font-weight:bold;">阶段小结总结:</span><div style="line-height:24px;">{{patientList.template_summary_content}}</div>  
50
+        <span style="font-weight:bold;">阶段小结总结:</span>
51
+          <!-- {{patientList.template_summary_content}} -->
52
+          <div style="line-height:24px;" v-html="patientList.template_summary_content"></div>
51 53
       </div>
52 54
      <div style="padding:20px 0;border-bottom:1px solid #000;min-height:250px;">
53 55
         <span style="font-weight:bold;">阶段小结化验结果:</span>
@@ -69,10 +71,11 @@
69 71
           </div>
70 72
         </div> 
71 73
       </div>
72
-      <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
74
+      <!-- <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
73 75
         <span style="font-weight:bold;">阶段小结个性化方案:</span>
74
-        <div style="line-height:24px;">{{patientList.template_plan_content}}</div>
75
-      </div>
76
+      
77
+         <div v-html="patientList.template_plan_content"></div>
78
+      </div> -->
76 79
      <div style="margin-top:10px;">
77 80
        <span>记录医生:{{getPatientList(patientList.admin_user_id)}}</span>  
78 81
        <span style="margin-left:20px;">记录时间:{{getTime(patientList.record_time)}}</span>  
@@ -288,7 +291,7 @@ export default {
288 291
     printThisPage() {
289 292
         var ptime = Math.round(new Date().getTime() / 1000)
290 293
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
291
-        const style ='@media print {.dialysis-print-order{width:960px;margin:0 auto;letter-spacing:5px}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;font-weight: bold;margin: 10px 0;}'
294
+        const style ='@media print {.dialysis-print-order{width:960px;margin:0 auto;letter-spacing:5px} .dialysis-print-order p{margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;font-weight: bold;margin: 10px 0;}'
292 295
         printJS({
293 296
             printable: 'dialysis-print-box',
294 297
             type: 'html',

+ 45 - 8
src/xt_pages/workforce/components/nextTableWeeks.vue Bestand weergeven

@@ -58,7 +58,7 @@
58 58
     </div>
59 59
     <div class="cell clearfix">
60 60
       <div  class="title"><span class="name">分区</span> :</div>
61
-      <div class="time">
61
+      <!-- <div class="time">
62 62
         <ul class>
63 63
           <li
64 64
             :class="item.id == zone ? 'active' : ''"
@@ -69,7 +69,15 @@
69 69
             {{ item.name }}
70 70
           </li>
71 71
         </ul>
72
-      </div>
72
+      </div> -->
73
+       <el-select v-model="zone" multiple placeholder="请选择" @change="changeZone">
74
+          <el-option
75
+            v-for="item in zoneList"
76
+            :key="item.id"
77
+            :label="item.name"
78
+            :value="item.id">
79
+          </el-option>
80
+       </el-select>
73 81
     </div>
74 82
     <el-table
75 83
       :row-style="{ color: '#303133' }"
@@ -260,7 +268,8 @@ export default {
260 268
         {id:2,name:"未确认"},
261 269
       ],
262 270
       zone:"",
263
-      zoneList:[{id:0,name:"全部"}],
271
+      // zoneList:[{id:0,name:"全部"}],
272
+      zoneList:[],
264 273
     };
265 274
   },
266 275
   watch: {
@@ -274,8 +283,21 @@ export default {
274 283
 
275 284
   methods: {
276 285
     printAction() {
286
+       var zone = this.zone
287
+        var newArr = []
288
+        for(let i=0;i<this.zoneList.length;i++){
289
+           newArr.push(this.zoneList[i].id)
290
+        }
291
+        var arr = newArr.join(",")
292
+        var str = ""
293
+        if(this.zone == 0){
294
+           str = arr  
295
+        }
296
+        if(zone != 0){
297
+          str = zone.join(",")
298
+        }
277 299
       this.$router.push({
278
-        path: "/schedule/remind/print/next?week_type=" + this.week_type+"&week_time="+this.week_time+"&zone="+this.zone+"&prestatus="+this.pre_status
300
+        path: "/schedule/remind/print/next?week_type=" + this.week_type+"&week_time="+this.week_time+"&zone="+str+"&prestatus="+this.pre_status
279 301
       });
280 302
     },
281 303
    compare(property) {
@@ -289,13 +311,25 @@ export default {
289 311
         const start = moment().weekday(1).format('YYYY-MM-DD'); //本周一
290 312
         const end = moment().weekday(7).format('YYYY-MM-DD')
291 313
         // console.log("start",moment(start).unix())
292
-      
314
+        var zone = this.zone
315
+        var newArr = []
316
+        for(let i=0;i<this.zoneList.length;i++){
317
+           newArr.push(this.zoneList[i].id)
318
+        }
319
+        var arr = newArr.join(",")
320
+        var str = ""
321
+        if(this.zone == 0){
322
+           str = arr  
323
+        }
324
+        if(zone != 0){
325
+          str = zone.join(",")
326
+        }
293 327
         const params = {
294 328
           start_time:moment().week(moment().week() + 1).startOf('week').unix(),
295 329
           end_time:moment().week(moment().week() + 1).endOf('week').unix(),
296 330
           week_type:this.week_type,
297 331
           week_time:this.week_time,
298
-          zone:this.zone,
332
+          zone:str,
299 333
         }
300 334
         // const params = {
301 335
         //   start_time:1609603200,
@@ -546,7 +580,7 @@ export default {
546 580
          if(response.data.state == 1){
547 581
             var zonelist = response.data.data.zoneList
548 582
             this.zoneList.push(...zonelist)
549
-           
583
+            this.getNextScheduleWeekDay()
550 584
          }
551 585
       })
552 586
     },
@@ -574,6 +608,10 @@ export default {
574 608
         }
575 609
        return name
576 610
     }, 
611
+    changeZone(val){
612
+      this.zone = val
613
+      this.getNextScheduleWeekDay()
614
+    }
577 615
   },
578 616
   components: {
579 617
     WeekItem
@@ -586,7 +624,6 @@ export default {
586 624
       this.week_type = 7;
587 625
     }
588 626
     this.getAllZoneList()
589
-    this.getNextScheduleWeekDay();
590 627
     this.org_id = this.$store.getters.xt_user.org.id
591 628
    
592 629
   }

+ 68 - 12
src/xt_pages/workforce/components/tableWeeks.vue Bestand weergeven

@@ -75,10 +75,10 @@
75 75
         </div>
76 76
         <div class="cell clearfix">
77 77
             <div class="title"><span class="name">分区</span> :</div>
78
-            <div class="time">
78
+            <!-- <div class="time">
79 79
                 <ul class>
80 80
                     <li
81
-                            :class="item.id == zone ? 'active' : ''"
81
+                          :class="item.id == zone ? 'active' : ''"
82 82
                             @click="selectZoneList(item.id)"
83 83
                             v-for="item in zoneList"
84 84
                             :key="item.id"
@@ -86,7 +86,15 @@
86 86
                         {{ item.name }}
87 87
                     </li>
88 88
                 </ul>
89
-            </div>
89
+            </div> -->
90
+            <el-select v-model="zone" multiple placeholder="请选择" @change="changeZone">
91
+              <el-option
92
+                v-for="item in zoneList"
93
+                :key="item.id"
94
+                :label="item.name"
95
+                :value="item.id">
96
+              </el-option>
97
+            </el-select>
90 98
         </div>
91 99
         <el-table
92 100
                 v-loading="isloading"
@@ -437,9 +445,11 @@
437 445
           anticoagulant_zongliang: '',
438 446
           doctor_advice: ''
439 447
         },
440
-        zone: 0,
441
-        zoneList: [{ id: 0, name: '全部' }],
442
-        summarySchData: []
448
+        // zone: 0,
449
+        // zoneList: [{ id: 0, name: '全部' }],
450
+        summarySchData: [],
451
+        zone:0,
452
+        zoneList:[],
443 453
       }
444 454
     },
445 455
     watch: {
@@ -844,14 +854,40 @@
844 854
       }
845 855
       ,
846 856
       printAction() {
857
+        var zone = this.zone
858
+        var newArr = []
859
+        for(let i=0;i<this.zoneList.length;i++){
860
+           newArr.push(this.zoneList[i].id)
861
+        }
862
+        var arr = newArr.join(",")
863
+        var str = ""
864
+        if(this.zone == 0){
865
+           str = arr  
866
+        }
867
+        if(zone != 0){
868
+          str = zone.join(",")
869
+        }
847 870
         this.$router.push({
848
-          path: '/schedule/remind/print?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + this.zone
871
+          path: '/schedule/remind/print?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str
849 872
         })
850 873
       }
851 874
       ,
852 875
       signPrint() {
876
+        var zone = this.zone
877
+        var newArr = []
878
+        for(let i=0;i<this.zoneList.length;i++){
879
+           newArr.push(this.zoneList[i].id)
880
+        }
881
+        var arr = newArr.join(",")
882
+        var str = ""
883
+        if(this.zone == 0){
884
+           str = arr  
885
+        }
886
+        if(zone != 0){
887
+          str = zone.join(",")
888
+        }
853 889
         this.$router.push({
854
-          path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + this.zone + '&prestatus=' + this.pre_status
890
+          path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status
855 891
         })
856 892
       }
857 893
       ,
@@ -915,11 +951,26 @@
915 951
       ,
916 952
 
917 953
       getScheduleList() {
954
+        
955
+        var zone = this.zone
956
+        var newArr = []
957
+        for(let i=0;i<this.zoneList.length;i++){
958
+           newArr.push(this.zoneList[i].id)
959
+        }
960
+        var arr = newArr.join(",")
961
+        var str = ""
962
+        if(this.zone == 0){
963
+           str = arr  
964
+        }
965
+        if(zone != 0){
966
+          str = zone.join(",")
967
+        }
918 968
         const params = {
919 969
           week_type: this.week_type,
920 970
           week_time: this.week_time,
921
-          zone: this.zone
971
+          zone: str,
922 972
         }
973
+        console.log("param",params)
923 974
         this.scheduleData = []
924 975
         this.isloading = true
925 976
         getScheduleList(params).then(response => {
@@ -1433,7 +1484,7 @@
1433 1484
           if (response.data.state == 1) {
1434 1485
             var zonelist = response.data.data.zoneList
1435 1486
             this.zoneList.push(...zonelist)
1436
-
1487
+            this.getScheduleList()
1437 1488
           }
1438 1489
         })
1439 1490
       }
@@ -1464,6 +1515,10 @@
1464 1515
         }
1465 1516
         console.log('name', name)
1466 1517
         return name
1518
+      },
1519
+      changeZone(val){
1520
+        this.zone = val
1521
+        this.getScheduleList()
1467 1522
       }
1468 1523
     },
1469 1524
     components: {
@@ -1471,6 +1526,7 @@
1471 1526
     }
1472 1527
     ,
1473 1528
     created() {
1529
+      this.getAllZoneList()
1474 1530
       this.modeOptions = this.$store.getters.treatment_mode
1475 1531
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
1476 1532
       this.week_type = new Date().getDay()
@@ -1478,8 +1534,8 @@
1478 1534
         this.week_type = 7
1479 1535
       }
1480 1536
       this.org_id = this.$store.getters.xt_user.org.id
1481
-      this.getScheduleList()
1482
-      this.getAllZoneList()
1537
+     
1538
+     
1483 1539
     }
1484 1540
   }
1485 1541
 </script>

+ 2 - 2
src/xt_pages/workforce/remind_print_setting.vue Bestand weergeven

@@ -28,7 +28,7 @@
28 28
                 </div> 
29 29
                 <div>用量:  
30 30
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
31
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
31
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
32 32
                   <span v-if="main_collection.dialysissolution.anticoagulant == 3">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
33 33
                   <span v-if="main_collection.dialysissolution.anticoagulant == 4">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
34 34
                   <span v-if="main_collection.dialysissolution.anticoagulant == 5">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
@@ -209,7 +209,7 @@
209 209
 
210 210
       },
211 211
       printAction: function() {
212
-        const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
212
+        const style = '@media print {.signPrint{margin-left:30px;} .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } @page {margin-top:10px;}}'
213 213
 
214 214
         printJS({
215 215
           printable: 'print_content',