|
|
@@ -32,7 +32,7 @@
|
|
|
>提交药单</el-button
|
|
|
>
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
|
- <el-button type="primary" icon="FirstAidKit" @click="getUsedMedicines"
|
|
|
+ <el-button type="primary" icon="FirstAidKit" @click="getUsedMedicines()"
|
|
|
>药品查询</el-button
|
|
|
>
|
|
|
<el-button type="danger" icon="DataLine" @click="getPoisonousAnesthetics"
|
|
|
@@ -190,7 +190,7 @@
|
|
|
border: 1px solid #333;
|
|
|
"
|
|
|
>
|
|
|
- {{ item.chargeCode }}
|
|
|
+ <a herf='#' @click="getUsedMedicines(item.chargeCode)" style='color:blue;cursor: pointer;text-decoration: underline;'>{{ item.chargeCode }}</a>
|
|
|
</div>
|
|
|
<div
|
|
|
style="
|
|
|
@@ -499,12 +499,15 @@ const pickedCheckedItem = () => {
|
|
|
return arr;
|
|
|
};
|
|
|
|
|
|
-const getUsedMedicines = () => {
|
|
|
+const getUsedMedicines = (code) => {
|
|
|
const params = {
|
|
|
start: dateRange.value[0],
|
|
|
end: dateRange.value[1],
|
|
|
dept: userInfo.deptCode,
|
|
|
};
|
|
|
+ if (code && code !== '') {
|
|
|
+ params.chargeCodes = code;
|
|
|
+ }
|
|
|
fetchUsedMedicines(params).then(res => {
|
|
|
usedMedicines.value = res;
|
|
|
showUsedMedicines.value = true;
|