Browse Source

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

csx 3 years ago
parent
commit
a847060aec
34 changed files with 5034 additions and 364 deletions
  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 View File

459
     params: params
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 View File

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
   return request({
506
   return request({
507
     url: '/api/patient/savecreationinspection',
507
     url: '/api/patient/savecreationinspection',
508
-    method: 'get',
509
-    params: params
508
+    method: 'post',
509
+    data: data
510
   })
510
   })
511
 }
511
 }
512
 
512
 
534
   })
534
   })
535
 }
535
 }
536
 
536
 
537
-export function UpdateTemplateSummary(params) {
537
+export function UpdateTemplateSummary(data) {
538
   return request({
538
   return request({
539
     url: '/api/patient/updatetemplatesummary',
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 View File

835
   })
835
   })
836
 }
836
 }
837
 
837
 
838
-export function deleteStockPrice(id, params) {
838
+export function deleteStockPrice(params) {
839
   return request({
839
   return request({
840
-    url: '/api/stock/deletestockprice?id=' + id,
840
+    url: '/api/stock/deletestockprice',
841
     method: 'Get',
841
     method: 'Get',
842
     params: params
842
     params: params
843
   })
843
   })
938
     params: params
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 View File

435
         noCache: true
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
       path: '/dialysis/print/batch/thirtyThree_one',
451
       path: '/dialysis/print/batch/thirtyThree_one',
440
       component: () =>
452
       component: () =>

+ 21 - 25
src/utils/tools.js View File

153
 }
153
 }
154
 
154
 
