Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
a4f0dfbf32
@ -55,6 +55,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
localStorage.removeItem('questionquery')
|
||||
localStorage.removeItem('manualReviewquery')
|
||||
localStorage.removeItem('signRecordquery')
|
||||
localStorage.removeItem('followupquery')
|
||||
|
||||
@ -112,6 +112,9 @@ const actions = {
|
||||
},
|
||||
|
||||
delView({ dispatch, state }, view) {
|
||||
if (view.fullPath == "/knowledge/question") {
|
||||
localStorage.removeItem('questionquery')
|
||||
}
|
||||
if (view.fullPath == '/task/manualReview') {
|
||||
localStorage.removeItem('manualReviewquery')
|
||||
}
|
||||
@ -144,6 +147,9 @@ const actions = {
|
||||
},
|
||||
|
||||
delOthersViews({ dispatch, state }, view) {
|
||||
if (view.fullPath == "/knowledge/question") {
|
||||
localStorage.removeItem('questionquery')
|
||||
}
|
||||
if (view.fullPath != '/task/manualReview') {
|
||||
localStorage.removeItem('manualReviewquery')
|
||||
}
|
||||
|
||||
@ -79,6 +79,7 @@ export default {
|
||||
switchvalue: true,
|
||||
//校验
|
||||
itemid: null,
|
||||
departmentName: '',
|
||||
// 表格数据
|
||||
DepartmentoList: [],
|
||||
count: '',
|
||||
@ -236,12 +237,18 @@ export default {
|
||||
this.count += item.countNum;
|
||||
}
|
||||
});
|
||||
this.$emit("clickdepartment", {
|
||||
hospitalAgencyId: this.querydepartmen.hospitalAgencyId,
|
||||
itemid: this.itemid,
|
||||
itemName: this.departmentName,
|
||||
hospitalAgencyName: this.hospitalAgencyName
|
||||
});
|
||||
if (localStorage.getItem('questionquery')) {
|
||||
this.itemid = JSON.parse(localStorage.getItem('questionquery')).departmentId
|
||||
this.departmentName = JSON.parse(localStorage.getItem('questionquery')).departmentName
|
||||
}
|
||||
if (this.methods != 'getDepartmentList') {
|
||||
this.$emit("clickdepartment", {
|
||||
hospitalAgencyId: this.querydepartmen.hospitalAgencyId,
|
||||
itemid: this.itemid,
|
||||
itemName: this.departmentName,
|
||||
hospitalAgencyName: this.hospitalAgencyName
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
@ -286,14 +286,6 @@
|
||||
<div class="lefttext">
|
||||
文字提醒
|
||||
</div>
|
||||
<div class="righttextarea">
|
||||
{{ item.textRemindContent }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tabtext" v-else>
|
||||
<div class="lefttext">
|
||||
内容
|
||||
</div>
|
||||
<div class="righttextarea" v-html="item.nodeContent">
|
||||
</div>
|
||||
</div>
|
||||
@ -501,6 +493,8 @@ export default {
|
||||
}
|
||||
|
||||
span {
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
@ -301,26 +301,31 @@ export default {
|
||||
this.uploadsave();
|
||||
},
|
||||
uploadsave() {
|
||||
if (this.signPackage.healthManageId && this.attendingPhysicianlist?.length > 0) {
|
||||
this.signPackage.healthManageName = this.attendingPhysicianlist.find(e => e.userId == this.signPackage.healthManageId)?.nickName
|
||||
}
|
||||
this.form.signPackage = this.signPackage
|
||||
this.form.route.routeId = this.signPackage.routeId
|
||||
this.form.route.routeName = this.signPackage.routeName
|
||||
addsign(this.form).then(res => {
|
||||
this.$confirm('续约成功, 是否返回上一页?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'success'
|
||||
}).then(() => {
|
||||
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
|
||||
this.$router.push({
|
||||
path: "/patient/signRecord",
|
||||
});
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$modal.msgSuccess("续约成功");
|
||||
});
|
||||
this.$confirm('是否确认续约?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
}).then(() => {
|
||||
if (this.signPackage.healthManageId && this.attendingPhysicianlist?.length > 0) {
|
||||
this.signPackage.healthManageName = this.attendingPhysicianlist.find(e => e.userId == this.signPackage.healthManageId)?.nickName
|
||||
}
|
||||
this.form.signPackage = this.signPackage
|
||||
this.form.route.routeId = this.signPackage.routeId
|
||||
this.form.route.routeName = this.signPackage.routeName
|
||||
addsign(this.form).then(res => {
|
||||
this.$confirm('续约成功, 是否返回上一页?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'success'
|
||||
}).then(() => {
|
||||
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
|
||||
this.$router.push({
|
||||
path: "/patient/signRecord",
|
||||
});
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$modal.msgSuccess("续约成功");
|
||||
});
|
||||
})
|
||||
})
|
||||
},
|
||||
//新增硬件
|
||||
|
||||
@ -259,28 +259,33 @@ export default {
|
||||
}
|
||||
},
|
||||
uploadsave() {
|
||||
if (this.signPackage.servicePackageId && this.packagelist?.length > 0) {
|
||||
this.signPackage.packageName = this.packagelist.find(e => e.id == this.signPackage.servicePackageId)?.packageName
|
||||
}
|
||||
if (this.form.record.healthManageId && this.attendingPhysicianlist?.length > 0) {
|
||||
this.form.record.healthManageName = this.attendingPhysicianlist.find(e => e.userId == this.form.record.healthManageId)?.nickName
|
||||
}
|
||||
this.form.signPackage = this.signPackage
|
||||
this.form.route = this.route
|
||||
addsign(this.form).then(res => {
|
||||
this.$confirm('签约成功, 是否返回上一页?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'success'
|
||||
}).then(() => {
|
||||
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
|
||||
this.$router.push({
|
||||
path: "/patient/signRecord",
|
||||
});
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$modal.msgSuccess("签约成功");
|
||||
});
|
||||
this.$confirm('是否确认签约?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
}).then(() => {
|
||||
if (this.signPackage.servicePackageId && this.packagelist?.length > 0) {
|
||||
this.signPackage.packageName = this.packagelist.find(e => e.id == this.signPackage.servicePackageId)?.packageName
|
||||
}
|
||||
if (this.form.record.healthManageId && this.attendingPhysicianlist?.length > 0) {
|
||||
this.form.record.healthManageName = this.attendingPhysicianlist.find(e => e.userId == this.form.record.healthManageId)?.nickName
|
||||
}
|
||||
this.form.signPackage = this.signPackage
|
||||
this.form.route = this.route
|
||||
addsign(this.form).then(res => {
|
||||
this.$confirm('签约成功, 是否返回上一页?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'success'
|
||||
}).then(() => {
|
||||
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
|
||||
this.$router.push({
|
||||
path: "/patient/signRecord",
|
||||
});
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$modal.msgSuccess("签约成功");
|
||||
});
|
||||
})
|
||||
})
|
||||
},
|
||||
//文件上传完成
|
||||
@ -340,11 +345,11 @@ export default {
|
||||
|
||||
.header {
|
||||
background-color: #fff;
|
||||
width: 98%;
|
||||
margin: 0 auto;
|
||||
border-radius: 8px;
|
||||
height: calc(100% - 5px);
|
||||
overflow: auto;
|
||||
width: 98%;
|
||||
margin: 0 auto;
|
||||
border-radius: 8px;
|
||||
height: calc(100% - 5px);
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.btns {
|
||||
|
||||
@ -751,11 +751,8 @@ export default {
|
||||
});
|
||||
this.itemlist.specialDiseaseNodeList = [];
|
||||
this.lists.forEach((e) => {
|
||||
console.log(e, 'taskNodeType')
|
||||
e.list.length > 0
|
||||
? e.list.forEach((el) => {
|
||||
console.log(el, 'taskNodeType')
|
||||
|
||||
el.routeNodeDay = e.routeNodeDay;
|
||||
el.routeNodeName = e.routeNodeName;
|
||||
if (el.phoneDialMethod == 'COMMON' && el.templateId) {
|
||||
|
||||
@ -677,7 +677,7 @@ export default {
|
||||
list(this.parentDictCode).then((res) => {
|
||||
res.rows.forEach((e) => {
|
||||
this.list.forEach((el) => {
|
||||
el.routeNodeName = e.dictLabel;
|
||||
el.routeNodeName = e.dictValue;
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -698,6 +698,7 @@ export default {
|
||||
messagePushSign: "0",
|
||||
appletPushSign: "0",
|
||||
phonePushSign: "1",
|
||||
phoneDialMethod: "",
|
||||
});
|
||||
},
|
||||
delitem(item, index, list) {
|
||||
@ -716,40 +717,45 @@ export default {
|
||||
}
|
||||
},
|
||||
upload() {
|
||||
this.updata.routeNodeList = this.list;
|
||||
// this.updata.routeNodeList.forEach((el) => {
|
||||
// if (el.phoneDialMethod == "COMMON" && el.questionInfoId) {
|
||||
// el.templateType = "QUESTIONNAIRE";
|
||||
// } else if (el.phoneDialMethod == "COMMON" && el.phoneId) {
|
||||
// el.templateType = "SCRIPT";
|
||||
// } else if (el.phoneDialMethod == "AI" && el.phoneId) {
|
||||
// el.templateType = "SCRIPT";
|
||||
// }
|
||||
// });
|
||||
this.updata.triggerConditionList.forEach((e) => {
|
||||
e.routeId = this.$route.query.id;
|
||||
e.routeName = this.$route.query.routeName;
|
||||
delete e.optionstriggerConditionOperator
|
||||
});
|
||||
delete this.updata.triggerConditionList.optionstriggerConditionOperator
|
||||
// return
|
||||
signrouteadd(this.updata).then((res) => {
|
||||
this.$notify({
|
||||
type: "success",
|
||||
title: "提示",
|
||||
message: "保存成功,即将返回签约患者列表",
|
||||
duration: 3000,
|
||||
this.$confirm('保存此任务, 是否继续?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
}).then(() => {
|
||||
this.updata.routeNodeList = this.list;
|
||||
// this.updata.routeNodeList.forEach((el) => {
|
||||
// if (el.phoneDialMethod == "COMMON" && el.questionInfoId) {
|
||||
// el.templateType = "QUESTIONNAIRE";
|
||||
// } else if (el.phoneDialMethod == "COMMON" && el.phoneId) {
|
||||
// el.templateType = "SCRIPT";
|
||||
// } else if (el.phoneDialMethod == "AI" && el.phoneId) {
|
||||
// el.templateType = "SCRIPT";
|
||||
// }
|
||||
// });
|
||||
this.updata.triggerConditionList.forEach((e) => {
|
||||
e.routeId = this.$route.query.id;
|
||||
e.routeName = this.$route.query.routeName;
|
||||
delete e.optionstriggerConditionOperator
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$store
|
||||
.dispatch("tagsView/delView", this.$route)
|
||||
.then(({ visitedViews }) => {
|
||||
this.$router.push({
|
||||
path: "/patient/signRecord",
|
||||
delete this.updata.triggerConditionList.optionstriggerConditionOperator
|
||||
// return
|
||||
signrouteadd(this.updata).then((res) => {
|
||||
this.$notify({
|
||||
type: "success",
|
||||
title: "提示",
|
||||
message: "保存成功,即将返回签约患者列表",
|
||||
duration: 3000,
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$store
|
||||
.dispatch("tagsView/delView", this.$route)
|
||||
.then(({ visitedViews }) => {
|
||||
this.$router.push({
|
||||
path: "/patient/signRecord",
|
||||
});
|
||||
});
|
||||
});
|
||||
}, 3000);
|
||||
});
|
||||
}, 3000);
|
||||
});
|
||||
})
|
||||
},
|
||||
// 获取表格最高高度
|
||||
getMaxTableHeight() {
|
||||
|
||||
@ -304,6 +304,9 @@ export default {
|
||||
const id = row.id || this.ids;
|
||||
getAgencyCategory(id).then((response) => {
|
||||
this.form = response.data;
|
||||
if (!this.form.categorySort) {
|
||||
this.form.categorySort = undefined
|
||||
}
|
||||
this.open = true;
|
||||
this.title = "修改机构类别";
|
||||
});
|
||||
@ -383,7 +386,11 @@ export default {
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.el-cascader .el-input input::-webkit-input-placeholder {
|
||||
::v-deep .el-input-number .el-input__inner {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
::v-deep .el-cascader .el-input input::-webkit-input-placeholder {
|
||||
color: #cccfd6;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -188,11 +188,11 @@ export default {
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.$refs.DepartmentList.resetQuery()
|
||||
this.queryParams.departmentId = null;
|
||||
this.itemname = null;
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
this.$refs.DepartmentList.resetQuery()
|
||||
// this.handleQuery();
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@ -193,10 +193,10 @@ export default {
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.$refs.DepartmentList.resetQuery()
|
||||
this.queryParams.departmentId = null;
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
this.$refs.DepartmentList.resetQuery()
|
||||
// this.handleQuery();
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@ -172,10 +172,10 @@ export default {
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.$refs.DepartmentList.resetQuery()
|
||||
this.queryParams.departmentId = null;
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
this.$refs.DepartmentList.resetQuery()
|
||||
// this.handleQuery();
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
@ -280,9 +280,9 @@ export default {
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.$refs.DepartmentList.resetQuery()
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
this.$refs.DepartmentList.resetQuery()
|
||||
// this.handleQuery();
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@ -197,9 +197,9 @@ export default {
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.$refs.DepartmentList.resetQuery()
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
this.$refs.DepartmentList.resetQuery()
|
||||
// this.handleQuery();
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@ -234,9 +234,9 @@ export default {
|
||||
scriptSort: null,
|
||||
scriptRemark: null,
|
||||
};
|
||||
this.$refs.DepartmentList.resetQuery()
|
||||
this.resetForm("queryForm");
|
||||
this.getList();
|
||||
this.$refs.DepartmentList.resetQuery()
|
||||
// this.getList();
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@ -529,6 +529,9 @@ export default {
|
||||
const id = row.id || this.ids
|
||||
getPartition(id).then(response => {
|
||||
this.form = response.data;
|
||||
if(!this.form.taskPartitionSort){
|
||||
this.form.taskPartitionSort=undefined
|
||||
}
|
||||
this.open = true;
|
||||
this.title = "修改任务细分字典";
|
||||
});
|
||||
|
||||
@ -3,256 +3,105 @@
|
||||
<el-row :gutter="20">
|
||||
<!--部门数据-->
|
||||
<el-col :span="5" :xs="24">
|
||||
<DepartmentList
|
||||
ref="DepartmentList"
|
||||
@clickdepartment="clickdepartment"
|
||||
:methods="'getDepartmentList'"
|
||||
>
|
||||
<DepartmentList ref="DepartmentList" @clickdepartment="clickdepartment" :methods="'getDepartmentList'">
|
||||
</DepartmentList>
|
||||
</el-col>
|
||||
<!--用户数据-->
|
||||
<el-col :span="19" :xs="24">
|
||||
<div ref="topform" class="form">
|
||||
<el-form
|
||||
:model="queryParams"
|
||||
ref="queryForm"
|
||||
size="small"
|
||||
:inline="true"
|
||||
label-width="70px"
|
||||
>
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="70px">
|
||||
<el-form-item label="问卷标题" prop="questionnaireName">
|
||||
<el-input
|
||||
v-model="queryParams.questionnaireName"
|
||||
placeholder="请输入问卷标题"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
<el-input v-model="queryParams.questionnaireName" placeholder="请输入问卷标题" clearable
|
||||
@keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="病种名称" prop="diseaseTypeName">
|
||||
<el-input
|
||||
v-model="queryParams.diseaseTypeName"
|
||||
placeholder="请输入病种名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
<el-input v-model="queryParams.diseaseTypeName" placeholder="请输入病种名称" clearable
|
||||
@keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
size="mini"
|
||||
@click="handleQuery"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||
>重置</el-button
|
||||
>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
<div ref="mb8" class="mb8">
|
||||
<el-row :gutter="10" class="">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['system:question:add']"
|
||||
>新增问卷模板</el-button
|
||||
>
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-upload2"
|
||||
size="mini"
|
||||
@click="handleUpload"
|
||||
>导入</el-button
|
||||
>
|
||||
<el-button type="primary" size="mini" @click="handleAdd"
|
||||
v-hasPermi="['system:question:add']">新增问卷模板</el-button>
|
||||
<el-button type="warning" plain icon="el-icon-upload2" size="mini" @click="handleUpload">导入</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
<div ref="table">
|
||||
<el-table
|
||||
:max-height="maxTableHeight"
|
||||
v-loading="loading"
|
||||
:data="questionList"
|
||||
>
|
||||
<el-table-column
|
||||
label="序号"
|
||||
type="index"
|
||||
width="55"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
label="问卷模板名称"
|
||||
align="center"
|
||||
prop="questionnaireName"
|
||||
/>
|
||||
<el-table-column
|
||||
label="问题个数"
|
||||
align="center"
|
||||
prop="questionCount"
|
||||
/>
|
||||
<el-table-column
|
||||
label="问卷模板ID"
|
||||
align="center"
|
||||
prop="questionnaireId"
|
||||
/>
|
||||
<el-table-column
|
||||
label="问卷类型"
|
||||
align="center"
|
||||
prop="questionType"
|
||||
>
|
||||
<el-table :max-height="maxTableHeight" v-loading="loading" :data="questionList">
|
||||
<el-table-column label="序号" type="index" width="55" align="center" />
|
||||
<el-table-column label="问卷模板名称" align="center" prop="questionnaireName" />
|
||||
<el-table-column label="问题个数" align="center" prop="questionCount" />
|
||||
<el-table-column label="问卷模板ID" align="center" prop="questionnaireId" />
|
||||
<el-table-column label="问卷类型" align="center" prop="questionType">
|
||||
<template slot-scope="scope">
|
||||
<div v-if="scope.row.questionType == 'REGULAR_QUESTIONNAIRE'">
|
||||
普通问卷
|
||||
</div>
|
||||
<div
|
||||
v-if="scope.row.questionType == 'SATISFACTION_QUESTIONNAIRE'"
|
||||
>
|
||||
<div v-if="scope.row.questionType == 'SATISFACTION_QUESTIONNAIRE'">
|
||||
满意度问卷
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="问卷状态"
|
||||
align="center"
|
||||
prop="questionnaireStatus"
|
||||
>
|
||||
<el-table-column label="问卷状态" align="center" prop="questionnaireStatus">
|
||||
<template slot-scope="scope">
|
||||
<el-tag
|
||||
type="success"
|
||||
v-if="scope.row.questionnaireStatus == 'PUBLISHED'"
|
||||
>已发布</el-tag
|
||||
>
|
||||
<el-tag type="success" v-if="scope.row.questionnaireStatus == 'PUBLISHED'">已发布</el-tag>
|
||||
<el-tag type="warning" v-else>未发布</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="病种名称"
|
||||
align="center"
|
||||
prop="diseaseTypeName"
|
||||
/>
|
||||
<el-table-column
|
||||
label="操作"
|
||||
align="center"
|
||||
class-name="small-padding fixed-width"
|
||||
>
|
||||
<el-table-column label="病种名称" align="center" prop="diseaseTypeName" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<!-- <el-switch v-model="scope.row.questionnaireStatus" active-color="#13ce66" inactive-color="#ff4949"
|
||||
active-value="PUBLISHED" inactive-value="UNPUBLISHED" @change="switchstatus($event, scope.row)">
|
||||
</el-switch> -->
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
@click="switchstatus('UNPUBLISHED', scope.row)"
|
||||
v-if="scope.row.questionnaireStatus == 'PUBLISHED'"
|
||||
>取消发布</el-button
|
||||
>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
@click="switchstatus('PUBLISHED', scope.row)"
|
||||
v-else
|
||||
>发布</el-button
|
||||
>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
@click="handleClassification(scope.row)"
|
||||
v-hasPermi="['system:question:edit']"
|
||||
>分类管理</el-button
|
||||
>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['system:question:edit']"
|
||||
>编辑</el-button
|
||||
>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['system:question:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
<el-button size="mini" type="text" @click="switchstatus('UNPUBLISHED', scope.row)"
|
||||
v-if="scope.row.questionnaireStatus == 'PUBLISHED'">取消发布</el-button>
|
||||
<el-button size="mini" type="text" @click="switchstatus('PUBLISHED', scope.row)" v-else>发布</el-button>
|
||||
<el-button size="mini" type="text" @click="handleClassification(scope.row)"
|
||||
v-hasPermi="['system:question:edit']">分类管理</el-button>
|
||||
<el-button size="mini" type="text" @click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['system:question:edit']">编辑</el-button>
|
||||
<el-button size="mini" type="text" @click="handleDelete(scope.row)"
|
||||
v-hasPermi="['system:question:remove']">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize" @pagination="getList" /> -->
|
||||
<myPagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
:pageSize="queryParams.pageSize"
|
||||
:indexFromWrap="queryParams.pageNum"
|
||||
@updateCPage="updateCPage"
|
||||
></myPagination>
|
||||
<myPagination v-show="total > 0" :total="total" :pageSize="queryParams.pageSize"
|
||||
:indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"></myPagination>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-dialog
|
||||
title="提示"
|
||||
:visible.sync="classificationOpen"
|
||||
width="30%"
|
||||
:before-close="classificationOpenfalse"
|
||||
>
|
||||
<el-form
|
||||
ref="form"
|
||||
:model="classificationform"
|
||||
label-width="80px"
|
||||
:rules="rules"
|
||||
>
|
||||
<el-dialog title="提示" :visible.sync="classificationOpen" width="30%" :before-close="classificationOpenfalse">
|
||||
<el-form ref="form" :model="classificationform" label-width="80px" :rules="rules">
|
||||
<el-form-item label="科室名称" prop="departmentId">
|
||||
<el-select
|
||||
v-model="classificationform.departmentId"
|
||||
placeholder="请选择科室"
|
||||
clearable
|
||||
style="width: 300px"
|
||||
@clear="cleardepartment"
|
||||
@change="changedepartment"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in departmentlist"
|
||||
:key="item.id"
|
||||
:label="item.departmentName"
|
||||
:value="item.id"
|
||||
/>
|
||||
<el-select v-model="classificationform.departmentId" placeholder="请选择科室" clearable style="width: 300px"
|
||||
@clear="cleardepartment" @change="changedepartment">
|
||||
<el-option v-for="item in departmentlist" :key="item.id" :label="item.departmentName" :value="item.id" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="病种名称">
|
||||
<el-select
|
||||
v-model="classificationform.diseaseTypeId"
|
||||
placeholder="请选择病种"
|
||||
clearable
|
||||
style="width: 300px"
|
||||
@change="changediseaseType"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in diseaselist"
|
||||
:key="item.id"
|
||||
:label="item.diseaseTypeName"
|
||||
:value="item.id"
|
||||
/>
|
||||
<el-select v-model="classificationform.diseaseTypeId" placeholder="请选择病种" clearable style="width: 300px"
|
||||
@change="changediseaseType">
|
||||
<el-option v-for="item in diseaselist" :key="item.id" :label="item.diseaseTypeName" :value="item.id" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="classificationupload"
|
||||
>确 定</el-button
|
||||
>
|
||||
<el-button type="primary" @click="classificationupload">确 定</el-button>
|
||||
<el-button @click="classificationOpenfalse">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- 导入弹框 -->
|
||||
<el-dialog
|
||||
title=""
|
||||
:visible.sync="innerexport"
|
||||
width="1000px"
|
||||
append-to-body
|
||||
:before-close="exportcancel"
|
||||
>
|
||||
<el-dialog title="" :visible.sync="innerexport" width="1000px" append-to-body :before-close="exportcancel">
|
||||
<questionexport @submit="submit" ref="childComponent"></questionexport>
|
||||
<div slot="footer" class="dialog-footer footerlist">
|
||||
<el-button type="primary" @click="submitexport">确 定</el-button>
|
||||
@ -317,7 +166,12 @@ export default {
|
||||
};
|
||||
},
|
||||
created() {
|
||||
// this.getList();
|
||||
if (localStorage.getItem('questionquery')) {
|
||||
this.queryParams = JSON.parse(localStorage.getItem('questionquery'))
|
||||
} else {
|
||||
this.queryParams.hospitalAgencyId = JSON.parse(localStorage.getItem('user')).hospitalAgencyId
|
||||
}
|
||||
this.getList();
|
||||
},
|
||||
mounted() {
|
||||
this.getMaxTableHeight()
|
||||
@ -351,7 +205,6 @@ export default {
|
||||
}
|
||||
} else {
|
||||
this.$modal.msgError("请先选择左侧科室");
|
||||
|
||||
}
|
||||
},
|
||||
// 弹框取消
|
||||
@ -363,6 +216,7 @@ export default {
|
||||
this.queryParams.hospitalAgencyId = item.hospitalAgencyId
|
||||
this.queryParams.hospitalAgencyName = item.hospitalAgencyName
|
||||
this.queryParams.departmentId = item.itemid
|
||||
this.queryParams.departmentName = item.itemName
|
||||
this.departmentName = item.itemName
|
||||
if (item.hospitalAgencyId) {
|
||||
this.handleQuery();
|
||||
@ -469,6 +323,8 @@ export default {
|
||||
/** 查询问卷基本信息列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
console.log(this.queryParams)
|
||||
localStorage.setItem('questionquery', JSON.stringify(this.queryParams))
|
||||
listQuestion(this.queryParams).then(response => {
|
||||
this.questionList = response.rows;
|
||||
this.total = response.total;
|
||||
@ -606,10 +462,12 @@ export default {
|
||||
.app-container {
|
||||
padding: 20px 0 0 20px !important;
|
||||
}
|
||||
::v-deep .el-dialog__footer{
|
||||
padding-top: 33px !important;
|
||||
|
||||
}
|
||||
::v-deep .el-dialog__footer {
|
||||
padding-top: 33px !important;
|
||||
|
||||
}
|
||||
|
||||
::v-deep .el-row {
|
||||
height: 100% !important;
|
||||
}
|
||||
|
||||
@ -218,6 +218,9 @@ export default {
|
||||
const id = row.id || this.ids;
|
||||
getSubdivision(id).then((response) => {
|
||||
this.form = response.data;
|
||||
if (!this.form.sort) {
|
||||
this.form.sort = undefined
|
||||
}
|
||||
this.open = true;
|
||||
this.title = "修改细分类别信息";
|
||||
});
|
||||
@ -292,3 +295,8 @@ export default {
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep .el-input-number .el-input__inner {
|
||||
text-align: left;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -274,7 +274,6 @@ export default {
|
||||
this.form = response.data;
|
||||
if (!this.form.taskStatusSort) {
|
||||
this.form.taskStatusSort = undefined
|
||||
|
||||
}
|
||||
this.open = true;
|
||||
this.title = "修改任务状态字典";
|
||||
@ -342,8 +341,8 @@ export default {
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.el-input-number .el-input__inner {
|
||||
<style lang="scss" scoped>
|
||||
::v-deep .el-input-number .el-input__inner {
|
||||
text-align: left;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -229,6 +229,9 @@ export default {
|
||||
const id = row.id || this.ids
|
||||
getTaskType(id).then(response => {
|
||||
this.form = response.data;
|
||||
if(!this.form.taskTypeSort){
|
||||
this.form.taskTypeSort=undefined
|
||||
}
|
||||
this.open = true;
|
||||
this.title = "修改任务类型字典";
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user