提交 7f834a25 编写于 作者: 张磊's avatar 张磊

wx appoint

上级 91e94d44
......@@ -191,15 +191,6 @@
>
手动打回
</el-button>
<!-- <el-button
v-if="showBtn(scope.row, 3, 25, 26)"
type="primary"
size="small"
class="btn"
@click="reMatchDot(scope.row, 16)"
>
重新联系助诊医生
</el-button> -->
<el-button
v-if="scope.row.diagnoseType !== 4 && showBtn(scope.row, 3, 26)"
type="primary"
......@@ -227,6 +218,14 @@
>
设置科室
</el-button>
<el-button
type="primary"
size="small"
class="btn"
@click="callAssistant(scope.row,)"
>
呼叫医助
</el-button>
</template>
</el-table-column>
</el-table>
......@@ -416,6 +415,9 @@
setOffice(value) {
this.$emit('setOffice', value);
},
callAssistant(row){
this.$emit('callAssistant', row);
}
},
};
</script>
......
......@@ -16,6 +16,15 @@ export const updateDiagnosis = (params) => {
});
};
/* 保存问诊相关信息*/
export const callAssistantDoctor = (diagnoseLogId) => {
return fetch({
headers,
url: getBaseUrl(`/diagnose/admin/diagnose/callAssistantDoctor/${diagnoseLogId}`),
method: 'get',
});
};
export const manualQueue = (params) => {
return fetch({
headers,
......
......@@ -491,6 +491,7 @@
@handleSizeChange="handleSizeChange"
@handleCurrentChange="handleCurrentChange"
@getTableData="getTableData"
@callAssistant="callAssistant"
/>
</el-tab-pane>
</el-tabs>
......@@ -601,7 +602,7 @@
</template>
<script>
let vm = null;
import { updateDiagnosis } from '../../../utils/diagnosis';
import { updateDiagnosis, callAssistantDoctor } from '../../../utils/diagnosis';
import { outbounNote } from '../../../api/diagnosis';
import { base64decode } from '../../../utils/utils.js';
import { DIAGNOS_LIST_NEW } from '@/utils/GeneralData/diagnosis-list-new';
......@@ -1302,6 +1303,22 @@
this.triageDepartment = row.triageDepartment;
this.diaUpdateDeIdVisible = true;
},
callAssistant(row) {
this.$confirm('确定呼叫医助吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
console.log('--', row , row.diagnoseLogId);
callAssistantDoctor(row.diagnoseLogId).then(res => {
if (res.code == '000000'){
}else{
vm.$message.error(res.message);
}
});
})
},
// 发送消息
sendMessage(row) {
this.$router.push({
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册