Commit 6c626f0a by wangshuangqing

改变传参

parent 98ab0a1f
......@@ -365,7 +365,10 @@ export default {
//当某一个行被点击时
const eowclick=(row)=>{
getInpatFeesByREGCODE(row)
if(state.tableData1 !=[]){
getInpatFeesByREGCODE(row.types)
}
};
......@@ -522,30 +525,24 @@ export default {
state.bottomheight = "70%";
}
if (state.goods.length > 0) {
// debugger
toggle(0, state.goods[0]);
}
})
.catch((error) => {});
};
//费用分类接口
const getInpatFeesByREGCODE = (item) => {
const getInpatFeesByREGCODE = (types) => {
http
.post(
`/medical/Get/getIFHisByREGCODE?&code=${route.value.query.id}&ItemType=${item.iteM_TYPE}`,
{}
`/medical/Get/getIFHisByREGCODE?&code=${route.value.query.id}`,
types
)
.then((data) => {
state.tableData = data;
})
.catch((error) => {});
};
const toggle = (index, item) => {
state.checkindex = index;
getInpatFeesByREGCODE(item);
};
const scrollToFoods = (index) => {
// state.checkindex = index;
};
......@@ -622,7 +619,6 @@ export default {
return {
...toRefs(state),
tableRowClassName,
toggle,
scrollToFoods,
getHistoryInfo,
getInpatFeesByREGCODE,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment