瀏覽代碼

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

csx 2 年之前
父節點
當前提交
5b63a959d6
共有 35 個文件被更改,包括 1990 次插入376 次删除
  1. 0 1
      src/api/advice.js
  2. 8 0
      src/router/modules/drugs.js
  3. 13 1
      src/router/modules/patient.js
  4. 8 0
      src/router/modules/stock.js
  5. 1 0
      src/xt_pages/data/components/templateTable.vue
  6. 2 2
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  7. 17 12
      src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue
  8. 2 1
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  9. 4 4
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  10. 37 41
      src/xt_pages/dialysis/dialysisDoctorAdvice.vue
  11. 26 30
      src/xt_pages/dialysis/doctorAdvicePrint.vue
  12. 1027 76
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue
  13. 19 8
      src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue
  14. 50 31
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  15. 4 3
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue
  16. 3 3
      src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue
  17. 53 40
      src/xt_pages/outpatientCharges/statementPrint.vue
  18. 182 0
      src/xt_pages/outpatientCharges/statementTemplate/printFive.vue
  19. 1 1
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  20. 6 7
      src/xt_pages/outpatientDoctorStation/recordPrint.vue
  21. 2 1
      src/xt_pages/outpatientTool/components/detailStatistics.vue
  22. 1 1
      src/xt_pages/outpatientTool/export.vue
  23. 159 90
      src/xt_pages/outpatientTool/exportOne.vue
  24. 59 5
      src/xt_pages/outpatientTool/gatherPrint.vue
  25. 1 1
      src/xt_pages/outpatientTool/gatherPrintInvoice.vue
  26. 14 8
      src/xt_pages/qcd/patientControlAnalysis.vue
  27. 1 1
      src/xt_pages/stock/drugs/cancelDrugOrderPrint.vue
  28. 5 5
      src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue
  29. 4 0
      src/xt_pages/stock/drugs/inventoryDetails.vue
  30. 137 0
      src/xt_pages/stock/drugs/print.vue
  31. 5 0
      src/xt_pages/stock/inventoryDetails.vue
  32. 1 1
      src/xt_pages/stock/inventoryPrint.vue
  33. 136 0
      src/xt_pages/stock/print_all.vue
  34. 1 1
      src/xt_pages/stock/stockOutOrderDetailPrint.vue
  35. 1 1
      src/xt_pages/user/dialysisRecord.vue

+ 0 - 1
src/api/advice.js 查看文件

@@ -494,7 +494,6 @@ export function GetLastOrNextDoctorAdvice(params) {
494 494
 }
495 495
 
496 496
 export function getSchedualDoctors(params) {
497
-  console.log('中国国323322332232323232323', params)
498 497
   return request({
499 498
     url: '/api/schedule/advices',
500 499
     method: 'get',

+ 8 - 0
src/router/modules/drugs.js 查看文件

@@ -76,6 +76,14 @@ export default {
76 76
       is_menu: false,
77 77
       meta: { title: 'inventoryPrint', noCache: true }
78 78
     },
79
+    {
80
+      path: '/stock/drugs/print',
81
+      component: () => import('@/xt_pages/stock/drugs/print'),
82
+      name: 'print',
83
+      hidden: true,
84
+      is_menu: false,
85
+      meta: { title: 'print', noCache: true }
86
+    },
79 87
     // {
80 88
     //   path: '/stock/drugs/stock/return',
81 89
     //   component: () => import('@/xt_pages/stock/drugs/drugSalesReturnOrder'),

+ 13 - 1
src/router/modules/patient.js 查看文件

@@ -226,6 +226,17 @@ export default {
226 226
       noCache: true
227 227
     }
228 228
   },
229
+  {
230
+    path: '/patient/patient/templateSummary/print_1',
231
+    component: () => import('@/xt_pages/user/templateSummaryPrint_1'),
232
+    hidden: true,
233
+    is_menu: false,
234
+    name: 'templateSummary_1',
235
+    meta: {
236
+      title: 'templateSummary_1',
237
+      noCache: true
238
+    }
239
+  },
229 240
   {
230 241
     path: '/patient/patient/hospitalSummary/print',
231 242
     component: () => import('@/xt_pages/user/hospitalSummaryPrint'),
@@ -236,6 +247,7 @@ export default {
236 247
       title: 'templateSummary',
237 248
       noCache: true
238 249
     }
239
-  }
250
+  },
251
+
240 252
   ]
241 253
 }

+ 8 - 0
src/router/modules/stock.js 查看文件

@@ -99,6 +99,14 @@ export default {
99 99
       is_menu: false,
100 100
       meta: { title: 'inventoryPrint', noCache: true }
101 101
     },
102
+    {
103
+      path: '/stock/print_all',
104
+      component: () => import('@/xt_pages/stock/print_all'),
105
+      name: 'print_all',
106
+      hidden: true,
107
+      is_menu: false,
108
+      meta: { title: 'print_all', noCache: true }
109
+    },
102 110
 
103 111
     // {
104 112
     //   path: "/stock/",

+ 1 - 0
src/xt_pages/data/components/templateTable.vue 查看文件

@@ -299,6 +299,7 @@ export default {
299 299
       })
