修改
This commit is contained in:
parent
2aee74f601
commit
3452250267
@ -89,8 +89,11 @@
|
|||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<!-- <el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5" v-if="queryParams.serviceStatus == 'SERVICE_CENTER'">
|
||||||
|
<el-button type="primary" plain size="mini" @click="addTask">手动创建任务</el-button>
|
||||||
|
</el-col>
|
||||||
|
<!-- <el-col :span="1.5">
|
||||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
|
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
|
||||||
v-hasPermi="['manage:signRecord:add']">新增</el-button>
|
v-hasPermi="['manage:signRecord:add']">新增</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -105,9 +108,9 @@
|
|||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
|
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
|
||||||
v-hasPermi="['manage:signRecord:export']">导出</el-button>
|
v-hasPermi="['manage:signRecord:export']">导出</el-button>
|
||||||
</el-col>
|
</el-col> -->
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
</el-row> -->
|
</el-row>
|
||||||
<div v-if="queryParams.serviceStatus == 'INTENTIONAL_SIGNING'">
|
<div v-if="queryParams.serviceStatus == 'INTENTIONAL_SIGNING'">
|
||||||
<el-table v-loading="loading" :data="signRecordList" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="signRecordList" @selection-change="handleSelectionChange">
|
||||||
<el-table-column label="序号" type="index" width="55" align="center" />
|
<el-table-column label="序号" type="index" width="55" align="center" />
|
||||||
@ -164,7 +167,8 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="queryParams.serviceStatus == 'SERVICE_CENTER'">
|
<div v-if="queryParams.serviceStatus == 'SERVICE_CENTER'">
|
||||||
<el-table v-loading="loading" :data="signRecordList" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="signRecordList" highlight-current-row @current-change="singleElection"
|
||||||
|
@selection-change="handleSelectionChange">
|
||||||
<el-table-column label="序号" type="index" width="55" align="center" />
|
<el-table-column label="序号" type="index" width="55" align="center" />
|
||||||
<el-table-column label="姓名" align="center" prop="patientName" />
|
<el-table-column label="姓名" align="center" prop="patientName" />
|
||||||
<el-table-column label="电话" align="center" prop="patientPhone" width="130" />
|
<el-table-column label="电话" align="center" prop="patientPhone" width="130" />
|
||||||
@ -333,7 +337,8 @@ export default {
|
|||||||
patientId: [
|
patientId: [
|
||||||
{ required: true, message: "患者信息表id不能为空", trigger: "blur" }
|
{ required: true, message: "患者信息表id不能为空", trigger: "blur" }
|
||||||
],
|
],
|
||||||
}
|
},
|
||||||
|
addTaskitem: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -431,6 +436,29 @@ export default {
|
|||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
},
|
},
|
||||||
|
//选中某行
|
||||||
|
singleElection(item) {
|
||||||
|
this.addTaskitem = item
|
||||||
|
},
|
||||||
|
//手动创建任务
|
||||||
|
addTask() {
|
||||||
|
if (this.addTaskitem) {
|
||||||
|
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
|
||||||
|
this.$router.push({
|
||||||
|
path: "/patient/ManuallyCreatingTasks",
|
||||||
|
query: {
|
||||||
|
signPatientRecordId: this.addTaskitem.id,
|
||||||
|
patientId: this.addTaskitem.patientId,
|
||||||
|
patientName: this.addTaskitem.patientName,
|
||||||
|
departmentId: this.addTaskitem.departmentId,
|
||||||
|
departmentName: this.addTaskitem.departmentName,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.error('请先选择一名签约服务中患者');
|
||||||
|
}
|
||||||
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
this.ids = selection.map(item => item.id)
|
this.ids = selection.map(item => item.id)
|
||||||
@ -692,3 +720,13 @@ export default {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
::v-deep .el-table__body tr.current-row>td.el-table__cell {
|
||||||
|
background-color: #409EFF;
|
||||||
|
color: #fff;
|
||||||
|
|
||||||
|
.el-button {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>>
|
||||||
@ -2,7 +2,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="upload">执行</el-button>
|
<el-button type="primary" @click="upload">保存</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-descriptions title="手动创建任务">
|
<el-descriptions title="手动创建任务">
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
@ -167,6 +167,11 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
updata: {
|
updata: {
|
||||||
|
signPatientRecordId: '',
|
||||||
|
patientId: '',
|
||||||
|
patientName: '',
|
||||||
|
departmentId: '',
|
||||||
|
departmentName: '',
|
||||||
routeName: '',
|
routeName: '',
|
||||||
suitRange: '',
|
suitRange: '',
|
||||||
routeNodeList: [],
|
routeNodeList: [],
|
||||||
@ -219,6 +224,11 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.formInline = this.list[0]
|
this.formInline = this.list[0]
|
||||||
|
this.updata.signPatientRecordId = this.$route.query.signPatientRecordId
|
||||||
|
this.updata.patientId = this.$route.query.patientId
|
||||||
|
this.updata.patientName = this.$route.query.patientName
|
||||||
|
this.updata.departmentId = this.$route.query.departmentId
|
||||||
|
this.updata.departmentName = this.$route.query.departmentName
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
addtriggerCondition() {
|
addtriggerCondition() {
|
||||||
@ -274,7 +284,19 @@ export default {
|
|||||||
upload() {
|
upload() {
|
||||||
this.updata.routeNodeList = this.list
|
this.updata.routeNodeList = this.list
|
||||||
signrouteadd(this.updata).then(res => {
|
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);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -164,7 +164,7 @@ export default {
|
|||||||
handleselect(item) {
|
handleselect(item) {
|
||||||
this.handleselectId = item.id
|
this.handleselectId = item.id
|
||||||
this.handleselectName = item.commonScriptName
|
this.handleselectName = item.commonScriptName
|
||||||
this.$emit("on-template", { templateId: item.id, templateName: item.commonScriptName });
|
this.$emit("on-template", { templateId: item.id, templateName: item.commonScriptName, templateContent: item.scriptIntroduction });
|
||||||
this.classificationOpen = false
|
this.classificationOpen = false
|
||||||
},
|
},
|
||||||
classificationOpenfalse() {
|
classificationOpenfalse() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user