浏览代码

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

csx 4 年前
父节点
当前提交
bd81c23a14
共有 41 个文件被更改,包括 2866 次插入734 次删除
  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 查看文件

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

+ 9 - 0
src/api/drug/drug_stock.js 查看文件

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 查看文件

602
     method:"post",
602
     method:"post",
603
     data:params
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 查看文件

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

src/xt_pages/components/DrugExcel/index.vue → src/xt_pages/components/GoodExcel/index.vue 查看文件

1
 <template>
1
 <template>
2
   <div>
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
     <el-button :loading="loading" style="margin-left:16px;" size="mini" type="primary" @click="handleUpload">导入模板
4
     <el-button :loading="loading" style="margin-left:16px;" size="mini" type="primary" @click="handleUpload">导入模板
5
     </el-button>
5
     </el-button>
6
   </div>
6
   </div>
54
         e.dataTransfer.dropEffect = 'copy'
54
         e.dataTransfer.dropEffect = 'copy'
55
       },
55
       },
56
       handleUpload() {
56
       handleUpload() {
57
-        document.getElementById('excel-drug-input').click()
57
+        document.getElementById('excel-good-input').click()
58
       },
58
       },
59
       handleClick(e) {
59
       handleClick(e) {
60
         const files = e.target.files
60
         const files = e.target.files
63
         this.upload(rawFile)
63
         this.upload(rawFile)
64
       },
64
       },
65
       upload(rawFile) {
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
         if (!this.beforeUpload) {
68
         if (!this.beforeUpload) {
69
           this.readerData(rawFile)
69
           this.readerData(rawFile)
127
 </script>
127
 </script>
128
 
128
 
129
 <style scoped>
129
 <style scoped>
130
-  #excel-project-input {
130
+  #excel-good-input {
131
     display: none;
131
     display: none;
132
     z-index: -9999;
132
     z-index: -9999;
133
   }
133
   }

+ 79 - 29
src/xt_pages/data/components/addDrugs.vue 查看文件

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

+ 69 - 93
src/xt_pages/data/components/consumables.vue 查看文件

66
      <div style="display:flex; align-items:center;margin-bottom:10px;">
66
      <div style="display:flex; align-items:center;margin-bottom:10px;">
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>
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
         <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>
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
                  style="margin-left:15px">
70
                  style="margin-left:15px">
71
           <el-button
71
           <el-button
72
             class="filter-item"
72
             class="filter-item"
75
           >下载模版
75
           >下载模版
76
           </el-button>
76
           </el-button>
77
         </el-link>
77
         </el-link>
78
-        <upload-excel :on-success='handleSuccess'></upload-excel>
78
+        <good-excel :on-success='handleSuccess'></good-excel>
79
         <el-button
79
         <el-button
80
           style="margin-left:10px;"
80
           style="margin-left:10px;"
81
           @click="generateLog()"
81
           @click="generateLog()"
82
           class="filter-item"
82
           class="filter-item"
83
           type="primary"
83
           type="primary"
84
           size="small"
84
           size="small"
85
-        >下载日志 -->
85
+        >下载日志
86
         </el-button>
86
         </el-button>
87
       </div>
87
       </div>
88
 
88
 
241
     GetGoodInfoByGoodId,
241
     GetGoodInfoByGoodId,
242
     getGoodInfoList,
242
     getGoodInfoList,
243
     modifyGoodInfo,
243
     modifyGoodInfo,
244
-    postGoodInformation
244
+    postGoodInformation,
245
+    getInitializtion
245
   } from '@/api/stock'
246
   } from '@/api/stock'
246
   import UploadExcel from '@/xt_pages/components/UploadExcel'
247
   import UploadExcel from '@/xt_pages/components/UploadExcel'
248
+  import GoodExcel from '@/xt_pages/components/GoodExcel'
247
   import { generateLog } from '@/api/config'
249
   import { generateLog } from '@/api/config'
