|
@@ -2,7 +2,12 @@
|
|
|
<!-- 退货 -->
|
|
|
<div style="display: flex">
|
|
|
<el-card style="width: 18%; margin-right: 18px; border-radius: 6px">
|
|
|
- <el-tabs v-model="activeNametree" type="card" @tab-click="tabClick" stretch>
|
|
|
+ <el-tabs
|
|
|
+ v-model="activeNametree"
|
|
|
+ type="card"
|
|
|
+ @tab-click="tabClick"
|
|
|
+ stretch
|
|
|
+ >
|
|
|
<!-- <el-tab-pane label="按分类" name="grp"></el-tab-pane> -->
|
|
|
<el-tab-pane label="按机构" name="org"></el-tab-pane>
|
|
|
</el-tabs>
|
|
@@ -23,10 +28,19 @@
|
|
|
<div class="right-common-box">
|
|
|
<el-form :model="listQuery" ref="queryForm" :inline="true">
|
|
|
<el-form-item label="模板名称" prop="tmplName">
|
|
|
- <el-input v-model="listQuery.tmplName" placeholder="请输入模板名称"></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="listQuery.tmplName"
|
|
|
+ placeholder="请输入模板名称"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="适用手术" prop="oprn">
|
|
|
- <el-select v-model="listQuery.oprn" placeholder="请选择适用手术" clearable filterable remote>
|
|
|
+ <el-select
|
|
|
+ v-model="listQuery.oprn"
|
|
|
+ placeholder="请选择适用手术"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ remote
|
|
|
+ >
|
|
|
<el-option
|
|
|
v-for="item in oprnOptions"
|
|
|
:key="item.value"
|
|
@@ -36,7 +50,13 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="适用科室" prop="dept">
|
|
|
- <el-select v-model="listQuery.dept" placeholder="请选择适用科室" clearable filterable remote>
|
|
|
+ <el-select
|
|
|
+ v-model="listQuery.dept"
|
|
|
+ placeholder="请选择适用科室"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ remote
|
|
|
+ >
|
|
|
<el-option
|
|
|
v-for="item in deptOptions"
|
|
|
:key="item.id"
|
|
@@ -57,7 +77,9 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" @click="getorderData('search')">查询 </el-button>
|
|
|
+ <el-button type="primary" @click="getorderData('search')"
|
|
|
+ >查询
|
|
|
+ </el-button>
|
|
|
<el-button @click="reset">重置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -91,8 +113,13 @@
|
|
|
<el-table-column label="制作时间" prop="crteTime" />
|
|
|
<el-table-column label="操作" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" @click="handleDetail(scope.row)">编辑</el-button>
|
|
|
- <el-button type="text" style="color: red" @click="handleDel(scope.row)"
|
|
|
+ <el-button type="text" @click="handleDetail(scope.row)"
|
|
|
+ >编辑</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ style="color: red"
|
|
|
+ @click="handleDel(scope.row)"
|
|
|
>删除</el-button
|
|
|
>
|
|
|
</template>
|
|
@@ -116,11 +143,11 @@ import { selectSpdList } from "@/api/orderManage-sup/index";
|
|
|
import {
|
|
|
getBoneTemplatePage,
|
|
|
updateBoneTemplate,
|
|
|
- selectDeptList,
|
|
|
+ selectDeptList
|
|
|
} from "@/api/mainrTenance-sup/index";
|
|
|
export default {
|
|
|
components: {
|
|
|
- ylPagination,
|
|
|
+ ylPagination
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -130,7 +157,7 @@ export default {
|
|
|
spdId: null,
|
|
|
defaultProps: {
|
|
|
children: "children",
|
|
|
- label: "spdName",
|
|
|
+ label: "spdName"
|
|
|
},
|
|
|
listQuery: {
|
|
|
current: 1,
|
|
@@ -141,11 +168,11 @@ export default {
|
|
|
lstUpdUsrName: [],
|
|
|
dateStart: "",
|
|
|
dateEnd: "",
|
|
|
- spdId: "",
|
|
|
+ spdId: ""
|
|
|
},
|
|
|
stasOptions: [
|
|
|
{ value: "A", lable: "待确认" },
|
|
|
- { value: "B", lable: "已确认" },
|
|
|
+ { value: "B", lable: "已确认" }
|
|
|
],
|
|
|
listLoading: false,
|
|
|
list: [],
|
|
@@ -153,10 +180,10 @@ export default {
|
|
|
oprnOptions: [
|
|
|
{ value: "头部手术", label: "头部手术" },
|
|
|
{ value: "颈部手术", label: "颈部手术" },
|
|
|
- { value: "骨科手术", label: "骨科手术" },
|
|
|
+ { value: "骨科手术", label: "骨科手术" }
|
|
|
],
|
|
|
deptOptions: [],
|
|
|
- routespdId: "",
|
|
|
+ routespdId: ""
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -176,7 +203,7 @@ export default {
|
|
|
// this.listLoading = false;
|
|
|
// });
|
|
|
}
|
|
|
- selectDeptList({ deptName: "" }).then((res) => {
|
|
|
+ selectDeptList({ deptName: "" }).then(res => {
|
|
|
this.deptOptions = res.data;
|
|
|
});
|
|
|
},
|
|
@@ -197,20 +224,20 @@ export default {
|
|
|
this.spdId = data.spdId;
|
|
|
this.listQuery.spdId = this.spdId;
|
|
|
getBoneTemplatePage(this.listQuery)
|
|
|
- .then((res) => {
|
|
|
+ .then(res => {
|
|
|
this.list = res.data.records;
|
|
|
this.total = res.data.total;
|
|
|
this.listLoading = false;
|
|
|
this.btnShow = true;
|
|
|
- this.list.forEach((v) => {
|
|
|
- this.deptOptions.forEach((i) => {
|
|
|
+ this.list.forEach(v => {
|
|
|
+ this.deptOptions.forEach(i => {
|
|
|
if (v.dept == i.id) {
|
|
|
v.dept = i.deptName;
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
- .catch((err) => {
|
|
|
+ .catch(err => {
|
|
|
this.listLoading = false;
|
|
|
});
|
|
|
},
|
|
@@ -218,11 +245,11 @@ export default {
|
|
|
getData(type) {
|
|
|
this.data = [];
|
|
|
selectSpdList()
|
|
|
- .then((res) => {
|
|
|
+ .then(res => {
|
|
|
this.listQuery.spdId = res.data[0].spdId;
|
|
|
this.data = res.data;
|
|
|
})
|
|
|
- .catch((err) => {});
|
|
|
+ .catch(err => {});
|
|
|
},
|
|
|
getorderData(type) {
|
|
|
if (type == "search") {
|
|
@@ -232,19 +259,19 @@ export default {
|
|
|
this.listQuery.dateEnd = this.listQuery.lstUpdUsrName[1];
|
|
|
this.listLoading = true;
|
|
|
getBoneTemplatePage(this.listQuery)
|
|
|
- .then((res) => {
|
|
|
+ .then(res => {
|
|
|
this.list = res.data.records;
|
|
|
this.total = res.data.total;
|
|
|
this.listLoading = false;
|
|
|
- this.list.forEach((v) => {
|
|
|
- this.deptOptions.forEach((i) => {
|
|
|
- if (v.dept == i.id) {
|
|
|
- v.dept = i.deptName;
|
|
|
- }
|
|
|
- });
|
|
|
- });
|
|
|
+ // this.list.forEach(v => {
|
|
|
+ // this.deptOptions.forEach(i => {
|
|
|
+ // if (v.dept == i.id) {
|
|
|
+ // v.dept = i.deptName;
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // });
|
|
|
})
|
|
|
- .catch((err) => {
|
|
|
+ .catch(err => {
|
|
|
this.listLoading = false;
|
|
|
});
|
|
|
},
|
|
@@ -270,8 +297,8 @@ export default {
|
|
|
dept: row.dept,
|
|
|
id: row.id,
|
|
|
crteUsrName: row.crteUsrName,
|
|
|
- tmplNo: row.tmplNo,
|
|
|
- },
|
|
|
+ tmplNo: row.tmplNo
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
handleAdd() {
|
|
@@ -283,8 +310,8 @@ export default {
|
|
|
this.$router.push({
|
|
|
name: "indexDetail",
|
|
|
query: {
|
|
|
- spdId: this.routespdId,
|
|
|
- },
|
|
|
+ spdId: this.routespdId
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
// 删除
|
|
@@ -292,22 +319,22 @@ export default {
|
|
|
this.$confirm("确认删除", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
+ type: "warning"
|
|
|
})
|
|
|
.then(() => {
|
|
|
updateBoneTemplate({ tmplNo: row.tmplNo, splerId: row.splerId })
|
|
|
- .then((response) => {
|
|
|
+ .then(response => {
|
|
|
this.$message({
|
|
|
message: "删除成功",
|
|
|
- type: "success",
|
|
|
+ type: "success"
|
|
|
});
|
|
|
this.getorderData();
|
|
|
})
|
|
|
- .catch((err) => {});
|
|
|
+ .catch(err => {});
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
- },
|
|
|
- },
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
|