提交 71ebcb69 编写于 作者: qian.jie's avatar qian.jie

添加患者信息及解读报告开关

上级 823dd763
......@@ -26,6 +26,13 @@ export const switchOpen = async (data) => {
method: 'post',
});
};
export const readingReportOpen = async (data) => {
return request({
url: 'diagnose/doctor/work/readingReportOpen',
data: data,
method: 'post',
});
};
export const workInStep = async () => {
return request({
url: '/diagnose/doctor/work/inStep',
......
......@@ -123,6 +123,20 @@
/>
</template>
</el-table-column>
<el-table-column
prop="isReadingReport"
align="center"
label="报告解读开关"
width="170"
>
<template slot-scope="scope">
<el-switch
v-model="scope.row.isReadingReport"
active-color="#0D9078"
@change="changeSwitchReport(scope.$index, scope.row)"
/>
</template>
</el-table-column>
<el-table-column
label="操作"
fixed="right"
......@@ -246,6 +260,9 @@
changeSwitch(value, val) {
this.$emit('changeSwitch', value, val);
},
changeSwitchReport(value, val) {
this.$emit('changeSwitchReport', value, val);
},
getServiceOpen(value, row) {
return row.serviceOpen === String(value);
},
......
......@@ -143,6 +143,7 @@
@getServiceOpen="getServiceOpen"
@getWorkStatus="getWorkStatus"
@changeSwitch="changeSwitch"
@changeSwitchReport="changeSwitchReport"
@handleSizeChange="handleSizeChange"
@handleCurrentChange="handleCurrentChange"
@addSchedule="addSchedule"
......@@ -196,6 +197,7 @@
switchOpen,
workInStep,
getLevel,
readingReportOpen
} from '@/api/serviceSchedule';
import { departmentAll, savePCDayCount } from '@/api/diagnosis';
import TableServiceSchedule from '@/components/list/table-serviceSchedule';
......@@ -364,17 +366,11 @@
this.loading = false;
if (res.code === '000000') {
this.tableData = (res.data.list || []).map((item) => {
if (item.switchStatus === '1') {
return {
...item,
switchStatus: true,
};
} else {
return {
...item,
switchStatus: false,
};
}
return {
...item,
isReadingReport:item.isReadingReport == 1 ? true : false,
switchStatus:item.switchStatus == 1 ? true : false
};
});
this.searchParam.totalRows = res.data.count;
}
......@@ -396,6 +392,16 @@
}
});
},
changeSwitchReport(value, val) {
readingReportOpen({
id: val.id,
readingReportOpen: val.isReadingReport ? '1' : '2',
}).then((res) => {
if (res.code === '000000') {
// this.search();
}
});
},
searchInStep() {
this.loading = true;
workInStep().then((res) => {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册