Sfoglia il codice sorgente

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

XMLWAN 3 anni fa
parent
commit
156430040c
34 ha cambiato i file con 4328 aggiunte e 1731 eliminazioni
  1. 11 0
      src/api/his/his.js
  2. 26 0
      src/router/modules/drugs.js
  3. 1 1
      src/xt_pages/data/components/addDrugs.vue
  4. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue
  5. 4 1
      src/xt_pages/hospitalStation/components/registerDialog.vue
  6. 3 1
      src/xt_pages/hospitalStation/components/registerDialog9504.vue
  7. 3 1
      src/xt_pages/outpatientCharges/components/registerDialog.vue
  8. 7 1
      src/xt_pages/outpatientCharges/components/registerDialog9504.vue
  9. 4 1
      src/xt_pages/outpatientCharges/invoicePrint.vue
  10. 237 0
      src/xt_pages/outpatientCharges/invoiceTemplate/printThree.vue
  11. 121 9
      src/xt_pages/outpatientCharges/newStatementPrintTwo.vue
  12. 12 12
      src/xt_pages/outpatientCharges/newTreatTemplate/printTwo.vue
  13. 452 253
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  14. 122 11
      src/xt_pages/outpatientCharges/summary.vue
  15. 348 0
      src/xt_pages/outpatientDoctorStation/checkPrint.vue
  16. 460 0
      src/xt_pages/outpatientDoctorStation/checkTemplate/printOne.vue
  17. 105 81
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  18. 27 25
      src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue
  19. 283 200
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  20. 18 4
      src/xt_pages/outpatientDoctorStation/pastInquiries.vue
  21. 11 9
      src/xt_pages/outpatientDoctorStation/print.vue
  22. 6 1
      src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue
  23. 28 19
      src/xt_pages/outpatientDoctorStation/template/printThree.vue
  24. 11 9
      src/xt_pages/outpatientDoctorStation/treatPrint.vue
  25. 396 378
      src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue
  26. 30 8
      src/xt_pages/outpatientDoctorStation/treatTemplate/printTwo.vue
  27. 581 567
      src/xt_pages/outpatientRegistration/index.vue
  28. 5 3
      src/xt_pages/outpatientRegistration/registrationHistory.vue
  29. 305 0
      src/xt_pages/stock/drugs/drugDamaged.vue
  30. 293 0
      src/xt_pages/stock/drugs/drugModifyPrice.vue
  31. 119 0
      src/xt_pages/stock/drugs/drugModifyPricePrint.vue
  32. 1 1
      src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue
  33. 234 0
      src/xt_pages/stock/drugs/drugWarning.vue
  34. 63 134
      src/xt_pages/stock/stockWarning.vue

+ 11 - 0
src/api/his/his.js Vedi File

@@ -499,6 +499,17 @@ export function refundNumber(params) {
499 499
 }
500 500
 
501 501
 
502
+export function changeMedType(params) {
503
+  return request({
504
+    url: "/api/changemedtype/post",
505
+    method: "post",
506
+    params:params,
507
+  });
508
+}
509
+
510
+
511
+
512
+
502 513
 
503 514
 
504 515
 

+ 26 - 0
src/router/modules/drugs.js Vedi File

@@ -30,6 +30,32 @@ export default {
30 30
       name: 'drugsStockOut',
31 31
       meta: { title: 'drugsStockOut', noCache: true }
32 32
     },
33
+    {
34
+      path: '/stock/drugs/drugModifyPrice',
35
+      component: () => import('@/xt_pages/stock/drugs/drugModifyPrice'),
36
+      name: 'drugModifyPrice',
37
+      meta: { title: 'drugModifyPrice', noCache: true }
38
+    },
39
+    {
40
+      path: '/stock/drugs/drugModifyPricePrint',
41
+      component: () => import('@/xt_pages/stock/drugs/drugModifyPricePrint'),
42
+      name: 'drugModifyPricePrint',
43
+      hidden: true,
44
+      is_menu: false,
45
+      meta: { title: 'drugModifyPricePrint', noCache: true }
46
+    },
47
+    {
48
+      path: '/stock/drugs/drugDamaged',
49
+      component: () => import('@/xt_pages/stock/drugs/drugDamaged'),
50
+      name: 'drugDamaged',
51
+      meta: { title: 'drugDamaged', noCache: true }
52
+    },
53
+    {
54
+      path: '/stock/drugs/drugWarning',
55
+      component: () => import('@/xt_pages/stock/drugs/drugWarning'),
56
+      name: 'drugWarning',
57
+      meta: { title: 'drugWarning', noCache: true }
58
+    },
33 59
     // {
34 60
     //   path: '/stock/drugs/stock/return',
35 61
     //   component: () => import('@/xt_pages/stock/drugs/drugSalesReturnOrder'),

+ 1 - 1
src/xt_pages/data/components/addDrugs.vue Vedi File

@@ -112,7 +112,7 @@
112 112
                                       maxlength="30"></el-input>
113 113
                           <el-select v-model="form.drug_dose_unit" style="width:80px;" placeholder="单次用量单位">
114 114
                                 <el-option
115
-                                        v-for="(item,index) in  getDataConfig('hemodialysis','units')"
115
+                                        v-for="(item,index) in unitList"
116 116
                                         :key="index"
117 117
                                         :label="item.name"
118 118
                                         :value="item.id">

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue Vedi File

@@ -139,7 +139,7 @@
139 139
           (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : false" showValue="左"></label-box>
140 140
               <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="右"></label-box>)
141 141
           &nbsp;
142
-          <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-颈内') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-锁骨下') > -1 ? true : 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>
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 : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左') > -1 ? true : false" showValue="中心静脉置管"></label-box>
143 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 144
               <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-颈内') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-锁骨下') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-股') > -1 ? true : false" showValue="右"></label-box>)部位
145 145
           &nbsp;

+ 4 - 1
src/xt_pages/hospitalStation/components/registerDialog.vue Vedi File

@@ -260,7 +260,10 @@
260 260
           {value: 4, label: '农保'},
261 261
           {value: 5, label: '会员'},
262 262
           {value: 6, label: '职工'},
263
-          {value: 7, label: '合同'}
263
+          {value: 7, label: '合同'},
264
+          {value: 8, label: '医保自费'},
265
+
266
+
264 267
         ],
265 268
         sex: [{
266 269
           value: 1,

+ 3 - 1
src/xt_pages/hospitalStation/components/registerDialog9504.vue Vedi File

@@ -241,7 +241,9 @@
241 241
           {value: 4, label: '农保'},
242 242
           {value: 5, label: '会员'},
243 243
           {value: 6, label: '职工'},
244
-          {value: 7, label: '合同'}
244
+          {value: 7, label: '合同'},
245
+          {value: 8, label: '医保自费'},
246
+
245 247
         ],
246 248
         sex: [{
247 249
           value: 1,

+ 3 - 1
src/xt_pages/outpatientCharges/components/registerDialog.vue Vedi File

@@ -257,7 +257,9 @@
257 257
           { value: 4, label: '农保' },
258 258
           { value: 5, label: '会员' },
259 259
           { value: 6, label: '职工' },
260
-          { value: 7, label: '合同' }
260
+          { value: 7, label: '合同' },
261
+          {value: 8, label: '医保自费'},
262
+
261 263
         ],
262 264
         sex: [{
263 265
           value: 1,

+ 7 - 1
src/xt_pages/outpatientCharges/components/registerDialog9504.vue Vedi File

@@ -242,7 +242,9 @@
242 242
           {value: 4, label: '农保'},
243 243
           {value: 5, label: '会员'},
244 244
           {value: 6, label: '职工'},
245
-          {value: 7, label: '合同'}
245
+          {value: 7, label: '合同'},
246
+          {value: 8, label: '医保自费'},
247
+
246 248
         ],
247 249
         sex: [{
248 250
           value: 1,
@@ -523,6 +525,10 @@
523 525
         this.form.certificates = 1
524 526
         this.form.medical_care = 11
525 527
         this.form.settlement_value = 1
528
+        this.form.register = 4
529
+        this.form.registration_fee = 0
530
+        this.form.medical_expenses = 0
531
+
526 532
 
527 533
         // if( this.form.social_type == 0){
528 534
         //   this.form.social_type = ""

+ 4 - 1
src/xt_pages/outpatientCharges/invoicePrint.vue Vedi File

@@ -15,6 +15,7 @@
15 15
         <div class='dialysisPage'>
16 16
             <printOne v-if="org_id != 10106" :paramsObj="invoiceParams"></printOne>
17 17
             <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
18
+            <!-- <printThree :paramsObj="invoiceParams"></printThree> -->
18 19
         </div>
19 20
     </div>
20 21
   </div>
@@ -23,11 +24,13 @@
23 24
 <script>
24 25
 import printOne from './invoiceTemplate/printOne'
25 26
 import printTwo from './invoiceTemplate/printTwo'
27
+import printThree from './invoiceTemplate/printThree'
26 28
 export default {
27 29
   name: "invoicePrint",
28 30
   components: {
29 31
     printOne,
30
-    printTwo
32
+    printTwo,
33
+    printThree
31 34
   },
32 35
   props:{
33 36
     invoiceParams:Object

+ 237 - 0
src/xt_pages/outpatientCharges/invoiceTemplate/printThree.vue Vedi File

@@ -0,0 +1,237 @@
1
+<template>
2
+    <div id='invoice-print'>
3
+        <div style="display:flex;">
4
+            <!-- <div style="position: absolute;top:30px;left:70px;">{{ list.order_number }}</div> -->
5
+            <!-- <div>{{ list.id_card_no }}</div> -->
6
+        </div>
7
+        <div style="display:flex;justify-content: space-between;">
8
+            <div  style="position: absolute;left:400px;top:85px;">{{ list.department_name }}</div>
9
+            <!-- <div  style="position: absolute;top:40px;left:300px">{{ list.number }}</div> -->
10
+            <div></div>
11
+            <div>
12
+                <span style="position: absolute;left:120px;top:60px;">{{ paramsObj.setl_time.split(' ')[0].slice(0,10) }}</span>
13
+                <!-- <span style="position: absolute;left:630px;top:40px;">{{ paramsObj.setl_time.split(' ')[0].slice(5,7) }}</span>
14
+                <span style="position: absolute;left:690px;top:40px;">{{ paramsObj.setl_time.split(' ')[0].slice(8,11) }}</span>-->
15
+            </div> 
16
+        </div>
17
+        <div style="display:flex;justify-content: space-between;">
18
+            <div style="position: absolute;top:80px;left:120px;"> {{ paramsObj.name }}</div>
19
+            <!-- <div style="position: absolute;top:60px;left:210px;">√</div> -->
20
+            <!-- <div>{{ list.pay_way }}</div> -->
21
+            <!-- <div style="position: absolute;top:60px;left:460px;">{{ getTime(list.date, '{y}-{m}-{d}') }}</div>
22
+            <div style="position: absolute;top:60px;left:640px;">{{ getTime(list.date, '{y}-{m}-{d}') }}</div> -->
23
+        </div>
24
+        <!-- <div style="display:flex;justify-content: space-between;">
25
+            <div>{{ paramsObj.gend == 1 ? '男' : '女' }}</div>
26
+            <div style="position: absolute;top:90px;left:290px;">{{ (totalPrice - list.psn_cash_money).toFixed(2) }}</div>
27
+            <div style="position: absolute;top:90px;left:460px;">{{ list.psn_cash_money }}</div>
28
+            <div style="position: absolute;top:90px;left:640px;">门慢结算</div>
29
+        </div> -->
30
+        <!-- <div style="display:flex;justify-content: space-between;"> -->
31
+            <div style="position: absolute;top:120px;left:120px">西药 {{ list.westernMedicineCostTotal }}</div>
32
+            <!-- <div style="position: absolute;top:140px;left:80px"></div> -->
33
+            <div style="position: absolute;top:140px;left:120px">检查费 {{ list.checkCostTotal }}</div>
34
+            <!-- <div style="position: absolute;top:180px;left:80px"></div> -->
35
+            <div style="position: absolute;top:160px;left:120px">治疗费 {{ list.treatCostTotal }}</div>
36
+            <!-- <div style="position: absolute;top:140px;left:80px"></div> -->
37
+            <div style="position: absolute;top:180px;left:120px">床位费 {{ list.bedCostTotal }}</div>
38
+            <!-- <div style="position: absolute;top:140px;left:80px"></div> -->
39
+        <!-- </div> -->
40
+        <!-- <div style="display:flex;justify-content: space-between;"> -->
41
+            <div style="position: absolute;top:200px;left:120px">中成药 {{ list.chineseTraditionalMedicineCostTotal }}</div>
42
+            <!-- <div style="position: absolute;top:170px;left:80px"></div> -->
43
+            <div style="position: absolute;top:220px;left:120px">化验费 {{ list.laboratoryCostTotal }}</div>
44
+            <!-- <div style="position: absolute;top:170px;left:80px"></div> -->
45
+            <div style="position: absolute;top:240px;left:120px">手术费 {{ list.operationCostTotal }}</div>
46
+            <!-- <div style="position: absolute;top:170px;left:80px"></div> -->
47
+            <div style="position: absolute;top:260px;left:120px">其他费 {{ list.otherCostTotal }}</div>
48
+            <!-- <div style="position: absolute;top:170px;left:80px"></div> -->
49
+        <!-- </div> -->
50
+        <!-- <div style="display:flex;justify-content: space-between;"> -->
51
+            <!-- <div style="position: absolute;top:200px;left:40px"></div>
52
+            <div style="position: absolute;top:200px;left:110px"></div>
53
+            <div style="position: absolute;top:200px;left:200px"></div>
54
+            <div style="position: absolute;top:200px;left:280px"></div> -->
55
+            <div style="position: absolute;top:280px;left:120px">材料费 {{ list.materialCostTotal }}</div>
56
+            <!-- <div style="position: absolute;top:200px;left:460px"></div> -->
57
+            <!-- <div style="position: absolute;top:200px;left:560px"></div>
58
+            <div style="position: absolute;top:200px;left:640px"></div> -->
59
+        <!-- </div> -->
60
+        <!-- <div>
61
+            <span>
62
+            <span style="position: absolute;top:250px;left:200px">
63
+                <span v-if="zhongwen.indexOf('万') > -1">
64
+                    {{ zhongwen.substring(zhongwen.indexOf('万') - 1,zhongwen.indexOf('万')) }}
65
+                </span>
66
+                <span v-else>零</span>
67
+            </span>
68
+            <span style="position: absolute;top:250px;left:260px">
69
+                <span v-if="zhongwen.indexOf('仟') > -1">
70
+                    {{ zhongwen.substring(zhongwen.indexOf('仟') - 1,zhongwen.indexOf('仟')) }}
71
+                </span>
72
+                <span v-else>零</span>
73
+            </span>
74
+            <span style="position: absolute;top:250px;left:320px">
75
+                <span v-if="zhongwen.indexOf('佰') > -1">
76
+                    {{ zhongwen.substring(zhongwen.indexOf('佰') - 1,zhongwen.indexOf('佰')) }}
77
+                </span>
78
+                <span v-else>零</span>
79
+            </span>
80
+            <span style="position: absolute;top:250px;left:380px">
81
+                <span v-if="zhongwen.indexOf('拾') > -1">
82
+                    {{ zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}
83
+                </span>
84
+                <span v-else>零</span>
85
+            </span>
86
+            <span style="position: absolute;top:250px;left:440px">
87
+                <span v-if="zhongwen.indexOf('元') > -1 && zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) != '拾'">
88
+                    {{ zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) }}
89
+                </span>
90
+                <span v-else>零</span>
91
+            </span>
92
+            <span style="position: absolute;top:250px;left:500px">
93
+                <span v-if="zhongwen.indexOf('角') > -1">
94
+                    {{ zhongwen.substring(zhongwen.indexOf('角') - 1,zhongwen.indexOf('角')) }}
95
+                </span>
96
+                <span v-else>零</span>
97
+            </span>
98
+            <span style="position: absolute;top:250px;left:560px">
99
+                <span v-if="zhongwen.indexOf('分') > -1">
100
+                    {{ zhongwen.substring(zhongwen.indexOf('分') - 1,zhongwen.indexOf('分')) }}
101
+                </span>
102
+                <span v-else>零</span>
103
+            </span>
104
+            </span>
105
+            <span style="position: absolute;top:250px;left:610px">{{ totalPrice.toFixed(2) }}</span>
106
+        </div> -->
107
+        <div style="position: absolute;top:300px;left:120px">合计大写 {{ zhongwen }}</div>
108
+        <div style="position: absolute;top:300px;left:400px">合计小写 {{ list.psn_cash_money }}</div>
109
+        <div>
110
+            <!-- <div style="position: absolute;top:320px;left:120px">{{ org_name }}</div> -->
111
+            <div style="position: absolute;top:320px;left:120px">{{ list.name }}</div>
112
+        </div>
113
+    </div>
114
+</template>
115
+
116
+
117
+<script>
118
+import { getInvoice } from '@/api/project/project'
119
+import { uParseTime } from '@/utils/tools'
120
+export default {
121
+    props:{
122
+        paramsObj:Object
123
+    },
124
+    data(){
125
+        return{
126
+            list:{},
127
+            printDate:'',
128
+            zhongwen:'',
129
+            totalPrice:0.0,
130
+            org_id:'',
131
+            org_name:''
132
+        }
133
+    },
134
+    created(){
135
+        console.log('paramsObj',this.paramsObj)
136
+        let params = {
137
+            order_id: this.paramsObj.order_id,
138
+            patient_id: this.paramsObj.patient_id,
139
+        }
140
+        this.getInvoice(params)
141
+        // var data = new Date();
142
+        // var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
143
+        // var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
144
+        // this.printDate = data.getFullYear() + "-" + month + "-" + date;
145
+        // this.smalltoBIG(982732.21)
146
+        this.org_id = this.$store.getters.xt_user.org_id
147
+        this.org_name = this.$store.getters.xt_user.org.org_name
148
+    },
149
+    methods:{
150
+        getInvoice(params){
151
+            getInvoice(params).then((res) => {
152
+                console.log('res',res)
153
+                this.list = res.data.data
154
+                this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
155
+                                    this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
156
+                this.smalltoBIG(this.list.psn_cash_money)
157
+                var data = new Date(res.data.data.date * 1000);
158
+                var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
159
+                var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
160
+                this.printDate = data.getFullYear() + "-" + month + "-" + date;
161
+            })
162
+        },
163
+        smalltoBIG(n) {
164
+            // let fraction = ['角', '分'];
165
+            // let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
166
+            // let unit = [['元.', '万,', '亿,'], ["元",'拾', '佰', '仟']];
167
+            // let head = price < 0 ? '欠' : '';
168
+            // price = Math.abs(price);
169
+            // let upper = '';
170
+            // for (let i = 0; i < fraction.length; i++) {
171
+            // upper += (digit[Math.floor(price * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
172
+            // }
173
+            // upper = upper || '整';
174
+            // price = Math.floor(price);
175
+            // for (let i = 0; i < unit[0].length && price > 0; i++) {
176
+            // let p = '';
177
+            // for (let j = 0; j < unit[1].length && price > 0; j++) {
178
+            //     p = digit[price % 10] + unit[1][j] + p;
179
+            //     price = Math.floor(price / 10);
180
+            // }
181
+            // upper = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + upper;
182
+            // }
183
+            // this.zhongwen = head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整')
184
+            // console.log('6666',head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整'))
185
+            if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
186
+                return "数据非法";  //判断数据是否大于0
187
+            }
188
+
189
+            var unit = "仟佰拾亿仟佰拾万仟佰拾元角分", str = "";
190
+            n += "00";  
191
+
192
+            var indexpoint = n.indexOf('.');  // 如果是小数,截取小数点前面的位数
193
+
194
+            if (indexpoint >= 0){
195
+
196
+                n = n.substring(0, indexpoint) + n.substr(indexpoint+1, 2);   // 若为小数,截取需要使用的unit单位
197
+            }
198
+
199
+            unit = unit.substr(unit.length - n.length);  // 若为整数,截取需要使用的unit单位
200
+            for (var i=0; i < n.length; i++){
201
+                str += "零壹贰叁肆伍陆柒捌玖".charAt(n.charAt(i)) + unit.charAt(i);  //遍历转化为大写的数字
202
+            }
203
+            console.log("str",str)
204
+            if(str == '零元零角零分'){
205
+                this.zhongwen = '零'
206
+            }else{
207
+                this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
208
+            }
209
+
210
+            console.log(this.zhongwen)
211
+        },
212
+        getTime(value, temp) {
213
+            if (value == 0) {
214
+                return ''
215
+            }
216
+            if (value != undefined) {
217
+                return uParseTime(value, temp)
218
+            }
219
+            return ''
220
+        },
221
+
222
+    },
223
+    watch:{
224
+        paramsObj:{//深度监听,可监听到对象、数组的变化
225
+            handler(val, oldVal){
226
+                let params = {
227
+                    order_id: val.order_id,
228
+                    patient_id: val.patient_id,
229
+                }
230
+                this.getInvoice(params)
231
+
232
+            },
233
+            deep:true
234
+        }
235
+    }
236
+}
237
+</script>

+ 121 - 9
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue Vedi File

@@ -64,7 +64,8 @@
64 64
         ids:'',
65 65
         info:null,
66 66
         org_id:'',
67
-        balanceAccounts:{}
67
+        balanceAccounts:{},
68
+        num:0
68 69
       };
69 70
     },
70 71
     methods:{
@@ -82,14 +83,119 @@
82 83
         // });
83 84
 
84 85
         if(this.org_id == 10138){
85
-          const style =
86
-          '@media print {#prescription-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 50%;}}}';
87
-          printJS({
88
-              printable: "prescription-print",
89
-              type: "html",
90
-              style: style,
91
-              scanStyles: false
92
-          });
86
+          setTimeout(() => {
87
+            const style =
88
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 49%;}}}';
89
+            const style2 =
90
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 52%;}}}';
91
+            const style3 =
92
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 55%;}}}';
93
+            const style4 =
94
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 58%;}}}';
95
+            const style5 =
96
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 61%;}}}';
97
+            const style6 =
98
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 66%;}}}';
99
+            const style7 =
100
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 71%;}}}';
101
+            const style8 =
102
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 75%;}}}';
103
+            const style9 =
104
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 80%;}}}';
105
+            const style10 =
106
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 90%;}}}';
107
+            const style11 =
108
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 91%;}}}';
109
+            const style12 =
110
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 91%;}}}';
111
+            if(this.num >= 13){
112
+              printJS({
113
+                printable: "prescription-print",
114
+                type: "html",
115
+                style: style,
116
+                scanStyles: false
117
+              });
118
+            }else if(this.num == 12){
119
+              printJS({
120
+                printable: "prescription-print",
121
+                type: "html",
122
+                style: style2,
123
+                scanStyles: false
124
+              });
125
+            }else if(this.num == 11){
126
+              printJS({
127
+                printable: "prescription-print",
128
+                type: "html",
129
+                style: style3,
130
+                scanStyles: false
131
+              });
132
+            }else if(this.num == 10){
133
+              printJS({
134
+                printable: "prescription-print",
135
+                type: "html",
136
+                style: style4,
137
+                scanStyles: false
138
+              });
139
+            }else if(this.num == 9){
140
+              printJS({
141
+                printable: "prescription-print",
142
+                type: "html",
143
+                style: style5,
144
+                scanStyles: false
145
+              });
146
+            }else if(this.num == 8){
147
+              printJS({
148
+                printable: "prescription-print",
149
+                type: "html",
150
+                style: style6,
151
+                scanStyles: false
152
+              });
153
+            }else if(this.num == 7){
154
+              printJS({
155
+                printable: "prescription-print",
156
+                type: "html",
157
+                style: style7,
158
+                scanStyles: false
159
+              });
160
+            }else if(this.num == 6){
161
+              printJS({
162
+                printable: "prescription-print",
163
+                type: "html",
164
+                style: style8,
165
+                scanStyles: false
166
+              });
167
+            }else if(this.num == 5){
168
+              printJS({
169
+                printable: "prescription-print",
170
+                type: "html",
171
+                style: style9,
172
+                scanStyles: false
173
+              });
174
+            }else if(this.num == 4){
175
+              printJS({
176
+                printable: "prescription-print",
177
+                type: "html",
178
+                style: style10,
179
+                scanStyles: false
180
+              });
181
+            }else if(this.num == 3){
182
+              printJS({
183
+                printable: "prescription-print",
184
+                type: "html",
185
+                style: style11,
186
+                scanStyles: false
187
+              });
188
+            }else if(this.num <= 2){
189
+              printJS({
190
+                printable: "prescription-print",
191
+                type: "html",
192
+                style: style12,
193
+                scanStyles: false
194
+              });
195
+            }
196
+            
197
+            
198
+          },500)
93 199
         }else{
94 200
           const style =
95 201
           '@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}';
@@ -144,18 +250,22 @@
144 250
                 details: [],
145 251
                 total: 0
146 252
               }
