This commit is contained in:
2024-07-01 14:53:34 +08:00
parent 34a21daaed
commit 6e754d0c3b
6 changed files with 46 additions and 58 deletions

View File

@ -481,6 +481,7 @@ export default {
this.$router.push({ this.$router.push({
path: "/knowledge/preview", path: "/knowledge/preview",
query: { query: {
path: "/knowledge/script",
id: row.id, id: row.id,
scriptId: row.scriptId scriptId: row.scriptId
}, },
@ -490,6 +491,7 @@ export default {
this.$router.push({ this.$router.push({
path: "/knowledge/Scriptpreview", path: "/knowledge/Scriptpreview",
query: { query: {
path: "/knowledge/script",
id: row.id, id: row.id,
}, },
}); });

View File

@ -114,8 +114,8 @@
<el-table-column label="备注" align="center" prop="packageRemark" /> <el-table-column label="备注" align="center" prop="packageRemark" />
<el-table-column label="是否发布" align="center" prop="whetherRelease"> <el-table-column label="是否发布" align="center" prop="whetherRelease">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.whetherRelease == "0" ? "否" : "" }} <el-tag type="warning" v-if="scope.row.whetherRelease == '0'">未发布</el-tag>
{{ scope.row.whetherRelease == "1" ? "是" : "" }} <el-tag type="success" v-else-if="scope.row.whetherRelease == '1'">已发布</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="病种名称" align="center" prop="diseaseTypeName" /> <el-table-column label="病种名称" align="center" prop="diseaseTypeName" />

View File

@ -281,11 +281,9 @@ export default {
}, },
methods: { methods: {
change(e) { change(e) {
console.log(e);
this.form.termLevel = this.treeOptions?.find( this.form.termLevel = this.treeOptions?.find(
(f) => f.termCode == e (f) => f.termCode == e
)?.termLevel; )?.termLevel;
console.log(this.form.termLevel, "this.form.termLevel");
}, },
// //
submitForms() { submitForms() {
@ -310,11 +308,8 @@ export default {
cancels() { cancels() {
this.opens = false this.opens = false
this.reset(); this.reset();
}, },
// change(e) { // change(e) {
// console.log(e, "78");
// // console.log(this.$refs.cascader)
// // this.form.parentId = e; // // this.form.parentId = e;
// if (e) { // if (e) {
// this.form.parentId = e[e.length - 1]; // this.form.parentId = e[e.length - 1];
@ -324,7 +319,6 @@ export default {
// agencyList().then((res) => { // agencyList().then((res) => {
// // // //
// this.deptOptions = res.data; // this.deptOptions = res.data;
// this.treeOptions = res.data.map((item) => { // this.treeOptions = res.data.map((item) => {
// return { value: item.id, ...item }; // return { value: item.id, ...item };
// }); // });
@ -333,7 +327,6 @@ export default {
// // checkStrictly: true, // // checkStrictly: true,
// // lazyLoad: this.lazyLoad, // // lazyLoad: this.lazyLoad,
// // }; // // };
// // console.log(res.data, "58", this.treeOptions);
// }); // });
// }, // },
// //
@ -345,7 +338,6 @@ export default {
// let sum = 0; // let sum = 0;
// this.DepartmentoList.forEach((item) => { // this.DepartmentoList.forEach((item) => {
// if (item.serviceContentNum) { // if (item.serviceContentNum) {
// console.log(item.countNum);
// sum += item.serviceContentNum; // sum += item.serviceContentNum;
// } // }
// this.count = sum; // this.count = sum;
@ -355,32 +347,23 @@ export default {
}, },
// //
itemdata(item) { itemdata(item) {
if (item) { if (item) {
console.log(item, "9999");
this.queryParams.parentTermCode = item.termCode; this.queryParams.parentTermCode = item.termCode;
this.queryParams.termLevel = 2; this.queryParams.termLevel = 2;
this.bankList = []; this.bankList = [];
this.getList(); this.getList();
this.itemname = item.id; this.itemname = item.id;
} else { } else {
this.itemname = null; this.itemname = null;
this.queryParams.termLevel = 2; this.queryParams.termLevel = 2;
this.queryParams.parentTermCode = ''; this.queryParams.parentTermCode = '';
this.bankList = []; this.bankList = [];
this.getList(); this.getList();
} }
}, },
// //
handleedit() { handleedit() {
this.resetformat(); this.resetformat();
console.log(this.itemname);
this.format.id = this.itemname; this.format.id = this.itemname;
if (this.itemname) { if (this.itemname) {
getBank(this.itemname).then((response) => { getBank(this.itemname).then((response) => {
@ -397,7 +380,6 @@ export default {
handledelete() { handledelete() {
this.resetformat(); this.resetformat();
const id = this.itemname; const id = this.itemname;
console.log(id, "111111111");
this.$modal this.$modal
.confirm("是否确认删除此内容?") .confirm("是否确认删除此内容?")
.then(function () { .then(function () {
@ -425,13 +407,11 @@ export default {
response.rows.forEach((e) => { response.rows.forEach((e) => {
// if(e.termLevel==1){ // if(e.termLevel==1){
// this.DepartmentoList.push(e); // this.DepartmentoList.push(e);
// } // }
// else // else
if (e.termLevel == 2) { if (e.termLevel == 2) {
this.bankList.push(e); this.bankList.push(e);
// this.bankList.push(e); // this.bankList.push(e);
console.log(this.bankList);
this.total = this.bankList.length; this.total = this.bankList.length;
} }
}); });
@ -509,11 +489,11 @@ export default {
this.title = "添加常用术语(知识库)"; this.title = "添加常用术语(知识库)";
}, },
handle(row) { handle(row) {
console.log(row, "row");
// this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => { // this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
this.$router.push({ this.$router.push({
path: "/knowledge/bankSpecialization", path: "/knowledge/bankSpecialization",
query: { query: {
path: "/knowledge/bank",
parentTermCode: row.termCode, parentTermCode: row.termCode,
termLevel: row.termLevel, termLevel: row.termLevel,
termContent: row.termContent, termContent: row.termContent,

View File

@ -302,22 +302,26 @@ export default {
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => { // this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
this.$router.push({ this.$router.push({
path: "/knowledge/addQuestionnaire", path: "/knowledge/addQuestionnaire",
}); query: {
}) path: "/knowledge/question",
},
});
// })
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => { // this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
this.$router.push({ this.$router.push({
path: "/knowledge/addQuestionnaire", path: "/knowledge/addQuestionnaire",
query: { query: {
id: row.id, path: "/knowledge/question",
}, id: row.id,
}); },
}) });
// })
}, },
updateCPage(index, size) { updateCPage(index, size) {
this.queryParams.pageNum = index this.queryParams.pageNum = index

View File

@ -136,28 +136,29 @@ export default {
}, },
// //
goQuestionnaireDetails(row) { goQuestionnaireDetails(row) {
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => { // this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
this.$router.push({ this.$router.push({
path: "/satisfactionSurvey/SatisfactionQuestionnaireDetails", path: "/satisfactionSurvey/SatisfactionQuestionnaireDetails",
query: { query: {
patientQuestionSubmitResultId: row.patientQuestionSubmitResultId, path: "/satisfactionSurvey/satisfactionSurvey",
taskContent: row.taskContent, patientQuestionSubmitResultId: row.patientQuestionSubmitResultId,
taskType: row.taskType, taskContent: row.taskContent,
templateId: row.templateId, taskType: row.taskType,
cardNo: row.cardNo, templateId: row.templateId,
patientName: row.patientName, cardNo: row.cardNo,
patientPhone: row.patientPhone, patientName: row.patientName,
sex: row.sex, patientPhone: row.patientPhone,
routeHandleRemark: row.routeHandleRemark, sex: row.sex,
textRemindContent: row.textRemindContent, routeHandleRemark: row.routeHandleRemark,
birthDate: row.birthDate, textRemindContent: row.textRemindContent,
address: row.address, birthDate: row.birthDate,
patientSource: row.patientSource, address: row.address,
createTime: row.createTime, patientSource: row.patientSource,
age: row.birthDate ? getAge(row.birthDate) : "", createTime: row.createTime,
}, age: row.birthDate ? getAge(row.birthDate) : "",
}); },
}) });
// })
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {

View File

@ -439,6 +439,7 @@ export default {
this.$router.push({ this.$router.push({
path: "/unitconfig/PatientConfigurationVisitRecords", path: "/unitconfig/PatientConfigurationVisitRecords",
query: { query: {
path: "/unitconfig/patientConfiguration",
patientId: row.id, patientId: row.id,
cardNo: row.cardNo, cardNo: row.cardNo,
patientName: row.patientName, patientName: row.patientName,