修改
This commit is contained in:
parent
c419276587
commit
df0038df44
@ -546,15 +546,16 @@ export default {
|
||||
this.mentlist();
|
||||
},
|
||||
methods: {
|
||||
getSuppliers(e) {
|
||||
console.log(e);
|
||||
},
|
||||
blurInput(val) {
|
||||
// this.servicewaycontentList.serviceFrequencyText=val
|
||||
},
|
||||
blurInputs() {
|
||||
this.keyTable = Math.random();
|
||||
},
|
||||
// getSuppliers(e) {
|
||||
// console.log(e);
|
||||
// },
|
||||
// blurInput(val) {
|
||||
// // this.servicewaycontentList.serviceFrequencyText=val
|
||||
// },
|
||||
// blurInputs() {
|
||||
// this.keyTable = Math.random();
|
||||
// },
|
||||
// 选择文本
|
||||
textlist(e) {
|
||||
if (e == true) {
|
||||
this.form.serviceFrequencyStart = null;
|
||||
@ -568,6 +569,7 @@ export default {
|
||||
}
|
||||
this.DIGIT = false;
|
||||
},
|
||||
// 选择数字
|
||||
DIGITlist(e) {
|
||||
console.log(e, "5");
|
||||
if (e == true) {
|
||||
@ -586,10 +588,10 @@ export default {
|
||||
// 左侧服务方式提交
|
||||
submitForms() {
|
||||
// this.form.serviceFrequencyType=this.DIGIT
|
||||
// console.log(this.itenname,'5252')
|
||||
// console.log(this.format,'5252')
|
||||
this.$refs["form"].validate((valid) => {
|
||||
if (valid) {
|
||||
console.log(this.format);
|
||||
// console.log(this.format);
|
||||
if (this.format.id) {
|
||||
editServiceWay(this.format).then((response) => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
@ -625,10 +627,6 @@ export default {
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
change(e) {
|
||||
console.log(e);
|
||||
// this.form.serviceWayId=e
|
||||
},
|
||||
// 左侧科室
|
||||
itemdata(item) {
|
||||
if (item) {
|
||||
@ -668,21 +666,6 @@ export default {
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
// }
|
||||
// if(e.serviceWayFrequencyList[0].serviceFrequencyType == 'DIGIT'){
|
||||
// e.serviceFrequencyText = JSON.parse(e.serviceWayFrequencyList[0].serviceFrequencyStart) +
|
||||
// '~' +
|
||||
// JSON.parse(e.serviceWayFrequencyList[0].serviceFrequencyEnd)
|
||||
// }
|
||||
|
||||
// e.serviceWayFrequencyList[0].forEach(el=>{
|
||||
// console.log(el)
|
||||
// // this.serviceFrequencyText = el.serviceFrequencyText;
|
||||
|
||||
// })
|
||||
// this.serviceFrequencyText= this.servicewaycontentList[0].serviceFrequencyText
|
||||
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
@ -743,6 +726,7 @@ export default {
|
||||
this.form.serviceWayId = this.itemname;
|
||||
console.log(this.form, " this.form");
|
||||
}
|
||||
|
||||
// else if (this.itemname == null) {
|
||||
// this.form.serviceWayId = "请选择服务方式"
|
||||
// }
|
||||
@ -890,8 +874,10 @@ export default {
|
||||
},
|
||||
// },
|
||||
handleUpdateserve() {
|
||||
|
||||
this.titles = "新增服务方式";
|
||||
this.format.serviceWayName = "";
|
||||
this.format.id=''
|
||||
this.opens = true;
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
|
||||
@ -671,18 +671,21 @@ export default {
|
||||
this.infolist();
|
||||
},
|
||||
methods: {
|
||||
// 节点类型
|
||||
info() {
|
||||
var dictType = "node_type";
|
||||
getAgencytype(dictType).then((res) => {
|
||||
this.nodeTypeoptions = res.data;
|
||||
});
|
||||
},
|
||||
// 上级机构
|
||||
infolist() {
|
||||
var dictType = "agency_category_manage_level";
|
||||
getAgencytype(dictType).then((res) => {
|
||||
this.options = res.data;
|
||||
});
|
||||
},
|
||||
// 删除机构
|
||||
renderContent(h, { node, data, store }) {
|
||||
return (
|
||||
<span class="custom-tree-node">
|
||||
@ -718,15 +721,7 @@ export default {
|
||||
})
|
||||
.catch(() => {});
|
||||
},
|
||||
// lazyLoad(node, resolve) {
|
||||
// // 这儿过来了吗对
|
||||
// // console.log(node, "children", this.treeOptions);
|
||||
// // const id = node.level === 0 ? 0 : node.data.id;
|
||||
// // setTimeout(() => {
|
||||
// // resolve(this.treeOptions);
|
||||
// // // this.$off("load-data", this.lazyLoad);
|
||||
// // }, 300);
|
||||
// },
|
||||
// 机构树
|
||||
gettreelist() {
|
||||
agencyList().then((res) => {
|
||||
// 接口请求
|
||||
@ -743,6 +738,7 @@ export default {
|
||||
console.log(res.data, "58", this.treeOptions);
|
||||
});
|
||||
},
|
||||
// 卫生机构类别
|
||||
gettreelistitem() {
|
||||
agencyCategoryList().then((res) => {
|
||||
// 接口请求
|
||||
@ -1099,4 +1095,5 @@ export default {
|
||||
.el-cascader .el-input input::-webkit-input-placeholder {
|
||||
color: #686a6d;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
@ -321,6 +321,7 @@ export default {
|
||||
this.gettreelistitem();
|
||||
},
|
||||
methods: {
|
||||
// 父级类别
|
||||
gettreelistitem() {
|
||||
agencyCategoryList().then((res) => {
|
||||
// 接口请求
|
||||
|
||||
@ -738,6 +738,7 @@ export default {
|
||||
this.infocompare();
|
||||
},
|
||||
methods: {
|
||||
// 上级科室
|
||||
changeparentDepartment(e) {
|
||||
this.form.parentDepartmentId = e;
|
||||
console.log(e);
|
||||
@ -751,47 +752,52 @@ export default {
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 细分类别
|
||||
getinfolist() {
|
||||
listSubdivision().then((res) => {
|
||||
this.optionsubdivisionCategory = res.rows;
|
||||
});
|
||||
},
|
||||
// 上级科室
|
||||
getinfo() {
|
||||
getDepartmentList().then((res) => {
|
||||
console.log(res, "666");
|
||||
this.optionsparentDepartment = res.data;
|
||||
});
|
||||
},
|
||||
// 节点类型
|
||||
info() {
|
||||
var dictType = "department_node_type";
|
||||
getAgencytype(dictType).then((res) => {
|
||||
this.nodeTypeoptions = res.data;
|
||||
});
|
||||
},
|
||||
// 科室类型
|
||||
infodepartment() {
|
||||
var dictType = "department_type";
|
||||
getAgencytype(dictType).then((res) => {
|
||||
this.departmentoptions = res.data;
|
||||
});
|
||||
},
|
||||
// 服务类别
|
||||
infolist() {
|
||||
var dictType = "provide_service_category";
|
||||
getAgencytype(dictType).then((res) => {
|
||||
this.options = res.data;
|
||||
});
|
||||
},
|
||||
// 所属机构
|
||||
change(e) {
|
||||
console.log(e, "78");
|
||||
this.form.agencyId = e[e.length - 1];
|
||||
const arr = this.$refs["cascader"].getCheckedNodes()[0].pathLabels;
|
||||
this.form.agencyName = arr.slice(-1).join(",");
|
||||
|
||||
console.log(this.form.agencyName);
|
||||
},
|
||||
|
||||
changeagencyCategoryId(e) {
|
||||
this.form.parentDepartmentId = e[e.length - 1];
|
||||
},
|
||||
// changeagencyCategoryId(e) {
|
||||
// this.form.parentDepartmentId = e[e.length - 1];
|
||||
// },
|
||||
// gettreelistitem() {
|
||||
// agencyCategoryList().then((res) => {
|
||||
// // 接口请求
|
||||
@ -800,6 +806,7 @@ export default {
|
||||
// });
|
||||
// });
|
||||
// },
|
||||
// 所属机构
|
||||
gettreelist() {
|
||||
agencyList().then((res) => {
|
||||
// 接口请求
|
||||
@ -845,12 +852,6 @@ export default {
|
||||
handleFileUploadProgress(event, file, fileList) {
|
||||
this.upload.isUploading = true;
|
||||
},
|
||||
// /** 查询部门下拉树结构 */
|
||||
// getTreeselect() {
|
||||
// agencyList().then((response) => {
|
||||
// this.deptOptions = response.data;
|
||||
// });
|
||||
// },
|
||||
|
||||
// 筛选节点
|
||||
filterNode(value, data) {
|
||||
|
||||
@ -1096,7 +1096,6 @@ export default {
|
||||
this.$refs.multipleTable.toggleRowSelection(selection.pop()); // 设置选择项
|
||||
}
|
||||
});
|
||||
|
||||
this.nowSelectData = selection;
|
||||
if(selection.length>0){
|
||||
this.formlist.agencyId = selection[0].agencyId;
|
||||
@ -1172,20 +1171,20 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
// 方法
|
||||
handleRemoveTabList(isNeedArr, originalArr) {
|
||||
if (isNeedArr.length && originalArr.length) {
|
||||
for (let i = 0; i < isNeedArr.length; i++) {
|
||||
for (let k = 0; k < originalArr.length; k++) {
|
||||
// 注意,nickName为唯一值,如果不为唯一值那么会出错
|
||||
if (isNeedArr[i]["id"] === originalArr[k]["id"]) {
|
||||
console.log("-----------1111");
|
||||
originalArr.splice(k, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
// // 方法
|
||||
// handleRemoveTabList(isNeedArr, originalArr) {
|
||||
// if (isNeedArr.length && originalArr.length) {
|
||||
// for (let i = 0; i < isNeedArr.length; i++) {
|
||||
// for (let k = 0; k < originalArr.length; k++) {
|
||||
// // 注意,nickName为唯一值,如果不为唯一值那么会出错
|
||||
// if (isNeedArr[i]["id"] === originalArr[k]["id"]) {
|
||||
// console.log("-----------1111");
|
||||
// originalArr.splice(k, 1);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
/** 查询用户列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
@ -1321,6 +1320,7 @@ export default {
|
||||
this.totalag = res.total;
|
||||
});
|
||||
},
|
||||
// 科室右边
|
||||
infodep2() {
|
||||
getBelongDepartment(this.userName).then((res) => {
|
||||
this.tableDatadep2 = res.rows;
|
||||
@ -1344,6 +1344,7 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
// 点击设置机构
|
||||
handleinnerVisibleshow(row) {
|
||||
console.log(row);
|
||||
this.title = "设置机构";
|
||||
@ -1366,6 +1367,7 @@ export default {
|
||||
// this.belongAgencyNum = res.data.belongAgencyNum;
|
||||
// });
|
||||
},
|
||||
// 点击设置科室
|
||||
handleinnerVisibleshowdep(row) {
|
||||
this.reset();
|
||||
console.log(row);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user