253
+              let num = 0
147 254
               this.balanceAccounts.order_info.map(item => {
148 255
                 
149 256
                 if(item.advice_id > 0){
150 257
                   obj.details.push(item)
151 258
                   obj.total += (item.pric * item.advice.prescribing_number)
259
+                  num++
152 260
                 }else{
153 261
                   if(item.project.type == 2){
154 262
                     obj2.details.push(item)
155 263
                     obj2.total += (item.pric * item.project.count)
264
+                    num++
156 265
                   }else{
157 266
                     obj3.details.push(item)
158 267
                     obj3.total += (item.pric * item.project.count)
268
+                    num++
159 269
                   }
160 270
                 }
161 271
               })
@@ -164,6 +274,8 @@
164 274
               this.balanceAccounts.new_detail_list.push(obj2)
165 275
               this.balanceAccounts.new_detail_list.push(obj3)
166 276
               console.log(111,this.balanceAccounts)
277
+              this.num = num
278
+              console.log('this.num',this.num)
167 279
             }
168 280
           })
169 281
 

+ 12 - 12
src/xt_pages/outpatientCharges/newTreatTemplate/printTwo.vue Vedi File

@@ -15,7 +15,7 @@
15 15
                   <div>费别:<span style="display:inline-block;width:80px;">{{info.patient_info.transBody.outputlist1 ? getName(info.patient_info.transBody.outputlist1) : ''}}</span>
16 16
                   </div>
17 17
                   <div>电脑号:<span style="display:inline-block;width:80px;">{{info.patient_info.transBody.aac999 ? info.patient_info.transBody.aac999 : ''}}</span></div>
18
-                  <div>收费日期:<span style="display:inline-block;width:80px;">{{info.record_date ? info.record_date : ''}}</span></div>
18
+                  <div>收费日期:<span style="display:inline-block;width:100px;">{{info.record_date ? info.record_date : ''}}</span></div>
19 19
                 </div>
20 20
                 <div style="float:right">金额单位:元</div>
21 21
             </div>
@@ -24,12 +24,12 @@
24 24
                   <tr>
25 25
                       <td width="70">类别</td>
26 26
                       <td>项目</td>
27
-                      <td width="80">规格</td>
27
+                      <td width="180">规格</td>
28 28
                       <td width="50">单位</td>
29 29
                       <td width="50">数量</td>
30 30
                       <td width="60">单价</td>
31 31
                       <td width="70">总额</td>
32
-                      <td width="100">小计</td>
32
+                      <td width="130">小计</td>
33 33
                   </tr>
34 34
                   <div v-for="(item,i) in info.new_detail_list" :key="i" style="width:100%;display: table-row-group;">
35 35
                       <tr v-for="(subItem,index) in item.details" :key="index">
@@ -46,26 +46,26 @@
46 46
                   </div>
47 47
                   <tr>
48 48
                     <td colspan="7">
49
-                      <div style="display:flex;flez-wrap:wrap;">
49
+                      <div style="display:flex;flez-wrap:wrap;font-size:16px;">
50 50
                         <div style="width:33%;" v-for="(item,index) in info.transBody.outputlist2" :key="index">{{getValue(item)}}</div>
51 51
                       </div>
52 52
                     </td>
53
-                    <td>合计: {{info.transBody.akc264?info.transBody.akc264:0}}元</td>
53
+                    <td style="font-size:16px;">合计: {{info.transBody.akc264?info.transBody.akc264:0}}元</td>
54 54
                   </tr>
55 55
                   <tr>
56 56
                       <td colspan="7">
57
-                          <div style="display:flex;flez-wrap:wrap;">
57
+                          <div style="display:flex;flez-wrap:wrap;margin-bottom:10px;font-size:16px;">
58 58
                               <div style="width:33%;">医疗费总额:{{info.transBody.akc264?info.transBody.akc264:0}}元</div>
59 59
                               <div style="width:33%;">基金支付金额:{{info.transBody.akb068?info.transBody.akb068:0}}元</div>
60 60
                               <div style="width:33%;">个人账户支付金额:{{info.transBody.akb066?info.transBody.akb066:0}}元</div>
61 61
 
62 62
                           </div>
63
-                          <div style="display:flex;flez-wrap:wrap;">
63
+                          <div style="display:flex;flez-wrap:wrap;font-size:16px;">
64 64
                               <div style="width:33%;">个人支付金额:{{info.transBody.akb067?info.transBody.akb067:0}}元</div>
65 65
                               <div style="width:33%;">个人账户金额:{{info.after_money}}元</div>
66 66
                           </div>
67 67
                       </td>
68
-                      <td>合计:{{info.transBody.akc264?info.transBody.akc264:0}}元</td>
68
+                      <td style="font-size:16px;">合计:{{info.transBody.akc264?info.transBody.akc264:0}}元</td>
69 69
                   </tr>
70 70
 
71 71
               </table>
@@ -86,12 +86,12 @@
86 86
             <div style="display:flex;justify-content: space-between;">
87 87
                 <div style="display:flex;">
88 88
                   <div>姓名:<span style="display:inline-block;width:50px;">{{balanceAccounts.patient ? balanceAccounts.patient.name : ''}}</span></div>
89
-                  <div>性别:<span style="display:inline-block;width:30px;">{{balanceAccounts.patient == '1' ? '男' : '女'}}</span></div>
89
+                  <div>性别:<span style="display:inline-block;width:30px;">{{balanceAccounts.patient.gender == '1' ? '男' : '女'}}</span></div>
90 90
                   <div>年龄:<span style="display:inline-block;width:50px;">{{balanceAccounts.patient ? balanceAccounts.patient.age : ''}}岁</span></div>
91 91
                   <div>费别:<span style="display:inline-block;width:80px;">自费</span>
92 92
                   </div>
93 93
                   <div>电脑号:<span style="display:inline-block;width:80px;"></span></div>
94
-                  <div>收费日期:<span style="display:inline-block;width:80px;">{{getTime(new Date(),"{y}-{m}-{d}")?getTime(new Date(),"{y}-{m}-{d}"):""}}</span></div>
94
+                  <div>收费日期:<span style="display:inline-block;width:100px;">{{getTime(new Date(),"{y}-{m}-{d}")?getTime(new Date(),"{y}-{m}-{d}"):""}}</span></div>
95 95
                 </div>
96 96
                 <div style="float:right">金额单位:元</div>
97 97
             </div>
@@ -100,12 +100,12 @@
100 100
                   <tr>
101 101
                       <td width="70">类别</td>
102 102
                       <td>项目</td>
103
-                      <td width="80">规格</td>
103
+                      <td width="180">规格</td>
104 104
                       <td width="50">单位</td>
105 105
                       <td width="50">数量</td>
106 106
                       <td width="60">单价</td>
107 107
                       <td width="70">总额</td>
108
-                      <td width="100">小计</td>
108
+                      <td width="130">小计</td>
109 109
                   </tr>
110 110
                   <div v-for="(item,i) in balanceAccounts.new_detail_list" :key="i" style="width:100%;display: table-row-group;">
111 111
                       <tr v-for="(subItem,index) in item.details" :key="index">

File diff suppressed because it is too large
+ 452 - 253
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue


+ 122 - 11
src/xt_pages/outpatientCharges/summary.vue Vedi File

@@ -84,6 +84,9 @@
84 84
                 <el-table-column align="center" width="90" prop="name" label="科室">
85 85
                     <template slot-scope="scope">{{scope.row.department_name}}</template>
86 86
                 </el-table-column>
87
+                <el-table-column align="center" width="90" prop="name" label="医疗类型">
88
+                    <template slot-scope="scope"><div>{{getMedType(scope.row.med_type)}}</div></template>
89
+                </el-table-column>
87 90
                 <el-table-column align="center" width="100" prop="name" label="收费日期">
88 91
                     <template slot-scope="scope">
89 92
                         {{scope.row.setl_time?scope.row.setl_time:getTimes(scope.row.settle_accounts_date)}}
@@ -241,6 +244,95 @@
241 244
       }
242 245
     },