155
 export function calculateAnticoagulantZL(type, shouji, shichang, weichi) {
155
 export function calculateAnticoagulantZL(type, shouji, shichang, weichi) {
156
- 
156
+  console.log('t', type)
157
   var t = 0.5
157
   var t = 0.5
158
   if (type == 1) {
158
   if (type == 1) {
159
     t = 0.5
159
     t = 0.5
168
   if (isNaN(shouji) || isNaN(shichang) || isNaN(weichi)) {
168
   if (isNaN(shouji) || isNaN(shichang) || isNaN(weichi)) {
169
     return 0
169
     return 0
170
   }
170
   }
171
- console.log((shouji + (shichang - t) * weichi).toFixed(1))
171
+  console.log((shouji + (shichang - t) * weichi).toFixed(1))
172
   return (shouji + (shichang - t) * weichi).toFixed(1)
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
   if (/(y+)/.test(format)) {
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
+}

File diff suppressed because it is too large
+ 1851 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_fortyOne.vue


+ 12 - 0
src/xt_pages/dialysis/bloodPresssWatch.vue View File

279
           >批量打印</el-button
279
           >批量打印</el-button
280
         >
280
         >
281
       </template>
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
     </div>
292
     </div>
283
     <div class="app-container">
293
     <div class="app-container">
284
       <!-- <div class="filter-container">
294
       <!-- <div class="filter-container">
869
         this.$router.push({ path: "/dialysis/print/batch/thirtyNine" });
879
         this.$router.push({ path: "/dialysis/print/batch/thirtyNine" });
870
       } else if (this.template_id == 40) {
880
       } else if (this.template_id == 40) {
871
         this.$router.push({ path: "/dialysis/print/batch/forty" });
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
     batchPrintActionOne: function() {
886
     batchPrintActionOne: function() {

+ 1 - 1
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue View File

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

+ 24 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

2118
         this.isVisibility = false
2118
         this.isVisibility = false
2119
       },
2119
       },
2120
       changeThisAnticoagulant: function(val) {
2120
       changeThisAnticoagulant: function(val) {
2121
-
2121
+        console.log("val",val)
2122
         var thismode = val
2122
         var thismode = val
2123
         if (isNaN(thismode) || thismode <= 0) {
2123
         if (isNaN(thismode) || thismode <= 0) {
2124
           return false
2124
           return false
2145
           this.anticoagulant.weichi_unit = 'ml'
2145
           this.anticoagulant.weichi_unit = 'ml'
2146
           this.anticoagulant.zongliang_unit = 'ml'
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
       handleCommit: function() {
2159
       handleCommit: function() {
2150
         if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
2160
         if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
3445
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3455
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3446
           this.dialysisPrescription.anticoagulant_zongliang = ''
3456
           this.dialysisPrescription.anticoagulant_zongliang = ''
3447
         }
3457
         }
3448
-
3458
+        
3449
       },
3459
       },
3450
       'dialysisPrescription.anticoagulant_shouji': function() {
3460
       'dialysisPrescription.anticoagulant_shouji': function() {
3451
         let dialysis_duration_minute = 0
3461
         let dialysis_duration_minute = 0
3477
           this.dialysisPrescription.anticoagulant_zongliang = ''
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
       'dialysisPrescription.anticoagulant_weichi': function() {
3496
       'dialysisPrescription.anticoagulant_weichi': function() {
3482
         let dialysis_duration_minute = 0
3497
         let dialysis_duration_minute = 0
3502
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3517
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3503
           this.dialysisPrescription.anticoagulant_zongliang = ''
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
       'prescription.id': {
3528
       'prescription.id': {
3509
         immediate: true,
3529
         immediate: true,

+ 2 - 2
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

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

+ 1 - 1
src/xt_pages/dialysis/details/dialysisMonitoring.vue View File

31
           <th v-if="isShow('透析液流量')" width="92px">透析液流量(ml/h)</th>
31
           <th v-if="isShow('透析液流量')" width="92px">透析液流量(ml/h)</th>
32
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
32
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
33
           <th v-if="isShow('抗凝剂')" width="92px">抗凝剂</th>
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
           <th v-if="isShow('血温监测')" width="92px">血温监测</th>
35
           <th v-if="isShow('血温监测')" width="92px">血温监测</th>
36
           <th v-if="isShow('尿素监测')" width="92px">尿素监测</th>
36
           <th v-if="isShow('尿素监测')" width="92px">尿素监测</th>
37
           <th v-if="isShow('血浓量')" width="92px">血浓量</th>
37
           <th v-if="isShow('血浓量')" width="92px">血浓量</th>

+ 26 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

573
           >打印</el-button
573
           >打印</el-button
574
         >
574
         >
575
       </template>
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
     </div>
586
     </div>
577
     <div class="app-container" style="min-height:0;">
587
     <div class="app-container" style="min-height:0;">
578
       <!--<div class="order-print-btn"-->
588
       <!--<div class="order-print-btn"-->
858
             v-if="org_template_info.template_id == 41"
868
             v-if="org_template_info.template_id == 41"
859
           >
869
           >
860
           </DialysisPrintOrderFortyOne>
870
           </DialysisPrintOrderFortyOne>
871
+          <DialysisPrintOrderFortyTwo
872
+            v-bind:childResponse="childResponse"
873
+            v-if="org_template_info.template_id == 42"
874
+          >
875
+          </DialysisPrintOrderFortyTwo>
861
         </div>
876
         </div>
862
       </el-container>
877
       </el-container>
863
     </div>
878
     </div>
918
 import DialysisPrintOrderThirtyNine from "./template/DialysisPrintOrderThirtyNine";
933
 import DialysisPrintOrderThirtyNine from "./template/DialysisPrintOrderThirtyNine";
919
 import DialysisPrintOrderForty from "./template/DialysisPrintOrderForty";
934
 import DialysisPrintOrderForty from "./template/DialysisPrintOrderForty";
920
 import DialysisPrintOrderFortyOne from "./template/DialysisPrintOrderFortyOne";
935
 import DialysisPrintOrderFortyOne from "./template/DialysisPrintOrderFortyOne";
936
+import DialysisPrintOrderFortyTwo from "./template/DialysisPrintOrderFortyTwo";
921
 export default {
937
 export default {
922
   name: "dialysisPrintOrder",
938
   name: "dialysisPrintOrder",
923
   components: {
939
   components: {
940
+    DialysisPrintOrderFortyTwo,
924
     DialysisPrintOrderFortyOne,
941
     DialysisPrintOrderFortyOne,
925
     DialysisPrintOrderForty,
942
     DialysisPrintOrderForty,
926
     DialysisPrintOrderThirtyNine,
943
     DialysisPrintOrderThirtyNine,
1141
         '@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;}';
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
       const style9 =
1159
       const style9 =
1143
         '@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;}';
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
       if (this.org_template_info.template_id == 1) {
1164
       if (this.org_template_info.template_id == 1) {
1146
         printJS({
1165
         printJS({
1415
           style: style9,
1434
           style: style9,
1416
           scanStyles: false
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
     printThisOnePage() {
1446
     printThisOnePage() {

File diff suppressed because it is too large
+ 1717 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderFortyTwo.vue


+ 11 - 1
src/xt_pages/management/components/UserForm.vue View File

1041
         { id: 1, name: "0.22%季铵盐" },
1041
         { id: 1, name: "0.22%季铵盐" },
1042
         { id: 2, name: "500mg/l含氯消毒剂" },
1042
         { id: 2, name: "500mg/l含氯消毒剂" },
1043
         { id: 3, name: "1000mg/l含氯消毒剂" },
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
       sterilizeType: [
1048
       sterilizeType: [
1292
             if (information[index].disinfectant_type === 4) {
1293
             if (information[index].disinfectant_type === 4) {
1293
               information[index].disinfectant_type = "1500mg/l含氯消毒剂";
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
             if (information[index].disinfection === 1) {
1300
             if (information[index].disinfection === 1) {
1297
               information[index].disinfection = "已消毒";
1301
               information[index].disinfection = "已消毒";
1817
             if (information[index].disinfectant_type === 4) {
1821
             if (information[index].disinfectant_type === 4) {
1818
               information[index].disinfectant_type = "1500mg/l含氯消毒剂";
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
             if (information[index].disinfection === 0) {
1828
             if (information[index].disinfection === 0) {
1822
               information[index].disinfection = "";
1829
               information[index].disinfection = "";
2103
             if (information[index].disinfectant_type === 4) {
2110
             if (information[index].disinfectant_type === 4) {
2104
               information[index].disinfectant_type = "1500mg/l含氯消毒剂";
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
             if (information[index].disinfection === 0) {
2117
             if (information[index].disinfection === 0) {
2108
               information[index].disinfection = "";
2118
               information[index].disinfection = "";

+ 1 - 1
src/xt_pages/management/home.vue View File

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

+ 27 - 15
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

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

+ 98 - 50
src/xt_pages/outpatientCharges/statementPrint.vue View File

13
       </template>
13
       </template>
14
 
14
 
15
       <div class='dialysisPage' style="padding-top:40px;">
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
           <printTwo :info="info" v-if="org_id == 9990"></printTwo>
17
           <printTwo :info="info" v-if="org_id == 9990"></printTwo>
18
           <printThree :info="info" :paramsObj="paramsObj" :balanceAccounts="balanceAccounts" v-if="org_id == 10138"></printThree>
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
         </div>
20
         </div>
21
         <printOne :info="info" v-else></printOne>
21
         <printOne :info="info" v-else></printOne>
22
       </div>
22
       </div>
300
           id: obj.order_id,
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
                   num++
334
                   num++
339
                 }else{
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
       }else {
405
       }else {

+ 156 - 18
src/xt_pages/outpatientCharges/statementTemplate/printFour.vue View File

1
 <template>
1
 <template>
2
     <div>
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
             <div v-for='(i,pageIndex) in pageArr.length' :key="pageIndex">
4
             <div v-for='(i,pageIndex) in pageArr.length' :key="pageIndex">
5
                 <div class="printTitle">血液透析中心医药费收据及收费项目清单</div>
5
                 <div class="printTitle">血液透析中心医药费收据及收费项目清单</div>
6
                 <div class="infoMain">
6
                 <div class="infoMain">
133
             </div>
133
             </div>
134
 
134
 
135
         </div>
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
     </div>
241
     </div>
137
 
242
 
138
 </template>
243
 </template>
139
 <script>
244
 <script>
140
   import axios from 'axios'
245
   import axios from 'axios'
141
   import { getChargePrint } from '@/api/project/project'
246
   import { getChargePrint } from '@/api/project/project'
247
+  import { uParseTime } from '@/utils/tools'
142
 
248
 
143
   export default {
249
   export default {
144
     data() {
250
     data() {
166
       }
272
       }
167
     },
273
     },
168
     props: {
274
     props: {
169
-      info: Object
275
+      paramsObj: Object,
276
+      info: Object,
277
+      balanceAccounts:Object
170
     },
278
     },
171
     methods: {
279
     methods: {
172
       getItemName(number) {
280
       getItemName(number) {
278
 
386
 
279
       },
387
       },
280
       getPage(){
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
     created() {
433
     created() {
306
             this.getPage()
440
             this.getPage()
307
         },
441
         },
308
         deep: true,
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 View File

2655
 
2655
 
2656
       comfirm() {
2656
       comfirm() {
2657
 
2657
 
2658
-        if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
2658
+        if (this.curDrugs.length > 0) {
2659
           if (this.$store.getters.xt_user.org_id == 10138) {
2659
           if (this.$store.getters.xt_user.org_id == 10138) {
2660
             for (let i = 0; i < this.curDrugs.length; i++) {
2660
             for (let i = 0; i < this.curDrugs.length; i++) {
2661
               if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
2661
               if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
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
           if (this.$store.getters.xt_user.org_id == 10138) {
2698
           if (this.$store.getters.xt_user.org_id == 10138) {
2672
             for (let i = 0; i < this.curDrugs.length; i++) {
2699
             for (let i = 0; i < this.curDrugs.length; i++) {
2673
               if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
2700
               if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
2911
                 cus_total: 1,
2938
                 cus_total: 1,
2912
                 unit: project[i].unit,
2939
                 unit: project[i].unit,
2913
                 type: 2,
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
               this.tabProject.push(obj)
2945
               this.tabProject.push(obj)
2933
                 medical_code: good_info[i].medical_insurance_number,
2961
                 medical_code: good_info[i].medical_insurance_number,
2934
                 unit: this.getGoodUnit(good_info[i].good_unit),
2962
                 unit: this.getGoodUnit(good_info[i].good_unit),
2935
                 type: 3,
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
               this.tabProject.push(obj)
2967
               this.tabProject.push(obj)
2939
             }
2968
             }
3027
                   remark: '',
3056
                   remark: '',
3028
                   medical_code: project[i].project.medical_code,
3057
                   medical_code: project[i].project.medical_code,
3029
                   unit: project[i].project.unit,
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
                 if (obj.cus_total == 0 || obj.cus_total == undefined) {
3062
                 if (obj.cus_total == 0 || obj.cus_total == undefined) {
3033
                   obj.cus_total = 1
3063
                   obj.cus_total = 1
3056
                   remark: '',
3086
                   remark: '',
3057
                   medical_code: project[i].good_info.medical_insurance_number,
3087
                   medical_code: project[i].good_info.medical_insurance_number,
3058
                   unit: project[i].good_info.unit,
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
                 if (obj.cus_total == 0 || obj.cus_total == undefined) {
3092
                 if (obj.cus_total == 0 || obj.cus_total == undefined) {
3062
                   obj.cus_total = 1
3093
                   obj.cus_total = 1

+ 162 - 60
src/xt_pages/stock/drugs/drugDamaged.vue View File

41
             <div>
41
             <div>
42
                 <el-button size="small" type="primary" @click="dialogVisible = true">新增</el-button>
42
                 <el-button size="small" type="primary" @click="dialogVisible = true">新增</el-button>
43
                 <el-button size="small" type="primary" @click="toCheck">核对</el-button>
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
             </div>
46
             </div>
47
         </div>
47
         </div>
48
         <el-table :data="tableList" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"  @selection-change="changePrice">
48
         <el-table :data="tableList" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"  @selection-change="changePrice">
57
                   {{getTime(scope.row.start_time)}}
57
                   {{getTime(scope.row.start_time)}}
58
                 </template>
58
                 </template>
59
             </el-table-column>
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
             <el-table-column prop="name" label="报损数量" align="center">
70
             <el-table-column prop="name" label="报损数量" align="center">
61
                <template slot-scope="scope">
71
                <template slot-scope="scope">
62
                   {{scope.row.count}}
72
                   {{scope.row.count}}
83
                 <span v-if="scope.row.checker_status == 2">未核对</span>
93
                 <span v-if="scope.row.checker_status == 2">未核对</span>
84
               </template>   
94
               </template>   
85
             </el-table-column>
95
             </el-table-column>
86
-            <el-table-column label="操作" align="center">
96
+            <el-table-column label="操作" align="center" width="200">
87
                 <template slot-scope="scope">
97
                 <template slot-scope="scope">
88
                   <el-button type="primary" size="small" @click="moDrugDamage(scope.row.id,scope.row.checker_status)">编辑</el-button>
98
                   <el-button type="primary" size="small" @click="moDrugDamage(scope.row.id,scope.row.checker_status)">编辑</el-button>
89
                   <el-button type="danger" size="small" @click="deleteDrugDamage(scope.row.id,scope.row.checker_status,scope.$index)">删除</el-button>
99
                   <el-button type="danger" size="small" @click="deleteDrugDamage(scope.row.id,scope.row.checker_status,scope.$index)">删除</el-button>
102
         </el-pagination>
112
         </el-pagination>
103
     </div>
113
     </div>
104
     <el-dialog
114
     <el-dialog
105
-        title="库房报损"
115
+        title="药品报损"
106
         :visible.sync="dialogVisible"
116
         :visible.sync="dialogVisible"
107
         width="1200px">
117
         width="1200px">
108
         <el-form :model="form" class="modifyDialog" label-width="120px">
118
         <el-form :model="form" class="modifyDialog" label-width="120px">
109
             <el-form-item label="药品ID">
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
             </el-form-item>
121
             </el-form-item>
112
             <el-form-item label="药品名称">
122
             <el-form-item label="药品名称">
113
               <el-autocomplete
123
               <el-autocomplete
119
                   placeholder="请输入药品名称"
129
                   placeholder="请输入药品名称"
120
                   @select="handleSelect"
130
                   @select="handleSelect"
121
                   @input="changeGoodName(scope.$index)"
131
                   @input="changeGoodName(scope.$index)"
122
-                  style="width:160px;"
132
+                  style="width:260px;"
123
                   >
133
                   >
124
                   <i class="el-icon-search el-input__icon" slot="suffix"></i>
134
                   <i class="el-icon-search el-input__icon" slot="suffix"></i>
125
                   <template slot-scope="{ item }">
135
                   <template slot-scope="{ item }">
140
             </el-form-item>
150
             </el-form-item>
141
          
151
          
142
             <el-form-item label="单位">
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
             </el-form-item>
154
             </el-form-item>
153
             <el-form-item label="进货价">
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
             </el-form-item>
157
             </el-form-item>
156
             <el-form-item label="零售价">
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
             </el-form-item>
160
             </el-form-item>
159
             <el-form-item label="报损数量">
161
             <el-form-item label="报损数量">
160
                 <el-input v-model="form.count"></el-input>
162
                 <el-input v-model="form.count"></el-input>
161
             </el-form-item>
163
             </el-form-item>
162
             <el-form-item label="库存">
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
             </el-form-item>
166
             </el-form-item>
165
             <el-form-item label="产地">
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
             </el-form-item>
169
             </el-form-item>
168
             <el-form-item label="批准文号">
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
             </el-form-item>
172
             </el-form-item>
171
             <el-form-item label="生产厂商">
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
             </el-form-item>
175
             </el-form-item>
174
             <el-form-item label="备注">
176
             <el-form-item label="备注">
175
                 <div style="display:flex;">
177
                 <div style="display:flex;">
214
                 {{scope.row.retail_price}}
216
                 {{scope.row.retail_price}}
215
               </template>
217
               </template>
216
             </el-table-column>
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
             <el-table-column  prop="name"  label="生产厂商"  width="100" align="center">
220
             <el-table-column  prop="name"  label="生产厂商"  width="100" align="center">
223
               <template slot-scope="scope">
221
               <template slot-scope="scope">
224
                 {{scope.row.manufacturer}}
222
                 {{scope.row.manufacturer}}
245
             label="操作">
243
             label="操作">
246
                 <template slot-scope="scope">
244
                 <template slot-scope="scope">
247
                     <el-button type="text" size="small" @click="toDel(scope.$index)">删除</el-button>
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
                 </template>
247
                 </template>
250
             </el-table-column>
248
             </el-table-column>
251
         </el-table>
249
         </el-table>
257
    
255
    
258
 
256
 
259
     <el-dialog
257
     <el-dialog
260
-        title="耗材盘点核对"
258
+        title="药品盘点核对"
261
         :visible.sync="checkDialogVisible"
259
         :visible.sync="checkDialogVisible"
262
         width="30%"
260
         width="30%"
263
         >
261
         >
305
         width="1200px">
303
         width="1200px">
306
         <el-form :model="form" class="modifyDialog" label-width="120px">
304
         <el-form :model="form" class="modifyDialog" label-width="120px">
307
             <el-form-item label="药品ID">
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
             </el-form-item>
307
             </el-form-item>
310
             <el-form-item label="药品名称">
308
             <el-form-item label="药品名称">
311
             <el-autocomplete
309
             <el-autocomplete
325
                 </template>
323
                 </template>
326
                 </el-autocomplete>  
324
                 </el-autocomplete>  
327
             </el-form-item>
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
             <el-form-item label="单位">
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
             </el-form-item>
341
             </el-form-item>
334
             <el-form-item label="进货价">
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
             </el-form-item>
344
             </el-form-item>
337
             <el-form-item label="零售价">
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
             </el-form-item>
347
             </el-form-item>
340
             <el-form-item label="报损数量">
348
             <el-form-item label="报损数量">
341
                 <el-input v-model="form.count"></el-input>
349
                 <el-input v-model="form.count"></el-input>
342
             </el-form-item>
350
             </el-form-item>
343
             <el-form-item label="库存">
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
             </el-form-item>
353
             </el-form-item>
346
             <el-form-item label="产地">
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
             </el-form-item>
356
             </el-form-item>
349
             <el-form-item label="批准文号">
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
             </el-form-item>
359
             </el-form-item>
352
             <el-form-item label="生产厂商">
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
             </el-form-item>
362
             </el-form-item>
355
             <el-form-item label="备注">
363
             <el-form-item label="备注">
356
                 <div style="display:flex;">
364
                 <div style="display:flex;">
357
                     <el-input v-model="form.remark"></el-input>
365
                     <el-input v-model="form.remark"></el-input>
358
-                    <el-button style="margin-left:5px;" type="primary" @click="addPrice">添加</el-button>
359
                 </div>
366
                 </div>
360
             </el-form-item>
367
             </el-form-item>
361
         </el-form>
368
         </el-form>
373
         width="1200px">
380
         width="1200px">
374
         <el-form :model="form" class="modifyDialog" label-width="120px">
381
         <el-form :model="form" class="modifyDialog" label-width="120px">
375
             <el-form-item label="药品ID">
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
             </el-form-item>
384
             </el-form-item>
378
             <el-form-item label="药品名称">
385
             <el-form-item label="药品名称">
379
             <el-autocomplete
386
             <el-autocomplete
397
                 <el-input v-model="form.name"></el-input>
404
                 <el-input v-model="form.name"></el-input>
398
             </el-form-item> -->
405
             </el-form-item> -->
399
             <el-form-item label="单位">
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
             </el-form-item>
408
             </el-form-item>
402
             <el-form-item label="进货价">
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
             </el-form-item>
411
             </el-form-item>
405
             <el-form-item label="零售价">
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
             </el-form-item>
414
             </el-form-item>
408
             <el-form-item label="报损数量">
415
             <el-form-item label="报损数量">
409
                 <el-input v-model="form.count"></el-input>
416
                 <el-input v-model="form.count"></el-input>
410
             </el-form-item>
417
             </el-form-item>
411
             <el-form-item label="库存">
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
             </el-form-item>
420
             </el-form-item>
414
             <el-form-item label="产地">
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
             </el-form-item>
423
             </el-form-item>
417
             <el-form-item label="批准文号">
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
             </el-form-item>
426
             </el-form-item>
420
             <el-form-item label="生产厂商">
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
             </el-form-item>
429
             </el-form-item>
423
             <el-form-item label="备注">
430
             <el-form-item label="备注">
424
                 <div style="display:flex;">
431
                 <div style="display:flex;">
425
                     <el-input v-model="form.remark"></el-input>
432
                     <el-input v-model="form.remark"></el-input>
426
-                    <el-button style="margin-left:5px;" type="primary" @click="addPrice">添加</el-button>
427
                 </div>
433
                 </div>
428
             </el-form-item>
434
             </el-form-item>
429
         </el-form>
435
         </el-form>
439
 
445
 
440
 <script>
446
 <script>
441
 import BreadCrumb from "../../components/bread-crumb";
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
 import { getDrugBatchNumber } from  "@/api/drug/drug_stock"
449
 import { getDrugBatchNumber } from  "@/api/drug/drug_stock"
444
 import { uParseTime } from '@/utils/tools'
450
 import { uParseTime } from '@/utils/tools'
445
 export default {
451
 export default {
488
                 warehouse_info_id:"",
494
                 warehouse_info_id:"",
489
                 expiry_date:"",
495
                 expiry_date:"",
490
                 product_date:"",
496
                 product_date:"",
497
+                stock_max_number:"",
498
+                stock_min_number:"",
491
             },
499
             },
492
             drugList:[],
500
             drugList:[],
493
             manufacturerList:[],
501
             manufacturerList:[],
508
             modifyDialogVisible:false,
516
             modifyDialogVisible:false,
509
             id:"",
517
             id:"",
510
             numberList:[],
518
             numberList:[],
519
+            index:0,
511
         }
520
         }
512
     },
521
     },
513
     methods:{
522
     methods:{
514
         search(){
523
         search(){
515
-
524
+          this.getlist()
516
         },
525
         },
517
         print(){
526
         print(){
518
           if(this.ids == ""){
527
           if(this.ids == ""){
596
                 this.form.dealer = val.dealer
605
                 this.form.dealer = val.dealer
597
                 this.form.manufacturer = val.manufacturer
606
                 this.form.manufacturer = val.manufacturer
598
                 this.form.remark = val.remark
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
                 this.form.last_price = val.last_price
612
                 this.form.last_price = val.last_price
603
                 this.form.expiry_date = val.expiry_date
613
                 this.form.expiry_date = val.expiry_date
604
                 this.form.product_date = val.product_date
614
                 this.form.product_date = val.product_date
605
                 this.form.specification_name =  val.dose + val.dose_unit +"*"+val.min_number+val.min_unit+"/"+val.max_unit
615
                 this.form.specification_name =  val.dose + val.dose_unit +"*"+val.min_number+val.min_unit+"/"+val.max_unit
606
                 this.form.drug_origin_place = val.drug_origin_place
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
         changeNumber(val){
641
         changeNumber(val){
630
           console.log("val",val)
642
           console.log("val",val)
631
           this.form.warehousing_info_id = val
643
           this.form.warehousing_info_id = val
644
+          this.getDrugWarehouseInfoTotal(val)
632
         },
645
         },
633
         getDrugBatchNumber(id){
646
         getDrugBatchNumber(id){
634
             var params = {
647
             var params = {
653
          }
666
          }
654
         },
667
         },
655
         addPrice(){
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
           var obj = {
682
           var obj = {
657
             drug_id:this.form.drug_id,
683
             drug_id:this.form.drug_id,
658
             drug_name:this.form.drug_name,
684
             drug_name:this.form.drug_name,
674
             specification_name:this.form.specification_name,
700
             specification_name:this.form.specification_name,
675
             drug_origin_place:this.form.drug_origin_place,
701
             drug_origin_place:this.form.drug_origin_place,
676
             warehousing_info_id:this.form.warehousing_info_id,
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
           this.tableData.push(obj)   
708
           this.tableData.push(obj)   
680
           this.form.drug_name = ""
709
           this.form.drug_name = ""
694
           this.form.product_date = ""
723
           this.form.product_date = ""
695
           this.form.specification_name = ""
724
           this.form.specification_name = ""
696
           this.form.drug_origin_place = "" 
725
           this.form.drug_origin_place = "" 
726
+          this.form.total = ""
697
         },
727
         },
698
         saveDrugDamage(){
728
         saveDrugDamage(){
699
-          console.log("hhhh",this.tableData)
700
-          console.log("oooo",this.numberList)
729
+        
701
           for(let i=0;i<this.tableData.length;i++){
730
           for(let i=0;i<this.tableData.length;i++){
702
               this.tableData[i].retail_price = this.tableData[i].retail_price.toString()
731
               this.tableData[i].retail_price = this.tableData[i].retail_price.toString()
703
               this.tableData[i].last_price = this.tableData[i].last_price.toString()
732
               this.tableData[i].last_price = this.tableData[i].last_price.toString()
704
               this.tableData[i].new_price = this.tableData[i].new_price.toString()
733
               this.tableData[i].new_price = this.tableData[i].new_price.toString()
705
               this.tableData[i].count =  parseInt(this.tableData[i].count)
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
               if(this.tableData[i].expiry_date == undefined){
745
               if(this.tableData[i].expiry_date == undefined){
707
                 this.tableData[i].expiry_date  = 0
746
                 this.tableData[i].expiry_date  = 0
708
               }else{
747
               }else{
723
             tableData:this.tableData,
762
             tableData:this.tableData,
724
           }
763
           }
725
           console.log("parasm222",params)
764
           console.log("parasm222",params)
726
- 
765
+   
727
         saveDrugDamage(params).then(response=>{
766
         saveDrugDamage(params).then(response=>{
728
             if(response.data.state == 1){
767
             if(response.data.state == 1){
729
             var msg =  response.data.data.msg
768
             var msg =  response.data.data.msg
741
           page:this.page, 
780
           page:this.page, 
742
           start_time:this.start_time,
781
           start_time:this.start_time,
743
           end_time:this.end_time,
782
           end_time:this.end_time,
783
+          keyword:this.searchKey,
744
         }
784
         }
745
         getDrugDamageList(params).then(response=>{
785
         getDrugDamageList(params).then(response=>{
746
            if(response.data.state == 1){
786
            if(response.data.state == 1){
798
      toDel(index){
838
      toDel(index){
799
        this.tableList.splice(index,1)
839
        this.tableList.splice(index,1)
800
      },
840
      },
801
-     toEdit(val){
841
+     toEdit(val,index){
842
+       this.index = index
802
        this.form.drug_name = val.drug_name
843
        this.form.drug_name = val.drug_name
803
        this.form.drug_origin_place = val.drug_origin_place
844
        this.form.drug_origin_place = val.drug_origin_place
804
        this.form.last_price = val.last_price
845
        this.form.last_price = val.last_price
810
        this.form.remark = val.remark
851
        this.form.remark = val.remark
811
        this.form.id = val.id
852
        this.form.id = val.id
812
        this.form.count = val.count
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
        this.editDialogVisible = true
858
        this.editDialogVisible = true
814
      },
859
      },
815
      EditDrugDamage(){
860
      EditDrugDamage(){
823
             this.tableData[i].retail_price = this.form.retail_price
868
             this.tableData[i].retail_price = this.form.retail_price
824
             this.tableData[i].remark = this.form.remark
869
             this.tableData[i].remark = this.form.remark
825
             this.tableData[i].count = this.form.count
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
        this.editDialogVisible = false
891
        this.editDialogVisible = false
844
        getDrugDamageDetail(id).then(response=>{
907
        getDrugDamageDetail(id).then(response=>{
845
          if(response.data.state ==1){
908
          if(response.data.state ==1){
846
            var detail = response.data.data.detail
909
            var detail = response.data.data.detail
910
+           console.log("系准给",detail)
847
            this.form.drug_id = detail.drug_id
911
            this.form.drug_id = detail.drug_id
848
            this.form.drug_name = detail.drug_name
912
            this.form.drug_name = detail.drug_name
849
            this.form.drug_origin_place = detail.drug_origin_place
913
            this.form.drug_origin_place = detail.drug_origin_place
855
            this.form.remark = detail.remark
919
            this.form.remark = detail.remark
856
            this.form.count = detail.count
920
            this.form.count = detail.count
857
            this.id = detail.id
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
            this.modifyDialogVisible = true
927
            this.modifyDialogVisible = true
860
          }
928
          }
861
        })
929
        })
862
      },
930
      },
863
      modifyDrugDamage(){
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
          var params = {
942
          var params = {
865
            drug_id:this.form.drug_id,
943
            drug_id:this.form.drug_id,
866
            drug_name:this.form.drug_name,
944
            drug_name:this.form.drug_name,
874
            count:parseInt(this.form.count),
952
            count:parseInt(this.form.count),
875
            warehousing_unit:this.form.warehousing_unit,
953
            warehousing_unit:this.form.warehousing_unit,
876
            id:this.id,
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
        modifyDrugDamage(params).then(response=>{
959
        modifyDrugDamage(params).then(response=>{
879
           if(response.data.state == 1){
960
           if(response.data.state == 1){
916
      changeEndTime(val){
997
      changeEndTime(val){
917
        this.end_time = this.getTime(val)
998
        this.end_time = this.getTime(val)
918
        this.getlist()
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
     created(){
1023
     created(){

+ 106 - 37
src/xt_pages/stock/drugs/drugModifyPrice.vue View File

55
                     {{scope.row.warehousing_order}}
55
                     {{scope.row.warehousing_order}}
56
                   </template>
56
                   </template>
57
                 </el-table-column>
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
                    <template slot-scope="scope">
59
                    <template slot-scope="scope">
60
                     {{getTime(scope.row.start_time)}}
60
                     {{getTime(scope.row.start_time)}}
61
                   </template>  
61
                   </template>  
62
                 </el-table-column>
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
                    <template slot-scope="scope">
74
                    <template slot-scope="scope">
65
                     {{scope.row.new_price}}
75
                     {{scope.row.new_price}}
66
                   </template>  
76
                   </template>  
67
                 </el-table-column>
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
                  <template slot-scope="scope">
79
                  <template slot-scope="scope">
70
                     {{getDoctorName(scope.row.creater)}}
80
                     {{getDoctorName(scope.row.creater)}}
71
                   </template>  
81
                   </template>  
72
                 </el-table-column>
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
                   <template slot-scope="scope">
84
                   <template slot-scope="scope">
75
                      <span v-if="scope.row.checker_status == 1">已核对</span>
85
                      <span v-if="scope.row.checker_status == 1">已核对</span>
76
                      <span v-if="scope.row.checker_status == 2">未核对</span>
86
                      <span v-if="scope.row.checker_status == 2">未核对</span>
77
                   </template>  
87
                   </template>  
78
                 </el-table-column>
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
                   <template slot-scope="scope">
90
                   <template slot-scope="scope">
81
                     {{getDoctorName(scope.row.checker)}}
91
                     {{getDoctorName(scope.row.checker)}}
82
                   </template>  
92
                   </template>  
102
         </div>
112
         </div>
103
     </div>
113
     </div>
104
     <el-dialog
114
     <el-dialog
105
-        title="库房调价"
115
+        title="药品调价"
106
         :visible.sync="dialogVisible"
116
         :visible.sync="dialogVisible"
107
         width="1200px">
117
         width="1200px">
108
         <el-form :model="form" class="modifyDialog" label-width="120px">
118
         <el-form :model="form" class="modifyDialog" label-width="120px">
117
                     placeholder="请输入药品名称"
127
                     placeholder="请输入药品名称"
118
                     @select="handleSelect"
128
                     @select="handleSelect"
119
                     @input="changeGoodName(scope.$index)"
129
                     @input="changeGoodName(scope.$index)"
120
-                    style="width:160px;"
130
+                    style="width:300px;"
121
                   >
131
                   >
122
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
132
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
123
                   <template slot-scope="{ item }">
133
                   <template slot-scope="{ item }">
126
                  </el-autocomplete>  
136
                  </el-autocomplete>  
127
             </el-form-item>
137
             </el-form-item>
128
             <el-form-item label="原价格">
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
             </el-form-item>
140
             </el-form-item>
131
             <el-form-item label="现价格">
141
             <el-form-item label="现价格">
132
                 <el-input v-model="form.new_price"></el-input>
142
                 <el-input v-model="form.new_price"></el-input>
142
             </el-form-item>
152
             </el-form-item>
143
         </el-form>
153
         </el-form>
144
         <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
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
                <template slot-scope="scope">
156
                <template slot-scope="scope">
147
                  {{scope.row.warehousing_order}}
157
                  {{scope.row.warehousing_order}}
148
                 </template>  
158
                 </template>  
149
             </el-table-column>
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
               <template slot-scope="scope">
161
               <template slot-scope="scope">
152
                  {{scope.row.drug_name}}
162
                  {{scope.row.drug_name}}
153
                 </template>  
163
                 </template>  
154
             </el-table-column>
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
               <template slot-scope="scope">
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
               </template>
168
               </template>
159
             </el-table-column>
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
               <template slot-scope="scope">
171
               <template slot-scope="scope">
162
               {{scope.row.warehousing_unit}}
172
               {{scope.row.warehousing_unit}}
163
               </template>
173
               </template>
167
               {{scope.row.count}}
177
               {{scope.row.count}}
168
               </template>
178
               </template>
169
             </el-table-column> -->
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
                 <template slot-scope="scope">
181
                 <template slot-scope="scope">
172
                 {{scope.row.retail_price}}
182
                 {{scope.row.retail_price}}
173
                 </template>
183
                 </template>
174
             </el-table-column>
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
                  <template slot-scope="scope">
186
                  <template slot-scope="scope">
177
                   {{scope.row.retail_price}}
187
                   {{scope.row.retail_price}}
178
                 </template>
188
                 </template>
179
             </el-table-column>
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
                 <template slot-scope="scope">
191
                 <template slot-scope="scope">
182
                   {{scope.row.new_price}}
192
                   {{scope.row.new_price}}
183
                 </template>  
193
                 </template>  
184
             </el-table-column>
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
                 <template slot-scope="scope">
196
                 <template slot-scope="scope">
187
                   {{scope.row.manufacturer}}
197
                   {{scope.row.manufacturer}}
188
                 </template>   
198
                 </template>   
189
             </el-table-column>
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
                  <template slot-scope="scope">
201
                  <template slot-scope="scope">
192
                   {{scope.row.number}}
202
                   {{scope.row.number}}
193
                 </template>    
203
                 </template>    
194
             </el-table-column>
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
                 <template slot-scope="scope">
206
                 <template slot-scope="scope">
197
-                  {{scope.row.manufacturer}}
207
+                  {{scope.row.dealer}}
198
                 </template>    
208
                 </template>    
199
             </el-table-column>
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
                <template slot-scope="scope">
211
                <template slot-scope="scope">
202
                   {{scope.row.remark}}
212
                   {{scope.row.remark}}
203
                 </template>      
213
                 </template>      
281
                     placeholder="请输入药品名称"
291
                     placeholder="请输入药品名称"
282
                     @select="handleSelect"
292
                     @select="handleSelect"
283
                     @input="changeGoodName(scope.$index)"
293
                     @input="changeGoodName(scope.$index)"
284
-                    style="width:160px;"
294
+                    style="width:300px;"
285
                   >
295
                   >
286
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
296
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
287
                   <template slot-scope="{ item }">
297
                   <template slot-scope="{ item }">
289
                   </template>
299
                   </template>
290
                  </el-autocomplete>  
300
                  </el-autocomplete>  
291
               </el-form-item>
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
                <el-form-item label="原价格:">
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
                </el-form-item>
307
                </el-form-item>
295
                <el-form-item label="现价格:">
308
                <el-form-item label="现价格:">
296
                     <el-input v-model="form.new_price" style="width:200px"></el-input>
309
                     <el-input v-model="form.new_price" style="width:200px"></el-input>
297
                 </el-form-item>
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
              </el-col> 
317
              </el-col> 
299
             </el-row>
318
             </el-row>
300
             <el-row>
319
             <el-row>
301
              <el-col>
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
                 <el-form-item label="备注:">
321
                 <el-form-item label="备注:">
306
                     <div style="display:flex;">
322
                     <div style="display:flex;">
307
                         <el-input v-model="form.remark"  style="width:200px"></el-input>
323
                         <el-input v-model="form.remark"  style="width:200px"></el-input>
336
                     placeholder="请输入药品名称"
352
                     placeholder="请输入药品名称"
337
                     @select="handleSelect"
353
                     @select="handleSelect"
338
                     @input="changeGoodName(scope.$index)"
354
                     @input="changeGoodName(scope.$index)"
339
-                    style="width:160px;"
355
+                    style="width:200px;"
340
                   >
356
                   >
341
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
357
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
342
                   <template slot-scope="{ item }">
358
                   <template slot-scope="{ item }">
344
                   </template>
360
                   </template>
345
                  </el-autocomplete>  
361
                  </el-autocomplete>  
346
               </el-form-item>
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
                <el-form-item label="原价格:">
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
                </el-form-item>
371
                </el-form-item>
350
                <el-form-item label="现价格:">
372
                <el-form-item label="现价格:">
351
                     <el-input v-model="form.new_price" style="width:200px"></el-input>
373
                     <el-input v-model="form.new_price" style="width:200px"></el-input>
352
                 </el-form-item>
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
              </el-col> 
384
              </el-col> 
354
             </el-row>
385
             </el-row>
355
             <el-row>
386
             <el-row>
356
              <el-col>
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
                 <el-form-item label="备注:">
388
                 <el-form-item label="备注:">
361
                     <div style="display:flex;">
389
                     <div style="display:flex;">
362
                         <el-input v-model="form.remark"  style="width:200px"></el-input>
390
                         <el-input v-model="form.remark"  style="width:200px"></el-input>
456
            }  
484
            }  
457
         },
485
         },
458
         addPrice(){
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
           var obj = {
495
           var obj = {
496
+            id:this.form.id,
460
             drug_id:this.form.drug_id,
497
             drug_id:this.form.drug_id,
461
             drug_name:this.form.drug_name,
498
             drug_name:this.form.drug_name,
462
             warehousing_unit:this.form.warehousing_unit,
499
             warehousing_unit:this.form.warehousing_unit,
471
             dealer:this.form.dealer,
508
             dealer:this.form.dealer,
472
             last_price:this.form.last_price,
509
             last_price:this.form.last_price,
473
             start_time:this.getTime(new Date()),
510
             start_time:this.getTime(new Date()),
474
-            } 
511
+            specification_name:this.form.specification_name,
512
+          } 
475
           this.tableData.push(obj)     
513
           this.tableData.push(obj)     
476
         },
514
         },
477
         querySearchAsync(keyword, cb) {
515
         querySearchAsync(keyword, cb) {
522
             this.form.retail_price = val.retail_price
560
             this.form.retail_price = val.retail_price
523
             this.form.warehousing_order = val.warehousing_order
561
             this.form.warehousing_order = val.warehousing_order
524
             this.form.number = val.number
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
             this.form.manufacturer = val.manufacturer
568
             this.form.manufacturer = val.manufacturer
527
             this.form.remark = val.remark
569
             this.form.remark = val.remark
528
-            this.form.warehousing_unit = val.warehouseing_unit  
570
+            this.form.warehousing_unit = val.max_unit  
529
             this.form.total = val.total
571
             this.form.total = val.total
530
             this.form.batch_number = val.batch_number
572
             this.form.batch_number = val.batch_number
531
             this.form.last_price = val.last_price
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
         getTime(val) {
577
         getTime(val) {
534
          if(val < 0){
578
          if(val < 0){
545
            this.tableData[i].retail_price = this.tableData[i].retail_price.toString()
589
            this.tableData[i].retail_price = this.tableData[i].retail_price.toString()
546
            this.tableData[i].last_price = this.tableData[i].last_price.toString()
590
            this.tableData[i].last_price = this.tableData[i].last_price.toString()
547
            this.tableData[i].new_price = this.tableData[i].new_price.toString()
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
            if(this.tableData[i].dealer == 0){
593
            if(this.tableData[i].dealer == 0){
550
              this.tableData[i].dealer = ""
594
              this.tableData[i].dealer = ""
551
            }
595
            }
633
        this.tableData.splice(index,1)
677
        this.tableData.splice(index,1)
634
      },
678
      },
635
      toEdit(row){
679
      toEdit(row){
680
+      console.log("row2222",row)
636
       this.form.drug_name = row.drug_name
681
       this.form.drug_name = row.drug_name
637
       this.form.retail_price = row.retail_price
682
       this.form.retail_price = row.retail_price
638
       this.form.new_price = row.new_price
683
       this.form.new_price = row.new_price
639
-      this.form.count = row.count
640
       this.form.remark = row.remark
684
       this.form.remark = row.remark
641
       this.form.id = row.id
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
       this.editPriceDialogVisible = true  
691
       this.editPriceDialogVisible = true  
643
      },
692
      },
644
      upatePrice(){
693
      upatePrice(){
649
             this.tableData[i].new_price = this.form.new_price
698
             this.tableData[i].new_price = this.form.new_price
650
             this.tableData[i].count = this.form.count
699
             this.tableData[i].count = this.form.count
651
             this.tableData[i].remark = this.form.remark
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
        this.editPriceDialogVisible = false
709
        this.editPriceDialogVisible = false
666
        getDrugModiftyPrice(id).then(response=>{
721
        getDrugModiftyPrice(id).then(response=>{
667
           if(response.data.state == 1){
722
           if(response.data.state == 1){
668
              var detail = response.data.data.detail
723
              var detail = response.data.data.detail
724
+             console.log("detail",detail)
669
              this.form.drug_name = detail.drug_name
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
              this.form.retail_price = detail.retail_price
730
              this.form.retail_price = detail.retail_price
671
              this.form.new_price = detail.new_price
731
              this.form.new_price = detail.new_price
672
              this.form.count = detail.count
732
              this.form.count = detail.count
673
              this.form.remark = detail.remark
733
              this.form.remark = detail.remark
674
              this.id = detail.id
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
              this.modifyPriceDialogVisible = true
738
              this.modifyPriceDialogVisible = true
676
           }
739
           }
677
        })
740
        })
679
      modifyDrugPrice(){
742
      modifyDrugPrice(){
680
         var params = {
743
         var params = {
681
           drug_name:this.form.drug_name,
744
           drug_name:this.form.drug_name,
745
+          specification_name:this.form.specification_name,
746
+          warehousing_unit:this.form.warehousing_unit,
682
           retail_price:this.form.retail_price.toString(),
747
           retail_price:this.form.retail_price.toString(),
683
           new_price:this.form.new_price.toString(),
748
           new_price:this.form.new_price.toString(),
749
+          manufacturer:this.form.manufacturer,
750
+          number:this.form.number,
684
           count:parseInt(this.form.count),
751
           count:parseInt(this.form.count),
685
           remark:this.form.remark,
752
           remark:this.form.remark,
686
-          id:this.id
753
+          id:this.id,
754
+          drug_id:this.form.drug_id,
687
         }
755
         }
756
+      
688
       modifyDrugPrice(params).then(response=>{
757
       modifyDrugPrice(params).then(response=>{
689
          if(response.data.state == 1){
758
          if(response.data.state == 1){
690
            var adjustPrice = response.data.data.adjustPrice
759
            var adjustPrice = response.data.data.adjustPrice

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue View File

352
         var count = 0
352
         var count = 0
353
         for(let i=0;i<this.warehouseList.length;i++){
353
         for(let i=0;i<this.warehouseList.length;i++){
354
           if(id == this.warehouseList[i].warehousing_id){
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
         return count
358
         return count

+ 11 - 10
src/xt_pages/stock/drugs/inventory.vue View File

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

+ 1 - 1
src/xt_pages/stock/drugs/inventoryDetails.vue View File

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

+ 249 - 24
src/xt_pages/stock/inventory.vue View File

60
               <template slot-scope="scope" >
60
               <template slot-scope="scope" >
61
                 {{getTime(scope.row.start_time)}}
61
                 {{getTime(scope.row.start_time)}}
62
               </template>  
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
             </el-table-column>
73
             </el-table-column>
64
              <el-table-column  prop="date" label="盘点数量" align="center">
74
              <el-table-column  prop="date" label="盘点数量" align="center">
65
               <template slot-scope="scope" >
75
               <template slot-scope="scope" >
97
                 <span v-if="scope.row.checker_status == 2">正在盘点</span>
107
                 <span v-if="scope.row.checker_status == 2">正在盘点</span>
98
              </template>
108
              </template>
99
             </el-table-column>
109
             </el-table-column>
100
-            <el-table-column label="操作" align="center" width="300">
110
+            <el-table-column label="操作" align="center" width="200">
101
                 <template slot-scope="scope">
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
                   <el-button type="primary" size="small" @click="getInventoryDetail(scope.row.id,scope.row.checker_status)">编辑</el-button>
113
                   <el-button type="primary" size="small" @click="getInventoryDetail(scope.row.id,scope.row.checker_status)">编辑</el-button>
104
                   <el-button type="danger" size="small" @click="deleteInventory(scope.row.id,scope.row.checker_status,scope.$index)">删除</el-button>
114
                   <el-button type="danger" size="small" @click="deleteInventory(scope.row.id,scope.row.checker_status,scope.$index)">删除</el-button>
105
                 </template>
115
                 </template>
122
         width="1200px">
132
         width="1200px">
123
             <el-form :model="form" class="modifyDialog" label-width="120px">
133
             <el-form :model="form" class="modifyDialog" label-width="120px">
124
                 <el-form-item label="耗材ID">
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
                 </el-form-item>
136
                 </el-form-item>
127
                 <el-form-item label="耗材名称">
137
                 <el-form-item label="耗材名称">
128
                    <el-autocomplete
138
                    <el-autocomplete
143
                  </el-autocomplete>
153
                  </el-autocomplete>
144
                 </el-form-item>
154
                 </el-form-item>
145
                 <el-form-item label="规格">
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
                 </el-form-item>
157
                 </el-form-item>
148
                 <el-form-item label="批号">
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
                       <el-option
160
                       <el-option
151
                         v-for="(item,index) in numberList"
161
                         v-for="(item,index) in numberList"
152
                         :key="index"
162
                         :key="index"
153
                         :label="item.number"
163
                         :label="item.number"
154
-                        :value="item.number">
164
+                        :value="item.id">
155
                       </el-option>
165
                       </el-option>
156
                   </el-select>
166
                   </el-select>
157
                 </el-form-item>
167
                 </el-form-item>
158
 
168
 
159
                 <el-form-item label="单位">
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
                 </el-form-item>
171
                 </el-form-item>
162
                 <el-form-item label="进货价">
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
                 </el-form-item>
174
                 </el-form-item>
165
                 <el-form-item label="零售价">
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
                 </el-form-item>
177
                 </el-form-item>
168
                 <el-form-item label="盘点数量">
178
                 <el-form-item label="盘点数量">
169
                     <el-input v-model="form.count"></el-input>
179
                     <el-input v-model="form.count"></el-input>
170
                 </el-form-item>
180
                 </el-form-item>
171
                 <el-form-item label="库存">
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
                 </el-form-item>
183
                 </el-form-item>
174
                 <el-form-item label="产地">
184
                 <el-form-item label="产地">
175
                     <el-input v-model="form.good_origin_place"></el-input>
185
                     <el-input v-model="form.good_origin_place"></el-input>
176
                 </el-form-item>
186
                 </el-form-item>
177
                 <el-form-item label="批准文号">
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
                 </el-form-item>
189
                 </el-form-item>
180
                 <el-form-item label="生产厂商">
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
                 </el-form-item>
192
                 </el-form-item>
183
                 <el-form-item label="备注">
193
                 <el-form-item label="备注">
184
                     <div style="display:flex;">
194
                     <div style="display:flex;">
329
                     </template>
339
                     </template>
330
                     </el-autocomplete>
340
                     </el-autocomplete>
331
                 </el-form-item>
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
                <el-form-item label="盘点数量:">
383
                <el-form-item label="盘点数量:">
333
                  <el-input v-model="form.count" style="width:200px"></el-input>
384
                  <el-input v-model="form.count" style="width:200px"></el-input>
334
                </el-form-item>
385
                </el-form-item>
360
           <el-form  :model="form">
411
           <el-form  :model="form">
361
             <el-row>
412
             <el-row>
362
                <el-col>
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
                <el-form-item label="盘点数量:">
473
                <el-form-item label="盘点数量:">
364
                  <el-input v-model="form.count" style="width:200px"></el-input>
474
                  <el-input v-model="form.count" style="width:200px"></el-input>
365
                </el-form-item>
475
                </el-form-item>
436
 
546
 
437
 <script> 
547
 <script> 
438
 import { uParseTime } from '@/utils/tools'
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
 export default {
550
 export default {
441
     name: "inventory",
551
     name: "inventory",
442
     data() {
552
     data() {
482
          dealerList:[],
592
          dealerList:[],
483
          goodList:[],
593
          goodList:[],
484
          currentIndex: 0,
594
          currentIndex: 0,
485
-         inventory_status:"",
595
+         inventory_status:0,
486
          limit:10,
596
          limit:10,
487
          page:1,
597
          page:1,
488
          doctorList:[],
598
          doctorList:[],
541
           this.currentIndex = val
651
           this.currentIndex = val
542
         },
652
         },
543
          handleSelect(val){
653
          handleSelect(val){
544
-            console.log("val232323223",val)
545
             this.getStockBatchNumber(val.good_id)
654
             this.getStockBatchNumber(val.good_id)
546
-            this.getGoodWarehouseList(val.good_id)
655
+            // this.getGoodWarehouseList(val.good_id)
547
             this.form.id = val.id
656
             this.form.id = val.id
548
             this.form.good_id = val.good_id,
657
             this.form.good_id = val.good_id,
549
             this.form.good_name = val.good_name
658
             this.form.good_name = val.good_name
550
             this.form.packing_price = val.packing_price
659
             this.form.packing_price = val.packing_price
551
             this.form.warehousing_order = val.warehousing_order
660
             this.form.warehousing_order = val.warehousing_order
552
             this.form.license_number = val.license_number
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
             this.form.manufacturer = val.manufacturer
667
             this.form.manufacturer = val.manufacturer
555
             this.form.specification_name = val.specification_name
668
             this.form.specification_name = val.specification_name
556
             this.form.remark = val.remark
669
             this.form.remark = val.remark
557
             this.form.buy_price = val.buy_price
670
             this.form.buy_price = val.buy_price
558
             this.form.warehousing_unit = val.packing_unit  
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
             this.form.expiry_date = val.expiry_date
676
             this.form.expiry_date = val.expiry_date
562
             this.form.product_date = val.product_date
677
             this.form.product_date = val.product_date
563
         },
678
         },
591
           this.getlist()
706
           this.getlist()
592
         },
707
         },
593
         addInventory(){
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
            var obj = {
727
            var obj = {
728
+            id:this.form.id,
595
             good_id:this.form.good_id,
729
             good_id:this.form.good_id,
596
             good_name:this.form.good_name,
730
             good_name:this.form.good_name,
597
             specification_name:this.form.specification_name,
731
             specification_name:this.form.specification_name,
608
             start_time:this.getTime(new Date()),
742
             start_time:this.getTime(new Date()),
609
             product_date:this.form.product_date,
743
             product_date:this.form.product_date,
610
             expiry_date:this.form.expiry_date,
744
             expiry_date:this.form.expiry_date,
611
-            number:this.form.number,
745
+            number:number,
612
             warehousing_info_id:0,
746
             warehousing_info_id:0,
613
             total:this.form.total,
747
             total:this.form.total,
614
-
615
            } 
748
            } 
749
+           console.log("比阿哥",this.tableData)
616
            this.tableData.push(obj)
750
            this.tableData.push(obj)
617
         },
751
         },
618
       saveInventory(){
752
       saveInventory(){
633
           if(this.tableData[i].dealer == 0){
767
           if(this.tableData[i].dealer == 0){
634
             this.tableData[i].dealer = ""
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
         var params = {
777
         var params = {
638
          tableData:this.tableData,
778
          tableData:this.tableData,
643
          if(response.data.state == 1){
783
          if(response.data.state == 1){
644
            var msg = response.data.data.msg
784
            var msg = response.data.data.msg
645
            this.$message.success("保存成功")
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
            this.dialogVisible = false
800
            this.dialogVisible = false
801
+           
647
            this.getlist()
802
            this.getlist()
648
          }
803
          }
649
        })
804
        })
719
      },
874
      },
720
      toEdit(row){
875
      toEdit(row){
721
       this.form.good_name = row.good_name
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
       this.form.count = row.count
885
       this.form.count = row.count
723
       this.form.remark = row.remark
886
       this.form.remark = row.remark
724
       this.form.id = row.id
887
       this.form.id = row.id
725
       this.editPriceDialogVisible = true  
888
       this.editPriceDialogVisible = true  
726
      },
889
      },
727
      upateInventory(){
890
      upateInventory(){
891
+       console.log("hhhhhh",this.form.id)
892
+       console.log("999",this.tableData)
728
        for(let i=0;i<this.tableData.length;i++){
893
        for(let i=0;i<this.tableData.length;i++){
729
          if(this.form.id == this.tableData[i].id){
894
          if(this.form.id == this.tableData[i].id){
730
             this.tableData[i].good_name = this.form.good_name
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
             this.tableData[i].count = this.form.count
904
             this.tableData[i].count = this.form.count
733
             this.tableData[i].remark = this.form.remark
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
        this.editPriceDialogVisible = false
921
        this.editPriceDialogVisible = false
737
        this.form.good_name = ""
922
        this.form.good_name = ""
738
-      //  this.form.packing_price = ""
739
        this.form.count = ""
923
        this.form.count = ""
740
        this.form.remark = ""
924
        this.form.remark = ""
741
      },
925
      },
766
           if(response.data.state == 1){
950
           if(response.data.state == 1){
767
             var detail =  response.data.data.detail
951
             var detail =  response.data.data.detail
768
             console.log("detial",detail)
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
             this.form.count = detail.count
961
             this.form.count = detail.count
770
             this.form.remark = detail.remark
962
             this.form.remark = detail.remark
963
+            this.form.warehousing_info_id = detail.warehousing_info_id
771
             this.id = detail.id
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
             this.modefiyePriceDialogVisible = true
969
             this.modefiyePriceDialogVisible = true
773
 
970
 
774
           }
971
           }
777
      modifyInventory(){
974
      modifyInventory(){
778
          var params = {
975
          var params = {
779
            id:this.id,
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
            count:parseInt(this.form.count),
989
            count:parseInt(this.form.count),
781
            remark:this.form.remark,
990
            remark:this.form.remark,
782
          }
991
          }
901
      changeEndTime(val){
1110
      changeEndTime(val){
902
        this.end_time = this.getTime(val)
1111
        this.end_time = this.getTime(val)
903
        this.getlist()
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
     created(){
1131
     created(){
907
       this.getlist()
1132
       this.getlist()

+ 186 - 15
src/xt_pages/stock/stockDamaged.vue View File

54
               <template  slot-scope="scope">
54
               <template  slot-scope="scope">
55
                 {{getTime(scope.row.start_time)}}
55
                 {{getTime(scope.row.start_time)}}
56
                </template>    
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
             </el-table-column>
67
             </el-table-column>
58
              <el-table-column prop="date" label="报损数量"  align="center">
68
              <el-table-column prop="date" label="报损数量"  align="center">
59
               <template  slot-scope="scope">
69
               <template  slot-scope="scope">
81
                 <span v-if="scope.row.checker_status == 2">未核对</span>
91
                 <span v-if="scope.row.checker_status == 2">未核对</span>
82
               </template>
92
               </template>
83
             </el-table-column>
93
             </el-table-column>
84
-            <el-table-column label="操作"  align="center">
94
+            <el-table-column label="操作"  align="center"  width="200" >
85
                 <template slot-scope="scope">
95
                 <template slot-scope="scope">
86
                 <el-button type="primary" size="small" @click="editStockDamage(scope.row.id,scope.row.checker_status)">编辑</el-button>
96
                 <el-button type="primary" size="small" @click="editStockDamage(scope.row.id,scope.row.checker_status)">编辑</el-button>
87
                 <el-button type="danger" size="small" @click="deleteStockDamage(scope.row.id,scope.row.checker_status,scope.$index)">删除</el-button>
97
                 <el-button type="danger" size="small" @click="deleteStockDamage(scope.row.id,scope.row.checker_status,scope.$index)">删除</el-button>
108
         <el-form :model="form" class="modifyDialog" label-width="120px">
118
         <el-form :model="form" class="modifyDialog" label-width="120px">
109
           
119
           
110
             <el-form-item label="耗材ID">
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
             </el-form-item>
122
             </el-form-item>
113
             <el-form-item label="耗材名称">
123
             <el-form-item label="耗材名称">
114
                   <el-autocomplete
124
                   <el-autocomplete
129
                  </el-autocomplete>
139
                  </el-autocomplete>
130
             </el-form-item>
140
             </el-form-item>
131
             <el-form-item label="规格">
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
             </el-form-item>
143
             </el-form-item>
134
             <el-form-item label="批号">
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
                   <el-option
146
                   <el-option
137
                     v-for="(item,index) in numberList"
147
                     v-for="(item,index) in numberList"
138
                     :key="index"
148
                     :key="index"
142
                 </el-select>
152
                 </el-select>
143
             </el-form-item>
153
             </el-form-item>
144
             <el-form-item label="单位">
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
             </el-form-item>
156
             </el-form-item>
147
             <el-form-item label="进货价">
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
             </el-form-item>
159
             </el-form-item>
150
             <el-form-item label="零售价">
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
             </el-form-item>
162
             </el-form-item>
153
             <el-form-item label="报损数量">
163
             <el-form-item label="报损数量">
154
                 <el-input v-model="form.count"></el-input>
164
                 <el-input v-model="form.count"></el-input>
155
             </el-form-item>
165
             </el-form-item>
156
             <el-form-item label="库存">
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
             </el-form-item>
168
             </el-form-item>
159
             <el-form-item label="产地">
169
             <el-form-item label="产地">
160
                 <el-input v-model="form.good_origin_place"></el-input>
170
                 <el-input v-model="form.good_origin_place"></el-input>
161
             </el-form-item>
171
             </el-form-item>
162
             <el-form-item label="批准文号">
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
             </el-form-item>
174
             </el-form-item>
165
             <el-form-item label="生产厂商">
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
             </el-form-item>
180
             </el-form-item>
168
             <el-form-item label="备注">
181
             <el-form-item label="备注">
169
                 <div style="display:flex;">
182
                 <div style="display:flex;">
284
 
297
 
285
 <!-- 编辑 -->
298
 <!-- 编辑 -->
286
       <el-dialog
299
       <el-dialog
287
-        title="编辑"
300
+        title="编辑报损"
288
         :visible.sync="editPriceDialogVisible"
301
         :visible.sync="editPriceDialogVisible"
289
         width="50%">
302
         width="50%">
290
         <span>
303
         <span>
309
                     </template>
322
                     </template>
310
                     </el-autocomplete>
323
                     </el-autocomplete>
311
                 </el-form-item>
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
                  <el-input v-model="form.count" style="width:200px"></el-input>
363
                  <el-input v-model="form.count" style="width:200px"></el-input>
314
                </el-form-item>
364
                </el-form-item>
315
              </el-col> 
365
              </el-col> 
339
         <span>
389
         <span>
340
           <el-form  :model="form">
390
           <el-form  :model="form">
341
             <el-row>
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
                <el-form-item label="报损数量:">
448
                <el-form-item label="报损数量:">
344
                  <el-input v-model="form.count" style="width:200px"></el-input>
449
                  <el-input v-model="form.count" style="width:200px"></el-input>
345
                </el-form-item>
450
                </el-form-item>
500
           this.form.packing_price = val.packing_price
605
           this.form.packing_price = val.packing_price
501
           this.form.warehousing_order = val.warehousing_order
606
           this.form.warehousing_order = val.warehousing_order
502
           this.form.license_number = val.license_number
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
           this.form.manufacturer = val.manufacturer
613
           this.form.manufacturer = val.manufacturer
505
           this.form.specification_name = val.specification_name
614
           this.form.specification_name = val.specification_name
506
           this.form.remark = val.remark
615
           this.form.remark = val.remark
512
           this.form.product_date = val.product_date
621
           this.form.product_date = val.product_date
513
       },
622
       },
514
       addStock(){
623
       addStock(){
624
+
625
+        if(this.form.count == ""){
626
+          this.$message.error("请输入报损数量")
627
+          return 
628
+        }
515
         var obj = {
629
         var obj = {
516
           good_id:this.form.good_id,
630
           good_id:this.form.good_id,
517
           good_name:this.form.good_name,
631
           good_name:this.form.good_name,
531
           warehousing_info_id:0,
645
           warehousing_info_id:0,
532
           product_date:this.form.product_date,
646
           product_date:this.form.product_date,
533
           expiry_date:this.form.expiry_date,
647
           expiry_date:this.form.expiry_date,
648
+          total:this.form.total,
534
         } 
649
         } 
535
         this.tableData.push(obj)
650
         this.tableData.push(obj)
536
         this.form.good_id = 0
651
         this.form.good_id = 0
548
         this.form.dealer = ""
663
         this.form.dealer = ""
549
         this.form.number = ""
664
         this.form.number = ""
550
         this.form.good_id = ""
665
         this.form.good_id = ""
666
+        this.form.total= ""
551
       },
667
       },
552
       saveReportStock(){
668
       saveReportStock(){
553
          for(let i = 0;i<this.tableData.length;i++){
669
          for(let i = 0;i<this.tableData.length;i++){
576
             tableData:this.tableData,
692
             tableData:this.tableData,
577
           }
693
           }
578
           console.log("params",params)
694
           console.log("params",params)
695
+       
579
         saveReportStock(params).then(response=>{
696
         saveReportStock(params).then(response=>{
580
            if(response.data.state == 1){
697
            if(response.data.state == 1){
581
              var msg = response.data.data.msg
698
              var msg = response.data.data.msg
674
        this.tableData.splice(index,1)
791
        this.tableData.splice(index,1)
675
      },
792
      },
676
      toEdit(row){
793
      toEdit(row){
794
+      console.log("row",row)
677
       this.form.good_name = row.good_name
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
       this.form.packing_price = row.packing_price
797
       this.form.packing_price = row.packing_price
680
       this.form.count = row.count
798
       this.form.count = row.count
681
       this.form.remark = row.remark
799
       this.form.remark = row.remark
682
       this.form.id = row.id
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
       this.editPriceDialogVisible = true  
808
       this.editPriceDialogVisible = true  
684
      },
809
      },
685
      upatePrice(){
810
      upatePrice(){
811
+       if(this.form.count == ""){
812
+         this.$message.error("请输入报损数量")
813
+         return false
814
+       }
686
        for(let i=0;i<this.tableData.length;i++){
815
        for(let i=0;i<this.tableData.length;i++){
687
          if(this.form.id == this.tableData[i].id){
816
          if(this.form.id == this.tableData[i].id){
688
             this.tableData[i].good_name = this.form.good_name
817
             this.tableData[i].good_name = this.form.good_name
689
             this.tableData[i].packing_price = this.form.packing_price
818
             this.tableData[i].packing_price = this.form.packing_price
690
             this.tableData[i].count = this.form.count
819
             this.tableData[i].count = this.form.count
691
             this.tableData[i].remark = this.form.remark
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
        this.editPriceDialogVisible = false
830
        this.editPriceDialogVisible = false
705
        getStockDamageDetail(id).then(response=>{
841
        getStockDamageDetail(id).then(response=>{
706
          if(response.data.state == 1){
842
          if(response.data.state == 1){
707
            var detail = response.data.data.detail
843
            var detail = response.data.data.detail
844
+           console.log("hhhhh32233223",detail)
708
            this.form.count = detail.count
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
            this.id = detail.id
857
            this.id = detail.id
858
+           this.form.good_id = detail.good_id
859
+           this.form.warehousing_info_id = detail.warehousing_info_id
710
            this.modifyPriceDialogVisible = true
860
            this.modifyPriceDialogVisible = true
711
          }
861
          }
712
        })
862
        })
715
         var params = {
865
         var params = {
716
           count:parseInt(this.form.count),
866
           count:parseInt(this.form.count),
717
           id:this.id,
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
         console.log("param2323",params)
881
         console.log("param2323",params)
882
+       
720
        modifyPrice(params).then(response=>{
883
        modifyPrice(params).then(response=>{
721
          if(response.data.state ==1){
884
          if(response.data.state ==1){
722
            var adjust = response.data.data.adjust
885
            var adjust = response.data.data.adjust
811
      changeEndTime(val){
974
      changeEndTime(val){
812
        this.end_time = this.getTime(val)
975
        this.end_time = this.getTime(val)
813
        this.getlist()
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
     created(){
987
     created(){

+ 73 - 32
src/xt_pages/stock/stockModifyPrice.vue View File

26
             v-model="start_time"
26
             v-model="start_time"
27
             type="date"
27
             type="date"
28
             style="margin-left:5px;width:140px;"
28
             style="margin-left:5px;width:140px;"
29
-            placeholder="选择日期">
29
+            placeholder="选择日期"
30
+            @change="changeStartTime">
30
             </el-date-picker>
31
             </el-date-picker>
31
             <el-date-picker
32
             <el-date-picker
32
             size="small"
33
             size="small"
33
             v-model="end_time"
34
             v-model="end_time"
34
             type="date"
35
             type="date"
35
             style="margin-left:5px;width:140px;"
36
             style="margin-left:5px;width:140px;"
36
-            placeholder="选择日期">
37
+            placeholder="选择日期"
38
+            @change="changeEndTime">
37
             </el-date-picker>
39
             </el-date-picker>
38
         </div>
40
         </div>
39
         <div>
41
         <div>
168
                   </template>
170
                   </template>
169
                  </el-autocomplete>
171
                  </el-autocomplete>
170
             </el-form-item>
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
             <el-form-item label="原价格">
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
             </el-form-item>
178
             </el-form-item>
174
             <el-form-item label="现价格">
179
             <el-form-item label="现价格">
175
                 <el-input v-model="form.new_price"></el-input>
180
                 <el-input v-model="form.new_price"></el-input>
176
             </el-form-item>
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
             <el-form-item label="备注" style="width:66%;">
188
             <el-form-item label="备注" style="width:66%;">
181
                 <div style="display:flex;">
189
                 <div style="display:flex;">
182
                     <el-input v-model="form.remark"></el-input>
190
                     <el-input v-model="form.remark"></el-input>
205
                {{scope.row.warehousing_unit}}
213
                {{scope.row.warehousing_unit}}
206
                </template>
214
                </template>
207
             </el-table-column>
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
             <el-table-column prop="name" label="原进货价" width="100" align="center">
216
             <el-table-column prop="name" label="原进货价" width="100" align="center">
214
                <template slot-scope="scope">
217
                <template slot-scope="scope">
215
                 {{scope.row.buy_price}}
218
                 {{scope.row.buy_price}}
288
                     </template>
291
                     </template>
289
                     </el-autocomplete>
292
                     </el-autocomplete>
290
                 </el-form-item>
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
                <el-form-item label="原价格:">
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
                </el-form-item>
305
                </el-form-item>
294
                <el-form-item label="现价格:">
306
                <el-form-item label="现价格:">
295
                     <el-input v-model="form.new_price" style="width:200px"></el-input>
307
                     <el-input v-model="form.new_price" style="width:200px"></el-input>
296
                 </el-form-item>
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
              </el-col> 
312
              </el-col> 
298
             </el-row>
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
           </el-form>
314
           </el-form>
312
         </span>
315
         </span>
313
         <span slot="footer" class="dialog-footer">
316
         <span slot="footer" class="dialog-footer">
379
                         placeholder="请输入耗材名称"
382
                         placeholder="请输入耗材名称"
380
                         @select="handleSelect"
383
                         @select="handleSelect"
381
                         @input="changeGoodName(scope.$index)"
384
                         @input="changeGoodName(scope.$index)"
382
-                        :disabled="true"
383
                         style="width:160px;"
385
                         style="width:160px;"
384
                     >
386
                     >
385
                         <i class="el-icon-search el-input__icon" slot="suffix"></i>
387
                         <i class="el-icon-search el-input__icon" slot="suffix"></i>
388
                     </template>
390
                     </template>
389
                     </el-autocomplete>
391
                     </el-autocomplete>
390
                 </el-form-item>
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
                <el-form-item label="原价格:">
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
                </el-form-item>
398
                </el-form-item>
394
                <el-form-item label="现价格:">
399
                <el-form-item label="现价格:">
395
                     <el-input v-model="form.new_price" style="width:200px"></el-input>
400
                     <el-input v-model="form.new_price" style="width:200px"></el-input>
396
                 </el-form-item>
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
                 <el-form-item label="备注:">
408
                 <el-form-item label="备注:">
398
                     <el-input v-model="form.remark" style="width:200px"></el-input>
409
                     <el-input v-model="form.remark" style="width:200px"></el-input>
399
                 </el-form-item>
410
                 </el-form-item>
534
           }else{
545
           }else{
535
             this.form.dealer = val.dealer
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
           this.form.specification_name = val.specification_name
554
           this.form.specification_name = val.specification_name
543
           this.form.remark = val.remark
555
           this.form.remark = val.remark
544
           this.form.buy_price = val.buy_price
556
           this.form.buy_price = val.buy_price
546
          
558
          
547
       },
559
       },
548
       addPrice(){
560
       addPrice(){
561
+        if(this.form.new_price == ""){
562
+           this.$message.error("请输入现价格")
563
+           return
564
+        }
549
         var obj = {
565
         var obj = {
550
          id:this.form.id,
566
          id:this.form.id,
551
          good_name:this.form.good_name,
567
          good_name:this.form.good_name,
601
       this.form.count = row.count
617
       this.form.count = row.count
602
       this.form.remark = row.remark
618
       this.form.remark = row.remark
603
       this.form.id = row.id
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
       this.editPriceDialogVisible = true  
623
       this.editPriceDialogVisible = true  
605
      },
624
      },
606
      upatePrice(){
625
      upatePrice(){
626
+       if(this.form.new_price == ""){
627
+          this.$message.error("请输入现价格")
628
+          return false
629
+       }
607
        for(let i=0;i<this.tableData.length;i++){
630
        for(let i=0;i<this.tableData.length;i++){
608
          if(this.form.id == this.tableData[i].id){
631
          if(this.form.id == this.tableData[i].id){
609
             this.tableData[i].good_name = this.form.good_name
632
             this.tableData[i].good_name = this.form.good_name
769
            }else{
792
            }else{
770
              this.form.new_price = info.new_price
793
              this.form.new_price = info.new_price
771
            }
794
            }
772
-          
795
+           this.form.specification_name = info.specification_name
773
            this.form.packing_price = info.packing_price
796
            this.form.packing_price = info.packing_price
774
            this.form.remark = info.remark
797
            this.form.remark = info.remark
798
+           this.form.manufacturer = info.manufacturer
799
+           this.form.dealer = info.dealer
775
            this.modifyDialogVisible = true
800
            this.modifyDialogVisible = true
776
          }
801
          }
777
        })
802
        })
778
      },
803
      },
779
      updateStockPrice(){
804
      updateStockPrice(){
805
+         if(this.form.new_price == ""){
806
+           this.$message.error("请输入现价格")
807
+           return
808
+         }
780
          var params = {
809
          var params = {
810
+
781
            new_price:this.form.new_price.toString(),
811
            new_price:this.form.new_price.toString(),
782
            id:this.id,
812
            id:this.id,
783
            packing_price:this.form.packing_price.toString(),
813
            packing_price:this.form.packing_price.toString(),
784
            remark:this.form.remark,
814
            remark:this.form.remark,
785
            good_id:this.form.good_id,
815
            good_id:this.form.good_id,
786
            good_name:this.form.good_name,
816
            good_name:this.form.good_name,
817
+           manufacturer:this.form.manufacturer,
818
+           dealer:this.form.dealer,
787
          }
819
          }
788
          console.log("params",params)
820
          console.log("params",params)
789
        updateStockPrice(params).then(response=>{
821
        updateStockPrice(params).then(response=>{
808
           let params = {
840
           let params = {
809
             id:id,
841
             id:id,
810
           }
842
           }
843
+          console.log("id23232322332233223",id)
811
           deleteStockPrice(params).then(response => {
844
           deleteStockPrice(params).then(response => {
812
             if (response.data.state == 1) {
845
             if (response.data.state == 1) {
813
               var msg = response.data.data.msg
846
               var msg = response.data.data.msg
818
         }).catch(() => {
851
         }).catch(() => {
819
           this.loading = false
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
     created(){
864
     created(){

+ 1 - 0
src/xt_pages/user/courseOfDisease.vue View File

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

+ 16 - 0
src/xt_pages/user/dialysisSolution.vue View File

1063
         this.addPlan.dialysis_duration,
1063
         this.addPlan.dialysis_duration,
1064
         this.addPlan.anticoagulant_weichi
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
     'addPlan.anticoagulant_weichi': function() {
1073
     'addPlan.anticoagulant_weichi': function() {
1068
       this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
1074
       this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
1071
         this.addPlan.dialysis_duration,
1077
         this.addPlan.dialysis_duration,
1072
         this.addPlan.anticoagulant_weichi
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
         return false
1928
         return false
1918
       }
1929
       }
1919
       this.anticoagulant = this.anticoagulantsConfit[thismode]
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
     addPlanModeChange() {
1938
     addPlanModeChange() {

+ 82 - 23
src/xt_pages/user/templateSummary.vue View File

60
             <el-col :span="14">
60
             <el-col :span="14">
61
               <div class="record_content_panel">
61
               <div class="record_content_panel">
62
                 <div style="background-color:rgb(245, 247, 250)" class="title">阶段小结内容</div>
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
                 <!-- <div style="padding: 10px 10px 0;">阶段小结概要:</div>
64
                 <!-- <div style="padding: 10px 10px 0;">阶段小结概要:</div>
65
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;">
65
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;">
66
                   <span style="margin-right:10px;line-height:30px;">干体重(kg):{{editObj.dry_weight}}</span>
66
                   <span style="margin-right:10px;line-height:30px;">干体重(kg):{{editObj.dry_weight}}</span>
87
                   <span style="margin-right:10px;line-height:30px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
87
                   <span style="margin-right:10px;line-height:30px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
88
                 </div> -->
88
                 </div> -->
89
                  <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:
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
                  </div>
91
                  </div>
92
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结化验结果:
92
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结化验结果:
93
                   <div>
93
                   <div>
109
                   </div>
109
                   </div>
110
                 </div>
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
               </div>
115
               </div>
114
             </el-col>
116
             </el-col>
115
           </el-row>
117
           </el-row>
303
                         :value="item.value">
305
                         :value="item.value">
304
                         </el-option>
306
                         </el-option>
305
                      </el-select>
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
                   </el-row>
316
                   </el-row>
308
-                  <el-row>
317
+                  <!-- <el-row>
309
                     <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
318
                     <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
310
                      <el-select v-model="form.template_plan_id" placeholder="请选择" @change="changeTempalte">
319
                      <el-select v-model="form.template_plan_id" placeholder="请选择" @change="changeTempalte">
311
                         <el-option
320
                         <el-option
315
                         :value="item.value">
324
                         :value="item.value">
316
                         </el-option>
325
                         </el-option>
317
                      </el-select>
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
                   <el-row>
336
                   <el-row>
321
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
337
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
322
                     <el-button type="primary" @click="toInspection">选择检验检查</el-button>
338
                     <el-button type="primary" @click="toInspection">选择检验检查</el-button>
561
                         :value="item.value">
577
                         :value="item.value">
562
                         </el-option>
578
                         </el-option>
563
                      </el-select>
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
                   </el-row>
588
                   </el-row>
566
-                  <el-row>
589
+                  <!-- <el-row>
567
                     <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
590
                     <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
568
                      <el-select v-model="form.template_plan_id" placeholder="请选择" @change="changeTempalte">
591
                      <el-select v-model="form.template_plan_id" placeholder="请选择" @change="changeTempalte">
569
                         <el-option
592
                         <el-option
573
                         :value="item.value">
596
                         :value="item.value">
574
                         </el-option>
597
                         </el-option>
575
                      </el-select>
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
                   <el-row>
607
                   <el-row>
579
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
608
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
580
                     <el-button type="primary" @click="toInspection">选择检验检查</el-button>
609
                     <el-button type="primary" @click="toInspection">选择检验检查</el-button>
850
           template_summary_id:"",
879
           template_summary_id:"",
851
           template_summary_content:"",
880
           template_summary_content:"",
852
           template_plan_id:"",
881
           template_plan_id:"",
853
-          template_summary_content:"",
854
           template_inspection_id:0,
882
           template_inspection_id:0,
855
           template_inspection_content:"",
883
           template_inspection_content:"",
856
           admin_user_id:this.$store.getters.xt_user.user.id,
884
           admin_user_id:this.$store.getters.xt_user.user.id,
960
     },
988
     },
961
     methods: {
989
     methods: {
962
       getTime(val) {
990
       getTime(val) {
963
-         if(val == ""){
991
+         console.log("val2322332322323223",val)
992
+         if(val == "" || val == undefined){
964
           return ""
993
           return ""
965
          }else {
994
          }else {
966
           return uParseTime(val, '{y}-{m}-{d}')
995
           return uParseTime(val, '{y}-{m}-{d}')
1042
           start_time:this.start_date,
1071
           start_time:this.start_date,
1043
           end_time:this.end_date,
1072
           end_time:this.end_date,
1044
         }
1073
         }
1045
-        console.log("世纪时间",params)
1074
+        // console.log("世纪时间",params)
1046
         console.log(moment(moment(2020 + '-01-01').toDate()).quarter(2).format("YYYY-MM-DD"))
1075
         console.log(moment(moment(2020 + '-01-01').toDate()).quarter(2).format("YYYY-MM-DD"))
1047
         getInitDataList(params).then(response=>{
1076
         getInitDataList(params).then(response=>{
1048
           if(response.data.state == 1){
1077
           if(response.data.state == 1){
1253
         if(this.form.befor_pressure == ""){
1282
         if(this.form.befor_pressure == ""){
1254
           this.form.befor_pressure = 0
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
         var year = this.form.start_year+"-"+"01"+"-"+"01"
1291
         var year = this.form.start_year+"-"+"01"+"-"+"01"
1257
         console.log("年",year)
1292
         console.log("年",year)
1258
         var month = this.form.start_year+"-"+this.form.start_month+"-"+"01"
1293
         var month = this.form.start_year+"-"+this.form.start_month+"-"+"01"
1259
-        console.log("月",month)
1294
+        console.log("月",this.$refs)
1295
+      
1296
+
1260
          var params = {
1297
          var params = {
1261
             title:this.form.title,
1298
             title:this.form.title,
1262
             dry_weight:this.form.dry_weight.toString(),
1299
             dry_weight:this.form.dry_weight.toString(),
1276
             befor_weight:this.form.befor_weight.toString(),
1313
             befor_weight:this.form.befor_weight.toString(),
1277
             after_weight:this.form.after_weight.toString(),
1314
             after_weight:this.form.after_weight.toString(),
1278
             befor_pressure:this.form.befor_pressure,
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
             admin_user_id:this.form.admin_user_id,
1317
             admin_user_id:this.form.admin_user_id,
1283
             record_time:this.form.record_time,
1318
             record_time:this.form.record_time,
1284
             after_pressure:this.form.after_pressure,
1319
             after_pressure:this.form.after_pressure,
1285
             template_summary_id:this.form.template_summary_id,
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
             template_plan_id:this.form.template_plan_id,
1322
             template_plan_id:this.form.template_plan_id,
1288
             template_inspection_id:this.form.template_inspection_id,
1323
             template_inspection_id:this.form.template_inspection_id,
1289
             patient_id:parseInt(this.patient_id),
1324
             patient_id:parseInt(this.patient_id),
1292
             start_year:year,
1327
             start_year:year,
1293
             start_month:month,
1328
             start_month:month,
1294
             radio:this.form.radio,
1329
             radio:this.form.radio,
1330
+
1295
          }
1331
          }
1296
           console.log("parawm232323223",params)
1332
           console.log("parawm232323223",params)
1297
 
1333
 
1342
               var list = response.data.data.list
1378
               var list = response.data.data.list
1343
               this.inspectionList = list
1379
               this.inspectionList = list
1344
               this.$refs.inspection_table.setCurrentRow(this.inspectionList[0])
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
                this.form.minute = list.minute
1493
                this.form.minute = list.minute
1455
                this.form.natrium =list.natrium
1494
                this.form.natrium =list.natrium
1456
                this.form.perfusion_apparatus= list.perfusion_apparatus
1495
                this.form.perfusion_apparatus= list.perfusion_apparatus
1496
+               this.form.other_count = list.other_count
1457
                this.form.record_time = this.getTimeTwo(list.record_time)
1497
                this.form.record_time = this.getTimeTwo(list.record_time)
1458
                console.log("时间232233232",list.record_time)
1498
                console.log("时间232233232",list.record_time)
1459
                if(list.template_inspection_id == 0){
1499
                if(list.template_inspection_id == 0){
1469
                  this.form.template_plan_id = list.template_plan_id
1509
                  this.form.template_plan_id = list.template_plan_id
1470
                }
1510
                }
1471
 
1511
 
1472
-               console.log("hhhhhhhhh",list.template_plan_id)
1473
                this.form.template_summary_content =list.template_summary_content
1512
                this.form.template_summary_content =list.template_summary_content
1474
                if(list.template_summary_id == 0){
1513
                if(list.template_summary_id == 0){
1475
                  this.form.template_summary_id = ""
1514
                  this.form.template_summary_id = ""
1504
        }
1543
        }
1505
       },
1544
       },
1506
       editCreation(){
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
         var params = {
1558
         var params = {
1508
             id:this.form.id,
1559
             id:this.form.id,
1509
             title:this.form.title,
1560
             title:this.form.title,
1524
             befor_weight:this.form.befor_weight.toString(),
1575
             befor_weight:this.form.befor_weight.toString(),
1525
             after_weight:this.form.after_weight.toString(),
1576
             after_weight:this.form.after_weight.toString(),
1526
             befor_pressure:this.form.befor_pressure,
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
             admin_user_id:this.form.admin_user_id,
1582
             admin_user_id:this.form.admin_user_id,
1530
             record_time:this.form.record_time,
1583
             record_time:this.form.record_time,
1531
             after_pressure:this.form.after_pressure,
1584
             after_pressure:this.form.after_pressure,
1714
         console.log("val2323323223",val)
1767
         console.log("val2323323223",val)
1715
         if(val == "2021-02"){
1768
         if(val == "2021-02"){
1716
           this.startYear = val+"-" + "28"
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
         }else{
1776
         }else{
1718
           this.startYear = val+"-" + "30"
1777
           this.startYear = val+"-" + "30"
1719
         }
1778
         }

+ 9 - 6
src/xt_pages/user/templateSummaryPrint.vue View File

6
   <div id="dialysis-print-box">
6
   <div id="dialysis-print-box">
7
     <div class="dialysis-print-order">
7
     <div class="dialysis-print-order">
8
       <div class="order-yy-name"></div>
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
       <div style="padding-bottom:20px;border-bottom:1px solid #000;margin-top:40px;">
11
       <div style="padding-bottom:20px;border-bottom:1px solid #000;margin-top:40px;">
12
          <span>姓名:{{patientList.patient.name}}</span>  
12
          <span>姓名:{{patientList.patient.name}}</span>  
47
         </div>
47
         </div>
48
       </div> -->
48
       </div> -->
49
       <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
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
       </div>
53
       </div>
52
      <div style="padding:20px 0;border-bottom:1px solid #000;min-height:250px;">
54
      <div style="padding:20px 0;border-bottom:1px solid #000;min-height:250px;">
53
         <span style="font-weight:bold;">阶段小结化验结果:</span>
55
         <span style="font-weight:bold;">阶段小结化验结果:</span>
69
           </div>
71
           </div>
70
         </div> 
72
         </div> 
71
       </div>
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
         <span style="font-weight:bold;">阶段小结个性化方案:</span>
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
      <div style="margin-top:10px;">
79
      <div style="margin-top:10px;">
77
        <span>记录医生:{{getPatientList(patientList.admin_user_id)}}</span>  
80
        <span>记录医生:{{getPatientList(patientList.admin_user_id)}}</span>  
78
        <span style="margin-left:20px;">记录时间:{{getTime(patientList.record_time)}}</span>  
81
        <span style="margin-left:20px;">记录时间:{{getTime(patientList.record_time)}}</span>  
288
     printThisPage() {
291
     printThisPage() {
289
         var ptime = Math.round(new Date().getTime() / 1000)
292
         var ptime = Math.round(new Date().getTime() / 1000)
290
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
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
         printJS({
295
         printJS({
293
             printable: 'dialysis-print-box',
296
             printable: 'dialysis-print-box',
294
             type: 'html',
297
             type: 'html',

+ 45 - 8
src/xt_pages/workforce/components/nextTableWeeks.vue View File

58
     </div>
58
     </div>
59
     <div class="cell clearfix">
59
     <div class="cell clearfix">
60
       <div  class="title"><span class="name">分区</span> :</div>
60
       <div  class="title"><span class="name">分区</span> :</div>
61
-      <div class="time">
61
+      <!-- <div class="time">
62
         <ul class>
62
         <ul class>
63
           <li
63
           <li
64
             :class="item.id == zone ? 'active' : ''"
64
             :class="item.id == zone ? 'active' : ''"
69
             {{ item.name }}
69
             {{ item.name }}
70
           </li>
70
           </li>
71
         </ul>
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
     </div>
81
     </div>
74
     <el-table
82
     <el-table
75
       :row-style="{ color: '#303133' }"
83
       :row-style="{ color: '#303133' }"
260
         {id:2,name:"未确认"},
268
         {id:2,name:"未确认"},
261
       ],
269
       ],
262
       zone:"",
270
       zone:"",
263
-      zoneList:[{id:0,name:"全部"}],
271
+      // zoneList:[{id:0,name:"全部"}],
272
+      zoneList:[],
264
     };
273
     };
265
   },
274
   },
266
   watch: {
275
   watch: {
274
 
283
 
275
   methods: {
284
   methods: {
276
     printAction() {
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
       this.$router.push({
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
    compare(property) {
303
    compare(property) {
289
         const start = moment().weekday(1).format('YYYY-MM-DD'); //本周一
311
         const start = moment().weekday(1).format('YYYY-MM-DD'); //本周一
290
         const end = moment().weekday(7).format('YYYY-MM-DD')
312
         const end = moment().weekday(7).format('YYYY-MM-DD')
291
         // console.log("start",moment(start).unix())
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
         const params = {
327
         const params = {
294
           start_time:moment().week(moment().week() + 1).startOf('week').unix(),
328
           start_time:moment().week(moment().week() + 1).startOf('week').unix(),
295
           end_time:moment().week(moment().week() + 1).endOf('week').unix(),
329
           end_time:moment().week(moment().week() + 1).endOf('week').unix(),
296
           week_type:this.week_type,
330
           week_type:this.week_type,
297
           week_time:this.week_time,
331
           week_time:this.week_time,
298
-          zone:this.zone,
332
+          zone:str,
299
         }
333
         }
300
         // const params = {
334
         // const params = {
301
         //   start_time:1609603200,
335
         //   start_time:1609603200,
546
          if(response.data.state == 1){
580
          if(response.data.state == 1){
547
             var zonelist = response.data.data.zoneList
581
             var zonelist = response.data.data.zoneList
548
             this.zoneList.push(...zonelist)
582
             this.zoneList.push(...zonelist)
549
-           
583
+            this.getNextScheduleWeekDay()
550
          }
584
          }
551
       })
585
       })
552
     },
586
     },
574
         }
608
         }
575
        return name
609
        return name
576
     }, 
610
     }, 
611
+    changeZone(val){
612
+      this.zone = val
613
+      this.getNextScheduleWeekDay()
614
+    }
577
   },
615
   },
578
   components: {
616
   components: {
579
     WeekItem
617
     WeekItem
586
       this.week_type = 7;
624
       this.week_type = 7;
587
     }
625
     }
588
     this.getAllZoneList()
626
     this.getAllZoneList()
589
-    this.getNextScheduleWeekDay();
590
     this.org_id = this.$store.getters.xt_user.org.id
627
     this.org_id = this.$store.getters.xt_user.org.id
591
    
628
    
592
   }
629
   }

+ 68 - 12
src/xt_pages/workforce/components/tableWeeks.vue View File

75
         </div>
75
         </div>
76
         <div class="cell clearfix">
76
         <div class="cell clearfix">
77
             <div class="title"><span class="name">分区</span> :</div>
77
             <div class="title"><span class="name">分区</span> :</div>
78
-            <div class="time">
78
+            <!-- <div class="time">
79
                 <ul class>
79
                 <ul class>
80
                     <li
80
                     <li
81
-                            :class="item.id == zone ? 'active' : ''"
81
+                          :class="item.id == zone ? 'active' : ''"
82
                             @click="selectZoneList(item.id)"
82
                             @click="selectZoneList(item.id)"
83
                             v-for="item in zoneList"
83
                             v-for="item in zoneList"
84
                             :key="item.id"
84
                             :key="item.id"
86
                         {{ item.name }}
86
                         {{ item.name }}
87
                     </li>
87
                     </li>
88
                 </ul>
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
         </div>
98
         </div>
91
         <el-table
99
         <el-table
92
                 v-loading="isloading"
100
                 v-loading="isloading"
437
           anticoagulant_zongliang: '',
445
           anticoagulant_zongliang: '',
438
           doctor_advice: ''
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
     watch: {
455
     watch: {
844
       }
854
       }
845
       ,
855
       ,
846
       printAction() {
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
         this.$router.push({
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
       signPrint() {
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
         this.$router.push({
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
       ,
951
       ,
916
 
952
 
917
       getScheduleList() {
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
         const params = {
968
         const params = {
919
           week_type: this.week_type,
969
           week_type: this.week_type,
920
           week_time: this.week_time,
970
           week_time: this.week_time,
921
-          zone: this.zone
971
+          zone: str,
922
         }
972
         }
973
+        console.log("param",params)
923
         this.scheduleData = []
974
         this.scheduleData = []
924
         this.isloading = true
975
         this.isloading = true
925
         getScheduleList(params).then(response => {
976
         getScheduleList(params).then(response => {
1433
           if (response.data.state == 1) {
1484
           if (response.data.state == 1) {
1434
             var zonelist = response.data.data.zoneList
1485
             var zonelist = response.data.data.zoneList
1435
             this.zoneList.push(...zonelist)
1486
             this.zoneList.push(...zonelist)
1436
-
1487
+            this.getScheduleList()
1437
           }
1488
           }
1438
         })
1489
         })
1439
       }
1490
       }
1464
         }
1515
         }
1465
         console.log('name', name)
1516
         console.log('name', name)
1466
         return name
1517
         return name
1518
+      },
1519
+      changeZone(val){
1520
+        this.zone = val
1521
+        this.getScheduleList()
1467
       }
1522
       }
1468
     },
1523
     },
1469
     components: {
1524
     components: {
1471
     }
1526
     }
1472
     ,
1527
     ,
1473
     created() {
1528
     created() {
1529
+      this.getAllZoneList()
1474
       this.modeOptions = this.$store.getters.treatment_mode
1530
       this.modeOptions = this.$store.getters.treatment_mode
1475
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
1531
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
1476
       this.week_type = new Date().getDay()
1532
       this.week_type = new Date().getDay()
1478
         this.week_type = 7
1534
         this.week_type = 7
1479
       }
1535
       }
1480
       this.org_id = this.$store.getters.xt_user.org.id
1536
       this.org_id = this.$store.getters.xt_user.org.id
1481
-      this.getScheduleList()
1482
-      this.getAllZoneList()
1537
+     
1538
+     
1483
     }
1539
     }
1484
   }
1540
   }
1485
 </script>
1541
 </script>

+ 2 - 2
src/xt_pages/workforce/remind_print_setting.vue View File

28
                 </div> 
28
                 </div> 
29
                 <div>用量:  
29
                 <div>用量:  
30
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
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
                   <span v-if="main_collection.dialysissolution.anticoagulant == 3">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
32
                   <span v-if="main_collection.dialysissolution.anticoagulant == 3">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
33
                   <span v-if="main_collection.dialysissolution.anticoagulant == 4">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
33
                   <span v-if="main_collection.dialysissolution.anticoagulant == 4">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
34
                   <span v-if="main_collection.dialysissolution.anticoagulant == 5">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
34
                   <span v-if="main_collection.dialysissolution.anticoagulant == 5">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
209
 
209
 
210
       },
210
       },
211
       printAction: function() {
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
         printJS({
214
         printJS({
215
           printable: 'print_content',
215
           printable: 'print_content',