Преглед на файлове

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

csx преди 3 години
родител
ревизия
c7f87a49a1

+ 1 - 1
src/xt_pages/data/components/project.vue Целия файл

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

+ 21 - 2
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Целия файл

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

+ 8 - 0
src/xt_pages/outpatientDoctorStation/components/saveTemplate.vue Целия файл

200
             let checkGroup = []
200
             let checkGroup = []
201
             let allPrescriptions = []
201
             let allPrescriptions = []
202
             let targetPrescriptions = []
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
             for (let i = 0; i < allPrescriptions.length; i++) {
211
             for (let i = 0; i < allPrescriptions.length; i++) {
204
                   targetPrescriptions.push(allPrescriptions[i])
212
                   targetPrescriptions.push(allPrescriptions[i])
205
             }
213
             }

+ 1 - 0
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Целия файл

771
               // obj['retail_price'] = obj['retail_price'] +  drug_month_prescriptions.advices[a].drug.retail_price
771
               // obj['retail_price'] = obj['retail_price'] +  drug_month_prescriptions.advices[a].drug.retail_price
772
               obj['retail_price'] = parseFloat(drug_month_prescriptions.advices[a].price)
772
               obj['retail_price'] = parseFloat(drug_month_prescriptions.advices[a].price)
773
               obj['drug'] = drug_month_prescriptions.advices[a].drug
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
               count = count + drug_month_prescriptions.advices[a].prescribing_number
776
               count = count + drug_month_prescriptions.advices[a].prescribing_number
776
 
777
 

+ 2 - 3
src/xt_pages/outpatientDoctorStation/prescriptionTemplate.vue Целия файл

35
                           :row-style="{ color: '#303133' }"
35
                           :row-style="{ color: '#303133' }"
36
                           :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
36
                           :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
37
                           highlight-current-row
37
                           highlight-current-row
38
-                          ref="tab"
39
                 >
38
                 >
40
                     <el-table-column prop="name" label="模版名称">
39
                     <el-table-column prop="name" label="模版名称">
41
                         <template slot-scope="scope">{{scope.row.name}}</template>
40
                         <template slot-scope="scope">{{scope.row.name}}</template>
190
             this.all_data = response.data.data.list
189
             this.all_data = response.data.data.list
191
 
190
 
192
             this.$refs.tab.setCurrentRow(this.data[0])
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 Целия файл

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