Commit 4aa84ad4 by 唐玉峰

临床

parent 187e6004
...@@ -23,10 +23,11 @@ ...@@ -23,10 +23,11 @@
<el-table-column align="center" type="index" width="50" :index="(currentPage - 1) * pageSize + 1" fixed></el-table-column> <el-table-column align="center" type="index" width="50" :index="(currentPage - 1) * pageSize + 1" fixed></el-table-column>
<el-table-column :prop="item.prop" min-width="160" :label="item.label" v-for="item in columnList" :key="item.label" show-overflow-tooltip> <el-table-column :prop="item.prop" min-width="160" :label="item.label" v-for="item in columnList" :key="item.label" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="240" fixed="right"> <el-table-column label="操作" width="300" fixed="right">
<template #default="scope"> <template #default="scope">
<el-button size="mini" type="success" @click="editbtn(scope.row)">操作方案</el-button> <el-button size="mini" type="success" @click="editbtn(scope.row)">操作方案</el-button>
<el-button size="mini" type="primary" style="background-color: #0283bb" @click="edit(scope.row)">编辑</el-button> <el-button size="mini" type="primary" style="background-color: #0283bb" @click="edit(scope.row, 1)">复制</el-button>
<el-button size="mini" type="primary" style="background-color: #0283bb" @click="edit(scope.row, 2)">编辑</el-button>
<el-button size="mini" type="danger" @click="delbtn(scope.row)">删除</el-button> <el-button size="mini" type="danger" @click="delbtn(scope.row)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
...@@ -50,7 +51,7 @@ ...@@ -50,7 +51,7 @@
class="relationMapping_rightdiaglogbox" class="relationMapping_rightdiaglogbox"
max-height="600px" max-height="600px"
width="30%" width="30%"
:title="form.id ? '编辑' : '新增'" :title="type == 1 ? '复制' : form.id ? '编辑' : '新增'"
> >
<el-form size="mini" :model="form" ref="ruleForm" label-width="100px" class="demo-ruleForm"> <el-form size="mini" :model="form" ref="ruleForm" label-width="100px" class="demo-ruleForm">
<el-form-item <el-form-item
...@@ -178,6 +179,7 @@ export default { ...@@ -178,6 +179,7 @@ export default {
max_stay: 0, max_stay: 0,
pin_yin: "", pin_yin: "",
}, },
type: 0,
}; };
}, },
mounted() { mounted() {
...@@ -211,20 +213,31 @@ export default { ...@@ -211,20 +213,31 @@ export default {
this.visible = true; this.visible = true;
this.$refs.ruleForm.resetFields(); this.$refs.ruleForm.resetFields();
}, },
edit(row) { edit(row, i) {
this.visible = true; this.visible = true;
this.type = i;
this.form = { this.form = {
id: row.id, id: row.id,
clinical_route_name: row.clinical_route_name, clinical_route_name: i == 1 ? "" : row.clinical_route_name,
clinical_route_foldername: row.clinical_route_foldername, clinical_route_foldername: i == 1 ? "" : row.clinical_route_foldername,
applicable_objects: row.applicable_objects, applicable_objects: i == 1 ? "" : row.applicable_objects,
hospital_stay: row.hospital_stay, hospital_stay: i == 1 ? "" : row.hospital_stay,
min_stay: row.min_stay, min_stay: i == 1 ? 0 : row.min_stay,
max_stay: row.max_stay, max_stay: i == 1 ? 0 : row.max_stay,
pin_yin: row.pin_yin, pin_yin: i == 1 ? "" : row.pin_yin,
}; };
}, },
resetForm() { resetForm() {
this.form = {
id: 0,
// clinical_route_name: "",
// clinical_route_foldername: "",
// applicable_objects: "",
// hospital_stay: "",
// min_stay: 0,
// max_stay: 0,
// pin_yin: "",
};
this.$refs.ruleForm.resetFields(); this.$refs.ruleForm.resetFields();
this.visible = false; this.visible = false;
}, },
...@@ -255,10 +268,15 @@ export default { ...@@ -255,10 +268,15 @@ export default {
.catch((e) => {}); .catch((e) => {});
}, },
Updatepost(infoParams) { Updatepost(infoParams) {
http.post(`/ClinicalRoute/ClinicalRoute/Update?ApplyDoctor=${this.$route.query.ApplyDoctor ? this.$route.query.ApplyDoctor : 0}`, infoParams) http.post(
`${this.type == 1 ? "/ClinicalRoute/ClinicalRoute/CopyRoute" : "/ClinicalRoute/ClinicalRoute/Update"}?ApplyDoctor=${
this.$route.query.ApplyDoctor ? this.$route.query.ApplyDoctor : 0
}`,
infoParams
)
.then((data) => { .then((data) => {
Message.success({ Message.success({
message: `编辑成功`, message: `${this.type == 1 ? "复制成功" : "编辑成功"}`,
type: "success", type: "success",
}); });
this.form.id = 0; this.form.id = 0;
......
...@@ -37,12 +37,13 @@ ...@@ -37,12 +37,13 @@
</el-radio-group> </el-radio-group>
<div class=""> <div class="">
<el-button size="mini" type="primary" @click="saveSort(1, lefttableData, '/ClinicalRoute/ClinicalRoute/UpdateMapCRAdviceList')"
>保存排序</el-button
>
<el-button size="mini" type="primary" @click="leftadd()">添加</el-button> <el-button size="mini" type="primary" @click="leftadd()">添加</el-button>
<el-button size="mini" type="primary" @click="edit(currentRow)">编辑</el-button> <el-button size="mini" type="primary" @click="edit(currentRow, 1)">复制</el-button>
<el-button size="mini" type="primary" @click="edit(currentRow, 2)">编辑</el-button>
<el-button size="mini" type="danger" @click="del(currentRow)">删除</el-button> <el-button size="mini" type="danger" @click="del(currentRow)">删除</el-button>
<el-button size="mini" type="success" @click="saveSort(1, lefttableData, '/ClinicalRoute/ClinicalRoute/UpdateMapCRAdviceList')"
>保存排序</el-button
>
</div> </div>
</div> </div>
<div class="relationMapping_tablebox_lefttable_tablebox"> <div class="relationMapping_tablebox_lefttable_tablebox">
...@@ -78,11 +79,11 @@ ...@@ -78,11 +79,11 @@
<span></span> <span></span>
<div style="color: red" v-show="show">有未保存排序内容!</div> <div style="color: red" v-show="show">有未保存排序内容!</div>
<div class=""> <div class="">
<el-button size="mini" type="primary" @click="saveSort(2, righttableData, '/ClinicalRoute/ClinicalRoute/UpdateMapCRAProject')"
>保存排序</el-button
>
<el-button size="mini" type="primary" @click="rightadd()">添加</el-button> <el-button size="mini" type="primary" @click="rightadd()">添加</el-button>
<el-button size="mini" type="danger" @click="rightdelarr()">删除</el-button> <el-button size="mini" type="danger" @click="rightdelarr()">删除</el-button>
<el-button size="mini" type="success" @click="saveSort(2, righttableData, '/ClinicalRoute/ClinicalRoute/UpdateMapCRAProject')"
>保存排序</el-button
>
</div> </div>
</div> </div>
<div class="relationMapping_tablebox_righttable_tablebox"> <div class="relationMapping_tablebox_righttable_tablebox">
...@@ -110,7 +111,7 @@ ...@@ -110,7 +111,7 @@
class="relationMapping_rightdiaglogbox" class="relationMapping_rightdiaglogbox"
max-height="600px" max-height="600px"
width="30%" width="30%"
:title="ruleForm.id > 0 ? '编辑' : '新增'" :title="type == 1 ? '复制' : '编辑'"
> >
<el-form size="mini" :model="ruleForm" ref="ruleFormRef" label-width="100px" class="demo-ruleForm"> <el-form size="mini" :model="ruleForm" ref="ruleFormRef" label-width="100px" class="demo-ruleForm">
<el-form-item <el-form-item
...@@ -360,6 +361,7 @@ export default { ...@@ -360,6 +361,7 @@ export default {
leftaddtable: [], leftaddtable: [],
}, },
currentRow: null, currentRow: null,
type: 0,
}; };
}, },
mounted() { mounted() {
...@@ -411,9 +413,10 @@ export default { ...@@ -411,9 +413,10 @@ export default {
this.visible = false; this.visible = false;
}, },
//左侧点击编辑 //左侧点击编辑
edit(row) { edit(row, i) {
if (row) { if (row) {
this.visible = true; this.visible = true;
this.type = i;
this.ruleForm = { this.ruleForm = {
id: row.id, id: row.id,
type: this.radio, type: this.radio,
...@@ -465,12 +468,14 @@ export default { ...@@ -465,12 +468,14 @@ export default {
if (valid) { if (valid) {
let param = this.ruleForm; let param = this.ruleForm;
http.post( http.post(
`/ClinicalRoute/ClinicalRoute/UpdateMapCRAdvice?ApplyDoctor=${this.$route.query.ApplyDoctor ? this.$route.query.ApplyDoctor : 0}`, `${this.type == 1 ? "/ClinicalRoute/ClinicalRoute/CopyMapCRAdvice" : "/ClinicalRoute/ClinicalRoute/UpdateMapCRAdvice"}?ApplyDoctor=${
this.$route.query.ApplyDoctor ? this.$route.query.ApplyDoctor : 0
}`,
param param
) )
.then((data) => { .then((data) => {
Message.success({ Message.success({
message: `${this.ruleForm.id ? "编辑成功" : "添加成功"}`, message: `${this.type == 1 ? "复制成功" : "编辑成功"}`,
type: "success", type: "success",
}); });
this.visible = false; this.visible = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment