Ver código fonte

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

csx 2 anos atrás
pai
commit
5b63a959d6
35 arquivos alterados com 1990 adições e 376 exclusões
  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 Ver arquivo

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

+ 8 - 0
src/router/modules/drugs.js Ver arquivo

76
       is_menu: false,
76
       is_menu: false,
77
       meta: { title: 'inventoryPrint', noCache: true }
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
     //   path: '/stock/drugs/stock/return',
88
     //   path: '/stock/drugs/stock/return',
81
     //   component: () => import('@/xt_pages/stock/drugs/drugSalesReturnOrder'),
89
     //   component: () => import('@/xt_pages/stock/drugs/drugSalesReturnOrder'),

+ 13 - 1
src/router/modules/patient.js Ver arquivo

226
       noCache: true
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
     path: '/patient/patient/hospitalSummary/print',
241
     path: '/patient/patient/hospitalSummary/print',
231
     component: () => import('@/xt_pages/user/hospitalSummaryPrint'),
242
     component: () => import('@/xt_pages/user/hospitalSummaryPrint'),
236
       title: 'templateSummary',
247
       title: 'templateSummary',
237
       noCache: true
248
       noCache: true
238
     }
249
     }
239
-  }
250
+  },
251
+
240
   ]
252
   ]
241
 }
253
 }

+ 8 - 0
src/router/modules/stock.js Ver arquivo

99
       is_menu: false,
99
       is_menu: false,
100
       meta: { title: 'inventoryPrint', noCache: true }
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
     //   path: "/stock/",
112
     //   path: "/stock/",

+ 1 - 0
src/xt_pages/data/components/templateTable.vue Ver arquivo

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

+ 2 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue Ver arquivo

111
           <label>目标超滤量 : </label>
111
           <label>目标超滤量 : </label>
112
           <span class="content">{{ target_ultrafiltration != "0" ? target_ultrafiltration : ""}}</span>
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
         </li>
116
         </li>
117
 
117
 
118
          <li v-if="isShow('目标超滤量') && this.$store.getters.xt_user.template_info.org_id == 10290">
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 Ver arquivo

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

+ 2 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Ver arquivo

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

+ 4 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Ver arquivo

87
                     </el-col>
87
                     </el-col>
88
 
88
 
89
                     <el-col :span="8"
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
                         <el-form-item label="目标超滤量(ml):">
91
                         <el-form-item label="目标超滤量(ml):">
92
                             <el-input
92
                             <el-input
93
                                     type="number"
93
                                     type="number"
98
 
98
 
99
 
99
 
100
                     <el-col :span="8"
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
                         <el-form-item label="目标超滤量(L):">
102
                         <el-form-item label="目标超滤量(L):">
103
                             <el-input
103
                             <el-input
104
                                     type="number"
104
                                     type="number"
611
                     </el-col>
611
                     </el-col>
612
 
612
 
613
                     <el-col :span="8"
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
                             v-show="totalShow">
615
                             v-show="totalShow">
616
                         <el-form-item label="置换液总量(ml)">
616
                         <el-form-item label="置换液总量(ml)">
617
                             <el-input
617
                             <el-input
620
                         </el-form-item>
620
                         </el-form-item>
621
                     </el-col>
621
                     </el-col>
622
                     <el-col :span="8"
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
                             v-show="totalShow">
624
                             v-show="totalShow">
625
                         <el-form-item label="置换液总量(L)">
625
                         <el-form-item label="置换液总量(L)">
626
                             <el-input
626
                             <el-input

+ 37 - 41
src/xt_pages/dialysis/dialysisDoctorAdvice.vue Ver arquivo

441
     this.getTemplateInfo();
441
     this.getTemplateInfo();
442
     this.requestSchedualDoctors(this.time)
442
     this.requestSchedualDoctors(this.time)
