Explorar el Código

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

csx hace 4 años
padre
commit
bd81c23a14
Se han modificado 41 ficheros con 2866 adiciones y 734 borrados
  1. 25 12
      src/api/common/common.js
  2. 9 0
      src/api/drug/drug_stock.js
  3. 8 0
      src/api/stock.js
  4. 4 1
      src/store/modules/globalConfig.js
  5. 4 4
      src/xt_pages/components/GoodExcel/index.vue
  6. 79 29
      src/xt_pages/data/components/addDrugs.vue
  7. 69 93
      src/xt_pages/data/components/consumables.vue
  8. 92 109
      src/xt_pages/data/components/drugs.vue
  9. 29 9
      src/xt_pages/data/components/editProject.vue
  10. 28 79
      src/xt_pages/data/components/project.vue
  11. 23 3
      src/xt_pages/dialysis/batch_print/batch_print_order_thirty.vue
  12. 2 2
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  13. 6 2
      src/xt_pages/dialysis/details/assessmentAfter.vue
  14. 10 3
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  15. 14 13
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  16. 4 2
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  17. 2 2
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  18. 24 0
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  19. 26 4
      src/xt_pages/dialysis/template/DialysisPrintOrderThirty.vue
  20. 156 115
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue
  21. 1599 0
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtySeven.vue
  22. 42 27
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtySix.vue
  23. 38 7
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue
  24. 8 12
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyNine.vue
  25. 3 1
      src/xt_pages/outpatientCharges/components/registerDialog.vue
  26. 1 1
      src/xt_pages/outpatientCharges/newStatementPrint.vue
  27. 4 4
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  28. 1 1
      src/xt_pages/outpatientCharges/statementPrint.vue
  29. 29 2
      src/xt_pages/outpatientCharges/summary.vue
  30. 25 3
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  31. 19 10
      src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue
  32. 2 2
      src/xt_pages/outpatientDoctorStation/template/printOne.vue
  33. 154 88
      src/xt_pages/qcd/basicInformationAnalysis.vue
  34. 33 11
      src/xt_pages/stock/Dialog/goodInfoDailog.vue
  35. 4 2
      src/xt_pages/stock/drugs/drugStockInOrder.vue
  36. 57 8
      src/xt_pages/stock/drugs/drugStockOutOrder.vue
  37. 24 1
      src/xt_pages/stock/stockInOrderDetailPrint.vue
  38. 2 2
      src/xt_pages/user/dialysisSolution.vue
  39. 1 1
      src/xt_pages/user/patients.vue
  40. 17 0
      src/xt_pages/user/scheduling.vue
  41. 189 69
      src/xt_pages/workforce/appointment.vue

+ 25 - 12
src/api/common/common.js Ver fichero

@@ -134,11 +134,14 @@ export function DeleteCheck(id, params) {
134 134
   })
135 135
 }
136 136
 