300 300
         .then(() => {
301 301
           const tempData = Object.assign({}, this.temp);
302
+          console.log("templdatae232333233",tempData)
302 303
           deleteChildConfig(tempData).then(response => {
303 304
             if (!response.data) {
304 305
               // 由于mockjs 不支持自定义状态码只能这样hack

+ 2 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue 查看文件

@@ -111,8 +111,8 @@
111 111
           <label>目标超滤量 : </label>
112 112
           <span class="content">{{ target_ultrafiltration != "0" ? target_ultrafiltration : ""}}</span>
113 113
           
114
-          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45  && this.$store.getters.xt_user.template_info.template_id != 46  && this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.org_id != 9555  && this.$store.getters.xt_user.template_info.org_id != 10345  && this.$store.getters.xt_user.template_info.org_id != 10346"  class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
115
-          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.template_id == 46  || this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345  || this.$store.getters.xt_user.template_info.org_id == 10346" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
114
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45  && this.$store.getters.xt_user.template_info.template_id != 46  && this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.org_id != 9555  && this.$store.getters.xt_user.template_info.org_id != 10345  && this.$store.getters.xt_user.template_info.org_id != 10346  && this.$store.getters.xt_user.template_info.org_id != 10249"  class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
115
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.template_id == 46  || this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345  || this.$store.getters.xt_user.template_info.org_id == 10346  || this.$store.getters.xt_user.template_info.org_id == 10249" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
116 116
         </li>
117 117
 
118 118
          <li v-if="isShow('目标超滤量') && this.$store.getters.xt_user.template_info.org_id == 10290">

+ 17 - 12
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue 查看文件

@@ -223,8 +223,10 @@
223 223
         :cell-class-name="adviceNameShow"
224 224
         :modal-append-to-body="false"
225 225
         highlight-current-row
226
+        @selection-change="handleSelectionChange"
226 227
       >
227
-        <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
228
+        <el-table-column type="selection"  width="55"></el-table-column>
229
+       <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
228 230
           <template slot-scope="scope">
229 231
             <span>{{ getXuserName(scope.row.advice_doctor) }}</span>
230 232
           </template>
@@ -280,10 +282,10 @@
280 282
         </el-table-column>
281 283
         <el-table-column prop="execution_staff" align="center" min-width="30px" label="执行护士"><!--bug642-->
282 284
           <template slot-scope="scope">
283
-            <span v-if="scope.row.parent_id == 0">
285
+            <span>
284 286
               {{getXuserName(scope.row.execution_staff)}}
285 287
             </span>
286
-            <span v-else></span>
288
+
287 289
           </template>
288 290
         </el-table-column>
289 291
         <el-table-column
@@ -294,10 +296,10 @@
294 296
           label="核对人员"
295 297
         >
296 298
           <template slot-scope="scope">
297
-            <span v-if="scope.row.parent_id == 0">
299
+            <span>
298 300
               {{getXuserName(scope.row.checker)}}
299 301
             </span>
300
-            <span v-else></span>
302
+
301 303
           </template>
302 304
         </el-table-column>
303 305
       </el-table>
@@ -320,8 +322,9 @@
320 322
         :cell-class-name="adviceNameShow"
321 323
         :modal-append-to-body="false"
322 324
         highlight-current-row
325
+        @selection-change="handleSelectionChange"
323 326
       >
324
-
327
+        <el-table-column type="selection"  width="55"></el-table-column>
325 328
         <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
326 329
           <template slot-scope="scope">
327 330
             <span>{{ getXuserName(scope.row.advice_doctor) }}</span>
@@ -794,6 +797,10 @@
794 797
 
795 798
     },
796 799
     methods: {
800
+      handleSelectionChange(){
801
+
802
+      },
803
+
797 804
       //调试
798 805
       lili(index,row){
799 806
         // console.log("==index==",index)
@@ -1336,7 +1343,7 @@
1336 1343
               this.currentRow = null
1337 1344
               this.setCurrent()
1338 1345
               this.hideForm()
1339
-            
1346
+
1340 1347
 
1341 1348
               if (this.form.parent_id > 0) {
1342 1349
                 var spliceIndex = -1
@@ -1349,7 +1356,7 @@
1349 1356
                     break
1350 1357
                   }
1351 1358
                 }
1352
-               
1359
+
1353 1360
                 if (spliceIndex > -1) {
1354 1361
                   spliceIndex += 1
1355 1362
                   if (spliceIndex === this.doctor_advices.length) {
@@ -1362,7 +1369,7 @@
1362 1369
                     }
1363 1370
                   }
1364 1371
 
1365
-                 
1372
+
1366 1373
                 }
1367 1374
               } else {
1368 1375
                 this.doctor_advices.unshift(response.data.data.advice)
@@ -1636,9 +1643,7 @@
1636 1643
           this.$message.error('你没有执行医嘱的权限')
1637 1644
           return false
1638 1645
         }
1639
-
1640
-        console.log("王哈",this.currentRow)
1641
-        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id ==10340 ){
1646
+        if(this.org_id == 9675 || this.org_id ==10340 ){
1642 1647
            if(this.currentRow.checker == 0){
1643 1648
               this.$message.error("请先核对医嘱")
1644 1649
               return

+ 2 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue 查看文件

@@ -1329,7 +1329,8 @@
1329 1329
       console.log("针眼",this.pinholings)
1330 1330
       this.catheter_maintenancelist = getDataConfig('hemodialysis','catheter_maintenance')
1331 1331
       console.log("导管维护",this.catheter_maintenancelist)
1332
-     
1332
+       
1333
+      console.log("predialysis_evaluation2332323323222323",this.predialysis_evaluation)
1333 1334
       // this.weight_adjust.weight = this.dry_weight.dry_weight
1334 1335
 
1335 1336
       // if(this.predialysis_evaluation.id == 0){

+ 4 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -87,7 +87,7 @@
87 87
                     </el-col>
88 88
 
89 89
                     <el-col :span="8"
90
-                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45  ||  this.$store.getters.xt_user.template_info.template_id == 46 ||  this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346)">
90
+                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45  ||  this.$store.getters.xt_user.template_info.template_id == 46 ||  this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249)">
91 91
                         <el-form-item label="目标超滤量(ml):">
92 92
                             <el-input
93 93
                                     type="number"
@@ -98,7 +98,7 @@
98 98
 
99 99
 
100 100
                     <el-col :span="8"
101
-                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346">
101
+                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249">
102 102
                         <el-form-item label="目标超滤量(L):">
103 103
                             <el-input
104 104
                                     type="number"
@@ -611,7 +611,7 @@
611 611
                     </el-col>
612 612
 
613 613
                     <el-col :span="8"
614
-                            v-if="isShows('置换液总量') && (this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id ==24 || this.$store.getters.xt_user.template_info.template_id ==53)"
614
+                            v-if="isShows('置换液总量') && ((this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id ==24 || this.$store.getters.xt_user.template_info.template_id ==53) && this.$store.getters.xt_user.template_info.org_id != 10249)"
615 615
                             v-show="totalShow">
616 616
                         <el-form-item label="置换液总量(ml)">
617 617
                             <el-input
@@ -620,7 +620,7 @@
620 620
                         </el-form-item>
621 621
                     </el-col>
622 622
                     <el-col :span="8"
623
-                            v-if="isShows('置换液总量') && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id !=24 && this.$store.getters.xt_user.template_info.template_id !=53"
623
+                            v-if="isShows('置换液总量') && (this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id !=24 && this.$store.getters.xt_user.template_info.template_id !=53) || this.$store.getters.xt_user.template_info.org_id  == 10249"
624 624
                             v-show="totalShow">
625 625
                         <el-form-item label="置换液总量(L)">
626 626
                             <el-input

+ 37 - 41
src/xt_pages/dialysis/dialysisDoctorAdvice.vue 查看文件

@@ -441,7 +441,7 @@ export default {
441 441
     this.getTemplateInfo();
442 442
     this.requestSchedualDoctors(this.time)
443 443
     // this.template_id = this.$store.getters.xt_user.template_info.template_id;
444
-
444
+    this.org_id = this.$store.getters.xt_user.template_info.org_id;
445 445
   },
446 446
   methods: {
447 447
     getTemplateInfo() {
@@ -536,51 +536,47 @@ export default {
536 536
             if(project_config.is_open == 1){
537 537
               this.project = resp.data.project
538 538
               console.log( this.project)
539
+             
539 540
               let projectArr = []
540
-              this.project.map(item => {
541
-                resp.data.hisAdvices.map(it => {
542
-                  if(item.patient_id == it.patient_id){
543
-                    projectArr.push(item)
541
+              if(this.org_id !=9671 && this.org_id!= 10318){
542
+                this.project.map(item => {
543
+                  resp.data.hisAdvices.map(it => {
544
+                    if(item.patient_id == it.patient_id){
545
+                      projectArr.push(item)
546
+                    }
547
+                  })
548
+                })
549
+               
550
+                 resp.data.hisAdvices.map((item,index) => {
551
+                  if(projectArr[index].project && projectArr[index].project.length > 0){
552
+                    projectArr[index].project.map(it => {
553
+                      let obj = {
554
+                        advice_doctor: it.doctor,
555
+                        start_time:it.start_time,
556
+                        advice_name:it.team_id > 0 && it.is_check_team == 1 ? it.team.project_team : it.type == 2 ? it.project.project_name : it.good_info.good_name,
557
+                        execution_time:it.execution_time,
558
+                        execution_state:it.execution_state,
559
+                        execution_staff:it.execution_staff,
560
+                        check_time:it.check_time,
561
+                        check_state:it.check_state,
562
+                        checker:it.checker,
563
+                        created_time:it.ctime,
564
+                        delivery_way:'',
565
+                        execution_frequency:'',
566
+                        remark:'',
567
+                        id:it.id,
568
+                        patient_id:it.patient_id,
569
+                        parent_id:0,
570
+                        groupno:0
571
+                      }
572
+                      item.doctor_advice.push(obj)
573
+                    })
544 574
                   }
545 575
                 })
546
-              })
547
-
576
+              }
577
+            
548 578
               console.log(projectArr)
549 579
 
550
-              resp.data.hisAdvices.map((item,index) => {
551
-                if(projectArr[index].project && projectArr[index].project.length > 0){
552
-                  projectArr[index].project.map(it => {
553
-                    let obj = {
554
-                      advice_doctor: it.doctor,
555
-                      start_time:it.start_time,
556
-                      advice_name:it.team_id > 0 && it.is_check_team == 1 ? it.team.project_team : it.type == 2 ? it.project.project_name : it.good_info.good_name,
557
-                      execution_time:it.execution_time,
558
-                      execution_state:it.execution_state,
559
-                      execution_staff:it.execution_staff,
560
-                      check_time:it.check_time,
561
-                      check_state:it.check_state,
562
-                      checker:it.checker,
563
-                      created_time:it.ctime,
564
-                      delivery_way:'',
565
-                      execution_frequency:'',
566
-                      remark:'',
567
-                      id:it.id,
568
-                      patient_id:it.patient_id,
569
-                      parent_id:0,
570
-                      groupno:0
571
-                    }
572
-                    // let advice = []
573
-                    // advice.push(obj)
574
-                    // let advices = {
575
-                    //   advices: advice,
576
-                    //   group_no: 123
577
-                    // }
578
-
579
-                //     // console.log(11111,item.new_advice)
580
-                    item.doctor_advice.push(obj)
581
-                  })
582
-                }
583
-              })
584 580
             }
585 581
             console.log('resp.data.hisAdvices',resp.data.hisAdvices)
586 582
            if(config.is_open == 0 || config.is_open == 2){

+ 26 - 30
src/xt_pages/dialysis/doctorAdvicePrint.vue 查看文件

@@ -258,7 +258,8 @@ export default {
258 258
             time:'',
259 259
             show:true,
260 260
             showOne:false,
261
-            delivery_way:""
261
+            delivery_way:"",
262
+            org_id:0,
262 263
         }
263 264
     },
264 265
     methods:{
@@ -291,36 +292,31 @@ export default {
291 292
                     this.project = resp.data.project
292 293
                     resp.data.hisAdvices.map((item,index) => {
293 294
                     item.new_advice = item.new_advice ? item.new_advice : []
294
-                    if(this.project[index].project.length > 0){
295
-                        this.project[index].project.map(it => {
296
-                        let obj = {
297
-                            advice_doctor: it.doctor,
298
-                            start_time:it.start_time,
299
-                            advice_name: it.type == 2 ? it.project.project_name : it.good_info.good_name,
300
-                            execution_time:it.execution_time,
301
-                            execution_state:it.execution_state,
302
-                            execution_staff:it.execution_staff,
303
-                            check_time:it.check_time,
304
-                            check_state:it.check_state,
305
-                            checker:it.checker,
306
-                            created_time:it.ctime,
307
-                            remark:'',
308
-                            id:it.id,
309
-                            parent_id:0,
310
-                            groupno:0
295
+                      if(this.org_id!=9671 && this.org_id!= 10318){
296
+                        if(this.project[index].project.length > 0){
297
+                            this.project[index].project.map(it => {
298
+                            let obj = {
299
+                                advice_doctor: it.doctor,
300
+                                start_time:it.start_time,
301
+                                advice_name: it.type == 2 ? it.project.project_name : it.good_info.good_name,
302
+                                execution_time:it.execution_time,
303
+                                execution_state:it.execution_state,
304
+                                execution_staff:it.execution_staff,
305
+                                check_time:it.check_time,
306
+                                check_state:it.check_state,
307
+                                checker:it.checker,
308
+                                created_time:it.ctime,
309
+                                remark:'',
310
+                                id:it.id,
311
+                                parent_id:0,
312
+                                groupno:0
313
+                            }
314
+                        
315
+                            item.doctor_advice.push(obj)
316
+                            })
311 317
                         }
312
-                        // let advice = []
313
-                        // advice.push(obj)
314
-                        // let advices = {
315
-                        //   advices: advice,
316
-                        //   group_no: 123
317
-                        // }
318
-
319
-                        // console.log(11111,item.new_advice)
320
-                        item.doctor_advice.push(obj)
321
-                        })
322 318
                     }
323
-                    })
319
+                   })
324 320
                 }
325 321
                 if(config.is_open == 0 || config.is_open == 2){
326 322
 
@@ -781,11 +777,11 @@ export default {
781 777
     created(){
782 778
       var time = this.$route.query.time
783 779
       var delivery_way = this.$route.query.delivery_way
784
-      console.log("delivery_Way",delivery_way)
785 780
       this.delivery_way = delivery_way
786 781
       this.time = moment(time).format('YYYY-MM-DD')
787 782
       console.log(11,this.$route.query)
788 783
       this.requestSchedualDoctors(time)
784
+      this.org_id = this.$store.getters.xt_user.template_info.org_id;
789 785
     }
790 786
 }
791 787
 </script>

文件差異過大導致無法顯示
+ 1027 - 76
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue


+ 19 - 8
src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue 查看文件

@@ -1451,21 +1451,19 @@
1451 1451
                         >
1452 1452
                           <span v-if="advice.parent_id > 0">---></span>
1453 1453
                           <span v-if="advice.advice_name">{{ advice.advice_name }}</span>
1454
-                          <span v-else>{{ advice.project.project_name }}</span>
1454
+                          <span v-else-if="advice.project && advice.project.project_name">{{ advice.project.project_name }}</span>
1455 1455
 
1456 1456
                           <span v-if="advice && advice.advice_desc"
1457 1457
                             >({{ advice.advice_desc
1458 1458
                             }}{{ advice.drug_spec_unit }})</span
1459 1459
                           >
1460
-                          <span v-if="advice && advice.project">{{advice.count}}{{advice.project.unit}}</span>
1461
-                          <span v-if="advice.prescribing_number"
1462
-                            >&nbsp;&nbsp; {{ advice.prescribing_number
1463
-                            }}{{ advice.prescribing_number_unit }}</span
1464
-                          >
1460
+                          
1461
+                         
1465 1462
                           <span v-if="advice.single_dose != 0"
1466 1463
                             >{{ advice.single_dose
1467 1464
                             }}{{ advice.single_dose_unit }}</span
1468 1465
                           >
1466
+                          <span v-if="advice && advice.project">{{advice.project.unit}}</span>
1469 1467
                           <span v-if="advice.parent_id == 0">{{
1470 1468
                             advice.delivery_way
1471 1469
                           }}</span>
@@ -1485,11 +1483,11 @@
1485 1483
                       <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
1486 1484
                     </td> -->
1487 1485
                         <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
1488
-                        <td height="32px">
1486
+                        <td height="32px" v-if="advice.advice_doctor">
1489 1487
                           <span
1490 1488
                             v-if="setAdminUserES(advice.advice_doctor) == ''"
1491 1489
                             >{{ getAdminUser(advice.advice_doctor) }}</span
1492
-                          >
1490
+                          >  
1493 1491
                           <img
1494 1492
                             style="height: 30px"
1495 1493
                             :src="setAdminUserES(advice.advice_doctor)"
@@ -1498,6 +1496,19 @@
1498 1496
                             v-else
1499 1497
                           />
1500 1498
                         </td>
1499
+                        <td v-else>
1500
+                            <span
1501
+                            v-if="setAdminUserES(advice.doctor) == ''"
1502
+                            >{{ getAdminUser(advice.doctor) }}</span
1503
+                          >
1504
+                          <img
1505
+                            style="height: 30px"
1506
+                            :src="setAdminUserES(advice.doctor)"
1507
+                            alt=""
1508
+                            srcset=""
1509
+                            
1510
+                          />
1511
+                        </td>
1501 1512
                         <!-- <td height="35px">
1502 1513
                       <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
1503 1514
                       <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>

+ 50 - 31
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 查看文件

@@ -46,7 +46,7 @@
46 46
           <div class="inline_block" style="margin-left: 10px">
47 47
             年龄:
48 48
             <div class="under_line" style="width: 30px; text-align: center">
49
-              {{ getAge(patientInfo)}}
49
+              {{ getAge(patientInfo) }}
50 50
             </div>
51 51
52 52
           </div>
@@ -1601,6 +1601,8 @@
1601 1601
             </tbody>
1602 1602
           </table>
1603 1603
         </div>
1604
+        
1605
+
1604 1606
         <template v-if="this.totollength > 13">
1605 1607
           <div style="display: inline-block; width: 100%; text-align: center">
1606 1608
             <div
@@ -1673,19 +1675,19 @@
1673 1675
             <div class="inline_block" style="margin-left: 5px">
1674 1676
               住院号/门诊号:
1675 1677
               <div
1676
-              class="under_line"
1677
-              style="width: 70px; text-align: left"
1678
-              v-if="receiverTreatmentAccess.admission_number"
1679
-            >
1680
-              {{ receiverTreatmentAccess.admission_number }}
1681
-            </div>
1682
-            <div
1683
-              class="under_line"
1684
-              style="width: 70px; text-align: left"
1685
-              v-else
1686
-            >
1687
-              {{ "/" }}
1688
-            </div>
1678
+                class="under_line"
1679
+                style="width: 70px; text-align: left"
1680
+                v-if="receiverTreatmentAccess.admission_number"
1681
+              >
1682
+                {{ receiverTreatmentAccess.admission_number }}
1683
+              </div>
1684
+              <div
1685
+                class="under_line"
1686
+                style="width: 70px; text-align: left"
1687
+                v-else
1688
+              >
1689
+                {{ "/" }}
1690
+              </div>
1689 1691
             </div>
1690 1692
           </div>
1691 1693
           <div class="row" style="margin-bottom: 10px">
@@ -2695,16 +2697,32 @@ export default {
2695 2697
   },
2696 2698
   methods: {
2697 2699
     // 获取当前年份,用于年龄计算
2698
-    getoldAge(){
2699
-      let date = new Date()
2700
-      let year = date.getFullYear()
2701
-      let year_d = year-this.xtdate.split('-')[0]
2702
-      return year_d
2700
+    getoldAge() {
2701
+      let date = new Date();
2702
+      let year = date.getFullYear();
2703
+      let year_d =
2704
+        this.xtdate.split("-")[0] - this.patientInfo.birth.split("-")[0];
2705
+      let year_m = this.xtdate.split("-")[1];
2706
+      let birth_m = this.patientInfo.birth.split("-")[1];
2707
+      let year_date = this.xtdate.split("-")[2];
2708
+      let birth_date = this.patientInfo.birth.split("-")[2];
2709
+      // console.log(year,'今年年月')
2710
+      // console.log(this.xtdate.split('-'),'病人就诊年月')
2711
+      console.log(this.patientInfo.birth, "病人生日");
2712
+      // console.log(year_d,'year_d')
2713
+      if (year_m < birth_m) {
2714
+        return year_d - 1;
2715
+      } else if (year_m == birth_m) {
2716
+        if (year_date < birth_date) {
2717
+          return year_d - 1;
2718
+        } else {
2719
+          return year_d;
2720
+        }
2721
+      } else {
2722
+        return year_d;
2723
+      }
2703 2724
     },
2704 2725
 
2705
-
2706
-
2707
-
2708 2726
     checkData() {
2709 2727
       if (this.receiverTreatmentAccess.way == 0) {
2710 2728
         this.$message.error("入科方式未填");
@@ -3075,6 +3093,7 @@ export default {
3075 3093
           this.patientInfo.birthday,
3076 3094
           "{y}-{m}-{d}"
3077 3095
         );
3096
+        // console.log(this.patientInfo.birth,'测试生日')
3078 3097
         // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
3079 3098
         if (response.data.data.patientInfo.first_dialysis_date != 0) {
3080 3099
           this.patientInfo.first_dialysis_date = uParseTime(
@@ -3095,14 +3114,14 @@ export default {
3095 3114
         this.afterdialysis = response.data.data.AssessmentAfterDislysis;
3096 3115
         // console.log('透后体重', this.afterdialysis)
3097 3116
         this.lastafterdialysis = response.data.data.assessmentAfterDislysis;
3098
-        console.log("上次透后体重", this.lastafterdialysis.weight_after);
3117
+        // console.log("上次透后体重", this.lastafterdialysis.weight_after);
3099 3118
         this.operators = response.data.data.operators;
3100
-        console.log("operators", this.operators);
3119
+        // console.log("operators", this.operators);
3101 3120
         this.dialysisOrder =
3102 3121
           response.data.data.dialysisOrder === null
3103 3122
             ? null
3104 3123
             : response.data.data.dialysisOrder;
3105
-        console.log("上机233232323232", this.dialysisOrder);
3124
+        // console.log("上机233232323232", this.dialysisOrder);
3106 3125
         if (this.operators.length > 0) {
3107 3126
           var operatorsLen = this.operators.length;
3108 3127
           for (var index = 0; index < operatorsLen; index++) {
@@ -3159,7 +3178,7 @@ export default {
3159 3178
           this.afterdialysis.complications_other.join(",");
3160 3179
 
3161 3180
         this.prescription = response.data.data.dialysisPrescription;
3162
-        console.log("透析处方", this.prescription);
3181
+        // console.log("透析处方", this.prescription);
3163 3182
         this.receiverTreatmentAccess =
3164 3183
           response.data.data.receiverTreatmentAccess;
3165 3184
         this.prescription.mode = this.modeName(this.prescription.mode_id);
@@ -3207,7 +3226,7 @@ export default {
3207 3226
 
3208 3227
         this.advices = response.data.data.advices;
3209 3228
         this.tableAdvice = response.data.data.advices;
3210
-        console.log("医嘱数据2222222222", this.advices);
3229
+        // console.log("医嘱数据2222222222", this.advices);
3211 3230
         this.monitors = response.data.data.monitors;
3212 3231
         this.summary = response.data.data.summary;
3213 3232
         this.org_template_info = response.data.data.org_template_info;
@@ -3419,7 +3438,7 @@ export default {
3419 3438
           this.doctor_advices = doctor_advices_1;
3420 3439
           this.doctor_advices_2 = doctor_advices_2;
3421 3440
         }
3422
-        console.log(this.advice_groups);
3441
+        // console.log(this.advice_groups);
3423 3442
       } else {
3424 3443
         this.loading = false;
3425 3444
         this.$message.error("请求数据失败");
@@ -3451,7 +3470,7 @@ export default {
3451 3470
           return val.age;
3452 3471
         }
3453 3472
       } else {
3454
-        return jsGetAge(val.birth, "-");
3473
+        return this.getoldAge();
3455 3474
       }
3456 3475
     },
3457 3476
     newAdviceGroupObject: function () {
@@ -3562,9 +3581,9 @@ export default {
3562 3581
     }
3563 3582
 
3564 3583
     const xtdate = this.$route.query && this.$route.query.xtdate;
3565
-    console.log("xtdate", xtdate);
3584
+    // console.log("xtdate", xtdate);
3566 3585
     const xtno = this.$route.query && this.$route.query.xtno;
3567
-    console.log("xtno", xtno);
3586
+    // console.log("xtno", xtno);
3568 3587
     if (
3569 3588
       typeof xtdate === "string" &&
3570 3589
       xtdate.length > 0 &&

+ 4 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue 查看文件

@@ -304,6 +304,7 @@
304 304
           出血
305 305
           <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
306 306
             <span v-if="predialysis.is_hemorrhage == 1">{{ predialysis.is_hemorrhage == 1 && predialysis.hemorrhage ? predialysis.hemorrhage : "" }}</span>
307
+            <span v-if="predialysis.is_hemorrhage == 1">{{ predialysis.is_hemorrhage == 1 && predialysis.hemorrhage_other ? predialysis.hemorrhage_other : "" }}</span>
307 308
             <span v-if="predialysis.is_hemorrhage == 2">无</span>
308 309
             <span v-if="predialysis.is_hemorrhage != 2 && predialysis.is_hemorrhage != 1">/</span>
309 310
           </div>
@@ -416,13 +417,13 @@
416 417
                 <td style="height:40px;line-height:40px">&nbsp;
417 418
                   {{getTime(monitor.operate_time,'{h}:{i}')}}
418 419
                 </td>
419
-                <td>&nbsp;{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure:''}} /
420
+                <td>&nbsp;{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure:''}} <span v-if="monitor.systolic_blood_pressure||monitor.diastolic_blood_pressure">/</span>
420 421
                   {{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}
421 422
                 </td>
422 423
                 <td>&nbsp;{{monitor.pulse_frequency?monitor.pulse_frequency:''}}</td>
423 424
                 <td>&nbsp;{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
424
-                <td>&nbsp;{{monitor.venous_pressure?monitor.venous_pressure:''}}/{{ monitor.arterial_pressure ? monitor.arterial_pressure : "" }}</td>
425
-                <td>&nbsp;{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:''}}</td>
425
+                <td>&nbsp;{{monitor.venous_pressure?monitor.venous_pressure:''}}<span v-if="monitor.venous_pressure||monitor.arterial_pressure">/</span>{{ monitor.arterial_pressure ? monitor.arterial_pressure : "" }}</td>
426
+                <td>&nbsp;{{monitor.ultrafiltration_volume==0 && monitor.id?'0':monitor.ultrafiltration_volume}}</td>
426 427
                 <td>&nbsp;{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:''}}</td>
427 428
                 <td>&nbsp;{{monitor.conductivity?monitor.conductivity:''}}</td>
428 429
                 <td>&nbsp;{{monitor.dialysate_temperature ? monitor.dialysate_temperature : ''}}</td>

+ 3 - 3
src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue 查看文件

@@ -113,13 +113,13 @@
113 113
                 >&nbsp; (
114 114
                 <label-box
115 115
                   :isChecked="
116
-                    prescription.displace_liqui_part == 1 ? true : false
116
+                    prescription.mode_id == 2 && prescription.displace_liqui_part == 1 ? true : false
117 117
                   "
118 118
                   showValue="前稀释"
119 119
                 ></label-box>
120 120
                 <label-box
121 121
                   :isChecked="
122
-                    prescription.displace_liqui_part == 2 ? true : false
122
+                    prescription.mode_id == 2 && prescription.displace_liqui_part == 2 ? true : false
123 123
                   "
124 124
                   showValue="后稀释"
125 125
                 ></label-box>
@@ -127,7 +127,7 @@
127 127
                   ,置换量
128 128
                   <span style="width: 50px; display: inline-block">
129 129
                     {{
130
-                      prescription.displace_liqui_value
130
+                      prescription.displace_liqui_value && prescription.mode_id == 2
131 131
                         ? prescription.displace_liqui_value
132 132
                         : "/"
133 133
                     }}

+ 53 - 40
src/xt_pages/outpatientCharges/statementPrint.vue 查看文件

@@ -28,21 +28,24 @@
28 28
           :info="info"
29 29
           :paramsObj="paramsObj"
30 30
           :balanceAccounts="balanceAccounts"
31
-          v-if="
32
-            org_id == 10138 || org_id == 4 || org_id == 10278
33
-          "
31
+          v-if="org_id == 10138 || org_id == 4 || org_id == 10278"
34 32
         ></printThree>
35 33
         <printFour
36
-          v-if="org_id == 9504 || org_id == 10028  || org_id == 10088"
34
+          v-if="org_id == 9504 || org_id == 10028 || org_id == 10088"
37 35
           :info="info"
38 36
           :paramsObj="paramsObj"
39 37
           :balanceAccounts="balanceAccounts"
40 38
         ></printFour>
41
-<!--        <privateChargePrint  :info="info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></privateChargePrint>-->
42
-
39
+        <!--        <privateChargePrint  :info="info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></privateChargePrint>-->
43 40
       </div>
44
-<!--      <print-other :info="info" v-if="org_id == 9919"></print-other>-->
45
-<!--      <printOne :info=" info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></printOne>-->
41
+      <!--      <print-other :info="info" v-if="org_id == 9919"></print-other>-->
42
+      <!--      <printOne :info=" info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></printOne>-->
43
+      <printFive
44
+        v-if="org_id == 0"
45
+        :info="info"
46
+        :paramsObj="paramsObj"
47
+        :balanceAccounts="balanceAccounts"
48
+      ></printFive>
46 49
       <printOne :info="info" v-else></printOne>
47 50
       <!-- 测试医保环境下表格样式放开以下这条 -->
48 51
       <!-- <testVue :info="info" v-else></testVue> -->
@@ -65,13 +68,14 @@ import privateChargePrint from "./statementTemplate/privateChargePrint";
65 68
 import printTwo from "./statementTemplate/printTwo";
66 69
 import printThree from "./statementTemplate/printThree";
67 70
 import printFour from "./statementTemplate/printFour";
71
+import printFive from "./statementTemplate/printFive";
68 72
 import testVue from "./statementTemplate/test";
69 73
 import {
70 74
   getAllDoctorList,
71 75
   getAllHisPatientList,
72 76
   getPrescriptionPrint,
73 77
 } from "@/api/project/project";
74
-import { getPrivateExpenses,getPrivateExpensesOrder } from "@/api/his/his";
78
+import { getPrivateExpenses, getPrivateExpensesOrder } from "@/api/his/his";
75 79
 // import PrintOther from '../hospitalStation/statementTemplate/printOther'
76 80
 export default {
77 81
   name: "dialysisPrintOrder",
@@ -83,6 +87,7 @@ export default {
83 87
     printThree,
84 88
     printFour,
85 89
     testVue,
90
+    printFive,
86 91
   },
87 92
   props: {
88 93
     paramsObj: Object,
@@ -115,7 +120,6 @@ export default {
115 120
 
116 121
       if (
117 122
         this.$store.getters.xt_user.org_id == 10138 ||
118
-        // this.$store.getters.xt_user.org_id == 0 ||
119 123
         this.$store.getters.xt_user.org_id == 4 ||
120 124
         this.$store.getters.xt_user.org_id == 10278
121 125
       ) {
@@ -256,6 +260,18 @@ export default {
256 260
             style: style,
257 261
             scanStyles: false,
258 262
           });
263
+        } else if (
264
+          this.$store.getters.xt_user.org_id == 0 ||
265
+          this.$store.getters.xt_user.org_id == 10191
266
+        ) {
267
+          const style =
268
+            "@media print {.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;} .statementTable thead{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;} .statementTable tbody{text-align:left;} .statementTable tbody .view_tr{text-align:center;border: 1px solid;} tbody .dashed_tr{border: 1px dashed;text-align:center} .list_table{width: 100%;margin-bottom: 100px;} tbody tr td div{height:25px;}}";
269
+          printJS({
270
+            printable: "statement-print",
271
+            type: "html",
272
+            style: style,
273
+            scanStyles: false,
274
+          });
259 275
         } else {
260 276
           const style =
261 277
             "@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}";
@@ -363,8 +379,8 @@ export default {
363 379
         let params = {
364 380
           his_patient_id: obj.his_patient_id,
365 381
           id: obj.order_id,
366
-          order_id:obj.order_id,
367
-          admin_user_id:this.$store.getters.xt_user.user.id,
382
+          order_id: obj.order_id,
383
+          admin_user_id: this.$store.getters.xt_user.user.id,
368 384
         };
369 385
         if (
370 386
           this.org_id == 10138 ||
@@ -491,16 +507,14 @@ export default {
491 507
               console.log(111, this.balanceAccounts);
492 508
             }
493 509
           });
494
-        }else
495
-          if (this.org_id == 10215 || this.org_id == 0) {
496
-
510
+        } else if (this.org_id == 10215 || this.org_id == 0) {
497 511
           getPrivateExpensesOrder(params).then((response) => {
498 512
             if (response.data.state == 0) {
499 513
               // this.$message.error(response.data.msg)
500 514
 
501 515
               return false;
502 516
             } else {
503
-              var that = this
517
+              var that = this;
504 518
               that.info = response.data.data.info;
505 519
               that.p_admin = response.data.data.printor_admin;
506 520
               that.charge_admin = response.data.data.charge_admin;
@@ -521,62 +535,62 @@ export default {
521 535
 
522 536
               that.info["bed_cost_total"] = response.data.data.bedCostTotal;
523 537
               that.info["bed_cost_self_total"] =
524
-                  response.data.data.bedCostSelfTotal;
538
+                response.data.data.bedCostSelfTotal;
525 539
               that.info["bed_cost_part_self_total"] =
526
-                  response.data.data.bedCostPartSelfTotal;
540
+                response.data.data.bedCostPartSelfTotal;
527 541
 
528 542
               that.info["operation_cost_total"] =
529
-                  response.data.data.operationCostTotal;
543
+                response.data.data.operationCostTotal;
530 544
               that.info["operation_cost_self_total"] =
531
-                  response.data.data.operationCostSelfTotal;
545
+                response.data.data.operationCostSelfTotal;
532 546
               that.info["operation_cost_part_self_total"] =
533
-                  response.data.data.operationCostPartSelfTotal;
547
+                response.data.data.operationCostPartSelfTotal;
534 548
 
535 549
               that.info["other_cost_total"] = response.data.data.otherCostTotal;
536 550
               that.info["other_cost_self_total"] =
537
-                  response.data.data.otherCostSelfTotal;
551
+                response.data.data.otherCostSelfTotal;
538 552
               that.info["other_cost_part_self_total"] =
539
-                  response.data.data.otherCostPartSelfTotal;
553
+                response.data.data.otherCostPartSelfTotal;
540 554
 
541 555
               that.info["material_cost_total"] =
542
-                  response.data.data.materialCostTotal;
556
+                response.data.data.materialCostTotal;
543 557
               that.info["material_cost_self_total"] =
544
-                  response.data.data.materialCostSelfTotal;
558
+                response.data.data.materialCostSelfTotal;
545 559
               that.info["material_cost_part_self_total"] =
546
-                  response.data.data.materialCostPartSelfTotal;
560
+                response.data.data.materialCostPartSelfTotal;
547 561
 
548 562
               that.info["western_medicine_cost_total"] =
549
-                  response.data.data.westernMedicineCostTotal;
563
+                response.data.data.westernMedicineCostTotal;
550 564
               that.info["western_medicine_cost_self_total"] =
551
-                  response.data.data.westernMedicineCostSelfTotal;
565
+                response.data.data.westernMedicineCostSelfTotal;
552 566
               that.info["western_medicine_cost_part_self_total"] =
553
-                  response.data.data.westernMedicineCostPartSelfTotal;
567
+                response.data.data.westernMedicineCostPartSelfTotal;
554 568
 
555 569
               that.info["chinese_traditional_medicine_cost_total"] =
556
-                  response.data.data.chineseTraditionalMedicineCostTotal;
570
+                response.data.data.chineseTraditionalMedicineCostTotal;
557 571
               that.info["chinese_traditional_medicine_cost_self_total"] =
558
-                  response.data.data.chineseTraditionalMedicineCostSelfTotal;
572
+                response.data.data.chineseTraditionalMedicineCostSelfTotal;
559 573
               that.info["chinese_traditional_medicine_cost_part_self_total"] =
560
-                  response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
574
+                response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
561 575
 
562 576
               that.info["check_cost_total"] = response.data.data.checkCostTotal;
563 577
               that.info["check_cost_self_total"] =
564
-                  response.data.data.checkCostSelfTotal;
578
+                response.data.data.checkCostSelfTotal;
565 579
               that.info["check_cost_part_self_total"] =
566
-                  response.data.data.checkCostPartSelfTotal;
580
+                response.data.data.checkCostPartSelfTotal;
567 581
 
568 582
               that.info["laboratory_cost_total"] =
569
-                  response.data.data.laboratoryCostTotal;
583
+                response.data.data.laboratoryCostTotal;
570 584
               that.info["laboratory_cost_self_total"] =
571
-                  response.data.data.laboratoryCostSelfTotal;
585
+                response.data.data.laboratoryCostSelfTotal;
572 586
               that.info["laboratory_cost_part_self_total"] =
573
-                  response.data.data.laboratoryCostPartSelfTotal;
587
+                response.data.data.laboratoryCostPartSelfTotal;
574 588
 
575 589
               that.info["treat_cost_total"] = response.data.data.treatCostTotal;
576 590
               that.info["treat_cost_self_total"] =
577
-                  response.data.data.treatCostSelfTotal;
591
+                response.data.data.treatCostSelfTotal;
578 592
               that.info["treat_cost_part_self_total"] =
579
-                  response.data.data.treatCostPartSelfTotal;
593
+                response.data.data.treatCostPartSelfTotal;
580 594
               that.info["date"] = response.data.data.date;
581 595
               // that.info["number"] = response.data.data.number;
582 596
               that.info["order_infos"] = response.data.data.order_infos;
@@ -643,7 +657,6 @@ export default {
643 657
               }
644 658
             }
645 659
           });
646
-
647 660
         }
648 661
       } else {
649 662
         var that = this;

+ 182 - 0
src/xt_pages/outpatientCharges/statementTemplate/printFive.vue 查看文件

@@ -0,0 +1,182 @@
1
+<template>
2
+  <div id="statement-print" class="statement-print">
3
+    <table class="statementTable" border="0">
4
+      <thead>
5
+        <tr>
6
+          <td colspan="10">石狮圣誉血液透析中心结算单</td>
7
+        </tr>
8
+      </thead>
9
+
10
+      <tbody>
11
+        <tr>
12
+          <td colspan="10">日期区间:</td>
13
+        </tr>
14
+        <tr class="view_tr">
15
+          <td colspan="2">姓名:</td>
16
+          <td colspan="2">性别:</td>
17
+          <td colspan="2">医保类型:</td>
18
+          <td colspan="2">社会保障号码:</td>
19
+          <td colspan="2">账号余额:</td>
20
+        </tr>
21
+        <tr class="view_tr">
22
+          <td colspan="10">明细信息</td>
23
+        </tr>
24
+
25
+        <!-- 帐单列表分为左右两列,需要对数据进行x/2分别放进list_L,list_R两个数组进行循环 -->
26
+        <tr>
27
+          <td colspan="6">
28
+            <table class="list_table">
29
+              <tr colspan="6" v-for="(item, index) in list_L" :key="index">
30
+                <td colspan="2">药名</td>
31
+                <td>规格</td>
32
+                <td>数量</td>
33
+                <td>价格</td>
34
+              </tr>
35
+            </table>
36
+          </td>
37
+
38
+          <td colspan="4">
39
+            <table class="list_table">
40
+              <tr colspan="4" v-for="(item, index) in list_R" :key="index">
41
+                <td colspan="2">药名</td>
42
+                <td>规格</td>
43
+                <td>数量</td>
44
+                <td>价格</td>
45
+              </tr>
46
+            </table>
47
+          </td>
48
+        </tr>
49
+        <tr>
50
+          <td colspan="10">共一页,第一页419.32</td>
51
+        </tr>
52
+        <tr class="dashed_tr">
53
+          <td colspan="10">结付分类</td>
54
+        </tr>
55
+        <tr>
56
+          <td colspan="10">
57
+            <div>费用总计:</div>
58
+            <div>统筹支付:</div>
59
+            <div>账户支付:</div>
60
+            <div>个人现金支付:</div>
61
+            <div>其他支付:</div>
62
+            <div>减免金额:</div>
63
+          </td>
64
+        </tr>
65
+      </tbody>
66
+    </table>
67
+  </div>
68
+</template>
69
+<script>
70
+export default {
71
+  props: {
72
+    info: {
73
+      type: Object,
74
+      default: function () {
75
+        return {};
76
+      },
77
+    },
78
+    p_admin: {
79
+      type: Object,
80
+      default: function () {
81
+        return {};
82
+      },
83
+    },
84
+    charge_admin: {
85
+      type: Object,
86
+      default: function () {
87
+        return {};
88
+      },
89
+    },
90
+  },
91
+  data() {
92
+    return {
93
+      list_L: [1,2],
94
+      list_R: [1,2],
95
+    };
96
+  },
97
+  methods: {
98
+    getDay(dateString1, dateString2) {
99
+      var startDate = Date.parse(dateString1);
100
+      var endDate = Date.parse(dateString2);
101
+      if (startDate > endDate) {
102
+        return 0;
103
+      }
104
+      if (startDate == endDate) {
105
+        return 1;
106
+      }
107
+      var days = (endDate - startDate) / (1 * 24 * 60 * 60 * 1000);
108
+      return days;
109
+    },
110
+    getNowTime: function () {
111
+      let dateTime;
112
+      let yy = new Date().getFullYear();
113
+      let mm = new Date().getMonth() + 1;
114
+      let dd = new Date().getDate();
115
+      let hh = new Date().getHours();
116
+      let mf =
117
+        new Date().getMinutes() < 10
118
+          ? "0" + new Date().getMinutes()
119
+          : new Date().getMinutes();
120
+      let ss =
121
+        new Date().getSeconds() < 10
122
+          ? "0" + new Date().getSeconds()
123
+          : new Date().getSeconds();
124
+      dateTime = yy + "-" + mm + "-" + dd + " " + hh + ":" + mf + ":" + ss;
125
+      return dateTime;
126
+    },
127
+  },
128
+};
129
+</script>
130
+
131
+
132
+<style lang="scss" scoped>
133
+.statement-print {
134
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
135
+    0 0 60px rgba(0, 0, 0, 0.06) inset;
136
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
137
+    0 0 40px rgba(0, 0, 0, 0.06) inset;
138
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
139
+  margin-bottom: 20px;
140
+  padding: 20px 10px;
141
+}
142
+
143
+.statementTitle {
144
+  font-size: 28px;
145
+  text-align: center;
146
+  font-weight: bold;
147
+  margin-bottom: 10px;
148
+}
149
+
150
+.statementTable {
151
+  width: 100%;
152
+  text-align: center;
153
+  border-collapse: collapse;
154
+  line-height: 40px;
155
+  font-size: 14px;
156
+}
157
+.statementTable thead{
158
+  font-size: 28px;
159
+  text-align: center;
160
+  font-weight: bold;
161
+  margin-bottom: 10px;
162
+}
163
+
164
+.statementTable tbody{
165
+    text-align: left;
166
+}
167
+tbody .view_tr{
168
+    border: 1px solid;
169
+    text-align: center;
170
+}
171
+.list_table{
172
+    width: 100%;
173
+    margin-bottom: 100px;
174
+}
175
+tbody .dashed_tr{
176
+    border: 1px dashed;
177
+    text-align: center;
178
+}
179
+tbody tr td div{
180
+    height: 25px;
181
+}
182
+</style>

+ 1 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

@@ -439,7 +439,7 @@ export default {
439 439
     },
440 440
 
441 441
     // 电子病历打印
442
-    opentwo(index) {
442
+    opentwo(index) {  
443 443
       if (index == 1) {
444 444
         if (this.patientInfo.id == undefined) {
445 445
           this.$message.error('请先选择病人')

+ 6 - 7
src/xt_pages/outpatientDoctorStation/recordPrint.vue 查看文件

@@ -14,13 +14,11 @@
14 14
     <div class="dialysisPage" style="padding-top: 40px">
15 15
       <printOne
16 16
         v-if="
17
-          org_id != 10217 &&
17
+          org_id != 10217 && org_id != 10188 &&org_id != 10318&&
18 18
           org_id != 9675 &&
19 19
           org_id != 9671 &&
20 20
           org_id != 0 &&
21
-          org_id != 10164 &&
22
-          org_id != 10188 &&
23
-          org_id != 10318
21
+          org_id != 10164 
24 22
         "
25 23
         ref="printOne"
26 24
         v-bind:childResponse="childResponse"
@@ -32,10 +30,11 @@
32 30
       <printTwo
33 31
         v-if="
34 32
           org_id == 10217 ||
33
+           org_id == 10188 ||
35 34
           org_id == 9675 ||
36 35
           org_id == 9671 ||
37
-          org_id == 10164 ||
38
-          org_id == 10188
36
+          org_id == 10164
37
+         
39 38
         "
40 39
         ref="printTwo"
41 40
         v-bind:childResponse="childResponse"
@@ -101,7 +100,7 @@ export default {
101 100
   methods: {
102 101
     show(val, id) {
103 102
       this.org_id = id;
104
-      if (id == 10217 || id == 9675 || id == 9671 ) {
103
+      if (id == 10217 || id == 9675 || id == 9671|| id == 10188 ) {
105 104
         this.$refs.printTwo.show(val);
106 105
       } else if (id == 10318|| id == 0) {
107 106
         this.$refs.printThree.show(val);

+ 2 - 1
src/xt_pages/outpatientTool/components/detailStatistics.vue 查看文件

@@ -168,6 +168,7 @@
168 168
       <div>总费用:{{ getAllPice() }}</div>
169 169
       <div>
170 170
         个人支付: 
171
+       
171 172
         <span v-if="his_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>  
172 173
         <span v-if="his_patient.balance_accounts_type != 2">{{ getActPay() }}</span>
173 174
       
@@ -446,7 +447,7 @@ export default {
446 447
       var act_pay = 0;
447 448
       for (let i = 0; i < this.list.length; i++) {
448 449
         for (let j = 0; j < this.list[i].orders.length; j++) {
449
-          act_pay += this.list[i].orders[j].acct_pay;
450
+          act_pay += this.list[i].orders[j].psn_cash_pay;
450 451
         }
451 452
       }
452 453
       return act_pay.toFixed(2);

+ 1 - 1
src/xt_pages/outpatientTool/export.vue 查看文件

@@ -65,7 +65,7 @@
65 65
           end-placeholder="结束日期"
66 66
         >
67 67
         </el-date-picker>
68
-         <el-button  size="small" type="primary" @click="exportList">导出</el-button>
68
+         <el-button  size="small" type="primary" @click="exportList" style="width:50px">导出</el-button>
69 69
         <el-table
70 70
         :data="tableList"
71 71
          border

+ 159 - 90
src/xt_pages/outpatientTool/exportOne.vue 查看文件

@@ -65,61 +65,78 @@
65 65
           end-placeholder="结束日期"
66 66
         >
67 67
         </el-date-picker>
68
-         <el-button  size="small" type="primary" @click="exportList">导出</el-button>
68
+         <el-button  size="small" type="primary" @click="exportList" style="width:50px">导出</el-button>
69 69
         <el-table
70 70
         :data="tableList"
71 71
          border
72 72
         style="width: 100%">
73 73
          <el-table-column prop="date" label="姓名"  width="100" align="center">
74 74
            <template slot-scope="scope" >
75
-            {{ scope.row.name }}
75
+            {{ scope.row.patient.name }}
76 76
            </template>
77 77
         </el-table-column>
78 78
         <el-table-column  prop="date"  label="身份证"  width="200" align="center">
79 79
            <template slot-scope="scope" >
80
-            {{ scope.row.id_card_no }}
80
+            {{ scope.row.patient.id_card_no }}
81 81
            </template> 
82 82
         </el-table-column>
83 83
         <el-table-column prop="name"  label="医保类型" width="100" align="center">
84 84
           <template slot-scope="scope" >
85
-            <span v-if="scope.row.insutype == 0">居民</span>
86
-            <span v-if="scope.row.insutype == 310">职工</span>
87
-            <span v-if="scope.row.insutype == 390">居民</span>
85
+            <span v-if="scope.row.order.insutype == 0">居民</span>
86
+            <span v-if="scope.row.order.insutype == 310">职工</span>
87
+            <span v-if="scope.row.order.insutype == 390">居民</span>
88 88
            </template>  
89 89
         </el-table-column>
90 90
         <el-table-column  prop="address" label="年"  width="50" align="center">
91 91
           <template slot-scope="scope" >
92
-            {{getTime(scope.row.settle_accounts_date)}}
92
+            {{getTime(scope.row.order.settle_accounts_date)}}
93 93
          </template>  
94 94
         </el-table-column>
95 95
          <el-table-column prop="address" label="月"  width="50"  align="center">
96 96
           <template slot-scope="scope">
97
-            {{getTimeOne(scope.row.settle_accounts_date)}}
97
+            {{getTimeOne(scope.row.order.settle_accounts_date)}}
98 98
            </template>  
99 99
         </el-table-column>
100
-         <el-table-column prop="address" label="收费项目"  width="100" align="center">
100
+         <el-table-column prop="address" label="药品编码"  width="100" align="center">
101 101
            <template slot-scope="scope" >
102
-            <span v-if="scope.row.med_chrgitm_type == '01'">床位费</span>
103
-            <span v-if="scope.row.med_chrgitm_type == '02'">诊察费</span>
104
-            <span v-if="scope.row.med_chrgitm_type == '03'">检查费</span>
105
-            <span v-if="scope.row.med_chrgitm_type == '04'">化验费</span>
106
-            <span v-if="scope.row.med_chrgitm_type == '05'">治疗费</span>
107
-            <span v-if="scope.row.med_chrgitm_type == '06'">手术费</span>
108
-            <span v-if="scope.row.med_chrgitm_type == '08'">材料费</span>
109
-            <span v-if="scope.row.med_chrgitm_type == '09'">西药费</span>
110
-            <span v-if="scope.row.med_chrgitm_type == '11'">中成费</span>
111
-            <span v-if="scope.row.med_chrgitm_type == '14'">其他费</span>
102
+             <span v-if="scope.row.his_doctor_advice.id > 0">
103
+               {{scope.row.his_doctor_advice.id}}
104
+             </span>
105
+             <span v-if="scope.row.his_prescription_project.id > 0">
106
+               {{scope.row.his_prescription_project.id}}
107
+             </span>
112 108
            </template>  
113 109
         </el-table-column>
114
-         <el-table-column prop="address" label="数量"  width="100" align="center">
110
+         <el-table-column prop="address" label="名称"  width="100" align="center">
115 111
            <template slot-scope="scope" >
116
-            {{getCount(scope.row.child)}}
112
+             <span v-if="scope.row.his_doctor_advice.id > 0">
113
+               {{scope.row.his_doctor_advice.advice_name}}
114
+             </span>
115
+             <span v-if="scope.row.his_prescription_project.id > 0">
116
+               {{scope.row.his_prescription_project.good_info.good_name}}
117
+             </span>
117 118
            </template>  
118 119
           </el-table-column>
119 120
        
120
-         <el-table-column  prop="address"  label="金额"  width="130" align="center">
121
+         <el-table-column  prop="address"  label="单位"  width="130" align="center">
121 122
          <template slot-scope="scope" >
122
-            {{getAllPrice(scope.row.child)}}
123
+          
124
+             <span v-if="scope.row.his_doctor_advice.id > 0">
125
+               {{scope.row.his_doctor_advice.prescribing_number_unit}}
126
+             </span>
127
+             <span v-if="scope.row.his_prescription_project.id > 0">
128
+               {{scope.row.his_prescription_project.unit}}
129
+             </span>
130
+           </template>  
131
+        </el-table-column>
132
+        <el-table-column  prop="address"  label="数量"  width="130" align="center">
133
+         <template slot-scope="scope" >
134
+               {{scope.row.cnt}}
135
+           </template>  
136
+        </el-table-column>
137
+       <el-table-column  prop="address"  label="金额"  width="130" align="center">
138
+         <template slot-scope="scope" >   
139
+               {{(scope.row.cnt * scope.row.pric).toFixed(2)}}
123 140
            </template>  
124 141
         </el-table-column>
125 142
          </el-table>
@@ -151,13 +168,14 @@ export default {
151 168
       keywords: "",
152 169
       tableList:[],
153 170
       tableData:[],
154
-     chargeDate: [
171
+      chargeDate: [
155 172
         moment(new Date()).add("year", 0).format("YYYY-MM-DD"),
156 173
         moment(new Date()).add("year", 0).format("YYYY-MM-DD"),
157 174
       ],
158 175
       start_time:"",
159 176
       end_time:"",
160
-
177
+      drugList:[],
178
+      goodList:[],
161 179
     };
162 180
   },
163 181
 
@@ -247,7 +265,19 @@ export default {
247 265
         end_time:this.end_time,
248 266
        } 
249 267
      getHisAdviceOrderList(params).then(response=>{
250
-
268
+        if(response.data.state == 1){
269
+          var arr= []
270
+           var list =  response.data.data.list
271
+           console.log("list2323322323我的",list)
272
+           for(let i=0;i<list.length;i++){
273
+             if(list[i].order.order_status  == 2){
274
+               arr.push(list[i])
275
+             }
276
+           }
277
+           this.tableList = arr
278
+           this.tableData = arr
279
+         
280
+        }
251 281
      })
252 282
     },
253 283
     changeDate(){
@@ -299,71 +329,110 @@ export default {
299 329
         return ""
300 330
       }
301 331
     },
302
-      exportList(){
303
-         import('@/vendor/Export2Excel').then(excel => {
304
-          for(let i=0;i<this.tableData.length;i++){
305
-             if(this.tableData[i].insutype == 310){
306
-              this.tableData[i].insutype = "职工"
307
-             }
308
-             if(this.tableData[i].insutype == 390){
309
-              this.tableData[i].insutype = "居民"
310
-             }
311
-             
312
-             this.tableData[i].year = this.getTime(this.tableData[i].settle_accounts_date)
313
-             this.tableData[i].month = this.getTimeOne(this.tableData[i].settle_accounts_date)
314
-              
315
-             if(this.tableData[i].med_chrgitm_type == "01"){
316
-               this.tableData[i].med_chrgitm_type = "床位费"
317
-             }
318
-             if(this.tableData[i].med_chrgitm_type == "02"){
319
-               this.tableData[i].med_chrgitm_type = "诊察费"
320
-             }
321
-             if(this.tableData[i].med_chrgitm_type == "03"){
322
-               this.tableData[i].med_chrgitm_type = "检查费"
323
-             }
324
-             if(this.tableData[i].med_chrgitm_type == "04"){
325
-               this.tableData[i].med_chrgitm_type = "化验费"
326
-             }
327
-             if(this.tableData[i].med_chrgitm_type == "05"){
328
-               this.tableData[i].med_chrgitm_type = "治疗费"
329
-             }
330
-             if(this.tableData[i].med_chrgitm_type == "06"){
331
-               this.tableData[i].med_chrgitm_type = "治疗费"
332
-             }
333
-             if(this.tableData[i].med_chrgitm_type == "08"){
334
-               this.tableData[i].med_chrgitm_type = "材料费"
335
-             }
336
-             if(this.tableData[i].med_chrgitm_type == "09"){
337
-               this.tableData[i].med_chrgitm_type = "西药费"
338
-             }
339
-             if(this.tableData[i].med_chrgitm_type == "11"){
340
-               this.tableData[i].med_chrgitm_type = "中成费"
341
-             }
342
-             if(this.tableData[i].med_chrgitm_type == "14"){
343
-               this.tableData[i].med_chrgitm_type = "其他费"
344
-             }
345
-             
346
-             this.tableData[i].sum_count = this.getCount(this.tableData[i].child)
347
-
348
-             this.tableData[i].find_price = this.getAllPrice(this.tableData[i].child)
332
+    exportList(){
333
+      import('@/vendor/Export2Excel').then(excel => {
334
+      for(let i=0;i<this.tableData.length;i++){
335
+          if(this.tableData[i].insutype == 310){
336
+          this.tableData[i].insutype = "职工"
337
+          }
338
+          if(this.tableData[i].insutype == 390){
339
+          this.tableData[i].insutype = "居民"
340
+          }
341
+          
342
+          this.tableData[i].year = this.getTime(this.tableData[i].settle_accounts_date)
343
+          this.tableData[i].month = this.getTimeOne(this.tableData[i].settle_accounts_date)
344
+          
345
+          if(this.tableData[i].med_chrgitm_type == "01"){
346
+            this.tableData[i].med_chrgitm_type = "床位费"
349 347
           }
350
-         const tHeader = ['姓名','身份证','医保类型','年','月','收费项目','数量','金额']
351
-         const filterVal = ['name', 'id_card_no','insutype','year','month','med_chrgitm_type','sum_count','find_price']
352
-
353
-         const data = this.formatJson(filterVal,this.tableData)
354
-
355
-         excel.export_json_to_excel({
356
-           header: tHeader,
357
-           data,
358
-           filename: '药品信息'
359
-         })
360
-          this.downloadLoading = false
361
-
362
-        })
363
-       },
364
-       formatJson(filterVal, jsonData) {
365
-        return jsonData.map(v => filterVal.map(j => v[j]))
366
-       },
348
+          if(this.tableData[i].med_chrgitm_type == "02"){
349
+            this.tableData[i].med_chrgitm_type = "诊察费"
350
+          }
351
+          if(this.tableData[i].med_chrgitm_type == "03"){
352
+            this.tableData[i].med_chrgitm_type = "检查费"
353
+          }
354
+          if(this.tableData[i].med_chrgitm_type == "04"){
355
+            this.tableData[i].med_chrgitm_type = "化验费"
356
+          }
357
+          if(this.tableData[i].med_chrgitm_type == "05"){
358
+            this.tableData[i].med_chrgitm_type = "治疗费"
359
+          }
360
+          if(this.tableData[i].med_chrgitm_type == "06"){
361
+            this.tableData[i].med_chrgitm_type = "治疗费"
362
+          }
363
+          if(this.tableData[i].med_chrgitm_type == "08"){
364
+            this.tableData[i].med_chrgitm_type = "材料费"
365
+          }
366
+          if(this.tableData[i].med_chrgitm_type == "09"){
367
+            this.tableData[i].med_chrgitm_type = "西药费"
368
+          }
369
+          if(this.tableData[i].med_chrgitm_type == "11"){
370
+            this.tableData[i].med_chrgitm_type = "中成费"
371
+          }
372
+          if(this.tableData[i].med_chrgitm_type == "14"){
373
+            this.tableData[i].med_chrgitm_type = "其他费"
374
+          }
375
+
376
+        this.tableData[i].name = this.tableData[i].patient.name
377
+        this.tableData[i].id_card_no = this.tableData[i].patient.id_card_no 
378
+        this.tableData[i].total_price = (this.tableData[i].cnt * this.tableData[i].pric).toFixed(2)
379
+        if(this.tableData[i].his_doctor_advice.id > 0){
380
+          this.tableData[i].his_advice_name = this.tableData[i].his_doctor_advice.advice_name
381
+          this.tableData[i].his_prescribing_number_unit = this.tableData[i].his_doctor_advice.prescribing_number_unit
382
+        }
383
+        if(this.tableData[i].his_prescription_project.id > 0){
384
+          this.tableData[i].his_advice_name = this.tableData[i].his_prescription_project.good_info.good_name
385
+          this.tableData[i].his_prescribing_number_unit = this.tableData[i].his_prescription_project.unit
386
+        }
387
+        if(this.tableData[i].order.insutype == 0){
388
+           this.tableData[i].insutype = "居民"
389
+        }
390
+        if(this.tableData[i].order.insutype == 310){
391
+          this.tableData[i].insutype = "职工"
392
+        }
393
+        if(this.tableData[i].order.insutype == 390){
394
+          this.tableData[i].insutype = "居民"
395
+        }
396
+        
397
+        this.tableData[i].year = this.getTime(this.tableData[i].order.settle_accounts_date)
398
+        this.tableData[i].month = this.getTimeOne(this.tableData[i].order.settle_accounts_date)
399
+      }
400
+      const tHeader = ['姓名','身份证','医保类型','年','月','名称','单位','数量','金额']
401
+      const filterVal = ['name', 'id_card_no','insutype','year','month','his_advice_name','his_prescribing_number_unit','cnt','total_price']
402
+
403
+      const data = this.formatJson(filterVal,this.tableData)
404
+
405
+      excel.export_json_to_excel({
406
+        header: tHeader,
407
+        data,
408
+        filename: '药品信息'
409
+      })
410
+      this.downloadLoading = false
411
+
412
+    })
413
+   },
414
+   formatJson(filterVal, jsonData) {
415
+     return jsonData.map(v => filterVal.map(j => v[j]))
416
+    },
417
+    getDrugNumber(drug_id){
418
+      
419
+      var id = ""
420
+      for(let i=0;i<this.drugList.length;i++){
421
+        if(this.drugList[i].id == drug_id){
422
+          id = this.drugList[i].id
423
+        }
424
+      }
425
+      return id
426
+    },
427
+    getGoodNumber(good_id){
428
+      var good_name = ""
429
+      for(let i=0;i<this.goodList.length;i++){
430
+        if(this.goodList[i].id == good_id){
431
+           good_name = this.goodList[i].good_name
432
+        }
433
+      }
434
+      return good_name
435
+    }
367 436
   },
368 437
   created() {
369 438
 

+ 59 - 5
src/xt_pages/outpatientTool/gatherPrint.vue 查看文件

@@ -10,12 +10,12 @@
10 10
         </div>
11 11
         <div class="listInfo">
12 12
             <div>科别:
13
-              <!-- {{getDepartment(his_patient.departments)}} -->
13
+              <span v-if="org_id!=10215"> {{getDepartment(his_patient.departments)}}</span> 
14 14
               {{getDepartment(his_record_patient.departments)}}
15 15
             </div>
16 16
             <div>床号:<span v-if="schedule.length > 0">{{getBedName(schedule[0].bed_id)}}</span></div>
17 17
             <div>门诊号:
18
-               <!-- {{his_patient.number}} -->
18
+               <span v-if="org_id!=10215">{{his_patient.number}}</span> 
19 19
                {{his_record_patient.ipt_otp_no}}
20 20
             </div>
21 21
             <div>姓名:{{patient.name}}</div>
@@ -45,11 +45,16 @@
45 45
             <div>护理费:{{getNursing()}}</div>
46 46
             <div>床位费:{{getBedCostTotal()}}</div>
47 47
         </div>
48
-        <div class="listInfo" style="margin-bottom: 20px;">
48
+        <div class="listInfo" style="margin-bottom: 10px;">
49 49
             <div>麻醉费:{{getAnesthesia()}}</div>
50 50
             <div>材料费:{{getMaterialCostTotal()}}</div>
51 51
             <div>其他:{{getOtherCostTotal()}}</div>
52 52
         </div>
53
+        <div class="listInfo" style="margin-bottom: 20px;">
54
+            <div>记账支付:{{getFundPaySumamt()}}</div>
55
+            <div>个人账号:{{getAcctPay()}}</div>
56
+            <div>现金支付:{{getPsnCashPay()}}</div>
57
+        </div>
53 58
         <table class="listTable" border="1">
54 59
             <tr>
55 60
                 <td style="text-align:center" >序号</td>
@@ -129,7 +134,6 @@
129 134
           medicalInsuranceLevelList:[],
130 135
           schedule:[],
131 136
           bedNumber:[],
132
-          tableList:[],
133 137
           order_info_list:[],
134 138
           balanceAccountsType:0,
135 139
           medicalInsuranceLevelList:[],
@@ -139,6 +143,8 @@
139 143
           start_time:"",
140 144
           end_time:"",
141 145
           his_record_patient:{},
146
+          orderList:[],
147
+          org_id:0,
142 148
         }
143 149
     },
144 150
     methods:{
@@ -189,7 +195,7 @@
189 195
           this.drugTypeList =response.data.data.drugTypeList
190 196
           this.costClassifyList = response.data.data.costClassifyList 
191 197
           var list = response.data.data.list
192
-          
198
+          this.orderList = response.data.data.orderList
193 199
 
194 200
           var new_arr = []
195 201
 
@@ -1059,10 +1065,58 @@
1059 1065
         }
1060 1066
       }
1061 1067
       return number
1068
+    },
1069
+    getTotalCountPrice(){
1070
+      var total_price = 0
1071
+      for(let i=0;i<this.tableList.length;i++){
1072
+         if(this.tableList[i].is_total == 2){
1073
+           total_price += this.tableList[i].pric * this.tableList[i].count_number
1074
+         }
1075
+      }
1076
+      if(total_price > 0){
1077
+        return total_price.toFixed(2)
1078
+      }else{
1079
+        return ""
1080
+      }
1081
+    },
1082
+    getPsnCashPay(){
1083
+      var psn_cash_pay = 0
1084
+      for(let i=0;i<this.orderList.length;i++){
1085
+        psn_cash_pay += this.orderList[i].psn_cash_pay
1086
+      }
1087
+      if(psn_cash_pay > 0){
1088
+         return psn_cash_pay.toFixed(2)
1089
+      }else{
1090
+        return 0.00
1091
+      }
1092
+    },
1093
+    getAcctPay(){
1094
+      var acct_pay = 0
1095
+      for(let i=0;i<this.orderList.length;i++){
1096
+         acct_pay +=this.orderList[i].acct_pay
1097
+      }
1098
+      if(acct_pay > 0){
1099
+        return acct_pay.toFixed(2)
1100
+      }else{
1101
+        return 0.00
1102
+      }
1103
+    },
1104
+    getFundPaySumamt(){
1105
+      var fund_pay_sumamt = 0
1106
+      for(let i=0;i<this.orderList.length;i++){
1107
+        fund_pay_sumamt +=this.orderList[i].fund_pay_sumamt
1108
+      }
1109
+      if(fund_pay_sumamt >0){
1110
+        return fund_pay_sumamt.toFixed(2)
1111
+      }else{
1112
+        return 0.00
1113
+      }
1062 1114
     }
1063 1115
 
1064 1116
     },
1065 1117
     created(){
1118
+      this.org_id = this.$store.getters.xt_user.org.id;
1119
+     
1066 1120
       this.getGatherDetailList()   
1067 1121
     }
1068 1122
 

+ 1 - 1
src/xt_pages/outpatientTool/gatherPrintInvoice.vue 查看文件

@@ -16,7 +16,7 @@
16 16
             <tr>
17 17
                 <td>姓名:{{patient.name}}</td>
18 18
                 <td>科室:
19
-                    <!-- {{getDepartment(his_patient.departments)}} -->
19
+                    <span v-if="this.$store.getters.xt_user.org.id!=10215"> {{getDepartment(his_patient.departments)}}</span>
20 20
 
21 21
                    {{ getDepartment(his_record_patient.departments) }}
22 22
                 </td>

+ 14 - 8
src/xt_pages/qcd/patientControlAnalysis.vue 查看文件

@@ -348,6 +348,8 @@ export default {
348 348
       return new Date(time).getTime() / 1000
349 349
     },
350 350
     handleClick(patientid, inspectdate) {
351
+      console.log("patient_id",patientid)
352
+      console.log("inspectdate",inspectdate)
351 353
       // var id = 0
352 354
       // var dialysis_no = 0
353 355
       // for(let i=0;i<this.tablePatients.length;i++){
@@ -389,15 +391,15 @@ export default {
389 391
         patientid: this.patient_id,
390 392
         startime: this.listQuery.start_time,
391 393
         endtime: this.listQuery.end_time
392
-
393 394
       }
395
+      console.log("param",params)
394 396
       this.isLoadingTwo = true
395 397
       getPatientContorlAnalysis(params).then(response => {
396 398
         if (response.data.state == 1) {
397 399
           this.isLoadingTwo = false
398 400
 
399 401
           var control = response.data.data.patientcontorDetail
400
-          //  console.log("control",control)
402
+          console.log("control",control)
401 403
           let dataInfo = {}
402 404
           control.forEach((item, index) => {
403 405
             let { inspect_date } = item
@@ -475,7 +477,9 @@ export default {
475 477
               dataInfotwo[inspect_date] = {
476 478
                 inspect_date,
477 479
                 name: item.name,
478
-                dialysis_no: item.dialysis_no
480
+                dialysis_no: item.dialysis_no,
481
+                patient_id:item.patient_id,
482
+                inspect_date:item.inspect_date,
479 483
               }
480 484
             }
481 485
           })
@@ -486,6 +490,8 @@ export default {
486 490
               if (item.inspect_date == parseInt(it.name)) {
487 491
                 it.name = item.name
488 492
                 it.dialysis_no = item.dialysis_no
493
+                it.patient_id = item.patient_id
494
+                it.inspect_date = item.inspect_date
489 495
               }
490 496
             })
491 497
           })
@@ -510,7 +516,7 @@ export default {
510 516
           //     }
511 517
           //   }
512 518
           // }
513
-
519
+        
514 520
         } else {
515 521
           this.isLoadingTwo = false
516 522
 
@@ -523,7 +529,7 @@ export default {
523 529
         if (response.data.state == 1) {
524 530
           this.isLoadingTwo = false
525 531
           var patients = response.data.data.patients
526
-          console.log('patients', patients)
532
+        
527 533
           this.tablePatients = patients
528 534
 
529 535
           //  let dataInfothree = {}
@@ -544,13 +550,13 @@ export default {
544 550
           var total = response.data.data.total
545 551
           this.total = total
546 552
           var control = response.data.data.control
547
-          console.log('control', control)
553
+
548 554
           var infectiousControl = response.data.data.infectiousControl
549
-          // console.log("infectiouscontrol",infectiousControl)
555
+         
550 556
           infectiousControl.map(item => {
551 557
             control.push(item)
552 558
           })
553
-          console.log('infectiouscontrol', infectiousControl)
559
+
554 560
 
555 561
           //  var newPatinteArr = []
556 562
           //  patientlist.map(item=>{

+ 1 - 1
src/xt_pages/stock/drugs/cancelDrugOrderPrint.vue 查看文件

@@ -65,7 +65,7 @@
65 65
           </div>
66 66
           <div v-if="orgId == 10024" style="display:flex;margin-top:1px;float:right;">
67 67
             <div style="width:50px;">科室:</div><div style="width:60px;"></div>
68
-            <div style="width:70px;">领人:</div><div style="width:60px;"></div>
68
+            <div style="width:70px;">领人:</div><div style="width:60px;"></div>
69 69
             <div style="width:80px;">审批:</div><div style="width:100px;">肖庆娥</div>
70 70
             <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
71 71
             <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>

+ 5 - 5
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue 查看文件

@@ -7,7 +7,7 @@
7 7
     </div>
8 8
     <div class="app-container ">
9 9
       <div id="dialysis-print-box">
10
-        <div v-if="orgId!=9675 && orgId!=10210 && orgId!=10188 && orgId!=10127 && orgId!=10164 && orgId!=3877">
10
+        <div v-if="orgId!=9671 && orgId!=10210 && orgId!=10188 && orgId!=10127 && orgId!=10164 && orgId!=3877">
11 11
         <div class="dialysis-print-order" v-for="(it,index) in tableList" :key="index">
12 12
          <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
13 13
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
@@ -68,7 +68,7 @@
68 68
           </div>
69 69
           <div v-if="orgId == 10024" style="display:flex;margin-top:1px;float:right;">
70 70
             <div style="width:50px;">科室:</div><div style="width:60px;"></div>
71
-            <div style="width:70px;">领人:</div><div style="width:60px;"></div>
71
+            <div style="width:70px;">领人:</div><div style="width:60px;"></div>
72 72
             <div style="width:80px;">审批:</div><div style="width:100px;">肖庆娥</div>
73 73
             <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
74 74
             <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>
@@ -78,7 +78,7 @@
78 78
       </div> 
79 79
 
80 80
 
81
-      <div v-if="orgId == 9675 || orgId == 10210 || orgId == 10188 || orgId == 10127 || orgId ==10164 || orgId ==3877">
81
+      <div v-if="orgId == 9671 || orgId == 10210 || orgId == 10188 || orgId == 10127 || orgId ==10164 || orgId ==3877">
82 82
        <div class="dialysis-print-order" v-for="(it,index) in tableData" :key="index" >
83 83
          <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
84 84
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
@@ -105,7 +105,7 @@
105 105
                 <span>{{item.drug.drug_name}}</span>
106 106
               </td>
107 107
               <td style="line-height: 50px">
108
-                  <span>{{item.drug.dose}}{{item.dose_unit}}*{{item.drug.min_number}}{{item.drug.min_unit}}/{{item.drug.max_unit}}</span>
108
+                  <span>{{item.drug.dose}}{{item.drug.dose_unit}}*{{item.drug.min_number}}{{item.drug.min_unit}}/{{item.drug.max_unit}}</span>
109 109
               </td>
110 110
               <td style="line-height: 50px">
111 111
                   {{item.count}}
@@ -144,7 +144,7 @@
144 144
           </div>
145 145
           <div v-if="orgId == 10024" style="display:flex;margin-top:1px;float:right;">
146 146
             <div style="width:50px;">科室:</div><div style="width:60px;"></div>
147
-            <div style="width:70px;">领人:</div><div style="width:60px;"></div>
147
+            <div style="width:70px;">领人:</div><div style="width:60px;"></div>
148 148
             <div style="width:80px;">审批:</div><div style="width:100px;">肖庆娥</div>
149 149
             <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
150 150
             <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>

+ 4 - 0
src/xt_pages/stock/drugs/inventoryDetails.vue 查看文件

@@ -27,6 +27,7 @@
27 27
                 >
28 28
             </div>
29 29
             <div>
30
+               <el-button size="small" type="primary" @click="print_1">打印</el-button>
30 31
                <el-button size="small" type="primary" @click="print">盘点模版打印</el-button>
31 32
             </div>
32 33
             <!-- <div>
@@ -141,6 +142,9 @@ export default {
141 142
         print(){
142 143
             this.$router.push({path:'/stock/drugs/inventoryPrint'}) 
143 144
         },
145
+        print_1(){
146
+           this.$router.push({path:'/stock/drugs/print'}) 
147
+        },
144 148
         handleSizeChange(val){
145 149
          this.limit = val
146 150
          this.getlist()

+ 137 - 0
src/xt_pages/stock/drugs/print.vue 查看文件

@@ -0,0 +1,137 @@
1
+<template>
2
+    <div class="main-contain">
3
+        <div class="position">
4
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+        <el-row style="float:right;">
6
+            <el-col :span="24">
7
+            <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+            </el-col>
9
+        </el-row>
10
+        </div>
11
+        <div class="app-container" style="background-color: white;">
12
+            <div id="print_content">
13
+
14
+                <table class="printTable" border="0" cellspacing="0" align="center">
15
+                    <thead class="print_head">
16
+                        <tr><td colspan="11">{{org_name}}</td></tr>
17
+                        <tr><td colspan="11">药品盘点</td></tr>
18
+                    </thead>  
19
+                    <tbody class="print_body">
20
+                    <tr>
21
+                        <td>药品名称</td>
22
+                        <td>规格</td>
23
+                        <td>单位</td>
24
+                        <td>批号</td>
25
+                        <td>生产厂商</td>
26
+                        <td>仓库名称</td>
27
+                        <td>盘点前数量</td> 
28
+                        <td>盘点后数量</td>
29
+                        <td>盈亏类型</td>
30
+                        <td>进货单价</td>
31
+                        <td width="60">总额</td>
32
+                        
33
+                    </tr>
34
+                    <tr v-for="(item,index) in tableData" :key="index">
35
+                        <td>{{item.good_name}}</td>
36
+                        <td>{{item.specification_name}}</td>
37
+                        <td>{{item.packing_unit}}</td>
38
+                        <td>{{item.number}}</td>
39
+                        <td></td>
40
+                        <td></td>
41
+                        <td></td>
42
+                        <td></td>
43
+                        <td></td>
44
+                        <td></td>
45
+                        <td></td>
46
+                    </tr>
47
+                    </tbody>
48
+                </table>
49
+            </div>
50
+        </div>
51
+    </div>
52
+</template>
53
+
54
+<script>
55
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
56
+const moment = require('moment');
57
+import { uParseTime } from '@/utils/tools'
58
+import { getInventoryExportList } from "@/api/stock"
59
+import print from "print-js";
60
+export default {
61
+    components:{
62
+        BreadCrumb
63
+    },
64
+    data(){
65
+        return{
66
+          crumbs: [
67
+            { path: false, name: '库存管理' },
68
+            { path: false, name: '耗材管理' },
69
+            { path: false, name: '耗材盘点打印' },
70
+          ],
71
+          org_name:"",
72
+          ids:"",
73
+          tableData:[],
74
+          manufacturerList:[],
75
+        }
76
+    },
77
+    methods:{
78
+        printAction: function() {
79
+            const style = '@page{size:landscape;margin: 10mm;} @media print { print_content{width:960px;margin:0} .flex{display: flex;justify-content: space-between;} .printTable{width:100%;border-collapse: collapse;border:0px;margin:10px 0;} .printTable thead{text-align:center}.printTable td{padding:5px;} .print_body tr td{border: 1px solid;font-size:12px;border-collapse:collapse;} }';
80
+            printJS({ 
81
+            printable: 'print_content',
82
+            type: 'html',
83
+            documentTitle: '  ',
84
+            style: style,
85
+            scanStyles: false
86
+            })
87
+        },
88
+        getTime(val) {
89
+         if(val < 0){
90
+            return ""
91
+          }
92
+         if(val == ""){
93
+            return ""
94
+          }else {
95
+            return uParseTime(val, '{y}-{m}-{d}')
96
+         }
97
+        },
98
+        getlist(){
99
+         getInventoryExportList().then(response=>{
100
+           if(response.data.state == 1){
101
+             var list =  response.data.data.list
102
+             console.log("list233233232323",list)
103
+             this.tableData = list
104
+             this.manufacturerList = response.data.data.manufacturerList
105
+           }
106
+         })
107
+        },
108
+        getManufacturerName(id){
109
+
110
+           var name = ""
111
+           for(let i=0;i<this.manufacturerList.length;i++){
112
+              if(id == this.manufacturerList[i].id){
113
+                  name = this.manufacturerList[i].manufacturer_name
114
+              }
115
+           }
116
+           return name
117
+        }
118
+    },
119
+    created(){
120
+      this.getlist()
121
+    }
122
+}
123
+</script>
124
+
125
+
126
+<style rel="stylesheet/scss" lang="scss" scoped>
127
+.printTitle{font-size: 22px;text-align: center;}
128
+.flex{display: flex;justify-content: space-between;}
129
+.tableTitle{display: flex;border-top:1px solid #000;border-bottom: 1px solid #000;padding: 10px 0;}
130
+.tableTr{display: flex;border-bottom: 1px dashed #000;padding: 10px 0;}
131
+.tableBottom{display: flex;border-bottom: 1px solid #000;padding: 10px 0;}
132
+.printTable{width:100%;border-collapse: collapse;}
133
+.printTable td{padding:5px;}
134
+.print_head{border: none;display: table-header-group;}
135
+.print_head tr td{text-align: center;border: none;}
136
+.print_body tr td{border:1px solid}
137
+</style>

+ 5 - 0
src/xt_pages/stock/inventoryDetails.vue 查看文件

@@ -26,6 +26,7 @@
26 26
                 @click="search">搜索</el-button>
27 27
             </div>
28 28
             <div>
29
+              <el-button type="primary" @click="toprint">打印</el-button>
29 30
               <el-button type="primary" @click="inventoryExportList">盘点模版打印</el-button>
30 31
             </div>
31 32
             <!-- <div>
@@ -128,6 +129,10 @@ export default {
128 129
          }
129 130
     },
130 131
     methods:{
132
+        toprint(){
133
+          this.$router.push({path:'/stock/print_all'})
134
+        },
135
+
131 136
         search(){
132 137
          this.getlist()
133 138
         },

+ 1 - 1
src/xt_pages/stock/inventoryPrint.vue 查看文件

@@ -66,7 +66,7 @@ export default {
66 66
     },
67 67
     methods:{
68 68
         printAction: function() {
69
-            const style = '@media print { .printTitle{font-size: 22px;text-align: center;}.flex{display: flex;justify-content: space-between;}.tableTitle{display: flex;border-top:1px solid #000;border-bottom: 1px solid #000;padding: 10px 0;}.tableTr{display: flex;border-bottom: 1px dashed #000;padding: 10px 0;}.tableBottom{display: flex;border-bottom: 1px solid #000;padding: 10px 0;}.printTable td{padding:5px;} }';
69
+            const style = '@media print { .printTitle{font-size: 22px;text-align: center;}.flex{display: flex;justify-content: space-between;}.tableTitle{display: flex;border-top:1px solid #000;border-bottom: 1px solid #000;padding: 10px 0;}.tableTr{display: flex;border-bottom: 1px dashed #000;padding: 10px 0;}.tableBottom{display: flex;border-bottom: 1px solid #000;padding: 10px 0;}.printTable{width:100%;border-collapse: collapse;}.printTable td{padding:5px;} }';
70 70
             printJS({
71 71
             printable: 'print_content',
72 72
             type: 'html',

+ 136 - 0
src/xt_pages/stock/print_all.vue 查看文件

@@ -0,0 +1,136 @@
1
+<template>
2
+    <div class="main-contain">
3
+        <div class="position">
4
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+        <el-row style="float:right;">
6
+            <el-col :span="24">
7
+            <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+            </el-col>
9
+        </el-row>
10
+        </div>
11
+        <div class="app-container" style="background-color: white;">
12
+            <div id="print_content">
13
+
14
+                <table class="printTable" border="0" cellspacing="0" align="center">
15
+                    <thead class="print_head">
16
+                        <tr><td colspan="11">{{org_name}}</td></tr>
17
+                        <tr><td colspan="11">耗材盘点</td></tr>
18
+                    </thead>
19
+                    <tbody class="print_body">
20
+                    <tr>
21
+                        <td>耗材名称</td>
22
+                        <td>规格</td>
23
+                        <td>单位</td>
24
+                        <td>批号</td>
25
+                        <td>生产厂商</td>
26
+                        <td>仓库名称</td>
27
+                        <td>盘点前数量</td> 
28
+                        <td>盘点后数量</td>
29
+                        <td>盈亏类型</td>
30
+                        <td>进货单价</td>
31
+                        <td width="60">总额</td>
32
+                        
33
+                    </tr>
34
+                    <tr v-for="(item,index) in tableData" :key="index">
35
+                        <td>{{item.good_name}}</td>
36
+                        <td>{{item.specification_name}}</td>
37
+                        <td>{{item.packing_unit}}</td>
38
+                        <td>{{item.number}}</td>
39
+                        <td></td>
40
+                        <td></td>
41
+                        <td></td>
42
+                        <td></td>
43
+                        <td></td>
44
+                        <td></td>
45
+                        <td></td>
46
+                    </tr>
47
+                    </tbody>
48
+                </table>
49
+            </div>
50
+        </div>
51
+    </div>
52
+</template>
53
+
54
+<script>
55
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
56
+const moment = require('moment');
57
+import { uParseTime } from '@/utils/tools'
58
+import { getInventoryExportList } from "@/api/stock"
59
+import print from "print-js";
60
+export default {
61
+    components:{
62
+        BreadCrumb
63
+    },
64
+    data(){
65
+        return{
66
+          crumbs: [
67
+            { path: false, name: '库存管理' },
68
+            { path: false, name: '耗材管理' },
69
+            { path: false, name: '耗材盘点打印' },
70
+          ],
71
+          org_name:"",
72
+          ids:"",
73
+          tableData:[],
74
+          manufacturerList:[],
75
+        }
76
+    },
77
+    methods:{
78
+        printAction: function() {
79
+            const style = '@page{size:landscape;margin: 10mm;} @media print { print_content{width:960px;margin:0} .flex{display: flex;justify-content: space-between;} .printTable{width:100%;border-collapse: collapse;border:0px;margin:10px 0;} .printTable thead{text-align:center}.printTable td{padding:5px;} .print_body tr td{border: 1px solid;font-size:12px;border-collapse:collapse;} }';
80
+            printJS({ 
81
+            printable: 'print_content',
82
+            type: 'html',
83
+            documentTitle: '  ',
84
+            style: style,
85
+            scanStyles: false
86
+            })
87
+        },
88
+        getTime(val) {
89
+         if(val < 0){
90
+            return ""
91
+          }
92
+         if(val == ""){
93
+            return ""
94
+          }else {
95
+            return uParseTime(val, '{y}-{m}-{d}')
96
+         }
97
+        },
98
+        getlist(){
99
+        //  getInventoryExportList().then(response=>{
100
+        //    if(response.data.state == 1){
101
+        //      var list =  response.data.data.list
102
+        //      console.log("list233233232323",list)
103
+        //      this.tableData = list
104
+        //      this.manufacturerList = response.data.data.manufacturerList
105
+        //    }
106
+        //  })
107
+        },
108
+        getManufacturerName(id){
109
+           var name = ""
110
+           for(let i=0;i<this.manufacturerList.length;i++){
111
+              if(id == this.manufacturerList[i].id){
112
+                  name = this.manufacturerList[i].manufacturer_name
113
+              }
114
+           }
115
+           return name
116
+        }
117
+    },
118
+    created(){
119
+      this.getlist()
120
+    }
121
+}
122
+</script>
123
+
124
+
125
+<style rel="stylesheet/scss" lang="scss" scoped>
126
+.printTitle{font-size: 22px;text-align: center;}
127
+.flex{display: flex;justify-content: space-between;}
128
+.tableTitle{display: flex;border-top:1px solid #000;border-bottom: 1px solid #000;padding: 10px 0;}
129
+.tableTr{display: flex;border-bottom: 1px dashed #000;padding: 10px 0;}
130
+.tableBottom{display: flex;border-bottom: 1px solid #000;padding: 10px 0;}
131
+.printTable{width:100%;border-collapse: collapse;}
132
+.printTable td{padding:5px;}
133
+.print_head{border: none;display: table-header-group;}
134
+.print_head tr td{text-align: center;border: none;}
135
+.print_body tr td{border:1px solid}
136
+</style>

+ 1 - 1
src/xt_pages/stock/stockOutOrderDetailPrint.vue 查看文件

@@ -67,7 +67,7 @@
67 67
                         </div>
68 68
                         <div v-if="orgId == 10024" style="display:flex;margin-top:1px;float:right;">
69 69
                           <div style="width:50px;">科室:</div><div style="width:60px;"></div>
70
-                          <div style="width:70px;">领人:</div><div style="width:60px;"></div>
70
+                          <div style="width:70px;">领人:</div><div style="width:60px;"></div>
71 71
                           <div style="width:80px;">审批:</div><div style="width:100px;">肖庆娥</div>
72 72
                           <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
73 73
                           <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>

+ 1 - 1
src/xt_pages/user/dialysisRecord.vue 查看文件

@@ -576,7 +576,7 @@ export default {
576 576
       var dl = this.doctorOptions.length;
577 577
       if (dl > 0) {
578 578
         for (let index = 0; index < dl; index++) {
579
-          if ((this.doctorOptions[index].id = creater)) {
579
+          if ((this.doctorOptions[index].id == creater)) {
580 580
             return this.doctorOptions[index].name;
581 581
           }
582 582
         }