提交 c7ffcf9e 编写于 作者: xingli.wu's avatar xingli.wu

Merge branch 'feature/qiao' into 'release'

feat 问诊服务

See merge request !305
...@@ -17,4 +17,4 @@ VUE_APP_IS_LOCAL=true ...@@ -17,4 +17,4 @@ VUE_APP_IS_LOCAL=true
VUE_APP_APPID=wxf4e66242d31c81c2 VUE_APP_APPID=wxf4e66242d31c81c2
#本地token #本地token
VUE_APP_TOKEN=F5C0CE7C1278471CA133A7CDAE4AC4F5 VUE_APP_TOKEN=0A78AF63DCA440A78A34CAC5B0971372
...@@ -345,3 +345,11 @@ export const getUserIdByDiagnoseLogId = async (diagnoseLogId) => { ...@@ -345,3 +345,11 @@ export const getUserIdByDiagnoseLogId = async (diagnoseLogId) => {
method: 'get', method: 'get',
}); });
}; };
export const projectList = async (data) => {
return request({
url: '/tis/project/list',
params: data,
method: 'get',
});
};
...@@ -17,6 +17,11 @@ export const DIAGNOS_LIST_NEW = [ ...@@ -17,6 +17,11 @@ export const DIAGNOS_LIST_NEW = [
showtooltip: false, showtooltip: false,
fixed: 'left', fixed: 'left',
}, },
{
prop: 'dataFromStr',
label: '数据来源',
showtooltip: true,
},
{ {
prop: 'triageDepartment', prop: 'triageDepartment',
label: '分诊科室', label: '分诊科室',
......
...@@ -65,6 +65,14 @@ export const SOURCE_LIST = [ ...@@ -65,6 +65,14 @@ export const SOURCE_LIST = [
label: '话题讨论与回复', label: '话题讨论与回复',
value: 5, value: 5,
}, },
{
label: '其它',
value: 6,
},
{
label: '保险',
value: 7,
},
]; ];
// 订单价格 // 订单价格
export const ORDER_PRICE = [ export const ORDER_PRICE = [
......
...@@ -48,6 +48,26 @@ ...@@ -48,6 +48,26 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item
label="业务类型"
disabled
>
<el-input
class="set-width"
:value="formData.consultRoad"
disabled
/>
</el-form-item>
<el-form-item
label="数据来源"
disabled
>
<el-input
class="set-width"
:value="formData.dataFromStr"
disabled
/>
</el-form-item>
<el-form-item label="创建时间"> <el-form-item label="创建时间">
<el-date-picker <el-date-picker
v-model="formData.createdTime" v-model="formData.createdTime"
......
...@@ -443,6 +443,29 @@ ...@@ -443,6 +443,29 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</div> </div>
<div>
<el-form-item
label="数据来源"
class="t-b"
>
<el-select
:value="insuranceCodes"
placeholder="请选择数据来源"
clearable
multiple
style="width: 220px"
filterable
@change="handleProjectSelect"
>
<el-option
v-for="item of dataFromList"
:key="item.insuranceProjectId"
:label="item.projectName"
:value="item.projectEquityCodes"
/>
</el-select>
</el-form-item>
</div>
</div> </div>
<div class="form-btn"> <div class="form-btn">
<div class="form-btn-li"> <div class="form-btn-li">
...@@ -672,6 +695,7 @@ import { ...@@ -672,6 +695,7 @@ import {
reMatchDoctor, reMatchDoctor,
personnelList, personnelList,
getUserIdByDiagnoseLogId, getUserIdByDiagnoseLogId,
projectList,
} from '@/api/diagnosis'; } from '@/api/diagnosis';
import { DIAGNOS_LIST_NEW } from '@/utils/GeneralData/diagnosis-list-new'; import { DIAGNOS_LIST_NEW } from '@/utils/GeneralData/diagnosis-list-new';
import { import {
...@@ -738,6 +762,7 @@ export default { ...@@ -738,6 +762,7 @@ export default {
followDateTime: '', followDateTime: '',
depList: [], depList: [],
tabrefresh: true, tabrefresh: true,
insuranceCodes: [],
searchParam: { searchParam: {
id: '', id: '',
typeList: [], typeList: [],
...@@ -772,6 +797,7 @@ export default { ...@@ -772,6 +797,7 @@ export default {
patientName: null, patientName: null,
followOperatorId: '', // 运营id followOperatorId: '', // 运营id
followStatusList: [], // 跟进状态 followStatusList: [], // 跟进状态
dataSourceList: [], // 数据来源
}, },
noteList: [], noteList: [],
alltabslist: [], alltabslist: [],
...@@ -794,6 +820,18 @@ export default { ...@@ -794,6 +820,18 @@ export default {
label: '报告解读', label: '报告解读',
value: 2, value: 2,
}, },
{
label: '用药咨询',
value: 3,
},
{
label: '中医问诊',
value: 4,
},
{
label: '在线问诊',
value: 5,
},
], ],
newDiagnoseChannelList: DIAGNOSE_CHANNEL, newDiagnoseChannelList: DIAGNOSE_CHANNEL,
nextPersonList: [ nextPersonList: [
...@@ -809,6 +847,7 @@ export default { ...@@ -809,6 +847,7 @@ export default {
tabpaneList: [], tabpaneList: [],
rematchingOptions: [], // 备注信息 rematchingOptions: [], // 备注信息
Raw_tabpaneList: [], Raw_tabpaneList: [],
dataFromList: [],
tableData: [], tableData: [],
totalRows: 0, totalRows: 0,
timeClickFlag: true, timeClickFlag: true,
...@@ -897,11 +936,55 @@ export default { ...@@ -897,11 +936,55 @@ export default {
this.getOutboundNote(); this.getOutboundNote();
this.departmentAll(); this.departmentAll();
this.personnelList(); this.personnelList();
this.getProjectList();
}, },
destroyed() { destroyed() {
clearInterval(this.timer); clearInterval(this.timer);
}, },
methods: { methods: {
handleProjectSelect(item) {
const ids = this.insuranceCodes.join();
const selectIds = item.join();
const index = item.findIndex((i) => i === '0');
if (ids === '0' && selectIds === '0') return;
if (!selectIds) this.insuranceCodes = [];
else if (index > -1 && index === item.length - 1) {
this.insuranceCodes = ['0'];
} else if (index > -1) {
item.splice(index, 1);
this.insuranceCodes = item;
} else this.insuranceCodes = item;
let result = [];
if (this.insuranceCodes.join() === '0') {
result = this.dataFromList
.map((i) => i.projectEquityCodes)
.join()
.split(',');
} else {
result = this.insuranceCodes.length
? this.insuranceCodes.join().split(',')
: [];
}
this.searchParam.dataSourceList = [...new Set(result)];
},
getProjectList() {
projectList().then((res) => {
if (res.code == '000000') {
const item = {
insuranceProjectId: 0,
projectName: '全部保险项目',
projectEquityCodes: [0],
};
this.dataFromList = [item].concat(res.data).map((row) => {
return {
...row,
projectEquityCodes: row.projectEquityCodes.join(','),
};
});
}
});
},
departmentAll() { departmentAll() {
departmentAll().then((res) => { departmentAll().then((res) => {
if (res.code == '000000') { if (res.code == '000000') {
......
...@@ -29,7 +29,8 @@ ...@@ -29,7 +29,8 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div class="status_base"> <div class="status_base">
<div :class="'status-circle status-' + scope.row.status" /><div>{{ getStatusDesc(scope.row.status) }}</div> <div :class="'status-circle status-' + scope.row.status" />
<div>{{ getStatusDesc(scope.row.status) }}</div>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -41,6 +42,14 @@ ...@@ -41,6 +42,14 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div <div
v-if="scope.row.status === 1"
class="download-btn"
@click="reload"
>
刷新
</div>
<div
v-else-if="scope.row.status === 2"
class="download-btn" class="download-btn"
@click="download(scope.row.path)" @click="download(scope.row.path)"
> >
...@@ -67,15 +76,13 @@ ...@@ -67,15 +76,13 @@
</template> </template>
<script> <script>
import { import { exportList } from '@/api/downList';
exportList const STATUS_DESC_MAP = {
} from '@/api/downList';
const STATUS_DESC_MAP = {
1: '处理中', 1: '处理中',
2: '完成', 2: '完成',
3: '失败' 3: '失败',
}; };
export default { export default {
data() { data() {
return { return {
pageSize: 15, pageSize: 15,
...@@ -85,22 +92,25 @@ ...@@ -85,22 +92,25 @@
tableData: [], tableData: [],
}; };
}, },
created () { created() {
this.queryList(); this.queryList();
}, },
methods: { methods: {
queryList () { reload() {
this.queryList();
},
queryList() {
exportList({ exportList({
pageSize: this.pageSize, pageSize: this.pageSize,
pageNo: this.pageNo pageNo: this.pageNo,
}).then(res => { }).then((res) => {
if (res && res.code === '000000') { if (res && res.code === '000000') {
this.totalCount = res.data.allSize; this.totalCount = res.data.allSize;
this.tableData = res.data.list; this.tableData = res.data.list;
} }
}); });
}, },
getStatusDesc (status) { getStatusDesc(status) {
return STATUS_DESC_MAP[status]; return STATUS_DESC_MAP[status];
}, },
download(link) { download(link) {
...@@ -116,7 +126,7 @@ ...@@ -116,7 +126,7 @@
this.queryList(); this.queryList();
}, },
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -137,13 +147,13 @@ ...@@ -137,13 +147,13 @@
margin-right: 5px; margin-right: 5px;
} }
.status-1 { .status-1 {
background-color: rgb(219, 223, 12);; background-color: rgb(219, 223, 12);
} }
.status-2 { .status-2 {
background-color: rgb(87, 238, 82);; background-color: rgb(87, 238, 82);
} }
.status-3 { .status-3 {
background-color: rgb(238, 68, 16);; background-color: rgb(238, 68, 16);
} }
} }
.download-btn { .download-btn {
......
...@@ -70,7 +70,7 @@ module.exports = { ...@@ -70,7 +70,7 @@ module.exports = {
port: 8082, port: 8082,
proxy: { proxy: {
'/proxy': { '/proxy': {
target: 'https://dev-sc.yunqueyi.com/', target: 'https://test1-sc.yunqueyi.com/',
ws: false, ws: false,
changeOrigin: true, changeOrigin: true,
secure: true, secure: true,
......
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册