137
-export function getDialysisModeType(startime, endtime) {
137
+export function getDialysisModeType(startime, endtime,lapsetotype,sourcetype) {
138 138
   const params = {
139 139
     startime: startime,
140
-    endtime: endtime
140
+    endtime: endtime,
141
+    lapsetotype:lapsetotype,
142
+    sourcetype:sourcetype,
141 143
   }
144
+  console.log("parasm22222",params)
142 145
   return request({
143 146
     url: '/com/api/getdialysismodetype',
144 147
     method: 'get',
@@ -146,10 +149,12 @@ export function getDialysisModeType(startime, endtime) {
146 149
   })
147 150
 }
148 151
 
149
-export function getTotalLapseCount(startime, endtime) {
152
+export function getTotalLapseCount(startime, endtime,lapsetotype,sourcetype) {
150 153
   const params = {
151 154
     startime: startime,
152
-    endtime: endtime
155
+    endtime: endtime,
156
+    lapsetotype:lapsetotype,
157
+    sourcetype:sourcetype,
153 158
   }
154 159
   console.log('转归params', params)
155 160
   return request({
@@ -159,10 +164,12 @@ export function getTotalLapseCount(startime, endtime) {
159 164
   })
160 165
 }
161 166
 
162
-export function getTotalSexCount(startime, endtime) {
167
+export function getTotalSexCount(startime, endtime,lapsetotype,sourcetype) {
163 168
   const params = {
164 169
     startime: startime,
165
-    endtime: endtime
170
+    endtime: endtime,
171
+    lapsetotype:lapsetotype,
172
+    sourcetype:sourcetype,
166 173
   }
167 174
   return request({
168 175
     url: '/com/api/gettotalsexcount',
@@ -171,10 +178,12 @@ export function getTotalSexCount(startime, endtime) {
171 178
   })
172 179
 }
173 180
 
174
-export function getTotalInfectiousCount(startime, endtime) {
181
+export function getTotalInfectiousCount(startime, endtime,lapsetotype,sourcetype) {
175 182
   const params = {
176 183
     startime: startime,
177
-    endtime: endtime
184
+    endtime: endtime,
185
+    lapsetotype:lapsetotype,
186
+    sourcetype:sourcetype,
178 187
   }
179 188
   console.log('传染病', params)
180 189
   return request({
@@ -184,10 +193,12 @@ export function getTotalInfectiousCount(startime, endtime) {
184 193
   })
185 194
 }
186 195
 
187
-export function getTotalAgeCount(startime, endtime) {
196
+export function getTotalAgeCount(startime, endtime,lapsetotype,sourcetype) {
188 197
   const params = {
189 198
     startime: startime,
190
-    endtime: endtime
199
+    endtime: endtime,
200
+    lapsetotype:lapsetotype,
201
+    sourcetype:sourcetype,
191 202
   }
192 203
   return request({
193 204
     url: '/com/api/gettotalagecount',
@@ -196,10 +207,12 @@ export function getTotalAgeCount(startime, endtime) {
196 207
   })
197 208
 }
198 209
 
199
-export function getTotalDialysisCount(startime, endtime) {
210
+export function getTotalDialysisCount(startime, endtime,lapsetotype,sourcetype) {
200 211
   const params = {
201 212
     startime: startime,
202
-    endtime: endtime
213
+    endtime: endtime,
214
+    lapsetotype:lapsetotype,
215
+    sourcetype:sourcetype,
203 216
   }
204 217
   return request({
205 218
     url: '/com/api/gettotaldialysiscount',

+ 9 - 0
src/api/drug/drug_stock.js Ver fichero

@@ -418,6 +418,15 @@ export function getDrugCancelDetail(params){
418 418
 }
419 419
 
420 420
 
421
+export function getDrugAutoMaticList(params){
422
+  
423
+  return request({
424
+    url:"/api/drugstock/getdrugautomaticlist",
425
+    method:"Get",
426
+    params:params,
427
+  })
428
+}
429
+
421 430
 
422 431
 
423 432
 

+ 8 - 0
src/api/stock.js Ver fichero

@@ -602,4 +602,12 @@ export function postDrugInformation(params){
602 602
     method:"post",
603 603
     data:params
604 604
   })
605
+}
606
+
607
+export function getInitializtion(params){
608
+  return request({
609
+    url:"/api/good/initializtion",
610
+    method:"get",
611
+    params:params
612
+  })
605 613
 }

+ 4 - 1
src/store/modules/globalConfig.js Ver fichero

@@ -1844,7 +1844,10 @@ const global_config = {
1844 1844
         id: 32,
1845 1845
         name: '米'
1846 1846
       },
1847
-
1847
+      {
1848
+        id: 33,
1849
+        name: '万份'
1850
+      },
1848 1851
     ],
1849 1852
     body_fluid: [{
1850 1853
       id: 1,

src/xt_pages/components/DrugExcel/index.vue → src/xt_pages/components/GoodExcel/index.vue Ver fichero

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <input id="excel-drug-input" ref="excel-drug-input" type="file" accept=".xlsx, .xls, .xltx" @change="handleClick">
3
+    <input id="excel-good-input" ref="excel-good-input" type="file" accept=".xlsx, .xls, .xltx" @change="handleClick">
4 4
     <el-button :loading="loading" style="margin-left:16px;" size="mini" type="primary" @click="handleUpload">导入模板
5 5
     </el-button>
6 6
   </div>
@@ -54,7 +54,7 @@
54 54
         e.dataTransfer.dropEffect = 'copy'
55 55
       },
56 56
       handleUpload() {
57
-        document.getElementById('excel-drug-input').click()
57
+        document.getElementById('excel-good-input').click()
58 58
       },
59 59
       handleClick(e) {
60 60
         const files = e.target.files
@@ -63,7 +63,7 @@
63 63
         this.upload(rawFile)
64 64
       },
65 65
       upload(rawFile) {
66
-        this.$refs['excel-drug-input'].value = null // fix can't select the same excel
66
+        this.$refs['excel-good-input'].value = null // fix can't select the same excel
67 67
 
68 68
         if (!this.beforeUpload) {
69 69
           this.readerData(rawFile)
@@ -127,7 +127,7 @@
127 127
 </script>
128 128
 
129 129
 <style scoped>
130
-  #excel-project-input {
130
+  #excel-good-input {
131 131
     display: none;
132 132
     z-index: -9999;
133 133
   }

+ 79 - 29
src/xt_pages/data/components/addDrugs.vue Ver fichero

@@ -37,10 +37,10 @@
37 37
                         <el-form-item label="药品类别 : " prop="drug_category">
38 38
                             <el-select v-model="form.drug_category" style="width:160px;" placeholder="请选择">
39 39
                                 <el-option
40
-                                        v-for="item,index in getDictionaryDataConfig('system','drug_category')"
40
+                                        v-for="(item,index) in drugCategoryList"
41 41
                                         :key="index"
42 42
                                         :label="item.name"
43
-                                        :value="item.id">
43
+                                        :value="item.value">
44 44
                                 </el-option>
45 45
                             </el-select>
46 46
                         </el-form-item>
@@ -51,10 +51,10 @@
51 51
                         <el-form-item label="药品类型 : " prop="drug_type">
52 52
                             <el-select v-model="form.drug_type" style="width:160px;" placeholder="请选择">
53 53
                                 <el-option
54
-                                        v-for="item,index in getDictionaryDataConfig('system','drug_type')"
54
+                                        v-for="(item,index) in drugTypeList"
55 55
                                         :key="index"
56 56
                                         :label="item.name"
57
-                                        :value="item.id">
57
+                                        :value="item.value">
58 58
                                 </el-option>
59 59
                             </el-select>
60 60
                         </el-form-item>
@@ -69,20 +69,20 @@
69 69
                         <el-form-item label="药品剂型 : " prop="drug_dosage_form">
70 70
                             <el-select v-model="form.drug_dosage_form" style="width:160px;" placeholder="请选择">
71 71
                                 <el-option
72
-                                        v-for="item,index in getDictionaryDataConfig('system','drug_dosage_form')"
72
+                                        v-for="(item,index) in drugDosageFormList"
73 73
                                         :key="index"
74 74
                                         :label="item.name"
75
-                                        :value="item.id">
75
+                                        :value="item.value">
76 76
                                 </el-option>
77 77
                             </el-select>
78 78
                         </el-form-item>
79 79
                         <el-form-item label="医保等级 : ">
80 80
                             <el-select v-model="form.medical_insurance_level" style="width:160px;" placeholder="请选择">
81 81
                                 <el-option
82
-                                        v-for="item,index in getDictionaryDataConfig('system','medical_insurance_level')"
82
+                                        v-for="(item,index) in medicalInsuranceLevelList"
83 83
                                         :key="index"
84 84
                                         :label="item.name"
85
-                                        :value="item.id">
85
+                                        :value="item.value">
86 86
                                 </el-option>
87 87
                             </el-select>
88 88
                         </el-form-item>
@@ -121,10 +121,10 @@
121 121
                         <el-form-item label="开药控制 : " prop="drug_control">
122 122
                             <el-select v-model="form.drug_control" style="width:160px;" placeholder="请选择">
123 123
                                 <el-option
124
-                                        v-for="item,index in getDictionaryDataConfig('system','drug_control')"
124
+                                        v-for="(item,index) in drugControlList"
125 125
                                         :key="index"
126 126
                                         :label="item.name"
127
-                                        :value="item.id">
127
+                                        :value="item.value">
128 128
                                 </el-option>
129 129
                             </el-select>
130 130
                         </el-form-item>
@@ -135,10 +135,10 @@
135 135
                         <el-form-item label="药物分类 : " prop="drug_classify">
136 136
                             <el-select v-model="form.drug_classify" style="width:160px;" placeholder="请选择">
137 137
                                 <el-option
138
-                                        v-for="item, index in getDictionaryDataConfig('system','drug_classify')"
138
+                                        v-for="(item, index) in drugClassifyList"
139 139
                                         :key="index"
140 140
                                         :label="item.name"
141
-                                        :value="item.id">
141
+                                        :value="item.value">
142 142
                                 </el-option>
143 143
                             </el-select>
144 144
                         </el-form-item>
@@ -156,7 +156,7 @@
156 156
                         </el-form-item>
157 157
 
158 158
 
159
-                        <el-form-item label="限制性用药 : " prop="lmt_used_flag">
159
+                        <el-form-item label="限制性用药 : ">
160 160
                             <el-select v-model="form.lmt_used_flag" style="width:160px;" placeholder="请选择">
161 161
                                 <el-option
162 162
                                         v-for="item,index in lmt_used_flags"
@@ -196,8 +196,8 @@
196 196
 
197 197
                             <el-select v-model="form.manufacturer" style="width:160px;" filterable placeholder="请选择">
198 198
                                 <el-option
199
-                                        v-for="item in manufacturerList"
200
-                                        :key="item.id"
199
+                                        v-for="(item,index) in manufacturerList"
200
+                                        :key="index"
201 201
                                         :label="item.manufacturer_name"
202 202
                                         :value="item.id">
203 203
                                 </el-option>
@@ -207,20 +207,20 @@
207 207
                         <el-form-item label="药理分类 : " prop="pharmacology_category">
208 208
                             <el-select v-model="form.pharmacology_category" style="width:160px;" placeholder="请选择">
209 209
                                 <el-option
210
-                                        v-for="item,index  in getDictionaryDataConfig('system','pharmacology_category')"
210
+                                        v-for="(item,index)  in pharmacologyCategoryList"
211 211
                                         :key="index"
212 212
                                         :label="item.name"
213
-                                        :value="item.id">
213
+                                        :value="item.value">
214 214
                                 </el-option>
215 215
                             </el-select>
216 216
                         </el-form-item>
217 217
                         <el-form-item label="统计分类 : " prop="statistics_category">
218 218
                             <el-select v-model="form.statistics_category" style="width:160px;" placeholder="请选择">
219 219
                                 <el-option
220
-                                        v-for="item,index  in getDictionaryDataConfig('system','statistics_category')"
220
+                                        v-for="(item,index)  in statisticsCategoryList"
221 221
                                         :key="index"
222 222
                                         :label="item.name"
223
-                                        :value="item.id">
223
+                                        :value="item.value">
224 224
                                 </el-option>
225 225
                             </el-select>
226 226
                         </el-form-item>
@@ -423,7 +423,7 @@
423 423
 <script>
424 424
   import { getDataConfig, getDictionaryDataConfig } from '@/utils/data'
425 425
   import { getAdviceConfig } from '@/api/advice'
426
-  import { GetAllConfig, getManufacturerList } from '@/api/stock'
426
+  import { GetAllConfig, getManufacturerList,getInitializtion } from '@/api/stock'
427 427
 
428 428
   export default {
429 429
     data() {
@@ -552,7 +552,15 @@
552 552
         page: 1,
553 553
         limit: 500,
554 554
         manufacturerList: [],
555
-        dealer: []
555
+        dealer: [],
556
+        drugTypeList:[],
557
+        drugCategoryList:[],
558
+        drugDosageFormList:[],
559
+        medicalInsuranceLevelList:[],
560
+        drugControlList:[],
561
+        drugClassifyList:[],
562
+        statisticsCategoryList:[],
563
+        pharmacologyCategoryList:[]
556 564
       }
557 565
     },
558 566
     props: {
@@ -569,7 +577,8 @@
569 577
       isCreated: {
570 578
         type: Number,
571 579
         default: 1
572
-      }
580
+      },
581
+     
573 582
 
574 583
     },
575 584
     methods: {
@@ -602,8 +611,15 @@
602 611
         this.form.intro = ''
603 612
       },
604 613
       show(id, obj) {
605
-        console.log('obj222', obj)
606
-        // this.clear()
614
+        console.log("obj333333333",obj)
615
+        this.getInitializtion()
616
+        this.getlist()
617
+        this.GetAllConfig()
618
+        obj.drug_classify = parseInt(obj.drug_classify)
619
+        if(obj.dealer == 0){
620
+           obj.dealer = ""
621
+        }
622
+        
607 623
         this.visible = true
608 624
         if (id == 0) {
609 625
           this.formTitle = '新增'
@@ -714,7 +730,7 @@
714 730
 
715 731
         form['hosp_appr_flag'] = this.form.hosp_appr_flag
716 732
         form['lmt_used_flag'] = this.form.lmt_used_flag
717
-
733
+       
718 734
         return form
719 735
       },
720 736
       getlist() {
@@ -725,7 +741,7 @@
725 741
 
726 742
         getManufacturerList(params).then(response => {
727 743
           var manufacturerList = response.data.data.manufacturer
728
-          console.log('列表2222222', manufacturerList)
744
+         
729 745
           this.manufacturerList = manufacturerList
730 746
         })
731 747
       },
@@ -736,9 +752,39 @@
736 752
             return false
737 753
           } else {
738 754
             this.dealer = response.data.data.dealer
739
-            console.log('经销商', this.dealer)
755
+            // console.log('经销商', this.dealer)
740 756
           }
741 757
         })
758
+      },
759
+      getInitializtion(){
760
+        getInitializtion().then(response=>{
761
+           if(response.data.state ==1){
762
+             var drugCategoryList =  response.data.data.drugCategoryList
763
+             console.log("药品类别",drugCategoryList) 
764
+             this.drugCategoryList = drugCategoryList
765
+             var drugTypeList = response.data.data.drugTypeList
766
+              console.log("药物分类",drugTypeList)
767
+              this.drugTypeList = drugTypeList
768
+             var drugDosageFormList =  response.data.data.drugDosageFormList
769
+             console.log("药品剂型",drugDosageFormList) 
770
+             this.drugDosageFormList = drugDosageFormList
771
+             var medicalInsuranceLevelList =  response.data.data.medicalInsuranceLevelList
772
+             console.log("医保等级",medicalInsuranceLevelList)
773
+             this.medicalInsuranceLevelList = medicalInsuranceLevelList
774
+             var drugControlList = response.data.data.drugControlList
775
+             console.log("开药控制",drugControlList)
776
+             this.drugControlList = drugControlList
777
+             var drugClassifyList = response.data.data.drugClassifyList
778
+             console.log("药物分类",drugClassifyList)
779
+             this.drugClassifyList = drugClassifyList
780
+             var statisticsCategoryList =  response.data.data.statisticsCategoryList
781
+             console.log("统计分类",statisticsCategoryList)
782
+             this.statisticsCategoryList = statisticsCategoryList
783
+             var pharmacologyCategoryList = response.data.data.pharmacologyCategoryList
784
+             console.log("药理分类",pharmacologyCategoryList)
785
+             this.pharmacologyCategoryList = pharmacologyCategoryList
786
+           }
787
+        })
742 788
       }
743 789
     }, watch: {
744 790
       visible(val) {
@@ -747,9 +793,13 @@
747 793
       }
748 794
     },
749 795
     created() {
750
-      this.getlist()
751
-      //获取所有经销商
796
+      this.getInitializtion()
797
+       //获取所有经销商
752 798
       this.GetAllConfig()
799
+      this.getlist()
800
+      
801
+      
802
+     
753 803
     }
754 804
   }
755 805
 </script>

+ 69 - 93
src/xt_pages/data/components/consumables.vue Ver fichero

@@ -66,7 +66,7 @@
66 66
      <div style="display:flex; align-items:center;margin-bottom:10px;">
67 67
         <el-button type="primary" size="mini" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028">批量备案</el-button>
68 68
         <el-button type="primary" size="mini" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028" @click="GDYBBatchPutOnRecord">批量备案</el-button>
69
-        <!-- <el-link target="_blank" href="https://kuyi.shengws.com/stock_template.xlsx" :underline="false"
69
+        <el-link target="_blank" href="https://kuyi.shengws.com/stockTemplate.xlsx" :underline="false"
70 70
                  style="margin-left:15px">
71 71
           <el-button
72 72
             class="filter-item"
@@ -75,14 +75,14 @@
75 75
           >下载模版
76 76
           </el-button>
77 77
         </el-link>
78
-        <upload-excel :on-success='handleSuccess'></upload-excel>
78
+        <good-excel :on-success='handleSuccess'></good-excel>
79 79
         <el-button
80 80
           style="margin-left:10px;"
81 81
           @click="generateLog()"
82 82
           class="filter-item"
83 83
           type="primary"
84 84
           size="small"
85
-        >下载日志 -->
85
+        >下载日志
86 86
         </el-button>
87 87
       </div>
88 88
 
@@ -241,15 +241,18 @@
241 241
     GetGoodInfoByGoodId,
242 242
     getGoodInfoList,
243 243
     modifyGoodInfo,
244
-    postGoodInformation
244
+    postGoodInformation,
245
+    getInitializtion
245 246
   } from '@/api/stock'
246 247
   import UploadExcel from '@/xt_pages/components/UploadExcel'
248
+  import GoodExcel from '@/xt_pages/components/GoodExcel'
247 249
   import { generateLog } from '@/api/config'
248 250
   export default {
249 251
     components: {
250 252
       GoodInfoDailog,
251 253
       selfPayment,
252 254
       UploadExcel,
255
+      GoodExcel
253 256
     },
254 257
     data() {
255 258
       return {
@@ -350,6 +353,7 @@
350 353
         dealers:[],
351 354
         exportLogVisible:false,
352 355
         logs: [],
356
+        goodKindList:[]
353 357
       }
354 358
     },
355 359
     methods: {
@@ -458,10 +462,12 @@
458 462
         return ""
459 463
       },
460 464
       getGoodKind(id){
461
-        var data = this.getDictionaryDataConfig('system','good_kind')
465
+        // var data = this.getDictionaryDataConfig('system','good_kind')
466
+        var data = this.goodKindList
467
+       
462 468
         var name = ""
463 469
         for(let i = 0; i < data.length; i++){
464
-          if(id == data[i].id){
470
+          if(id == data[i].value){
465 471
             name = data[i].name
466 472
           }
467 473
 
@@ -531,8 +537,6 @@
531 537
               response.data.data.goodInfo.good_type_id
532 538
 
533 539
 
534
-
535
-
536 540
             this.goodInfo.goodInfoDialog.formValue.good_name =
537 541
               response.data.data.goodInfo.good_name
538 542
 
@@ -552,8 +556,6 @@
552 556
                 response.data.data.goodInfo.good_kind
553 557
             }
554 558
 
555
-
556
-
557 559
             if (response.data.data.goodInfo.medical_insurance_level <= 0) {
558 560
               this.goodInfo.goodInfoDialog.formValue.medical_insurance_level = ''
559 561
             } else {
@@ -723,7 +725,7 @@
723 725
           is_mark:this.is_record,
724 726
           manufacturer:this.manufacturer,
725 727
         }
726
-        console.log("222222",params)
728
+      
727 729
         getGoodInfoList(params).then(response => {
728 730
           if (response.data.state == 0) {
729 731
             this.goodInfo.loading = false
@@ -767,11 +769,16 @@
767 769
         })
768 770
       },
769 771
       goodInfoDialogComfirm: function(val) {
772
+       
770 773
         if (val.isCreated == 2) {
771 774
           //修改
772 775
           val['id'] = this.goodInfo.editGoodId
773 776
           val['good_code'] = this.goodInfo.good_code
777
+        
778
+          
774 779
 
780
+
781
+          
775 782
           modifyGoodInfo(val).then(response => {
776 783
             if (response.data.state == 0) {
777 784
               // this.$message.error(response.data.msg)
@@ -803,6 +810,20 @@
803 810
             }
804 811
           })
805 812
         } else if (val.isCreated == 1) {
813
+         
814
+          
815
+          if(val.is_reuse == ""){
816
+             val.is_reuse = 0
817
+          }else{
818
+            val.is_reuse = parseInt(val.is_reuse)
819
+          }
820
+          
821
+          if(val.stock_warn_count == ""){
822
+             val.stock_warn_count = 0
823
+          }else{
824
+            val.stock_warn_count = parseInt(val.stock_warn_count)
825
+          }
826
+         
806 827
           //新增
807 828
           createGoodInfo(val).then(response => {
808 829
             if (response.data.state == 0) {
@@ -881,7 +902,7 @@
881 902
               )
882 903
               this.manufacturers.push(response.data.data.manufacturer[i])
883 904
             }
884
-            console.log("生产厂商888222",this.manufacturers)
905
+           
885 906
           }
886 907
         })
887 908
       },
@@ -1017,13 +1038,13 @@
1017 1038
               ids.push(this.selectDrug[index].id);
1018 1039
               idMap[this.selectDrug[index].id] = this.selectDrug[index].id;
1019 1040
             }
1020
-            console.log('ids222222222',ids)
1041
+          
1021 1042
             var idss = ids.join(',')
1022 1043
             let params = {
1023 1044
               ids:idss,
1024 1045
               admin_user_id:this.$store.getters.xt_user.user.id
1025 1046
             }
1026
-            console.log("paramsw2",params)
1047
+          
1027 1048
 
1028 1049
             var that = this
1029 1050
             axios.get('http://127.0.0.1:9532/sz/api/goods/get',{ params: params }).then(function(response) {
@@ -1077,30 +1098,26 @@
1077 1098
          this.getList()
1078 1099
       },
1079 1100
       handleSuccess({ results, header }) {
1080
-        console.log("header",header)
1081
-        var goods = []
1101
+       
1082 1102
         if (header != undefined && header.length > 0) {
1083 1103
             
1084 1104
           var isHasMedicalInsuranceLevel = header.includes('*医保等级')
1085
-          // console.log("医保等级",isHasMedicalInsuranceLevel)
1105
+         
1086 1106
           var isHasGoodUnit = header.includes('*单位')
1087
-          // console.log("单位",isHasGoodUnit)
1107
+        
1088 1108
           var isHasStockWarnCount = header.includes('*库存警戒')
1089
-          // console.log("库存警戒",isHasStockWarnCount)
1109
+       
1090 1110
           var isHasManuFacturer =  header.includes('*生产厂商')
1091
-          // console.log("生产厂商",isHasManuFacturer)
1092
-          var isHasDealer =  header.includes('*经销商')
1093
-          // console.log("经销商",isHasDealer)
1111
+         
1094 1112
           var isHasGoodName = header.includes('*耗材名称')
1095
-          // console.log("耗材名称",isHasGoodName)
1113
+        
1096 1114
           var isHasGoodKand = header.includes('*耗材种类')
1097
-          // console.log("耗材种类",isHasGoodKand)
1115
+          
1098 1116
           var isHasSpecificationName = header.includes('*规格型号')
1099
-          // console.log("规格型号",isHasSpecificationName)
1117
+        
1100 1118
           var isHasBuyPrice = header.includes('*零价')
1101
-          // console.log("零价",isHasBuyPrice)
1102
-         
1103
-          if (!(isHasMedicalInsuranceLevel && isHasGoodUnit && isHasStockWarnCount && isHasManuFacturer && isHasDealer && isHasGoodName && isHasGoodKand && isHasSpecificationName &&  isHasBuyPrice)) {
1119
+                
1120
+          if (!(isHasMedicalInsuranceLevel && isHasGoodUnit && isHasStockWarnCount && isHasManuFacturer  && isHasGoodName && isHasGoodKand && isHasSpecificationName &&  isHasBuyPrice)) {
1104 1121
             this.dialogVisible = true
1105 1122
             return
1106 1123
           }
@@ -1110,7 +1127,7 @@
1110 1127
         }
1111 1128
        
1112 1129
        var tableData = []
1113
-       for(let i=0;i<results.length;i++){
1130
+       for(let i=1;i<results.length;i++){
1114 1131
          let obj = {"good_kind_id":0,"good_type_id":0,"medical_insurance_id":0,"dealer_id":0,"statistic_id":0,"manufacturer_id":0,"unit_id":0}
1115 1132
          for (var key in results[i]) {
1116 1133
 
@@ -1186,10 +1203,10 @@
1186 1203
               }
1187 1204
            }
1188 1205
 
1189
-           if (results[i]['*经销商'] === undefined) {
1206
+           if (results[i]['经销商'] === undefined) {
1190 1207
                 obj['dealer'] = ''
1191 1208
               } else {
1192
-             if (key == '*经销商') {
1209
+             if (key == '经销商') {
1193 1210
                obj['dealer'] = results[i][key].replace(/\s/g,"")
1194 1211
               }
1195 1212
            }
@@ -1294,60 +1311,11 @@
1294 1311
 
1295 1312
          }
1296 1313
          tableData.push(obj)
1297
-         console.log("表哥2222",tableData)
1298
-         var goodKind  =  this.getDictionaryDataConfig('system','good_kind')
1299
-         
1300
-        //  console.log("耗材种类",goodKind)
1301
-        //  console.log("耗材类型",this.goodType)
1302
-        var medicalInsuranceLevel = this.getDictionaryDataConfig('system','medical_insurance_level')
1303
-        // console.log("医保等级",medicalInsuranceLevel)
1304
-        // console.log("生产厂商",this.manufacturers)
1305
-        // console.log("经销商",this.dealers)
1306
-        var statisticsCategory = getDictionaryDataConfig('system','statistics_category')
1307
-        // console.log("统计分类",statisticsCategory)
1308
-       
1309 1314
         var goodUnit =  this.$store.getters.good_unit
1310 1315
        
1311 1316
 
1312 1317
         for(let i=0;i<tableData.length;i++){ 
1313
-          for(let j=0;j<goodKind.length;j++){
1314
-             
1315
-             if(tableData[i].good_kind == goodKind[j].name){
1316
-                tableData[i].good_kind_id = goodKind[j].id
1317
-             }    
1318
-          }
1319
-
1320
-       for(let z=0;z<this.goodType.length;z++){
1321
-          if(tableData[i].type_name == this.goodType[z].type_name){
1322
-             tableData[i].good_type_id = this.goodType[z].id
1323
-           }
1324
-        }
1325
-        
1326
-        for(let y=0;y<medicalInsuranceLevel.length;y++){
1327
-           if(tableData[i].medical_insurance_level == medicalInsuranceLevel[y].name){
1328
-               tableData[i].medical_insurance_id = medicalInsuranceLevel[y].id
1329
-           }
1330
-        }
1331
-
1332
-        
1333
-        for(let a=0;a<this.manufacturers.length;a++){
1334
-           if(tableData[i].manufacturer == this.manufacturers[a].manufacturer_name){
1335
-               tableData[i].manufacturer_id = this.manufacturers[a].id
1336
-           }
1337
-        }
1338
-       
1339
-        for(let s=0;s<this.dealers.length;s++){
1340
-           if(tableData[i].dealer == this.dealers[s].dealer_name){
1341
-               tableData[i].dealer_id = this.dealers[s].id
1342
-           }
1343
-        }
1344
-        
1345
-        for(let h=0;h<statisticsCategory.length;h++){
1346
-           if(tableData[i].statistics_category == statisticsCategory[h].name){
1347
-               tableData[i].statistic_id = statisticsCategory[h].id
1348
-           }
1349
-         }
1350
-
1318
+      
1351 1319
          for(let c=0;c<goodUnit.length;c++){
1352 1320
             if(tableData[i].good_unit == goodUnit[c].name){
1353 1321
                tableData[i].unit_id = goodUnit[c].id
@@ -1377,22 +1345,15 @@
1377 1345
          
1378 1346
 
1379 1347
           if(tableData[i].special_medical == "是"){
1380
-             tableData[i].special_medical = 1
1348
+             tableData[i].special_medical = "1"
1381 1349
           }
1382 1350
           if(tableData[i].special_medical == "否"){
1383
-             tableData[i].special_medical = 2
1351
+             tableData[i].special_medical = "2"
1384 1352
           }
1385 1353
        }
1386 1354
         
1387 1355
        for(let i=0;i<tableData.length;i++){
1388
-          tableData[i].retail_price = parseInt(tableData[i].retail_price) 
1389
-           
1390
-          if(tableData[i].buy_price == ""){
1391
-             tableData[i].buy_price = 0
1392
-          }else{
1393
-             tableData[i].buy_price = parseInt(tableData[i].buy_price)
1394
-          }
1395
-
1356
+         
1396 1357
           if(tableData[i].is_special_diseases == ""){
1397 1358
              tableData[i].is_special_diseases = 0
1398 1359
           }else{
@@ -1411,15 +1372,17 @@
1411 1372
        let params = {
1412 1373
           'goods':tableData 
1413 1374
         }
1414
-       console.log("params2222",params)
1375
+     
1415 1376
        
1416 1377
        
1417 1378
         postGoodInformation(params).then(response=>{
1418 1379
            if(response.data.state == 1){
1419 1380
              var msg =  response.data.data.msg
1420 1381
              this.$message.success("导入成功!")
1382
+             this.getList()
1383
+             this.getInitializtion()
1421 1384
            }else{
1422
-             this.$message.error("导入失败")
1385
+             this.$message.error("导入失败,请下载日志查看")
1423 1386
            }
1424 1387
         })
1425 1388
       },
@@ -1474,6 +1437,18 @@
1474 1437
         )
1475 1438
 
1476 1439
       },
1440
+      getInitializtion(){
1441
+       getInitializtion().then(response=>{
1442
+         if(response.data.state == 1){
1443
+           var goodKindList = response.data.data.goodKindList
1444
+          
1445
+           this.goodKindList = goodKindList
1446
+         
1447
+
1448
+         }
1449
+       })
1450
+      }
1451
+
1477 1452
     }, 
1478 1453
     created() {
1479 1454
       this.getList()
@@ -1481,6 +1456,7 @@
1481 1456
       this.getAllManufacturer()
1482 1457
       this.getAllGoodType()
1483 1458
       this.goodInfo.goodInfoDialog.formValue.goodUnit = this.$store.getters.good_unit
1459
+      this.getInitializtion()
1484 1460
     }
1485 1461
   }
1486 1462
 </script>

+ 92 - 109
src/xt_pages/data/components/drugs.vue Ver fichero

@@ -64,7 +64,7 @@
64 64
     <div style="display:flex; align-items:center;margin-bottom:10px;">
65 65
         <el-button type="primary" size="small" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028" >批量备案</el-button>
66 66
         <el-button type="primary" size="small" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028" @click="GDYBBatchPutOnRecord()">批量备案</el-button>
67
-        <!-- <el-link target="_blank" href="https://kuyi.shengws.com/drug_template.xlsx" :underline="false"
67
+        <el-link target="_blank" href="https://kuyi.shengws.com/drugTemplate.xlsx" :underline="false"
68 68
                  style="margin-left:15px">
69 69
           <el-button
70 70
             class="filter-item"
@@ -81,7 +81,7 @@
81 81
           type="primary"
82 82
           size="small"
83 83
         >下载日志
84
-        </el-button> -->
84
+        </el-button>
85 85
       </div>
86 86
     <el-table :data="list" border style="width: 100%" :row-style="{ color: '#303133' }"
87 87
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}"
@@ -480,11 +480,11 @@
480 480
         return name
481 481
       },
482 482
       goodInfoDialogComfirm: function(val) {
483
-
483
+        
484 484
         //修改自备药
485 485
         var untit = ""
486 486
         var untis = getDataConfig('hemodialysis','units')
487
-        console.log("999999",untis)
487
+        
488 488
         for(let i=0;i<untis.length;i++){
489 489
            if(val.min_unit == untis[i].id){
490 490
               untit = untis[i].name
@@ -505,7 +505,7 @@
505 505
           })
506 506
         } else if (val.id == 0) {
507 507
           //新增
508
-          console.log("vale222222",val)
508
+         
509 509
 
510 510
           createBaseDrugLib(val).then(response => {
511 511
             if (response.data.state == 0) {
@@ -560,7 +560,7 @@
560 560
               this.$message.error(response.data.msg)
561 561
               return false
562 562
             } else {
563
-              console.log("数据", response.data.data.drug)
563
+           
564 564
               for (let key in response.data.data.drug) {
565 565
                 this.formValue[key] = response.data.data.drug[key]
566 566
               }
@@ -673,6 +673,7 @@
673 673
               if(this.formValue.hosp_appr_flag == 0){
674 674
                 this.formValue.hosp_appr_flag = ""
675 675
               }
676
+              
676 677
               this.$refs.addDrugs.show(id, this.formValue)
677 678
 
678 679
             }
@@ -686,7 +687,7 @@
686 687
       },
687 688
 
688 689
        deleteDurg(id,index){
689
-         console.log("id",id)
690
+      
690 691
             this.$confirm('确认删除吗?', '删除', {
691 692
             confirmButtonText: '确 定',
692 693
             cancelButtonText: '取 消',
@@ -803,7 +804,7 @@
803 804
       //   })
804 805
       // },
805 806
       toReturn(id,isMark){
806
-        console.log("id2222",id)
807
+     
807 808
          var that = this
808 809
          let params = {
809 810
              'id':id,
@@ -905,13 +906,11 @@
905 906
      },
906 907
 
907 908
       handleSuccessTwo({ results, header }) {
908
-       console.log("hhhhhhhh",results)
909
+     
909 910
         if (header != undefined && header.length > 0) {
910 911
             
911 912
           var isHasDrugName = header.includes('*药品名称')
912 913
          
913
-          var isHasDrugAlias = header.includes('*药品别名')
914
-          
915 914
           var isHasDrugSpec = header.includes('*药品规格')
916 915
         
917 916
           var isHasDrugType =  header.includes('*药品类型')
@@ -936,8 +935,11 @@
936 935
 
937 936
          var isHasManufacturer = header.includes('*生产厂商')
938 937
 
939
-          var isHasDealer =  header.includes('*经销商')
940
-          if (!(isHasDrugName && isHasDrugAlias && isHasDrugSpec && isHasDrugType && isHasDrugStockLimit && isHasDrugOriginPlace && isHasDrugDosageForm && isHasMaxUnit &&  isHasMinUnit && isHasUnitMatrixing &&  isHasRetailPrice && isHasLastPrice && isHasDrugClassifye && isHasManufacturer && isHasDealer)) {
938
+         var isHasDrugDose = header.includes('*剂量')
939
+           
940
+         var isDrugDoseUnit = header.includes('*剂量单位')
941
+     
942
+          if (!(isHasDrugName  && isHasDrugSpec && isHasDrugType && isHasDrugStockLimit && isHasDrugOriginPlace && isHasDrugDosageForm && isHasMaxUnit &&  isHasMinUnit && isHasUnitMatrixing &&  isHasRetailPrice && isHasLastPrice && isHasDrugClassifye && isHasManufacturer && isHasDrugDose && isDrugDoseUnit)) {
941 943
             this.dialogVisible = true
942 944
             return
943 945
           }
@@ -947,8 +949,8 @@
947 949
         }
948 950
        
949 951
        var tableData = []
950
-       for(let i=0;i<results.length;i++){
951
-         let obj = {"drug_type_id":0,"drug_dosage_form_id":0,"medical_insurance_level_id":0,"drug_classify_id":0,"manufacturer_id":0,"dealer_id":0,"statistics_category_id":0,"drug_control_id":0,"pharmacology_category_id":0}
952
+       for(let i=1;i<results.length;i++){
953
+         let obj = {"drug_type_id":0,"drug_dosage_form_id":0,"medical_insurance_level_id":0,"drug_classify_id":0,"manufacturer_id":0,"dealer_id":0,"statistics_category_id":0,"drug_control_id":0,"pharmacology_category_id":0,"drug_category_id":0}
952 954
          for (var key in results[i]) {
953 955
 
954 956
            if (results[i]['*药品名称'] === undefined) {
@@ -960,10 +962,10 @@
960 962
            }
961 963
 
962 964
 
963
-           if (results[i]['*药品别名'] === undefined) {
965
+           if (results[i]['药品别名'] === undefined) {
964 966
                 obj['drug_alias'] = ''
965 967
               } else {
966
-           if (key == '*药品别名') {
968
+           if (key == '药品别名') {
967 969
                obj['drug_alias'] = results[i][key].replace(/\s/g,"")
968 970
               }
969 971
            }
@@ -1077,10 +1079,10 @@
1077 1079
               }
1078 1080
            }
1079 1081
 
1080
-            if (results[i]['*经销商'] === undefined) {
1082
+            if (results[i]['经销商'] === undefined) {
1081 1083
                 obj['dealer'] = ''
1082 1084
               } else {
1083
-            if (key == '*经销商') {
1085
+            if (key == '经销商') {
1084 1086
                 obj['dealer'] = results[i][key].replace(/\s/g,"")
1085 1087
               }
1086 1088
            }
@@ -1101,11 +1103,13 @@
1101 1103
               }
1102 1104
            }
1103 1105
 
1104
-            if (results[i]['药品别名'] === undefined) {
1105
-                obj['drug_alias'] = ''
1106
+          
1107
+
1108
+            if (results[i]['别名拼音'] === undefined) {
1109
+                obj['drug_alias_pinyin'] = ''
1106 1110
               } else {
1107
-            if (key == '药品别名') {
1108
-                obj['drug_alias'] = results[i][key].replace(/\s/g,"")
1111
+            if (key == '别名拼音') {
1112
+                obj['drug_alias_pinyin'] = results[i][key].replace(/\s/g,"")
1109 1113
               }
1110 1114
            }
1111 1115
 
@@ -1117,6 +1121,22 @@
1117 1121
               }
1118 1122
            }
1119 1123
 
1124
+            if (results[i]['别名五笔'] === undefined) {
1125
+                obj['drug_alias_wubi'] = ''
1126
+              } else {
1127
+            if (key == '别名五笔') {
1128
+                obj['drug_alias_wubi'] = results[i][key].replace(/\s/g,"")
1129
+              }
1130
+           }
1131
+
1132
+             if (results[i]['药品类别'] === undefined) {
1133
+                obj['drug_category'] = ''
1134
+              } else {
1135
+            if (key == '药品类别') {
1136
+                obj['drug_category'] = results[i][key].replace(/\s/g,"")
1137
+              }
1138
+           }
1139
+
1120 1140
            if (results[i]['开药控制'] === undefined) {
1121 1141
                 obj['drug_control'] = ''
1122 1142
               } else {
@@ -1246,86 +1266,37 @@
1246 1266
               }
1247 1267
            }
1248 1268
 
1269
+          if (results[i]['*剂量'] === undefined) {
1270
+                obj['drug_dose'] = ''
1271
+              } else {
1272
+            if (key == '*剂量') {
1273
+                obj['drug_dose'] = results[i][key].replace(/\s/g,"")
1274
+              }
1275
+           }
1249 1276
 
1250
-         }
1251
-         tableData.push(obj)
1252
-         console.log("表哥2222",tableData)
1253
-      
1254
-        var drugType =  this.getDictionaryDataConfig('system','drug_type')
1255
-       
1256
-       
1257
-        var drugDosageForm = this.getDictionaryDataConfig('system','drug_dosage_form')
1258
-       
1259
-        var medicalInsuranceLevel = this.getDictionaryDataConfig('system','medical_insurance_level')
1260
-        
1277
+           if (results[i]['*剂量单位'] === undefined) {
1278
+                obj['drug_dose_unit'] = ''
1279
+              } else {
1280
+            if (key == '*剂量单位') {
1281
+                obj['drug_dose_unit'] = results[i][key].replace(/\s/g,"")
1282
+              }
1283
+           }
1261 1284
 
1262
-        var drugClassify =  this.getDictionaryDataConfig('system','drug_classify')
1263
-       
1264
-        var drug_control =  this.getDictionaryDataConfig('system','drug_control')
1265
-        var goodUnit =  this.$store.getters.good_unit
1266
-        
1267
-        var pharmacology_category = this.getDictionaryDataConfig('system','pharmacology_category')
1268
-        console.log("药理分类",pharmacology_category)
1285
+           if (results[i]['限制性用药'] === undefined) {
1286
+                obj['lmt_used_flag'] = ''
1287
+              } else {
1288
+            if (key == '限制性用药') {
1289
+                obj['lmt_used_flag'] = results[i][key].replace(/\s/g,"")
1290
+              }
1291
+           }
1269 1292
 
1270
-        var statistics_category = this.getDictionaryDataConfig('system','statistics_category')
1271
-        console.log("统计分类",statistics_category)
1272
-         
1293
+
1294
+         }
1295
+         var newArr = []
1296
+         tableData.push(obj)
1273 1297
        
1274 1298
         for(let i=0;i<tableData.length;i++){ 
1275
-          for(let j=0;j<drugType.length;j++){
1276
-            if(tableData[i].drug_type == drugType[j].name){
1277
-                tableData[i].drug_type_id = drugType[j].id
1278
-             }    
1279
-          }
1280
-
1281
-          for(let j=0;j<drugDosageForm.length;j++){
1282
-            if(tableData[i].drug_dosage_form == drugDosageForm[j].name){
1283
-                tableData[i].drug_dosage_form_id = drugDosageForm[j].id
1284
-            }
1285
-          }
1286
-
1287
-          for(let j=0;j<medicalInsuranceLevel.length;j++){
1288
-            if(tableData[i].medical_insurance_level == medicalInsuranceLevel[j].name){
1289
-                tableData[i].medical_insurance_level_id = medicalInsuranceLevel[j].id
1290
-            }
1291
-          }
1292
-
1293
-          for(let j=0;j<drugClassify.length;j++){
1294
-             if(tableData[i].drug_classify == drugClassify[j].name){
1295
-                tableData[i].drug_classify_id = drugClassify[j].id
1296
-             }
1297
-          } 
1298
-         
1299
-          console.log("生产",this.manufacturers)
1300
-          for(let j=0;j<this.manufacturers.length;j++){
1301
-            if(tableData[i].manufacturer == this.manufacturers[j].manufacturer_name){
1302
-               tableData[i].manufacturer_id = this.manufacturers[j].id
1303
-            }
1304
-          }
1305
-          console.log("经销商",this.dealer)
1306
-          for(let j=0;j<this.dealer.length;j++){
1307
-            if(tableData[i].dealer == this.dealer[j].dealer_name){
1308
-               tableData[i].dealer_id = this.dealer[j].id
1309
-            }
1310
-          }
1311
-
1312
-          for(let j=0;j<pharmacology_category.length;j++){
1313
-             if(tableData[i].pharmacology_category == pharmacology_category[j].name){
1314
-                tableData[i].pharmacology_category_id = pharmacology_category[j].id  
1315
-             }
1316
-          }
1317
-
1318
-         for(let j=0;j<statistics_category.length;j++){
1319
-            if(tableData[i].statistics_category == statistics_category[j].name){
1320
-                tableData[i].statistics_category_id = statistics_category[j].id
1321
-            }
1322
-         } 
1323
-
1324
-         for(let j=0;j<drug_control.length;j++){
1325
-           if(tableData[i].drug_control == drug_control[j].name){
1326
-               tableData[i].drug_control_id = drug_control[j].id
1327
-            }
1328
-         } 
1299
+          
1329 1300
          if(tableData[i].is_special_diseases == ""){
1330 1301
             tableData[i].is_special_diseases = 0
1331 1302
          }
@@ -1372,27 +1343,36 @@
1372 1343
           if(tableData[i].hosp_appr_flag == "审批不通过"){
1373 1344
               tableData[i].hosp_appr_flag = 3
1374 1345
           }
1375
-         
1346
+          if(tableData[i].lmt_used_flag == ""){
1347
+             tableData[i].lmt_used_flag = 0
1348
+          }
1349
+          
1350
+          if(tableData[i].lmt_used_flag == "否"){
1351
+              tableData[i].lmt_used_flag = 0
1352
+          }
1353
+
1354
+            
1355
+          if(tableData[i].lmt_used_flag == "是"){
1356
+              tableData[i].lmt_used_flag = 1
1357
+          }
1358
+      
1376 1359
         }
1377 1360
        }
1378
-       for(let i=0;i<tableData.length;i++){
1379
-          tableData[i].retail_price = parseInt(tableData[i].retail_price)
1380
-          tableData[i].last_price = parseInt(tableData[i].last_price)
1381
-       }
1382
-
1383
-
1384
-       
1361
+     
1385 1362
        let params = {
1386 1363
           'drugs':tableData 
1387 1364
         }
1388
-       console.log("params2222",params)
1389
-    
1365
+   
1390 1366
         postDrugInformation(params).then(response=>{
1391 1367
            if(response.data.state == 1){
1392 1368
              var msg =  response.data.data.msg
1369
+             this.getList()
1370
+             this.getAllManufacturer()
1371
+             this.GetAllConfig()
1393 1372
              this.$message.success("导入成功!")
1373
+
1394 1374
            }else{
1395
-             this.$message.error("导入失败")
1375
+             this.$message.error("导入失败,请下载日志查看")
1396 1376
            }
1397 1377
         })
1398 1378
       },
@@ -1449,11 +1429,14 @@
1449 1429
       getDictionaryDataConfig(module,filed_name){
1450 1430
         return getDictionaryDataConfig(module,filed_name)
1451 1431
       },
1432
+     
1452 1433
     },
1453 1434
     created() {
1435
+     
1454 1436
       this.getList()
1455 1437
       this.getAllManufacturer()
1456 1438
       this.GetAllConfig()
1439
+      
1457 1440
     }
1458 1441
   }
1459 1442
 </script>

+ 29 - 9
src/xt_pages/data/components/editProject.vue Ver fichero

@@ -34,10 +34,10 @@
34 34
                         <el-form-item label="费用类别 : " prop="cost_classify">
35 35
                             <el-select v-model="form.cost_classify" style="width:160px;" placeholder="请选择">
36 36
                                 <el-option
37
-                                v-for="(item,index) in getDictionaryDataConfig('system','cost_classify')"
37
+                                v-for="(item,index) in costClassifyList"
38 38
                                 :key="index"
39 39
                                 :label="item.name"
40
-                                :value="item.id">
40
+                                :value="item.value">
41 41
                                 </el-option>
42 42
                             </el-select>
43 43
                         </el-form-item>
@@ -64,10 +64,10 @@
64 64
                         <el-form-item label="统计分类 : " prop="statistical_classification">
65 65
                             <el-select v-model="form.statistical_classification" style="width:160px;" placeholder="请选择">
66 66
                                 <el-option
67
-                                v-for="(item,index) in getDictionaryDataConfig('system','statistics_category')"
67
+                                v-for="(item,index) in statisticsCategoryList"
68 68
                                 :key="index"
69 69
                                 :label="item.name"
70
-                                :value="item.id">
70
+                                :value="item.value">
71 71
                                 </el-option>
72 72
                             </el-select>
73 73
                         </el-form-item>
@@ -97,10 +97,10 @@
97 97
                         <el-form-item label="试管颜色 : " prop="tube_color">
98 98
                             <el-select v-model="form.tube_color" style="width:160px;" placeholder="请选择">
99 99
                               <el-option
100
-                                v-for="(item,index) in getDictionaryDataConfig('system','tube_color')"
100
+                                v-for="(item,index) in tubeColorList"
101 101
                                 :key="index"
102 102
                                 :label="item.name"
103
-                                :value="item.id">
103
+                                :value="item.value">
104 104
                                 </el-option>
105 105
                             </el-select>
106 106
                         </el-form-item>
@@ -248,6 +248,7 @@
248 248
 import { uParseTime } from '@/utils/tools'
249 249
 import { getDictionaryDataConfig,getDataConfig } from "@/utils/data";
250 250
 import { getProjectDetail,updatedProject,getDePartmentList } from "@/api/project/project"
251
+ import {getInitializtion} from '@/api/stock'
251 252
 export default {
252 253
     data(){
253 254
         return{
@@ -318,7 +319,10 @@ export default {
318 319
            ],
319 320
           limit:100,
320 321
            page:1,
321
-           departMentList:[]
322
+           departMentList:[],
323
+           statisticsCategoryList:[],
324
+           tubeColorList:[],
325
+           costClassifyList:[]
322 326
         }
323 327
     },
324 328
     methods:{
@@ -341,10 +345,12 @@ export default {
341 345
             this.form.intro = "";
342 346
         },
343 347
         show(id) {
344
-          
348
+           this.getlist()
349
+           this.getInitializtion()
345 350
            this.visible = true
346 351
            this.formTitle = '编辑'
347 352
            this.getProjectDetail(id)
353
+          
348 354
         },
349 355
         hide() {
350 356
          this.visible = false
@@ -478,11 +484,25 @@ export default {
478 484
             this.departMentList = department
479 485
             }
480 486
         })
481
-        },
487
+      },
488
+     getInitializtion(){
489
+       getInitializtion().then(response=>{
490
+         if(response.data.state == 1){
491
+           var statisticsCategoryList = response.data.data.statisticsCategoryList
492
+           this.statisticsCategoryList = statisticsCategoryList
493
+           var tubeColorList = response.data.data.tubeColorList
494
+           this.tubeColorList = tubeColorList
495
+           var costClassifyList =  response.data.data.costClassifyList
496
+           this.costClassifyList = costClassifyList
497
+         }
498
+       })
499
+      }
500
+
482 501
     },
483 502
 
484 503
     created(){
485 504
        this.getlist() 
505
+       this.getInitializtion()
486 506
     }
487 507
 }
488 508
 </script>

+ 28 - 79
src/xt_pages/data/components/project.vue Ver fichero

@@ -41,7 +41,7 @@
41 41
         <div style="display:flex; align-items:center;margin-bottom:10px;">
42 42
         <el-button type="primary" size="small" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028" >批量备案</el-button>
43 43
         <el-button type="primary" size="small" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028" @click="GDYBBatchPutOnRecord()">批量备案</el-button>
44
-        <!-- <el-link target="_blank" href="https://kuyi.shengws.com/project_template.xlsx" :underline="false"
44
+        <el-link target="_blank" href="https://kuyi.shengws.com/itemTemplate.xlsx" :underline="false"
45 45
                  style="margin-left:15px">
46 46
           <el-button
47 47
             class="filter-item"
@@ -52,7 +52,7 @@
52 52
         </el-link>
53 53
 
54 54
         <project-excel :on-success='handleSuccessOne'></project-excel>
55
-     
55
+
56 56
         <el-button
57 57
           style="margin-left:10px;"
58 58
           @click="generateLog()"
@@ -60,7 +60,7 @@
60 60
           type="primary"
61 61
           size="small"
62 62
         >下载日志
63
-        </el-button> -->
63
+        </el-button>
64 64
       </div>
65 65
         <el-table :data="tableData" border style="width: 100%" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}"  @selection-change="handleSelectionChange">
66 66
             <el-table-column
@@ -234,7 +234,7 @@ export default {
234 234
            dialogVisible:false,
235 235
            exportLogVisible:false,
236 236
            logs:[]
237
-          
237
+
238 238
         }
239 239
     },
240 240
     methods:{
@@ -375,14 +375,14 @@ export default {
375 375
                page:this.page,
376 376
                is_mark:this.is_mark,
377 377
             }
378
-          
378
+
379 379
           getProjectList(params).then(response=>{
380 380
              if(response.data.state == 1){
381 381
                var projecList = response.data.data.projecList
382
-               console.log('projectlist',projecList)
382
+              
383 383
                this.tableData = projecList
384 384
                var total = response.data.data.total
385
-               console.log("total",total)
385
+            
386 386
                this.total = total
387 387
              }
388 388
           })
@@ -422,7 +422,7 @@ export default {
422 422
       },
423 423
 
424 424
      toReturn(id,isMark){
425
-        console.log("id2222",id)
425
+      
426 426
          var that = this
427 427
          let params = {
428 428
              'id':id,
@@ -430,7 +430,7 @@ export default {
430 430
              'is_mark':isMark,
431 431
              'admin_user_id':this.$store.getters.xt_user.user.id,
432 432
           }
433
-          console.log("params22222222",params)
433
+      
434 434
 
435 435
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
436 436
           if (response.data.state == 0) {
@@ -483,7 +483,7 @@ export default {
483 483
           ids:idss,
484 484
           admin_user_id:this.$store.getters.xt_user.user.id
485 485
         }
486
-       console.log("prams22",params)
486
+      
487 487
         var that = this
488 488
         axios.get('http://127.0.0.1:9532/sz/api/treatment/get',{ params: params }).then(function(response) {
489 489
          if (response.data.state == 0) {
@@ -512,17 +512,17 @@ export default {
512 512
         getDePartmentList(params).then(response=>{
513 513
             if(response.data.state == 1){
514 514
             var department =   response.data.data.departMentList
515
-            console.log("科室列表",department)
515
+           
516 516
             this.departMentList = department
517 517
             }
518 518
         })
519 519
      },
520 520
       handleSuccessOne({ results, header }) {
521
-       
521
+
522 522
         if (header != undefined && header.length > 0) {
523
-            
523
+
524 524
           var isHasProjectName = header.includes('*项目名称')
525
-        
525
+
526 526
           var isHasProjectPrice = header.includes('*零价')
527 527
 
528 528
           var isHasProjectUnit = header.includes('*单位')
@@ -530,9 +530,9 @@ export default {
530 530
           var isHasProjectCostClassify = header.includes('*费用类别')
531 531
 
532 532
           var isHasProjectExecutiveSection = header.includes('*执行科室')
533
-         
533
+
534 534
           var isHasProjectMedicalCoverage = header.includes('*医保等级')
535
-         
535
+
536 536
           if (!(isHasProjectName && isHasProjectPrice && isHasProjectUnit && isHasProjectCostClassify && isHasProjectExecutiveSection && isHasProjectMedicalCoverage )) {
537 537
             this.dialogVisible = true
538 538
             return
@@ -541,9 +541,9 @@ export default {
541 541
           this.dialogVisible = true
542 542
           return
543 543
         }
544
-       
544
+
545 545
        var tableData = []
546
-       for(let i=0;i<results.length;i++){
546
+       for(let i=1;i<results.length;i++){
547 547
          let obj = {"cost_classify_id":0,"medical_insurance_level_id":0,"executive_section_id":0,"tube_color_id":0,"statistical_classification_id":0,"category":0,"specail_project":0,"medical_status":0}
548 548
          for (var key in results[i]) {
549 549
            if (results[i]['*项目名称'] === undefined) {
@@ -682,7 +682,7 @@ export default {
682 682
               }
683 683
           }
684 684
 
685
- 
685
+
686 686
          if (results[i]['总量'] === undefined) {
687 687
                 obj['total'] = ''
688 688
               } else {
@@ -710,8 +710,8 @@ export default {
710 710
             if (results[i]['特检项目'] === undefined) {
711 711
                 obj['specail_project'] = ''
712 712
               } else {
713
-          if (key == 'specail_project') {
714
-               obj['category'] = results[i][key].replace(/\s/g,"")
713
+          if (key == '特检项目') {
714
+               obj['specail_project'] = results[i][key].replace(/\s/g,"")
715 715
               }
716 716
           }
717 717
 
@@ -739,49 +739,9 @@ export default {
739 739
           }
740 740
          }
741 741
          tableData.push(obj)
742
-         console.log("项目列表",tableData)
743
-        
744
-        var costClassify =  this.getDictionaryDataConfig('system','cost_classify')
745
-        console.log("费用类别",costClassify)
746
-        var medicalInsuranceLevel = this.getDictionaryDataConfig('system','medical_insurance_level')
747
-        console.log("医保等级",medicalInsuranceLevel)
748
-        
749
-        var statistical_classification = getDictionaryDataConfig('system','statistics_category')
750
-        console.log("统计分类",statistical_classification)
751
-
752
-        var tube_color = this.getDictionaryDataConfig('system','tube_color')
753
-        console.log("试管颜色",tube_color)
754
-
755
-        for(let i=0;i<tableData.length;i++){ 
756
-          for(let j=0;j<costClassify.length;j++){
757
-          
758
-             if(tableData[i].cost_classify === costClassify[j].name){
759
-                 tableData[i].cost_classify_id = costClassify[j].id
760
-             }
761
-          }  
762
-
763
-          for(let j=0;j<medicalInsuranceLevel.length;j++){
764
-             if(tableData[i].medical_coverage == medicalInsuranceLevel[j].name ){
765
-                 tableData[i].medical_insurance_level_id = medicalInsuranceLevel[j].id
766
-             }
767
-          }
768
-
769 742
          
770
-          
771
-          for(let j=0;j<this.departMentList.length;j++){
772
-             if(tableData[i].executive_section == this.departMentList[j].name){
773
-                tableData[i].executive_section_id = this.departMentList[j].id
774
-             }
775
-          }
776
-
777 743
 
778
-          for(let j=0;j<statistical_classification.length;j++){
779
-             if(tableData[i].statistical_classification == statistical_classification[j].name){
780
-                 tableData[i].statistical_classification_id = statistical_classification[j].id
781
-             }
782
-          }
783
-
784
-       
744
+        for(let i=0;i<tableData.length;i++){
785 745
 
786 746
           if(tableData[i].disease_directory == ""){
787 747
               tableData[i].disease_directory = 0
@@ -805,11 +765,7 @@ export default {
805 765
              tableData[i].is_record = 2
806 766
           }
807 767
 
808
-          for(let j=0;j<tube_color.length;j++){
809
-             if(tableData[i].tube_color == tube_color[j].name){
810
-                tableData[i].tube_color_id = tube_color[j].id
811
-             }
812
-          }
768
+
813 769
 
814 770
           if(tableData[i].category == ""){
815 771
              tableData[i].category = 0
@@ -845,25 +801,18 @@ export default {
845 801
           if(tableData[i].medical_status == "收费"){
846 802
             tableData[i].medical_status = 2
847 803
           }
848
-
849
-        
850 804
         }
851 805
        }
852
-
853
-       for(let i=0;i<tableData.length;i++){
854
-          tableData[i].price = parseInt(tableData[i].price)
855
-       }
856
-       
857 806
        let params = {
858
-          'projects':tableData 
807
+          'projects':tableData
859 808
         }
860
-       console.log("params2222",params)
861
-       
809
+       console.log("params222",params)
810
+
862 811
         postProjectInformation(params).then(response=>{
863 812
            if(response.data.state == 1){
864 813
              var msg =  response.data.data.msg
865 814
              this.$message.success("导入成功!")
866
-             
815
+             this.getlist()
867 816
            }else{
868 817
              this.$message.error("导入失败")
869 818
            }
@@ -892,7 +841,7 @@ export default {
892 841
 
893 842
       },
894 843
       getContent(log) {
895
-         console.log("日志",log)
844
+       
896 845
         return '您导入的文档共' + log.total_num + '条患者数据' + ',' + '已成功导入' + log.success_num + '条,导入失败' + log.fail_num + '条,'
897 846
       },
898 847
       timestampToTime(timestamp) {

+ 23 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_thirty.vue Ver fichero

@@ -122,10 +122,30 @@
122 122
                         <tbody>
123 123
                             <tr>
124 124
                                 <td width="70">血管通路:</td>
125
-                                <td width="370">
125
+                                <td width="560">
126 126
                                     <div>
127
-                                        <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '内瘘')" showValue="内瘘"></label-box>
127
+                                        <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '绳梯')" showValue="绳梯"></label-box>
128 128
                                         &nbsp;
129
+                                        A:( 
130
+                                          <span style="width:50px;display:inline-block;text-align:center;">
131
+                                            &nbsp;<span v-if="record.assessment_before_dislysis.puncture_way.indexOf('A1')>-1">A1</span>
132
+                                            <span v-if="record.assessment_before_dislysis.puncture_way.indexOf('A2')>-1">A2</span>
133
+                                            <span v-if="record.assessment_before_dislysis.puncture_way.indexOf('A3')>-1">A3</span>
134
+                                            <span v-if="record.assessment_before_dislysis.puncture_way.indexOf('A4')>-1">A4</span>
135
+                                            <span v-if="record.assessment_before_dislysis.puncture_way.indexOf('A5')>-1">A5</span>
136
+                                            <span v-if="record.assessment_before_dislysis.puncture_way.indexOf('A6')>-1">A6</span>
137
+                                          </span>
138
+                                        )&nbsp;
139
+                                        V:( 
140
+                                          <span style="width:50px;display:inline-block;text-align:center;">
141
+                                            <span v-if="record.assessment_before_dislysis.puncture_way.indexOf('V1')>-1">V1</span>
142
+                                            <span v-if="record.assessment_before_dislysis.puncture_way.indexOf('V2')>-1">V2</span>
143
+                                            <span v-if="record.assessment_before_dislysis.puncture_way.indexOf('V3')>-1">V3</span>
144
+                                            <span v-if="record.assessment_before_dislysis.puncture_way.indexOf('V4')>-1">V4</span>
145
+                                            <span v-if="record.assessment_before_dislysis.puncture_way.indexOf('V5')>-1">V5</span>
146
+                                            <span v-if="record.assessment_before_dislysis.puncture_way.indexOf('V6')>-1">V6</span>
147
+                                          </span>
148
+                                        )
129 149
                                         <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '长期管')" showValue="长期管"></label-box>
130 150
                                         &nbsp;
131 151
                                         <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '临时管')" showValue="临时管"></label-box>
@@ -337,7 +357,7 @@
337 357
                                     <tr>
338 358
                                     <td wdith='70'>下机情况:</td>
339 359
                                     <td wdith='30'>凝血:</td>
340
-                                    <td width="240">
360
+                                    <td width="260">
341 361
                                         <label-box :isChecked="record.assessment_after_dislysis.cruor?(record.assessment_after_dislysis.cruor.indexOf('无凝血') > -1 ? true : false):false" showValue="无"></label-box>&nbsp;
342 362
                                         <label-box :isChecked="record.assessment_after_dislysis.cruor?(record.assessment_after_dislysis.cruor.indexOf('有凝血') > -1 ? true : false):false" showValue="有"></label-box>&nbsp;
343 363
                                         <label-box :isChecked="record.assessment_after_dislysis.cruor?(record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅰ度') > -1 ? true : false):false" showValue="Ⅰ"></label-box>&nbsp;

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

@@ -106,8 +106,8 @@
106 106
           <span class="content">{{
107 107
             target_ultrafiltration != "0" ? target_ultrafiltration : ""
108 108
           }}</span>
109
-          <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.org_id != 9555" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
110
-          <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.org_id == 9555" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
109
+          <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 != 36 && this.$store.getters.xt_user.template_info.org_id != 9555" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
110
+          <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 == 36 || this.$store.getters.xt_user.template_info.org_id == 9555" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
111 111
         </li>
112 112
         <li v-if="isShow('葡萄糖')">
113 113
           <label>葡萄糖 : </label>

+ 6 - 2
src/xt_pages/dialysis/details/assessmentAfter.vue Ver fichero

@@ -17,8 +17,8 @@
17 17
           <span class="content" v-if="actual_ultrafiltration != '0'">{{
18 18
             actual_ultrafiltration
19 19
           }}</span>
20
-          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17 || 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.org_id == 9555) " >ml</span>
21
-          <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 17 && 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.org_id == 9555 " >L</span>
20
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17 || 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 == 36 || this.$store.getters.xt_user.template_info.org_id == 9555) " >ml</span>
21
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 17 && 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 != 36 &&  this.$store.getters.xt_user.template_info.org_id == 9555 " >L</span>
22 22
         </li>
23 23
         <li v-if="isShow('导管')">
24 24
           <label>导管 : </label>
@@ -296,6 +296,10 @@
296 296
           <span class="content" >{{ this.record.stroke_volume ? this.record.stroke_volume : ""  }}</span>
297 297
           <span class="unit">{{ this.record.stroke_volume ? "ml" : "" }}</span>
298 298
         </li>
299
+        <li v-if="isShow('KT/V')">
300
+          <label>KT/V: </label>
301
+          <span class="content" >{{ this.record.ktv ? this.record.ktv : ""  }}</span>
302
+        </li>
299 303
       </ul>
300 304
     </div>
301 305
     <div class="note">

+ 10 - 3
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Ver fichero

@@ -28,7 +28,7 @@
28 28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29 29
             <el-form-item
30 30
               label="实际超滤量(ml): "
31
-              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.$store.getters.xt_user.template_info.org_id == 9555 "  >
31
+              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.$store.getters.xt_user.template_info.org_id == 9555 "  >
32 32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33 33
             </el-form-item>
34 34
             <el-form-item label="实际超滤量(L): " v-else>
@@ -595,8 +595,13 @@
595 595
             <el-input v-model="form.other_complication"></el-input>
596 596
           </el-form-item>
597 597
         </el-col>
598
-
598
+        <el-col :span="24" v-if="isShow('KT/V')">
599
+            <el-form-item label="KT/V:">
600
+              <el-input type="textarea" :rows="4" v-model="form.ktv"></el-input>
601
+            </el-form-item>
602
+        </el-col>
599 603
       </el-form>
604
+         
600 605
 
601 606
       <span slot="footer" class="dialog-footer">
602 607
         <el-button @click="hide">取 消</el-button>
@@ -748,7 +753,8 @@ export default {
748 753
         supine_diastolic_blood_pressure:'',
749 754
         diastolic_pressure:'',
750 755
         additional_weight:'',
751
-        other_complication:''
756
+        other_complication:'',
757
+        ktv:""
752 758
       }
753 759
     }
754 760
   },
@@ -952,6 +958,7 @@ export default {
952 958
       data["diastolic_pressure"] = this.form.diastolic_pressure
953 959
       data["additional_weight"] = this.form.additional_weight ? parseFloat(this.form.additional_weight) : 0
954 960
       data["other_complication"] = this.form.other_complication
961
+      data["ktv"] = this.form.ktv
955 962
       postAssessmentAfterDislysis(ParamsQuery, data)
956 963
         .then(response => {
957 964
           this.loading = false

+ 14 - 13
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Ver fichero

@@ -67,7 +67,7 @@
67 67
 
68 68
 
69 69
            <el-col :span="8"
70
-                  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)">
70
+                  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 == 36)">
71 71
             <el-form-item label="预冲量(ml):">
72 72
               <el-input
73 73
                 type="number"
@@ -77,7 +77,7 @@
77 77
           </el-col>
78 78
 
79 79
           <el-col :span="8"
80
-                  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">
80
+                  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 !=36">
81 81
             <el-form-item label="预冲量(L):">
82 82
               <el-input
83 83
                 type="number"
@@ -87,7 +87,7 @@
87 87
           </el-col>
88 88
 
89 89
           <el-col :span="8"
90
-                  v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.org_id == 9555 )">
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 == 36 || this.$store.getters.xt_user.template_info.org_id == 9555 )">
91 91
             <el-form-item label="目标超滤量(ml):">
92 92
               <el-input
93 93
                 type="number"
@@ -97,7 +97,7 @@
97 97
           </el-col>
98 98
 
99 99
           <el-col :span="8"
100
-                  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.org_id != 9555 ">
100
+                  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 != 36 && this.$store.getters.xt_user.template_info.org_id != 9555 ">
101 101
             <el-form-item label="目标超滤量(L):">
102 102
               <el-input
103 103
                 type="number"
@@ -1617,13 +1617,16 @@
1617 1617
         if (minites < 10) {
1618 1618
           minites = '0' + minites
1619 1619
         }
1620
-
1621
-        if(schedual.schedule_type == 1){
1622
-          this.start_time = year +"-"+month +"-"+day +" " + "07:00"
1623
-        }else if(schedual.schedule_type == 2){
1624
-          this.start_time = year +"-"+month +"-"+day +" " + "12:00"
1625
-        }else if(schedual.schedule_type ==3){
1626
-          this.start_time = year +"-"+month +"-"+day +" " + "18:00"
1620
+        if(this.$store.getters.xt_user.org.id == 10016){
1621
+          this.start_time = year +"-"+month +"-"+day +" " + hours + ':' + minites
1622
+        }else{
1623
+          if(schedual.schedule_type == 1){
1624
+            this.start_time = year +"-"+month +"-"+day +" " + "07:00"
1625
+          }else if(schedual.schedule_type == 2){
1626
+            this.start_time = year +"-"+month +"-"+day +" " + "12:00"
1627
+          }else if(schedual.schedule_type ==3){
1628
+            this.start_time = year +"-"+month +"-"+day +" " + "18:00"
1629
+          }
1627 1630
         }
1628 1631
 
1629 1632
         if (pre.anticoagulant == 3) {
@@ -1631,8 +1634,6 @@
1631 1634
         }
1632 1635
         // 入口
1633 1636
         var pre = pre
1634
-        console.log("香锅2222222",this.dialysisPrescription)
1635
-        console.log("列表2223323323223",this.schedual)
1636 1637
         this.dialysisPrescription.mode_id = this.$route.query.mode_id
1637 1638
         if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12 || this.schedual.mode_id == 2 || this.schedual.mode_id == 5 || this.schedual.mode_id == 12) {
1638 1639
           this.zhiShow = true

+ 4 - 2
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Ver fichero

@@ -164,6 +164,7 @@
164 164
                   template_id == 32 ||
165 165
                   template_id == 34 ||
166 166
                   template_id == 35 ||
167
+                  template_id == 36 ||
167 168
                   org_id == 9555)
168 169
             "
169 170
           >
@@ -204,6 +205,7 @@
204 205
                 template_id != 32 &&
205 206
                 template_id != 34 &&
206 207
                 template_id != 35 &&
208
+                template_id != 36 &&
207 209
                 org_id!=9555
208 210
             "
209 211
           >
@@ -556,7 +558,7 @@
556 558
 
557 559
           <el-col
558 560
             :span="8"
559
-            v-if=" isShow('超滤量') && (template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || org_id == 9555) " >
561
+            v-if=" isShow('超滤量') && (template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || org_id == 9555) " >
560 562
             <el-form-item label="超滤量(ml):">
561 563
               <el-input v-model="form.ultrafiltration_volume"></el-input>
562 564
             </el-form-item>
@@ -564,7 +566,7 @@
564 566
 
565 567
           <el-col
566 568
             :span="8"
567
-            v-if=" isShow('超滤量') && template_id != 6 && template_id !=9 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id!=27 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && org_id !=9555" >
569
+            v-if=" isShow('超滤量') && template_id != 6 && template_id !=9 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id!=27 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && org_id !=9555" >
568 570
             <el-form-item label="超滤量(L):">
569 571
               <el-input v-model="form.ultrafiltration_volume"></el-input>
570 572
             </el-form-item>

+ 2 - 2
src/xt_pages/dialysis/details/dialysisMonitoring.vue Ver fichero

@@ -14,8 +14,8 @@
14 14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15 15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16 16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
17
-          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || this.$store.getters.xt_user.template_info.org_id == 9555)" width="76px" > 超滤量(ml)</th>
18
-          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && this.$store.getters.xt_user.template_info.org_id != 9555"  width="76px"> 超滤量(L) </th>
17
+          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || this.$store.getters.xt_user.template_info.org_id == 9555)" width="76px" > 超滤量(ml)</th>
18
+          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && this.$store.getters.xt_user.template_info.org_id != 9555"  width="76px"> 超滤量(L) </th>
19 19
           <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35)" width="50px"> 超滤率 <br />(ml/h) </th>
20 20
           <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35" width="50px"> 超滤率 <br />(L/h) </th>
21 21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>

+ 24 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue Ver fichero

@@ -523,6 +523,16 @@
523 523
           >
524 524
         </div>
525 525
       </template>
526
+      <template v-if="org_template_info.template_id == 37">
527
+        <el-button
528
+          :loading="loading"
529
+          size="small"
530
+          icon="el-icon-printer"
531
+          @click="printThisPage"
532
+          type="primary"
533
+          >打印</el-button
534
+        >
535
+      </template>
526 536
     </div>
527 537
     <div class="app-container" style="min-height:0;">
528 538
       <!--<div class="order-print-btn"-->
@@ -783,6 +793,11 @@
783 793
             v-if="org_template_info.template_id == 36"
784 794
           >
785 795
           </DialysisPrintOrderThirtySix>
796
+          <DialysisPrintOrderThirtySeven
797
+            v-bind:childResponse="childResponse"
798
+            v-if="org_template_info.template_id == 37"
799
+          >
800
+          </DialysisPrintOrderThirtySeven>
786 801
         </div>
787 802
       </el-container>
788 803
     </div>
@@ -838,9 +853,11 @@ import DialysisPrintOrderThirtyThree from "./template/DialysisPrintOrderThirtyTh
838 853
 import DialysisPrintOrderThirtyFour from "./template/DialysisPrintOrderThirtyFour";
839 854
 import DialysisPrintOrderThirtyFive from "./template/DialysisPrintOrderThirtyFive";
840 855
 import DialysisPrintOrderThirtySix from "./template/DialysisPrintOrderThirtySix";
856
+import DialysisPrintOrderThirtySeven from "./template/DialysisPrintOrderThirtySeven";
841 857
 export default {
842 858
   name: "dialysisPrintOrder",
843 859
   components: {
860
+    DialysisPrintOrderThirtySeven,
844 861
     DialysisPrintOrderThirtySix,
845 862
     DialysisPrintOrderThirtyFive,
846 863
     DialysisPrintOrderThirtyFour,
@@ -1291,6 +1308,13 @@ export default {
1291 1308
           style: style,
1292 1309
           scanStyles: false
1293 1310
         });
1311
+      } else if (this.org_template_info.template_id == 37) {
1312
+        printJS({
1313
+          printable: "dialysis-print-box",
1314
+          type: "html",
1315
+          style: style,
1316
+          scanStyles: false
1317
+        });
1294 1318
       }
1295 1319
     },
1296 1320
     printThisOnePage() {

+ 26 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderThirty.vue Ver fichero

@@ -100,10 +100,30 @@
100 100
           <tbody>
101 101
             <tr>
102 102
                 <td width="70">血管通路:</td>
103
-                <td width="370">
103
+                <td width="560">
104 104
                     <div>
105
-                        <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘') > -1 ? true : false" showValue="内瘘"></label-box>
105
+                        <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('绳梯') > -1 ? true : false" showValue="绳梯"></label-box>
106 106
                         &nbsp;
107
+                        A:( 
108
+                          <span style="width:50px;display:inline-block;text-align:center;">
109
+                            &nbsp;<span v-if="predialysis.puncture_way.indexOf('A1')>-1">A1</span>
110
+                            <span v-if="predialysis.puncture_way.indexOf('A2')>-1">A2</span>
111
+                            <span v-if="predialysis.puncture_way.indexOf('A3')>-1">A3</span>
112
+                            <span v-if="predialysis.puncture_way.indexOf('A4')>-1">A4</span>
113
+                            <span v-if="predialysis.puncture_way.indexOf('A5')>-1">A5</span>
114
+                            <span v-if="predialysis.puncture_way.indexOf('A6')>-1">A6</span>
115
+                          </span>
116
+                        )&nbsp;
117
+                        V:( 
118
+                          <span style="width:50px;display:inline-block;text-align:center;">
119
+                            <span v-if="predialysis.puncture_way.indexOf('V1')>-1">V1</span>
120
+                            <span v-if="predialysis.puncture_way.indexOf('V2')>-1">V2</span>
121
+                            <span v-if="predialysis.puncture_way.indexOf('V3')>-1">V3</span>
122
+                            <span v-if="predialysis.puncture_way.indexOf('V4')>-1">V4</span>
123
+                            <span v-if="predialysis.puncture_way.indexOf('V5')>-1">V5</span>
124
+                            <span v-if="predialysis.puncture_way.indexOf('V6')>-1">V6</span>
125
+                          </span>
126
+                         )
107 127
                         <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('长期管') > -1 ? true : false" showValue="长期管"></label-box>
108 128
                         &nbsp;
109 129
                         <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('临时管') > -1 ? true : false" showValue="临时管"></label-box>
@@ -112,9 +132,11 @@
112 132
                         &nbsp;
113 133
                        <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('人造血管') > -1 ? true : false" showValue="人造血管"></label-box>
114 134
                         &nbsp;
135
+                       <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('扣眼') > -1 ? true : false" showValue="扣眼"></label-box>
136
+                        &nbsp;
115 137
                     </div>
116 138
                 </td>
117
-                <td width='20'></td>
139
+                <td width='10'></td>
118 140
                 <td width="70">封管用药:</td>
119 141
                 <td>
120 142
                     <div class="under-line" style="text-align:left;">&nbsp;{{prescription.remark?prescription.remark:''}}</div>
@@ -315,7 +337,7 @@
315 337
                     <tr>
316 338
                       <td wdith='70'>下机情况:</td>
317 339
                       <td wdith='30'>凝血:</td>
318
-                      <td width="240">
340
+                      <td width="250">
319 341
                           <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('无凝血') > -1 ? true : false):false" showValue="无"></label-box>&nbsp;
320 342
                           <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('有凝血') > -1 ? true : false):false" showValue="有"></label-box>&nbsp;
321 343
                           <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('透析器-Ⅰ度') > -1 ? true : false):false" showValue="Ⅰ"></label-box>&nbsp;

+ 156 - 115
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue Ver fichero

@@ -139,25 +139,15 @@
139 139
           (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : false" showValue="左"></label-box>
140 140
               <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="右"></label-box>)
141 141
           &nbsp;
142
-          <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右') > -1 ? true : false" showValue="中心静脉置管"></label-box>
143
-          (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左') > -1 ? true : false" showValue="左"></label-box>
144
-              <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右') > -1 ? true : false" showValue="右"></label-box>)部位
142
+          <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-颈内') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-锁骨下') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-股') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-颈内') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-锁骨下') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-股') > -1 ? true : false" showValue="中心静脉置管"></label-box>
143
+          (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-颈内') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-锁骨下') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-股') > -1 ? true : false" showValue="左"></label-box>
144
+              <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-颈内') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-锁骨下') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-股') > -1 ? true : false" showValue="右"></label-box>)部位
145 145
           &nbsp;
146
-          <!-- <label-box :isChecked="predialysis.blood_access_part_id > 0 ? (getPartName(predialysis.blood_access_part_id).indexOf('颈内') > -1 ? true : false) : false" showValue="颈内"></label-box>
146
+          <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-颈内')>-1?true:predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-颈内')>-1?true:false" showValue="颈内"></label-box>
147 147
           &nbsp;
148
-          <label-box :isChecked="predialysis.blood_access_part_id > 0 ? (getPartName(predialysis.blood_access_part_id).indexOf('锁骨下') > -1 ? true : false) : false" showValue="锁骨下"></label-box>
148
+          <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-锁骨下')>-1?true:predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-锁骨下')>-1?true:false" showValue="锁骨下"></label-box>
149 149
           &nbsp;
150
-          <label-box :isChecked="predialysis.blood_access_part_id > 0 ? (getPartName(predialysis.blood_access_part_id).indexOf('股') > -1 ? true : false) : false" showValue="股"></label-box>
151
-          &nbsp;
152
-          <label-box :isChecked="predialysis.blood_access_part_id > 0 ? (getPartName(predialysis.blood_access_part_id).indexOf('其他') > -1? true : false) :false" showValue="其他"></label-box>
153
-          &nbsp; -->
154
-          <label-box :isChecked="predialysis.blood_access_part_id.indexOf('颈内')>-1?true:false" showValue="颈内"></label-box>
155
-          &nbsp;
156
-          <label-box :isChecked="predialysis.blood_access_part_id.indexOf('锁骨下')>-1?true:false" showValue="锁骨下"></label-box>
157
-          &nbsp;
158
-          <label-box :isChecked="predialysis.blood_access_part_id.indexOf('股')>-1?true:false" showValue="股"></label-box>
159
-          &nbsp;
160
-          <label-box :isChecked="predialysis.blood_access_part_id.indexOf('其他')>-1?true:false" showValue="其他"></label-box>
150
+          <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-股')>-1?true:predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-股')>-1?true:false" showValue="股"></label-box>
161 151
           &nbsp;
162 152
         </div>
163 153
       </div>
@@ -311,7 +301,9 @@
311 301
         </div>
312 302
         出血
313 303
         <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
314
-          {{ predialysis.is_hemorrhage == 1 && predialysis.hemorrhage ? predialysis.hemorrhage : "" }}
304
+          <span v-if="predialysis.is_hemorrhage == 1">{{ predialysis.is_hemorrhage == 1 && predialysis.hemorrhage ? predialysis.hemorrhage : "" }}</span>
305
+          <span v-if="predialysis.is_hemorrhage == 2">无</span>
306
+          <span v-if="predialysis.is_hemorrhage != 2 && predialysis.is_hemorrhage != 1">/</span>
315 307
         </div>
316 308
         跌倒风险预防措施
317 309
         <div class="inline_block under_line" style="width:100px;text-align: center;">
@@ -446,110 +438,159 @@
446 438
       <table class="print-table" border="1">
447 439
         <tbody>
448 440
           <tr style="height:30px;line-height:30px">
449
-            <td width="70" rowspan="3" style="padding-left:5px;border:none;border-right:1px solid #000;">
441
+            <td width="30" rowspan="4" style="padding-left:5px;border:none;border-right:1px solid #000;">
450 442
               透后小结
451 443
             </td>
452
-
453
-            <td width="25" style="border:none;padding-left:5px;">
454
-              体温:
455
-            </td>
456
-            <td width="70" style="text-align:left;border:none;">
457
-              <div>
458
-                <span class="under_line" style="width:50px;display:inline-block;">
459
-                  {{ afterdialysis.temperature ? afterdialysis.temperature : "" }}
460
-                </span>℃
461
-              </div>
462
-            </td>
463
-            <!-- <td width="10" style="border:none;"></td> -->
464
-
465
-            <td width="20" style="border:none;padding-left:5px;">血压:</td>
466
-            <td width="60" style="text-align:left;border:none;line-height: 30px;">
467
-              <div>
468
-                <span class="under_line" style="width:100px;display:inline-block">
469
-                  {{ afterdialysis.systolic_blood_pressure ? afterdialysis.systolic_blood_pressure : "" }}/
470
-                  {{ afterdialysis.diastolic_blood_pressure ? afterdialysis.diastolic_blood_pressure : "" }}
471
-                </span>mmHg
472
-              </div>
473
-            </td>
474
-            <td width="10" style="border:none;padding-left:5px">脉搏:</td>
475
-            <td width="70" style="text-align:left;border:none;">
476
-              <div>
477
-                <span class="under_line" style="width:50px;display:inline-block">
478
-                  {{ afterdialysis.pulse_frequency ? afterdialysis.pulse_frequency : "" }}
479
-                </span>次/分
480
-              </div>
481
-            </td>
482
-            <td width="50" style="border:none;padding-left:5px">透后症状:</td>
483
-            <td width="100" style="text-align:left;border:none;">
484
-              <div>
485
-                <span class="under_line" style="width:100px;display:inline-block">
486
-                  {{ afterdialysis.symptom_after_dialysis ? afterdialysis.symptom_after_dialysis : "" }}
487
-                </span>
488
-              </div>
444
+            <td colspan="8">
445
+              <table class="table-box">
446
+                <tbody>
447
+                  <tr>
448
+                    <td width="50" style="border:none;padding-left:5px;">
449
+                      体温:
450
+                    </td>
451
+                    <td width="70" style="text-align:left;border:none;">
452
+                      <div>
453
+                        <span class="under_line" style="width:50px;display:inline-block;">
454
+                          {{ afterdialysis.temperature ? afterdialysis.temperature : "" }}
455
+                        </span>℃
456
+                      </div>
457
+                    </td>
458
+                    <!-- <td width="10" style="border:none;"></td> -->
459
+
460
+                    <td width="50" style="border:none;padding-left:5px;">血压:</td>
461
+                    <td width="120" style="text-align:left;border:none;line-height: 30px;">
462
+                      <div>
463
+                        <span class="under_line" style="width:100px;display:inline-block">
464
+                          {{ afterdialysis.systolic_blood_pressure ? afterdialysis.systolic_blood_pressure : "" }}/
465
+                          {{ afterdialysis.diastolic_blood_pressure ? afterdialysis.diastolic_blood_pressure : "" }}
466
+                        </span>mmHg
467
+                      </div>
468
+                    </td>
469
+                    <td width="50" style="border:none;padding-left:5px">脉搏:</td>
470
+                    <td width="70" style="text-align:left;border:none;">
471
+                      <div>
472
+                        <span class="under_line" style="width:50px;display:inline-block">
473
+                          {{ afterdialysis.pulse_frequency ? afterdialysis.pulse_frequency : "" }}
474
+                        </span>次/分
475
+                      </div>
476
+                    </td>
477
+                    <td width="70" style="border:none;padding-left:5px">透后症状:</td>
478
+                    <td width="100" style="text-align:left;border:none;">
479
+                      <div>
480
+                        <span class="under_line" style="width:100px;display:inline-block">
481
+                          {{ afterdialysis.symptom_after_dialysis ? afterdialysis.symptom_after_dialysis : "" }}
482
+                        </span>
483
+                      </div>
484
+                    </td>
485
+                  </tr>
486
+                </tbody>
487
+              </table>
488
+              <table class="table-box">
489
+                <tbody>
490
+                  <tr style="height:30px;line-height:30px;">
491
+                    <td width="80" style="border:none;padding-left:5px">实际置换量:</td>
492
+                    <td width="60" style="text-align:left;border:none;">
493
+                      <div>
494
+                        <span class="under_line" style="width:50px;display:inline-block">
495
+                          {{ afterdialysis.actual_displacement ? afterdialysis.actual_displacement : "" }}
496
+                        </span>L
497
+                      </div>
498
+                    </td>
499
+                    
500
+                    
501
+                    <!-- <td width="50" style="text-align:left;border:none;"></td> -->
502
+                    <!-- <td width="110" style="text-align:left;border:none;"></td> -->
503
+                    <td width="120" style="border:none;padding-left:5px">透析期间进食:</td>
504
+                    <td width="120" style="text-align:left;border:none;">
505
+                      <div>
506
+                        <span class="under_line" style="width:120px;display:inline-block">
507
+                          <span v-if='afterdialysis.is_eat == 1'>是</span>
508
+                          <span v-if='afterdialysis.is_eat == 2'>否</span>
509
+                        </span>
510
+                      </div>
511
+                    </td>
512
+                    <td width='20'></td>
513
+                    <td width="70" style="border:none;padding-left:5px">透析进食:</td>
514
+                    <td width="70" style="text-align:left;border:none;">
515
+                      <div>
516
+                        <span class="under_line" style="width:50px;display:inline-block">
517
+                          {{ afterdialysis.is_eat == 1 && afterdialysis.dialysis_during ? afterdialysis.dialysis_during : '' }}
518
+                        </span>g
519
+                      </div>
520
+                    </td>
521
+                    <td></td>
522
+                    <!-- <td width="10" style="text-align:left;border:none;"></td>
523
+                    <td width="110" style="text-align:left;border:none;"></td> -->
524
+                  </tr>
525
+                </tbody>
526
+              </table>
527
+              <table class="table-box">
528
+                <tbody>
529
+                  <tr>
530
+                    <td width="90" style="border:none;padding-left:5px">透析器凝血:</td>
531
+                    <td width="220" style="text-align:left;border:none;">
532
+                      <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器0') > -1 ? true : false) :false" showValue="0"></label-box>
533
+                      <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器+') > -1 ? true : false) :false" showValue="+"></label-box>
534
+                      <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器++') > -1 ? true : false) :false" showValue="+ +"></label-box>
535
+                      <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器+++') > -1 ? true : false) :false" showValue="+ + +"></label-box>
536
+                    </td>
537
+                    <td width="90" style="border:none;padding-left:5px">静脉管道:</td>
538
+                    <td width="220" style="text-align:left;border:none;">
539
+                      <label-box :isChecked="afterdialysis.intravenous_tube == 1 ? true : false" showValue="无"></label-box>&nbsp;
540
+                      <label-box :isChecked="afterdialysis.intravenous_tube == 2 ? true : false" showValue="+"></label-box>&nbsp;
541
+                      <label-box :isChecked="afterdialysis.intravenous_tube == 3 ? true : false" showValue="+ +"></label-box>&nbsp;
542
+                      <label-box :isChecked="afterdialysis.intravenous_tube == 4 ? true : false" showValue="+ + +"></label-box>&nbsp;
543
+                    </td>
544
+                    <td width="90" style="border:none;padding-left:5px">动脉管道:</td>
545
+                    <td width="220" style="text-align:left;border:none;">
546
+                      <label-box :isChecked="afterdialysis.arterial_tube == 1 ? true : false" showValue="无"></label-box>&nbsp;
547
+                      <label-box :isChecked="afterdialysis.arterial_tube == 2 ? true : false" showValue="+"></label-box>&nbsp;
548
+                      <label-box :isChecked="afterdialysis.arterial_tube == 3 ? true : false" showValue="+ +"></label-box>&nbsp;
549
+                      <label-box :isChecked="afterdialysis.arterial_tube == 4 ? true : false" showValue="+ + +"></label-box>&nbsp;
550
+                    </td>
551
+                    <td></td>
552
+                    <!-- <td width="10" style="text-align:left;border:none;"></td>
553
+                    <td width="110" style="text-align:left;border:none;"></td> -->
554
+                  </tr>
555
+                </tbody>
556
+              </table>
557
+              <table class="table-box">
558
+                <tbody>
559
+                  <tr style="height:30px;line-height:30px;">
560
+                    <td width="50" style="border:none;padding-left:5px;">内瘘:</td>
561
+                    <td width="150" colspan="3" style="text-align:left;border:none;">
562
+                      <div>
563
+                        <span class="under_line" style="width:150px;display:inline-block;">
564
+                          {{ afterdialysis.internal_fistula ? afterdialysis.internal_fistula : "" }}
565
+                        </span>
566
+                      </div>
567
+                    </td>
568
+                    <td width="70" style="border:none;padding-left:5px">下机护士:</td>
569
+                    <td width="100" style="text-align:left;border:none;">
570
+                      <div>
571
+                        <span class="under_line" style="width:100px;display:inline-block">
572
+                          <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) == ''">
573
+                            {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) }}</span>
574
+                          <img class="es-img" style="height:30px" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse)" alt="" srcset="" v-else />
575
+                        </span>
576
+                      </div>
577
+                    </td>
578
+                    <td></td>
579
+                    <!-- <td width="10" style="text-align:left;border:none;"></td>
580
+                    <td width="110" style="text-align:left;border:none;"></td> -->
581
+                    <!-- <td width="110" style="text-align:left;border:none;"></td> -->
582
+                    <!-- <td width="110" style="text-align:left;border:none;"></td> -->
583
+                  </tr>
584
+                </tbody>
585
+              </table>
489 586
             </td>
490
-          </tr>
491 587
             
492
-          <tr style="height:30px;line-height:30px;">
493
-            <td width="90" style="border:none;padding-left:5px">实际置换量:</td>
494
-            <td width="30" style="text-align:left;border:none;">
495
-              <div>
496
-                <span class="under_line" style="width:50px;display:inline-block">
497
-                  {{ afterdialysis.actual_displacement ? afterdialysis.actual_displacement : "" }}
498
-                </span>L
499
-              </div>
500
-            </td>
501 588
             
502
-            <td width="90" style="border:none;padding-left:5px">透析器凝血:</td>
503
-            <td width="200" style="text-align:left;border:none;">
504
-              <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器-0度') > -1 ? true : false) :false" showValue="0"></label-box>
505
-              <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器-Ⅰ度') > -1 ? true : false) :false" showValue="+"></label-box>
506
-              <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器-Ⅱ度') > -1 ? true : false) :false" showValue="+ +"></label-box>
507
-              <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器-Ⅲ度') > -1 ? true : false) :false" showValue="+ + +"></label-box>
508
-            </td>
509
-            <!-- <td width="50" style="text-align:left;border:none;"></td> -->
510
-            <!-- <td width="110" style="text-align:left;border:none;"></td> -->
511
-            <td width="100" style="border:none;padding-left:5px">透析期间进食:</td>
512
-            <td width="50" style="text-align:left;border:none;">
513
-              <div>
514
-                <span class="under_line" style="width:50px;display:inline-block">
515
-                  <span v-if='afterdialysis.is_eat == 1'>是</span>
516
-                  <span v-if='afterdialysis.is_eat == 2'>否</span>
517
-                </span>
518
-              </div>
519
-            </td>
520
-            <td width="70" style="border:none;padding-left:5px">透析进食:</td>
521
-            <td width="50" style="text-align:left;border:none;">
522
-              <div>
523
-                <span class="under_line" style="width:50px;display:inline-block">
524
-                  {{ afterdialysis.is_eat == 1 && afterdialysis.dialysis_during ? afterdialysis.dialysis_during : '' }}
525
-                </span>g
526
-              </div>
527
-            </td>
528
-          </tr>
529
-          <tr style="height:30px;line-height:30px;">
530
-            <td width="20" style="border:none;padding-left:5px;">内瘘:</td>
531
-            <td width="150" colspan="3" style="text-align:left;border:none;">
532
-              <div>
533
-                <span class="under_line" style="width:150px;display:inline-block;">
534
-                  {{ afterdialysis.internal_fistula ? afterdialysis.internal_fistula : "" }}
535
-                </span>
536
-              </div>
537
-            </td>
538
-            <td width="50" style="border:none;padding-left:5px">下机护士:</td>
539
-            <td width="100" style="text-align:left;border:none;">
540
-              <div>
541
-                <span class="under_line" style="width:100px;display:inline-block">
542
-                  <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) == ''">
543
-                    {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) }}</span>
544
-                  <img class="es-img" style="height:30px" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse)" alt="" srcset="" v-else />
545
-                </span>
546
-              </div>
547
-            </td>
548
-            <td width="10" style="text-align:left;border:none;"></td>
549
-            <td width="110" style="text-align:left;border:none;"></td>
550
-            <!-- <td width="110" style="text-align:left;border:none;"></td> -->
551
-            <!-- <td width="110" style="text-align:left;border:none;"></td> -->
552 589
           </tr>
590
+            
591
+          
592
+          
593
+          
553 594
         </tbody>
554 595
       </table>
555 596
 

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 1599 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderThirtySeven.vue


+ 42 - 27
src/xt_pages/dialysis/template/DialysisPrintOrderThirtySix.vue Ver fichero

@@ -2,7 +2,7 @@
2 2
   <div id="dialysis-print-box-1">
3 3
     <div id="dialysis-print-box-1-1" class="dialysis-print-order" style="page-break-after: always;">
4 4
       <div class="order-yy-name" style="font-size:24px;">{{ orgname }}</div>
5
-      <div class="order-title" style="font-size:18px;">首次血液净化治疗记录单</div>
5
+      <div class="order-title" style="font-size:18px;">血液净化治疗记录单</div>
6 6
       <table class="table-box" style="margin-top: 10px;">
7 7
         <tbody>
8 8
           <tr>
@@ -377,7 +377,7 @@
377 377
                         <span v-if="prescription.anticoagulant == 7">{{ prescription.anticoagulant_zongliang }}</span>
378 378
                         </div>
379 379
                     </td>
380
-                    <td width='10'>ml</td>
380
+                    <td width='10'>IU</td>
381 381
 
382 382
                     <td width="80">
383 383
                       <label-box :isChecked="prescription.anticoagulant == 1 ? true : false" showValue="无肝素"></label-box>
@@ -386,7 +386,7 @@
386 386
                     <td width='90'>预设冲管NS</td>
387 387
                     <td width='50'>
388 388
                         <div class="under-line">
389
-                            &nbsp;
389
+                            &nbsp;{{ prescription.pre_impulse ? prescription.pre_impulse : '' }}
390 390
                         </div>
391 391
                     </td>
392 392
                     <td width='10'>ml</td>
@@ -459,7 +459,7 @@
459 459
                             &nbsp;{{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : ' ' }}
460 460
                         </div>
461 461
                     </td>
462
-                    <td width="10">L</td>
462
+                    <td width="10">ml</td>
463 463
                     <!-- <td width="50">吸氧:</td>
464 464
                     <td width='80'>
465 465
                         <div>
@@ -503,6 +503,12 @@
503 503
                     <td width='100'>
504 504
                         <label-box :isChecked="prescription.dialysate_flow == 500" showValue="500ml/min"></label-box>
505 505
                     </td>
506
+                    <td width='30'>其他</td>
507
+                    <td width='150'>
508
+                        <div class="under-line">
509
+                            &nbsp;<span v-if="prescription.dialysate_flow != 500 && prescription.dialysate_flow != ''">{{ prescription.dialysate_flow ? prescription.dialysate_flow : "" }} ml/min</span> 
510
+                        </div>
511
+                    </td>
506 512
                     <td></td>
507 513
                   </tr>
508 514
                 </tbody>
@@ -511,12 +517,7 @@
511 517
                 <tbody>
512 518
                   <tr>
513 519
                     <td width="80"></td>
514
-                    <td width='30'>其他</td>
515
-                    <td width='150'>
516
-                        <div class="under-line">
517
-                            &nbsp;<span v-if="prescription.dialysate_flow != 500 && prescription.dialysate_flow != ''">{{ prescription.dialysate_flow ? prescription.dialysate_flow : "" }} ml/min</span> 
518
-                        </div>
519
-                    </td>
520
+                    
520 521
                     <td width='60'>透析器:</td>
521 522
                     <td width='150'>
522 523
                         <div class="under-line">
@@ -561,7 +562,7 @@
561 562
             <td width="100">
562 563
                 <div>
563 564
                     <span v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) }} </span>