443
     // this.template_id = this.$store.getters.xt_user.template_info.template_id;
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
   methods: {
446
   methods: {
447
     getTemplateInfo() {
447
     getTemplateInfo() {
536
             if(project_config.is_open == 1){
536
             if(project_config.is_open == 1){
537
               this.project = resp.data.project
537
               this.project = resp.data.project
538
               console.log( this.project)
538
               console.log( this.project)
539
+             
539
               let projectArr = []
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
               console.log(projectArr)
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
             console.log('resp.data.hisAdvices',resp.data.hisAdvices)
581
             console.log('resp.data.hisAdvices',resp.data.hisAdvices)
586
            if(config.is_open == 0 || config.is_open == 2){
582
            if(config.is_open == 0 || config.is_open == 2){

+ 26 - 30
src/xt_pages/dialysis/doctorAdvicePrint.vue Ver arquivo

258
             time:'',
258
             time:'',
259
             show:true,
259
             show:true,
260
             showOne:false,
260
             showOne:false,
261
-            delivery_way:""
261
+            delivery_way:"",
262
+            org_id:0,
262
         }
263
         }
263
     },
264
     },
264
     methods:{
265
     methods:{
291
                     this.project = resp.data.project
292
                     this.project = resp.data.project
292
                     resp.data.hisAdvices.map((item,index) => {
293
                     resp.data.hisAdvices.map((item,index) => {
293
                     item.new_advice = item.new_advice ? item.new_advice : []
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
                 if(config.is_open == 0 || config.is_open == 2){
321
                 if(config.is_open == 0 || config.is_open == 2){
326
 
322
 
781
     created(){
777
     created(){
782
       var time = this.$route.query.time
778
       var time = this.$route.query.time
783
       var delivery_way = this.$route.query.delivery_way
779
       var delivery_way = this.$route.query.delivery_way
784
-      console.log("delivery_Way",delivery_way)
785
       this.delivery_way = delivery_way
780
       this.delivery_way = delivery_way
786
       this.time = moment(time).format('YYYY-MM-DD')
781
       this.time = moment(time).format('YYYY-MM-DD')
787
       console.log(11,this.$route.query)
782
       console.log(11,this.$route.query)
788
       this.requestSchedualDoctors(time)
783
       this.requestSchedualDoctors(time)
784
+      this.org_id = this.$store.getters.xt_user.template_info.org_id;
789
     }
785
     }
790
 }
786
 }
791
 </script>
787
 </script>

Diferenças do arquivo suprimidas por serem muito extensas
+ 1027 - 76
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue


+ 19 - 8
src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue Ver arquivo

1451
                         >
1451
                         >
1452
                           <span v-if="advice.parent_id > 0">---></span>
1452
                           <span v-if="advice.parent_id > 0">---></span>
1453
                           <span v-if="advice.advice_name">{{ advice.advice_name }}</span>
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
                           <span v-if="advice && advice.advice_desc"
1456
                           <span v-if="advice && advice.advice_desc"
1457
                             >({{ advice.advice_desc
1457
                             >({{ advice.advice_desc
1458
                             }}{{ advice.drug_spec_unit }})</span
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
                           <span v-if="advice.single_dose != 0"
1462
                           <span v-if="advice.single_dose != 0"
1466
                             >{{ advice.single_dose
1463
                             >{{ advice.single_dose
1467
                             }}{{ advice.single_dose_unit }}</span
1464
                             }}{{ advice.single_dose_unit }}</span
1468
                           >
1465
                           >
1466
+                          <span v-if="advice && advice.project">{{advice.project.unit}}</span>
1469
                           <span v-if="advice.parent_id == 0">{{
1467
                           <span v-if="advice.parent_id == 0">{{
1470
                             advice.delivery_way
1468
                             advice.delivery_way
1471
                           }}</span>
1469
                           }}</span>
1485
                       <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
1483
                       <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
1486
                     </td> -->
1484
                     </td> -->
1487
                         <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
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
                           <span
1487
                           <span
1490
                             v-if="setAdminUserES(advice.advice_doctor) == ''"
1488
                             v-if="setAdminUserES(advice.advice_doctor) == ''"
1491
                             >{{ getAdminUser(advice.advice_doctor) }}</span
1489
                             >{{ getAdminUser(advice.advice_doctor) }}</span
1492
-                          >
1490
+                          >  
1493
                           <img
1491
                           <img
1494
                             style="height: 30px"
1492
                             style="height: 30px"
1495
                             :src="setAdminUserES(advice.advice_doctor)"
1493
                             :src="setAdminUserES(advice.advice_doctor)"
1498
                             v-else
1496
                             v-else
1499
                           />
1497
                           />
1500
                         </td>
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
                         <!-- <td height="35px">
1512
                         <!-- <td height="35px">
1502
                       <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
1513
                       <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
1503
                       <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
1514
                       <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>

+ 50 - 31
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Ver arquivo

46
           <div class="inline_block" style="margin-left: 10px">
46
           <div class="inline_block" style="margin-left: 10px">
47
             年龄:
47
             年龄:
48
             <div class="under_line" style="width: 30px; text-align: center">
48
             <div class="under_line" style="width: 30px; text-align: center">
49
-              {{ getAge(patientInfo)}}
49
+              {{ getAge(patientInfo) }}
50
             </div>
50
             </div>
51
51
52
           </div>
52
           </div>
1601
             </tbody>
1601
             </tbody>
1602
           </table>
1602
           </table>
1603
         </div>
1603
         </div>
1604
+        
1605
+
1604
         <template v-if="this.totollength > 13">
1606
         <template v-if="this.totollength > 13">
1605
           <div style="display: inline-block; width: 100%; text-align: center">
1607
           <div style="display: inline-block; width: 100%; text-align: center">
1606
             <div
1608
             <div
1673
             <div class="inline_block" style="margin-left: 5px">
1675
             <div class="inline_block" style="margin-left: 5px">
1674
               住院号/门诊号:
1676
               住院号/门诊号:
1675
               <div
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
             </div>
1691
             </div>
1690
           </div>
1692
           </div>
1691
           <div class="row" style="margin-bottom: 10px">
1693
           <div class="row" style="margin-bottom: 10px">
2695
   },
2697
   },
2696
   methods: {
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
     checkData() {
2726
     checkData() {
2709
       if (this.receiverTreatmentAccess.way == 0) {
2727
       if (this.receiverTreatmentAccess.way == 0) {
2710
         this.$message.error("入科方式未填");
2728
         this.$message.error("入科方式未填");
3075
           this.patientInfo.birthday,
3093
           this.patientInfo.birthday,
3076
           "{y}-{m}-{d}"
3094
           "{y}-{m}-{d}"
3077
         );
3095
         );
3096
+        // console.log(this.patientInfo.birth,'测试生日')
3078
         // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
3097
         // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
3079
         if (response.data.data.patientInfo.first_dialysis_date != 0) {
3098
         if (response.data.data.patientInfo.first_dialysis_date != 0) {
3080
           this.patientInfo.first_dialysis_date = uParseTime(
3099
           this.patientInfo.first_dialysis_date = uParseTime(
3095
         this.afterdialysis = response.data.data.AssessmentAfterDislysis;
3114
         this.afterdialysis = response.data.data.AssessmentAfterDislysis;
3096
         // console.log('透后体重', this.afterdialysis)
3115
         // console.log('透后体重', this.afterdialysis)
3097
         this.lastafterdialysis = response.data.data.assessmentAfterDislysis;
3116
         this.lastafterdialysis = response.data.data.assessmentAfterDislysis;
3098
-        console.log("上次透后体重", this.lastafterdialysis.weight_after);
3117
+        // console.log("上次透后体重", this.lastafterdialysis.weight_after);
3099
         this.operators = response.data.data.operators;
3118
         this.operators = response.data.data.operators;
3100
-        console.log("operators", this.operators);
3119
+        // console.log("operators", this.operators);
3101
         this.dialysisOrder =
3120
         this.dialysisOrder =
3102
           response.data.data.dialysisOrder === null
3121
           response.data.data.dialysisOrder === null
3103
             ? null
3122
             ? null
3104
             : response.data.data.dialysisOrder;
3123
             : response.data.data.dialysisOrder;
3105
-        console.log("上机233232323232", this.dialysisOrder);
3124
+        // console.log("上机233232323232", this.dialysisOrder);
3106
         if (this.operators.length > 0) {
3125
         if (this.operators.length > 0) {
3107
           var operatorsLen = this.operators.length;
3126
           var operatorsLen = this.operators.length;
3108
           for (var index = 0; index < operatorsLen; index++) {
3127
           for (var index = 0; index < operatorsLen; index++) {
3159
           this.afterdialysis.complications_other.join(",");
3178
           this.afterdialysis.complications_other.join(",");
3160
 
3179
 
3161
         this.prescription = response.data.data.dialysisPrescription;
3180
         this.prescription = response.data.data.dialysisPrescription;
3162
-        console.log("透析处方", this.prescription);
3181
+        // console.log("透析处方", this.prescription);
3163
         this.receiverTreatmentAccess =
3182
         this.receiverTreatmentAccess =
3164
           response.data.data.receiverTreatmentAccess;
3183
           response.data.data.receiverTreatmentAccess;
3165
         this.prescription.mode = this.modeName(this.prescription.mode_id);
3184
         this.prescription.mode = this.modeName(this.prescription.mode_id);
3207
 
3226
 
3208
         this.advices = response.data.data.advices;
3227
         this.advices = response.data.data.advices;
3209
         this.tableAdvice = response.data.data.advices;
3228
         this.tableAdvice = response.data.data.advices;
3210
-        console.log("医嘱数据2222222222", this.advices);
3229
+        // console.log("医嘱数据2222222222", this.advices);
3211
         this.monitors = response.data.data.monitors;
3230
         this.monitors = response.data.data.monitors;
3212
         this.summary = response.data.data.summary;
3231
         this.summary = response.data.data.summary;
3213
         this.org_template_info = response.data.data.org_template_info;
3232
         this.org_template_info = response.data.data.org_template_info;
3419
           this.doctor_advices = doctor_advices_1;
3438
           this.doctor_advices = doctor_advices_1;
3420
           this.doctor_advices_2 = doctor_advices_2;
3439
           this.doctor_advices_2 = doctor_advices_2;
3421
         }
3440
         }
3422
-        console.log(this.advice_groups);
3441
+        // console.log(this.advice_groups);
3423
       } else {
3442
       } else {
3424
         this.loading = false;
3443
         this.loading = false;
3425
         this.$message.error("请求数据失败");
3444
         this.$message.error("请求数据失败");
3451
           return val.age;
3470
           return val.age;
3452
         }
3471
         }
3453
       } else {
3472
       } else {
3454
-        return jsGetAge(val.birth, "-");
3473
+        return this.getoldAge();
3455
       }
3474
       }
3456
     },
3475
     },
3457
     newAdviceGroupObject: function () {
3476
     newAdviceGroupObject: function () {
3562
     }
3581
     }
3563
 
3582
 
3564
     const xtdate = this.$route.query && this.$route.query.xtdate;
3583
     const xtdate = this.$route.query && this.$route.query.xtdate;
3565
-    console.log("xtdate", xtdate);
3584
+    // console.log("xtdate", xtdate);
3566
     const xtno = this.$route.query && this.$route.query.xtno;
3585
     const xtno = this.$route.query && this.$route.query.xtno;
3567
-    console.log("xtno", xtno);
3586
+    // console.log("xtno", xtno);
3568
     if (
3587
     if (
3569
       typeof xtdate === "string" &&
3588
       typeof xtdate === "string" &&
3570
       xtdate.length > 0 &&
3589
       xtdate.length > 0 &&

+ 4 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue Ver arquivo

304
           出血
304
           出血
305
           <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
305
           <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
306
             <span v-if="predialysis.is_hemorrhage == 1">{{ predialysis.is_hemorrhage == 1 && predialysis.hemorrhage ? predialysis.hemorrhage : "" }}</span>
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
             <span v-if="predialysis.is_hemorrhage == 2">无</span>
308
             <span v-if="predialysis.is_hemorrhage == 2">无</span>
308
             <span v-if="predialysis.is_hemorrhage != 2 && predialysis.is_hemorrhage != 1">/</span>
309
             <span v-if="predialysis.is_hemorrhage != 2 && predialysis.is_hemorrhage != 1">/</span>
309
           </div>
310
           </div>
416
                 <td style="height:40px;line-height:40px">&nbsp;
417
                 <td style="height:40px;line-height:40px">&nbsp;
417
                   {{getTime(monitor.operate_time,'{h}:{i}')}}
418
                   {{getTime(monitor.operate_time,'{h}:{i}')}}
418
                 </td>
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
                   {{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}
421
                   {{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}
421
                 </td>
422
                 </td>
422
                 <td>&nbsp;{{monitor.pulse_frequency?monitor.pulse_frequency:''}}</td>
423
                 <td>&nbsp;{{monitor.pulse_frequency?monitor.pulse_frequency:''}}</td>
423
                 <td>&nbsp;{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
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
                 <td>&nbsp;{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:''}}</td>
427
                 <td>&nbsp;{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:''}}</td>
427
                 <td>&nbsp;{{monitor.conductivity?monitor.conductivity:''}}</td>
428
                 <td>&nbsp;{{monitor.conductivity?monitor.conductivity:''}}</td>
428
                 <td>&nbsp;{{monitor.dialysate_temperature ? monitor.dialysate_temperature : ''}}</td>
429
                 <td>&nbsp;{{monitor.dialysate_temperature ? monitor.dialysate_temperature : ''}}</td>

+ 3 - 3
src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue Ver arquivo

113
                 >&nbsp; (
113
                 >&nbsp; (
114
                 <label-box
114
                 <label-box
115
                   :isChecked="
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
                   showValue="前稀释"
118
                   showValue="前稀释"
119
                 ></label-box>
119
                 ></label-box>
120
                 <label-box
120
                 <label-box
121
                   :isChecked="
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
                   showValue="后稀释"
124
                   showValue="后稀释"
125
                 ></label-box>
125
                 ></label-box>
127
                   ,置换量
127
                   ,置换量
128
                   <span style="width: 50px; display: inline-block">
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
                         ? prescription.displace_liqui_value
131
                         ? prescription.displace_liqui_value
132
                         : "/"
132
                         : "/"
133
                     }}
133
                     }}

+ 53 - 40
src/xt_pages/outpatientCharges/statementPrint.vue Ver arquivo

28
           :info="info"
28
           :info="info"
29
           :paramsObj="paramsObj"
29
           :paramsObj="paramsObj"
30
           :balanceAccounts="balanceAccounts"
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
         ></printThree>
32
         ></printThree>
35
         <printFour
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
           :info="info"
35
           :info="info"
38
           :paramsObj="paramsObj"
36
           :paramsObj="paramsObj"
39
           :balanceAccounts="balanceAccounts"
37
           :balanceAccounts="balanceAccounts"
40
         ></printFour>
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
       </div>
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
       <printOne :info="info" v-else></printOne>
49
       <printOne :info="info" v-else></printOne>
47
       <!-- 测试医保环境下表格样式放开以下这条 -->
50
       <!-- 测试医保环境下表格样式放开以下这条 -->
48
       <!-- <testVue :info="info" v-else></testVue> -->
51
       <!-- <testVue :info="info" v-else></testVue> -->
65
 import printTwo from "./statementTemplate/printTwo";
68
 import printTwo from "./statementTemplate/printTwo";
66
 import printThree from "./statementTemplate/printThree";
69
 import printThree from "./statementTemplate/printThree";
67
 import printFour from "./statementTemplate/printFour";
70
 import printFour from "./statementTemplate/printFour";
71
+import printFive from "./statementTemplate/printFive";
68
 import testVue from "./statementTemplate/test";
72
 import testVue from "./statementTemplate/test";
69
 import {
73
 import {
70
   getAllDoctorList,
74
   getAllDoctorList,
71
   getAllHisPatientList,
75
   getAllHisPatientList,
72
   getPrescriptionPrint,
76
   getPrescriptionPrint,
73
 } from "@/api/project/project";
77
 } from "@/api/project/project";
74
-import { getPrivateExpenses,getPrivateExpensesOrder } from "@/api/his/his";
78
+import { getPrivateExpenses, getPrivateExpensesOrder } from "@/api/his/his";
75
 // import PrintOther from '../hospitalStation/statementTemplate/printOther'
79
 // import PrintOther from '../hospitalStation/statementTemplate/printOther'
76
 export default {
80
 export default {
77
   name: "dialysisPrintOrder",
81
   name: "dialysisPrintOrder",
83
     printThree,
87
     printThree,
84
     printFour,
88
     printFour,
85
     testVue,
89
     testVue,
90
+    printFive,
86
   },
91
   },
87
   props: {
92
   props: {
88
     paramsObj: Object,
93
     paramsObj: Object,
115
 
120
 
116
       if (
121
       if (
117
         this.$store.getters.xt_user.org_id == 10138 ||
122
         this.$store.getters.xt_user.org_id == 10138 ||
118
-        // this.$store.getters.xt_user.org_id == 0 ||
119
         this.$store.getters.xt_user.org_id == 4 ||
123
         this.$store.getters.xt_user.org_id == 4 ||
120
         this.$store.getters.xt_user.org_id == 10278
124
         this.$store.getters.xt_user.org_id == 10278
121
       ) {
125
       ) {
256
             style: style,
260
             style: style,
257
             scanStyles: false,
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
         } else {
275
         } else {
260
           const style =
276
           const style =
261
             "@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%;}}}";
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
         let params = {
379
         let params = {
364
           his_patient_id: obj.his_patient_id,
380
           his_patient_id: obj.his_patient_id,
365
           id: obj.order_id,
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
         if (
385
         if (
370
           this.org_id == 10138 ||
386
           this.org_id == 10138 ||
491
               console.log(111, this.balanceAccounts);
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
           getPrivateExpensesOrder(params).then((response) => {
511
           getPrivateExpensesOrder(params).then((response) => {
498
             if (response.data.state == 0) {
512
             if (response.data.state == 0) {
499
               // this.$message.error(response.data.msg)
513
               // this.$message.error(response.data.msg)
500
 
514
 
501
               return false;
515
               return false;
502
             } else {
516
             } else {
503
-              var that = this
517
+              var that = this;
504
               that.info = response.data.data.info;
518
               that.info = response.data.data.info;
505
               that.p_admin = response.data.data.printor_admin;
519
               that.p_admin = response.data.data.printor_admin;
506
               that.charge_admin = response.data.data.charge_admin;
520
               that.charge_admin = response.data.data.charge_admin;
521
 
535
 
522
               that.info["bed_cost_total"] = response.data.data.bedCostTotal;
536
               that.info["bed_cost_total"] = response.data.data.bedCostTotal;
523
               that.info["bed_cost_self_total"] =
537
               that.info["bed_cost_self_total"] =
524
-                  response.data.data.bedCostSelfTotal;
538
+                response.data.data.bedCostSelfTotal;
525
               that.info["bed_cost_part_self_total"] =
539
               that.info["bed_cost_part_self_total"] =
526
-                  response.data.data.bedCostPartSelfTotal;
540
+                response.data.data.bedCostPartSelfTotal;
527
 
541
 
528
               that.info["operation_cost_total"] =
542
               that.info["operation_cost_total"] =
529
-                  response.data.data.operationCostTotal;
543
+                response.data.data.operationCostTotal;
530
               that.info["operation_cost_self_total"] =
544
               that.info["operation_cost_self_total"] =
531
-                  response.data.data.operationCostSelfTotal;
545
+                response.data.data.operationCostSelfTotal;
532
               that.info["operation_cost_part_self_total"] =
546
               that.info["operation_cost_part_self_total"] =
533
-                  response.data.data.operationCostPartSelfTotal;
547
+                response.data.data.operationCostPartSelfTotal;
534
 
548
 
535
               that.info["other_cost_total"] = response.data.data.otherCostTotal;
549
               that.info["other_cost_total"] = response.data.data.otherCostTotal;
536
               that.info["other_cost_self_total"] =
550
               that.info["other_cost_self_total"] =
537
-                  response.data.data.otherCostSelfTotal;
551
+                response.data.data.otherCostSelfTotal;
538
               that.info["other_cost_part_self_total"] =
552
               that.info["other_cost_part_self_total"] =
539
-                  response.data.data.otherCostPartSelfTotal;
553
+                response.data.data.otherCostPartSelfTotal;
540
 
554
 
541
               that.info["material_cost_total"] =
555
               that.info["material_cost_total"] =
542
-                  response.data.data.materialCostTotal;
556
+                response.data.data.materialCostTotal;
543
               that.info["material_cost_self_total"] =
557
               that.info["material_cost_self_total"] =
544
-                  response.data.data.materialCostSelfTotal;
558
+                response.data.data.materialCostSelfTotal;
545
               that.info["material_cost_part_self_total"] =
559
               that.info["material_cost_part_self_total"] =
546
-                  response.data.data.materialCostPartSelfTotal;
560
+                response.data.data.materialCostPartSelfTotal;
547
 
561
 
548
               that.info["western_medicine_cost_total"] =
562
               that.info["western_medicine_cost_total"] =
549
-                  response.data.data.westernMedicineCostTotal;
563
+                response.data.data.westernMedicineCostTotal;
550
               that.info["western_medicine_cost_self_total"] =
564
               that.info["western_medicine_cost_self_total"] =
551
-                  response.data.data.westernMedicineCostSelfTotal;
565
+                response.data.data.westernMedicineCostSelfTotal;
552
               that.info["western_medicine_cost_part_self_total"] =
566
               that.info["western_medicine_cost_part_self_total"] =
553
-                  response.data.data.westernMedicineCostPartSelfTotal;
567
+                response.data.data.westernMedicineCostPartSelfTotal;
554
 
568
 
555
               that.info["chinese_traditional_medicine_cost_total"] =
569
               that.info["chinese_traditional_medicine_cost_total"] =
556
-                  response.data.data.chineseTraditionalMedicineCostTotal;
570
+                response.data.data.chineseTraditionalMedicineCostTotal;
557
               that.info["chinese_traditional_medicine_cost_self_total"] =
571
               that.info["chinese_traditional_medicine_cost_self_total"] =
558
-                  response.data.data.chineseTraditionalMedicineCostSelfTotal;
572
+                response.data.data.chineseTraditionalMedicineCostSelfTotal;
559
               that.info["chinese_traditional_medicine_cost_part_self_total"] =
573
               that.info["chinese_traditional_medicine_cost_part_self_total"] =
560
-                  response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
574
+                response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
561
 
575
 
562
               that.info["check_cost_total"] = response.data.data.checkCostTotal;
576
               that.info["check_cost_total"] = response.data.data.checkCostTotal;
563
               that.info["check_cost_self_total"] =
577
               that.info["check_cost_self_total"] =
564
-                  response.data.data.checkCostSelfTotal;
578
+                response.data.data.checkCostSelfTotal;
565
               that.info["check_cost_part_self_total"] =
579
               that.info["check_cost_part_self_total"] =
566
-                  response.data.data.checkCostPartSelfTotal;
580
+                response.data.data.checkCostPartSelfTotal;
567
 
581
 
568
               that.info["laboratory_cost_total"] =
582
               that.info["laboratory_cost_total"] =
569
-                  response.data.data.laboratoryCostTotal;
583
+                response.data.data.laboratoryCostTotal;
570
               that.info["laboratory_cost_self_total"] =
584
               that.info["laboratory_cost_self_total"] =
571
-                  response.data.data.laboratoryCostSelfTotal;
585
+                response.data.data.laboratoryCostSelfTotal;
572
               that.info["laboratory_cost_part_self_total"] =
586
               that.info["laboratory_cost_part_self_total"] =
573
-                  response.data.data.laboratoryCostPartSelfTotal;
587
+                response.data.data.laboratoryCostPartSelfTotal;
574
 
588
 
575
               that.info["treat_cost_total"] = response.data.data.treatCostTotal;
589
               that.info["treat_cost_total"] = response.data.data.treatCostTotal;
576
               that.info["treat_cost_self_total"] =
590
               that.info["treat_cost_self_total"] =
577
-                  response.data.data.treatCostSelfTotal;
591
+                response.data.data.treatCostSelfTotal;
578
               that.info["treat_cost_part_self_total"] =
592
               that.info["treat_cost_part_self_total"] =
579
-                  response.data.data.treatCostPartSelfTotal;
593
+                response.data.data.treatCostPartSelfTotal;
580
               that.info["date"] = response.data.data.date;
594
               that.info["date"] = response.data.data.date;
581
               // that.info["number"] = response.data.data.number;
595
               // that.info["number"] = response.data.data.number;
582
               that.info["order_infos"] = response.data.data.order_infos;
596
               that.info["order_infos"] = response.data.data.order_infos;
643
               }
657
               }
644
             }
658
             }
645
           });
659
           });
646
-
647
         }
660
         }
648
       } else {
661
       } else {
649
         var that = this;
662
         var that = this;

+ 182 - 0
src/xt_pages/outpatientCharges/statementTemplate/printFive.vue Ver arquivo

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 Ver arquivo

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

+ 6 - 7
src/xt_pages/outpatientDoctorStation/recordPrint.vue Ver arquivo

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

+ 2 - 1
src/xt_pages/outpatientTool/components/detailStatistics.vue Ver arquivo

168
       <div>总费用:{{ getAllPice() }}</div>
168
       <div>总费用:{{ getAllPice() }}</div>
169
       <div>
169
       <div>
170
         个人支付: 
170
         个人支付: 
171
+       
171
         <span v-if="his_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>  
172
         <span v-if="his_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>  
172
         <span v-if="his_patient.balance_accounts_type != 2">{{ getActPay() }}</span>
173
         <span v-if="his_patient.balance_accounts_type != 2">{{ getActPay() }}</span>
173
       
174
       
446
       var act_pay = 0;
447
       var act_pay = 0;
447
       for (let i = 0; i < this.list.length; i++) {
448
       for (let i = 0; i < this.list.length; i++) {
448
         for (let j = 0; j < this.list[i].orders.length; j++) {
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
       return act_pay.toFixed(2);
453
       return act_pay.toFixed(2);

+ 1 - 1
src/xt_pages/outpatientTool/export.vue Ver arquivo

65
           end-placeholder="结束日期"
65
           end-placeholder="结束日期"
66
         >
66
         >
67
         </el-date-picker>
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
         <el-table
69
         <el-table
70
         :data="tableList"
70
         :data="tableList"
71
          border
71
          border

+ 159 - 90
src/xt_pages/outpatientTool/exportOne.vue Ver arquivo

65
           end-placeholder="结束日期"
65
           end-placeholder="结束日期"
66
         >
66
         >
67
         </el-date-picker>
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
         <el-table
69
         <el-table
70
         :data="tableList"
70
         :data="tableList"
71
          border
71
          border
72
         style="width: 100%">
72
         style="width: 100%">
73
          <el-table-column prop="date" label="姓名"  width="100" align="center">
73
          <el-table-column prop="date" label="姓名"  width="100" align="center">
74
            <template slot-scope="scope" >
74
            <template slot-scope="scope" >
75
-            {{ scope.row.name }}
75
+            {{ scope.row.patient.name }}
76
            </template>
76
            </template>
77
         </el-table-column>
77
         </el-table-column>
78
         <el-table-column  prop="date"  label="身份证"  width="200" align="center">
78
         <el-table-column  prop="date"  label="身份证"  width="200" align="center">
79
            <template slot-scope="scope" >
79
            <template slot-scope="scope" >
80
-            {{ scope.row.id_card_no }}
80
+            {{ scope.row.patient.id_card_no }}
81
            </template> 
81
            </template> 
82
         </el-table-column>
82
         </el-table-column>
83
         <el-table-column prop="name"  label="医保类型" width="100" align="center">
83
         <el-table-column prop="name"  label="医保类型" width="100" align="center">
84
           <template slot-scope="scope" >
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
            </template>  
88
            </template>  
89
         </el-table-column>
89
         </el-table-column>
90
         <el-table-column  prop="address" label="年"  width="50" align="center">
90
         <el-table-column  prop="address" label="年"  width="50" align="center">
91
           <template slot-scope="scope" >
91
           <template slot-scope="scope" >
92
-            {{getTime(scope.row.settle_accounts_date)}}
92
+            {{getTime(scope.row.order.settle_accounts_date)}}
93
          </template>  
93
          </template>  
94
         </el-table-column>
94
         </el-table-column>
95
          <el-table-column prop="address" label="月"  width="50"  align="center">
95
          <el-table-column prop="address" label="月"  width="50"  align="center">
96
           <template slot-scope="scope">
96
           <template slot-scope="scope">
97
-            {{getTimeOne(scope.row.settle_accounts_date)}}
97
+            {{getTimeOne(scope.row.order.settle_accounts_date)}}
98
            </template>  
98
            </template>  
99
         </el-table-column>
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
            <template slot-scope="scope" >
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
            </template>  
108
            </template>  
113
         </el-table-column>
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
            <template slot-scope="scope" >
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
            </template>  
118
            </template>  
118
           </el-table-column>
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
          <template slot-scope="scope" >
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
            </template>  
140
            </template>  
124
         </el-table-column>
141
         </el-table-column>
125
          </el-table>
142
          </el-table>
151
       keywords: "",
168
       keywords: "",
152
       tableList:[],
169
       tableList:[],
153
       tableData:[],
170
       tableData:[],
154
-     chargeDate: [
171
+      chargeDate: [
155
         moment(new Date()).add("year", 0).format("YYYY-MM-DD"),
172
         moment(new Date()).add("year", 0).format("YYYY-MM-DD"),
156
         moment(new Date()).add("year", 0).format("YYYY-MM-DD"),
173
         moment(new Date()).add("year", 0).format("YYYY-MM-DD"),
157
       ],
174
       ],
158
       start_time:"",
175
       start_time:"",
159
       end_time:"",
176
       end_time:"",
160
-
177
+      drugList:[],
178
+      goodList:[],
161
     };
179
     };
162
   },
180
   },
163
 
181
 
247
         end_time:this.end_time,
265
         end_time:this.end_time,
248
        } 
266
        } 
249
      getHisAdviceOrderList(params).then(response=>{
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
     changeDate(){
283
     changeDate(){
299
         return ""
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
   created() {
437
   created() {
369
 
438
 

+ 59 - 5
src/xt_pages/outpatientTool/gatherPrint.vue Ver arquivo

10
         </div>
10
         </div>
11
         <div class="listInfo">
11
         <div class="listInfo">
12
             <div>科别:
12
             <div>科别:
13
-              <!-- {{getDepartment(his_patient.departments)}} -->
13
+              <span v-if="org_id!=10215"> {{getDepartment(his_patient.departments)}}</span> 
14
               {{getDepartment(his_record_patient.departments)}}
14
               {{getDepartment(his_record_patient.departments)}}
15
             </div>
15
             </div>
16
             <div>床号:<span v-if="schedule.length > 0">{{getBedName(schedule[0].bed_id)}}</span></div>
16
             <div>床号:<span v-if="schedule.length > 0">{{getBedName(schedule[0].bed_id)}}</span></div>
17
             <div>门诊号:
17
             <div>门诊号:
18
-               <!-- {{his_patient.number}} -->
18
+               <span v-if="org_id!=10215">{{his_patient.number}}</span> 
19
                {{his_record_patient.ipt_otp_no}}
19
                {{his_record_patient.ipt_otp_no}}
20
             </div>
20
             </div>
21
             <div>姓名:{{patient.name}}</div>
21
             <div>姓名:{{patient.name}}</div>
45
             <div>护理费:{{getNursing()}}</div>
45
             <div>护理费:{{getNursing()}}</div>
46
             <div>床位费:{{getBedCostTotal()}}</div>
46
             <div>床位费:{{getBedCostTotal()}}</div>
47
         </div>
47
         </div>
48
-        <div class="listInfo" style="margin-bottom: 20px;">
48
+        <div class="listInfo" style="margin-bottom: 10px;">
49
             <div>麻醉费:{{getAnesthesia()}}</div>
49
             <div>麻醉费:{{getAnesthesia()}}</div>
50
             <div>材料费:{{getMaterialCostTotal()}}</div>
50
             <div>材料费:{{getMaterialCostTotal()}}</div>
51
             <div>其他:{{getOtherCostTotal()}}</div>
51
             <div>其他:{{getOtherCostTotal()}}</div>
52
         </div>
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
         <table class="listTable" border="1">
58
         <table class="listTable" border="1">
54
             <tr>
59
             <tr>
55
                 <td style="text-align:center" >序号</td>
60
                 <td style="text-align:center" >序号</td>
129
           medicalInsuranceLevelList:[],
134
           medicalInsuranceLevelList:[],
130
           schedule:[],
135
           schedule:[],
131
           bedNumber:[],
136
           bedNumber:[],
132
-          tableList:[],
133
           order_info_list:[],
137
           order_info_list:[],
134
           balanceAccountsType:0,
138
           balanceAccountsType:0,
135
           medicalInsuranceLevelList:[],
139
           medicalInsuranceLevelList:[],
139
           start_time:"",
143
           start_time:"",
140
           end_time:"",
144
           end_time:"",
141
           his_record_patient:{},
145
           his_record_patient:{},
146
+          orderList:[],
147
+          org_id:0,
142
         }
148
         }
143
     },
149
     },
144
     methods:{
150
     methods:{
189
           this.drugTypeList =response.data.data.drugTypeList
195
           this.drugTypeList =response.data.data.drugTypeList
190
           this.costClassifyList = response.data.data.costClassifyList 
196
           this.costClassifyList = response.data.data.costClassifyList 
191
           var list = response.data.data.list
197
           var list = response.data.data.list
192
-          
198
+          this.orderList = response.data.data.orderList
193
 
199
 
194
           var new_arr = []
200
           var new_arr = []
195
 
201
 
1059
         }
1065
         }
1060
       }
1066
       }
1061
       return number
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
     created(){
1117
     created(){
1118
+      this.org_id = this.$store.getters.xt_user.org.id;
1119
+     
1066
       this.getGatherDetailList()   
1120
       this.getGatherDetailList()   
1067
     }
1121
     }
1068
 
1122
 

+ 1 - 1
src/xt_pages/outpatientTool/gatherPrintInvoice.vue Ver arquivo

16
             <tr>
16
             <tr>
17
                 <td>姓名:{{patient.name}}</td>
17
                 <td>姓名:{{patient.name}}</td>
18
                 <td>科室:
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
                    {{ getDepartment(his_record_patient.departments) }}
21
                    {{ getDepartment(his_record_patient.departments) }}
22
                 </td>
22
                 </td>

+ 14 - 8
src/xt_pages/qcd/patientControlAnalysis.vue Ver arquivo

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

+ 1 - 1
src/xt_pages/stock/drugs/cancelDrugOrderPrint.vue Ver arquivo

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

+ 5 - 5
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue Ver arquivo

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

+ 4 - 0
src/xt_pages/stock/drugs/inventoryDetails.vue Ver arquivo

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

+ 137 - 0
src/xt_pages/stock/drugs/print.vue Ver arquivo

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 Ver arquivo

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

+ 1 - 1
src/xt_pages/stock/inventoryPrint.vue Ver arquivo

66
     },
66
     },
67
     methods:{
67
     methods:{
68
         printAction: function() {
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
             printJS({
70
             printJS({
71
             printable: 'print_content',
71
             printable: 'print_content',
72
             type: 'html',
72
             type: 'html',

+ 136 - 0
src/xt_pages/stock/print_all.vue Ver arquivo

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 Ver arquivo

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

+ 1 - 1
src/xt_pages/user/dialysisRecord.vue Ver arquivo

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