|
@@ -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') {
|