564
-                    <img class="es-img" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:''))" alt="" srcset="" v-else />
565
+                    <img class="es-img" style="height:38px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:''))" alt="" srcset="" v-else />
565 566
                 </div>
566 567
             </td>
567 568
             <td width="70">预冲护士:</td>
@@ -569,7 +570,7 @@
569 570
 
570 571
                 <div>
571 572
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.washpipe_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.washpipe_nurse)}}</span>
572
-                    <img class="es-img" style="height:30px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.washpipe_nurse)" alt="" srcset="" v-else>
573
+                    <img class="es-img" style="height:38px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.washpipe_nurse)" alt="" srcset="" v-else>
573 574
                 </div>
574 575
             </td>
575 576
             <td width="100">穿刺/开管护士:</td>
@@ -577,18 +578,26 @@
577 578
 
578 579
                 <div>
579 580
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.puncture_nurse)}}</span>
580
-                    <img class="es-img" style="height:30px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse)" alt="" srcset="" v-else>
581
+                    <img class="es-img" style="height:38px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse)" alt="" srcset="" v-else>
581 582
                     /
582 583
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.new_fistula_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.new_fistula_nurse)}}</span>
583
-                    <img class="es-img" style="height:30px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.new_fistula_nurse)" alt="" srcset="" v-else>
584
+                    <img class="es-img" style="height:38px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.new_fistula_nurse)" alt="" srcset="" v-else>
584 585
                 </div>