243 246
     methods: {
247
+      getMedType(med_type) {
248
+        var med_type = parseInt(med_type)
249
+        if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
250
+          switch (med_type) {
251
+            case 11:
252
+              return '普通门诊'
253
+
254
+              break
255
+            case 12:
256
+              return '家庭通道'
257
+
258
+              break
259
+            case 13:
260
+              return '门诊大病'
261
+
262
+              break
263
+
264
+            case 14:
265
+              return '重疾特药'
266
+              break
267
+
268
+            case 15:
269
+              return '门诊慢病'
270
+
271
+              break
272
+            case 16:
273
+              return '门诊特检'
274
+
275
+              break
276
+            case 17:
277
+              return '健康体检'
278
+
279
+              break
280
+            case 18:
281
+              return '预防接种'
282
+
283
+              break
284
+            case 19:
285
+              return '门诊输血'
286
+
287
+              break
288
+            case 91:
289
+              return '新冠肺炎门诊'
290
+              break
291
+            case 1111:
292
+              return '精一' + '处方'
293
+              break
294
+            case 1112:
295
+              return '精二' + '处方'
296
+              break
297
+          }
298
+
299
+        } else {
300
+
301
+          switch (med_type) {
302
+            case 11:
303
+              return '普通门诊'
304
+
305
+              break
306
+            case 12:
307
+              return '门诊挂号'
308
+
309
+              break
310
+            case 13:
311
+              return '急诊'
312
+
313
+              break
314
+
315
+            case 14:
316
+              return '门诊特殊病'
317
+              break
318
+
319
+            case 15:
320
+              return '门诊统筹'
321
+
322
+              break
323
+            case 16:
324
+              return '门诊慢性病'
325
+
326
+              break
327
+            case 21:
328
+              return '普通住院'
329
+              break
330
+
331
+          }
332
+
333
+        }
334
+
335
+      },
244 336
       uploadInfo(row) {
245 337
         var that = this
246 338
         axios.get('http://127.0.0.1:9532/api/settlelist/get', {
@@ -291,6 +383,10 @@
291 383
 
292 384
       }, toRefund(row) {
293 385
 
386
+        console.log("~~~~~")
387
+        console.log(row)
388
+        console.log(this.$store.getters.xt_user.org_id )
389
+
294 390
 
295 391
 
296 392
         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 || this.$store.getters.xt_user.org_id == 9990) {
@@ -335,8 +431,8 @@
335 431
           }).catch(() => {
336 432
           })
337 433
 
338
-        } else if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
339
-
434
+        } else if (this.$store.getters.xt_user.org_id == 0 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
435
+            var that = this
340 436
           this.$confirm('是否退费', '退费', {
341 437
             confirmButtonText: '确 定',
342 438
             cancelButtonText: '取 消',
@@ -345,8 +441,8 @@
345 441
             let params = {
346 442
               'order_id': row.id,
347 443
               'patient_id': row.patient_id,
348
-              'record_time': that.getTimes(row.settle_accounts_date),
349
-              'admin_user_id': that.$store.getters.xt_user.user.id
444
+              'record_time': this.getTimes(row.settle_accounts_date),
445
+              'admin_user_id': this.$store.getters.xt_user.user.id
350 446
             }
351 447
             axios.get('http://127.0.0.1:9532/sz/api/refund/get', {
352 448
               params: params
@@ -404,14 +500,29 @@
404 500
       },
405 501
       toPrint(row) {
406 502
         if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138) {
503
+         if(row.mdtrt_id.indexOf("H") > -1){
407 504
           this.statementVisible9504 = true
408
-          let obj = {
409
-            order_id: row.id,
410
-            patient_id: row.patient_id,
411
-            record_time: this.getTimes(row.settle_accounts_date),
412
-            admin_user_id: this.$store.getters.xt_user.user.id
413
-          }
414
-          this.orderObj9504 = obj
505
+            let obj = {
506
+              order_id: row.id,
507
+              patient_id: row.patient_id,
508
+              record_time: this.getTimes(row.settle_accounts_date),
509
+              admin_user_id: this.$store.getters.xt_user.user.id
510
+            }
511
+            this.orderObj9504 = obj
512
+         }else{
513
+           
514
+           this.statementVisible9504 = true
515
+            let obj = {
516
+              order_id: row.id,
517
+              patient_id: row.patient_id,
518
+              record_time: this.getTimes(row.settle_accounts_date),
519
+              admin_user_id: this.$store.getters.xt_user.user.id,
520
+              balance_accounts_type:2
521
+            }
522
+            this.orderObj9504 = obj
523
+         }
524
+
525
+         
415 526
         } else {
416 527
           this.statementVisible = true
417 528
           let obj = {

+ 348 - 0
src/xt_pages/outpatientDoctorStation/checkPrint.vue Vedi File

@@ -0,0 +1,348 @@
1
+<template>
2
+  <div>
3
+       <template>
4
+        <el-button
5
+          style="float:right;"
6
+          :loading="loading"
7
+          size="small"
8
+          icon="el-icon-printer"
9
+          @click="printThisPage"
10
+          type="primary"
11
+          >打印</el-button
12
+        >
13
+      </template>
14
+            
15
+      <div class='dialysisPage' style="padding-top:40px;">
16
+        <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
17
+      </div>
18
+  </div>
19
+</template>
20
+
21
+<script>
22
+import { jsGetAge, uParseTime } from "@/utils/tools";
23
+
24
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
25
+import print from "print-js";
26
+import printOne from "./checkTemplate/printOne"
27
+import { getAllDoctorList,getAllHisPatientList } from "@/api/project/project"
28
+export default {
29
+  name: "dialysisPrintOrder",
30
+  components: {
31
+    BreadCrumb,
32
+    printOne,
33
+  },
34
+  props:{
35
+    paramsObj:Object
36
+  },
37
+  data() {
38
+    return {
39
+      crumbs: [
40
+        { path: false, name: '门诊医生站' },
41
+        { path: false, name: '打印' }
42
+      ],
43
+      record_date:"",
44
+      patientTableData:[],
45
+      advicePrint:[],
46
+      hisPatient:{},
47
+      patient:{},
48
+      search_input:"",
49
+      loading:false,
50
+      patient_id:0,
51
+      prescription_id:0,
52
+      ids:''
53
+    };
54
+  },
55
+  methods:{
56
+    printThisPage() {
57
+        var ptime = Math.round(new Date().getTime() / 1000);
58
+        this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
59
+        setTimeout(() => {
60
+            const style =
61
+            '@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.prescription-print{font-size: 14px;}.printTitle{font-size: 18px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:5px;padding:0 10px;}.infoTitle div{width: 300px;margin-bottom:5px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;}.prescriptionBox{padding:0 10px;min-height:380px;}.Rp{font-size: 22px;font-weight: bold;line-height:1px;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox p{line-height: 1px;padding-bottom:10px !important;} .drugsOne{line-height: 1px;margin-bottom:10px !important;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; padding:0 10px;margin:5px 0;} .actionBar div{width:150px;}}';
62
+            printJS({
63
+                printable: "prescription-print3",
64
+                type: "html",
65
+                style: style,
66
+                scanStyles: false
67
+            });
68
+        },500)
69
+        
70
+    },
71
+    getAllDoctorList(){
72
+      getAllDoctorList().then(response=>{
73
+        if(response.data.state == 1){
74
+               var doctor =  response.data.data.doctor
75
+               
76
+               this.doctorList = doctor
77
+             }
78
+         })   
79
+     },
80
+    getAllHisPatientList(){
81
+         const params = {
82
+           record_date:this.record_date
83
+         }
84
+      getAllHisPatientList(params).then(response=>{
85
+         if(response.data.state == 1){
86
+            this.patientTableData = response.data.data.list
87
+            this.patientTableDataTwo = response.data.data.list
88
+
89
+            console.log('222', this.patientTableData)
90
+            let cal_one = 0
91
+            let cal_two = 0
92
+            for (let i = 0; i < response.data.data.list.length; i++) {
93
+              if (response.data.data.list[i].prescription == null || response.data.data.list[i].prescription.length == 0) {
94
+                cal_one = cal_one + 1
95
+              }
96
+              if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
97
+                cal_two = cal_two + 1
98
+              }
99
+            }
100
+            // this.$refs.tab.setCurrentRow(this.patientTableData[0])
101
+            // console.log(this.patientTableData[0])
102
+            // this.choosePatient(this.patientTableData[0])
103
+            this.cal_one = cal_one
104
+            this.cal_two = cal_two   
105
+         }
106
+      })
107
+    },
108
+
109
+    changePatient(row){
110
+      console.log("row",row)
111
+      this.patient_id = row.patient_id
112
+      this.record_date = this.record_date
113
+      this.prescription_id = this.prescription_id
114
+      //   var params = {
115
+      //     patient_id:row.patient_id,
116
+      //     record_date:this.record_date,
117
+      //     prescription_id:this.prescription_id,
118
+      //   }
119
+      // getPrescriptionPrint(params).then(response=>{
120
+      //     if(response.data.state == 1){
121
+      //       var advicePrint =  response.data.data.advicePrint
122
+      //       console.log("adviceprint",advicePrint)
123
+      //       this.advicePrint = advicePrint
124
+      //       // var hisPatient =  response.data.data.hisPatient
125
+      //       // console.log("hispatient",hisPatient)
126
+      //       // this.hisPatient = hisPatient
127
+      //       var patient =  response.data.data.patient
128
+      //       console.log("patient",patient)
129
+      //       this.patient = patient
130
+      //       var doctorPorject = response.data.data.doctorPorject
131
+      //       console.log("doctorporject",doctorPorject)
132
+      //     }
133
+      // })
134
+    },
135
+    searchAction(){
136
+
137
+    }
138
+    
139
+  },
140
+
141
+  created() {
142
+    this.org_id = this.$store.getters.xt_user.org_id
143
+    this.getAllDoctorList()
144
+    var record_date = this.paramsObj.record
145
+    this.record_date = record_date
146
+    console.log("record_date",record_date)
147
+    this.prescription_id = this.paramsObj.prescription_id
148
+    this.patient_id = this.paramsObj.patient_id
149
+    this.ids = this.paramsObj.ids
150
+    this.getAllHisPatientList(record_date)
151
+  },
152
+  watch:{
153
+    paramsObj:{//深度监听,可监听到对象、数组的变化
154
+      handler(val, oldVal){
155
+        this.paramsObj = val
156
+        this.patient_id = this.paramsObj.patient_id
157
+        var record_date = this.paramsObj.record
158
+        this.record_date = record_date
159
+        var prescription_id = this.paramsObj.prescription_id
160
+        this.prescription_id = prescription_id
161
+        this.ids = this.paramsObj.ids
162
+        
163
+      },
164
+      deep:true
165
+    }
166
+  }
167
+
168
+};
169
+</script>
170
+
171
+<style>
172
+.dialysis-print-order {
173
+  width: 960px;
174
+  margin: 0 auto;
175
+}
176
+
177
+.dialysis-print-order .order-yy-name {
178
+  margin: auto;
179
+  text-align: center;
180
+  font-size: 20px;
181
+  letter-spacing: 5px;
182
+}
183
+
184
+.dialysis-print-order .order-title {
185
+  margin: auto;
186
+  font-weight: 600;
187
+  text-align: center;
188
+  font-size: 22px;
189
+  padding: 10px;
190
+}
191
+
192
+.dialysis-print-order .table-box {
193
+  width: 100%;
194
+  line-height: 23px;
195
+  font-size: 14px;
196
+}
197
+
198
+.dialysis-print-order .print-table {
199
+  width: 100%;
200
+  text-align: center;
201
+  border-collapse: collapse;
202
+  line-height: 40px;
203
+  font-size: 14px;
204
+  border-color: #000;
205
+}
206
+
207
+.dialysis-print-order .print-table-no {
208
+  width: 100%;
209
+  text-align: center;
210
+  border-collapse: collapse;
211
+  font-size: 14px;
212
+}
213
+
214
+.dialysis-print-order .under-line {
215
+  border-bottom: 1px solid #999;
216
+  width: 95%;
217
+  text-align: center;
218
+  margin-left: 2px;
219
+}
220
+
221
+.dialysis-print-order .title-box {
222
+  text-align: center;
223
+  font-size: 16px;
224
+}
225
+
226
+.dialysis-print-order .radio-lebel-box {
227
+  font-weight: 400;
228
+  cursor: pointer;
229
+}
230
+
231
+.dialysis-print-order .radio-no {
232
+  opacity: 0;
233
+  outline: none;
234
+  position: absolute;
235
+  margin: 0;
236
+  width: 0;
237
+  height: 0;
238
+  z-index: -1;
239
+}
240
+
241
+.dialysis-print-order .radio-inner {
242
+  white-space: nowrap;
243
+  cursor: pointer;
244
+  outline: none;
245
+  display: inline-block;
246
+  line-height: 1;
247
+  position: relative;
248
+  vertical-align: middle;
249
+}
250
+
251
+.dialysis-print-order .radio-fang {
252
+  display: inline-block;
253
+  position: relative;
254
+  border: 1px solid #000;
255
+  box-sizing: border-box;
256
+  width: 14px;
257
+  height: 14px;
258
+  background-color: #fff;
259
+  z-index: 1;
260
+  transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
261
+    background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
262
+}
263
+
264
+.dialysis-print-order .is-checked-radio::after {
265
+  content: "√";
266
+  font-size: 15px;
267
+}
268
+
269
+.dialysis-print-order .print-table-no tr td {
270
+  padding: 8px 5px;
271
+  line-height: 25px;
272
+}
273
+
274
+.dialysis-print-order .print-table tr td {
275
+  padding: 1px 1px;
276
+  /*line-height: 25px;*/
277
+}
278
+
279
+.es-img {
280
+  height: 30px;
281
+}
282
+
283
+.advice-name {
284
+  text-align: left;
285
+}
286
+
287
+.advice-children {
288
+  display: flex;
289
+}
290
+
291
+.title-box-pro {
292
+  border: 0 #fff;
293
+  line-height: 25px;
294
+  height: 25px;
295
+  text-align: left;
296
+  padding-left: 10px !important;
297
+}
298
+.title-box-pro-tr {
299
+  border: 0 #fff;
300
+}
301
+.text-align-left {
302
+  text-align: left !important;
303
+  padding-left: 10px !important;
304
+  font-size: 14px !important;
305
+  line-height: 25px;
306
+}
307
+.print-table-tr-new td {
308
+  line-height: 20px !important;
309
+}
310
+.border-top-solid {
311
+  border: solid 1px #000;
312
+}
313
+.print-template-two tr {
314
+  line-height: 30px;
315
+}
316
+
317
+.table-box1 {
318
+  border: 1px solid #000;
319
+  width: 100%;
320
+  line-height: 30px;
321
+  font-size: 14px;
322
+  border-collapse: collapse;
323
+}
324
+.table-box1 tr {
325
+  border-bottom: 1px solid #000;
326
+}
327
+</style>
328
+
329
+<style lang="scss">
330
+
331
+.newContainer{
332
+  .dialysisPage::-webkit-scrollbar {
333
+    height: 15px;
334
+  }
335
+  
336
+  .el-date-editor{
337
+    .el-input__inner{
338
+      padding-right:0px;
339
+    }
340
+  }
341
+  .el-table td, .el-table th{
342
+    text-align: center;
343
+  }
344
+}
345
+.newContainer::-webkit-scrollbar{
346
+  height: 15px !important;
347
+}
348
+</style>

+ 460 - 0
src/xt_pages/outpatientDoctorStation/checkTemplate/printOne.vue Vedi File

@@ -0,0 +1,460 @@
1
+<template>
2
+    <div>
3
+        <div id='prescription-print3' class="prescription-print">
4
+            <img style="width:100%;height:80px" src="../../../assets/img/bailinTop.jpg" alt="">
5
+            <div class="printTitle">检验申请单</div>
6
+
7
+            <div style="border:1px solid #000;">
8
+                <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;line-height:40px;padding:0 10px;">
9
+                    <div>是否急诊:否</div>
10
+                    <div>结算方式:{{ faber && faber.transBody ? getName(faber.transBody.outputlist1) : '' }}</div>
11
+                    <div>金额:{{ total }}</div>
12
+                </div>
13
+                <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;line-height:40px;padding:0 10px;">
14
+                    <div>姓名:{{advicePrint[0].patient.name?advicePrint[0].patient.name:""}}</div>
15
+                    <div>性别:
16
+                        <span v-if="advicePrint[0].patient.gender == 1">男</span>
17
+                        <span v-if="advicePrint[0].patient.gender == 2">女</span>
18
+                    </div>
19
+                    <div>年龄:{{advicePrint[0].patient.age?advicePrint[0].patient.age:""}}岁</div>
20
+                </div>
21
+                <div style="margin-bottom:20px;padding:10px 10px 0;">病史摘要:{{history.history_of_present_illness?history.history_of_present_illness:''}}</div>
22
+                <div style="margin-bottom:20px;padding:0 10px;">体格检查:
23
+                    <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
24
+                    <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
25
+                    <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
26
+                    <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
27
+                </div>
28
+                <div style="margin-bottom:20px;padding:0 10px;">临床诊断:{{ getDiagnosis(advicePrint[0].info.diagnosis) }}</div>
29
+                <div style="display:flex;margin-bottom:20px;padding:0 10px;">
30
+                    <div>检验项目:</div>
31
+                    <div>
32
+                        <div v-for="item in projectPrint" style="margin-bottom:10px;">{{ item.project.project_name }}</div>
33
+                    </div>
34
+                </div>
35
+                <div style="display:flex;justify-content: space-between;border-top:1px solid #000;line-height:40px;padding:0 10px;">
36
+                    <div>开单医生:{{ doctor ? doctor : '' }}</div>
37
+                    <div>开单日期:
38
+                        {{getTime(pre_time) ? getTime(pre_time).split(' ')[0] : ''}}
39
+                    </div>
40
+                    <div>医生签字:{{ doctor ? doctor : '' }}</div>
41
+                </div>
42
+            </div>   
43
+            <img style="width:100%;" src="../../../assets/img/bailinBottom.jpg" alt="">
44
+        </div>
45
+    </div>
46
+
47
+</template>
48
+<script>
49
+import { jsGetAge, uParseTime } from '@/utils/tools'
50
+import {getAllDoctorList,getPrescriptionPrint,getHisPatientDetail,getPatientCaseHistory} from "@/api/project/project"
51
+import {getInitData} from "@/api/his/his"
52
+export default {
53
+    props:{
54
+      patient_id:Number,
55
+      record_date:String,
56
+      prescription_id:Number,
57
+      ids:String
58
+    }, 
59
+    data(){
60
+      return {
61
+        doctorList:[],
62
+        advicePrint:{},
63
+        patient:{},
64
+        tableData:[],
65
+        prescriptionInfo:[],
66
+        hisPatient:{},
67
+        department:[],
68
+        prescriptions:[],
69
+        projectList:[],
70
+        orgname:"",
71
+        diagnoses:[],
72
+        pageArr:[],
73
+        faber:{},
74
+        total:0,
75
+        projectPrint:[],
76
+        time:'',
77
+        doctor:''
78
+      }
79
+    },
80
+   methods:{
81
+    getPatientCaseHistory(){
82
+        const params = {
83
+          patient_id:this.patient_id
84
+        }
85
+        getPatientCaseHistory(params).then(response=>{
86
+            if(response.data.state == 1){
87
+                var history = response.data.data.history
88
+                console.log("中国history222222",history)
89
+                this.history = history
90
+            }
91
+        })
92
+    },
93
+     getAllDoctorList(){
94
+      getAllDoctorList().then(response=>{
95
+        if(response.data.state == 1){
96
+               var doctor =  response.data.data.doctor
97
+               
98
+               this.doctorList = doctor
99
+             }
100
+         })   
101
+     },
102
+
103
+      getDoctor(id){
104
+        var name = ""
105
+        for(let i=0;i<this.doctorList.length;i++){
106
+          if(id == this.doctorList[i].admin_user_id){
107
+              name = this.doctorList[i].user_name
108
+          }
109
+        }
110
+        return name
111
+      },
112
+      getTime(value, temp) {
113
+        if (value != undefined) {
114
+            return uParseTime(value, temp)
115
+        }
116
+        return ''
117
+     },
118
+       getPrescriptionPrint(){
119
+         var params = {
120
+          // patient_id:this.patient_id,
121
+          // record_date:this.record_date,
122
+          // prescription_id:this.prescription_id,
123
+          patient_id:this.patient_id,
124
+          record_date:this.record_date,
125
+          prescription_id:this.prescription_id,
126
+          ids:this.ids
127
+        }
128
+        console.log("params",params)
129
+       getPrescriptionPrint(params).then(response=>{
130
+         if(response.data.state == 1){
131
+            var advicePrint =  response.data.data.advicePrint
132
+            console.log("adviceprint9999",advicePrint)
133
+            this.advicePrint = advicePrint
134
+            this.prescriptions = advicePrint
135
+            console.log("处方222222",this.prescriptions)
136
+            var hisPatient = response.data.data.hisPatient
137
+            console.log("hisPatient",hisPatient)
138
+            this.hisPatient = hisPatient
139
+            let projectPrint = []
140
+            let total = 0
141
+            this.advicePrint.map(item => {
142
+              if(item.project.length > 0){
143
+                  item.project.map(it => {
144
+                        if(it.type == 2){
145
+                            if(it.project.cost_classify == 3){
146
+                                projectPrint.push(it)
147
+                                total += it.project.price
148
+                            }
149
+                        }
150
+                  })
151
+                
152
+              }
153
+            })
154
+            this.total = total
155
+            this.pre_time = this.advicePrint[0].pre_time
156
+            this.doctor = this.advicePrint[0].doctor
157
+            this.projectPrint = projectPrint
158
+            console.log('this.projectPrint',projectPrint)
159
+            var projectlist =  response.data.data.projectlist
160
+
161
+            var projectlist =  response.data.data.projectlist
162
+            console.log("所有项目列表",projectlist)
163
+            this.projectList = projectlist
164
+            this.getPage()
165
+            let outputlist1Name = response.data.data.his.patient_info ? JSON.parse(response.data.data.his.patient_info) : {};
166
+            this.faber = outputlist1Name
167
+
168
+            
169
+          }
170
+       })
171
+     },
172
+     getHisPatientDetail(){
173
+          const params = {
174
+              patient_id:this.patient_id
175
+          }
176
+       getHisPatientDetail(params).then(response=>{
177
+          if(response.data.state == 1){
178
+             var hisPatient =  response.data.data.hisPatient
179
+             console.log("挂号病人",hisPatient)
180
+             this.hisPatient = hisPatient
181
+          }
182
+       })
183
+     },
184
+     getInitData(){
185
+       getInitData().then(response=>{
186
+          if(response.data.state == 1){
187
+            this.department = response.data.data.department
188
+            this.diagnoses = response.data.data.diagnose
189
+            console.log("争端",this.diagnoses)
190
+          }
191
+       })
192
+     },
193
+     getDepart(id){
194
+         var name = ""
195
+       for(let i=0;i<this.department.length;i++){
196
+           if(id == this.department[i].id){
197
+               name = this.department[i].name
198
+           }
199
+       }
200
+       return name
201
+     },
202
+    getTotalOne(id) {
203
+
204
+        var total = 0
205
+        var addtotal = 0
206
+        for (let i = 0; i < this.prescriptions.length; i++) {
207
+          if(id == this.prescriptions[i].id){
208
+            if (this.prescriptions[i].project != null) {
209
+              for (let a = 0; a < this.prescriptions[i].project.length; a++) {
210
+                total = total + this.prescriptions[i].project[a].price * this.prescriptions[i].project[a].count
211
+              }
212
+            }
213
+
214
+            if (this.prescriptions[i].additionalcharge != null) {
215
+              for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
216
+                addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
217
+              }
218
+            }
219
+              addtotal =  Math.floor(addtotal * 100) / 100
220
+        }
221
+       
222
+       }
223
+
224
+      for (let i = 0; i < this.prescriptions.length; i++) {
225
+          if(id == this.prescriptions[i].id){
226
+            if (this.prescriptions[i].advices != null) {
227
+              for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
228
+                total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
229
+              }
230
+            }
231
+          
232
+            if (this.prescriptions[i].additionalcharge != null) {
233
+              for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
234
+                addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
235
+              }
236
+            }
237
+              addtotal =  Math.floor(addtotal * 100) / 100
238
+        }
239
+       }
240
+
241
+        return total + addtotal
242
+      },
243
+      
244
+     getProjectName(id){
245
+        var project_name = ""
246
+        for(let i=0;i<this.projectList.length;i++){
247
+           if(id == this.projectList[i].id){
248
+               project_name = this.projectList[i].project_name
249
+           }
250
+        }
251
+        return project_name
252
+     },
253
+
254
+     getDiagnosis(ids){
255
+        let id = ids.split(',')
256
+        var name = ""
257
+        for(let i=0;i<this.diagnoses.length;i++){
258
+          // if(id == this.diagnoses[i].id){
259
+          //    name = this.diagnoses[i].class_name
260
+          // }
261
+          if(id.indexOf(this.diagnoses[i].id.toString()) > -1){
262
+            name += this.diagnoses[i].class_name + ' '
263
+          }
264
+        }
265
+        return name
266
+     },
267
+     getPage(){
268
+        this.page = 1
269
+        this.pageArr = []
270
+
271
+        this.advicePrint.map(item => {
272
+          let arr = []
273
+          item.pageArr = []
274
+          if(item.advices.length <= 5){
275
+            this.page = 1
276
+            arr.push(item.advices.length)
277
+            item.pageArr.push(arr)
278
+            
279
+          }else if(item.advices.length > 5){
280
+            this.page = parseInt(item.advices.length / 5)
281
+            let num = item.advices.length % 5
282
+            for (var i=0;i<this.page;i++){
283
+              item.pageArr.push([5])
284
+            }
285
+            if(num != 0){
286
+              item.pageArr.push([num])
287
+            }
288
+          }
289
+        })
290
+        // console.log('this.pageArr',this.pageArr)
291
+      },
292
+      getName(list) {
293
+        console.log('list',list)
294
+        let new_list = []
295
+        for (let i = 0; i < list.length; i++) {
296
+          if (list[i].aac031 == '1') {
297
+            new_list.push(list[i])
298
+          }
299
+        }
300
+
301
+        switch (new_list[0].bcc334) {
302
+          case "A31001":
303
+            return "深圳医保1档"
304
+            break
305
+          case "A31002":
306
+            return "深圳医保2档"
307
+
308
+            break
309
+          case "A31003":
310
+            return "深圳医保3档"
311
+
312
+            break
313
+          case "A31004":
314
+            return "二档(少儿)"
315
+
316
+            break
317
+          case "A31005":
318
+            return "学生二档"
319
+
320
+            break
321
+          case "A31006":
322
+            return "大学生二档"
323
+
324
+            break
325
+          case "A32001":
326
+            return "在职公务员"
327
+            break
328
+          case "A32002":
329
+            return "在职驻深公务员"
330
+
331
+            break
332
+          case "A39301":
333
+            return "家属统筹医疗"
334
+
335
+            break
336
+          case "A41001":
337
+            return "工伤在职"
338
+
339
+            break
340
+          case "A51001":
341
+            return "生育在职"
342
+
343
+            break
344
+          case "A52001":
345
+            return "生育医疗一档"
346
+
347
+            break
348
+          case "A52002":
349
+            return "生育医疗一档"
350
+
351
+            break
352
+          case "C31001":
353
+            return "一档医疗退休"
354
+
355
+            break
356
+          case "C31002":
357
+            return "二档医疗退休"
358
+            break
359
+
360
+        }
361
+
362
+
363
+
364
+      },
365
+
366
+   },
367
+   created(){
368
+      this.getAllDoctorList()
369
+      this.getInitData()
370
+      this.getPrescriptionPrint()
371
+      this.getHisPatientDetail()
372
+      this.getPatientCaseHistory()
373
+      var xtuser = this.$store.getters.xt_user;
374
+      this.orgname = xtuser.org.org_name;
375
+     
376
+   },
377
+   watch:{
378
+     ids:function(val){
379
+      this.ids = val
380
+      this.getPrescriptionPrint()
381
+    }
382
+   }
383
+}
384
+</script>
385
+
386
+
387
+<style lang="scss" scoped>
388
+.prescription-print{
389
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
390
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; 
391
+    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
392
+    margin-bottom: 20px;
393
+    padding:20px 10px;
394
+}
395
+.printTitle{
396
+    font-size: 22px;
397
+    text-align: center;
398
+    font-weight: bold;
399
+    margin-bottom: 10px;
400
+}
401
+.infoTitle{
402
+    display: flex;
403
+    margin-top:10px;
404
+    line-height: 24px;
405
+}
406
+.infoTitle div{
407
+    width: 200px;
408
+}
409
+.infoMain{
410
+    display: flex;
411
+    flex-wrap: wrap;
412
+    margin-top:10px;
413
+}
414
+.infoMain div{
415
+    width: 50%;
416
+    line-height: 24px;
417
+}
418
+.prescriptionBox{
419
+    padding:0 10px;
420
+    min-height:400px;
421
+}
422
+.Rp{
423
+    font-size: 22px;
424
+    font-weight: bold;
425
+}
426
+.drugsBox{
427
+    padding-left: 40px;
428
+    margin-bottom: 10px;
429
+}
430
+.drugsBox div{
431
+    line-height: 20px;
432
+}
433
+.drugsOne{
434
+    line-height: 24px;
435
+}
436
+.drugsOne span{
437
+    margin-right: 20px;
438
+}
439
+.doctorBox{
440
+    display: flex;
441
+    justify-content: space-between;
442
+    padding:0 10px;
443
+    line-height: 24px;
444
+    border-bottom: 2px solid #000;
445
+}
446
+.actionBar{
447
+    display: flex;
448
+    justify-content: space-between; 
449
+    line-height: 24px;
450
+    padding:0 10px;
451
+}
452
+.actionBar p{
453
+    width:150px;
454
+}
455
+.under_line{
456
+  display: inline-block;
457
+  border-bottom: 1px solid #000;
458
+  flex: 1;
459
+}
460
+</style>

+ 105 - 81
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Vedi File

@@ -46,9 +46,9 @@
46 46
 
47 47
                     </el-form-item>
48 48
 
49
-                    <el-form-item label="诊断:" prop="name" label-position="right">
49
+                    <el-form-item label="诊断:" prop="name" label-position="right" style="width:66.6%;">
50 50
 
51
-                        <el-select style="width:100%;" v-model="diagnose" placeholder="">
51
+                        <el-select style="width:100%;" v-model="diagnose" placeholder="" multiple>
52 52
                             <el-option
53 53
                                     v-for="(item,index) in diagnoses"
54 54
                                     :key="index"
@@ -540,6 +540,9 @@
540 540
           {value: 18, label: "预防接种"},
541 541
           {value: 19, label: "门诊输血"},
542 542
           {value: 91, label: "新冠肺炎门诊"},
543
+          {value: 1111, label: "精一"},
544
+          {value: 1112, label: "精二"},
545
+
543 546
         ],
544 547
 
545 548
         isLastOrNextVisible: false,
@@ -613,7 +616,7 @@
613 616
         department: [],
614 617
         sick: [],
615 618
         diagnoses: [],
616
-        diagnose: "",
619
+        diagnose: [],
617 620
         state1: '',
618 621
         curTotal: 0,
619 622
         prescription_id: 0,
@@ -744,7 +747,8 @@
744 747
               obj['prescribing_number_unit'] = drug_month_prescriptions.advices[a].prescribing_number_unit
745 748
               obj['medical_insurance_number'] = drug_month_prescriptions.advices[a].drug.medical_insurance_number
746 749
               obj['id'] = drug_month_prescriptions.advices[a].drug_id
747
-              obj['single_dose_unit'] = drug_month_prescriptions.advices[a].single_dose_unit
750
+              // obj['single_dose_unit'] = drug_month_prescriptions.advices[a].single_dose_unit
751
+              obj['single_dose_unit'] = drug_month_prescriptions.advices[a].drug.dose_unit
748 752
 
749 753
 
750 754
               // obj['retail_price'] = obj['retail_price'] +  drug_month_prescriptions.advices[a].drug.retail_price
@@ -1748,22 +1752,7 @@
1748 1752
             this.diagnoses = response.data.data.diagnose
1749 1753
             this.additions = response.data.data.additions
1750 1754
 
1751
-            // var info = response.data.data.info
1752
-            // if (info.user_type == 2 || info.user_type == 1) {
1753
-            //   this.doctorValue = info.admin_user_id
1754
-            //   if (info.department_id == 0) {
1755
-            //     if (this.department.length > 0) {
1756
-            //       this.departmentValue = this.department[0].id
1757
-            //     } else {
1758
-            //       this.departmentValue = ''
1759
-            //
1760
-            //     }
1761
-            //   } else {
1762
-            //     this.departmentValue = info.department_id
1763
-            //   }
1764
-            // }else{
1765
-            //   this.doctorValue = this.doctors[0].admin_user_id
1766
-            // }
1755
+
1767 1756
           }
1768 1757
         })
1769 1758
 
@@ -1868,14 +1857,12 @@
1868 1857
         this.teamList = []
1869 1858
 
1870 1859
       },
1871
-      setData(data, info, admin_info, doctors, department, hisPatientInfo, month_data) {
1860
+      setData(data, info, admin_info, doctors, department, hisPatientInfo, month_data,last_info) {
1872 1861
         this.curMonthPrescriptions = {}
1873 1862
         this.curPrescriptions = {}
1874 1863
         // this.$refs.tabProjectTeam.clearSelection()
1875 1864
 
1876 1865
 
1877
-
1878
-        console.log(doctors)
1879 1866
         for (let i = 0; i < doctors.length; i++) {
1880 1867
           if (doctors[i].user_type == 1) {
1881 1868
             doctors.splice(i, 1)
@@ -1903,14 +1890,7 @@
1903 1890
           this.curPrescriptions = {}
1904 1891
         }
1905 1892
 
1906
-        this.diagnose = info.diagnosis
1907
-        if (this.diagnose == 0) {
1908
-          this.diagnose = ""
1909
-          for (let i = 0; i < this.diagnoses.length; i++) {
1910
-            this.diagnose = this.diagnoses[0].id
1911
-          }
1912 1893
 
1913
-        }
1914 1894
         if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
1915 1895
           this.curStatus = 1
1916 1896
           this.customTabIndex = 1
@@ -1927,14 +1907,6 @@
1927 1907
           this.showTwo = true
1928 1908
         }
1929 1909
 
1930
-        this.state1 = info.sick_type
1931
-        if (this.state1 == 0) {
1932
-          this.state1 = ''
1933
-          for (let i = 0; i < this.sick.length; i++) {
1934
-            this.state1 = this.sick[0].id
1935
-          }
1936
-
1937
-        }
1938 1910
         this.state2 = info.sick_history
1939 1911
         if (this.state2 == 0) {
1940 1912
           this.state2 = ''
@@ -1955,52 +1927,100 @@
1955 1927
           this.order_status = '已退费'
1956 1928
         }
1957 1929
 
1958
-        if (info.id > 0) {
1959
-          this.doctorValue = info.doctor_id
1960
-          this.departmentValue = info.departments
1961
-        } else {
1962
-          if (hisPatientInfo.doctor != 0 && hisPatientInfo.department != 0) {
1963
-            this.doctorValue = hisPatientInfo.doctor
1964
-            this.departmentValue = hisPatientInfo.department
1930
+
1931
+
1932
+        getInitData().then(response => {
1933
+          if (response.data.state == 0) {
1934
+            this.$message.error(response.data.msg)
1935
+            return false
1965 1936
           } else {
1966
-            if (admin_info.user_type == 2) {
1967
-              this.doctorValue = admin_info.admin_user_id
1968
-              if (admin_info.department_id == 0) {
1969
-                if (this.department.length > 0) {
1970
-                  if (department && department.length > 0) {
1971
-                    this.departmentValue = department[0].id
1937
+            this.drugs = response.data.data.drugs
1938
+            this.allDrugs = response.data.data.drugs
1939
+            this.advices_template = response.data.data.advices_template
1940
+            this.doctors = response.data.data.doctors
1941
+            for (let i = 0; i < this.doctors.length; i++) {
1942
+              if (this.doctors[i].user_type == 1) {
1943
+                this.doctors.splice(i, 1)
1944
+              }
1945
+            }
1946
+            this.department = response.data.data.department
1947
+            this.sick = response.data.data.sick
1948
+            this.diagnoses = response.data.data.diagnose
1949
+            this.additions = response.data.data.additions
1972 1950
 
1973
-                  } else {
1974 1951
 
1975
-                    this.departmentValue = ''
1976 1952
 
1977
-                  }
1978
-                } else {
1979
-                  this.departmentValue = ''
1980
-                }
1981
-              } else {
1982
-                this.departmentValue = admin_info.department_id
1953
+
1954
+
1955
+            if (info.id > 0) {
1956
+              this.doctorValue = info.doctor_id
1957
+              this.departmentValue = info.departments
1958
+            } else {
1959
+              if(admin_info.id > 0 && admin_info.user_type == 2){
1960
+                this.doctorValue = admin_info.admin_user_id
1961
+                this.departmentValue = this.department[0].id
1962
+
1963
+              }else{
1964
+
1965
+                this.doctorValue = this.doctors[0].admin_user_id
1966
+                this.departmentValue = this.department[0].id
1967
+
1968
+              }
1969
+
1970
+
1971
+            }
1972
+
1973
+            if (info.register_type == 0) {
1974
+              for (let i = 0; i < this.register.length; i++) {
1975
+                this.register_type = this.register[0].value
1983 1976
               }
1984 1977
             } else {
1985
-              this.doctorValue = doctors[0].admin_user_id
1978
+              this.register_type = info.register_type
1986 1979
             }
1987
-            if (this.doctorValue == 0) {
1988
-              this.doctorValue = ''
1980
+            this.diagnose = []
1981
+
1982
+            if(info.id == 0){
1983
+              if(last_info.diagnosis.length == 0){
1984
+                this.diagnose = []
1985
+              }else{
1986
+                for(let i = 0; i < last_info.diagnosis.split(",").length;i++){
1987
+                  this.diagnose.push(parseInt(last_info.diagnosis.split(",")[i]))
1988
+
1989
+                }
1990
+              }
1991
+            }else{
1992
+              if(info.diagnosis.length == 0){
1993
+                this.diagnose = []
1994
+              }else{
1995
+                for(let i = 0; i < info.diagnosis.split(",").length;i++){
1996
+                  this.diagnose.push(parseInt(info.diagnosis.split(",")[i]))
1997
+
1998
+                }
1999
+
2000
+              }
2001
+
1989 2002
             }
2003
+
2004
+
2005
+
2006
+            this.state1 = info.sick_type
2007
+            if (this.state1 == 0 || this.state1 == "") {
2008
+              this.state1 = ''
2009
+              for (let i = 0; i < this.sick.length; i++) {
2010
+                this.state1 = this.sick[0].id
2011
+              }
2012
+            }
2013
+
2014
+            if(this.departmentValue == "" || this.departmentValue == 0){
2015
+              if(this.department.length > 0){
2016
+                this.departmentValue = this.department[0].id
2017
+
2018
+              }
2019
+            }
2020
+
1990 2021
           }
1991
-        }
1992
-        console.log(info.register_type)
1993
-        if (info.register_type == 0) {
1994
-          for (let i = 0; i < this.register.length; i++) {
1995
-            this.register_type = this.register[0].value
1996
-          }
1997
-        } else {
1998
-          this.register_type = info.register_type
1999
-        }
2022
+        })
2000 2023
 
2001
-        if (this.diagnose == 0) {
2002
-          this.diagnose = ""
2003
-        }
2004 2024
       },
2005 2025
       moreState(tab, event) {
2006 2026
         if (tab == 'more') {
@@ -2077,7 +2097,6 @@
2077 2097
             this.$message.error('疾病类型不能为空')
2078 2098
             return
2079 2099
           }
2080
-          console.log(this.prescriptions)
2081 2100
           for (let i = 0; i < this.prescriptions.length; i++) {
2082 2101
             for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2083 2102
               if (this.prescriptions[i].advices[b].prescribing_number == 0 || this.prescriptions[i].advices[b].prescribing_number == '') {
@@ -2104,7 +2123,7 @@
2104 2123
             let params = {
2105 2124
               p_type: 2,
2106 2125
               patient_id: this.patientInfo.id,
2107
-              diagnose: this.diagnose,
2126
+              diagnose: this.diagnose.join(","),
2108 2127
               sick_type: this.state1,
2109 2128
               sick_history: this.state2,
2110 2129
               doctor: this.doctorValue,
@@ -2183,7 +2202,7 @@
2183 2202
             if (index == 1) {
2184 2203
               let params = {
2185 2204
                 patient_id: this.patientInfo.id,
2186
-                diagnose: this.diagnose,
2205
+                diagnose: this.diagnose.join(","),
2187 2206
                 sick_type: this.state1,
2188 2207
                 sick_history: this.state2,
2189 2208
                 doctor: this.doctorValue,
@@ -2613,8 +2632,8 @@
2613 2632
                   remark: '',
2614 2633
                   day: "1",
2615 2634
                   prescribing_number: temp3[b].prescribing_number,
2616
-                  single_dose_unit: temp3[b].drug.min_unit,
2617
-                  prescribing_number_unit: temp3[b].drug.max_unit,
2635
+                  single_dose_unit: temp3[b].drug.dose_unit,
2636
+                  prescribing_number_unit: temp3[b].drug.prescribing_number_unit,
2618 2637
                   medical_insurance_number: temp3[b].drug.medical_insurance_number
2619 2638
                 }
2620 2639
 
@@ -2640,8 +2659,8 @@
2640 2659
                   remark: '',
2641 2660
                   day: temp[b].drug_day ? temp[b].drug_day : 1,
2642 2661
                   prescribing_number: temp[b].prescribing_number,
2643
-                  single_dose_unit: temp[b].min_unit,
2644
-                  prescribing_number_unit: temp[b].max_unit,
2662
+                  single_dose_unit: temp[b].dose_unit,
2663
+                  prescribing_number_unit: temp[b].prescribing_number_unit,
2645 2664
                   medical_insurance_number: temp[b].medical_insurance_number,
2646 2665
                   drug: temp[b]
2647 2666
                 }
@@ -2795,12 +2814,16 @@
2795 2814
         })
2796 2815
       },
2797 2816
       selectTeam(row) {
2817
+        console.log(row)
2798 2818
         var arr = []
2799 2819
         for (let i = 0; i < row.length; i++) {
2800 2820
           arr.push(row[i].item_id)
2801 2821
         }
2822
+        console.log(arr)
2802 2823
         var ids = arr.join(',')
2824
+        console.log(ids)
2803 2825
         var strArr = ids.split(',')
2826
+        console.log(strArr)
2804 2827
         var res = []//接收不重复的数据
2805 2828
 
2806 2829
         for (var i = 0; i < strArr.length; i++) {
@@ -2816,6 +2839,7 @@
2816 2839
             res.push(strArr[i])
2817 2840
           }
2818 2841
         }
2842
+        console.log(res)
2819 2843
         var idstr = res.join(',')
2820 2844
         const params = {
2821 2845
           project_id: idstr

+ 27 - 25
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue Vedi File

@@ -117,13 +117,13 @@
117 117
       </el-table-column>
118 118
       <el-table-column align="center" prop="execution_frequency" width="80" label="频率">
119 119
         <template slot-scope="scope">
120
-          <el-input v-model="scope.row.execution_frequency" placeholder=""></el-input>
120
+          <el-input v-model="scope.row.execution_frequency" @input="getProjectSingleDose(scope)" placeholder=""></el-input>
121 121
         </template>
122 122
       </el-table-column>
123 123
       <el-table-column align="center" prop="number_days" width="70" label="天数">
124 124
         <template slot-scope="scope">
125 125
           <div style="display:flex;align-items:center;">
126
-            <el-input v-model="scope.row.number_days" @input="getProjectDay(scope)" placeholder=""></el-input>
126
+            <el-input v-model="scope.row.number_days" @input="getProjectSingleDose(scope)" placeholder=""></el-input>
127 127
             <div>{{'天'}}</div>
128 128
           </div>
129 129
         </template>
@@ -399,18 +399,18 @@
399 399
         if(scope.row.drug.min_unit == scope.row.single_dose_unit){
400 400
           if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
401 401
             console.log(1)
402
-            scope.row.prescribing_number = scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day
402
+            scope.row.prescribing_number = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)
403 403
           }else{
404 404
             console.log(12)
405
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency)) * scope.row.day / scope.row.drug.min_number) 
405
+            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1)) * (scope.row.day ? scope.row.day : 1) / scope.row.drug.min_number) 
406 406
           }
