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

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

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