585 586
             </td>
586 587
             <td width="70">核对护士:</td>
587 588
             <td width="100">
588 589
 
589 590
                 <div>
590
-                    <!-- <span v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:prescription.creater)) }} </span>
591
-                    <img class="es-img" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:''))" alt="" srcset="" v-else /> -->
591
+                  <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
592
+                  {{ getAdminUser(check == null ? 0 : check.modifier) }}
593
+                  </span>
594
+                  <img style="height:38px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt srcset v-else />
595
+
596
+
597
+                  <!-- <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
598
+                    {{ getAdminUser(check == null ? 0 : check.modifier) }}
599
+                  </span>
600
+                  <img style="height:20px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt srcset v-else /> -->
592 601
                 </div>
593 602
             </td>
594 603
           </tr>
@@ -616,6 +625,7 @@
616 625
             <td width="60">钠浓度<br/>mmol/L</td>
617 626
             <td width="60">电导度<br/>ms/cm</td>
618 627
             <td width="40">液温<br/>℃</td>
628
+            <td width="40">ktv</td>
619 629
             <td width="">特殊处理</td>
620 630
             <td width='60'>执行护士</td>
621 631
           </tr>
@@ -662,12 +672,16 @@
662 672
             <td>
663 673
               &nbsp;{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}
664 674
             </td>