407 407
         }else{
408 408
           if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
409 409
             console.log(123)
410
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day) / scope.row.drug.dose) 
410
+            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose) 
411 411
           }else{
412 412
             console.log(1234)
413
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day) / scope.row.drug.dose / scope.row.drug.min_number)
413
+            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose / scope.row.drug.min_number)
414 414
           }
415 415
         }
416 416
         if(scope.row.prescribing_number == 0){
@@ -430,24 +430,26 @@
430 430
         
431 431
       },
432 432
       getPrescribingNumberUnit(scope){
433
-        if(scope.row.drug.min_unit == scope.row.single_dose_unit){
434
-          if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
435
-            scope.row.prescribing_number = scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day
436
-          }else{
437
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency)) * scope.row.day / scope.row.drug.min_number) 
438
-          }
439
-        }else{
440
-          if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
441
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day) / scope.row.drug.dose) 
442
-          }else{
443
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day) / scope.row.drug.dose / scope.row.drug.min_number)
444
-          }
445
-        }
446
-        if(scope.row.prescribing_number == 0){
447
-          scope.row.prescribing_number = 1
448
-        }
433
+
434
+        // console.log('scope',scope)
435
+        // if(scope.row.drug.min_unit == scope.row.single_dose_unit){
436
+        //   if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
437
+        //     scope.row.prescribing_number = scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day
438
+        //   }else{
439
+        //     scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency)) * scope.row.day / scope.row.drug.min_number) 
440
+        //   }
441
+        // }else{
442
+        //   if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
443
+        //     scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day) / scope.row.drug.dose) 
444
+        //   }else{
445
+        //     scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day) / scope.row.drug.dose / scope.row.drug.min_number)
446
+        //   }
447
+        // }
448
+        // if(scope.row.prescribing_number == 0){
449
+        //   scope.row.prescribing_number = 1
450
+        // }
449 451
         if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
450
-          scope.row.retail_price = scope.row.drug.min_number / scope.row.retail_price
452
+          scope.row.retail_price = scope.row.drug.min_price
451 453
           if(scope.row.prescribing_number > scope.row.drug.total){
452 454
             this.$message.error(scope.row.drug_name + '库存不足')
453 455
           }
@@ -455,7 +457,7 @@
455 457
           if((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total){
456 458
             this.$message.error(scope.row.drug_name + '库存不足')
457 459
           }
458
-          scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
460
+          scope.row.retail_price = scope.row.drug.retail_price
459 461
         }
460 462
       },
461 463
       changePrescribingNumber(scope){
@@ -470,7 +472,7 @@
470 472
         }
471 473
       },
472 474
       getProjectSingleDose(scope){
473
-        this.prescription.project[scope.$index].total = scope.row.single_dose * scope.row.number_days
475
+        this.prescription.project[scope.$index].total = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.number_days ? scope.row.number_days : 1)
474 476
         if(this.prescription.project[scope.$index].total == 0){
475 477
           this.prescription.project[scope.$index].total = 1
476 478
         }

+ 283 - 200
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Vedi File

@@ -101,17 +101,20 @@
101 101
                         <el-button size="small" ref="button_three" @click="open_two()" type="primary">处方调用</el-button>
102 102
                         <el-button size="small" @click="open_three()" type="primary">存模板</el-button>
103 103
 
104
-                        <el-popover
104
+                        <!-- <el-popover
105 105
                                 placement="bottom"
106
-                                width="200"
106
+                                width="300"
107 107
                                 trigger="click">
108 108
                             <el-button size="small" ref="button_two" @click="open(2)">处方单</el-button>
109 109
                             <el-button size="small" ref="button_six" @click="open(6)">治疗单</el-button>
110
+                            <el-button size="small" ref="button_six" @click="open(20)">检验单</el-button>
110 111
                             <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印
111 112
                             </el-button>
112 113
 
113
-                        </el-popover>
114
-                        <!--<el-button size="small" ref="button_four"  @click="open(5)" type="primary" :disabled='prescriptions && prescriptions[0].advices && prescriptions[0].project ? prescriptions[0].advices.length == 0 && prescriptions[0].project.length == 0 : false'>存模板</el-button> -->
114
+                        </el-popover> -->
115
+                        <el-button size="small" @click="openPrint" type="primary">打印</el-button>
116
+
117
+                        <!-- <el-button size="small" ref="button_four"  @click="open(5)" type="primary" :disabled='prescriptions && prescriptions[0].advices && prescriptions[0].project ? prescriptions[0].advices.length == 0 && prescriptions[0].project.length == 0 : false'>存模板</el-button> -->
115 118
                     </div>
116 119
                     <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子病历'">
117 120
                         <el-button size="small" @click="opentwo(1)" type="primary">保存</el-button>
@@ -145,17 +148,18 @@
145 148
         </div>
146 149
 
147 150
         <el-dialog
148
-                title="处方打印"
151
+                title="打印"
149 152
                 :visible.sync="centerDialogVisible"
150 153
                 width="600px"
151 154
                 center>
152
-            <el-table
155
+                <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">处方笺打印</div>
156
+                <el-table
153 157
                     ref="multipleTable"
154
-                    :data="tableData"
158
+                    :data="tableData1"
155 159
                     tooltip-effect="dark"
156 160
                     style="width: 600px"
157 161
 
158
-                    @selection-change="handleSelectionChange">
162
+                    @selection-change="handleSelectionChange1">
159 163
                 <el-table-column
160 164
                         align='center'
161 165
                         type="selection"
@@ -171,9 +175,67 @@
171 175
                 </el-table-column>
172 176
                 <el-table-column label="处方号">
173 177
                     <template slot-scope="scope">
174
-          <span>
175
-           <el-input v-model="scope.row.prescription_number" :disabled="true"></el-input>
176
-          </span>
178
+                      <span>
179
+                        <el-input v-model="scope.row.prescription_number" :disabled="true"></el-input>
180
+                      </span>
181
+                    </template>
182
+                </el-table-column>
183
+            </el-table>
184
+            <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">治疗单打印</div>
185
+                <el-table
186
+                    ref="multipleTable"
187
+                    :data="tableData2"
188
+                    tooltip-effect="dark"
189
+                    style="width: 600px"
190
+
191
+                    @selection-change="handleSelectionChange2">
192
+                <el-table-column
193
+                        align='center'
194
+                        type="selection"
195
+                        width="50">
196
+                </el-table-column>
197
+                <el-table-column
198
+                        align='center'
199
+                        label="治疗单编号"
200
+                        width="120">
201
+                    <template slot-scope="scope">
202
+                        <span>治疗 {{scope.$index + 1}}</span>
203
+                    </template>
204
+                </el-table-column>
205
+                <el-table-column label="治疗单号">
206
+                    <template slot-scope="scope">
207
+                      <span>
208
+                        <el-input v-model="scope.row.prescription_number" :disabled="true"></el-input>
209
+                      </span>
210
+                    </template>
211
+                </el-table-column>
212
+            </el-table>
213
+            <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">检验单打印</div>
214
+                <el-table
215
+                    ref="multipleTable"
216
+                    :data="tableData3"
217
+                    tooltip-effect="dark"
218
+                    style="width: 600px"
219
+
220
+                    @selection-change="handleSelectionChange3">
221
+                <el-table-column
222
+                        align='center'
223
+                        type="selection"
224
+                        width="50">
225
+                </el-table-column>
226
+                <el-table-column
227
+                        align='center'
228
+                        label="处方编号"
229
+                        width="120">
230
+                    <template slot-scope="scope">
231
+                        <span>检验单1</span>
232
+                    </template>
233
+                </el-table-column>
234
+                <el-table-column label="检验单号">
235
+                    <template slot-scope="scope">
236
+                      <span>
237
+                        <el-input v-model="scope.row.prescription_number" :disabled="true"></el-input>
238
+                      </span>
177 239
                     </template>
178 240
                 </el-table-column>
179 241
             </el-table>
@@ -183,15 +245,22 @@
183 245
                     title="打印"
184 246
                     :visible.sync="innerVisible"
185 247
                     append-to-body>
186
-
187
-                <print v-if="index == 2" :paramsObj='paramsObj'></print>
188
-                <treatPrint v-if="index == 6" :paramsObj='paramsObj'></treatPrint>
248
+                <print ref="print" v-if="selecting_schs1.length > 0" :paramsObj='paramsObj'></print>
249
+                <treatPrint ref="treatPrint" v-if="selecting_schs2.length > 0" :paramsObj='paramsObj2'></treatPrint>
250
+                <checkPrint ref="checkPrint" v-if="selecting_schs3.length > 0" :paramsObj='paramsObj3'></checkPrint>
189 251
             </el-dialog>
190 252
             <span slot="footer" class="dialog-footer">
191 253
         <el-button @click="centerDialogVisible = false">取 消</el-button>
192 254
         <el-button type="primary" @click="savePrint">确 定</el-button>
193 255
       </span>
194 256
         </el-dialog>
257
+        <!-- <el-dialog
258
+                class="centerDialog"
259
+                width="600px"
260
+                title="打印"
261
+                :visible.sync="checkVisible">
262
+            <checkPrint v-if="index == 20" :paramsObj='paramsObj'></checkPrint>
263
+        </el-dialog> -->
195 264
         <el-dialog
196 265
                 class="centerDialog"
197 266
                 width="600px"
@@ -216,6 +285,7 @@
216 285
   import print from './print'
217 286
   import treatPrint from './treatPrint'
218 287
   import recordPrint from './recordPrint'
288
+  import checkPrint from './checkPrint'
219 289
   import dialysisIndex from './components/dialysisIndex'
220 290
 
221 291
   const moment = require('moment')
@@ -230,6 +300,7 @@
230 300
       print,
231 301
       treatPrint,
232 302
       recordPrint,
303
+      checkPrint,
233 304
       dialysisIndex
234 305
     },
235 306
     data() {
@@ -267,6 +338,7 @@
267 338
         diagnoses: [],
268 339
         other_sick: [],
269 340
         info: {},
341
+        last_info:{},
270 342
         templatedetail: {},
271 343
         detalid: 0,
272 344
         prescription_id: 0,
@@ -275,13 +347,20 @@
275 347
         patientid: 0,
276 348
         prescriptionList: [],
277 349
         centerDialogVisible: false,
278
-        tableData: [],
279
-        selecting_schs: [],
350
+        tableData1: [],
351
+        tableData2: [],
352
+        tableData3: [],
353
+        tableData4: [],
354
+        selecting_schs1: [],
355
+        selecting_schs2: [],
356
+        selecting_schs3: [],
280 357
         index: 0,
281 358
         admin_info: {},
282 359
         saveLoading: false,
283 360
         innerVisible: false,
284 361
         paramsObj: {},
362
+        paramsObj2: {},
363
+        paramsObj3: {},
285 364
         recordVisible: false,
286 365
         recordObj: {},
287 366
         additions: [],
@@ -295,9 +374,21 @@
295 374
         cure_data_two:[],
296 375
 
297 376
         all_his_patients:[],
377
+        checkVisible:false
298 378
       }
299 379
     },
300 380
     methods: {
381
+      openPrint(){
382
+        // this.centerDialogVisible = true
383
+        this.getPrescriptionList(this.patientInfo.id)
384
+      },
385
+      printThisPage(){
386
+        this.$nextTick(() => {
387
+          this.$refs.print.printThisPage()
388
+          this.$refs.treatPrint.printThisPage()
389
+          this.$refs.checkPrint.printThisPage()
390
+        })
391
+      },
301 392
       changeOther(patient_id){
302 393
         this.radio = 2;
303 394
         let params = {
@@ -1042,6 +1133,31 @@
1042 1133
             this.$message.error(response.data.msg)
1043 1134
             return false
1044 1135
           } else {
1136
+            //排班
1137
+            for (let i = 0; i < response.data.data.list_two.length; i++) {
1138
+              //未就诊
1139
+              if (response.data.data.list_two[i].prescription.length == 0 && response.data.data.list_two[i].his_patient.id == 0) {
1140
+                let obj = {
1141
+                  name: response.data.data.list_two[i].name,
1142
+                  number: response.data.data.list_two[i].his_patient.number,
1143
+                  id: response.data.data.list_two[i].id,
1144
+                  his_patient_id: response.data.data.list_two[i].his_patient.id
1145
+                }
1146
+                this.un_cure_data.push(obj)
1147
+              }
1148
+
1149
+              //已就诊
1150
+              if (response.data.data.list_two[i].prescription.length > 0 && response.data.data.list_two[i].his_patient.id == 0) {
1151
+                let obj = {
1152
+                  name: response.data.data.list_two[i].name,
1153
+                  number: response.data.data.list_two[i].his_patient.number,
1154
+                  id: response.data.data.list_two[i].id,
1155
+                  his_patient_id: response.data.data.list_two[i].his_patient.id
1156
+                }
1157
+                this.cure_data.push(obj)
1158
+              }
1159
+            }
1160
+
1045 1161
             //挂号
1046 1162
             for (let i = 0; i < response.data.data.list.length; i++) {
1047 1163
               for (let b = 0; b < response.data.data.list[i].his_patient.length; b++) {
@@ -1069,30 +1185,7 @@
1069 1185
             }
1070 1186
 
1071 1187
 
1072
-            //排班
1073
-            for (let i = 0; i < response.data.data.list_two.length; i++) {
1074
-              //未就诊
1075
-              if (response.data.data.list_two[i].prescription.length == 0 && response.data.data.list_two[i].his_patient.id == 0) {
1076
-                let obj = {
1077
-                  name: response.data.data.list_two[i].name,
1078
-                  number: response.data.data.list_two[i].his_patient.number,
1079
-                  id: response.data.data.list_two[i].id,
1080
-                  his_patient_id: response.data.data.list_two[i].his_patient.id
1081
-                }
1082
-                this.un_cure_data.push(obj)
1083
-              }
1084 1188
 
1085
-              //已就诊
1086
-              if (response.data.data.list_two[i].prescription.length > 0 && response.data.data.list_two[i].his_patient.id == 0) {
1087
-                let obj = {
1088
-                  name: response.data.data.list_two[i].name,
1089
-                  number: response.data.data.list_two[i].his_patient.number,
1090
-                  id: response.data.data.list_two[i].id,
1091
-                  his_patient_id: response.data.data.list_two[i].his_patient.id
1092
-                }
1093
-                this.cure_data.push(obj)
1094
-              }
1095
-            }
1096 1189
 
1097 1190
             this.all_data = this.all_data.concat(this.cure_data)
1098 1191
             this.all_data = this.all_data.concat(this.un_cure_data)
@@ -1126,7 +1219,6 @@
1126 1219
           '-' +
1127 1220
           (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1128 1221
           ':' + (min < 10 ? '0' + min : min)
1129
-        this.patientid = val.id
1130 1222
         let params = {
1131 1223
           'record_date': this.record_date,
1132 1224
           'patient_id': val.id,
@@ -1144,6 +1236,7 @@
1144 1236
 
1145 1237
             return false
1146 1238
           } else {
1239
+            this.patientid = val.id
1147 1240
             this.isloading = false
1148 1241
 
1149 1242
             this.prescriptions = []
@@ -1153,6 +1246,8 @@
1153 1246
             this.hisPatientInfo = response.data.data.his_info
1154 1247
             this.case_history = response.data.data.case_history
1155 1248
             this.info = response.data.data.info
1249
+            this.last_info = response.data.data.last_info
1250
+
1156 1251
             this.doctors = response.data.data.doctors
1157 1252
             this.department = response.data.data.department
1158 1253
 
@@ -1428,126 +1523,9 @@
1428 1523
                 this.prescriptions.push(obj)
1429 1524
 
1430 1525
               }
1431
-              // else{
1432
-              //
1433
-              //   if(response.data.data.count <= 1 ){
1434
-              //     if(response.data.data.last_prescriptions.length == 0){
1435
-              //       let obj = {
1436
-              //         id: 0,
1437
-              //         name: '处方' + 1,
1438
-              //         advices: [],
1439
-              //         project: [],
1440
-              //         addition: [],
1441
-              //         order_status: 0,
1442
-              //         pre_time: nowTime,
1443
-              //
1444
-              //       };
1445
-              //       this.prescriptions.push(obj)
1446
-              //
1447
-              //
1448
-              //     }else {
1449
-              //       for (let i = 0; i < response.data.data.last_prescriptions.length; i++) {
1450
-              //         var prescription = response.data.data.last_prescriptions[i];
1451
-              //         let tempAdvice = [];
1452
-              //         let tempProject = [];
1453
-              //         let tempAddition = [];
1454
-              //
1455
-              //         //药品
1456
-              //         for (let b = 0; b < prescription.advices.length; b++) {
1457
-              //           let obj = {
1458
-              //             advice_id:0,
1459
-              //             drug_name: prescription.advices[b].advice_name,
1460
-              //             single_dose: prescription.advices[b].single_dose,
1461
-              //             delivery_way: prescription.advices[b].delivery_way,
1462
-              //             execution_frequency: prescription.advices[b].execution_frequency,
1463
-              //             retail_price: prescription.advices[b].price.toString(),
1464
-              //             remark: prescription.advices[b].remark,
1465
-              //             day: prescription.advices[b].day,
1466
-              //             prescribing_number: prescription.advices[b].prescribing_number.toString(),
1467
-              //             single_dose_unit: prescription.advices[b].single_dose_unit,
1468
-              //             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1469
-              //             medical_insurance_number: prescription.advices[b].med_list_codg,
1470
-              //             id: prescription.advices[b].drug_id,
1471
-              //             drug:prescription.advices[b].drug
1472
-              //
1473
-              //           };
1474
-              //           tempAdvice.push(obj)
1475
-              //         }
1476
-              //
1477
-              //         //项目
1478
-              //         for (let b = 0; b < prescription.project.length; b++) {
1479
-              //           let obj = {
1480
-              //             id:0,
1481
-              //             project_id: prescription.project[b].project_id,
1482
-              //             project_name: prescription.project[b].project.project_name,
1483
-              //             statistical_classification: prescription.project[b].project.statistical_classification,
1484
-              //             single_dose: prescription.project[b].single_dose,
1485
-              //             delivery_way: prescription.project[b].delivery_way,
1486
-              //             execution_frequency: prescription.project[b].execution_frequency,
1487
-              //             number_days: prescription.project[b].day,
1488
-              //             total: prescription.project[b].count.toString(),
1489
-              //             price: prescription.project[b].price,
1490
-              //             remark: prescription.project[b].remark,
1491
-              //             medical_code: prescription.project[b].project.medical_code,
1492
-              //             unit: prescription.project[b].project.unit,
1493
-              //             type: prescription.project[b].type
1494
-              //           };
1495
-              //
1496
-              //           if (prescription.project[b].type == 2) {
1497
-              //             obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1498
-              //             obj['medical_code'] = prescription.project[b].project.medical_code
1499
-              //             obj['project_name'] = prescription.project[b].project.project_name
1500
-              //
1501
-              //           } else if (prescription.project[b].type == 3) {
1502
-              //             obj['statistical_classification'] = ""
1503
-              //             obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1504
-              //             obj['project_name'] = prescription.project[b].good_info.good_name
1505
-              //           }
1506
-              //           tempProject.push(obj)
1507
-              //         }
1508
-              //
1509
-              //         //附加收费
1510
-              //         for (let b = 0; b < prescription.addition.length; b++) {
1511
-              //           let obj = {
1512
-              //             item_name: prescription.addition[b].item_name,
1513
-              //             price: prescription.addition[b].price,
1514
-              //             count: prescription.addition[b].count,
1515
-              //             item_id: prescription.addition[b].item_id,
1516
-              //           };
1517
-              //           tempAddition.push(obj)
1518
-              //         }
1519
-              //
1520
-              //         var preTime = nowTime
1521
-              //
1522
-              //         let index = i + 1;
1523
-              //         let obj = {
1524
-              //           id: 0,
1525
-              //           name: '处方' + index,
1526
-              //           advices: tempAdvice,
1527
-              //           project: tempProject,
1528
-              //           addition: tempAddition,
1529
-              //           order_status: 1,
1530
-              //           pre_time: preTime
1531
-              //         };
1532
-              //         this.prescriptions.push(obj)
1533
-              //       }
1534
-              //     }
1535
-              //   }else{
1536
-              //     let obj = {
1537
-              //       id: 0,
1538
-              //       name: '处方' + 1,
1539
-              //       advices: [],
1540
-              //       project: [],
1541
-              //       addition: [],
1542
-              //       order_status: 0,
1543
-              //       pre_time: nowTime,
1544
-              //
1545
-              //     };
1546
-              //     this.prescriptions.push(obj)
1547
-              //   }
1548
-              // }
1549 1526
             }
1550
-            this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions)
1527
+            console.log("~~~~~00000222222")
1528
+            this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions,this.last_info)
1551 1529
           }
1552 1530
         })
