Bläddra i källkod

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

csx 3 år sedan
förälder
incheckning
c7f87a49a1

+ 1 - 1
src/xt_pages/data/components/project.vue Visa fil

@@ -214,7 +214,7 @@ export default {
214 214
             total:0,
215 215
             tableData: [],
216 216
             is_start:0,
217
-            is_charge:0,
217
+            is_charge:'',
218 218
             selectDrug:[],
219 219
             optionOne: [
220 220
             {

+ 21 - 2
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Visa fil

@@ -335,6 +335,7 @@
335 335
                                               @keyup.enter.native='searchProjectAction'
336 336
                                               v-model.trim="search_project_keyword"
337 337
                                               placeholder="请输入项目名称"></el-input>
338
+
338 339
                                     <el-select style="float: right;width: 49%;" v-model="value" placeholder=""
339 340
                                                @change="changeClass">
340 341
                                         <el-option
@@ -364,6 +365,14 @@
364 365
                                         <el-table-column label="规格" width="60">
365 366
                                             <template slot-scope="scope">{{ scope.row.single_dose }}</template>
366 367
                                         </el-table-column>
368
+                                        <el-table-column label="库存" width="60">
369
+                                            <template slot-scope="scope">
370
+                                                {{scope.row.total}}{{scope.row.total?scope.row.min_unit:''}} / {{
371
+                                                scope.row.total * (scope.row.dose / scope.row.min_number)}}
372
+                                                {{(scope.row.total * (scope.row.dose /
373
+                                                scope.row.min_number))?scope.row.max_unit:''}}
374
+                                            </template>
375
+                                        </el-table-column>
367 376
                                         <el-table-column label="单价" width="40">
368 377
                                             <template slot-scope="scope">{{ scope.row.price }}</template>
369 378
                                         </el-table-column>
@@ -571,7 +580,7 @@
571 580
         department: [],
572 581
         sick: [],
573 582
         diagnoses: [],
574
-        diagnose: 1,
583
+        diagnose: "",
575 584
         state1: '',
576 585
         curTotal: 0,
577 586
         prescription_id: 0,
@@ -702,6 +711,9 @@
702 711
               obj['prescribing_number_unit'] = drug_month_prescriptions.advices[a].prescribing_number_unit
703 712
               obj['medical_insurance_number'] = drug_month_prescriptions.advices[a].drug.medical_insurance_number
704 713
               obj['id'] = drug_month_prescriptions.advices[a].drug_id
714
+              obj['single_dose_unit'] = drug_month_prescriptions.advices[a].single_dose_unit
715
+
716
+
705 717
               // obj['retail_price'] = obj['retail_price'] +  drug_month_prescriptions.advices[a].drug.retail_price
706 718
               obj['retail_price'] = parseFloat(drug_month_prescriptions.advices[a].price)
707 719
               obj['drug'] = drug_month_prescriptions.advices[a].drug
@@ -1467,6 +1479,8 @@
1467 1479
         this.$refs.additionalCharges.hide()
1468 1480
 
1469 1481
       }, searchProjectAction() {
1482
+        console.log("~~~~")
1483
+        console.log(this.allProject)
1470 1484
 
1471 1485
         if (this.search_project_keyword.length == 0) {
1472 1486
           this.tabProject = this.allProject
@@ -1474,7 +1488,7 @@
1474 1488
         } else {
1475 1489
           let arr = []
1476 1490
           for (let i = 0; i < this.allProject.length; i++) {
1477
-            if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1 || this.allProject[i].wubi.indexOf(this.search_project_keyword) != -1 || this.allProject[i].pinyin.indexOf(this.search_project_keyword) != -1) {
1491
+            if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1) {
1478 1492
               arr = arr.concat(this.allProject[i])
1479 1493
             }
1480 1494
           }
@@ -1821,6 +1835,7 @@
1821 1835
 
1822 1836
         this.diagnose = info.diagnosis
1823 1837
         if (this.diagnose == 0) {
1838
+          this.diagnose = ""
1824 1839
           for (let i = 0; i < this.diagnoses.length; i++) {
1825 1840
             this.diagnose = this.diagnoses[0].id
1826 1841
           }
@@ -1912,6 +1927,10 @@
1912 1927
         } else {
1913 1928
           this.register_type = info.register_type
1914 1929
         }
1930
+
1931
+        if (this.diagnose == 0) {
1932
+          this.diagnose = ""
1933
+        }
1915 1934
       },
1916 1935
       moreState(tab, event) {
1917 1936
         if (tab == 'more') {

+ 8 - 0
src/xt_pages/outpatientDoctorStation/components/saveTemplate.vue Visa fil

@@ -200,6 +200,14 @@
200 200
             let checkGroup = []
201 201
             let allPrescriptions = []
202 202
             let targetPrescriptions = []
203
+
204
+            let prescriptions = []
205
+            for (let i = 0; i < this.allPrescription.length; i++) {
206
+              for (let a = 0; a < this.allPrescription[i].prescriptions.length; a++) {
207
+                allPrescriptions.push(this.allPrescription[i].prescriptions[a])
208
+              }
209
+            }
210
+
203 211
             for (let i = 0; i < allPrescriptions.length; i++) {
204 212
                   targetPrescriptions.push(allPrescriptions[i])
205 213
             }

+ 1 - 0
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Visa fil

@@ -771,6 +771,7 @@
771 771
               // obj['retail_price'] = obj['retail_price'] +  drug_month_prescriptions.advices[a].drug.retail_price
772 772
               obj['retail_price'] = parseFloat(drug_month_prescriptions.advices[a].price)
773 773
               obj['drug'] = drug_month_prescriptions.advices[a].drug
774
+              obj['single_dose_unit'] = drug_month_prescriptions.advices[a].single_dose_unit
774 775
 
775 776
               count = count + drug_month_prescriptions.advices[a].prescribing_number
776 777
 

+ 2 - 3
src/xt_pages/outpatientDoctorStation/prescriptionTemplate.vue Visa fil

@@ -35,7 +35,6 @@
35 35
                           :row-style="{ color: '#303133' }"
36 36
                           :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
37 37
                           highlight-current-row
38
-                          ref="tab"
39 38
                 >
40 39
                     <el-table-column prop="name" label="模版名称">
41 40
                         <template slot-scope="scope">{{scope.row.name}}</template>
@@ -190,8 +189,8 @@
190 189
             this.all_data = response.data.data.list
191 190
 
192 191
             this.$refs.tab.setCurrentRow(this.data[0])
193
-            // this.patient_id = this.data[0].id
194
-            // this.GetPrescriptionTemplateList()
192
+            this.patient_id = this.data[0].id
193
+            this.GetPrescriptionTemplateList()
195 194
 
196 195
           }
197 196
         })

+ 12 - 3
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue Visa fil

@@ -2,9 +2,11 @@
2 2
     <div class="main-contain new-main-contain">
3 3
 
4 4
         <div style="height: calc(100% - 58px);display: flex;flex-direction: column;margin-top: 56px;">
5
-            <el-button size="small" @click="save" type="primary" style="margin-left:10px;width:60px;float: left">保存
6
-            </el-button>
5
+            <div class="position">
6
+                <bread-crumb :crumbs='crumbs'></bread-crumb>
7
+                <el-button type="primary" @click="save">保存</el-button>
7 8
 
9
+            </div>
8 10
             <div class="mainCenter" v-loading="loading">
9 11
                 <div class="centerLeft">
10 12
                     <el-form :model="tempForm" ref="tempForm" label-width="80px"
@@ -218,6 +220,7 @@
218 220
 
219 221
   import { uParseTime } from '@/utils/tools'
220 222
   import PrescriptionTemplateTable from './components/prescriptionTemplateTable'
223
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
221 224
 
222 225
   const moment = require('moment')
223 226
   export default {
@@ -239,10 +242,16 @@
239 242
     },
240 243
     components: {
241 244
       PrescriptionTemplateTable,
242
-      prescriptionTable
245
+      prescriptionTable,
246
+      BreadCrumb
243 247
     },
244 248
     data() {
245 249
       return {
250
+        crumbs: [
251
+          { path: false, name: '门诊医生站' },
252
+          { path: false, name: '处方模版' },
253
+          { path: false, name: '模版详情' },
254
+        ],
246 255
         tempForm: {
247 256
           name: '',
248 257
           mode_id: ''