675
+            <td>
676
+              &nbsp;{{ monitor.ktv ? monitor.ktv : "" }}
677
+            </td>
665 678
             <td>
666 679
               &nbsp;{{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
667 680
             </td>
668 681
             <td>
669 682
                 <span>
670
-                    {{ getAdminUser(monitor.monitoring_nurse) }}
683
+                    <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">{{ getAdminUser(monitor.monitoring_nurse) }}</span>
684
+                    <img class="es-img" style="height:38px" :src="setAdminUserES(monitor.monitoring_nurse)" alt srcset v-else />
671 685
                 </span>
672 686
             </td>
673 687
 
@@ -704,7 +718,7 @@
704 718
                         &nbsp;{{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "" }}
705 719
                       </div>
706 720
                     </td>
707
-                    <td width="20">L</td>
721
+                    <td width="20">ml</td>
708 722
                     <td width="20"></td>
709 723
                     <td width="50">血流量</td>
710 724
                     <td width='140'>
@@ -754,13 +768,14 @@
754 768
                         <label-box :isChecked="afterdialysis.puncture_point_haematoma == 2 ? true : false" showValue="无"></label-box>
755 769
                         <label-box :isChecked="afterdialysis.puncture_point_haematoma == 1 ? true : false" showValue="有"></label-box>
756 770
                     </td>
757
-                    <!-- <td width="10"></td>
758
-                    <td width="30">部位</td>
759
-                    <td width='100'>
771
+                    <td width="10"></td>
772
+                    <td width="50">补液量</td>
773
+                    <td width='50'>
760 774
                         <div class="under-line">
761
-                            &nbsp;
775
+                            &nbsp;{{ afterdialysis.rehydration_volume ? afterdialysis.rehydration_volume : '' }}
762 776
                         </div>
763
-                    </td> -->
777
+                    </td>
778
+                    <td width="20">ml</td>
764 779
                     <td></td>
765 780
                   </tr>
766 781
                 </tbody>
@@ -917,7 +932,7 @@
917 932
                     <td width="100">
918 933
                       <div>
919 934
                         <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
920
-                        <img class="es-img" style="height:30px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)" alt="" srcset="" v-else>
935
+                        <img class="es-img" style="height:38px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)" alt="" srcset="" v-else>
921 936
                       </div>
922 937
                     </td>
923 938
                     <td width="150"></td>
@@ -926,7 +941,7 @@
926 941
                       <div>
927 942
                         <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) == ''">
928 943
                           {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) }}</span>
929
-                        <img class="es-img" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse)" alt="" srcset="" v-else />
944
+                        <img class="es-img" style="height:38px" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse)" alt="" srcset="" v-else />
930 945
                       </div>
931 946
                     </td>
932 947
                     <td></td>
@@ -965,7 +980,7 @@
965 980
               {{ getAdminUser(advice.advice_doctor) }}
966 981
             </span>
967 982
             <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
968
-              <img style="height:30px;" :src="setAdminUserES(advice.advice_doctor)" alt srcset />
983
+              <img style="height:38px;" :src="setAdminUserES(advice.advice_doctor)" alt srcset />
969 984
             </span>
970 985
           </td>
971 986
           
@@ -976,7 +991,7 @@
976 991
               {{ getAdminUser(advice.execution_staff) }}
977 992
             </span>
978 993
             <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
979
-              <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt srcset />
994
+              <img style="height:38px;" :src="setAdminUserES(advice.execution_staff)" alt srcset />
980 995
             </span>
981 996
           </td>
982 997
         </tr>

+ 38 - 7
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue Ver fichero

@@ -768,6 +768,16 @@
768 768
                             </span>
769 769
                         </div>
770 770
                     </td>
771
+                    <td width='50'>其他:</td>
772
+                    <td width='100'>
773
+                      
774
+                      <div class="under-line">
775
+                        <span>
776
+                          {{afterdialysis.sealing_fluid_dispose ? otherSealingFluidDispose(afterdialysis.sealing_fluid_dispose) : ''}}
777
+                        </span>   
778
+                      </div>
779
+                    </td>
780
+
771 781
                     <td width='10'>A:</td>
772 782
                     <td width='50'>
773 783
                         <div class="under-line">
@@ -783,16 +793,24 @@
783 793
                         </div>
784 794
                     </td>
785 795
                     <td width='10'>ml</td>
796
+                    
797
+                    
798
+                    <td></td>
799
+                  </tr>
800
+                </tbody>
801
+              </table>
802
+              <table class="table-box">
803
+                <tbody>
804
+                  <tr>
805
+                    <td></td>
786 806
                     <td width='70'>医生签名</td>
787 807
                     <td width='100'>
788
-                        <div class="under-line">
789
-                            &nbsp;
790
-                            <span v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) }} </span>
791
-                            <img style="height:30px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:''))" alt="" srcset="" v-else />
792
-                        </div>
808
+                      <div class="under-line">
809
+                          &nbsp;
810
+                          <span v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) }} </span>
811
+                          <img style="height:30px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:''))" alt="" srcset="" v-else />
812
+                      </div>
793 813
                     </td>
794
-                    
795
-                    <td></td>
796 814
                   </tr>
797 815
                 </tbody>
798 816
               </table>
@@ -1437,6 +1455,16 @@ export default {
1437 1455
     }
1438 1456
   },
1439 1457
   methods: {
1458
+    otherSealingFluidDispose(sealing_fluid_dispose){
1459
+      let sealing_fluid_dispose_name = ''
1460
+      let str = sealing_fluid_dispose.split(',')
1461
+      str.map(item => {
1462
+        if(item.indexOf('肝素') == -1 && item.indexOf('NS') == -1 && item.indexOf('特殊')){
1463
+          sealing_fluid_dispose_name += item + " "
1464
+        }
1465
+      })
1466
+      return sealing_fluid_dispose_name
1467
+    },
1440 1468
     getDialyzerPerfusionApparatus(dialyzer_perfusion_apparatus,name){
1441 1469
       let str = ''
1442 1470
       if(dialyzer_perfusion_apparatus.indexOf(',') > -1){
@@ -1588,6 +1616,9 @@ export default {
1588 1616
        if(arr[i] == "肝素1.7ml"){
1589 1617
           strname = "肝素1.7ml"
1590 1618
         }
1619
+       if(arr[i] == "肝素4ml"){
1620
+          strname = "肝素4ml"
1621
+        }
1591 1622
       }
1592 1623
       return strname
1593 1624
     },

+ 8 - 12
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyNine.vue Ver fichero

@@ -132,7 +132,7 @@
132 132
                 <tbody>
133 133
                   <tr>
134 134
                     <td width="70">血管通路:</td>
135
-                    <td width="460">
135
+                    <td width="480">
136 136
                       <div>
137 137
                         <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('自体内瘘') > -1 ? true : false" showValue="自体内瘘"></label-box>
138 138
                         &nbsp;
@@ -297,13 +297,6 @@
297 297
                             &nbsp;{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "" }}
298 298
                         </div>
299 299
                         </td>
300
-                        <td width="20"></td>
301
-                        <td width="80">透析机:</td>
302
-                        <td width="80">
303
-                        <div class="under-line">
304
-                            &nbsp;{{ predialysis.machine_type ? predialysis.machine_type : "" }}
305
-                        </div>
306
-                        </td>
307 300
                         <td></td>
308 301
                     </tr>
309 302
                     </tbody>
@@ -526,12 +519,15 @@
526 519
                 <tbody>
527 520
                   <tr>
528 521
                     <!-- <td width="70">其他记录:</td> -->
529
-                    <td width="70">治疗方案:</td>
530
-                    <td width="">
531
-                      <div style="width: 95%;line-height: 25px;text-align: left;margin-left: 2px;text-underline-position: under; text-decoration: underline;">
532
-                        {{ summary.dialysis_summary ? summary.dialysis_summary : "" }}
522
+                    <td width="70" style="text-align:left;">治疗方案:
523
+                      <div style="width: 95%;line-height: 25px;text-align: left;margin-left: 2px;text-underline-position: under; text-decoration: underline;display:inline;">
524
+                        <span>宣教:{{ summary.mission ? summary.mission : "" }}</span>
525
+                        <span>小结:{{ summary.dialysis_summary ? summary.dialysis_summary : "" }}</span>
533 526
                       </div>
534 527
                     </td>
528
+                    <!-- <td width="">
529
+                      
530
+                    </td> -->
535 531
                   </tr>
536 532
                 </tbody>
537 533
               </table>

+ 3 - 1
src/xt_pages/outpatientCharges/components/registerDialog.vue Ver fichero

@@ -514,7 +514,9 @@
514 514
         //   this.form.social_type = ""
515 515
         // }
516 516
 
517
-      }, hide: function() {
517
+      },
518
+
519
+      hide: function () {
518 520
         this.visibility = false
519 521
         this.$refs['formValue'].resetFields()
520 522
       }, cancel: function(formName) {

+ 1 - 1
src/xt_pages/outpatientCharges/newStatementPrint.vue Ver fichero

@@ -152,7 +152,7 @@
152 152
 
153 153
       },