1553 1531
 
@@ -1590,6 +1568,8 @@
1590 1568
                   this.hisPatientInfo = response.data.data.his_info;
1591 1569
                   this.case_history = response.data.data.case_history;
1592 1570
                   this.info = response.data.data.info;
1571
+                  this.last_info = response.data.data.last_info
1572
+
1593 1573
                   this.doctors = response.data.data.doctors;
1594 1574
                   this.department = response.data.data.department;
1595 1575
 
@@ -1983,7 +1963,7 @@
1983 1963
                     //   }
1984 1964
                     }
1985 1965
                   }
1986
-                  this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department,this.hisPatientInfo, this.month_prescriptions);
1966
+                  this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department,this.hisPatientInfo, this.month_prescriptions,this.last_info);
1987 1967
                   this.$refs.child.watchSign = 0
1988 1968
                 }
1989 1969
               });
@@ -2016,6 +1996,8 @@
2016 1996
                   this.hisPatientInfo = response.data.data.his_info;
2017 1997
                   this.case_history = response.data.data.case_history;
2018 1998
                   this.info = response.data.data.info;
1999
+                  this.last_info = response.data.data.last_info
2000
+
2019 2001
                   this.doctors = response.data.data.doctors;
2020 2002
                   this.department = response.data.data.department;
2021 2003
 
@@ -2402,7 +2384,7 @@
2402 2384
                       // }
2403 2385
                     }
2404 2386
                   }
2405
-                  this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department,this.hisPatientInfo, this.month_prescriptions);
2387
+                  this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department,this.hisPatientInfo, this.month_prescriptions,this.last_info);
2406 2388
                   this.$refs.child.watchSign = 0
2407 2389
                 }
2408 2390
               })
@@ -2436,6 +2418,8 @@
2436 2418
                   this.hisPatientInfo = response.data.data.his_info;
2437 2419
                   this.case_history = response.data.data.case_history;
2438 2420
                   this.info = response.data.data.info;
2421
+                  this.last_info = response.data.data.last_info
2422
+
2439 2423
                   this.doctors = response.data.data.doctors;
2440 2424
                   this.department = response.data.data.department;
2441 2425
 
@@ -2821,7 +2805,7 @@
2821 2805
                       // }
2822 2806
                     }
2823 2807
                   }
2824
-                  this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department,this.hisPatientInfo, this.month_prescriptions);
2808
+                  this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department,this.hisPatientInfo, this.month_prescriptions,this.last_info);
2825 2809
                   this.$refs.child.watchSign = 0
2826 2810
                 }
2827 2811
               });
@@ -2869,13 +2853,13 @@
2869 2853
               return
2870 2854
             }
2871 2855
           })
2872
-          this.$confirm('是否保存当前处方', '保存', {
2873
-            confirmButtonText: '确 定',
2874
-            cancelButtonText: '取 消',
2875
-            type: 'warning'
2876
-          }).then(() => {
2877
-            this.open(1)
2878
-          }).catch(() => {
2856
+          // this.$confirm('是否保存当前处方', '保存', {
2857
+          //   confirmButtonText: '确 定',
2858
+          //   cancelButtonText: '取 消',
2859
+          //   type: 'warning'
2860
+          // }).then(() => {
2861
+          //   this.open(1)
2862
+          // }).catch(() => {
2879 2863
 
2880 2864
             for(let i = 0; i < this.all_data.length; i++){
2881 2865
               if(this.all_data[i].id == val.id){
@@ -2920,6 +2904,8 @@
2920 2904
 
2921 2905
                 this.case_history = response.data.data.case_history
2922 2906
                 this.info = response.data.data.info
2907
+                this.last_info = response.data.data.last_info
2908
+
2923 2909
                 this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
2924 2910
                 if (this.case_history.breathing <= 0) {
2925 2911
                   this.case_history.breathing = ''
@@ -3297,11 +3283,11 @@
3297 3283
                     // }
3298 3284
                   }
3299 3285
                 }
3300
-                this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions)
3286
+                this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions,this.last_info)
3301 3287
               }
3302 3288
             })
3303 3289
 
3304
-          })
3290
+          // })
3305 3291
 
3306 3292
           // this.$message.error('需要保存保存处方才能切换')
3307 3293
         } else {
@@ -3330,6 +3316,8 @@
3330 3316
               this.hisPatientInfo = response.data.data.his_info
3331 3317
               this.case_history = response.data.data.case_history
3332 3318
               this.info = response.data.data.info
3319
+              this.last_info = response.data.data.last_info
3320
+
3333 3321
               this.doctors = response.data.data.doctors
3334 3322
               this.department = response.data.data.department
3335 3323
 
@@ -3716,7 +3704,7 @@
3716 3704
                   // }
3717 3705
                 }
3718 3706
               }
3719
-              this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions)
3707
+              this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions,this.last_info)
3720 3708
             }
3721 3709
           })
3722 3710
 
@@ -3761,6 +3749,8 @@
3761 3749
           this.getPrescriptionList(this.patientInfo.id,2)
3762 3750
           // this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id)
3763 3751
 
3752
+        }else if(index == 20){
3753
+          this.getPrescriptionList(this.patientInfo.id,2,3)
3764 3754
         }
3765 3755
 
3766 3756
       },
@@ -3799,31 +3789,90 @@
3799 3789
         this.prescription_id = data
3800 3790
       },
3801 3791
 
