专病路径

This commit is contained in:
shidongli 2024-07-18 16:32:26 +08:00
parent c375087579
commit bc5952be22

View File

@ -32,7 +32,6 @@
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">新增主路径</el-button>
<el-button type="warning" plain icon="el-icon-upload2" size="mini" @click="handleUpload">导入</el-button>
</el-col>
<!-- <el-col :span="1.5">
@ -140,14 +139,6 @@
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
<!-- 导入弹框 -->
<el-dialog title="" :visible.sync="innerexport" width="1000px" append-to-body :before-close="exportcancel">
<specialexport @submit="submit" ref="childComponent"></specialexport>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitexport"> </el-button>
<el-button @click="innerexport = false"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
@ -159,16 +150,12 @@ import {
servicepackageinfo
} from '@/api/manage/signRecord.js'
import DepartmentList from '../../components/DepartmentList.vue'
import specialexport from "@/views/manage/components/specialexport.vue"
import { copyBaselnfo } from "@/api/system/exportinfo";
export default {
name: "SpecialDiseaseRoute",
components: { DepartmentList,specialexport },
components: { DepartmentList },
data() {
return {
exportlist: [],
innerexport: false,
maxTableHeight: undefined,
//
loading: true,
@ -253,41 +240,6 @@ export default {
watch: {
},
methods: {
submit(e) {
this.exportlist = e
},
//
submitexport() {
var obj = {
departmentId: this.queryParams.departmentId,
departmentName: this.departmentName,
type: 'OPERATOR',
sourceTemplateIds: this.exportlist,
}
copyBaselnfo(obj).then(response => {
this.$modal.msgSuccess("导入成功");
this.innerexport = false
this.$refs.DepartmentList.Departmentlist()
this.getList();
});
},
//
handleUpload() {
if (this.queryParams.departmentId) {
this.innerexport = true
if (this.exportlist.length > 0) {
this.$refs.childComponent.resetTable();
}
} else {
this.$modal.msgError("请先选择左侧科室");
}
},
//
exportcancel() {
this.innerexport = false
},
//
clickdepartment(item) {
this.queryParams.hospitalAgencyId = item.hospitalAgencyId