248
   export default {
250
   export default {
249
     components: {
251
     components: {
250
       GoodInfoDailog,
252
       GoodInfoDailog,
251
       selfPayment,
253
       selfPayment,
252
       UploadExcel,
254
       UploadExcel,
255
+      GoodExcel
253
     },
256
     },
254
     data() {
257
     data() {
255
       return {
258
       return {
350
         dealers:[],
353
         dealers:[],
351
         exportLogVisible:false,
354
         exportLogVisible:false,
352
         logs: [],
355
         logs: [],
356
+        goodKindList:[]
353
       }
357
       }
354
     },
358
     },
355
     methods: {
359
     methods: {
458
         return ""
462
         return ""
459
       },
463
       },
460
       getGoodKind(id){
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
         var name = ""
468
         var name = ""
463
         for(let i = 0; i < data.length; i++){
469
         for(let i = 0; i < data.length; i++){
464
-          if(id == data[i].id){
470
+          if(id == data[i].value){
465
             name = data[i].name
471
             name = data[i].name
466
           }
472
           }
467
 
473
 
531
               response.data.data.goodInfo.good_type_id
537
               response.data.data.goodInfo.good_type_id
532
 
538
 
533
 
539
 
534
-
535
-
536
             this.goodInfo.goodInfoDialog.formValue.good_name =
540
             this.goodInfo.goodInfoDialog.formValue.good_name =
537
               response.data.data.goodInfo.good_name
541
               response.data.data.goodInfo.good_name
538
 
542
 
552
                 response.data.data.goodInfo.good_kind
556
                 response.data.data.goodInfo.good_kind
553
             }
557
             }
554
 
558
 
555
-
556
-
557
             if (response.data.data.goodInfo.medical_insurance_level <= 0) {
559
             if (response.data.data.goodInfo.medical_insurance_level <= 0) {
558
               this.goodInfo.goodInfoDialog.formValue.medical_insurance_level = ''
560
               this.goodInfo.goodInfoDialog.formValue.medical_insurance_level = ''
559
             } else {
561
             } else {
723
           is_mark:this.is_record,
725
           is_mark:this.is_record,
724
           manufacturer:this.manufacturer,
726
           manufacturer:this.manufacturer,
725
         }
727
         }
726
-        console.log("222222",params)
728
+      
727
         getGoodInfoList(params).then(response => {
729
         getGoodInfoList(params).then(response => {
728
           if (response.data.state == 0) {
730
           if (response.data.state == 0) {
729
             this.goodInfo.loading = false
731
             this.goodInfo.loading = false
767
         })
769
         })
768
       },
770
       },
769
       goodInfoDialogComfirm: function(val) {
771
       goodInfoDialogComfirm: function(val) {
772
+       
770
         if (val.isCreated == 2) {
773
         if (val.isCreated == 2) {
771
           //修改
774
           //修改
772
           val['id'] = this.goodInfo.editGoodId
775
           val['id'] = this.goodInfo.editGoodId
773
           val['good_code'] = this.goodInfo.good_code
776
           val['good_code'] = this.goodInfo.good_code
777
+        
778
+          
774
 
779
 
780
+
781
+          
775
           modifyGoodInfo(val).then(response => {
782
           modifyGoodInfo(val).then(response => {
776
             if (response.data.state == 0) {
783
             if (response.data.state == 0) {
777
               // this.$message.error(response.data.msg)
784
               // this.$message.error(response.data.msg)
803
             }
810
             }
804
           })
811
           })
805
         } else if (val.isCreated == 1) {
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
           createGoodInfo(val).then(response => {
828
           createGoodInfo(val).then(response => {
808
             if (response.data.state == 0) {
829
             if (response.data.state == 0) {
881
               )
902
               )
882
               this.manufacturers.push(response.data.data.manufacturer[i])
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
               ids.push(this.selectDrug[index].id);
1038
               ids.push(this.selectDrug[index].id);
1018
               idMap[this.selectDrug[index].id] = this.selectDrug[index].id;
1039
               idMap[this.selectDrug[index].id] = this.selectDrug[index].id;
1019
             }
1040
             }
1020
-            console.log('ids222222222',ids)
1041
+          
1021
             var idss = ids.join(',')
1042
             var idss = ids.join(',')
1022
             let params = {
1043
             let params = {
1023
               ids:idss,
1044
               ids:idss,
1024
               admin_user_id:this.$store.getters.xt_user.user.id
1045
               admin_user_id:this.$store.getters.xt_user.user.id
1025
             }
1046
             }
1026
-            console.log("paramsw2",params)
1047
+          
1027
 
1048
 
1028
             var that = this
1049
             var that = this
1029
             axios.get('http://127.0.0.1:9532/sz/api/goods/get',{ params: params }).then(function(response) {
1050
             axios.get('http://127.0.0.1:9532/sz/api/goods/get',{ params: params }).then(function(response) {
1077
          this.getList()
1098
          this.getList()
1078
       },
1099
       },
1079
       handleSuccess({ results, header }) {
1100
       handleSuccess({ results, header }) {
1080
-        console.log("header",header)
1081
-        var goods = []
1101
+       
1082
         if (header != undefined && header.length > 0) {
1102
         if (header != undefined && header.length > 0) {
1083
             
1103
             
1084
           var isHasMedicalInsuranceLevel = header.includes('*医保等级')
1104
           var isHasMedicalInsuranceLevel = header.includes('*医保等级')
1085
-          // console.log("医保等级",isHasMedicalInsuranceLevel)
1105
+         
1086
           var isHasGoodUnit = header.includes('*单位')
1106
           var isHasGoodUnit = header.includes('*单位')
1087
-          // console.log("单位",isHasGoodUnit)
1107
+        
1088
           var isHasStockWarnCount = header.includes('*库存警戒')
1108
           var isHasStockWarnCount = header.includes('*库存警戒')
1089
-          // console.log("库存警戒",isHasStockWarnCount)
1109
+       
1090
           var isHasManuFacturer =  header.includes('*生产厂商')
1110
           var isHasManuFacturer =  header.includes('*生产厂商')
1091
-          // console.log("生产厂商",isHasManuFacturer)
1092
-          var isHasDealer =  header.includes('*经销商')
1093
-          // console.log("经销商",isHasDealer)
1111
+         
1094
           var isHasGoodName = header.includes('*耗材名称')
1112
           var isHasGoodName = header.includes('*耗材名称')
1095
-          // console.log("耗材名称",isHasGoodName)
1113
+        
1096
           var isHasGoodKand = header.includes('*耗材种类')
1114
           var isHasGoodKand = header.includes('*耗材种类')
1097
-          // console.log("耗材种类",isHasGoodKand)
1115
+          
1098
           var isHasSpecificationName = header.includes('*规格型号')
1116
           var isHasSpecificationName = header.includes('*规格型号')
1099
-          // console.log("规格型号",isHasSpecificationName)
1117
+        
1100
           var isHasBuyPrice = header.includes('*零价')
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
             this.dialogVisible = true
1121
             this.dialogVisible = true
1105
             return
1122
             return
1106
           }
1123
           }
1110
         }
1127
         }
1111
        
1128
        
1112
        var tableData = []
1129
        var tableData = []
1113
-       for(let i=0;i<results.length;i++){
1130
+       for(let i=1;i<results.length;i++){
1114
          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}
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
          for (var key in results[i]) {
1132
          for (var key in results[i]) {
1116
 
1133
 
1186
               }
1203
               }
1187
            }
1204
            }
1188
 
1205
 
1189
-           if (results[i]['*经销商'] === undefined) {
1206
+           if (results[i]['经销商'] === undefined) {
1190
                 obj['dealer'] = ''
1207
                 obj['dealer'] = ''
1191
               } else {
1208
               } else {
1192
-             if (key == '*经销商') {
1209
+             if (key == '经销商') {
1193
                obj['dealer'] = results[i][key].replace(/\s/g,"")
1210
                obj['dealer'] = results[i][key].replace(/\s/g,"")
1194
               }
1211
               }
1195
            }
1212
            }
1294
 
1311
 
1295
          }
1312
          }
1296
          tableData.push(obj)
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
         var goodUnit =  this.$store.getters.good_unit
1314
         var goodUnit =  this.$store.getters.good_unit
1310
        
1315
        
1311
 
1316
 
1312
         for(let i=0;i<tableData.length;i++){ 
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
          for(let c=0;c<goodUnit.length;c++){
1319
          for(let c=0;c<goodUnit.length;c++){
1352
             if(tableData[i].good_unit == goodUnit[c].name){
1320
             if(tableData[i].good_unit == goodUnit[c].name){
1353
                tableData[i].unit_id = goodUnit[c].id
1321
                tableData[i].unit_id = goodUnit[c].id
1377
          
1345
          
1378
 
1346
 
1379
           if(tableData[i].special_medical == "是"){
1347
           if(tableData[i].special_medical == "是"){
1380
-             tableData[i].special_medical = 1
1348
+             tableData[i].special_medical = "1"
1381
           }
1349
           }
1382
           if(tableData[i].special_medical == "否"){
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
        for(let i=0;i<tableData.length;i++){
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
           if(tableData[i].is_special_diseases == ""){
1357
           if(tableData[i].is_special_diseases == ""){
1397
              tableData[i].is_special_diseases = 0
1358
              tableData[i].is_special_diseases = 0
1398
           }else{
1359
           }else{
1411
        let params = {
1372
        let params = {
1412
           'goods':tableData 
1373
           'goods':tableData 
1413
         }
1374
         }
1414
-       console.log("params2222",params)
1375
+     
1415
        
1376
        
1416
        
1377
        
1417
         postGoodInformation(params).then(response=>{
1378
         postGoodInformation(params).then(response=>{
1418
            if(response.data.state == 1){
1379
            if(response.data.state == 1){
1419
              var msg =  response.data.data.msg
1380
              var msg =  response.data.data.msg
1420
              this.$message.success("导入成功!")
1381
              this.$message.success("导入成功!")
1382
+             this.getList()
1383
+             this.getInitializtion()
1421
            }else{
1384
            }else{
1422
-             this.$message.error("导入失败")
1385
+             this.$message.error("导入失败,请下载日志查看")
1423
            }
1386
            }
1424
         })
1387
         })
1425
       },
1388
       },
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
     created() {
1453
     created() {
1479
       this.getList()
1454
       this.getList()
1481
       this.getAllManufacturer()
1456
       this.getAllManufacturer()
1482
       this.getAllGoodType()
1457
       this.getAllGoodType()
1483
       this.goodInfo.goodInfoDialog.formValue.goodUnit = this.$store.getters.good_unit
1458
       this.goodInfo.goodInfoDialog.formValue.goodUnit = this.$store.getters.good_unit
1459
+      this.getInitializtion()
1484
     }
1460
     }
1485
   }
1461
   }
1486
 </script>
1462
 </script>

+ 92 - 109
src/xt_pages/data/components/drugs.vue 查看文件

64
     <div style="display:flex; align-items:center;margin-bottom:10px;">
64
     <div style="display:flex; align-items:center;margin-bottom:10px;">
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>
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
         <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>
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
                  style="margin-left:15px">
68
                  style="margin-left:15px">
69
           <el-button
69
           <el-button
70
             class="filter-item"
70
             class="filter-item"
81
           type="primary"
81
           type="primary"
82
           size="small"
82
           size="small"
83
         >下载日志
83
         >下载日志
84
-        </el-button> -->
84
+        </el-button>
85
       </div>
85
       </div>
86
     <el-table :data="list" border style="width: 100%" :row-style="{ color: '#303133' }"
86
     <el-table :data="list" border style="width: 100%" :row-style="{ color: '#303133' }"
87
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}"
87
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}"
480
         return name
480
         return name
481
       },
481
       },
482
       goodInfoDialogComfirm: function(val) {
482
       goodInfoDialogComfirm: function(val) {
483
-
483
+        
484
         //修改自备药
484
         //修改自备药
485
         var untit = ""
485
         var untit = ""
486
         var untis = getDataConfig('hemodialysis','units')
486
         var untis = getDataConfig('hemodialysis','units')
487
-        console.log("999999",untis)
487
+        
488
         for(let i=0;i<untis.length;i++){
488
         for(let i=0;i<untis.length;i++){
489
            if(val.min_unit == untis[i].id){
489
            if(val.min_unit == untis[i].id){
490
               untit = untis[i].name
490
               untit = untis[i].name
505
           })
505
           })
506
         } else if (val.id == 0) {
506
         } else if (val.id == 0) {
507
           //新增
507
           //新增
508
-          console.log("vale222222",val)
508
+         
509
 
509
 
510
           createBaseDrugLib(val).then(response => {
510
           createBaseDrugLib(val).then(response => {
511
             if (response.data.state == 0) {
511
             if (response.data.state == 0) {
560
               this.$message.error(response.data.msg)
560
               this.$message.error(response.data.msg)
561
               return false
561
               return false
562
             } else {
562
             } else {
563
-              console.log("数据", response.data.data.drug)
563
+           
564
               for (let key in response.data.data.drug) {
564
               for (let key in response.data.data.drug) {
565
                 this.formValue[key] = response.data.data.drug[key]
565
                 this.formValue[key] = response.data.data.drug[key]
566
               }
566
               }
673
               if(this.formValue.hosp_appr_flag == 0){
673
               if(this.formValue.hosp_appr_flag == 0){
674
                 this.formValue.hosp_appr_flag = ""
674
                 this.formValue.hosp_appr_flag = ""
675
               }
675
               }
676
+              
676
               this.$refs.addDrugs.show(id, this.formValue)
677
               this.$refs.addDrugs.show(id, this.formValue)
677
 
678
 
678
             }
679
             }
686
       },
687
       },
687
 
688
 
688
        deleteDurg(id,index){
689
        deleteDurg(id,index){
689
-         console.log("id",id)
690
+      
690
             this.$confirm('确认删除吗?', '删除', {
691
             this.$confirm('确认删除吗?', '删除', {
691
             confirmButtonText: '确 定',
692
             confirmButtonText: '确 定',
692
             cancelButtonText: '取 消',
693
             cancelButtonText: '取 消',
803
       //   })
804
       //   })
804
       // },
805
       // },
805
       toReturn(id,isMark){
806
       toReturn(id,isMark){
806
-        console.log("id2222",id)
807
+     
807
          var that = this
808
          var that = this
808
          let params = {
809
          let params = {
809
              'id':id,
810
              'id':id,
905
      },
906
      },
906
 
907
 
907
       handleSuccessTwo({ results, header }) {
908
       handleSuccessTwo({ results, header }) {
908
-       console.log("hhhhhhhh",results)
909
+     
909
         if (header != undefined && header.length > 0) {
910
         if (header != undefined && header.length > 0) {
910
             
911
             
911
           var isHasDrugName = header.includes('*药品名称')
912
           var isHasDrugName = header.includes('*药品名称')
912
          
913
          
913
-          var isHasDrugAlias = header.includes('*药品别名')
914
-          
915
           var isHasDrugSpec = header.includes('*药品规格')
914
           var isHasDrugSpec = header.includes('*药品规格')
916
         
915
         
917
           var isHasDrugType =  header.includes('*药品类型')
916
           var isHasDrugType =  header.includes('*药品类型')
936
 
935
 
937
          var isHasManufacturer = header.includes('*生产厂商')
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
             this.dialogVisible = true
943
             this.dialogVisible = true
942
             return
944
             return
943
           }
945
           }
947
         }
949
         }
948
        
950
        
949
        var tableData = []
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
          for (var key in results[i]) {
954
          for (var key in results[i]) {
953
 
955
 
954
            if (results[i]['*药品名称'] === undefined) {
956
            if (results[i]['*药品名称'] === undefined) {
960
            }
962
            }
961
 
963
 
962
 
964
 
963
-           if (results[i]['*药品别名'] === undefined) {
965
+           if (results[i]['药品别名'] === undefined) {
964
                 obj['drug_alias'] = ''
966
                 obj['drug_alias'] = ''
965
               } else {
967
               } else {
966
-           if (key == '*药品别名') {
968
+           if (key == '药品别名') {
967
                obj['drug_alias'] = results[i][key].replace(/\s/g,"")
969
                obj['drug_alias'] = results[i][key].replace(/\s/g,"")
968
               }
970
               }
969
            }
971
            }
1077
               }
1079
               }
1078
            }
1080
            }
1079
 
1081
 
1080
-            if (results[i]['*经销商'] === undefined) {
1082
+            if (results[i]['经销商'] === undefined) {
1081
                 obj['dealer'] = ''
1083
                 obj['dealer'] = ''
1082
               } else {
1084
               } else {
1083
-            if (key == '*经销商') {
1085
+            if (key == '经销商') {
1084
                 obj['dealer'] = results[i][key].replace(/\s/g,"")
1086
                 obj['dealer'] = results[i][key].replace(/\s/g,"")
1085
               }
1087
               }
1086
            }
1088
            }
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
               } else {
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
               }
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
            if (results[i]['开药控制'] === undefined) {
1140
            if (results[i]['开药控制'] === undefined) {
1121
                 obj['drug_control'] = ''
1141
                 obj['drug_control'] = ''
1122
               } else {
1142
               } else {
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
         for(let i=0;i<tableData.length;i++){ 
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
          if(tableData[i].is_special_diseases == ""){
1300
          if(tableData[i].is_special_diseases == ""){
1330
             tableData[i].is_special_diseases = 0
1301
             tableData[i].is_special_diseases = 0
1331
          }
1302
          }
1372
           if(tableData[i].hosp_appr_flag == "审批不通过"){
1343
           if(tableData[i].hosp_appr_flag == "审批不通过"){
1373
               tableData[i].hosp_appr_flag = 3
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
        let params = {
1362
        let params = {
1386
           'drugs':tableData 
1363
           'drugs':tableData 
1387
         }
1364
         }
1388
-       console.log("params2222",params)
1389
-    
1365
+   
1390
         postDrugInformation(params).then(response=>{
1366
         postDrugInformation(params).then(response=>{
1391
            if(response.data.state == 1){
1367
            if(response.data.state == 1){
1392
              var msg =  response.data.data.msg
1368
              var msg =  response.data.data.msg
1369
+             this.getList()
1370
+             this.getAllManufacturer()
1371
+             this.GetAllConfig()
1393
              this.$message.success("导入成功!")
1372
              this.$message.success("导入成功!")
1373
+
1394
            }else{
1374
            }else{
1395
-             this.$message.error("导入失败")
1375
+             this.$message.error("导入失败,请下载日志查看")
1396
            }
1376
            }
1397
         })
1377
         })
1398
       },
1378
       },
1449
       getDictionaryDataConfig(module,filed_name){
1429
       getDictionaryDataConfig(module,filed_name){
1450
         return getDictionaryDataConfig(module,filed_name)
1430
         return getDictionaryDataConfig(module,filed_name)
1451
       },
1431
       },
1432
+     
1452
     },
1433
     },
1453
     created() {
1434
     created() {
1435
+     
1454
       this.getList()
1436
       this.getList()
1455
       this.getAllManufacturer()
1437
       this.getAllManufacturer()
1456
       this.GetAllConfig()
1438
       this.GetAllConfig()
1439
+      
1457
     }
1440
     }
1458
   }
1441
   }
1459
 </script>
1442
 </script>

+ 29 - 9
src/xt_pages/data/components/editProject.vue 查看文件

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

+ 28 - 79
src/xt_pages/data/components/project.vue 查看文件

41
         <div style="display:flex; align-items:center;margin-bottom:10px;">
41
         <div style="display:flex; align-items:center;margin-bottom:10px;">
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>
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
         <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>
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
                  style="margin-left:15px">
45
                  style="margin-left:15px">
46
           <el-button
46
           <el-button
47
             class="filter-item"
47
             class="filter-item"
52
         </el-link>
52
         </el-link>
53
 
53
 
54
         <project-excel :on-success='handleSuccessOne'></project-excel>
54
         <project-excel :on-success='handleSuccessOne'></project-excel>
55
-     
55
+
56
         <el-button
56
         <el-button
57
           style="margin-left:10px;"
57
           style="margin-left:10px;"
58
           @click="generateLog()"
58
           @click="generateLog()"
60
           type="primary"
60
           type="primary"
61
           size="small"
61
           size="small"
62
         >下载日志
62
         >下载日志
63
-        </el-button> -->
63
+        </el-button>
64
       </div>
64
       </div>
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">
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
             <el-table-column
66
             <el-table-column
234
            dialogVisible:false,
234
            dialogVisible:false,
235
            exportLogVisible:false,
235
            exportLogVisible:false,
236
            logs:[]
236
            logs:[]
237
-          
237
+
238
         }
238
         }
239
     },
239
     },
240
     methods:{
240
     methods:{
375
                page:this.page,
375
                page:this.page,
376
                is_mark:this.is_mark,
376
                is_mark:this.is_mark,
377
             }
377
             }
378
-          
378
+
379
           getProjectList(params).then(response=>{
379
           getProjectList(params).then(response=>{
380
              if(response.data.state == 1){
380
              if(response.data.state == 1){
381
                var projecList = response.data.data.projecList
381
                var projecList = response.data.data.projecList
382
-               console.log('projectlist',projecList)
382
+              
383
                this.tableData = projecList
383
                this.tableData = projecList
384
                var total = response.data.data.total
384
                var total = response.data.data.total
385
-               console.log("total",total)
385
+            
386
                this.total = total
386
                this.total = total
387
              }
387
              }
388
           })
388
           })
422
       },
422
       },
423
 
423
 
424
      toReturn(id,isMark){
424
      toReturn(id,isMark){
425
-        console.log("id2222",id)
425
+      
426
          var that = this
426
          var that = this
427
          let params = {
427
          let params = {
428
              'id':id,
428
              'id':id,
430
              'is_mark':isMark,
430
              'is_mark':isMark,
431
              'admin_user_id':this.$store.getters.xt_user.user.id,
431
              'admin_user_id':this.$store.getters.xt_user.user.id,
432
           }
432
           }
433
-          console.log("params22222222",params)
433
+      
434
 
434
 
435
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
435
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
436
           if (response.data.state == 0) {
436
           if (response.data.state == 0) {
483
           ids:idss,
483
           ids:idss,
484
           admin_user_id:this.$store.getters.xt_user.user.id
484
           admin_user_id:this.$store.getters.xt_user.user.id
485
         }
485
         }
486
-       console.log("prams22",params)
486
+      
487
         var that = this
487
         var that = this
488
         axios.get('http://127.0.0.1:9532/sz/api/treatment/get',{ params: params }).then(function(response) {
488
         axios.get('http://127.0.0.1:9532/sz/api/treatment/get',{ params: params }).then(function(response) {
489
          if (response.data.state == 0) {
489
          if (response.data.state == 0) {
512
         getDePartmentList(params).then(response=>{
512
         getDePartmentList(params).then(response=>{
513
             if(response.data.state == 1){
513
             if(response.data.state == 1){
514
             var department =   response.data.data.departMentList
514
             var department =   response.data.data.departMentList
515
-            console.log("科室列表",department)
515
+           
516
             this.departMentList = department
516
             this.departMentList = department
517
             }
517
             }
518
         })
518
         })
519
      },
519
      },
520
       handleSuccessOne({ results, header }) {
520
       handleSuccessOne({ results, header }) {
521
-       
521
+
522
         if (header != undefined && header.length > 0) {
522
         if (header != undefined && header.length > 0) {
523
-            
523
+
524
           var isHasProjectName = header.includes('*项目名称')
524
           var isHasProjectName = header.includes('*项目名称')
525
-        
525
+
526
           var isHasProjectPrice = header.includes('*零价')
526
           var isHasProjectPrice = header.includes('*零价')
527
 
527
 
528
           var isHasProjectUnit = header.includes('*单位')
528
           var isHasProjectUnit = header.includes('*单位')
530
           var isHasProjectCostClassify = header.includes('*费用类别')
530
           var isHasProjectCostClassify = header.includes('*费用类别')
531
 
531
 
532
           var isHasProjectExecutiveSection = header.includes('*执行科室')
532
           var isHasProjectExecutiveSection = header.includes('*执行科室')
533
-         
533
+
534
           var isHasProjectMedicalCoverage = header.includes('*医保等级')
534
           var isHasProjectMedicalCoverage = header.includes('*医保等级')
535
-         
535
+
536
           if (!(isHasProjectName && isHasProjectPrice && isHasProjectUnit && isHasProjectCostClassify && isHasProjectExecutiveSection && isHasProjectMedicalCoverage )) {
536
           if (!(isHasProjectName && isHasProjectPrice && isHasProjectUnit && isHasProjectCostClassify && isHasProjectExecutiveSection && isHasProjectMedicalCoverage )) {
537
             this.dialogVisible = true
537
             this.dialogVisible = true
538
             return
538
             return
541
           this.dialogVisible = true
541
           this.dialogVisible = true
542
           return
542
           return
543
         }
543
         }
544
-       
544
+
545
        var tableData = []
545
        var tableData = []
546
-       for(let i=0;i<results.length;i++){
546
+       for(let i=1;i<results.length;i++){
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}
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
          for (var key in results[i]) {
548
          for (var key in results[i]) {
549
            if (results[i]['*项目名称'] === undefined) {
549
            if (results[i]['*项目名称'] === undefined) {
682
               }
682
               }
683
           }
683
           }
684
 
684
 
685
- 
685
+
686
          if (results[i]['总量'] === undefined) {
686
          if (results[i]['总量'] === undefined) {
687
                 obj['total'] = ''
687
                 obj['total'] = ''
688
               } else {
688
               } else {
710
             if (results[i]['特检项目'] === undefined) {
710
             if (results[i]['特检项目'] === undefined) {
711
                 obj['specail_project'] = ''
711
                 obj['specail_project'] = ''
712
               } else {
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
           }
739
           }
740
          }
740
          }
741
          tableData.push(obj)
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
           if(tableData[i].disease_directory == ""){
746
           if(tableData[i].disease_directory == ""){
787
               tableData[i].disease_directory = 0
747
               tableData[i].disease_directory = 0
805
              tableData[i].is_record = 2
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
           if(tableData[i].category == ""){
770
           if(tableData[i].category == ""){
815
              tableData[i].category = 0
771
              tableData[i].category = 0
845
           if(tableData[i].medical_status == "收费"){
801
           if(tableData[i].medical_status == "收费"){
846
             tableData[i].medical_status = 2
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
        let params = {
806
        let params = {
858
-          'projects':tableData 
807
+          'projects':tableData
859
         }
808
         }
860
-       console.log("params2222",params)
861
-       
809
+       console.log("params222",params)
810
+
862
         postProjectInformation(params).then(response=>{
811
         postProjectInformation(params).then(response=>{
863
            if(response.data.state == 1){
812
            if(response.data.state == 1){
864
              var msg =  response.data.data.msg
813
              var msg =  response.data.data.msg
865
              this.$message.success("导入成功!")
814
              this.$message.success("导入成功!")
866
-             
815
+             this.getlist()
867
            }else{
816
            }else{
868
              this.$message.error("导入失败")
817
              this.$message.error("导入失败")
869
            }
818
            }
892
 
841
 
893
       },
842
       },
894
       getContent(log) {
843
       getContent(log) {
895
-         console.log("日志",log)
844
+       
896
         return '您导入的文档共' + log.total_num + '条患者数据' + ',' + '已成功导入' + log.success_num + '条,导入失败' + log.fail_num + '条,'
845
         return '您导入的文档共' + log.total_num + '条患者数据' + ',' + '已成功导入' + log.success_num + '条,导入失败' + log.fail_num + '条,'
897
       },
846
       },
898
       timestampToTime(timestamp) {
847
       timestampToTime(timestamp) {

+ 23 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_thirty.vue 查看文件

122
                         <tbody>
122
                         <tbody>
123
                             <tr>
123
                             <tr>
124
                                 <td width="70">血管通路:</td>
124
                                 <td width="70">血管通路:</td>
125
-                                <td width="370">
125
+                                <td width="560">
126
                                     <div>
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
                                         &nbsp;
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
                                         <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '长期管')" showValue="长期管"></label-box>
149
                                         <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '长期管')" showValue="长期管"></label-box>
130
                                         &nbsp;
150
                                         &nbsp;
131
                                         <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '临时管')" showValue="临时管"></label-box>
151
                                         <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '临时管')" showValue="临时管"></label-box>
337
                                     <tr>
357
                                     <tr>
338
                                     <td wdith='70'>下机情况:</td>
358
                                     <td wdith='70'>下机情况:</td>
339
                                     <td wdith='30'>凝血:</td>
359
                                     <td wdith='30'>凝血:</td>
340
-                                    <td width="240">
360
+                                    <td width="260">
341
                                         <label-box :isChecked="record.assessment_after_dislysis.cruor?(record.assessment_after_dislysis.cruor.indexOf('无凝血') > -1 ? true : false):false" showValue="无"></label-box>&nbsp;
361
                                         <label-box :isChecked="record.assessment_after_dislysis.cruor?(record.assessment_after_dislysis.cruor.indexOf('无凝血') > -1 ? true : false):false" showValue="无"></label-box>&nbsp;
342
                                         <label-box :isChecked="record.assessment_after_dislysis.cruor?(record.assessment_after_dislysis.cruor.indexOf('有凝血') > -1 ? true : false):false" showValue="有"></label-box>&nbsp;
362
                                         <label-box :isChecked="record.assessment_after_dislysis.cruor?(record.assessment_after_dislysis.cruor.indexOf('有凝血') > -1 ? true : false):false" showValue="有"></label-box>&nbsp;
343
                                         <label-box :isChecked="record.assessment_after_dislysis.cruor?(record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅰ度') > -1 ? true : false):false" showValue="Ⅰ"></label-box>&nbsp;
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 查看文件

106
           <span class="content">{{
106
           <span class="content">{{
107
             target_ultrafiltration != "0" ? target_ultrafiltration : ""
107
             target_ultrafiltration != "0" ? target_ultrafiltration : ""
108
           }}</span>
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
         </li>
111
         </li>
112
         <li v-if="isShow('葡萄糖')">
112
         <li v-if="isShow('葡萄糖')">
113
           <label>葡萄糖 : </label>
113
           <label>葡萄糖 : </label>

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

17
           <span class="content" v-if="actual_ultrafiltration != '0'">{{
17
           <span class="content" v-if="actual_ultrafiltration != '0'">{{
18
             actual_ultrafiltration
18
             actual_ultrafiltration
19
           }}</span>
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
         </li>
22
         </li>
23
         <li v-if="isShow('导管')">
23
         <li v-if="isShow('导管')">
24
           <label>导管 : </label>
24
           <label>导管 : </label>
296
           <span class="content" >{{ this.record.stroke_volume ? this.record.stroke_volume : ""  }}</span>
296
           <span class="content" >{{ this.record.stroke_volume ? this.record.stroke_volume : ""  }}</span>
297
           <span class="unit">{{ this.record.stroke_volume ? "ml" : "" }}</span>
297
           <span class="unit">{{ this.record.stroke_volume ? "ml" : "" }}</span>
298
         </li>
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
       </ul>
303
       </ul>
300
     </div>
304
     </div>
301
     <div class="note">
305
     <div class="note">

+ 10 - 3
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue 查看文件

28
           <el-col :span="8" v-if="isShow('实际超滤量')">
28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29
             <el-form-item
29
             <el-form-item
30
               label="实际超滤量(ml): "
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
               <el-input v-model="form.actual_ultrafiltration"></el-input>
32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33
             </el-form-item>
33
             </el-form-item>
34
             <el-form-item label="实际超滤量(L): " v-else>
34
             <el-form-item label="实际超滤量(L): " v-else>
595
             <el-input v-model="form.other_complication"></el-input>
595
             <el-input v-model="form.other_complication"></el-input>
596
           </el-form-item>
596
           </el-form-item>
597
         </el-col>
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
       </el-form>
603
       </el-form>
604
+         
600
 
605
 
601
       <span slot="footer" class="dialog-footer">
606
       <span slot="footer" class="dialog-footer">
602
         <el-button @click="hide">取 消</el-button>
607
         <el-button @click="hide">取 消</el-button>
748
         supine_diastolic_blood_pressure:'',
753
         supine_diastolic_blood_pressure:'',
749
         diastolic_pressure:'',
754
         diastolic_pressure:'',
750
         additional_weight:'',
755
         additional_weight:'',
751
-        other_complication:''
756
+        other_complication:'',
757
+        ktv:""
752
       }
758
       }
753
     }
759
     }
754
   },
760
   },
952
       data["diastolic_pressure"] = this.form.diastolic_pressure
958
       data["diastolic_pressure"] = this.form.diastolic_pressure
953
       data["additional_weight"] = this.form.additional_weight ? parseFloat(this.form.additional_weight) : 0
959
       data["additional_weight"] = this.form.additional_weight ? parseFloat(this.form.additional_weight) : 0
954
       data["other_complication"] = this.form.other_complication
960
       data["other_complication"] = this.form.other_complication
961
+      data["ktv"] = this.form.ktv
955
       postAssessmentAfterDislysis(ParamsQuery, data)
962
       postAssessmentAfterDislysis(ParamsQuery, data)
956
         .then(response => {
963
         .then(response => {
957
           this.loading = false
964
           this.loading = false

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

67
 
67
 
68
 
68
 
69
            <el-col :span="8"
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
             <el-form-item label="预冲量(ml):">
71
             <el-form-item label="预冲量(ml):">
72
               <el-input
72
               <el-input
73
                 type="number"
73
                 type="number"
77
           </el-col>
77
           </el-col>
78
 
78
 
79
           <el-col :span="8"
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
             <el-form-item label="预冲量(L):">
81
             <el-form-item label="预冲量(L):">
82
               <el-input
82
               <el-input
83
                 type="number"
83
                 type="number"
87
           </el-col>
87
           </el-col>
88
 
88
 
89
           <el-col :span="8"
89
           <el-col :span="8"
90
-                  v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.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
             <el-form-item label="目标超滤量(ml):">
91
             <el-form-item label="目标超滤量(ml):">
92
               <el-input
92
               <el-input
93
                 type="number"
93
                 type="number"
97
           </el-col>
97
           </el-col>
98
 
98
 
99
           <el-col :span="8"
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
             <el-form-item label="目标超滤量(L):">
101
             <el-form-item label="目标超滤量(L):">
102
               <el-input
102
               <el-input
103
                 type="number"
103
                 type="number"
1617
         if (minites < 10) {
1617
         if (minites < 10) {
1618
           minites = '0' + minites
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
         if (pre.anticoagulant == 3) {
1632
         if (pre.anticoagulant == 3) {
1631
         }
1634
         }
1632
         // 入口
1635
         // 入口
1633
         var pre = pre
1636
         var pre = pre
1634
-        console.log("香锅2222222",this.dialysisPrescription)
1635
-        console.log("列表2223323323223",this.schedual)
1636
         this.dialysisPrescription.mode_id = this.$route.query.mode_id
1637
         this.dialysisPrescription.mode_id = this.$route.query.mode_id
1637
         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
         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
           this.zhiShow = true
1639
           this.zhiShow = true

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

164
                   template_id == 32 ||
164
                   template_id == 32 ||
165
                   template_id == 34 ||
165
                   template_id == 34 ||
166
                   template_id == 35 ||
166
                   template_id == 35 ||
167
+                  template_id == 36 ||
167
                   org_id == 9555)
168
                   org_id == 9555)
168
             "
169
             "
169
           >
170
           >
204
                 template_id != 32 &&
205
                 template_id != 32 &&
205
                 template_id != 34 &&
206
                 template_id != 34 &&
206
                 template_id != 35 &&
207
                 template_id != 35 &&
208
+                template_id != 36 &&
207
                 org_id!=9555
209
                 org_id!=9555
208
             "
210
             "
209
           >
211
           >
556
 
558
 
557
           <el-col
559
           <el-col
558
             :span="8"
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
             <el-form-item label="超滤量(ml):">
562
             <el-form-item label="超滤量(ml):">
561
               <el-input v-model="form.ultrafiltration_volume"></el-input>
563
               <el-input v-model="form.ultrafiltration_volume"></el-input>
562
             </el-form-item>
564
             </el-form-item>
564
 
566
 
565
           <el-col
567
           <el-col
566
             :span="8"
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
             <el-form-item label="超滤量(L):">
570
             <el-form-item label="超滤量(L):">
569
               <el-input v-model="form.ultrafiltration_volume"></el-input>
571
               <el-input v-model="form.ultrafiltration_volume"></el-input>
570
             </el-form-item>
572
             </el-form-item>

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

14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
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
           <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>
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
           <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>
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
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>

+ 24 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue 查看文件

523
           >
523
           >
524
         </div>
524
         </div>
525
       </template>
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
     </div>
536
     </div>
527
     <div class="app-container" style="min-height:0;">
537
     <div class="app-container" style="min-height:0;">
528
       <!--<div class="order-print-btn"-->
538
       <!--<div class="order-print-btn"-->
783
             v-if="org_template_info.template_id == 36"
793
             v-if="org_template_info.template_id == 36"
784
           >
794
           >
785
           </DialysisPrintOrderThirtySix>
795
           </DialysisPrintOrderThirtySix>
796
+          <DialysisPrintOrderThirtySeven
797
+            v-bind:childResponse="childResponse"
798
+            v-if="org_template_info.template_id == 37"
799
+          >
800
+          </DialysisPrintOrderThirtySeven>
786
         </div>
801
         </div>
787
       </el-container>
802
       </el-container>
788
     </div>
803
     </div>
838
 import DialysisPrintOrderThirtyFour from "./template/DialysisPrintOrderThirtyFour";
853
 import DialysisPrintOrderThirtyFour from "./template/DialysisPrintOrderThirtyFour";
839
 import DialysisPrintOrderThirtyFive from "./template/DialysisPrintOrderThirtyFive";
854
 import DialysisPrintOrderThirtyFive from "./template/DialysisPrintOrderThirtyFive";
840
 import DialysisPrintOrderThirtySix from "./template/DialysisPrintOrderThirtySix";
855
 import DialysisPrintOrderThirtySix from "./template/DialysisPrintOrderThirtySix";
856
+import DialysisPrintOrderThirtySeven from "./template/DialysisPrintOrderThirtySeven";
841
 export default {
857
 export default {
842
   name: "dialysisPrintOrder",
858
   name: "dialysisPrintOrder",
843
   components: {
859
   components: {
860
+    DialysisPrintOrderThirtySeven,
844
     DialysisPrintOrderThirtySix,
861
     DialysisPrintOrderThirtySix,
845
     DialysisPrintOrderThirtyFive,
862
     DialysisPrintOrderThirtyFive,
846
     DialysisPrintOrderThirtyFour,
863
     DialysisPrintOrderThirtyFour,
1291
           style: style,
1308
           style: style,
1292
           scanStyles: false
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
     printThisOnePage() {
1320
     printThisOnePage() {

+ 26 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderThirty.vue 查看文件

100
           <tbody>
100
           <tbody>
101
             <tr>
101
             <tr>
102
                 <td width="70">血管通路:</td>
102
                 <td width="70">血管通路:</td>
103
-                <td width="370">
103
+                <td width="560">
104
                     <div>
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
                         &nbsp;
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
                         <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('长期管') > -1 ? true : false" showValue="长期管"></label-box>
127
                         <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('长期管') > -1 ? true : false" showValue="长期管"></label-box>
108
                         &nbsp;
128
                         &nbsp;
109
                         <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('临时管') > -1 ? true : false" showValue="临时管"></label-box>
129
                         <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('临时管') > -1 ? true : false" showValue="临时管"></label-box>
112
                         &nbsp;
132
                         &nbsp;
113
                        <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('人造血管') > -1 ? true : false" showValue="人造血管"></label-box>
133
                        <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('人造血管') > -1 ? true : false" showValue="人造血管"></label-box>
114
                         &nbsp;
134
                         &nbsp;
135
+                       <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('扣眼') > -1 ? true : false" showValue="扣眼"></label-box>
136
+                        &nbsp;
115
                     </div>
137
                     </div>
116
                 </td>
138
                 </td>
117
-                <td width='20'></td>
139
+                <td width='10'></td>
118
                 <td width="70">封管用药:</td>
140
                 <td width="70">封管用药:</td>
119
                 <td>
141
                 <td>
120
                     <div class="under-line" style="text-align:left;">&nbsp;{{prescription.remark?prescription.remark:''}}</div>
142
                     <div class="under-line" style="text-align:left;">&nbsp;{{prescription.remark?prescription.remark:''}}</div>
315
                     <tr>
337
                     <tr>
316
                       <td wdith='70'>下机情况:</td>
338
                       <td wdith='70'>下机情况:</td>
317
                       <td wdith='30'>凝血:</td>
339
                       <td wdith='30'>凝血:</td>
318
-                      <td width="240">
340
+                      <td width="250">
319
                           <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('无凝血') > -1 ? true : false):false" showValue="无"></label-box>&nbsp;
341
                           <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('无凝血') > -1 ? true : false):false" showValue="无"></label-box>&nbsp;
320
                           <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('有凝血') > -1 ? true : false):false" showValue="有"></label-box>&nbsp;
342
                           <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('有凝血') > -1 ? true : false):false" showValue="有"></label-box>&nbsp;
321
                           <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('透析器-Ⅰ度') > -1 ? true : false):false" showValue="Ⅰ"></label-box>&nbsp;
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 查看文件

139
           (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : false" showValue="左"></label-box>
139
           (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : false" showValue="左"></label-box>
140
               <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="右"></label-box>)
140
               <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="右"></label-box>)
141
           &nbsp;
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
           &nbsp;
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
           &nbsp;
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
           &nbsp;
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
           &nbsp;
151
           &nbsp;
162
         </div>
152
         </div>
163
       </div>
153
       </div>
311
         </div>
301
         </div>
312
         出血
302
         出血
313
         <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
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
         </div>
307
         </div>
316
         跌倒风险预防措施
308
         跌倒风险预防措施
317
         <div class="inline_block under_line" style="width:100px;text-align: center;">
309
         <div class="inline_block under_line" style="width:100px;text-align: center;">
446
       <table class="print-table" border="1">
438
       <table class="print-table" border="1">
447
         <tbody>
439
         <tbody>
448
           <tr style="height:30px;line-height:30px">
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
             </td>
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
             </td>
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
           </tr>
589
           </tr>
590
+            
591
+          
592
+          
593
+          
553
         </tbody>
594
         </tbody>
554
       </table>
595
       </table>
555
 
596
 

文件差异内容过多而无法显示
+ 1599 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderThirtySeven.vue


+ 42 - 27
src/xt_pages/dialysis/template/DialysisPrintOrderThirtySix.vue 查看文件

2
   <div id="dialysis-print-box-1">
2
   <div id="dialysis-print-box-1">
3
     <div id="dialysis-print-box-1-1" class="dialysis-print-order" style="page-break-after: always;">
3
     <div id="dialysis-print-box-1-1" class="dialysis-print-order" style="page-break-after: always;">
4
       <div class="order-yy-name" style="font-size:24px;">{{ orgname }}</div>
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
       <table class="table-box" style="margin-top: 10px;">
6
       <table class="table-box" style="margin-top: 10px;">
7
         <tbody>
7
         <tbody>
8
           <tr>
8
           <tr>
377
                         <span v-if="prescription.anticoagulant == 7">{{ prescription.anticoagulant_zongliang }}</span>
377
                         <span v-if="prescription.anticoagulant == 7">{{ prescription.anticoagulant_zongliang }}</span>
378
                         </div>
378
                         </div>
379
                     </td>
379
                     </td>
380
-                    <td width='10'>ml</td>
380
+                    <td width='10'>IU</td>
381
 
381
 
382
                     <td width="80">
382
                     <td width="80">
383
                       <label-box :isChecked="prescription.anticoagulant == 1 ? true : false" showValue="无肝素"></label-box>
383
                       <label-box :isChecked="prescription.anticoagulant == 1 ? true : false" showValue="无肝素"></label-box>
386
                     <td width='90'>预设冲管NS</td>
386
                     <td width='90'>预设冲管NS</td>
387
                     <td width='50'>
387
                     <td width='50'>
388
                         <div class="under-line">
388
                         <div class="under-line">
389
-                            &nbsp;
389
+                            &nbsp;{{ prescription.pre_impulse ? prescription.pre_impulse : '' }}
390
                         </div>
390
                         </div>
391
                     </td>
391
                     </td>
392
                     <td width='10'>ml</td>
392
                     <td width='10'>ml</td>
459
                             &nbsp;{{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : ' ' }}
459
                             &nbsp;{{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : ' ' }}
460
                         </div>
460
                         </div>
461
                     </td>
461
                     </td>
462
-                    <td width="10">L</td>
462
+                    <td width="10">ml</td>
463
                     <!-- <td width="50">吸氧:</td>
463
                     <!-- <td width="50">吸氧:</td>
464
                     <td width='80'>
464
                     <td width='80'>
465
                         <div>
465
                         <div>
503
                     <td width='100'>
503
                     <td width='100'>
504
                         <label-box :isChecked="prescription.dialysate_flow == 500" showValue="500ml/min"></label-box>
504
                         <label-box :isChecked="prescription.dialysate_flow == 500" showValue="500ml/min"></label-box>
505
                     </td>
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
                     <td></td>
512
                     <td></td>
507
                   </tr>
513
                   </tr>
508
                 </tbody>
514
                 </tbody>
511
                 <tbody>
517
                 <tbody>
512
                   <tr>
518
                   <tr>
513
                     <td width="80"></td>
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
                     <td width='60'>透析器:</td>
521
                     <td width='60'>透析器:</td>
521
                     <td width='150'>
522
                     <td width='150'>
522
                         <div class="under-line">
523
                         <div class="under-line">
561
             <td width="100">
562
             <td width="100">
562
                 <div>
563
                 <div>
563
                     <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
                     <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
                 </div>
566
                 </div>
566
             </td>
567
             </td>
567
             <td width="70">预冲护士:</td>
568
             <td width="70">预冲护士:</td>
569
 
570
 
570
                 <div>
571
                 <div>
571
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.washpipe_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.washpipe_nurse)}}</span>
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
                 </div>
574
                 </div>
574
             </td>
575
             </td>
575
             <td width="100">穿刺/开管护士:</td>
576
             <td width="100">穿刺/开管护士:</td>
577
 
578
 
578
                 <div>
579
                 <div>
579
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.puncture_nurse)}}</span>
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
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.new_fistula_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.new_fistula_nurse)}}</span>
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
                 </div>
585
                 </div>
585
             </td>
586
             </td>
586
             <td width="70">核对护士:</td>
587
             <td width="70">核对护士:</td>
587
             <td width="100">
588
             <td width="100">
588
 
589
 
589
                 <div>
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
                 </div>
601
                 </div>
593
             </td>
602
             </td>
594
           </tr>
603
           </tr>
616
             <td width="60">钠浓度<br/>mmol/L</td>
625
             <td width="60">钠浓度<br/>mmol/L</td>
617
             <td width="60">电导度<br/>ms/cm</td>
626
             <td width="60">电导度<br/>ms/cm</td>
618
             <td width="40">液温<br/>℃</td>
627
             <td width="40">液温<br/>℃</td>
628
+            <td width="40">ktv</td>
619
             <td width="">特殊处理</td>
629
             <td width="">特殊处理</td>
620
             <td width='60'>执行护士</td>
630
             <td width='60'>执行护士</td>
621
           </tr>
631
           </tr>
662
             <td>
672
             <td>
663
               &nbsp;{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}
673
               &nbsp;{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}
664
             </td>
674
             </td>
675
+            <td>
676
+              &nbsp;{{ monitor.ktv ? monitor.ktv : "" }}
677
+            </td>
665
             <td>
678
             <td>
666
               &nbsp;{{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
679
               &nbsp;{{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
667
             </td>
680
             </td>
668
             <td>
681
             <td>
669
                 <span>
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
                 </span>
685
                 </span>
672
             </td>
686
             </td>
673
 
687
 
704
                         &nbsp;{{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "" }}
718
                         &nbsp;{{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "" }}
705
                       </div>
719
                       </div>
706
                     </td>
720
                     </td>
707
-                    <td width="20">L</td>
721
+                    <td width="20">ml</td>
708
                     <td width="20"></td>
722
                     <td width="20"></td>
709
                     <td width="50">血流量</td>
723
                     <td width="50">血流量</td>
710
                     <td width='140'>
724
                     <td width='140'>
754
                         <label-box :isChecked="afterdialysis.puncture_point_haematoma == 2 ? true : false" showValue="无"></label-box>
768
                         <label-box :isChecked="afterdialysis.puncture_point_haematoma == 2 ? true : false" showValue="无"></label-box>
755
                         <label-box :isChecked="afterdialysis.puncture_point_haematoma == 1 ? true : false" showValue="有"></label-box>
769
                         <label-box :isChecked="afterdialysis.puncture_point_haematoma == 1 ? true : false" showValue="有"></label-box>
756
                     </td>
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
                         <div class="under-line">
774
                         <div class="under-line">
761
-                            &nbsp;
775
+                            &nbsp;{{ afterdialysis.rehydration_volume ? afterdialysis.rehydration_volume : '' }}
762
                         </div>
776
                         </div>
763
-                    </td> -->
777
+                    </td>
778
+                    <td width="20">ml</td>
764
                     <td></td>
779
                     <td></td>
765
                   </tr>
780
                   </tr>
766
                 </tbody>
781
                 </tbody>
917
                     <td width="100">
932
                     <td width="100">
918
                       <div>
933
                       <div>
919
                         <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
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
                       </div>
936
                       </div>
922
                     </td>
937
                     </td>
923
                     <td width="150"></td>
938
                     <td width="150"></td>
926
                       <div>
941
                       <div>
927
                         <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) == ''">
942
                         <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) == ''">
928
                           {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) }}</span>
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
                       </div>
945
                       </div>
931
                     </td>
946
                     </td>
932
                     <td></td>
947
                     <td></td>
965
               {{ getAdminUser(advice.advice_doctor) }}
980
               {{ getAdminUser(advice.advice_doctor) }}
966
             </span>
981
             </span>
967
             <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
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
             </span>
984
             </span>
970
           </td>
985
           </td>
971
           
986
           
976
               {{ getAdminUser(advice.execution_staff) }}
991
               {{ getAdminUser(advice.execution_staff) }}
977
             </span>
992
             </span>
978
             <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
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
             </span>
995
             </span>
981
           </td>
996
           </td>
982
         </tr>
997
         </tr>

+ 38 - 7
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue 查看文件

768
                             </span>
768
                             </span>
769
                         </div>
769
                         </div>
770
                     </td>
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
                     <td width='10'>A:</td>
781
                     <td width='10'>A:</td>
772
                     <td width='50'>
782
                     <td width='50'>
773
                         <div class="under-line">
783
                         <div class="under-line">
783
                         </div>
793
                         </div>
784
                     </td>
794
                     </td>
785
                     <td width='10'>ml</td>
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
                     <td width='70'>医生签名</td>
806
                     <td width='70'>医生签名</td>
787
                     <td width='100'>
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
                     </td>
813
                     </td>
794
-                    
795
-                    <td></td>
796
                   </tr>
814
                   </tr>
797
                 </tbody>
815
                 </tbody>
798
               </table>
816
               </table>
1437
     }
1455
     }
1438
   },
1456
   },
1439
   methods: {
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
     getDialyzerPerfusionApparatus(dialyzer_perfusion_apparatus,name){
1468
     getDialyzerPerfusionApparatus(dialyzer_perfusion_apparatus,name){
1441
       let str = ''
1469
       let str = ''
1442
       if(dialyzer_perfusion_apparatus.indexOf(',') > -1){
1470
       if(dialyzer_perfusion_apparatus.indexOf(',') > -1){
1588
        if(arr[i] == "肝素1.7ml"){
1616
        if(arr[i] == "肝素1.7ml"){
1589
           strname = "肝素1.7ml"
1617
           strname = "肝素1.7ml"
1590
         }
1618
         }
1619
+       if(arr[i] == "肝素4ml"){
1620
+          strname = "肝素4ml"
1621
+        }
1591
       }
1622
       }
1592
       return strname
1623
       return strname
1593
     },
1624
     },

+ 8 - 12
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyNine.vue 查看文件

132
                 <tbody>
132
                 <tbody>
133
                   <tr>
133
                   <tr>
134
                     <td width="70">血管通路:</td>
134
                     <td width="70">血管通路:</td>
135
-                    <td width="460">
135
+                    <td width="480">
136
                       <div>
136
                       <div>
137
                         <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('自体内瘘') > -1 ? true : false" showValue="自体内瘘"></label-box>
137
                         <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('自体内瘘') > -1 ? true : false" showValue="自体内瘘"></label-box>
138
                         &nbsp;
138
                         &nbsp;
297
                             &nbsp;{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "" }}
297
                             &nbsp;{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "" }}
298
                         </div>
298
                         </div>
299
                         </td>
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
                         <td></td>
300
                         <td></td>
308
                     </tr>
301
                     </tr>
309
                     </tbody>
302
                     </tbody>
526
                 <tbody>
519
                 <tbody>
527
                   <tr>
520
                   <tr>
528
                     <!-- <td width="70">其他记录:</td> -->
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
                       </div>
526
                       </div>
534
                     </td>
527
                     </td>
528
+                    <!-- <td width="">
529
+                      
530
+                    </td> -->
535
                   </tr>
531
                   </tr>
536
                 </tbody>
532
                 </tbody>
537
               </table>
533
               </table>

+ 3 - 1
src/xt_pages/outpatientCharges/components/registerDialog.vue 查看文件

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

+ 1 - 1
src/xt_pages/outpatientCharges/newStatementPrint.vue 查看文件

152
 
152
 
153
       },
153
       },
154
       getInfo(order_id) {
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
           var that = this
157
           var that = this
158
 
158
 

+ 4 - 4
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

133
                         </el-button>
133
                         </el-button>
134
 
134
 
135
                         <el-button
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
                                 size="small" @click="open(10)" type="primary"
137
                                 size="small" @click="open(10)" type="primary"
138
                         >退号
138
                         >退号
139
                         </el-button>
139
                         </el-button>
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
           var that = this
648
           var that = this
649
           axios.get('http://127.0.0.1:9532/api/upload/get', {
649
           axios.get('http://127.0.0.1:9532/api/upload/get', {
650
             params: form,
650
             params: form,
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
           axios.get('http://127.0.0.1:9532/api/register/get', {
986
           axios.get('http://127.0.0.1:9532/api/register/get', {
987
             params: forms,
987
             params: forms,
1757
           }
1757
           }
1758
 
1758
 
1759
         } else if (index == 5) {
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
             var that = this
1762
             var that = this
1763
             this.$confirm('是否退费', '退费', {
1763
             this.$confirm('是否退费', '退费', {

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

150
 
150
 
151
     },
151
     },
152
     getInfo(order_id) {
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
         var that = this
155
         var that = this
156
 
156
 

+ 29 - 2
src/xt_pages/outpatientCharges/summary.vue 查看文件

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)">
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
                         </el-button>
108
                         </el-button>
109
+                        <!-- <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button> -->
109
                     </template>
110
                     </template>
110
                 </el-table-column>
111
                 </el-table-column>
111
             </el-table>
112
             </el-table>
156
             <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
157
             <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
157
         </el-dialog>
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
     </div>
169
     </div>
161
 </template>
170
 </template>
171
   import NewStatementPrintTwo from './newStatementPrintTwo'
180
   import NewStatementPrintTwo from './newStatementPrintTwo'
172
   import { fetchAllAdminUsers } from '@/api/doctor'
181
   import { fetchAllAdminUsers } from '@/api/doctor'
173
   import axios from 'axios'
182
   import axios from 'axios'
183
+  // import invoicePrint from './invoicePrint'
174
 
184
 
175
   export default {
185
   export default {
176
     components: {
186
     components: {
178
       NewStatementPrint,
188
       NewStatementPrint,
179
       BreadCrumb,
189
       BreadCrumb,
180
       listPrint,
190
       listPrint,
181
-      allListPrint
191
+      allListPrint,
192
+      // invoicePrint
182
     },
193
     },
183
     data() {
194
     data() {
184
       return {
195
       return {
202
         listVisible: false,
213
         listVisible: false,
203
         allListVisible: false,
214
         allListVisible: false,
204
         adminUserOptions:[],
215
         adminUserOptions:[],
216
+        invoiceVisible:false,
217
+        paramsObj:{},
218
+        invoiceParams:{}
205
 
219
 
206
       }
220
       }
207
     },
221
     },
222
         }
236
         }
223
 
237
 
224
       },toRefund(row){
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
           var that = this
240
           var that = this
227
           this.$confirm('是否退费', '退费', {
241
           this.$confirm('是否退费', '退费', {
228
             confirmButtonText: '确 定',
242
             confirmButtonText: '确 定',
475
         } else if (index == 2) {
489
         } else if (index == 2) {
476
           this.allListVisible = true
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
     }, created() {
506
     }, created() {
480
 
507
 

+ 25 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

360
                 </div>
360
                 </div>
361
               </el-tab-pane>
361
               </el-tab-pane>
362
               <el-tab-pane label="项目组套" name="2">
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
                 <div style="width: 100%;flex:1;overflow-y: auto;">
366
                 <div style="width: 100%;flex:1;overflow-y: auto;">
364
                   <el-table :data="tabPrjectTeam" border
367
                   <el-table :data="tabPrjectTeam" border
365
                             :height="multipleTableHeight != '' ? multipleTableHeight : '200'"
368
                             :height="multipleTableHeight != '' ? multipleTableHeight : '200'"
573
             }
576
             }
574
           }
577
           }
575
         },
578
         },
576
-        hisList:[]
577
-
579
+        hisList:[],
580
+        project_item_keyword:"",
581
+        projectList:[] 
578
       }
582
       }
579
     },
583
     },
580
     methods: {
584
     methods: {
1393
         }
1397
         }
1394
         this.$refs.additionalCharges.hide()
1398
         this.$refs.additionalCharges.hide()
1395
 
1399
 
1396
-      }, searchProjectAction() {
1400
+      }, 
1401
+      searchProjectAction() {
1397
 
1402
 
1398
         if (this.search_project_keyword.length == 0) {
1403
         if (this.search_project_keyword.length == 0) {
1399
           this.tabProject = this.allProject
1404
           this.tabProject = this.allProject
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
       searchAction() {
1432
       searchAction() {
1414
         if (this.search_keyword.length == 0) {
1433
         if (this.search_keyword.length == 0) {
1415
           this.drugs = this.allDrugs
1434
           this.drugs = this.allDrugs
1946
               'prescriptions': this.prescriptions
1965
               'prescriptions': this.prescriptions
1947
             }
1966
             }
1948
             isLoading = true
1967
             isLoading = true
1968
+           
1969
+            
1949
             createHisPrescription(data, params).then(response => {
1970
             createHisPrescription(data, params).then(response => {
1950
               if (response.data.state == 1) {
1971
               if (response.data.state == 1) {
1951
                 this.$emit('change')
1972
                 this.$emit('change')
2498
             var team = response.data.data.team
2519
             var team = response.data.data.team
2499
             console.log("team2222",team)
2520
             console.log("team2222",team)
2500
             this.tabPrjectTeam = team
2521
             this.tabPrjectTeam = team
2522
+            this.projectList = team
2501
           }
2523
           }
2502
         })
2524
         })
2503
       },
2525
       },

+ 19 - 10
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue 查看文件

66
         </div>
66
         </div>
67
         <div class="otherInfo">
67
         <div class="otherInfo">
68
             <div class="otherName">药物过敏史:</div>
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
         </div>
70
         </div>
71
         <div class="otherInfo">
71
         <div class="otherInfo">
72
             <div class="otherName">个人史:</div>
72
             <div class="otherName">个人史:</div>
88
             <div class="otherName">门诊医嘱:</div>
88
             <div class="otherName">门诊医嘱:</div>
89
             <div style="flex:1;">{{history.doctor_advice?history.doctor_advice:''}}</div>
89
             <div style="flex:1;">{{history.doctor_advice?history.doctor_advice:''}}</div>
90
         </div>
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
         </div>
98
         </div>
94
     </div>
99
     </div>
95
 </div>
100
 </div>
110
             educationOptions:[],
115
             educationOptions:[],
111
             departmentList:[],
116
             departmentList:[],
112
             orgname:'',
117
             orgname:'',
113
-            history:{}
118
+            history:{},
119
+            printDate:''
114
         }                   
120
         }                   
115
     },
121
     },
116
     methods:{
122
     methods:{
176
     }
182
     }
177
     },
183
     },
178
     created(){
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
 </script>
197
 </script>

+ 2 - 2
src/xt_pages/outpatientDoctorStation/template/printOne.vue 查看文件

22
           <div class="prescriptionBox">
22
           <div class="prescriptionBox">
23
               <div class="Rp">Rp:</div>
23
               <div class="Rp">Rp:</div>
24
               <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
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
                   <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>
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
               </div>
27
               </div>
28
               <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
28
               <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
30
                </div>
30
                </div>
31
                
31
                
32
               <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
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
                   <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>
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
               </div>
35
               </div>
36
               <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
36
               <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">

+ 154 - 88
src/xt_pages/qcd/basicInformationAnalysis.vue 查看文件

63
           :picker-options="pickerOptions"
63
           :picker-options="pickerOptions"
64
         ></el-date-picker>
64
         ></el-date-picker>
65
       </div>
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
        <div class="cell clearfix" v-show="treatShow">
97
        <div class="cell clearfix" v-show="treatShow">
68
         <label class="title">
98
         <label class="title">
213
                 <p class="infoTitle">转归统计(总人数{{patientCount}}人)</p>
243
                 <p class="infoTitle">转归统计(总人数{{patientCount}}人)</p>
214
               </div>
244
               </div>
215
               <div class="borderBox1">
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
               </div>
252
               </div>
221
             </div>
253
             </div>
222
             <div class="infoOne">
254
             <div class="infoOne">
297
         </div>
329
         </div>
298
         <div>
330
         <div>
299
 
331
 
300
-        <div class="cell clearfix" v-show="treatShow">
332
+        <!-- <div class="cell clearfix" v-show="treatShow">
301
         <label class="title">
333
         <label class="title">
302
           <span class="name">转归状态</span> :
334
           <span class="name">转归状态</span> :
303
         </label>
335
         </label>
311
             >{{ item.label }}</li>
343
             >{{ item.label }}</li>
312
           </ul>
344
           </ul>
313
         </div>
345
         </div>
314
-       </div>
346
+       </div> -->
315
 
347
 
316
           <p style="font-size: 16px;font-weight: bold;color: #000;">转归统计</p>
348
           <p style="font-size: 16px;font-weight: bold;color: #000;">转归统计</p>
317
           <line-chart :options="bar"></line-chart>
349
           <line-chart :options="bar"></line-chart>
386
       dialysisAge:[],
418
       dialysisAge:[],
387
       start:0,
419
       start:0,
388
       end:0,
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
       way: 0,
434
       way: 0,
391
       wayArr: [
435
       wayArr: [
392
         { value: 0, label: "统计图", state: 0 },
436
         { value: 0, label: "统计图", state: 0 },
585
         { value: 1, label: "转出", state: 1}
629
         { value: 1, label: "转出", state: 1}
586
       ],
630
       ],
587
       lapseid:0,
631
       lapseid:0,
632
+      startDate:"",
633
+      endDate:"",
588
     };
634
     };
589
 
635
 
590
 
636
 
604
         this.start_time = "";
650
         this.start_time = "";
605
       } else {
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
         this.start = timeStar
664
         this.start = timeStar
619
         this.end =timeEnd
665
         this.end =timeEnd
620
         this.getCountModeId()
666
         this.getCountModeId()
621
-        this.getRolloutCount(timeStar,timeEnd)
667
+        this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
622
       }
668
       }
623
     },
669
     },
624
     changeEndTime(val) {
670
     changeEndTime(val) {
632
         this.listQuery.end_time = "";
678
         this.listQuery.end_time = "";
633
       } else {
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
         this.start = timeStar
692
         this.start = timeStar
647
         this.end =timeEnd
693
         this.end =timeEnd
648
         this.getCountModeId()
694
         this.getCountModeId()
649
-        this.getRolloutCount(timeStar,timeEnd)
695
+        this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
650
       }
696
       }
651
     },
697
     },
652
     selectLapseTo(state) {
698
     selectLapseTo(state) {
655
       //获取本月当前机构的透析模式
701
       //获取本月当前机构的透析模式
656
       const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
702
       const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
657
       const endDate = moment(new Date()).format('YYYY-MM-DD')
703
       const endDate = moment(new Date()).format('YYYY-MM-DD')
704
+     
658
       var now = new Date()
705
       var now = new Date()
659
       var nowMonth = now.getMonth(); //当前月
706
       var nowMonth = now.getMonth(); //当前月
660
       var nowYear = now.getFullYear(); //当前年
707
       var nowYear = now.getFullYear(); //当前年
669
       //本月
716
       //本月
670
       if(state == 0){
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
         this.start = timeStar
730
         this.start = timeStar
684
         this.end = timeEnd
731
         this.end = timeEnd
685
         this.getCountModeId()
732
         this.getCountModeId()
686
-        this.getRolloutCount(timeStar,timeEnd)
733
+        this.getRolloutCount(timeStar,timeEnd,this.lapsetoType,this.sourceType)
687
       }
734
       }
688
       //近三月
735
       //近三月
689
       if(state == 1){
736
       if(state == 1){
690
         this.listQuery.start_time = ""
737
         this.listQuery.start_time = ""
691
         this.listQuery.end_time = ""
738
         this.listQuery.end_time = ""
692
         const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
739
         const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
693
-        // console.log("三月前",startDate)
740
+       
694
         var startunitx = Date.parse(startDate)/1000
741
         var startunitx = Date.parse(startDate)/1000
695
         // console.log("开始时间搓",startunitx)
742
         // console.log("开始时间搓",startunitx)
696
         const endDate = moment(new Date()).format('YYYY-MM-DD')
743
         const endDate = moment(new Date()).format('YYYY-MM-DD')
698
          var endunitx = Date.parse(endDate)/1000
745
          var endunitx = Date.parse(endDate)/1000
699
         // console.log("日期时间搓",endunitx)
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
         this.start = startunitx
759
         this.start = startunitx
713
         this.end = endunitx
760
         this.end = endunitx
714
         this.getCountModeId()
761
         this.getCountModeId()
715
-        this.getRolloutCount(startunitx,endunitx)
762
+        this.getRolloutCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
716
       }
763
       }
717
 
764
 
718
      //近半年
765
      //近半年
728
          var endunitx = Date.parse(endDate)/1000
775
          var endunitx = Date.parse(endDate)/1000
729
         // console.log("日期时间搓",endunitx)
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
         this.start = startunitx
790
         this.start = startunitx
744
         this.end = endunitx
791
         this.end = endunitx
745
         this.getCountModeId()
792
         this.getCountModeId()
746
-        this.getRolloutCount(startunitx,endunitx)
793
+        this.getRolloutCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
747
      }
794
      }
748
 
795
 
749
      //近一年
796
      //近一年
759
          var endunitx = Date.parse(endDate)/1000
806
          var endunitx = Date.parse(endDate)/1000
760
         // console.log("日期时间搓",endunitx)
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
         this.start = startunitx
820
         this.start = startunitx
775
         this.end = endunitx
821
         this.end = endunitx
776
         this.getCountModeId()
822
         this.getCountModeId()
777
-        this.getRolloutCount(startunitx,endunitx)
823
+        this.getRolloutCount(startunitx,endunitx,this.lapsetoType,this.sourceType)
778
      }
824
      }
779
 
825
 
780
 
826
 
790
       this.lapseMode = state
836
       this.lapseMode = state
791
       this.getRolloutCount(this.start,this.end)
837
       this.getRolloutCount(this.start,this.end)
792
     },
838
     },
793
-    getDialysisModeType(startDate,endDate){
839
+    getDialysisModeType(startDate,endDate,lapsetoType,sourceType){
794
        this.modesData.series = []
840
        this.modesData.series = []
795
        this.modesData.xAxis = []
841
        this.modesData.xAxis = []
796
-      getDialysisModeType(startDate,endDate).then(response=>{
842
+      getDialysisModeType(startDate,endDate,lapsetoType,sourceType).then(response=>{
797
          if(response.data.state == 1){
843
          if(response.data.state == 1){
798
 
844
 
799
           var modetype =  response.data.data.modetype
845
           var modetype =  response.data.data.modetype
846
+         
800
           this.modetype = modetype
847
           this.modetype = modetype
801
           var total =  response.data.data.total
848
           var total =  response.data.data.total
802
-          this.total = total
849
+          
850
+          this.total = total.count
851
+          // this.total = total
803
           // console.log("数据",this.modetype)
852
           // console.log("数据",this.modetype)
804
           var modedate = response.data.data.modetype
853
           var modedate = response.data.data.modetype
805
           for(let i=0;i<modedate.length;i++){
854
           for(let i=0;i<modedate.length;i++){
871
       })
920
       })
872
     },
921
     },
873
     //统计转归
922
     //统计转归
874
-    getTotalLapseCount(startDate,endDate){
923
+    getTotalLapseCount(startDate,endDate,lapsetoType,sourceType ){
924
+   
875
        this.modesDataTwo.series = []
925
        this.modesDataTwo.series = []
876
        this.modesDataTwo.xAxis = []
926
        this.modesDataTwo.xAxis = []
877
-      getTotalLapseCount(startDate,endDate).then(response=>{
927
+      getTotalLapseCount(startDate,endDate,lapsetoType,sourceType).then(response=>{
878
          if(response.data.state == 1){
928
          if(response.data.state == 1){
879
            var arr = [
929
            var arr = [
880
              {name:"留治",count:0},
930
              {name:"留治",count:0},
881
              {name:"转出",count:0}
931
              {name:"转出",count:0}
882
            ]
932
            ]
883
           var patients =  response.data.data.patients
933
           var patients =  response.data.data.patients
884
-
934
+      
885
           this.rollOutTotal = patients.length
935
           this.rollOutTotal = patients.length
936
+
886
           var patienttwo = response.data.data.patienttwo
937
           var patienttwo = response.data.data.patienttwo
887
           this.outTotal = patienttwo.length
938
           this.outTotal = patienttwo.length
888
           var count = response.data.data.count
939
           var count = response.data.data.count
889
           this.patientCount = count
940
           this.patientCount = count
890
 
941
 
891
           var rollout = response.data.data.rollout
942
           var rollout = response.data.data.rollout
892
-          console.log("rollout",rollout)
943
+        
893
 
944
 
894
           for(let i=0;i<arr.length;i++){
945
           for(let i=0;i<arr.length;i++){
895
             arr[0].count = this.rollOutTotal
946
             arr[0].count = this.rollOutTotal
896
             arr[1].count = this.outTotal
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
         if(response.data.state === 1){
955
         if(response.data.state === 1){
956
+          console.log("resp2222",response.data.data.totalWoman)
914
           var total = response.data.data.total
957
           var total = response.data.data.total
915
-        //  console.log("总人数",total)
916
           this.totalGender = total
958
           this.totalGender = total
917
           var totalMan = response.data.data.totalSex
959
           var totalMan = response.data.data.totalSex
918
-       //  console.log("男人",totalMan)
919
           this.totalMan = totalMan
960
           this.totalMan = totalMan
920
-          var totalWoman = total - totalMan
961
+          var totalWoman = response.data.data.totalWoman
921
           this.totalWoman = totalWoman
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
            if(response.data.state === 1){
969
            if(response.data.state === 1){
929
              this.InfectiousTotal = response.data.data.total
970
              this.InfectiousTotal = response.data.data.total
930
              var infectious = response.data.data.count
971
              var infectious = response.data.data.count
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
          if(response.data.state == 1){
993
          if(response.data.state == 1){
953
           var ageCount =  response.data.data.ageCount
994
           var ageCount =  response.data.data.ageCount
954
-          // console.log("ageCount",ageCount)
955
           var arr = []
995
           var arr = []
956
           arr =  ageCount.sort(this.compare('age'))
996
           arr =  ageCount.sort(this.compare('age'))
957
           this.ageCount = arr
997
           this.ageCount = arr
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
          if(response.data.state == 1){
1014
          if(response.data.state == 1){
975
            var dataage =  response.data.data.dataage
1015
            var dataage =  response.data.data.dataage
976
           //  console.log("dataage",dataage)
1016
           //  console.log("dataage",dataage)
1127
        this.modesDataTwo.xAxis = []
1167
        this.modesDataTwo.xAxis = []
1128
         const params = {
1168
         const params = {
1129
           start_time:this.start,
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
       getRolloutCount(params).then(response=>{
1174
       getRolloutCount(params).then(response=>{
1133
          if(response.data.state == 1){
1175
          if(response.data.state == 1){
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
   created() {
1235
   created() {
1173
         //获取本月当前机构的透析模式
1236
         //获取本月当前机构的透析模式
1182
       //本月的结束时间
1245
       //本月的结束时间
1183
       var monthEndDate = new Date(nowYear, nowMonth+1, 0);
1246
       var monthEndDate = new Date(nowYear, nowMonth+1, 0);
1184
       var timeEnd=Date.parse(monthEndDate)/1000-1;//s
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
       this.getTreatModeList(timeStar,timeEnd)
1265
       this.getTreatModeList(timeStar,timeEnd)
1200
       this.start = timeStar
1266
       this.start = timeStar
1201
       this.end = timeEnd
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 查看文件

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

+ 4 - 2
src/xt_pages/stock/drugs/drugStockInOrder.vue 查看文件

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

+ 57 - 8
src/xt_pages/stock/drugs/drugStockOutOrder.vue 查看文件

145
                 size="small"
145
                 size="small"
146
                 type="warning"
146
                 type="warning"
147
                 icon="el-icon-document"
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
               </el-button>
150
               </el-button>
151
             </el-tooltip>
151
             </el-tooltip>
233
               <span>单价</span>
233
               <span>单价</span>
234
             </template>
234
             </template>
235
             <template slot-scope="scope">
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
             </template>
238
             </template>
238
           </el-table-column>
239
           </el-table-column>
239
 
240
 
242
               <span>出库数量</span>
243
               <span>出库数量</span>
243
             </template>
244
             </template>
244
             <template slot-scope="scope">
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
             </template>
248
             </template>
248
           </el-table-column>
249
           </el-table-column>
249
           <el-table-column label="总价" min-width="20" align="center">
250
           <el-table-column label="总价" min-width="20" align="center">
250
             <template slot-scope="scope">
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
             </template>
255
             </template>
253
           </el-table-column>
256
           </el-table-column>
254
 
257
 
357
   GetAllConfig,
360
   GetAllConfig,
358
   getDrugWarehouseOutList,
361
   getDrugWarehouseOutList,
359
   getDrugWarehouseOutInfo,
362
   getDrugWarehouseOutInfo,
360
-  getDrugWarehouseOutUser
363
+  getDrugWarehouseOutUser,
364
+  getDrugAutoMaticList
361
 } from "@/api/drug/drug_stock";
365
 } from "@/api/drug/drug_stock";
362
 import BreadCrumb from "../../components/bread-crumb";
366
 import BreadCrumb from "../../components/bread-crumb";
363
 
367
 
436
        info: {}
440
        info: {}
437
       },
441
       },
438
       userList:[],
442
       userList:[],
439
-     
443
+      list:[],
444
+      drugConfig:{},
445
+      drugList:[]
440
     };
446
     };
441
   },
447
   },
442
   methods: {
448
   methods: {
486
           for (let i = 0; i < response.data.data.list.length; i++) {
492
           for (let i = 0; i < response.data.data.list.length; i++) {
487
             this.warehouseOutDate.push(response.data.data.list[i]);
493
             this.warehouseOutDate.push(response.data.data.list[i]);
488
           }
494
           }
495
+          console.log("列表22222",this.warehouseOutDate)
489
         }
496
         }
490
       });
497
       });
491
     },
498
     },
581
         query: { id: row.id, type: this.type }
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
       this.warehousingOutInfo.warehousingOutData = []
593
       this.warehousingOutInfo.warehousingOutData = []
586
       this.GetOrderDetail(id)
594
       this.GetOrderDetail(id)
595
+      this.list = []
596
+      this.getDrugAutoMaticList(id,time,warehouse_out_order_number)
587
       this.dialogVisible = true
597
       this.dialogVisible = true
588
       
598
       
589
     },
599
     },
777
           }
787
           }
778
         })
788
         })
779
         this.sameRowArr = sameRowArr
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
 </script>
832
 </script>

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

22
                             <thead>
22
                             <thead>
23
                                 <tr>
23
                                 <tr>
24
                                     <td width="80">耗材名称</td>
24
                                     <td width="80">耗材名称</td>
25
+                                    <td width="80">注册证号/批准文号/备案凭证号</td>
25
                                     <td width="80">规格型号</td>
26
                                     <td width="80">规格型号</td>
27
+                                    <td width="80">生产厂商</td>
26
                                     <td width="80">单位</td>
28
                                     <td width="80">单位</td>
27
                                      <td width="80">进货价</td>
29
                                      <td width="80">进货价</td>
28
                                     <td width="80">入库数量</td> 
30
                                     <td width="80">入库数量</td> 
29
                                     <td width="80">总价</td>
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
                                 </tr>
37
                                 </tr>
31
                             </thead>
38
                             </thead>
32
                             <tbody>
39
                             <tbody>
33
                                 <tr v-for='(item,index) in WarehouseInfo.warehouseInfoDate' :key="index">
40
                                 <tr v-for='(item,index) in WarehouseInfo.warehouseInfoDate' :key="index">
34
                                     <td><span v-if="item.good_id != 0">{{getTypeNameOne(item.good_id)}}</span></td>
41
                                     <td><span v-if="item.good_id != 0">{{getTypeNameOne(item.good_id)}}</span></td>
42
+                                    <td></td>
35
                                     <td><span v-if="item.good_id != 0">{{getSpecificationName(item.good_id)}}</span></td>
43
                                     <td><span v-if="item.good_id != 0">{{getSpecificationName(item.good_id)}}</span></td>
44
+                                    <td>{{ getManufacturer(item.manufacturer) }}</td>
36
                                     <td><span v-if="item.good_id!=0">{{getUnit(item.good_id)}}</span></td>
45
                                     <td><span v-if="item.good_id!=0">{{getUnit(item.good_id)}}</span></td>
37
                                     <td>{{item.price}}</td>
46
                                     <td>{{item.price}}</td>
38
                                     <td>{{item.warehousing_count}}</td> 
47
                                     <td>{{item.warehousing_count}}</td> 
39
                                     <td>{{(item.warehousing_count*item.price).toFixed(2)}}</td>
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
                                 </tr>
54
                                 </tr>
41
                                 <tr>
55
                                 <tr>
42
                                   <td>合计</td>
56
                                   <td>合计</td>
43
-                                  <td colspan="4"></td>
57
+                                  <td colspan="11"></td>
44
                                   <td>{{allPrice.toFixed(2)}}</td>
58
                                   <td>{{allPrice.toFixed(2)}}</td>
45
                                </tr>
59
                                </tr>
46
                             </tbody>
60
                             </tbody>
229
         }
243
         }
230
         return ""
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
     created(){
256
     created(){
234
 
257
 

+ 2 - 2
src/xt_pages/user/dialysisSolution.vue 查看文件

389
             </el-form-item>
389
             </el-form-item>
390
           </el-col>
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
               <el-input v-model="addPlan.conductivity"></el-input>
394
               <el-input v-model="addPlan.conductivity"></el-input>
395
             </el-form-item>
395
             </el-form-item>
396
           </el-col>
396
           </el-col>

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

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

+ 17 - 0
src/xt_pages/user/scheduling.vue 查看文件

29
             }})
29
             }})
30
           </template>
30
           </template>
31
         </el-table-column>
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
         <el-table-column
48
         <el-table-column
33
           prop="schedule_type"
49
           prop="schedule_type"
34
           label="班次"
50
           label="班次"
115
       GetPatientSchedules(id).then(response => {
131
       GetPatientSchedules(id).then(response => {
116
         if (response.data.state == 1) {
132
         if (response.data.state == 1) {
117
           this.schedules = response.data.data.schedules;
133
           this.schedules = response.data.data.schedules;
134
+          
118
         }
135
         }
119
       });
136
       });
120
     },
137
     },

+ 189 - 69
src/xt_pages/workforce/appointment.vue 查看文件

529
           }
529
           }
530
           
530
           
531
           if(this.export_type == 1){
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
              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']
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
             let i = 0
541
             let i = 0
538
             for (let key  in this.partitions) {
542
             for (let key  in this.partitions) {
539
               var tempValue
543
               var tempValue
664
         for (let key in results[0]) {
668
         for (let key in results[0]) {
665
           headers.push(key)
669
           headers.push(key)
666
         }
670
         }
667
-        if (results.length > 0) {
671
+        if (header.length == 65) {
672
+          console.log("进来了吗")
668
           var isHas_1 = headers.includes('区号')
673
           var isHas_1 = headers.includes('区号')
669
           console.log("1"+isHas_1)
674
           console.log("1"+isHas_1)
670
           var isHas_2 = headers.includes('机号')
675
           var isHas_2 = headers.includes('机号')
889
             this.dialogVisible = true
894
             this.dialogVisible = true
890
             return
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
           this.dialogVisible = true
985
           this.dialogVisible = true
897
           return
986
           return
2071
                 
2160
                 
2072
                   obj['区号'] = partitions[key].name
2161
                   obj['区号'] = partitions[key].name
2073
                   obj['机号'] = jihaos[b].number.toString()
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
                   list.push(obj)
2285
                   list.push(obj)
2166
 
2286
 
2167
                 }
2287
                 }