154 154
       getInfo(order_id) {
155
-        if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106) {
155
+        if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 ||  this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106) {
156 156
 
157 157
           var that = this
158 158
 

+ 4 - 4
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Ver fichero

@@ -133,7 +133,7 @@
133 133
                         </el-button>
134 134
 
135 135
                         <el-button
136
-                                v-if="this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106"
136
+                                v-if="this.$store.getters.xt_user.org_id == 9919   || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106"
137 137
                                 size="small" @click="open(10)" type="primary"
138 138
                         >退号
139 139
                         </el-button>
@@ -644,7 +644,7 @@
644 644
 
645 645
             })
646 646
 
647
-        } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106) {
647
+        } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106) {
648 648
           var that = this
649 649
           axios.get('http://127.0.0.1:9532/api/upload/get', {
650 650
             params: form,
@@ -981,7 +981,7 @@
981 981
 
982 982
             })
983 983
 
984
-        } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106) {
984
+        } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106) {
985 985
 
986 986
           axios.get('http://127.0.0.1:9532/api/register/get', {
987 987
             params: forms,
@@ -1757,7 +1757,7 @@
1757 1757
           }
1758 1758
 
1759 1759
         } else if (index == 5) {
1760
-          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106) {
1760
+          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106) {
1761 1761
 
1762 1762
             var that = this
1763 1763
             this.$confirm('是否退费', '退费', {

+ 1 - 1
src/xt_pages/outpatientCharges/statementPrint.vue Ver fichero

@@ -150,7 +150,7 @@ export default {
150 150
 
151 151
     },
152 152
     getInfo(order_id) {
153
-      if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 ||  this.$store.getters.xt_user.org_id == 9671 ||  this.$store.getters.xt_user.org_id == 10106  ||  this.$store.getters.xt_user.org_id == 4) {
153
+      if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 ||  this.$store.getters.xt_user.org_id == 9671 ||  this.$store.getters.xt_user.org_id == 9674 ||  this.$store.getters.xt_user.org_id == 10106  ||  this.$store.getters.xt_user.org_id == 4) {
154 154
 
155 155
         var that = this
156 156
 

+ 29 - 2
src/xt_pages/outpatientCharges/summary.vue Ver fichero

@@ -106,6 +106,7 @@
106 106
                         <el-button size="mini" type="primary" @click="toRefund(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106)">
107 107
                             退费
108 108
                         </el-button>
109
+                        <!-- <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button> -->
109 110
                     </template>
110 111
                 </el-table-column>
111 112
             </el-table>
@@ -156,6 +157,14 @@
156 157
             <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
157 158
         </el-dialog>
158 159
 
160
+        <!-- <el-dialog
161
+                class="centerDialog"
162
+                width="1200px"
163
+                title="打印"
164
+                :visible.sync="invoiceVisible">
165
+            <invoice-print ref="print" :invoiceParams='invoiceParams'></invoice-print>
166
+        </el-dialog> -->
167
+
159 168
 
160 169
     </div>
161 170
 </template>
@@ -171,6 +180,7 @@
171 180
   import NewStatementPrintTwo from './newStatementPrintTwo'
172 181
   import { fetchAllAdminUsers } from '@/api/doctor'
173 182
   import axios from 'axios'
183
+  // import invoicePrint from './invoicePrint'
174 184
 
175 185
   export default {
176 186
     components: {
@@ -178,7 +188,8 @@
178 188
       NewStatementPrint,
179 189
       BreadCrumb,
180 190
       listPrint,
181
-      allListPrint
191
+      allListPrint,
192
+      // invoicePrint
182 193
     },
183 194
     data() {
184 195
       return {
@@ -202,6 +213,9 @@
202 213
         listVisible: false,
203 214
         allListVisible: false,
204 215
         adminUserOptions:[],
216
+        invoiceVisible:false,
217
+        paramsObj:{},
218
+        invoiceParams:{}
205 219
 
206 220
       }
207 221
     },
@@ -222,7 +236,7 @@
222 236
         }
223 237
 
224 238
       },toRefund(row){
225
-        if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106) {
239
+        if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106) {
226 240
           var that = this
227 241
           this.$confirm('是否退费', '退费', {
228 242
             confirmButtonText: '确 定',
@@ -475,6 +489,19 @@
475 489
         } else if (index == 2) {
476 490
           this.allListVisible = true
477 491
         }
492
+      },
493
+      invoicePrint(obj){
494
+        console.log(obj)
495
+        let paramsObj = {
496
+          order_id: obj.order_info.order_id,
497
+          patient_id: obj.patient_id,
498
+          name:obj.patient.name,
499
+          age:obj.age,
500
+          gend:obj.gend,
501
+          setl_time:obj.setl_time
502
+        }
503
+        this.invoiceParams = paramsObj
504
+        this.invoiceVisible = true
478 505
       }
479 506
     }, created() {
480 507
 

+ 25 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Ver fichero

@@ -360,6 +360,9 @@
360 360
                 </div>
361 361
               </el-tab-pane>
362 362
               <el-tab-pane label="项目组套" name="2">
363
+                <el-input style="width:100%;" @input="searchProjectList" @keyup.enter.native='searchProjectList'
364
+                            v-model.trim="project_item_keyword"
365
+                            placeholder="请输入项目组套名称"></el-input>
363 366
                 <div style="width: 100%;flex:1;overflow-y: auto;">
364 367
                   <el-table :data="tabPrjectTeam" border
365 368
                             :height="multipleTableHeight != '' ? multipleTableHeight : '200'"
@@ -573,8 +576,9 @@
573 576
             }
574 577
           }
575 578
         },
576
-        hisList:[]
577
-
579
+        hisList:[],
580
+        project_item_keyword:"",
581
+        projectList:[] 
578 582
       }
579 583
     },
580 584
     methods: {
@@ -1393,7 +1397,8 @@
1393 1397
         }
1394 1398
         this.$refs.additionalCharges.hide()
1395 1399
 
1396
-      }, searchProjectAction() {
1400
+      }, 
1401
+      searchProjectAction() {
1397 1402
 
1398 1403
         if (this.search_project_keyword.length == 0) {
1399 1404
           this.tabProject = this.allProject
@@ -1410,6 +1415,20 @@
1410 1415
         }
1411 1416
 
1412 1417
       },
1418
+      searchProjectList(){
1419
+         if(this.project_item_keyword.length == 0){
1420
+             this.tabPrjectTeam = this.projectList
1421
+         }else{
1422
+           let arr = []
1423
+           for(let i=0;i<this.projectList.length;i++){
1424
+              if(this.projectList[i].project_team.indexOf(this.project_item_keyword)!=-1){
1425
+                 arr = arr.concat(this.projectList[i])
1426
+              }
1427
+           }
1428
+           this.tabPrjectTeam = arr
1429
+         }
1430
+      },
1431
+
1413 1432
       searchAction() {
1414 1433
         if (this.search_keyword.length == 0) {
1415 1434
           this.drugs = this.allDrugs
@@ -1946,6 +1965,8 @@
1946 1965
               'prescriptions': this.prescriptions
1947 1966
             }
1948 1967
             isLoading = true
1968
+           
1969
+            
1949 1970
             createHisPrescription(data, params).then(response => {
1950 1971
               if (response.data.state == 1) {
1951 1972
                 this.$emit('change')
@@ -2498,6 +2519,7 @@
2498 2519
             var team = response.data.data.team
2499 2520
             console.log("team2222",team)
2500 2521
             this.tabPrjectTeam = team
2522
+            this.projectList = team
2501 2523
           }
2502 2524
         })
2503 2525
       },

+ 19 - 10
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue Ver fichero

@@ -66,7 +66,7 @@
66 66
         </div>
67 67
         <div class="otherInfo">
68 68
             <div class="otherName">药物过敏史:</div>
69
-            <div style="flex:1;">{{history.past_history?history.past_history:''}}</div>
69
+            <div style="flex:1;">{{history.allergic_history?history.allergic_history:''}}</div>
70 70
         </div>
71 71
         <div class="otherInfo">
72 72
             <div class="otherName">个人史:</div>
@@ -88,8 +88,13 @@
88 88
             <div class="otherName">门诊医嘱:</div>
89 89
             <div style="flex:1;">{{history.doctor_advice?history.doctor_advice:''}}</div>
90 90
         </div>
91
-        <div style="margin-top:20px;text-align:right;">
92
-            医生签名:{{getDoctor(history.doctor)?getDoctor(history.doctor):''}}
91
+        <div style="display:flex;justify-content: space-between;">
92
+            <div style="margin-top:20px;">
93
+                打印日期:{{ printDate }}
94
+            </div>
95
+            <div style="margin-top:20px;text-align:right;">
96
+                医生签名:{{getDoctor(history.doctor)?getDoctor(history.doctor):''}}
97
+            </div>
93 98
         </div>
94 99
     </div>
95 100
 </div>
@@ -110,7 +115,8 @@ export default {
110 115
             educationOptions:[],
111 116
             departmentList:[],
112 117
             orgname:'',
113
-            history:{}
118
+            history:{},
119
+            printDate:''
114 120
         }                   
115 121
     },
116 122
     methods:{
@@ -176,13 +182,16 @@ export default {
176 182
     }
177 183
     },
178 184
     created(){
179
-      this.educationOptions = getDataConfig("patient", "education_types");
180
-      console.log("22222",this.educationOptions)
181
-      this.getAllDoctorList()
182
-      this.getPatientCaseHistory()
185
+        this.educationOptions = getDataConfig("patient", "education_types");
186
+        this.getAllDoctorList()
187
+        this.getPatientCaseHistory()
183 188
 
184
-     var xtuser = this.$store.getters.xt_user
185
-     this.orgname = xtuser.org.org_name
189
+        var xtuser = this.$store.getters.xt_user
190
+        this.orgname = xtuser.org.org_name
191
+        var data = new Date();
192
+        var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
193
+        var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
194
+        this.printDate = data.getFullYear() + "-" + month + "-" + date;
186 195
     }
187 196
 }
188 197
 </script>

+ 2 - 2
src/xt_pages/outpatientDoctorStation/template/printOne.vue Ver fichero

@@ -22,7 +22,7 @@
22 22
           <div class="prescriptionBox">
23 23
               <div class="Rp">Rp:</div>
24 24
               <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
25
-                  <div class="drugsOne">{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
25
+                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
26 26
                   <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.execution_frequency}}&nbsp;{{it.delivery_way}}&nbsp;{{it.day}}天</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
27 27
               </div>
28 28
               <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
@@ -30,7 +30,7 @@
30 30
                </div>
31 31
                
32 32
               <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
33
-                  <div class="drugsOne">{{getProjectName(it.project_id)?getProjectName(it.project_id):""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.count}}{{unit}}</div>
33
+                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{getProjectName(it.project_id)?getProjectName(it.project_id):""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.count}}{{unit}}</div>
34 34
                   <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.delivery_way}}</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
35 35
               </div>
36 36
               <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">

+ 154 - 88
src/xt_pages/qcd/basicInformationAnalysis.vue Ver fichero

@@ -63,6 +63,36 @@
63 63
           :picker-options="pickerOptions"
64 64
         ></el-date-picker>
65 65
       </div>
66
+       <div class="cell clearfix">
67
+        <label class="title"><span class="name">转归情况</span> : </label>
68
+        <div class="time ">
69
+          <ul class="">
70
+            <li
71
+              :class="item.lapseto == lapsetoType ? 'active' : ''"
72
+              @click="selectLapseOne(item.lapseto)"
73
+              v-for="item in lapsetoArr"
74
+              :key="item.value"
75
+            >
76
+              {{ item.label }}
77
+            </li>
78
+          </ul>
79
+        </div>
80
+      </div>
81
+      <div class="cell clearfix">
82
+        <label class="title"><span class="name">病人来源</span> : </label>
83
+        <div class="time ">
84
+          <ul class="">
85
+            <li
86
+              :class="item.source == sourceType ? 'active' : ''"
87
+              @click="selectSource(item.source)"
88
+              v-for="item in sourceArr"
89
+              :key="item.value"
90
+            >
91
+              {{ item.label }}
92
+            </li>
93
+          </ul>
94
+        </div>
95
+      </div>
66 96
 
67 97
        <div class="cell clearfix" v-show="treatShow">
68 98
         <label class="title">
@@ -213,10 +243,12 @@
213 243
                 <p class="infoTitle">转归统计(总人数{{patientCount}}人)</p>
214 244
               </div>
215 245
               <div class="borderBox1">
216
-                <p>留治:{{rollOutTotal}}人({{(rollOutTotal/patientCount*100).toFixed(1)}}%)</p>
217
-                <el-progress :percentage="(rollOutTotal/patientCount*100).toFixed(1)"></el-progress>
218
-                <p>转出:{{outTotal}}人({{(outTotal/patientCount*100).toFixed(1)}}%)</p>
219
-                <el-progress :percentage="(outTotal/patientCount*100).toFixed(1)"></el-progress>
246
+                 <span v-if="lapsetoType == 0 || lapsetoType == 1"><p>留治:{{rollOutTotal}}人({{(rollOutTotal/patientCount*100).toFixed(1)}}%)</p>
247
+                  <el-progress :percentage="(rollOutTotal/patientCount*100).toFixed(1)"></el-progress>
248
+                </span>
249
+                <span v-if="lapsetoType == 0 || lapsetoType == 2"><p>转出:{{outTotal}}人({{(outTotal/patientCount*100).toFixed(1)}}%)</p>
250
+                 <el-progress :percentage="(outTotal/patientCount*100).toFixed(1)"></el-progress>
251
+                </span> 
220 252
               </div>
221 253
             </div>
222 254
             <div class="infoOne">
@@ -297,7 +329,7 @@
297 329
         </div>
298 330
         <div>
299 331
 
300
-        <div class="cell clearfix" v-show="treatShow">
332
+        <!-- <div class="cell clearfix" v-show="treatShow">
301 333
         <label class="title">
302 334
           <span class="name">转归状态</span> :
303 335
         </label>
@@ -311,7 +343,7 @@
311 343
             >{{ item.label }}</li>
312 344
           </ul>
313 345
         </div>
314
-       </div>
346
+       </div> -->
315 347
 
316 348
           <p style="font-size: 16px;font-weight: bold;color: #000;">转归统计</p>
317 349
           <line-chart :options="bar"></line-chart>
@@ -386,7 +418,19 @@ export default {
386 418
       dialysisAge:[],
387 419
       start:0,
388 420
       end:0,
389
-
421
+      lapsetoType: 0,
422
+      lapsetoArr: [
423
+        { value: 0, label: '全部', source: 0, lapseto: 0 },
424
+        { value: 1, label: '转出', source: 0, lapseto: 2 },
425
+        { value: 2, label: '留治', source: 0, lapseto: 1 },
426
+        // { value: 3, label: '死亡', source:0,  lapseto: 3 },
427
+      ],
428
+      sourceType: 0,
429
+      sourceArr: [
430
+       { value: 0, label: '全部', source: 0, lapseto: 0 },
431
+       { value: 3, label: '门诊', source: 1, lapseto: 1 },
432
+       { value: 4, label: '住院', source: 2, lapseto: 1 }
433
+      ],
390 434
       way: 0,
391 435
       wayArr: [
392 436
         { value: 0, label: "统计图", state: 0 },
@@ -585,6 +629,8 @@ export default {
585 629
         { value: 1, label: "转出", state: 1}
586 630
       ],
587 631
       lapseid:0,
632
+      startDate:"",
633
+      endDate:"",
588 634
     };
589 635
 
590 636
 
@@ -604,21 +650,21 @@ export default {
604 650
         this.start_time = "";
605 651
       } else {
606 652
          //统计透析总量
607
-        this.getDialysisModeType(val,this.listQuery.end_time)
653
+        this.getDialysisModeType(val,this.listQuery.end_time,this.lapsetoType,this.sourceType)
608 654
         //统计转归状态
609
-        this.getTotalLapseCount(this.listQuery.start_time,this.listQuery.end_time)
655
+        this.getTotalLapseCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
610 656
         //统计男女比例
611
-        this.getTotalSexCount(timeStar,timeEnd)
657
+        this.getTotalSexCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
612 658
         //统计传染病
613
-        this.getTotalInfectiousCount(this.listQuery.start_time,this.listQuery.end_time)
659
+        this.getTotalInfectiousCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
614 660
         //统计年龄
615
-        this.getTotalAgeCount(timeStar,timeEnd)
661
+        this.getTotalAgeCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
616 662
         //统计透析年龄
617
-        this.getTotalDialysisCount(timeStar,timeEnd)
663
+        this.getTotalDialysisCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
618 664
         this.start = timeStar
619 665
         this.end =timeEnd
620 666
         this.getCountModeId()
621
-        this.getRolloutCount(timeStar,timeEnd)
667
+        this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
622 668
       }
623 669
     },
624 670
     changeEndTime(val) {
@@ -632,21 +678,21 @@ export default {
632 678
         this.listQuery.end_time = "";
633 679
       } else {
634 680
           //统计透析总量
635
-        this.getDialysisModeType(this.listQuery.start_time,val)
681
+        this.getDialysisModeType(this.listQuery.start_time,val,this.lapsetoType,this.sourceType)
636 682
         //统计转归状态
637
-        this.getTotalLapseCount(this.listQuery.start_time,this.listQuery.end_time)
683
+        this.getTotalLapseCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
638 684
         //统计男女比例
639
-        this.getTotalSexCount(timeStar,timeEnd)
685
+        this.getTotalSexCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
640 686
         //统计传染病
641
-        this.getTotalInfectiousCount(this.listQuery.start_time,this.listQuery.end_time)
687
+        this.getTotalInfectiousCount(this.listQuery.start_time,this.listQuery.end_time,this.lapsetoType,this.sourceType)
642 688
         //统计年龄
643
-        this.getTotalAgeCount(timeStar,timeEnd)
689
+        this.getTotalAgeCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
644 690
         //统计透析年龄
645
-        this.getTotalDialysisCount(timeStar,timeEnd)
691
+        this.getTotalDialysisCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
646 692
         this.start = timeStar
647 693
         this.end =timeEnd
648 694
         this.getCountModeId()
649
-        this.getRolloutCount(timeStar,timeEnd)
695
+        this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
650 696
       }
651 697
     },
