Commit 6c626f0a by wangshuangqing

改变传参

parent 98ab0a1f
...@@ -365,7 +365,10 @@ export default { ...@@ -365,7 +365,10 @@ export default {
//当某一个行被点击时 //当某一个行被点击时
const eowclick=(row)=>{ const eowclick=(row)=>{
getInpatFeesByREGCODE(row) if(state.tableData1 !=[]){
getInpatFeesByREGCODE(row.types)
}
}; };
...@@ -522,30 +525,24 @@ export default { ...@@ -522,30 +525,24 @@ export default {
state.bottomheight = "70%"; state.bottomheight = "70%";
} }
if (state.goods.length > 0) {
// debugger
toggle(0, state.goods[0]);
}
}) })
.catch((error) => {}); .catch((error) => {});
}; };
//费用分类接口 //费用分类接口
const getInpatFeesByREGCODE = (item) => { const getInpatFeesByREGCODE = (types) => {
http http
.post( .post(
`/medical/Get/getIFHisByREGCODE?&code=${route.value.query.id}&ItemType=${item.iteM_TYPE}`, `/medical/Get/getIFHisByREGCODE?&code=${route.value.query.id}`,
{} types
) )
.then((data) => { .then((data) => {
state.tableData = data; state.tableData = data;
}) })
.catch((error) => {}); .catch((error) => {});
}; };
const toggle = (index, item) => {
state.checkindex = index;
getInpatFeesByREGCODE(item);
};
const scrollToFoods = (index) => { const scrollToFoods = (index) => {
// state.checkindex = index; // state.checkindex = index;
}; };
...@@ -622,7 +619,6 @@ export default { ...@@ -622,7 +619,6 @@ export default {
return { return {
...toRefs(state), ...toRefs(state),
tableRowClassName, tableRowClassName,
toggle,
scrollToFoods, scrollToFoods,
getHistoryInfo, getHistoryInfo,
getInpatFeesByREGCODE, 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