3802
-      getPrescriptionList(id,type) {
3792
+      getPrescriptionList(id,type,checkType) {
3803 3793
         getPrescriptionList(id,2).then(response => {
3804 3794
           if (response.data.state == 1) {
3805
-            this.centerDialogVisible = true
3806
-            var list = response.data.data.list
3807
-            let arr = []
3808
-            for (let i = 0; i < list.length; i++) {
3809
-              if(list[i].type == type){
3810
-                list[i].prescription_number = list[i].prescription_number + i
3811
-                arr.push(list[i])
3795
+            if(checkType != 3){
3796
+              this.centerDialogVisible = true
3797
+              var list = response.data.data.list
3798
+              let arr1 = []
3799
+              let arr2 = []
3800
+              let arr3 = []
3801
+              let arr4 = []
3802
+              for(var i=list.length-1;i>=0;i--){
3803
+                if(list[i].type == 1){
3804
+                  list[i].prescription_number = list[i].prescription_number + i
3805
+                  arr1.push(list[i])
3806
+                }
3807
+                if(list[i].type == 2){
3808
+                  list[i].prescription_number = list[i].prescription_number + i
3809
+                  arr2.push(list[i])
3810
+                  arr3.push(list[i])
3811
+                  arr4.push(list[i])
3812
+                }
3813
+                if(list[i].type == 2){
3814
+                  let count = 0
3815
+                  list[i].project.map(item => {
3816
+                    if(item.type == 2){
3817
+                      if(item.project.cost_classify == 3){
3818
+                        count++
3819
+                      }
3820
+                    }
3821
+                  })
3822
+                  if(count == list[i].project.length){
3823
+                    arr2.map((items,index) => {
3824
+                      if(items.id == list[i].id){
3825
+                        arr2.splice(index,1);
3826
+                      }
3827
+                    })
3828
+                  }
3829
+                }
3812 3830
               }
3831
+              this.tableData1 = arr1
3832
+              this.tableData2 = arr2
3833
+              this.tableData4 = arr4
3834
+              this.tableData3 = [arr3[0]]
3835
+              
3836
+            }else{
3837
+              var list = response.data.data.list
3838
+              let arr = []
3839
+              for (let i = 0; i < list.length; i++) {
3840
+                if(list[i].type == type){
3841
+                  list[i].prescription_number = list[i].prescription_number + i
3842
+                  arr.push(list[i])
3843
+                }
3813 3844
 
3845
+              }
3846
+              console.log('arrrrrrrrrr',arr)
3847
+              this.selecting_schs = arr
3848
+              
3849
+              this.savePrint()
3814 3850
             }
3815
-            this.tableData = arr
3851
+            
3816 3852
           }
3817 3853
         })
3818 3854
       },
3819
-      handleSelectionChange(val) {
3820
-        this.selecting_schs = val
3855
+      handleSelectionChange1(val) {
3856
+        this.selecting_schs1 = val
3857
+      },
3858
+      handleSelectionChange2(val) {
3859
+        this.selecting_schs2 = val
3860
+      },
3861
+      handleSelectionChange3(val) {
3862
+        if(val.length == 0){
3863
+          this.selecting_schs3 = []
3864
+        }else{
3865
+          this.selecting_schs3 = this.tableData4
3866
+        }
3821 3867
       },
3822 3868
       handleClick() {
3823 3869
         if(this.titleType == "电子处方"){
3824 3870
           if(this.radio == 1){
3825 3871
             this.un_cure_data.map(item => {
3872
+              console.log("~~~~~~~~")
3826 3873
               if(item.id == this.patientid){
3874
+                console.log("~~~~~~~~22222222")
3875
+
3827 3876
                 this.getPatientInfo(item)
3828 3877
               }
3829 3878
             })
@@ -3844,34 +3893,68 @@
3844 3893
 
3845 3894
       },
3846 3895
       savePrint() {
3847
-        var arr = [];
3848
-        for (let i = 0; i < this.selecting_schs.length; i++) {
3849
-          arr.push(this.selecting_schs[i].id)
3896
+        //处方
3897
+        var arr1 = [];
3898
+        if(this.selecting_schs1.length > 0){
3899
+          for (let i = 0; i < this.selecting_schs1.length; i++) {
3900
+            arr1.push(this.selecting_schs1[i].id)
3901
+          }
3902
+          var ids1 = arr1.join(',')
3903
+            let obj1 = {
3904
+            record: this.record_date,
3905
+            prescription_id: this.prescription_id,
3906
+            ids: ids1,
3907
+            patient_id: this.patientid
3908
+          };
3909
+          this.paramsObj = obj1;
3850 3910
         }
3851
-        var ids = arr.join(',')
3852
-        if (this.index == 2) {
3853
-          let obj = {
3911
+        
3912
+        //治疗
3913
+        var arr2 = [];
3914
+        if(this.selecting_schs2.length > 0){
3915
+          for (let i = 0; i < this.selecting_schs2.length; i++) {
3916
+            arr2.push(this.selecting_schs2[i].id)
3917
+          }
3918
+          var ids2 = arr2.join(',')
3919
+          let obj2 = {
3854 3920
             record: this.record_date,
3855 3921
             prescription_id: this.prescription_id,
3856
-            ids: ids,
3922
+            ids: ids2,
3857 3923
             patient_id: this.patientid
3858 3924
           };
3859
-          this.paramsObj = obj;
3860
-          this.innerVisible = true
3861
-
3862
-          //  this.$router.push("/outpatientDoctorStation/print?record="+this.record_date+"&prescription_id="+this.prescription_id+"&ids="+ids+"&patient_id="+this.patientid)
3925
+          this.paramsObj2 = obj2;
3863 3926
         }
3864
-        if (this.index == 6) {
3865
-          let obj = {
3927
+        var arr3 = []
3928
+        if(this.selecting_schs3.length > 0){
3929
+          for (let i = 0; i < this.selecting_schs3.length; i++) {
3930
+            arr3.push(this.selecting_schs3[i].id)
3931
+          }
3932
+          var ids2 = arr3.join(',')
3933
+          let obj3 = {
3866 3934
             record: this.record_date,
3867 3935
             prescription_id: this.prescription_id,
3868
-            ids: ids,
3936
+            ids: ids2,
3869 3937
             patient_id: this.patientid
3870 3938
           };
3871
-          this.paramsObj = obj;
3872
-          this.innerVisible = true
3873
-          // this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id+"&ids="+ids+"&patient_id="+this.patientid)
3939
+          this.paramsObj3 = obj3;
3874 3940
         }
3941
+          
3942
+        
3943
+        
3944
+        
3945
+        this.innerVisible = true
3946
+
3947
+        // if(this.index == 20){
3948
+        //   console.log('ids',ids)
3949
+        //   let obj = {
3950
+        //     record: this.record_date,
3951
+        //     prescription_id: this.prescription_id,
3952
+        //     ids: ids,
3953
+        //     patient_id: this.patientid
3954
+        //   };
3955
+        //   this.paramsObj = obj;
3956
+        //   this.checkVisible = true
3957
+        // }
3875 3958
       }, getTime(val, temp) {
3876 3959
         if (val != 0) {
3877 3960
           return uParseTime(val, temp)

+ 18 - 4
src/xt_pages/outpatientDoctorStation/pastInquiries.vue Vedi File

@@ -159,12 +159,26 @@
159 159
         })
160 160
       },
161 161
       getDiagnosis(id){
162
+        let ids = id.split(",")
162 163
         var name = ""
163
-        for(let i=0;i<this.diagnoses.length;i++){
164
-           if(id == this.diagnoses[i].id){
165
-              name = this.diagnoses[i].class_name
166
-           }
164
+        for(let i = 0; i < ids.length; i++){
165
+
166
+          for(let b=0;b<this.diagnoses.length;b++){
167
+            if(parseInt(ids[i]) == this.diagnoses[b].id){
168
+              if(name.length == 0){
169
+                name = this.diagnoses[b].class_name
170
+              }else{
171
+                name = name +"," + this.diagnoses[b].class_name
172
+
173
+              }
174
+            }
175
+          }
176
+
167 177
         }
178
+
179
+
180
+
181
+
168 182
         return name
169 183
       }
170 184
     }, created() {

+ 11 - 9
src/xt_pages/outpatientDoctorStation/print.vue Vedi File

@@ -2,7 +2,7 @@
2 2
   <div>
3 3
       <template>
4 4
         <el-button
5
-          style="position:fixed;right:25px;z-index:999"
5
+          style="float:right;"
6 6
           :loading="loading"
7 7
           size="small"
8 8
           icon="el-icon-printer"
@@ -76,14 +76,16 @@ export default {
76 76
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
77 77
 
78 78
       if(this.org_id == 10138){
79
-        const style =
80
-        '@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}}';
81
-        printJS({
82
-          printable: "prescriptionPrint",
83
-          type: "html",
84
-          style: style,
85
-          scanStyles: false
86
-        });
79
+        setTimeout(() => {
80
+          const style =
81
+          '@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 90%;}}}';
82
+          printJS({
83
+            printable: "prescriptionPrint1",
84
+            type: "html",
85
+            style: style,
86
+            scanStyles: false
87
+          });
88
+        },500)
87 89
       }else{
88 90
         const style =
89 91
         '@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{padding:0 10px;min-height:450px;}.Rp{font-size: 22px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;} .drugsOne{line-height: 1px;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';

+ 6 - 1
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue Vedi File

@@ -78,7 +78,12 @@
78 78
         </div>
79 79
         <div class="otherInfo">
80 80
             <div class="otherName">体格检查:</div>
81
-            <div style="flex:1;">无</div>
81
+            <div style="flex:1;">
82
+                <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
83
+                <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
84
+                <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
85
+                <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
86
+            </div>
82 87
         </div>
83 88
         <div class="otherInfo">
84 89
             <div class="otherName">门诊诊断:</div>

+ 28 - 19
src/xt_pages/outpatientDoctorStation/template/printThree.vue Vedi File

@@ -1,13 +1,17 @@
1 1
 <template>
2 2
 <div>
3
-  <div id='prescriptionPrint'>
3
+  <div id='prescriptionPrint1'>
4 4
     <div v-for="(item,index) in advicePrint" :key="index">
5
-      <div id='prescription-print' v-if="item.project.length == 0"  v-for='(i,pageIndex) in item.pageArr.length' :key="pageIndex" class="prescription-print" style="page-break-after: always;">
5
+      <div id='prescription-print' v-if="item.project.length == 0" v-for='(i,pageIndex) in item.pageArr.length' :key="pageIndex" class="prescription-print" style="page-break-after: always;">
6 6
           <img src="../../../assets/img/bailinTop.jpg" style="width:100%" alt="">
7
-          <div class="printTitle">处方笺</div>
7
+          <div class="printTitle">
8
+            处方笺
9
+            <span v-if="item.med_type == '1111'" style="margin-left: 50px;border: 1px solid #000;">精一</span>
10
+            <span v-if="item.med_type == '1112'" style="margin-left: 50px;border: 1px solid #000;">精二</span>
11
+          </div>
8 12
           <div style="display:flex;">
9
-            <div style="width:33%;display:flex;">费别:<span class="under_line">{{ faber ? getName(faber.transBody.outputlist1) : '' }}</span></div>
10
-            <div style="width:33%;display:flex;">电脑号:<span class="under_line">{{ faber ? faber.transBody.aac999 : ''  }}</span></div>
13
+            <div style="width:33%;display:flex;">费别:<span class="under_line">{{ faber && faber.transBody ? getName(faber.transBody.outputlist1) : '' }}</span></div>
14
+            <div style="width:33%;display:flex;">电脑号:<span class="under_line">{{ faber && faber.transBody ? faber.transBody.aac999 : ''  }}</span></div>
11 15
             <div style="width:33%;display:flex;">处方编号:<span class="under_line">{{ item.prescription_number.substring(item.prescription_number.length-6) }}</span></div>
12 16
           </div>
13 17
 
@@ -40,16 +44,16 @@
40 44
               </div>
41 45
               <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
42 46
                 <div class="drugsOne">{{it.item_name?it.item_name:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
43
-               </div>
44
-               
47
+              </div>
48
+              
45 49
               <!-- <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
46 50
                   <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{ it.type == 2 ? it.project.project_name : it.good_info.good_name }}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.count}}{{unit}}</div>
47 51
                   <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>
48 52
               </div>
49 53
               <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
50 54
                 <div class="drugsOne">{{it.project_id?it.project_id:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
51
-               </div> -->
52
-               <div style="text-align:center;" >(以下空白)</div>
55
+              </div> -->
56
+              <div style="text-align:center;" >(以下空白)</div>
53 57
 
54 58
           </div>
55 59
           <div style="display:flex;">
@@ -73,11 +77,11 @@
73 77
           </div>
74 78
           <div class="actionBar">
75 79
 
76
-                 <p>审核:</p>
77
-                 <p>配对:</p>
78
-                 <p>核对:</p>
79
-                 <p>发药:</p>
80
-                 <p>药费:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):0}}元</p>
80
+                <p>审核:</p>
81
+                <p>配对:</p>
82
+                <p>核对:</p>
83
+                <p>发药:</p>
84
+                <p>药费:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):0}}元</p>
81 85
           </div> -->
82 86
           <div style="page-break-after:always"></div>
83 87
       </div>
@@ -166,10 +170,11 @@ export default {
166 170
             var projectlist =  response.data.data.projectlist
167 171
             console.log("所有项目列表",projectlist)
168 172
             this.projectList = projectlist
169
-            let outputlist1Name = JSON.parse(response.data.data.his.patient_info);
173
+            this.getPage()
174
+            let outputlist1Name = response.data.data.his.patient_info ? JSON.parse(response.data.data.his.patient_info) : {};
170 175
             this.faber = outputlist1Name
171 176
 
172
-            this.getPage()
177
+            
173 178
           }
174 179
        })
175 180
      },
@@ -255,11 +260,15 @@ export default {
255 260
         return project_name
256 261
      },
257 262
 
258
-     getDiagnosis(id){
263
+     getDiagnosis(ids){
264
+        let id = ids.split(',')
259 265
         var name = ""
260 266
         for(let i=0;i<this.diagnoses.length;i++){
261
-          if(id == this.diagnoses[i].id){
262
-             name = this.diagnoses[i].class_name
267
+          // if(id == this.diagnoses[i].id){
268
+          //    name = this.diagnoses[i].class_name
269
+          // }
270
+          if(id.indexOf(this.diagnoses[i].id.toString()) > -1){
271
+            name += this.diagnoses[i].class_name + ' '
263 272
           }
264 273
         }
265 274
         return name

+ 11 - 9
src/xt_pages/outpatientDoctorStation/treatPrint.vue Vedi File

@@ -2,7 +2,7 @@
2 2
   <div>
3 3
        <template>
4 4
         <el-button
5
-          style="position:fixed;right:25px;z-index:999"
5
+          style="float:right;"
6 6
           :loading="loading"
7 7
           size="small"
8 8
           icon="el-icon-printer"
@@ -66,15 +66,17 @@ export default {
66 66
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
67 67
 
68 68
       if(this.org_id == 10138){
69
+        setTimeout(() => {
70
+          const style =
71
+          '@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 90%;}}}';
72
+          printJS({
73
+            printable: "prescriptionPrint2",
74
+            type: "html",
75
+            style: style,
76
+            scanStyles: false
77
+          });
78
+        },500)
69 79
         
70
-        const style =
71
-        '@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}}';
72
-        printJS({
73
-          printable: "prescriptionPrint",
74
-          type: "html",
75
-          style: style,
76
-          scanStyles: false
77
-        });
78 80
       }else{
79 81
         const style =
80 82
         '@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.prescription-print{font-size: 14px;}.printTitle{font-size: 18px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:5px;padding:0 10px;}.infoTitle div{width: 300px;margin-bottom:5px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;}.prescriptionBox{padding:0 10px;min-height:380px;}.Rp{font-size: 22px;font-weight: bold;line-height:1px;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox p{line-height: 1px;padding-bottom:10px !important;} .drugsOne{line-height: 1px;margin-bottom:10px !important;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; padding:0 10px;margin:5px 0;} .actionBar div{width:150px;}}';

+ 396 - 378
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue Vedi File

@@ -1,343 +1,347 @@
1 1
 <template>
2
-   <div id='prescriptionPrint'>
3
-    <div id='prescription-print' class="prescription-print" v-for="(item,index) in advicePrint" :key="index">
4
-
5
-        <div style="display:flex;justify-content: space-between;font-weight:bold;align-items:center;">
6
-            <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
7
-                <span>费别</span>
8
-                <span>自费</span>
9
-                <span>公费</span>
10
-                <span>保险</span>
11
-                <span>其他</span>
2
+    <div id='prescriptionPrint'>
3
+        <div id='prescription-print' class="prescription-print" v-for="(item,index) in advicePrint" :key="index">
4
+
5
+            <div style="display:flex;justify-content: space-between;font-weight:bold;align-items:center;">
6
+                <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
7
+                    <span>费别</span>
8
+                    <span>自费</span>
9
+                    <span>公费</span>
10
+                    <span>保险</span>
11
+                    <span>其他</span>
12
+                </div>
13
+                <div>就诊日期:{{getTime(item.ctime,'{y}-{m}-{d}')}}</div>
12 14
             </div>
13
-            <div>就诊日期:{{getTime(item.ctime,"{y}-{m}-{d}")}}</div>
14
-        </div>
15 15
 
16
-        <div class="printTitle">{{orgname}}</div>
17
-        <div class="printTitle">处方、治疗单</div>
16
+            <div class="printTitle">{{orgname}}</div>
17
+            <div class="printTitle">处方、治疗单</div>
18 18
 
19
-        <div class="infoTitle">
20
-            <div>门诊编号:</div>
21
-            <div>电脑号:</div>
22
-        </div>
19
+            <div class="infoTitle">
20
+                <div>门诊编号:</div>
21
+                <div>电脑号:</div>
22
+            </div>
23 23
 
24
-        <div class="infoMain">
25
-            <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
26
-            <div style="margin-bottom: 10px;width:25%">性别:
27
-                <span v-if="item.patient.gender == 1">男</span>
28
-                <span v-if="item.patient.gender == 2">女</span>
24
+            <div class="infoMain">
25
+                <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
26
+                <div style="margin-bottom: 10px;width:25%">性别:
27
+                    <span v-if="item.patient.gender == 1">男</span>
28
+                    <span v-if="item.patient.gender == 2">女</span>
29
+                </div>
30
+                <div style="margin-bottom: 10px;width:25%">年龄:
31
+                    <span>{{item.patient.age}}</span>
32
+                </div>
33
+                <div style="margin-bottom: 10px;width:25%">参保类型:{{hisPatient.social_type?hisPatient.social_type:''}}
34
+                </div>
35
+                <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
36
+                <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
37
+                <div style="width:100%;">诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
29 38
             </div>
30
-            <div style="margin-bottom: 10px;width:25%">年龄:
31
-                <span>{{item.patient.age}}</span>
39
+
40
+            <div class="prescriptionBox">
41
+                <table style="width:100%;text-align:center;line-height:25px;">
42
+                    <tr>
43
+                        <td>序号</td>
44
+                        <td>项目名称</td>
45
+                        <td>数量</td>
46
+                        <td>单位</td>
47
+                        <td>单价</td>
48
+                        <td>部位</td>
49
+                        <td>备注</td>
50
+                        <td>天数</td>
51
+                    </tr>
52
+                    <tr v-for="(it,index) in item.project" :key="index">
53
+                        <td>{{index+1}}</td>
54
+                        <td>{{it.type == 2 ?getProjectName(it.project_id):it.good_info.good_name}}</td>
55
+                        <td>{{it.single_dose}}</td>
56
+                        <td>{{getUnit(it.unit)}}</td>
57
+                        <td>{{it.price}}</td>
58
+                        <td></td>
59
+                        <td>{{it.remark}}</td>
60
+                        <td>{{it.day}}</td>
61
+
62
+                    </tr>
63
+
64
+                    <tr v-for="(it,index) in item.advices" :key="index">
65
+                        <td>{{index+1}}</td>
66
+                        <td>{{it.advice_name?it.advice_name:''}}</td>
67
+                        <td>{{it.single_dose?it.single_dose:''}}</td>
68
+                        <td>{{it.single_dose_unit?it.single_dose_unit:''}}</td>
69
+                        <td>{{it.price}}</td>
70
+                        <td></td>
71
+                        <td>{{it.remark}}</td>
72
+                        <td>{{it.day}}</td>
73
+
74
+                    </tr>
75
+                </table>
76
+            </div>
77
+
78
+            <div class="infoTitle">
79
+                <div>开单医生:{{item.doctor?item.doctor:''}}</div>
80
+                <div>签章:</div>
32 81
             </div>
33
-            <div style="margin-bottom: 10px;width:25%">参保类型:{{hisPatient.social_type?hisPatient.social_type:''}}</div>
34
-            <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
35
-            <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
36
-            <div style="width:100%;">诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
37
-        </div>
38 82
 
39
-        <div class="prescriptionBox">
40
-            <table style="width:100%;text-align:center;line-height:25px;">
83
+            <div class="actionBar">
84
+                <div>执行医生:{{item.doctor?item.doctor:''}}</div>
85
+                <div>费用:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):''}}元</div>
86
+            </div>
87
+
88
+            <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
41 89
                 <tr>
42
-                    <td>序号</td>
43
-                    <td>项目名称</td>
44
-                    <td>数量</td>
45
-                    <td>单位</td>
46
-                    <td>单价</td>
47
-                    <td>部位</td>
48
-                    <td>备注</td>
49
-                    <td>天数</td>
90
+                    <td style="width:16%;">治疗时间</td>
91
+                    <td style="width:16%;"></td>
92
+                    <td style="width:16%;"></td>
93
+                    <td style="width:16%;"></td>
94
+                    <td style="width:16%;"></td>
95
+                    <td style="width:16%;"></td>
50 96
                 </tr>
51
-                <tr v-for="(it,index) in item.project" :key="index">
52
-                    <td>{{index+1}}</td>
53
-                    <td>{{it.type == 2 ?getProjectName(it.project_id):it.good_info.good_name}}</td>
54
-                    <td>{{it.single_dose}}</td>
55
-                    <td>{{getUnit(it.unit)}}</td>
56
-                    <td>{{it.price}}</td>
57
-                    <td></td>
58
-                    <td>{{it.remark}}</td>
59
-                    <td>{{it.day}}</td>
60
-
97
+                <tr>
98
+                    <td style="width:16%;">医生签字</td>
99
+                    <td style="width:16%;"></td>
100
+                    <td style="width:16%;"></td>
101
+                    <td style="width:16%;"></td>
102
+                    <td style="width:16%;"></td>
103
+                    <td style="width:16%;"></td>
61 104
                 </tr>
62
-
63
-                <tr v-for="(it,index) in item.advices" :key="index">
64
-                    <td>{{index+1}}</td>
65
-                    <td>{{it.advice_name?it.advice_name:''}}</td>
66
-                    <td>{{it.single_dose?it.single_dose:''}}</td>
67
-                    <td>{{it.single_dose_unit?it.single_dose_unit:''}}</td>
68
-                    <td>{{it.price}}</td>
69
-                    <td></td>
70
-                    <td>{{it.remark}}</td>
71
-                    <td>{{it.day}}</td>
72
-
105
+                <tr>
106
+                    <td style="width:16px;">患者签字</td>
107
+                    <td style="width:16px;"></td>
108
+                    <td style="width:16px;"></td>
109
+                    <td style="width:16px;"></td>
110
+                    <td style="width:16px;"></td>
111
+                    <td style="width:16px;"></td>
73 112
                 </tr>
74 113
             </table>
75 114
         </div>
76 115
 
77
-        <div class="infoTitle">
78
-            <div>开单医生:{{item.doctor?item.doctor:""}}</div>
79
-            <div>签章:</div>
80
-        </div>
81 116
 
82
-        <div class="actionBar">
83
-            <div>执行医生:{{item.doctor?item.doctor:""}}</div>
84
-            <div>费用:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):''}}元</div>
85
-        </div>
117
+        <!-- <div id='prescriptionPrint'>
86 118
 
87
-        <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
88
-            <tr>
89
-                <td style="width:16%;">治疗时间</td>
90
-                <td style="width:16%;"></td>
91
-                <td style="width:16%;"></td>
92
-                <td style="width:16%;"></td>
93
-                <td style="width:16%;"></td>
94
-                <td style="width:16%;"></td>
95
-            </tr>
96
-            <tr>
97
-                <td style="width:16%;">医生签字</td>
98
-                <td style="width:16%;"></td>
99
-                <td style="width:16%;"></td>
100
-                <td style="width:16%;"></td>
101
-                <td style="width:16%;"></td>
102
-                <td style="width:16%;"></td>
103
-            </tr>
104
-            <tr>
105
-                <td style="width:16px;">患者签字</td>
106
-                <td style="width:16px;"></td>
107
-                <td style="width:16px;"></td>
108
-                <td style="width:16px;"></td>
109
-                <td style="width:16px;"></td>
110
-                <td style="width:16px;"></td>
111
-            </tr>
112
-        </table>
113
-     </div>
114
-
115
-
116
-    <!-- <div id='prescriptionPrint'>
117
-
118
-        <div v-for="(item,index) in advicePrint" :key="index">
119
-            <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
120
-                <div style="display:flex;justify-content: space-between;font-weight:bold;">
121
-                    <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
122
-                        <span>费别</span>
123
-                        <span>自费</span>
124
-                        <span>公费</span>
125
-                        <span>保险</span>
126
-                        <span>其他</span>
119
+            <div v-for="(item,index) in advicePrint" :key="index">
120
+                <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
121
+                    <div style="display:flex;justify-content: space-between;font-weight:bold;">
122
+                        <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
123
+                            <span>费别</span>
124
+                            <span>自费</span>
125
+                            <span>公费</span>
126
+                            <span>保险</span>
127
+                            <span>其他</span>
128
+                        </div>
129
+                        <div>就诊日期:{{getTime(item.ctime)}}</div>
127 130
                     </div>
128
-                    <div>就诊日期:{{getTime(item.ctime)}}</div>
129
-                </div>
130 131
 
131
-                <div class="printTitle">血液透析中心</div>
132
+                    <div class="printTitle">血液透析中心</div>
132 133
 
133
-                <div class="printTitle">处方、治疗单</div>
134
+                    <div class="printTitle">处方、治疗单</div>
134 135
 
135
-                <div class="infoTitle">
136
-                    <div>门诊编号:</div>
137
-                    <div>电脑号:</div>
138
-                </div>
139
-
140
-                <div class="infoMain">
141
-                    <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
142
-                    <div style="margin-bottom: 10px;width:25%">性别:
143
-                        <span v-if="item.patient.gender == 1">男</span>
144
-                        <span v-if="item.patient.gender == 2">女</span>
136
+                    <div class="infoTitle">
137
+                        <div>门诊编号:</div>
138
+                        <div>电脑号:</div>
145 139
                     </div>
146
-                    <div style="margin-bottom: 10px;width:25%">年龄:
147
-                        <span>{{item.patient.age}}</span>
140
+
141
+                    <div class="infoMain">
142
+                        <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
143
+                        <div style="margin-bottom: 10px;width:25%">性别:
144
+                            <span v-if="item.patient.gender == 1">男</span>
145
+                            <span v-if="item.patient.gender == 2">女</span>
146
+                        </div>
147
+                        <div style="margin-bottom: 10px;width:25%">年龄:
148
+                            <span>{{item.patient.age}}</span>
149
+                        </div>
150
+                        <div style="margin-bottom: 10px;width:25%">参保类型:</div>
151
+                        <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
152
+                        <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
153
+                        <div style="width:100%;">诊断:{{item.patient.diagnose}}</div>
148 154
                     </div>
149
-                    <div style="margin-bottom: 10px;width:25%">参保类型:</div>
150
-                    <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
151
-                    <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
152
-                    <div style="width:100%;">诊断:{{item.patient.diagnose}}</div>
153
-                </div>
154 155
 
155
-                <div class="prescriptionBox">
156
-                    <table style="width:100%;text-align:center;line-height:25px;">
156
+                    <div class="prescriptionBox">
157
+                        <table style="width:100%;text-align:center;line-height:25px;">
158
+                            <tr>
159
+                                <td>序号</td>
160
+                                <td>项目名称</td>
161
+                                <td>数量</td>
162
+                                <td>单位</td>
163
+                                <td>单价</td>
164
+                                <td>部位</td>
165
+                                <td>备注</td>
166
+                                <td>天数</td>
167
+                            </tr>
168
+                            <tr v-for="(it,index) in item.project" :key="index">
169
+                                <td>{{index+1}}</td>
170
+                                <td>{{getProjectName(it.project_id)}}</td>
171
+                                <td>{{it.single_dose}}</td>
172
+                                <td>{{getUnit(it.unit)}}</td>
173
+                                <td>{{it.price}}</td>
174
+                                <td></td>
175
+                                <td>{{it.remark}}</td>
176
+                                <td>{{it.day}}</td>
177
+
178
+                            </tr>
179
+                        </table>
180
+                    </div>
181
+                    <div class="infoTitle">
182
+                        <div>开单医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
183
+                        <div>签章:</div>
184
+                    </div>
185
+                    <div class="actionBar">
186
+                        <div>执行医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
187
+                        <div>费用:</div>
188
+                    </div>
189
+                    <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
157 190
                         <tr>
158
-                            <td>序号</td>
159
-                            <td>项目名称</td>
160
-                            <td>数量</td>
161
-                            <td>单位</td>
162
-                            <td>单价</td>
163
-                            <td>部位</td>
164
-                            <td>备注</td>
165
-                            <td>天数</td>
191
+                            <td style="width:16%;">治疗时间</td>
192
+                            <td style="width:16%;"></td>
193
+                            <td style="width:16%;"></td>
194
+                            <td style="width:16%;"></td>
195
+                            <td style="width:16%;"></td>
196
+                            <td style="width:16%;"></td>
166 197
                         </tr>
167
-                        <tr v-for="(it,index) in item.project" :key="index">
168
-                            <td>{{index+1}}</td>
169
-                            <td>{{getProjectName(it.project_id)}}</td>
170
-                            <td>{{it.single_dose}}</td>
171
-                            <td>{{getUnit(it.unit)}}</td>
172
-                            <td>{{it.price}}</td>
173
-                            <td></td>
174
-                            <td>{{it.remark}}</td>
175
-                            <td>{{it.day}}</td>
176
-
198
+                        <tr>
199
+                            <td style="width:16%;">医生签字</td>
200
+                            <td style="width:16%;"></td>
201
+                            <td style="width:16%;"></td>
202
+                            <td style="width:16%;"></td>
203
+                            <td style="width:16%;"></td>
204
+                            <td style="width:16%;"></td>
205
+                        </tr>
206
+                        <tr>
207
+                            <td style="width:16px;">患者签字</td>
208
+                            <td style="width:16px;"></td>
209
+                            <td style="width:16px;"></td>
210
+                            <td style="width:16px;"></td>
211
+                            <td style="width:16px;"></td>
212
+                            <td style="width:16px;"></td>
177 213
                         </tr>
178 214
                     </table>
179 215
                 </div>
180
-                <div class="infoTitle">
181
-                    <div>开单医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
182
-                    <div>签章:</div>
183
-                </div>
184
-                <div class="actionBar">
185
-                    <div>执行医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
186
-                    <div>费用:</div>
187
-                </div>
188
-                <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
189
-                    <tr>
190
-                        <td style="width:16%;">治疗时间</td>
191
-                        <td style="width:16%;"></td>
192
-                        <td style="width:16%;"></td>
193
-                        <td style="width:16%;"></td>
194
-                        <td style="width:16%;"></td>
195
-                        <td style="width:16%;"></td>
196
-                    </tr>
197
-                    <tr>
198
-                        <td style="width:16%;">医生签字</td>
199
-                        <td style="width:16%;"></td>
200
-                        <td style="width:16%;"></td>
201
-                        <td style="width:16%;"></td>
202
-                        <td style="width:16%;"></td>
203
-                        <td style="width:16%;"></td>
204
-                    </tr>
205
-                    <tr>
206
-                        <td style="width:16px;">患者签字</td>
207
-                        <td style="width:16px;"></td>
208
-                        <td style="width:16px;"></td>
209
-                        <td style="width:16px;"></td>
210
-                        <td style="width:16px;"></td>
211
-                        <td style="width:16px;"></td>
212
-                    </tr>
213
-                </table>
214
-            </div>
215 216
 
216
-        </div>
217
+            </div>
217 218
 
218
-    </div> -->
219
-  </div>
219
+        </div> -->
220
+    </div>
220 221
 </template>
221 222
 <script>
222
-import { jsGetAge, uParseTime } from '@/utils/tools'
223
-import {getAllDoctorList,getPrescriptionPrint} from "@/api/project/project"
224
-import {getInitData} from "@/api/his/his"
225
-export default {
226
-    props:{
227
-      patient_id:Number,
228
-      record_date:String,
229
-      prescription_id:Number,
230
-      ids:String
223
+  import { jsGetAge, uParseTime } from '@/utils/tools'
224
+  import { getAllDoctorList, getPrescriptionPrint } from '@/api/project/project'
225
+  import { getInitData } from '@/api/his/his'
226
+
227
+  export default {
228
+    props: {
229
+      patient_id: Number,
230
+      record_date: String,
231
+      prescription_id: Number,
232
+      ids: String
231 233
     },
232
-    data(){
234
+    data() {
233 235
       return {
234
-        doctorList:[],
235
-        advicePrint:{},
236
-        patient:{},
237
-        tableData:[],
238
-        prescriptionInfo:[],
239
-        projectList:[],
240
-        prescriptions:[],
236
+        doctorList: [],
237
+        advicePrint: {},
238
+        patient: {},
239
+        tableData: [],
240
+        prescriptionInfo: [],
241
+        projectList: [],
242
+        prescriptions: [],
241 243
         settlement:
242
-         [
243
-          {value: 1,label: '医保'},
244
-          {value: 2,label: '自费'},
245
-          {value: 3,label:'公费'},
246
-          {value: 4,label:'农保'},
247
-          {value: 5,label:'会员'},
248
-          {value: 6,label:'职工'},
249
-          {value: 7,label:'合同'}
250
-         ],
251
-         hisPatient:{},
252
-         diagnoses:[]
244
+          [
245
+            { value: 1, label: '医保' },
246
+            { value: 2, label: '自费' },
247
+            { value: 3, label: '公费' },
248
+            { value: 4, label: '农保' },
249
+            { value: 5, label: '会员' },
250
+            { value: 6, label: '职工' },
251
+            { value: 7, label: '合同' },
252
+            { value: 8, label: '医保自费' }
253
+
254
+          ],
255
+        hisPatient: {},
256
+        diagnoses: []
253 257
       }
254 258
     },
255
-   methods:{
256
-     printThisPage() {
257
-      var ptime = Math.round(new Date().getTime() / 1000);
258
-      this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
259
-
260
-      const style =
261
-        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 1px;padding:0 10px;}.infoTitle p{width: 200px;}.otherInfo{display: flex;margin-top:10px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle p{width: 200px;}}';
262
-      printJS({
263
-        printable: "prescription-print",
264
-        type: "html",
265
-        style: style,
266
-        scanStyles: false
267
-      });
268
-    },
269
-     getAllDoctorList(){
270
-      getAllDoctorList().then(response=>{
271
-        if(response.data.state == 1){
272
-               var doctor =  response.data.data.doctor
273
-
274
-               this.doctorList = doctor
275
-             }
276
-         })
277
-     },
278
-
279
-      getDoctor(id){
280
-        var name = ""
281
-        for(let i=0;i<this.doctorList.length;i++){
282
-          if(id == this.doctorList[i].admin_user_id){
283
-              name = this.doctorList[i].user_name
259
+    methods: {
260
+      printThisPage() {
261
+        var ptime = Math.round(new Date().getTime() / 1000)
262
+        this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
263
+
264
+        const style =
265
+          '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 1px;padding:0 10px;}.infoTitle p{width: 200px;}.otherInfo{display: flex;margin-top:10px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle p{width: 200px;}}'
266
+        printJS({
267
+          printable: 'prescription-print',
268
+          type: 'html',
269
+          style: style,
270
+          scanStyles: false
271
+        })
272
+      },
273
+      getAllDoctorList() {
274
+        getAllDoctorList().then(response => {
275
+          if (response.data.state == 1) {
276
+            var doctor = response.data.data.doctor
277
+
278
+            this.doctorList = doctor
279
+          }
280
+        })
281
+      },
282
+
283
+      getDoctor(id) {
284
+        var name = ''
285
+        for (let i = 0; i < this.doctorList.length; i++) {
286
+          if (id == this.doctorList[i].admin_user_id) {
287
+            name = this.doctorList[i].user_name
284 288
           }
285 289
         }
286 290
         return name
287 291
       },
288 292
       getTime(value, temp) {
289 293
         if (value != undefined) {
290
-            return uParseTime(value, temp)
294
+          return uParseTime(value, temp)
291 295
         }
292 296
         return ''
293
-     },
294
-     getPrescriptionPrint(){
295
-         var params = {
296
-          patient_id:this.patient_id,
297
-          record_date:this.record_date,
298
-          prescription_id:this.prescription_id,
299
-          ids:this.ids,
297
+      },
298
+      getPrescriptionPrint() {
299
+        var params = {
300
+          patient_id: this.patient_id,
301
+          record_date: this.record_date,
302
+          prescription_id: this.prescription_id,
303
+          ids: this.ids
300 304
         }
301
-        console.log("999999",params)
302
-       getPrescriptionPrint(params).then(response=>{
303
-         if(response.data.state == 1){
304
-            var advicePrint =  response.data.data.advicePrint
305
-            console.log("adviceprint",advicePrint)
305
+        console.log('999999', params)
306
+        getPrescriptionPrint(params).then(response => {
307
+          if (response.data.state == 1) {
308
+            var advicePrint = response.data.data.advicePrint
309
+            console.log('adviceprint', advicePrint)
306 310
             this.advicePrint = advicePrint
307 311
             this.prescriptions = advicePrint
308
-            var projectlist =  response.data.data.projectlist
309
-            console.log("所有项目列表",projectlist)
312
+            var projectlist = response.data.data.projectlist
313
+            console.log('所有项目列表', projectlist)
310 314
             this.projectList = projectlist
311 315
             this.hisPatient = response.data.data.hisPatient
312 316
 
313 317
           }
314
-       })
315
-     },
316
-     getProjectName(id){
317
-        var project_name = ""
318
-        for(let i=0;i<this.projectList.length;i++){
319
-           if(id == this.projectList[i].id){
320
-               project_name = this.projectList[i].project_name
321
-           }
318
+        })
319
+      },
320
+      getProjectName(id) {
321
+        var project_name = ''
322
+        for (let i = 0; i < this.projectList.length; i++) {
323
+          if (id == this.projectList[i].id) {
324
+            project_name = this.projectList[i].project_name
325
+          }
322 326
         }
323 327
         return project_name
324
-     },
325
-     getUnit(id){
326
-        var unit=""
327
-       for(let i=0;i<this.projectList.length;i++){
328
-           if(id == this.projectList[i].id){
329
-               unit = this.projectList[i].unit
330
-           }
328
+      },
329
+      getUnit(id) {
330
+        var unit = ''
331
+        for (let i = 0; i < this.projectList.length; i++) {
332
+          if (id == this.projectList[i].id) {
333
+            unit = this.projectList[i].unit
334
+          }
331 335
         }
332 336
         return unit
333
-     },
337
+      },
334 338
 
335
-       getTotalOne(id) {
339
+      getTotalOne(id) {
336 340
 
337 341
         var total = 0
338 342
         var addtotal = 0
339 343
         for (let i = 0; i < this.prescriptions.length; i++) {
340
-          if(id == this.prescriptions[i].id){
344
+          if (id == this.prescriptions[i].id) {
341 345
             if (this.prescriptions[i].project != null) {
342 346
               for (let a = 0; a < this.prescriptions[i].project.length; a++) {
343 347
                 total = total + this.prescriptions[i].project[a].price * this.prescriptions[i].project[a].count
@@ -349,13 +353,13 @@ export default {
349 353
                 addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
350 354
               }
351 355
             }
352
-              addtotal =  Math.floor(addtotal * 100) / 100
353
-        }
356
+            addtotal = Math.floor(addtotal * 100) / 100
357
+          }
354 358
 
355
-       }
359
+        }
356 360
 
357
-      for (let i = 0; i < this.prescriptions.length; i++) {
358
-          if(id == this.prescriptions[i].id){
361
+        for (let i = 0; i < this.prescriptions.length; i++) {
362
+          if (id == this.prescriptions[i].id) {
359 363
             if (this.prescriptions[i].advices != null) {
360 364
               for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
361 365
                 total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
@@ -367,118 +371,132 @@ export default {
367 371
                 addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
368 372
               }
369 373
             }
370
-              addtotal =  Math.floor(addtotal * 100) / 100
374
+            addtotal = Math.floor(addtotal * 100) / 100
375
+          }
371 376
         }
372
-       }
373 377
 
374 378
         return total + addtotal
375 379
       },
376
-     getInitData(){
377
-       getInitData().then(response=>{
378
-          if(response.data.state == 1){
380
+      getInitData() {
381
+        getInitData().then(response => {
382
+          if (response.data.state == 1) {
379 383
             this.diagnoses = response.data.data.diagnose
380
-            console.log("争端",this.diagnoses)
384
+            console.log('争端', this.diagnoses)
381 385
           }
382
-       })
383
-     },
384
-     getDiagnosis(id){
385
-        var name = ""
386
-        for(let i=0;i<this.diagnoses.length;i++){
387
-          if(id == this.diagnoses[i].id){
388
-             name = this.diagnoses[i].class_name
386
+        })
387
+      },
388
+      getDiagnosis(id) {
389
+        var name = ''
390
+        for (let i = 0; i < this.diagnoses.length; i++) {
391
+          if (id == this.diagnoses[i].id) {
392
+            name = this.diagnoses[i].class_name
389 393
           }
390 394
         }
391 395
         return name
392
-     }
393
-   },
394
-   created(){
396
+      }
397
+    },
398
+    created() {
395 399
       this.getInitData()
396 400
       this.getAllDoctorList()
397 401
       this.getPrescriptionPrint()
398 402
       var xtuser = this.$store.getters.xt_user
399 403
       this.orgname = xtuser.org.org_name
400 404
 
401
-   },
402
-   watch:{
403
-     patient_id:function(val){
404
-       console.log("101000010101010",this.patient_id,this.record_date,this.prescription_id)
405
-    //    this.getPrescriptionPrint()
406
-     },
407
-     ids:function(val){
408
-         this.ids = val
409
-         console.log('this.idsids',this.ids)
410
-         this.getPrescriptionPrint()
411
-     }
412
-   }
413
-}
405
+    },
406
+    watch: {
407
+      patient_id: function(val) {
408
+        console.log('101000010101010', this.patient_id, this.record_date, this.prescription_id)
409
+        //    this.getPrescriptionPrint()
410
+      },
411
+      ids: function(val) {
412
+        this.ids = val
413
+        console.log('this.idsids', this.ids)
414
+        this.getPrescriptionPrint()
415
+      }
416
+    }
417
+  }
414 418
 </script>
415 419
 
416 420
 
417 421
 <style lang="scss" scoped>
418
-.prescription-print{
419
-    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
420
-    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
421
-    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
422
-    margin-bottom: 20px;
423
-    padding:20px 10px;
424
-}
425
-.prescription-print{
426
-    font-size: 14px;
427
-}
428
-.printTitle{
429
-    font-size: 18px;
430
-    text-align: center;
431
-    font-weight: bold;
432
-    margin-top: 10px;
433
-}
434
-.infoTitle{
435
-    display: flex;
436
-    border-bottom: 2px solid #000;
437
-    margin-top:10px;
438
-    line-height: 24px;
439
-    padding:0 10px;
440
-}
441
-.infoTitle div{
442
-    width: 300px;
443
-}
444
-.infoMain{
445
-    display: flex;
446
-    flex-wrap: wrap;
447
-    border-bottom: 2px solid #000;
448
-    padding:0 10px;
449
-}
450
-.infoMain div{
451
-    width: 50%;
452
-    line-height: 24px;
453
-}
454
-.prescriptionBox{
455
-    padding:0 10px;
456
-    min-height:600px;
457
-}
458
-.Rp{
459
-    font-size: 22px;
460
-    font-weight: bold;
461
-}
462
-.drugsBox{
463
-    padding-left: 40px;
464
-    margin-bottom: 10px;
465
-}
466
-.drugsBox p{
467
-    line-height: 30px;
468
-}
469
-.drugsOne{
470
-    line-height: 24px;
471
-}
472
-.drugsOne span{
473
-    margin-right: 20px;
474
-}
475
-.actionBar{
476
-    display: flex;
477
-    justify-content: space-between;
478
-    line-height: 24px;
479
-    padding:0 10px;
480
-}
481
-.actionBar div{
482
-    width:150px;
483
-}
422
+    .prescription-print {
423
+        -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
424
+        -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
425
+        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
426
+        margin-bottom: 20px;
427
+        padding: 20px 10px;
428
+    }
429
+
430
+    .prescription-print {
431
+        font-size: 14px;
432
+    }
433
+
434
+    .printTitle {
435
+        font-size: 18px;
436
+        text-align: center;
437
+        font-weight: bold;
438
+        margin-top: 10px;
439
+    }
440
+
441
+    .infoTitle {
442
+        display: flex;
443
+        border-bottom: 2px solid #000;
444
+        margin-top: 10px;
445
+        line-height: 24px;
446
+        padding: 0 10px;
447
+    }
448
+
449
+    .infoTitle div {
450
+        width: 300px;
451
+    }
452
+
453
+    .infoMain {
454
+        display: flex;
455
+        flex-wrap: wrap;
456
+        border-bottom: 2px solid #000;
457
+        padding: 0 10px;
458
+    }
459
+
460
+    .infoMain div {
461
+        width: 50%;
462
+        line-height: 24px;
463
+    }
464
+
465
+    .prescriptionBox {
466
+        padding: 0 10px;
467
+        min-height: 600px;
468
+    }
469
+
470
+    .Rp {
471
+        font-size: 22px;
472
+        font-weight: bold;
473
+    }
474
+
475
+    .drugsBox {
476
+        padding-left: 40px;
477
+        margin-bottom: 10px;
478
+    }
479
+
480
+    .drugsBox p {
481
+        line-height: 30px;
482
+    }
483
+
484
+    .drugsOne {
485
+        line-height: 24px;
486
+    }
487
+
488
+    .drugsOne span {
489
+        margin-right: 20px;
490
+    }
491
+
492
+    .actionBar {
493
+        display: flex;
494
+        justify-content: space-between;
495
+        line-height: 24px;
496
+        padding: 0 10px;
497
+    }
498
+
499
+    .actionBar div {
500
+        width: 150px;
501
+    }
484 502
 </style>

+ 30 - 8
src/xt_pages/outpatientDoctorStation/treatTemplate/printTwo.vue Vedi File

@@ -1,12 +1,15 @@
1 1
 <template>
2
-   <div id='prescriptionPrint'>
2
+   <div id='prescriptionPrint2'>
3 3
     <div id='prescription-print' v-if="item.advices.length == 0" class="prescription-print" v-for="(item,index) in advicePrint" :key="index">
4 4
 
5 5
         <img src="../../../assets/img/bailinTop.jpg" style="width:100%" alt="">
6
-        <div class="printTitle">治疗单</div>
6
+        <div class="printTitle">治疗单
7
+          <span v-if="item.med_type == '1111'" style="margin-left: 50px;border: 1px solid #000;">精一</span>
8
+          <span v-if="item.med_type == '1112'" style="margin-left: 50px;border: 1px solid #000;">精二</span>
9
+        </div>
7 10
         <div style="display:flex;">
8
-            <div style="width:33%;display:flex;">费别:<span class="under_line">{{ faber ? getName(faber.transBody.outputlist1) : '' }}</span></div>
9
-            <div style="width:33%;display:flex;">电脑号:<span class="under_line">{{ faber ? faber.transBody.aac999 : ''  }}</span></div>
11
+            <div style="width:33%;display:flex;">费别:<span class="under_line">{{ faber && faber.transBody ? getName(faber.transBody.outputlist1) : '' }}</span></div>
12
+            <div style="width:33%;display:flex;">电脑号:<span class="under_line">{{ faber && faber.transBody ? faber.transBody.aac999 : ''  }}</span></div>
10 13
             <div style="width:33%;display:flex;">处方编号:<span class="under_line">{{ item.prescription_number.substring(item.prescription_number.length-6) }}</span></div>
11 14
         </div>
12 15
 
@@ -231,7 +234,7 @@ export default {
231 234
          hisPatient:{},
232 235
          diagnoses:[],
233 236
          department:[],
234
-         faber:{}
237
+         faber:{},
235 238
       }
236 239
     },
237 240
    methods:{
@@ -301,6 +304,21 @@ export default {
301 304
             this.projectList = projectlist
302 305
             this.hisPatient = response.data.data.hisPatient
303 306
 
307
+            let projectPrint = []
308
+            let total = 0
309
+            this.advicePrint.map(item => {
310
+              console.log(item.project.length)
311
+              if(item.project.length > 0){
312
+                for(var i=item.project.length-1;i>=0;i--){
313
+                  if(item.project[i].type==2){
314
+                    if(item.project[i].project.cost_classify == 3){
315
+                      item.project.splice(i,1);
316
+                    }
317
+                  }
318
+                }
319
+              }
320
+            })
321
+
304 322
             let outputlist1Name = JSON.parse(response.data.data.his.patient_info);
305 323
             this.faber = outputlist1Name
306 324
 
@@ -376,11 +394,15 @@ export default {
376 394
           }
377 395
        })
378 396
      },
379
-     getDiagnosis(id){
397
+     getDiagnosis(ids){
398
+        let id = ids.split(',')
380 399
         var name = ""
381 400
         for(let i=0;i<this.diagnoses.length;i++){
382
-          if(id == this.diagnoses[i].id){
383
-             name = this.diagnoses[i].class_name
401
+          // if(id == this.diagnoses[i].id){
402
+          //    name = this.diagnoses[i].class_name
403
+          // }
404
+          if(id.indexOf(this.diagnoses[i].id.toString()) > -1){
405
+            name += this.diagnoses[i].class_name + ' '
384 406
           }
385 407
         }
386 408
         return name

File diff suppressed because it is too large
+ 581 - 567
src/xt_pages/outpatientRegistration/index.vue


+ 5 - 3
src/xt_pages/outpatientRegistration/registrationHistory.vue Vedi File

@@ -545,7 +545,9 @@
545 545
             { value: 4, label: '农保' },
546 546
             { value: 5, label: '会员' },
547 547
             { value: 6, label: '职工' },
548
-            { value: 7, label: '合同' }
548
+            { value: 7, label: '合同' },
549
+            {value: 8, label: '医保自费'},
550
+
549 551
           ],
550 552
         // medicalCare: [{
551 553
         //   value: 1,
@@ -720,7 +722,7 @@
720 722
         return ''
721 723
       }, toReturnSZPatient(val) {
722 724
         if(val.balance_accounts_type == 2){
723
-          this.$confirm('是否退费', '退费', {
725
+          this.$confirm('是否退号', '退号 ', {
724 726
             confirmButtonText: '确 定',
725 727
             cancelButtonText: '取 消',
726 728
             type: 'warning'
@@ -753,7 +755,7 @@
753 755
           }).then(() => {
754 756
             axios.get('http://127.0.0.1:9532/sz/api/refundnumber/get', {
755 757
               params: {
756
-                order_id: 0,
758
+                his_patient_id: val.id,
757 759
                 record_time: this.getTime(val.record_date, '{y}-{m}-{d}'),
758 760
                 admin_user_id: this.$store.getters.xt_user.user.id,
759 761
                 patient_id: val.patient_id

+ 305 - 0
src/xt_pages/stock/drugs/drugDamaged.vue Vedi File

@@ -0,0 +1,305 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+    </div>
6
+    <div class="app-container">
7
+        <div style="display: flex;align-items: center;justify-content: space-between;margin-bottom:10px;">
8
+            <div>
9
+                <el-input
10
+                size="small"
11
+                style="width: 200px;"
12
+                class="filter-item"
13
+                v-model.trim="searchKey"
14
+                placeholder=""
15
+                />
16
+                <el-button
17
+                size="small"
18
+                class="filter-item"
19
+                type="primary"
20
+                icon="el-icon-search"
21
+                @click="search"
22
+                >搜索</el-button
23
+                >
24
+                <el-date-picker
25
+                size="small"
26
+                v-model="value1"
27
+                type="date"
28
+                style="margin-left:5px;width:140px;"
29
+                placeholder="选择日期">
30
+                </el-date-picker>
31
+                <el-date-picker
32
+                size="small"
33
+                v-model="value2"
34
+                type="date"
35
+                style="margin-left:5px;width:140px;"
36
+                placeholder="选择日期">
37
+                </el-date-picker>
38
+            </div>
39
+            <div>
40
+                <el-button size="small" type="primary" @click="dialogVisible = true">新增</el-button>
41
+                <el-button size="small" type="primary">核对</el-button>
42
+                <el-button size="small" type="primary" @click="print">打印</el-button>
43
+                <el-button size="small" type="primary">导出</el-button>
44
+            </div>
45
+        </div>
46
+        <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
47
+            <el-table-column
48
+            prop="date"
49
+            label="报损编码">
50
+            </el-table-column>
51
+            <el-table-column
52
+            prop="date"
53
+            label="报损日期">
54
+            </el-table-column>
55
+            <el-table-column
56
+            prop="name"
57
+            label="操作人">
58
+            </el-table-column>
59
+            <el-table-column
60
+            prop="name"
61
+            label="审核日期">
62
+            </el-table-column>
63
+            <el-table-column
64
+            prop="name"
65
+            label="核对人">
66
+            </el-table-column>
67
+            <el-table-column
68
+            prop="name"
69
+            label="状态">
70
+            </el-table-column>
71
+            <el-table-column
72
+            label="操作">
73
+                <template slot-scope="scope">
74
+                    <el-button type="text" size="small">删除</el-button>
75
+                    <el-button type="text" size="small">编辑</el-button>
76
+                </template>
77
+            </el-table-column>
78
+        </el-table>
79
+        <el-pagination
80
+            @size-change="handleSizeChange"
81
+            @current-change="handleCurrentChange"
82
+            :page-sizes="[5, 10, 50, 100]"
83
+            :page-size="5"
84
+            background
85
+            style="margin-top:20px;text-align: right"
86
+            layout="total, sizes, prev, pager, next, jumper"
87
+            :total="total"
88
+        >
89
+        </el-pagination>
90
+    </div>
91
+    <el-dialog
92
+        title="库房调价"
93
+        :visible.sync="dialogVisible"
94
+        width="1200px"
95
+        :before-close="handleClose">
96
+        <el-form :model="form" class="modifyDialog" label-width="120px">
97
+            <el-form-item label="耗材ID">
98
+                <el-input v-model="form.name"></el-input>
99
+            </el-form-item>
100
+            <el-form-item label="药品名称">
101
+                <el-input v-model="form.name"></el-input>
102
+            </el-form-item>
103
+            <el-form-item label="规格">
104
+                <el-input v-model="form.name"></el-input>
105
+            </el-form-item>
106
+            <el-form-item label="单位">
107
+                <el-input v-model="form.name"></el-input>
108
+            </el-form-item>
109
+            <el-form-item label="进货价">
110
+                <el-input v-model="form.name"></el-input>
111
+            </el-form-item>
112
+            <el-form-item label="零售价">
113
+                <el-input v-model="form.name"></el-input>
114
+            </el-form-item>
115
+            <el-form-item label="报损数量">
116
+                <el-input v-model="form.name"></el-input>
117
+            </el-form-item>
118
+            <el-form-item label="库存">
119
+                <el-input v-model="form.name"></el-input>
120
+            </el-form-item>
121
+            <el-form-item label="产地">
122
+                <el-input v-model="form.name"></el-input>
123
+            </el-form-item>
124
+            <el-form-item label="批准文号">
125
+                <el-input v-model="form.name"></el-input>
126
+            </el-form-item>
127
+            <el-form-item label="生产厂商">
128
+                <el-input v-model="form.name"></el-input>
129
+            </el-form-item>
130
+            <el-form-item label="备注">
131
+                <div style="display:flex;">
132
+                    <el-input v-model="form.name"></el-input>
133
+                    <el-button style="margin-left:5px;" type="primary">添加</el-button>
134
+                </div>
135
+            </el-form-item>
136
+        </el-form>
137
+        <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
138
+            <el-table-column
139
+            prop="date"
140
+            label="耗材ID"
141
+            width="100">
142
+            </el-table-column>
143
+            <el-table-column
144
+            prop="date"
145
+            label="耗材名称"
146
+            width="100">
147
+            </el-table-column>
148
+            <el-table-column
149
+            prop="name"
150
+            label="规格"
151
+            width="100">
152
+            </el-table-column>
153
+            <el-table-column
154
+            prop="name"
155
+            label="单位"
156
+            width="100">
157
+            </el-table-column>
158
+            <el-table-column
159
+            prop="name"
160
+            label="调价数量"
161
+            width="100">
162
+            </el-table-column>
163
+            <el-table-column
164
+            prop="name"
165
+            label="原进货价"
166
+            width="100">
167
+            </el-table-column>
168
+            <el-table-column
169
+            prop="name"
170
+            label="原零售价"
171
+            width="100">
172
+            </el-table-column>
173
+            <el-table-column
174
+            prop="name"
175
+            label="新零售价"
176
+            width="100">
177
+            </el-table-column>
178
+            <el-table-column
179
+            prop="name"
180
+            label="生产厂商"
181
+            width="100">
182
+            </el-table-column>
183
+            <el-table-column
184
+            prop="name"
185
+            label="产地"
186
+            width="100">
187
+            </el-table-column>
188
+            <el-table-column
189
+            prop="name"
190
+            label="批准文号"
191
+            width="100">
192
+            </el-table-column>
193
+            <el-table-column
194
+            prop="name"
195
+            label="备注"
196
+            width="100">
197
+            </el-table-column>
198
+            <el-table-column
199
+            fixed="right"
200
+            width="100"
201
+            label="操作">
202
+                <template slot-scope="scope">
203
+                    <el-button type="text" size="small">删除</el-button>
204
+                    <el-button type="text" size="small">编辑</el-button>
205
+                </template>
206
+            </el-table-column>
207
+        </el-table>
208
+        <span slot="footer" class="dialog-footer">
209
+            <el-button @click="dialogVisible = false">取 消</el-button>
210
+            <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
211
+        </span>
212
+    </el-dialog>
213
+  
214
+  </div>
215
+</template>
216
+
217
+<script>
218
+import BreadCrumb from "../../components/bread-crumb";
219
+
220
+export default {
221
+    name: "stockModifyPrice",
222
+    components:{
223
+        BreadCrumb
224
+    },
225
+    data() {
226
+        return{
227
+            crumbs: [
228
+                { path: false, name: "库存管理" },
229
+                { path: false, name: "耗材管理" },
230
+                { path: false, name: "药品报损" }
231
+            ],
232
+            searchKey:'',
233
+            value1:'',
234
+            value2:'',
235
+            tableData: [{
236
+                date: '2016-05-02',
237
+                name: '王小虎',
238
+                address: '上海市普陀区金沙江路 1518 弄'
239
+                }, {
240
+                date: '2016-05-04',
241
+                name: '王小虎',
242
+                address: '上海市普陀区金沙江路 1517 弄'
243
+                }, {
244
+                date: '2016-05-01',
245
+                name: '王小虎',
246
+                address: '上海市普陀区金沙江路 1519 弄'
247
+                }, {
248
+                date: '2016-05-03',
249
+                name: '王小虎',
250
+                address: '上海市普陀区金沙江路 1516 弄'
251
+            }],
252
+            dialogVisible:false,
253
+            form: {
254
+                name: '',
255
+            },
256
+            total: 0,
257
+        }
258
+    },
259
+    methods:{
260
+        search(){
261
+
262
+        },
263
+        print(){
264
+            this.$router.push({path:'/stock/stockModifyPricePrint'})
265
+            
266
+        },
267
+        handleSizeChange(){},
268
+        handleCurrentChange(){}
269
+
270
+    },
271
+    created(){
272
+    },
273
+    mounted() {
274
+    },
275
+};
276
+</script>
277
+
278
+<style rel="stylesheet/scss" lang="scss">
279
+.app-container {
280
+  // margin: 20px;
281
+  font-size: 15px;
282
+}
283
+.modifyDialog{
284
+    display: flex;
285
+    flex-wrap: wrap;
286
+    margin-bottom: 10px;
287
+    .el-form-item{
288
+        width: 33%;
289
+    }
290
+}
291
+.el-table td,
292
+.el-table th.is-leaf,
293
+.el-table--border,
294
+.el-table--group {
295
+  border-color: #d0d3da;
296
+}
297
+.el-table--border::after,
298
+.el-table--group::after,
299
+.el-table::before {
300
+  background-color: #d0d3da;
301
+}
302
+::-webkit-scrollbar{
303
+    height: 20px !important;
304
+}
305
+</style>

+ 293 - 0
src/xt_pages/stock/drugs/drugModifyPrice.vue Vedi File

@@ -0,0 +1,293 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+    </div>
6
+    <div class="app-container">
7
+      <div style="display: flex;align-items: center;justify-content: space-between;">
8
+        <div>
9
+            <el-input
10
+            size="small"
11
+            style="width: 200px;"
12
+            class="filter-item"
13
+            v-model.trim="searchKey"
14
+            placeholder=""
15
+            />
16
+            <el-button
17
+            size="small"
18
+            class="filter-item"
19
+            type="primary"
20
+            icon="el-icon-search"
21
+            @click="search"
22
+            >搜索</el-button
23
+            >
24
+            <el-date-picker
25
+            size="small"
26
+            v-model="value1"
27
+            type="date"
28
+            style="margin-left:5px;width:140px;"
29
+            placeholder="选择日期">
30
+            </el-date-picker>
31
+            <el-date-picker
32
+            size="small"
33
+            v-model="value2"
34
+            type="date"
35
+            style="margin-left:5px;width:140px;"
36
+            placeholder="选择日期">
37
+            </el-date-picker>
38
+        </div>
39
+        <div>
40
+            <el-button size="small" type="primary" @click="dialogVisible = true">新增</el-button>
41
+            <el-button size="small" type="primary">核对</el-button>
42
+            <el-button size="small" type="primary" @click="print">打印</el-button>
43
+            <el-button size="small" type="primary">导出</el-button>
44
+        </div>
45
+      </div>
46
+      <div style="margin-top:10px">
47
+            <el-table :data="tableData" border :height="tableHeight" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
48
+                <el-table-column
49
+                prop="date"
50
+                label="单据编码">
51
+                </el-table-column>
52
+                <el-table-column
53
+                prop="date"
54
+                label="调价日期">
55
+                </el-table-column>
56
+                <el-table-column
57
+                prop="name"
58
+                label="操作人">
59
+                </el-table-column>
60
+                <el-table-column
61
+                prop="name"
62
+                label="状态">
63
+                </el-table-column>
64
+                <el-table-column
65
+                prop="name"
66
+                label="核对人">
67
+                </el-table-column>
68
+                <el-table-column
69
+                label="操作">
70
+                    <template slot-scope="scope">
71
+                        <el-button type="text" size="small">删除</el-button>
72
+                        <el-button type="text" size="small">编辑</el-button>
73
+                    </template>
74
+                </el-table-column>
75
+            </el-table>
76
+        </div>
77
+    </div>
78
+    <el-dialog
79
+        title="库房调价"
80
+        :visible.sync="dialogVisible"
81
+        width="1200px"
82
+        :before-close="handleClose">
83
+        <el-form :model="form" class="modifyDialog" label-width="120px">
84
+            <el-form-item label="药品名称">
85
+                <el-input v-model="form.name"></el-input>
86
+            </el-form-item>
87
+            <el-form-item label="原价格">
88
+                <el-input v-model="form.name"></el-input>
89
+            </el-form-item>
90
+            <el-form-item label="现价格">
91
+                <el-input v-model="form.name"></el-input>
92
+            </el-form-item>
93
+            <el-form-item label="调价数量">
94
+                <el-input v-model="form.name"></el-input>
95
+            </el-form-item>
96
+            <el-form-item label="备注" style="width:66%;">
97
+                <div style="display:flex;">
98
+                    <el-input v-model="form.name"></el-input>
99
+                    <el-button style="margin-left:5px;" type="primary">添加</el-button>
100
+                </div>
101
+            </el-form-item>
102
+        </el-form>
103
+        <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
104
+            <el-table-column
105
+            prop="date"
106
+            label="单据编号"
107
+            width="100">
108
+            </el-table-column>
109
+            <el-table-column
110
+            prop="date"
111
+            label="药品名称"
112
+            width="100">
113
+            </el-table-column>
114
+            <el-table-column
115
+            prop="name"
116
+            label="规格"
117
+            width="100">
118
+            </el-table-column>
119
+            <el-table-column
120
+            prop="name"
121
+            label="单位"
122
+            width="100">
123
+            </el-table-column>
124
+            <el-table-column
125
+            prop="name"
126
+            label="调价数量"
127
+            width="100">
128
+            </el-table-column>
129
+            <el-table-column
130
+            prop="name"
131
+            label="原进货价"
132
+            width="100">
133
+            </el-table-column>
134
+            <el-table-column
135
+            prop="name"
136
+            label="原零售价"
137
+            width="100">
138
+            </el-table-column>
139
+            <el-table-column
140
+            prop="name"
141
+            label="新零售价"
142
+            width="100">
143
+            </el-table-column>
144
+            <el-table-column
145
+            prop="name"
146
+            label="生产厂商"
147
+            width="100">
148
+            </el-table-column>
149
+            <el-table-column
150
+            prop="name"
151
+            label="批准文号"
152
+            width="100">
153
+            </el-table-column>
154
+            <el-table-column
155
+            prop="name"
156
+            label="供应商"
157
+            width="100">
158
+            </el-table-column>
159
+            <el-table-column
160
+            prop="name"
161
+            label="备注"
162
+            width="100">
163
+            </el-table-column>
164
+            <el-table-column
165
+            fixed="right"
166
+            width="100"
167
+            label="操作">
168
+                <template slot-scope="scope">
169
+                    <el-button type="text" size="small">删除</el-button>
170
+                    <el-button type="text" size="small">编辑</el-button>
171
+                </template>
172
+            </el-table-column>
173
+        </el-table>
174
+        <span slot="footer" class="dialog-footer">
175
+            <el-button @click="dialogVisible = false">取 消</el-button>
176
+            <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
177
+        </span>
178
+    </el-dialog>
179
+  
180
+  </div>
181
+</template>
182
+
183
+<script>
184
+import BreadCrumb from "../../components/bread-crumb";
185
+
186
+export default {
187
+    name: "stockModifyPrice",
188
+    components:{
189
+        BreadCrumb
190
+    },
191
+    data() {
192
+        return{
193
+            crumbs: [
194
+                { path: false, name: "库存管理" },
195
+                { path: false, name: "耗材管理" },
196
+                { path: false, name: "耗材调价" }
197
+            ],
198
+            tableHeight: '',
199
+            fullHeight: document.documentElement.clientHeight,
200
+            searchKey:'',
201
+            value1:'',
202
+            value2:'',
203
+            tableData: [{
204
+                date: '2016-05-02',
205
+                name: '王小虎',
206
+                address: '上海市普陀区金沙江路 1518 弄'
207
+                }, {
208
+                date: '2016-05-04',
209
+                name: '王小虎',
210
+                address: '上海市普陀区金沙江路 1517 弄'
211
+                }, {
212
+                date: '2016-05-01',
213
+                name: '王小虎',
214
+                address: '上海市普陀区金沙江路 1519 弄'
215
+                }, {
216
+                date: '2016-05-03',
217
+                name: '王小虎',
218
+                address: '上海市普陀区金沙江路 1516 弄'
219
+            }],
220
+            dialogVisible:false,
221
+            form: {
222
+                name: '',
223
+            },
224
+        }
225
+    },
226
+    methods:{
227
+        search(){
228
+
229
+        },
230
+        print(){
231
+            this.$router.push({path:'/stock/drugs/drugModifyPricePrint'})
232
+            
233
+        }
234
+    },
235
+    created(){
236
+        let tableHeight = document.body.clientHeight - 200;
237
+        this.tableHeight = tableHeight
238
+    },
239
+    mounted() {
240
+      const that = this;
241
+      window.onresize = () => {
242
+        return (() => {
243
+          window.fullHeight = document.documentElement.clientHeight;
244
+          that.fullHeight = window.fullHeight
245
+        })()
246
+      }
247
+    },
248
+    watch: {
249
+      fullHeight(val) {
250
+        if (!this.timer) {
251
+          this.fullHeight = val
252
+          let tableHeight = val - 200
253
+          this.tableHeight = tableHeight
254
+          this.timer = true
255
+          let that = this
256
+          setTimeout(function() {
257
+            that.timer = false
258
+          }, 400)
259
+        }
260
+      }
261
+
262
+    }
263
+};
264
+</script>
265
+
266
+<style rel="stylesheet/scss" lang="scss">
267
+.app-container {
268
+  // margin: 20px;
269
+  font-size: 15px;
270
+}
271
+.modifyDialog{
272
+    display: flex;
273
+    flex-wrap: wrap;
274
+    margin-bottom: 10px;
275
+    .el-form-item{
276
+        width: 33%;
277
+    }
278
+}
279
+.el-table td,
280
+.el-table th.is-leaf,
281
+.el-table--border,
282
+.el-table--group {
283
+  border-color: #d0d3da;
284
+}
285
+.el-table--border::after,
286
+.el-table--group::after,
287
+.el-table::before {
288
+  background-color: #d0d3da;
289
+}
290
+::-webkit-scrollbar{
291
+    height: 20px !important;
292
+}
293
+</style>

+ 119 - 0
src/xt_pages/stock/drugs/drugModifyPricePrint.vue Vedi File

@@ -0,0 +1,119 @@
1
+<template>
2
+    <div class="main-contain">
3
+        <div class="position">
4
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+        <el-row style="float:right;">
6
+            <el-col :span="24">
7
+            <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+            </el-col>
9
+        </el-row>
10
+        </div>
11
+        <div class="app-container" style="background-color: white;">
12
+            <div id="print_content">
13
+                <div class="printTitle">药品调价登记单</div>
14
+                <div class="flex">
15
+                    <div>药库类别:</div>
16
+                    <div>调价日期:</div>
17
+                </div>
18
+                <div class="flex">
19
+                    <div>单据编号:</div>
20
+                    <div>打印日期:</div>
21
+                </div>
22
+                <div class="tableTitle">
23
+                    <div style="width:8%">货号</div>
24
+                    <div style="width:8%">药品名称</div>
25
+                    <div style="width:8%">规格</div>
26
+                    <div style="width:8%">单位</div>
27
+                    <div style="width:8%">批次</div>
28
+                    <div style="width:8%">调价数量</div>
29
+                    <div style="width:8%">原进货价</div>
30
+                    <div style="width:8%">新进货价</div>
31
+                    <div style="width:8%">进货差价</div>
32
+                    <div style="width:8%">原零售价</div>
33
+                    <div style="width:8%">新零售价</div>
34
+                    <div style="width:8%">零售差价</div>
35
+                </div>
36
+                <div class="tableTr" v-for="item in 3">
37
+                    <div style="width:8%">上三</div>
38
+                    <div style="width:8%">上三名称</div>
39
+                    <div style="width:8%">上三</div>
40
+                    <div style="width:8%">上三</div>
41
+                    <div style="width:8%">上三</div>
42
+                    <div style="width:8%">上三数量</div>
43
+                    <div style="width:8%">上三货价</div>
44
+                    <div style="width:8%">上三货价</div>
45
+                    <div style="width:8%">上三差价</div>
46
+                    <div style="width:8%">上三售价</div>
47
+                    <div style="width:8%">上三售价</div>
48
+                    <div style="width:8%">上三差价</div>
49
+                </div>
50
+                <div class="tableBottom">
51
+                    <div style="width:8%">合计:</div>
52
+                    <div style="width:8%"></div>
53
+                    <div style="width:8%"></div>
54
+                    <div style="width:8%"></div>
55
+                    <div style="width:8%"></div>
56
+                    <div style="width:8%"></div>
57
+                    <div style="width:8%"></div>
58
+                    <div style="width:8%"></div>
59
+                    <div style="width:8%">上三差价</div>
60
+                    <div style="width:8%"></div>
61
+                    <div style="width:8%"></div>
62
+                    <div style="width:8%">上三差价</div>
63
+                </div>
64
+                <div style="display:flex;margin-top:1px;float:right;margin-top:10px;">
65
+                    <div style="width:80px;">审批:</div><div style="width:100px;"></div>
66
+                    <div style="width:100px;">药材主任:</div><div style="width:60px;"></div>
67
+                    <div style="width:50px;">会计:</div><div style="width:100px;"></div>
68
+                    <div style="width:50px;">审核:</div><div style="width:100px;"></div>
69
+                    <div style="width:70px;">制单人:</div><div style="width:100px;"></div>
70
+                </div>
71
+            </div>
72
+        </div>
73
+    </div>
74
+</template>
75
+
76
+<script>
77
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
78
+const moment = require('moment');
79
+import { uParseTime } from '@/utils/tools'
80
+export default {
81
+    components:{
82
+        BreadCrumb
83
+    },
84
+    data(){
85
+        return{
86
+          crumbs: [
87
+            { path: false, name: '库存管理' },
88
+            { path: false, name: '耗材管理' },
89
+            { path: false, name: '药品调价打印' },
90
+          ],
91
+        }
92
+    },
93
+    methods:{
94
+        printAction: function() {
95
+            const style = '@media print { .printTitle{font-size: 22px;text-align: center;}.flex{display: flex;justify-content: space-between;}.tableTitle{display: flex;border-top:1px solid #000;border-bottom: 1px solid #000;padding: 10px 0;}.tableTr{display: flex;border-bottom: 1px dashed #000;padding: 10px 0;}.tableBottom{display: flex;border-bottom: 1px solid #000;padding: 10px 0;} }';
96
+            printJS({
97
+            printable: 'print_content',
98
+            type: 'html',
99
+            documentTitle: '  ',
100
+            style: style,
101
+            scanStyles: false
102
+            })
103
+        },
104
+
105
+
106
+    },
107
+    created(){
108
+    }
109
+}
110
+</script>
111
+
112
+
113
+<style rel="stylesheet/scss" lang="scss" scoped>
114
+.printTitle{font-size: 22px;text-align: center;}
115
+.flex{display: flex;justify-content: space-between;}
116
+.tableTitle{display: flex;border-top:1px solid #000;border-bottom: 1px solid #000;padding: 10px 0;}
117
+.tableTr{display: flex;border-bottom: 1px dashed #000;padding: 10px 0;}
118
+.tableBottom{display: flex;border-bottom: 1px solid #000;padding: 10px 0;}
119
+</style>

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

@@ -54,7 +54,7 @@
54 54
               <td style="line-height:18px">
55 55
                   <span>{{(item.warehousing_count * item.price).toFixed(2)}}</span>
56 56
               </td>
57
-              <td style="line-height:18px">{{ item.number }}</td>
57
+              <td style="line-height:18px">{{ item.batch_number }}</td>
58 58
               <td style="line-height:18px">{{ getTime(item.product_date,'{y}-{m}-{d}')}}</td>
59 59
               <td style="line-height:18px">{{ getTime(item.expiry_date,'{y}-{m}-{d}')}}</td>
60 60
               <td style="line-height:18px">正常<br>入库</td>

+ 234 - 0
src/xt_pages/stock/drugs/drugWarning.vue Vedi File

@@ -0,0 +1,234 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+    </div>
6
+    <div class="app-container">
7
+        <div style="display: flex;align-items: center;justify-content: space-between;margin-bottom:10px;">
8
+            <div>
9
+                <el-select v-model="value" size="small" placeholder="请选择">
10
+                    <el-option
11
+                    v-for="item in options"
12
+                    :key="item.value"
13
+                    :label="item.label"
14
+                    :value="item.value">
15
+                    </el-option>
16
+                </el-select>
17
+                <el-input
18
+                size="small"
19
+                style="width: 200px;"
20
+                class="filter-item"
21
+                v-model.trim="searchKey"
22
+                placeholder=""
23
+                />
24
+                <el-button
25
+                size="small"
26
+                class="filter-item"
27
+                type="primary"
28
+                icon="el-icon-search"
29
+                @click="search"
30
+                >搜索</el-button
31
+                >
32
+                <el-select v-model="value" size="small" placeholder="请选择">
33
+                    <el-option
34
+                    v-for="item in options"
35
+                    :key="item.value"
36
+                    :label="item.label"
37
+                    :value="item.value">
38
+                    </el-option>
39
+                </el-select>
40
+            </div>
41
+            <div>
42
+                <el-button size="small" type="primary">导出</el-button>
43
+            </div>
44
+        </div>
45
+        <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
46
+            <el-table-column
47
+            type="selection"
48
+            width="55">
49
+            </el-table-column>
50
+            <el-table-column
51
+            type="index"
52
+            width="50">
53
+            </el-table-column>
54
+            <el-table-column
55
+            fixed="left"
56
+            prop="date"
57
+            label="耗材ID"
58
+            width="80">
59
+            </el-table-column>
60
+            <el-table-column
61
+            prop="date"
62
+            label="耗材名称"
63
+            width="100">
64
+            </el-table-column>
65
+            <el-table-column
66
+            prop="name"
67
+            label="规格型号"
68
+            width="100">
69
+            </el-table-column>
70
+            <el-table-column
71
+            prop="name"
72
+            label="单位"
73
+            width="100">
74
+            </el-table-column>
75
+            <el-table-column
76
+            prop="name"
77
+            label="零售价"
78
+            width="100">
79
+            </el-table-column>
80
+            <el-table-column
81
+            prop="name"
82
+            label="进货价"
83
+            width="100">
84
+            </el-table-column>
85
+            <el-table-column
86
+            prop="name"
87
+            label="库存数量"
88
+            width="100">
89
+            </el-table-column>
90
+            <el-table-column
91
+            prop="name"
92
+            label="库存预警"
93
+            width="100">
94
+            </el-table-column>
95
+            <el-table-column
96
+            prop="name"
97
+            label="生产厂商"
98
+            width="100">
99
+            </el-table-column>
100
+            <el-table-column
101
+            prop="name"
102
+            label="产地"
103
+            width="100">
104
+            </el-table-column>
105
+            <el-table-column
106
+            prop="name"
107
+            label="批准文号"
108
+            width="100">
109
+            </el-table-column>
110
+            <el-table-column
111
+            prop="name"
112
+            label="供应商"
113
+            width="100">
114
+            </el-table-column>
115
+            <el-table-column
116
+            prop="name"
117
+            label="状态"
118
+            width="80">
119
+            </el-table-column>
120
+            <el-table-column
121
+            label="备注">
122
+            </el-table-column>
123
+        </el-table>
124
+        <el-pagination
125
+            @size-change="handleSizeChange"
126
+            @current-change="handleCurrentChange"
127
+            :page-sizes="[5, 10, 50, 100]"
128
+            :page-size="5"
129
+            background
130
+            style="margin-top:20px;text-align: right"
131
+            layout="total, sizes, prev, pager, next, jumper"
132
+            :total="total"
133
+        >
134
+        </el-pagination>
135
+    </div>
136
+  
137
+  </div>
138
+</template>
139
+
140
+<script>
141
+import BreadCrumb from "../../components/bread-crumb";
142
+
143
+export default {
144
+    name: "stockModifyPrice",
145
+    components:{
146
+        BreadCrumb
147
+    },
148
+    data() {
149
+        return{
150
+            crumbs: [
151
+                { path: false, name: "库存管理" },
152
+                { path: false, name: "耗材管理" },
153
+                { path: false, name: "药品预警" }
154
+            ],
155
+            searchKey:'',
156
+            tableData: [{
157
+                date: '2016-05-02',
158
+                name: '王小虎',
159
+                address: '上海市普陀区金沙江路 1518 弄'
160
+                }, {
161
+                date: '2016-05-04',
162
+                name: '王小虎',
163
+                address: '上海市普陀区金沙江路 1517 弄'
164
+                }, {
165
+                date: '2016-05-01',
166
+                name: '王小虎',
167
+                address: '上海市普陀区金沙江路 1519 弄'
168
+                }, {
169
+                date: '2016-05-03',
170
+                name: '王小虎',
171
+                address: '上海市普陀区金沙江路 1516 弄'
172
+            }],
173
+            total: 0,
174
+            options: [{
175
+                value: '选项1',
176
+                label: '黄金糕'
177
+                }, {
178
+                value: '选项2',
179
+                label: '双皮奶'
180
+                }, {
181
+                value: '选项3',
182
+                label: '蚵仔煎'
183
+                }, {
184
+                value: '选项4',
185
+                label: '龙须面'
186
+                }, {
187
+                value: '选项5',
188
+                label: '北京烤鸭'
189
+            }],
190
+        }
191
+    },
192
+    methods:{
193
+        search(){
194
+
195
+        },
196
+        handleSizeChange(){},
197
+        handleCurrentChange(){}
198
+
199
+    },
200
+    created(){
201
+    },
202
+    mounted() {
203
+    },
204
+};
205
+</script>
206
+
207
+<style rel="stylesheet/scss" lang="scss">
208
+.app-container {
209
+  // margin: 20px;
210
+  font-size: 15px;
211
+}
212
+.modifyDialog{
213
+    display: flex;
214
+    flex-wrap: wrap;
215
+    margin-bottom: 10px;
216
+    .el-form-item{
217
+        width: 33%;
218
+    }
219
+}
220
+.el-table td,
221
+.el-table th.is-leaf,
222
+.el-table--border,
223
+.el-table--group {
224
+  border-color: #d0d3da;
225
+}
226
+.el-table--border::after,
227
+.el-table--group::after,
228
+.el-table::before {
229
+  background-color: #d0d3da;
230
+}
231
+::-webkit-scrollbar{
232
+    height: 20px !important;
233
+}
234
+</style>

+ 63 - 134
src/xt_pages/stock/stockWarning.vue Vedi File

@@ -6,6 +6,14 @@
6 6
     <div class="app-container">
7 7
         <div style="display: flex;align-items: center;justify-content: space-between;margin-bottom:10px;">
8 8
             <div>
9
+                <el-select v-model="value" size="small" placeholder="请选择">
10
+                    <el-option
11
+                    v-for="item in options"
12
+                    :key="item.value"
13
+                    :label="item.label"
14
+                    :value="item.value">
15
+                    </el-option>
16
+                </el-select>
9 17
                 <el-input
10 18
                 size="small"
11 19
                 style="width: 200px;"
@@ -21,124 +29,33 @@
21 29
                 @click="search"
22 30
                 >搜索</el-button
23 31
                 >
24
-                <el-date-picker
25
-                size="small"
26
-                v-model="value1"
27
-                type="date"
28
-                style="margin-left:5px;width:140px;"
29
-                placeholder="选择日期">
30
-                </el-date-picker>
31
-                <el-date-picker
32
-                size="small"
33
-                v-model="value2"
34
-                type="date"
35
-                style="margin-left:5px;width:140px;"
36
-                placeholder="选择日期">
37
-                </el-date-picker>
32
+                <el-select v-model="value" size="small" placeholder="请选择">
33
+                    <el-option
34
+                    v-for="item in options"
35
+                    :key="item.value"
36
+                    :label="item.label"
37
+                    :value="item.value">
38
+                    </el-option>
39
+                </el-select>
38 40
             </div>
39 41
             <div>
40
-                <el-button size="small" type="primary" @click="dialogVisible = true">新增</el-button>
41
-                <el-button size="small" type="primary">核对</el-button>
42
-                <el-button size="small" type="primary" @click="print">打印</el-button>
43 42
                 <el-button size="small" type="primary">导出</el-button>
44 43
             </div>
45 44
         </div>
46 45
         <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
47 46
             <el-table-column
48
-            prop="date"
49
-            label="报损编码">
50
-            </el-table-column>
51
-            <el-table-column
52
-            prop="date"
53
-            label="报损日期">
54
-            </el-table-column>
55
-            <el-table-column
56
-            prop="name"
57
-            label="操作人">
47
+            type="selection"
48
+            width="55">
58 49
             </el-table-column>
59 50
             <el-table-column
60
-            prop="name"
61
-            label="审核日期">
51
+            type="index"
52
+            width="50">
62 53
             </el-table-column>
63 54
             <el-table-column
64
-            prop="name"
65
-            label="核对人">
66
-            </el-table-column>
67
-            <el-table-column
68
-            prop="name"
69
-            label="状态">
70
-            </el-table-column>
71
-            <el-table-column
72
-            label="操作">
73
-                <template slot-scope="scope">
74
-                    <el-button type="text" size="small">删除</el-button>
75
-                    <el-button type="text" size="small">编辑</el-button>
76
-                </template>
77
-            </el-table-column>
78
-        </el-table>
79
-        <el-pagination
80
-            @size-change="handleSizeChange"
81
-            @current-change="handleCurrentChange"
82
-            :page-sizes="[5, 10, 50, 100]"
83
-            :page-size="5"
84
-            background
85
-            style="margin-top:20px;text-align: right"
86
-            layout="total, sizes, prev, pager, next, jumper"
87
-            :total="total"
88
-        >
89
-        </el-pagination>
90
-    </div>
91
-    <el-dialog
92
-        title="库房调价"
93
-        :visible.sync="dialogVisible"
94
-        width="1200px"
95
-        :before-close="handleClose">
96
-        <el-form :model="form" class="modifyDialog" label-width="120px">
97
-            <el-form-item label="耗材ID">
98
-                <el-input v-model="form.name"></el-input>
99
-            </el-form-item>
100
-            <el-form-item label="药品名称">
101
-                <el-input v-model="form.name"></el-input>
102
-            </el-form-item>
103
-            <el-form-item label="规格">
104
-                <el-input v-model="form.name"></el-input>
105
-            </el-form-item>
106
-            <el-form-item label="单位">
107
-                <el-input v-model="form.name"></el-input>
108
-            </el-form-item>
109
-            <el-form-item label="进货价">
110
-                <el-input v-model="form.name"></el-input>
111
-            </el-form-item>
112
-            <el-form-item label="零售价">
113
-                <el-input v-model="form.name"></el-input>
114
-            </el-form-item>
115
-            <el-form-item label="报损数量">
116
-                <el-input v-model="form.name"></el-input>
117
-            </el-form-item>
118
-            <el-form-item label="库存">
119
-                <el-input v-model="form.name"></el-input>
120
-            </el-form-item>
121
-            <el-form-item label="产地">
122
-                <el-input v-model="form.name"></el-input>
123
-            </el-form-item>
124
-            <el-form-item label="批准文号">
125
-                <el-input v-model="form.name"></el-input>
126
-            </el-form-item>
127
-            <el-form-item label="生产厂商">
128
-                <el-input v-model="form.name"></el-input>
129
-            </el-form-item>
130
-            <el-form-item label="备注">
131
-                <div style="display:flex;">
132
-                    <el-input v-model="form.name"></el-input>
133
-                    <el-button style="margin-left:5px;" type="primary">添加</el-button>
134
-                </div>
135
-            </el-form-item>
136
-        </el-form>
137
-        <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
138
-            <el-table-column
55
+            fixed="left"
139 56
             prop="date"
140 57
             label="耗材ID"
141
-            width="100">
58
+            width="80">
142 59
             </el-table-column>
143 60
             <el-table-column
144 61
             prop="date"
@@ -147,7 +64,7 @@
147 64
             </el-table-column>
148 65
             <el-table-column
149 66
             prop="name"
150
-            label="规格"
67
+            label="规格型号"
151 68
             width="100">
152 69
             </el-table-column>
153 70
             <el-table-column
@@ -157,22 +74,22 @@
157 74
             </el-table-column>
158 75
             <el-table-column
159 76
             prop="name"
160
-            label="调价数量"
77
+            label="零售价"
161 78
             width="100">
162 79
             </el-table-column>
163 80
             <el-table-column
164 81
             prop="name"
165
-            label="进货价"
82
+            label="进货价"
166 83
             width="100">
167 84
             </el-table-column>
168 85
             <el-table-column
169 86
             prop="name"
170
-            label="原零售价"
87
+            label="库存数量"
171 88
             width="100">
172 89
             </el-table-column>
173 90
             <el-table-column
174 91
             prop="name"
175
-            label="新零售价"
92
+            label="库存预警"
176 93
             width="100">
177 94
             </el-table-column>
178 95
             <el-table-column
@@ -192,24 +109,30 @@
192 109
             </el-table-column>
193 110
             <el-table-column
194 111
             prop="name"
195
-            label="备注"
112
+            label="供应商"
196 113
             width="100">
197 114
             </el-table-column>
198 115
             <el-table-column
199
-            fixed="right"
200
-            width="100"
201
-            label="操作">
202
-                <template slot-scope="scope">
203
-                    <el-button type="text" size="small">删除</el-button>
204
-                    <el-button type="text" size="small">编辑</el-button>
205
-                </template>
116
+            prop="name"
117
+            label="状态"
118
+            width="80">
119
+            </el-table-column>
120
+            <el-table-column
121
+            label="备注">
206 122
             </el-table-column>
207 123
         </el-table>
208
-        <span slot="footer" class="dialog-footer">
209
-            <el-button @click="dialogVisible = false">取 消</el-button>
210
-            <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
211
-        </span>
212
-    </el-dialog>
124
+        <el-pagination
125
+            @size-change="handleSizeChange"
126
+            @current-change="handleCurrentChange"
127
+            :page-sizes="[5, 10, 50, 100]"
128
+            :page-size="5"
129
+            background
130
+            style="margin-top:20px;text-align: right"
131
+            layout="total, sizes, prev, pager, next, jumper"
132
+            :total="total"
133
+        >
134
+        </el-pagination>
135
+    </div>
213 136
   
214 137
   </div>
215 138
 </template>
@@ -227,11 +150,9 @@ export default {
227 150
             crumbs: [
228 151
                 { path: false, name: "库存管理" },
229 152
                 { path: false, name: "耗材管理" },
230
-                { path: false, name: "耗材报损" }
153
+                { path: false, name: "耗材预警" }
231 154
             ],
232 155
             searchKey:'',
233
-            value1:'',
234
-            value2:'',
235 156
             tableData: [{
236 157
                 date: '2016-05-02',
237 158
                 name: '王小虎',
@@ -249,20 +170,28 @@ export default {
249 170
                 name: '王小虎',
250 171
                 address: '上海市普陀区金沙江路 1516 弄'
251 172
             }],
252
-            dialogVisible:false,
253
-            form: {
254
-                name: '',
255
-            },
256 173
             total: 0,
174
+            options: [{
175
+                value: '选项1',
176
+                label: '黄金糕'
177
+                }, {
178
+                value: '选项2',
179
+                label: '双皮奶'
180
+                }, {
181
+                value: '选项3',
182
+                label: '蚵仔煎'
183
+                }, {
184
+                value: '选项4',
185
+                label: '龙须面'
186
+                }, {
187
+                value: '选项5',
188
+                label: '北京烤鸭'
189
+            }],
257 190
         }
258 191
     },
259 192
     methods:{
260 193
         search(){
261 194
 
262
-        },
263
-        print(){
264
-            this.$router.push({path:'/stock/stockModifyPricePrint'})
265
-            
266 195
         },
267 196
         handleSizeChange(){},
268 197
         handleCurrentChange(){}