652 698
     selectLapseTo(state) {
@@ -655,6 +701,7 @@ export default {
655 701
       //获取本月当前机构的透析模式
656 702
       const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
657 703
       const endDate = moment(new Date()).format('YYYY-MM-DD')
704
+     
658 705
       var now = new Date()
659 706
       var nowMonth = now.getMonth(); //当前月
660 707
       var nowYear = now.getFullYear(); //当前年
@@ -669,28 +716,28 @@ export default {
669 716
       //本月
670 717
       if(state == 0){
671 718
        //统计透析总量
672
-        this.getDialysisModeType(startDate,endDate)
719
+        this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
673 720
         //统计转归状态
674
-        this.getTotalLapseCount(startDate,endDate)
721
+        this.getTotalLapseCount(startDate,endDate,this.lapsetoType,this.sourceType)
675 722
         //统计男女比例
676
-        this.getTotalSexCount(timeStar,timeEnd)
723
+        this.getTotalSexCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
677 724
         //统计传染病
678
-        this.getTotalInfectiousCount(startDate,endDate)
725
+        this.getTotalInfectiousCount(startDate,endDate,this.lapsetoType,this.sourceType)
679 726
         //统计年龄
680
-        this.getTotalAgeCount(timeStar,timeEnd)
727
+        this.getTotalAgeCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
681 728
         //统计透析年龄
682
-        this.getTotalDialysisCount(timeStar,timeEnd)
729
+        this.getTotalDialysisCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
683 730
         this.start = timeStar
684 731
         this.end = timeEnd
685 732
         this.getCountModeId()
686
-        this.getRolloutCount(timeStar,timeEnd)
733
+        this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
687 734
       }
688 735
       //近三月
689 736
       if(state == 1){
690 737
         this.listQuery.start_time = ""
691 738
         this.listQuery.end_time = ""
692 739
         const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
693
-        // console.log("三月前",startDate)
740
+       
694 741
         var startunitx = Date.parse(startDate)/1000
695 742
         // console.log("开始时间搓",startunitx)
696 743
         const endDate = moment(new Date()).format('YYYY-MM-DD')
@@ -698,21 +745,21 @@ export default {
698 745
          var endunitx = Date.parse(endDate)/1000
699 746
         // console.log("日期时间搓",endunitx)
700 747
          //统计透析总量
701
-        this.getDialysisModeType(startDate,endDate)
748
+        this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
702 749
          //统计转归状态
703
-        this.getTotalLapseCount(startDate,endDate)
750
+        this.getTotalLapseCount(startDate,endDate,this.lapsetoType,this.sourceType)
704 751
         //统计男女比例
705
-        this.getTotalSexCount(startunitx,endunitx)
752
+        this.getTotalSexCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
706 753
         //统计传染病
707
-        this.getTotalInfectiousCount(startDate,endDate)
754
+        this.getTotalInfectiousCount(startDate,endDate,this.lapsetoType,this.sourceType)
708 755
         //统计年龄
709
-        this.getTotalAgeCount(startunitx,endunitx)
756
+        this.getTotalAgeCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
710 757
         //统计透析年龄
711
-        this.getTotalDialysisCount(startunitx,endunitx)
758
+        this.getTotalDialysisCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
712 759
         this.start = startunitx
713 760
         this.end = endunitx
714 761
         this.getCountModeId()
715
-        this.getRolloutCount(startunitx,endunitx)
762
+        this.getRolloutCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
716 763
       }
717 764
 
718 765
      //近半年
@@ -728,22 +775,22 @@ export default {
728 775
          var endunitx = Date.parse(endDate)/1000
729 776
         // console.log("日期时间搓",endunitx)
730 777
          //统计透析总量
731
-        this.getDialysisModeType(startDate,endDate)
778
+        this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
732 779
          //统计转归状态
733
-        this.getTotalLapseCount(startDate,endDate)
780
+        this.getTotalLapseCount(startDate,endDate,this.lapsetoType,this.sourceType)
734 781
         //统计男女比例
735
-        this.getTotalSexCount(startunitx,endunitx)
782
+        this.getTotalSexCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
736 783
         //统计传染病
737
-        this.getTotalInfectiousCount(startDate,endDate)
784
+        this.getTotalInfectiousCount(startDate,endDate,this.lapsetoType,this.sourceType)
738 785
         //统计年龄
739
-        this.getTotalAgeCount(startunitx,endunitx)
786
+        this.getTotalAgeCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
740 787
         //统计透析年龄
741
-        this.getTotalDialysisCount(startunitx,endunitx)
788
+        this.getTotalDialysisCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
742 789
 
743 790
         this.start = startunitx
744 791
         this.end = endunitx
745 792
         this.getCountModeId()
746
-        this.getRolloutCount(startunitx,endunitx)
793
+        this.getRolloutCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
747 794
      }
748 795
 
749 796
      //近一年
@@ -759,22 +806,21 @@ export default {
759 806
          var endunitx = Date.parse(endDate)/1000
760 807
         // console.log("日期时间搓",endunitx)
761 808
          //统计透析总量
762
-        this.getDialysisModeType(startDate,endDate)
809
+        this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
763 810
          //统计转归状态
764
-        this.getTotalLapseCount(startDate,endDate)
811
+        this.getTotalLapseCount(startDate,endDate,this.lapsetoType,this.sourceType)
765 812
         //统计男女比例
766
-        this.getTotalSexCount(startunitx,endunitx)
813
+        this.getTotalSexCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
767 814
         //统计传染病
768
-        this.getTotalInfectiousCount(startDate,endDate)
815
+        this.getTotalInfectiousCount(startDate,endDate,this.lapsetoType,this.sourceType)
769 816
         //统计年龄
770
-        this.getTotalAgeCount(startunitx,endunitx)
817
+        this.getTotalAgeCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
771 818
         //统计透析年龄
772
-        this.getTotalDialysisCount(startunitx,endunitx)
773
-
819
+        this.getTotalDialysisCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
774 820
         this.start = startunitx
775 821
         this.end = endunitx
776 822
         this.getCountModeId()
777
-        this.getRolloutCount(startunitx,endunitx)
823
+        this.getRolloutCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
778 824
      }
779 825
 
780 826
 
@@ -790,16 +836,19 @@ export default {
790 836
       this.lapseMode = state
791 837
       this.getRolloutCount(this.start,this.end)
792 838
     },
793
-    getDialysisModeType(startDate,endDate){
839
+    getDialysisModeType(startDate,endDate,lapsetoType,sourceType){
794 840
        this.modesData.series = []
795 841
        this.modesData.xAxis = []
796
-      getDialysisModeType(startDate,endDate).then(response=>{
842
+      getDialysisModeType(startDate,endDate,lapsetoType,sourceType).then(response=>{
797 843
          if(response.data.state == 1){
798 844
 
799 845
           var modetype =  response.data.data.modetype
846
+         
800 847
           this.modetype = modetype
801 848
           var total =  response.data.data.total
802
-          this.total = total
849
+          
850
+          this.total = total.count
851
+          // this.total = total
803 852
           // console.log("数据",this.modetype)
804 853
           var modedate = response.data.data.modetype
805 854
           for(let i=0;i<modedate.length;i++){
@@ -871,60 +920,52 @@ export default {
871 920
       })
872 921
     },
873 922
     //统计转归
874
-    getTotalLapseCount(startDate,endDate){
923
+    getTotalLapseCount(startDate,endDate,lapsetoType,sourceType ){
924
+   
875 925
        this.modesDataTwo.series = []
876 926
        this.modesDataTwo.xAxis = []
877
-      getTotalLapseCount(startDate,endDate).then(response=>{
927
+      getTotalLapseCount(startDate,endDate,lapsetoType,sourceType).then(response=>{
878 928
          if(response.data.state == 1){
879 929
            var arr = [
880 930
              {name:"留治",count:0},
881 931
              {name:"转出",count:0}
882 932
            ]
883 933
           var patients =  response.data.data.patients
884
-
934
+      
885 935
           this.rollOutTotal = patients.length
936
+
886 937
           var patienttwo = response.data.data.patienttwo
887 938
           this.outTotal = patienttwo.length
888 939
           var count = response.data.data.count
889 940
           this.patientCount = count
890 941
 
891 942
           var rollout = response.data.data.rollout
892
-          console.log("rollout",rollout)
943
+        
893 944
 
894 945
           for(let i=0;i<arr.length;i++){
895 946
             arr[0].count = this.rollOutTotal
896 947
             arr[1].count = this.outTotal
897 948
           }
898
-
899
-          // for(let j=0;j<arr.length;j++){
900
-          //   this.modesDataTwo.xAxis.push(arr[j].name)
901
-          //   this.modesDataTwo.series.push(((arr[j].count/count)*100).toFixed(1))
902
-          // }
903
-          // this.bar.series[0].data = this.modesDataTwo.series
904
-          // this.bar.xAxis.data = this.modesDataTwo.xAxis
905
-          // this.getArrLength(this.bar.xAxis.data)
906
-
907 949
          }
908 950
       })
909 951
     },
910 952
     //统计男女比例
911
-    getTotalSexCount(timeStar,timeEnd){
912
-      getTotalSexCount(timeStar,timeEnd).then(response=>{
953
+    getTotalSexCount(timeStar,timeEnd,lapsetoType,sourceType){
954
+      getTotalSexCount(timeStar,timeEnd,lapsetoType,sourceType).then(response=>{
913 955
         if(response.data.state === 1){
956
+          console.log("resp2222",response.data.data.totalWoman)
914 957
           var total = response.data.data.total
915
-        //  console.log("总人数",total)
916 958
           this.totalGender = total
917 959
           var totalMan = response.data.data.totalSex
918
-       //  console.log("男人",totalMan)
919 960
           this.totalMan = totalMan
920
-          var totalWoman = total - totalMan
961
+          var totalWoman = response.data.data.totalWoman
921 962
           this.totalWoman = totalWoman
922 963
         }
923 964
       })
924 965
     },
925 966
     //统计传染病
926
-    getTotalInfectiousCount(timeStar,timeEnd){
927
-       getTotalInfectiousCount(timeStar,timeEnd).then(response=>{
967
+    getTotalInfectiousCount(timeStar,timeEnd,lapsetoType,sourceType){
968
+       getTotalInfectiousCount(timeStar,timeEnd,lapsetoType,sourceType).then(response=>{
928 969
            if(response.data.state === 1){
929 970
              this.InfectiousTotal = response.data.data.total
930 971
              var infectious = response.data.data.count
@@ -947,11 +988,10 @@ export default {
947 988
            }
948 989
        })
949 990
     },
950
-    getTotalAgeCount(timeStar,timeEnd){
951
-      getTotalAgeCount(timeStar,timeEnd).then(response=>{
991
+    getTotalAgeCount(timeStar,timeEnd,lapsetoType,sourceType){
992
+      getTotalAgeCount(timeStar,timeEnd,lapsetoType,sourceType).then(response=>{
952 993
          if(response.data.state == 1){
953 994
           var ageCount =  response.data.data.ageCount
954
-          // console.log("ageCount",ageCount)
955 995
           var arr = []
956 996
           arr =  ageCount.sort(this.compare('age'))
957 997
           this.ageCount = arr
@@ -969,8 +1009,8 @@ export default {
969 1009
           }
970 1010
       },
971 1011
     //统计透析年龄
972
-    getTotalDialysisCount(timeStar,timeEnd){
973
-      getTotalDialysisCount(timeStar,timeEnd).then(response=>{
1012
+    getTotalDialysisCount(timeStar,timeEnd,lapsetoType,sourceType){
1013
+      getTotalDialysisCount(timeStar,timeEnd,lapsetoType,sourceType).then(response=>{
974 1014
          if(response.data.state == 1){
975 1015
            var dataage =  response.data.data.dataage
976 1016
           //  console.log("dataage",dataage)
@@ -1127,7 +1167,9 @@ export default {
1127 1167
        this.modesDataTwo.xAxis = []
1128 1168
         const params = {
1129 1169
           start_time:this.start,
1130
-          end_time:this.end
1170
+          end_time:this.end,
1171
+          lapsetotype:this.lapsetoType,
1172
+          sourcetype:this.sourceType,
1131 1173
         }
1132 1174
       getRolloutCount(params).then(response=>{
1133 1175
          if(response.data.state == 1){
@@ -1167,7 +1209,28 @@ export default {
1167 1209
 
1168 1210
          }
1169 1211
       })
1170
-    }
1212
+    },
1213
+    selectSource(source) {
1214
+      this.sourceType = source
1215
+      this.getDialysisModeType(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1216
+      this.getTotalLapseCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1217
+      this.getTotalSexCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1218
+      this.getTotalInfectiousCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1219
+      this.getTotalAgeCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1220
+      this.getTotalDialysisCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1221
+      this.getRolloutCount(this.lapsetoType,this.sourceType)
1222
+    },
1223
+    selectLapseOne(lapseto) {
1224
+      console.log("lapseto22222",lapseto)
1225
+      this.lapsetoType = lapseto
1226
+      this.getDialysisModeType(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1227
+      this.getTotalLapseCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1228
+      this.getTotalSexCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1229
+      this.getTotalInfectiousCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1230
+      this.getTotalAgeCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1231
+      this.getTotalDialysisCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1232
+      this.getRolloutCount(this.lapsetoType,this.sourceType)
1233
+    },
1171 1234
   },
1172 1235
   created() {
1173 1236
         //获取本月当前机构的透析模式
@@ -1182,25 +1245,28 @@ export default {
1182 1245
       //本月的结束时间
1183 1246
       var monthEndDate = new Date(nowYear, nowMonth+1, 0);
1184 1247
       var timeEnd=Date.parse(monthEndDate)/1000-1;//s
1248
+
1249
+      this.startDate = startDate
1250
+      this.endDate = endDate
1185 1251
       //统计透析总量
1186
-      this.getDialysisModeType(startDate,endDate)
1252
+      this.getDialysisModeType(startDate,endDate,this.lapsetoType,this.sourceType)
1187 1253
       //统计转归状态
1188
-      this.getTotalLapseCount(startDate,endDate)
1254
+      this.getTotalLapseCount(startDate,endDate,this.lapsetoType,this.sourceType)
1189 1255
       //统计男女比例
1190
-      this.getTotalSexCount(timeStar,timeEnd)
1256
+      this.getTotalSexCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
1191 1257
       //统计传染病
1192
-      this.getTotalInfectiousCount(startDate,endDate)
1258
+      this.getTotalInfectiousCount(startDate,endDate,this.lapsetoType,this.sourceType)
1193 1259
       //统计年龄
1194
-      this.getTotalAgeCount(timeStar,timeEnd)
1260
+      this.getTotalAgeCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
1195 1261
       //统计透析年龄
1196
-      this.getTotalDialysisCount(timeStar,timeEnd)
1262
+      this.getTotalDialysisCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
1197 1263
 
1198 1264
       //获取当前选中时间所有的透析模式
1199 1265
       this.getTreatModeList(timeStar,timeEnd)
1200 1266
       this.start = timeStar
1201 1267
       this.end = timeEnd
1202 1268
 
1203
-     this.getRolloutCount(timeStar,timeEnd)
1269
+     this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
1204 1270
 
1205 1271
 
1206 1272
   },

+ 33 - 11
src/xt_pages/stock/Dialog/goodInfoDailog.vue Ver fichero

@@ -23,10 +23,10 @@
23 23
             <el-form-item label="耗材种类 : " prop="good_kind">
24 24
               <el-select v-model="form.good_kind" style="width:160px;" placeholder="请选择">
25 25
                 <el-option
26
-                  v-for="item,index in getDictionaryDataConfig('system','good_kind')"
26
+                  v-for="(item,index) in goodKindList"
27 27
                   :key="index"
28 28
                   :label="item.name"
29
-                  :value="item.id">
29
+                  :value="item.value">
30 30
                 </el-option>
31 31
               </el-select>
32 32
             </el-form-item>
@@ -43,10 +43,10 @@
43 43
             <el-form-item label="医保等级 : " prop="medical_insurance_level">
44 44
               <el-select v-model="form.medical_insurance_level" style="width:160px;" placeholder="请选择">
45 45
                 <el-option
46
-                  v-for="item, index in getDictionaryDataConfig('system','medical_insurance_level')"
46
+                  v-for="(item, index) in medicalInsuranceLevelList"
47 47
                   :key="index"
48 48
                   :label="item.name"
49
-                  :value="item.id">
49
+                  :value="item.value">
50 50
                 </el-option>
51 51
               </el-select>
52 52
             </el-form-item>
@@ -116,10 +116,10 @@
116 116
             <el-form-item label="统计分类:" prop="statistics_category">
117 117
               <el-select v-model="form.statistics_category" style="width:160px;" placeholder="请选择">
118 118
                 <el-option
119
-                  v-for="item,index in getDictionaryDataConfig('system','statistics_category')"
119
+                  v-for="(item,index) in statisticsCategoryList"
120 120
                   :key="index"
121 121
                   :label="item.name"
122
-                  :value="item.id">
122
+                  :value="item.value">
123 123
                 </el-option>
124 124
               </el-select>
125 125
             </el-form-item>
@@ -273,7 +273,7 @@
273 273
 
274 274
 <script>
275 275
   import { getDictionaryDataConfig,getDataConfig } from '@/utils/data'
276
-  import { getManufacturerList,GetAllConfig } from "@/api/stock";
276
+  import { getManufacturerList,GetAllConfig,getInitializtion } from "@/api/stock";
277 277
 
278 278
   export default {
279 279
     name: 'goodInfoDailog',
@@ -372,7 +372,10 @@
372 372
             {required:true,message:"请填写特殊医院材料标志",trigger:"blur"}
373 373
           ]
374 374
         },
375
-        dealer:[]
375
+        dealer:[],
376
+        goodKindList:[],
377
+        medicalInsuranceLevelList:[],
378
+        statisticsCategoryList:[]
376 379
       }
377 380
     },
378 381
     props: {
@@ -401,8 +404,10 @@
401 404
       show(id,form) {
402 405
         this.visible = true
403 406
         this.good_status =[]
407
+        this.getlist()
408
+        this.GetAllConfig()
409
+        this.getInitializtion()
404 410
         if (id == 0) {
405
-
406 411
           var tempform = {
407 412
               good_id: '',
408 413
               specification_name: '',
@@ -516,10 +521,10 @@
516 521
              page:this.page,
517 522
              limit:this.limit
518 523
           }
519
-          console.log("params2222222",params)
524
+        
520 525
         getManufacturerList(params).then(response=>{
521 526
            var manufacturerList =   response.data.data.manufacturer
522
-           console.log("列表2222222",manufacturerList)
527
+         
523 528
            this.manufacturerList = manufacturerList
524 529
         })
525 530
       },
@@ -533,6 +538,22 @@
533 538
           
534 539
         }
535 540
        });
541
+      },
542
+      getInitializtion(){
543
+       getInitializtion().then(response=>{
544
+         if(response.data.state == 1){
545
+           var goodKindList = response.data.data.goodKindList
546
+           console.log("耗材种类",goodKindList)
547
+           this.goodKindList = goodKindList
548
+           var medicalInsuranceLevelList =  response.data.data.medicalInsuranceLevelList
549
+           console.log("医保等级",medicalInsuranceLevelList)
550
+           this.medicalInsuranceLevelList = medicalInsuranceLevelList
551
+           var statisticsCategoryList = response.data.data.statisticsCategoryList
552
+           console.log("统计分类",statisticsCategoryList)
553
+           this.statisticsCategoryList = statisticsCategoryList
554
+
555
+         }
556
+       })
536 557
       }
537 558
     },
538 559
     watch: {
@@ -549,6 +570,7 @@
549 570
       this.getlist()
550 571
       //获取所有经销商
551 572
       this.GetAllConfig()
573
+      this.getInitializtion()
552 574
     }
553 575
   }
554 576
 

+ 4 - 2
src/xt_pages/stock/drugs/drugStockInOrder.vue Ver fichero

@@ -293,7 +293,7 @@ import {
293 293
   GetAllConfig,
294 294
   getDrugWarehouseInfoList,
295 295
   getDrugWarehouseList,
296
-  
296
+ 
297 297
 } from "@/api/drug/drug_stock";
298 298
 import BreadCrumb from "../../components/bread-crumb";
299 299
 
@@ -339,6 +339,7 @@ export default {
339 339
     this.GetWarehouse();
340 340
     // this.GetConfigInfo();
341 341
     this.fetchAllAdminUsers();
342
+   
342 343
   },
343 344
   data() {
344 345
     return {
@@ -665,7 +666,8 @@ export default {
665 666
           });
666 667
         })
667 668
         .catch(() => {});
668
-    }
669
+    },
670
+   
669 671
   }
670 672
 };
671 673
 </script>

+ 57 - 8
src/xt_pages/stock/drugs/drugStockOutOrder.vue Ver fichero

@@ -145,7 +145,7 @@
145 145
                 size="small"
146 146
                 type="warning"
147 147
                 icon="el-icon-document"
148
-                @click="handleSearch(scope.row.id)"
148
+                @click="handleSearch(scope.row.id,scope.row.warehouse_out_time,scope.row.warehouse_out_order_number)"
149 149
               >
150 150
               </el-button>
151 151
             </el-tooltip>
@@ -233,7 +233,8 @@
233 233
               <span>单价</span>
234 234
             </template>
235 235
             <template slot-scope="scope">
236
-              <span>{{scope.row.price}}</span>
236
+              <!-- <span>{{scope.row.price}}</span> -->
237
+              <span>{{getRetailPrice(scope.row.drug_id)}}</span>
237 238
             </template>
238 239
           </el-table-column>
239 240
 
@@ -242,13 +243,15 @@
242 243
               <span>出库数量</span>
243 244
             </template>
244 245
             <template slot-scope="scope">
245
-              <span>{{scope.row.count}}</span>
246
-
246
+              <span v-if="drugConfig.is_open == 0 || drugConfig.is_open ==2 ">{{scope.row.count}}</span>
247
+              <span v-if="drugConfig.is_open ==1">{{getDrugCount(scope.row.drug_id)}}</span>
247 248
             </template>
248 249
           </el-table-column>
249 250
           <el-table-column label="总价" min-width="20" align="center">
250 251
             <template slot-scope="scope">
251
-              {{calculate(scope.row.price*scope.row.count)}}
252
+              <!-- {{calculate(scope.row.price*scope.row.count)}} -->
253
+              <span v-if="drugConfig.is_open == 0 || drugConfig.is_open == 2">{{(scope.row.count * getRetailPrice(scope.row.drug_id)).toFixed(2)}}</span>
254
+              <span v-if="drugConfig.is_open == 1">{{(getRetailPrice(scope.row.drug_id) * getDrugCount(scope.row.drug_id)).toFixed(2)}}</span>
252 255
             </template>
253 256
           </el-table-column>
254 257
 
@@ -357,7 +360,8 @@ import {
357 360
   GetAllConfig,
358 361
   getDrugWarehouseOutList,
359 362
   getDrugWarehouseOutInfo,
360
-  getDrugWarehouseOutUser
363
+  getDrugWarehouseOutUser,
364
+  getDrugAutoMaticList
361 365
 } from "@/api/drug/drug_stock";
362 366
 import BreadCrumb from "../../components/bread-crumb";
363 367
 
@@ -436,7 +440,9 @@ export default {
436 440
        info: {}
437 441
       },
438 442
       userList:[],
439
-     
443
+      list:[],
444
+      drugConfig:{},
445
+      drugList:[]
440 446
     };
441 447
   },
442 448
   methods: {
@@ -486,6 +492,7 @@ export default {
486 492
           for (let i = 0; i < response.data.data.list.length; i++) {
487 493
             this.warehouseOutDate.push(response.data.data.list[i]);
488 494
           }
495
+          console.log("列表22222",this.warehouseOutDate)
489 496
         }
490 497
       });
491 498
     },
@@ -581,9 +588,12 @@ export default {
581 588
         query: { id: row.id, type: this.type }
582 589
       });
583 590
     },
584
-    handleSearch(id){
591
+    handleSearch(id,time,warehouse_out_order_number){
592
+    
585 593
       this.warehousingOutInfo.warehousingOutData = []
586 594
       this.GetOrderDetail(id)
595
+      this.list = []
596
+      this.getDrugAutoMaticList(id,time,warehouse_out_order_number)
587 597
       this.dialogVisible = true
588 598
       
589 599
     },
@@ -777,7 +787,46 @@ export default {
777 787
           }
778 788
         })
779 789
         this.sameRowArr = sameRowArr
790
+      },
791
+    getDrugAutoMaticList(id,recordTime,warehouse_out_order_number){
792
+        var params = {
793
+          warehous_out_id:id,
794
+          record_time:recordTime,
795
+          warehouse_out_order_number:warehouse_out_order_number,
796
+        }
797
+      getDrugAutoMaticList(params).then(response=>{
798
+         if(response.data.state ==1){
799
+           var list =   response.data.data.list
800
+           console.log("list222222",list)
801
+           this.list = list
802
+           var drugConfig =  response.data.data.drugConfig
803
+           console.log("drugconfig",drugConfig)
804
+           this.drugConfig = drugConfig
805
+           var drugList = response.data.data.drugList
806
+           console.log("药品列表",drugList)
807
+           this.drugList = drugList
808
+         }
809
+      })
810
+    },
811
+    getDrugCount(id){
812
+      
813
+      var count = 0 
814
+      for(let i=0;i<this.list.length;i++){
815
+         if(this.list[i].drug_id == id){
816
+            count = this.list[i].Total
817
+         }
780 818
       }
819
+      return count
820
+    },
821
+    getRetailPrice(id){
822
+      var price = 0
823
+      for(let i=0;i<this.drugList.length;i++){
824
+         if(id == this.drugList[i].id){
825
+            price = this.drugList[i].retail_price
826
+         }
827
+      }
828
+      return price
829
+    }
781 830
   }
782 831
 };
783 832
 </script>

+ 24 - 1
src/xt_pages/stock/stockInOrderDetailPrint.vue Ver fichero

@@ -22,25 +22,39 @@
22 22
                             <thead>
23 23
                                 <tr>
24 24
                                     <td width="80">耗材名称</td>
25
+                                    <td width="80">注册证号/批准文号/备案凭证号</td>
25 26
                                     <td width="80">规格型号</td>
27
+                                    <td width="80">生产厂商</td>
26 28
                                     <td width="80">单位</td>
27 29
                                      <td width="80">进货价</td>
28 30
                                     <td width="80">入库数量</td> 
29 31
                                     <td width="80">总价</td>
32
+                                    <td width="80">批号</td>
33
+                                    <td width="80">生产日期</td>
34
+                                    <td width="80">有效日期</td>
35
+                                    <td width="80">质检意见</td>
36
+                                    <td width="80">验收结论</td>
30 37
                                 </tr>
31 38
                             </thead>
32 39
                             <tbody>
33 40
                                 <tr v-for='(item,index) in WarehouseInfo.warehouseInfoDate' :key="index">
34 41
                                     <td><span v-if="item.good_id != 0">{{getTypeNameOne(item.good_id)}}</span></td>
42
+                                    <td></td>
35 43
                                     <td><span v-if="item.good_id != 0">{{getSpecificationName(item.good_id)}}</span></td>
44
+                                    <td>{{ getManufacturer(item.manufacturer) }}</td>
36 45
                                     <td><span v-if="item.good_id!=0">{{getUnit(item.good_id)}}</span></td>
37 46
                                     <td>{{item.price}}</td>
38 47
                                     <td>{{item.warehousing_count}}</td> 
39 48
                                     <td>{{(item.warehousing_count*item.price).toFixed(2)}}</td>
49
+                                    <td>{{ item.number }}</td>
50
+                                    <td>{{ item.product_date | parseTime("{y}-{m}-{d}") }}</td>
51
+                                    <td>{{ item.expiry_date | parseTime("{y}-{m}-{d}") }}</td>
52
+                                    <td></td>
53
+                                    <td></td>
40 54
                                 </tr>
41 55
                                 <tr>
42 56
                                   <td>合计</td>
43
-                                  <td colspan="4"></td>
57
+                                  <td colspan="11"></td>
44 58
                                   <td>{{allPrice.toFixed(2)}}</td>
45 59
                                </tr>
46 60
                             </tbody>
@@ -229,6 +243,15 @@ export default {
229 243
         }
230 244
         return ""
231 245
       },
246
+      getManufacturer(id){
247
+        let name = ''
248
+        this.manufacturer.map(item => {
249
+          if(item.id == id){
250
+            name = item.manufacturer_name
251
+          }
252
+        })
253
+        return name
254
+      }
232 255
     },
233 256
     created(){
234 257
 

+ 2 - 2
src/xt_pages/user/dialysisSolution.vue Ver fichero

@@ -389,8 +389,8 @@
389 389
             </el-form-item>
390 390
           </el-col>
391 391
 
392
-          <el-col :span="8" v-if="isShows('电导')">
393
-            <el-form-item label="电导(mS/cm): " prop="conductivity">
392
+          <el-col :span="8" v-if="isShows('电导')">
393
+            <el-form-item label="电导(mS/cm): " prop="conductivity">
394 394
               <el-input v-model="addPlan.conductivity"></el-input>
395 395
             </el-form-item>
396 396
           </el-col>

+ 1 - 1
src/xt_pages/user/patients.vue Ver fichero

@@ -846,7 +846,7 @@
846 846
 
847 847
       },
848 848
       handleSuccess({ results, header }) {
849
-        console.log("header22222",results)
849
+       
850 850
         if (header != undefined && header.length > 0) {
851 851
           var isHasName = header.includes('*姓名')
852 852
           var isHasGender = header.includes('*性别')

+ 17 - 0
src/xt_pages/user/scheduling.vue Ver fichero

@@ -29,6 +29,22 @@
29 29
             }})
30 30
           </template>
31 31
         </el-table-column>
32
+        <el-table-column
33
+          prop="schedule_type"
34
+          label="星期"
35
+          align="center"
36
+          min-width="60"
37
+        >
38
+          <template slot-scope="scope">
39
+             <span v-if="scope.row.schedule_week == 0">星期日</span>
40
+             <span v-if="scope.row.schedule_week == 1">星期一</span>
41
+             <span v-if="scope.row.schedule_week == 2">星期二</span>
42
+             <span v-if="scope.row.schedule_week == 3">星期三</span>
43
+             <span v-if="scope.row.schedule_week == 4">星期四</span>
44
+             <span v-if="scope.row.schedule_week == 5">星期五</span>
45
+             <span v-if="scope.row.schedule_week == 6">星期六</span>
46
+          </template>
47
+        </el-table-column>
32 48
         <el-table-column
33 49
           prop="schedule_type"
34 50
           label="班次"
@@ -115,6 +131,7 @@ export default {
115 131
       GetPatientSchedules(id).then(response => {
116 132
         if (response.data.state == 1) {
117 133
           this.schedules = response.data.data.schedules;
134
+          
118 135
         }
119 136
       });
120 137
     },

+ 189 - 69
src/xt_pages/workforce/appointment.vue Ver fichero

@@ -529,11 +529,15 @@
529 529
           }
530 530
           
531 531
           if(this.export_type == 1){
532
-            console.log("333333",this.newDay)
533
-             const multiHeader = [['区号', '机号', '周一'+"("+this.newDay[0]+")" , '', '', '周二'+"("+this.newDay[1]+")", '', '', '周三'+"("+this.newDay[2]+")" , '', '', '周四'+"("+this.newDay[3]+")" , '', '', '周五'+"("+this.newDay[4]+")" , '', '', '周六'+"("+this.newDay[5]+")" , '', '', '周日'+"("+this.newDay[6]+")" , '', '', '周一'+"("+this.days[7]+")" , '', '', '周二'+"("+this.days[8]+")" , '', '', '周三'+"("+this.days[9]+")" , '', '', '周四'+"("+this.days[10]+")" , '', '', '周五'+"("+this.days[11]+")" , '', '', '周六'+"("+this.days[12]+")" , '', '', '周日'+"("+this.days[13]+")", '', '', '周一'+"("+this.days[14]+")", '', '', '周二'+"("+this.days[15]+")", '', '', '周三'+"("+this.days[16]+")", '', '', '周四'+"("+this.days[17]+")", '', '', '周五'+"("+this.days[18]+")", '', '', '周六'+"("+this.days[19]+")", '', '', '周日'+"("+this.days[20]+")", '', '']]
534
-             const header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
532
+
533
+            console.log("44444444",this.tableList)
534
+            //  const multiHeader = [['区号', '机号', '周一'+"("+this.newDay[0]+")" , '', '', '周二'+"("+this.newDay[1]+")", '', '', '周三'+"("+this.newDay[2]+")" , '', '', '周四'+"("+this.newDay[3]+")" , '', '', '周五'+"("+this.newDay[4]+")" , '', '', '周六'+"("+this.newDay[5]+")" , '', '', '周日'+"("+this.newDay[6]+")" , '', '', '周一'+"("+this.days[7]+")" , '', '', '周二'+"("+this.days[8]+")" , '', '', '周三'+"("+this.days[9]+")" , '', '', '周四'+"("+this.days[10]+")" , '', '', '周五'+"("+this.days[11]+")" , '', '', '周六'+"("+this.days[12]+")" , '', '', '周日'+"("+this.days[13]+")", '', '', '周一'+"("+this.days[14]+")", '', '', '周二'+"("+this.days[15]+")", '', '', '周三'+"("+this.days[16]+")", '', '', '周四'+"("+this.days[17]+")", '', '', '周五'+"("+this.days[18]+")", '', '', '周六'+"("+this.days[19]+")", '', '', '周日'+"("+this.days[20]+")", '', '']]
535
+            //  const header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
536
+            //  const merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1', 'X1:Z1', 'AA1:AC1', 'AD1:AF1', 'AG1:AI1', 'AJ1:AL1', 'AM1:AO1', 'AP1:AR1', 'AS1:AU1', 'AV1:AX1', 'AY1:BA1', 'BB1:BD1', 'BE1:BG1', 'BH1:BJ1', 'BK1:BM1']
537
+            const multiHeader = [['区号', '机号', '周一'+"("+this.newDay[0]+")" , '', '', '周二'+"("+this.newDay[1]+")", '', '', '周三'+"("+this.newDay[2]+")" , '', '', '周四'+"("+this.newDay[3]+")" , '', '', '周五'+"("+this.newDay[4]+")" , '', '', '周六'+"("+this.newDay[5]+")" , '', '', '周日'+"("+this.newDay[6]+")" , '', '']]
538
+             const header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
535 539
              const merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1', 'X1:Z1', 'AA1:AC1', 'AD1:AF1', 'AG1:AI1', 'AJ1:AL1', 'AM1:AO1', 'AP1:AR1', 'AS1:AU1', 'AV1:AX1', 'AY1:BA1', 'BB1:BD1', 'BE1:BG1', 'BH1:BJ1', 'BK1:BM1']
536
-            var list = []
540
+           var list = []
537 541
             let i = 0
538 542
             for (let key  in this.partitions) {
539 543
               var tempValue
@@ -664,7 +668,8 @@
664 668
         for (let key in results[0]) {
665 669
           headers.push(key)
666 670
         }
667
-        if (results.length > 0) {
671
+        if (header.length == 65) {
672
+          console.log("进来了吗")
668 673
           var isHas_1 = headers.includes('区号')
669 674
           console.log("1"+isHas_1)
670 675
           var isHas_2 = headers.includes('机号')
@@ -889,9 +894,93 @@
889 894
             this.dialogVisible = true
890 895
             return
891 896
           }
892
-        } else {
897
+        }else if(header.length == 23){
898
+            var isHas_1 = headers.includes('区号')
899
+          console.log("1"+isHas_1)
900
+          var isHas_2 = headers.includes('机号')
901
+          console.log("2"+isHas_2)
902
+
903
+
904
+          var isHas_3 = headers.includes('周一'+"("+this.days[0]+")")
905
+          console.log("3"+isHas_3)
906
+
907
+
908
+          var isHas_4 = headers.includes('')
909
+          console.log("4"+isHas_4)
910
+
911
+
912
+          var isHas_5 = headers.includes('_1')
913
+          console.log("5"+isHas_5)
914
+
915
+          var isHas_6 = headers.includes('周二'+"("+this.days[1]+")")
916
+          console.log("6"+isHas_6)
917
+
918
+          var isHas_7 = headers.includes('_2')
919
+          console.log("7"+isHas_7)
920
+
921
+          var isHas_8 = headers.includes('_3')
922
+          console.log("8"+isHas_8)
923
+
924
+          var isHas_9 = headers.includes('周三'+"("+this.days[2]+")")
925
+          console.log("9"+isHas_9)
926
+
927
+          var isHas_10 = headers.includes('_4')
928
+          console.log("10"+isHas_10)
929
+
930
+          var isHas_11 = headers.includes('_5')
931
+          console.log("11"+isHas_11)
932
+
933
+          var isHas_12 = headers.includes('周四'+"("+this.days[3]+")")
934
+          console.log("12"+isHas_12)
935
+
936
+          var isHas_13 = headers.includes('_6')
937
+          console.log("13"+isHas_13)
938
+
939
+          var isHas_14 = headers.includes('_7')
940
+          console.log("14"+isHas_14)
941
+
942
+          var isHas_15 = headers.includes('周五'+"("+this.days[4]+")")
943
+          console.log("15"+isHas_15)
944
+
945
+          var isHas_16 = headers.includes('_8')
946
+          console.log("16"+isHas_16)
947
+
948
+
949
+          var isHas_17 = headers.includes('_9')
950
+          console.log("17"+isHas_17)
951
+
952
+
953
+          var isHas_18 = headers.includes('周六'+"("+this.days[5]+")")
954
+          console.log("18"+isHas_18)
955
+
956
+
957
+          var isHas_19 = headers.includes('_10')
958
+          console.log("19"+isHas_19)
959
+
960
+
961
+          var isHas_20 = headers.includes('_11')
962
+          console.log("20"+isHas_20)
963
+
964
+
965
+          var isHas_21 = headers.includes('周日'+"("+this.days[6]+")")
966
+          console.log("21"+isHas_21)
893 967
 
968
+          var isHas_22 = headers.includes('_12')
969
+          console.log("22"+isHas_22)
894 970
 
971
+          var isHas_23 = headers.includes('_13')
972
+          console.log("23"+isHas_23)
973
+         
974
+         if (!(isHas_1 && isHas_2 && isHas_3 && isHas_4 && isHas_5 &&
975
+            isHas_6 && isHas_7 && isHas_8 && isHas_9 && isHas_10 &&
976
+            isHas_11 && isHas_12 && isHas_13 && isHas_14 && isHas_15 &&
977
+            isHas_16 && isHas_17 && isHas_18 && isHas_19 && isHas_20 &&
978
+            isHas_21)) {
979
+            this.dialogVisible = true
980
+            return
981
+          }
982
+
983
+        } else {
895 984
 
896 985
           this.dialogVisible = true
897 986
           return
@@ -2071,97 +2160,128 @@
2071 2160
                 
2072 2161
                   obj['区号'] = partitions[key].name
2073 2162
                   obj['机号'] = jihaos[b].number.toString()
2163
+                
2164
+                if(this.export_type == 0){
2165
+                    obj['shangwu'] = ''
2166
+                    obj['xiawu'] = ''
2167
+                    obj['wanshang'] = ''
2074 2168
 
2169
+                    obj['shangwu1'] = ''
2170
+                    obj['xiawu1'] = ''
2171
+                    obj['wanshang1'] = ''
2075 2172
 
2076
-                  obj['shangwu'] = ''
2077
-                  obj['xiawu'] = ''
2078
-                  obj['wanshang'] = ''
2173
+                    obj['shangwu2'] = ''
2174
+                    obj['xiawu2'] = ''
2175
+                    obj['wanshang2'] = ''
2079 2176
 
2080
-                  obj['shangwu1'] = ''
2081
-                  obj['xiawu1'] = ''
2082
-                  obj['wanshang1'] = ''
2177
+                    obj['shangwu3'] = ''
2178
+                    obj['xiawu3'] = ''
2179
+                    obj['wanshang3'] = ''
2083 2180
 
2084
-                  obj['shangwu2'] = ''
2085
-                  obj['xiawu2'] = ''
2086
-                  obj['wanshang2'] = ''
2181
+                    obj['shangwu4'] = ''
2182
+                    obj['xiawu4'] = ''
2183
+                    obj['wanshang4'] = ''
2087 2184
 
2088
-                  obj['shangwu3'] = ''
2089
-                  obj['xiawu3'] = ''
2090
-                  obj['wanshang3'] = ''
2091 2185
 
2092
-                  obj['shangwu4'] = ''
2093
-                  obj['xiawu4'] = ''
2094
-                  obj['wanshang4'] = ''
2186
+                    obj['shangwu5'] = ''
2187
+                    obj['xiawu5'] = ''
2188
+                    obj['wanshang5'] = ''
2095 2189
 
2190
+                    obj['shangwu6'] = ''
2191
+                    obj['xiawu6'] = ''
2192
+                    obj['wanshang6'] = ''
2096 2193
 
2097
-                  obj['shangwu5'] = ''
2098
-                  obj['xiawu5'] = ''
2099
-                  obj['wanshang5'] = ''
2194
+                    obj['shangwu7'] = ''
2195
+                    obj['xiawu7'] = ''
2196
+                    obj['wanshang7'] = ''
2100 2197
 
2101
-                  obj['shangwu6'] = ''
2102
-                  obj['xiawu6'] = ''
2103
-                  obj['wanshang6'] = ''
2198
+                    obj['shangwu8'] = ''
2199
+                    obj['xiawu8'] = ''
2200
+                    obj['wanshang8'] = ''
2104 2201
 
2105
-                  obj['shangwu7'] = ''
2106
-                  obj['xiawu7'] = ''
2107
-                  obj['wanshang7'] = ''
2202
+                    obj['shangwu9'] = ''
2203
+                    obj['xiawu9'] = ''
2204
+                    obj['wanshang9'] = ''
2108 2205
 
2109
-                  obj['shangwu8'] = ''
2110
-                  obj['xiawu8'] = ''
2111
-                  obj['wanshang8'] = ''
2206
+                    obj['shangwu10'] = ''
2207
+                    obj['xiawu10'] = ''
2208
+                    obj['wanshang10'] = ''
2112 2209
 
2113
-                  obj['shangwu9'] = ''
2114
-                  obj['xiawu9'] = ''
2115
-                  obj['wanshang9'] = ''
2210
+                    obj['shangwu11'] = ''
2211
+                    obj['xiawu11'] = ''
2212
+                    obj['wanshang11'] = ''
2116 2213
 
2117
-                  obj['shangwu10'] = ''
2118
-                  obj['xiawu10'] = ''
2119
-                  obj['wanshang10'] = ''
2120 2214
 
2121
-                  obj['shangwu11'] = ''
2122
-                  obj['xiawu11'] = ''
2123
-                  obj['wanshang11'] = ''
2215
+                    obj['shangwu12'] = ''
2216
+                    obj['xiawu12'] = ''
2217
+                    obj['wanshang12'] = ''
2124 2218
 
2219
+                    obj['shangwu13'] = ''
2220
+                    obj['xiawu13'] = ''
2221
+                    obj['wanshang13'] = ''
2125 2222
 
2126
-                  obj['shangwu12'] = ''
2127
-                  obj['xiawu12'] = ''
2128
-                  obj['wanshang12'] = ''
2129 2223
 
2130
-                  obj['shangwu13'] = ''
2131
-                  obj['xiawu13'] = ''
2132
-                  obj['wanshang13'] = ''
2224
+                    obj['shangwu14'] = ''
2225
+                    obj['xiawu14'] = ''
2226
+                    obj['wanshang14'] = ''
2133 2227
 
2134 2228
 
2135
-                  obj['shangwu14'] = ''
2136
-                  obj['xiawu14'] = ''
2137
-                  obj['wanshang14'] = ''
2229
+                    obj['shangwu15'] = ''
2230
+                    obj['xiawu15'] = ''
2231
+                    obj['wanshang15'] = ''
2138 2232
 
2233
+                    obj['shangwu16'] = ''
2234
+                    obj['xiawu16'] = ''
2235
+                    obj['wanshang16'] = ''
2139 2236
 
2140
-                  obj['shangwu15'] = ''
2141
-                  obj['xiawu15'] = ''
2142
-                  obj['wanshang15'] = ''
2237
+                    obj['shangwu17'] = ''
2238
+                    obj['xiawu17'] = ''
2239
+                    obj['wanshang17'] = ''
2143 2240
 
2144
-                  obj['shangwu16'] = ''
2145
-                  obj['xiawu16'] = ''
2146
-                  obj['wanshang16'] = ''
2241
+                    obj['shangwu18'] = ''
2242
+                    obj['xiawu18'] = ''
2243
+                    obj['wanshang18'] = ''
2147 2244
 
2148
-                  obj['shangwu17'] = ''
2149
-                  obj['xiawu17'] = ''
2150
-                  obj['wanshang17'] = ''
2245
+                    obj['shangwu19'] = ''
2246
+                    obj['xiawu19'] = ''
2247
+                    obj['wanshang19'] = ''
2151 2248
 
2152
-                  obj['shangwu18'] = ''
2153
-                  obj['xiawu18'] = ''
2154
-                  obj['wanshang18'] = ''
2155 2249
 
2156
-                  obj['shangwu19'] = ''
2157
-                  obj['xiawu19'] = ''
2158
-                  obj['wanshang19'] = ''
2250
+                    obj['shangwu20'] = ''
2251
+                    obj['xiawu20'] = ''
2252
+                    obj['wanshang20'] = ''
2253
+                }
2254
+                
2255
+                 if(this.export_type == 1){
2256
+                    obj['shangwu'] = ''
2257
+                    obj['xiawu'] = ''
2258
+                    obj['wanshang'] = ''
2159 2259
 
2260
+                    obj['shangwu1'] = ''
2261
+                    obj['xiawu1'] = ''
2262
+                    obj['wanshang1'] = ''
2160 2263
 
2161
-                  obj['shangwu20'] = ''
2162
-                  obj['xiawu20'] = ''
2163
-                  obj['wanshang20'] = ''
2264
+                    obj['shangwu2'] = ''
2265
+                    obj['xiawu2'] = ''
2266
+                    obj['wanshang2'] = ''
2164 2267
 
2268
+                    obj['shangwu3'] = ''
2269
+                    obj['xiawu3'] = ''
2270
+                    obj['wanshang3'] = ''
2271
+
2272
+                    obj['shangwu4'] = ''
2273
+                    obj['xiawu4'] = ''
2274
+                    obj['wanshang4'] = ''
2275
+
2276
+
2277
+                    obj['shangwu5'] = ''
2278
+                    obj['xiawu5'] = ''
2279
+                    obj['wanshang5'] = ''
2280
+
2281
+                    obj['shangwu6'] = ''
2282
+                    obj['xiawu6'] = ''
2283
+                    obj['wanshang6'] = ''
2284
+                 }
2165 2285
                   list.push(obj)
2166 2286
 
2167 2287
                 }