-
+ >
-
+
-
+ >
-
+
-
+ >
-
+
-
+ >
-
+
-
-
+
+
+ -->
-
+ >
-
+
-
+ >
-
+
-
+ >
-
+
-
+ @click.native="clickcode2(item)"
+ >
@@ -458,7 +353,7 @@
placeholder="请输入社区经度"
maxlength="20"
style="width: 200px"
- type="number"
+ type="number"
oninput=" if(value.length>10){value=value.slice(0,20)}"
/>
@@ -468,7 +363,7 @@
placeholder="请输入社区纬度"
maxlength="20"
style="width: 200px"
- type="number"
+ type="number"
oninput=" if(value.length>10){value=value.slice(0,20)}"
/>
@@ -490,7 +385,7 @@ import {
updateCommunityInfo,
FirstLevels,
SecondaryLevelInfo,
- SubordinateRegions,
+ SubordinateRegions
} from "@/api/system/communityInfo";
export default {
@@ -518,10 +413,10 @@ export default {
{
provinceName: null,
cityName: null,
- streetName: null,
- },
- ],
- },
+ streetName: null
+ }
+ ]
+ }
],
// 所属区域
arealist: [],
@@ -547,7 +442,7 @@ export default {
city: "",
area: "",
areaCode: "",
- province: "",
+ province: ""
// areaCode: null,
// communityCode: null,
// communityName: null,
@@ -557,7 +452,7 @@ export default {
getProvincequeryParams: {
pageNum: 1,
pageSize: 10,
- pageNum: 1,
+ pageNum: 1
// pageSize: 10,
// searchValue: null,
// createBy: null,
@@ -573,7 +468,7 @@ export default {
getProvincequeryParams2: {
pageNum: 1,
pageSize: 10,
- pageNum: 1,
+ pageNum: 1
// pageSize: 10,
// searchValue: null,
// createBy: null,
@@ -593,12 +488,12 @@ export default {
areaCode: {
required: true,
message: "所属区域不能为空",
- trigger: "blur",
+ trigger: "blur"
},
communityName: {
required: true,
message: "社区名称不能为空",
- trigger: "blur",
+ trigger: "blur"
},
// communityLongitude: {
// required: true,
@@ -614,13 +509,13 @@ export default {
areaCode: {
required: true,
message: "所属区域不能为空",
- trigger: "blur",
+ trigger: "blur"
},
communityName: {
required: true,
message: "社区名称不能为空",
- trigger: "blur",
- },
+ trigger: "blur"
+ }
// communityLongitude: {
// required: true,
// message: "经度不能为空",
@@ -631,8 +526,8 @@ export default {
// message: "纬度不能为空",
// trigger: "blur",
// },
- },
- },
+ }
+ }
};
},
created() {
@@ -640,30 +535,22 @@ export default {
this.Provincelist();
},
methods: {
- clickcode2(item) {
+ clickcode2(item) {
this.form.areaCode = Number(item.areaCode);
- console.log(this.form);
- this.$forceUpdate()
-
+ this.$forceUpdate();
},
clickcode(item, index) {
- console.log(item);
this.form.communityInfoList[index].areaCode = Number(item.areaCode);
// this.form.communityInfoList[index].areaCode = Number(this.form.communityInfoList[index].areaCode);
-
- console.log(this.form);
},
// 查询省事件
province(item) {
// this.form.xxx[index].code=''
- console.log(item);
this.queryParams.city = "";
this.queryParams.area = "";
this.queryParams.areaCode = "";
- SecondaryLevelInfo(item.id).then((res) => {
- console.log(res);
+ SecondaryLevelInfo(item.id).then(res => {
// this.SecondaryLevelInfolist = res.data;
- // console.log(this.SecondaryLevelInfolist);
this.citylist = res.data;
});
},
@@ -672,35 +559,27 @@ export default {
this.form.communityInfoList[index].city = "";
this.form.communityInfoList[index].area = "";
this.form.communityInfoList[index].areaCode = "";
- console.log(item);
- SecondaryLevelInfo(item.id).then((res) => {
- console.log(res);
+ SecondaryLevelInfo(item.id).then(res => {
// this.SecondaryLevelInfolist = res.data;
- // console.log(this.SecondaryLevelInfolist);
this.citylist = res.data;
});
},
// 修改
province3(item) {
// this.form.xxx[index].code=''
- console.log(item);
this.form.city = "";
this.form.area = "";
this.form.code = "";
- SecondaryLevelInfo(item.id).then((res) => {
- console.log(res);
+ SecondaryLevelInfo(item.id).then(res => {
// this.SecondaryLevelInfolist = res.data;
- // console.log(this.SecondaryLevelInfolist);
this.citylist = res.data;
});
},
// 点击市
clickcity(item) {
- console.log(item);
- SecondaryLevelInfo(item.id).then((res) => {
+ SecondaryLevelInfo(item.id).then(res => {
this.queryParams.area = "";
this.queryParams.areaCode = "";
- console.log(res);
this.arealists = res.data;
});
},
@@ -712,19 +591,15 @@ export default {
// this.value3 = "";
this.form.communityInfoList[index].area = "";
this.form.communityInfoList[index].areaCode = "";
- console.log(item);
- SecondaryLevelInfo(item.id).then((res) => {
- console.log(res);
+ SecondaryLevelInfo(item.id).then(res => {
this.arealists = res.data;
});
},
// 修改
clickcity3(item) {
- console.log(item);
- SecondaryLevelInfo(item.id).then((res) => {
+ SecondaryLevelInfo(item.id).then(res => {
this.form.area = "";
- this.form.code = "";
- console.log(res);
+ this.form.code = "";
this.arealists = res.data;
});
},
@@ -733,9 +608,7 @@ export default {
this.queryParams.areaCode = "";
// this.queryParams.areaCode = "";
// this.value3 = "";
- console.log(item);
- SecondaryLevelInfo(item.id).then((res) => {
- console.log(res);
+ SecondaryLevelInfo(item.id).then(res => {
this.streetlist = res.data;
});
},
@@ -745,64 +618,51 @@ export default {
// this.value3 = "";
this.form.communityInfoList[index].areaCode = "";
- console.log(item);
- SecondaryLevelInfo(item.id).then((res) => {
- console.log(res);
+ SecondaryLevelInfo(item.id).then(res => {
this.streetlist = res.data;
});
},
clickarea3(item) {
- this.form.code = "";
+ this.form.code = "";
// this.queryParams.areaCode = "";
// this.value3 = "";
- console.log(item);
- SecondaryLevelInfo(item.id).then((res) => {
- console.log(res);
+ SecondaryLevelInfo(item.id).then(res => {
this.streetlist = res.data;
});
},
//点击街道
clickstreet(item) {
this.form.areaCode = item.areaCode;
- console.log(this.form);
},
// clickstreet3(item) {
// this.form.areaCode = item.areaCode;
- // // console.log(this.queryParams);
// },
// 所属省下拉框
loadMore() {
- console.log("1");
var a = Math.ceil(this.total2 / 10);
- console.log(this.arealist.length);
if (this.arealist.length + 1 >= this.total2) {
} else {
if (this.getProvincequeryParams.pageNum >= a) {
} else {
this.getProvincequeryParams.pageNum++;
- FirstLevels(this.getProvincequeryParams).then((res) => {
- console.log(res);
- res.rows.forEach((e) => {
+ FirstLevels(this.getProvincequeryParams).then(res => {
+ res.rows.forEach(e => {
this.arealist.push(e);
- console.log(this.arealist);
});
});
}
}
},
Provincelist() {
- FirstLevels(this.getProvincequeryParams).then((res) => {
- console.log(res);
+ FirstLevels(this.getProvincequeryParams).then(res => {
this.arealist = res.data;
this.total2 = res.total;
- console.log(this.arealist);
});
},
//删除delcommunity
delcommunity(index) {
this.form.communityInfoList.splice(index, 1);
- console.log(this.form.communityInfoList);
},
//添加addcommunity
addcommunity() {
@@ -811,7 +671,7 @@ export default {
communityCode: "",
communityName: "",
communityLongitude: "",
- communityLatitude: "",
+ communityLatitude: ""
// diseaseName: "",
// description: "",
// sort: "",
@@ -852,16 +712,16 @@ export default {
communityCode: "",
communityName: "",
communityLongitude: "",
- communityLatitude: "",
- },
- ],
+ communityLatitude: ""
+ }
+ ]
};
this.resetForm("form");
},
/** 搜索按钮操作 */
liststationinfo() {
- listCommunityInfo(this.queryParams).then((response) => {
- response.rows.forEach((e) => {
+ listCommunityInfo(this.queryParams).then(response => {
+ response.rows.forEach(e => {
if (e.sysAreaVOList == []) {
} else if (e.sysAreaVOList == null) {
} else if (!e.sysAreaVOList) {
@@ -924,13 +784,13 @@ export default {
area: null,
areaCode: null,
areaName: null,
- areaLevel: null,
+ areaLevel: null
};
this.handleQuery();
},
// 多选框选中数据
handleSelectionChange(selection) {
- this.ids = selection.map((item) => item.id);
+ this.ids = selection.map(item => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
@@ -944,16 +804,13 @@ export default {
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
- console.log(row);
const id = row.id || this.ids;
- getCommunityInfo(id).then((response) => {
+ getCommunityInfo(id).then(response => {
this.form = response.data;
this.title = "修改居住社区信息";
this.form.code = null;
- console.log(1);
- SubordinateRegions(response.data.areaCode).then((res) => {
- console.log(res);
+ SubordinateRegions(response.data.areaCode).then(res => {
if (res.data !== null) {
this.form.province = String(res.data.provinceCode);
// this.form.province = res.data.provinceCode;
@@ -961,7 +818,6 @@ export default {
this.form.area = res.data.regionName;
// this.form.areaCode = res.data.streetName;
this.form.code = res.data.streetName;
- console.log(this.form);
this.open = true;
}
});
@@ -969,21 +825,21 @@ export default {
},
/** 提交按钮 */
submitForm() {
- this.$refs["form"].validate((valid) => {
+ this.$refs["form"].validate(valid => {
if (valid) {
// let newStr = JSON.stringify(this.form.areaCode);
// let newObj = JSON.parse(newStr);
if (this.form.id != null) {
- updateCommunityInfo(this.form).then((response) => {
+ updateCommunityInfo(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
- this.open2 = false;
+ this.open2 = false;
this.open = false;
-
+
this.getList();
});
} else {
- addCommunityInfo(this.form).then((response) => {
+ addCommunityInfo(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.open2 = false;
@@ -998,7 +854,7 @@ export default {
const ids = row.id || this.ids;
this.$modal
.confirm("是否确认删除居住社区信息的数据项?")
- .then(function () {
+ .then(function() {
return delCommunityInfo(ids);
})
.then(() => {
@@ -1012,11 +868,11 @@ export default {
this.download(
"system/communityInfo/export",
{
- ...this.queryParams,
+ ...this.queryParams
},
`communityInfo_${new Date().getTime()}.xlsx`
);
- },
- },
+ }
+ }
};
diff --git a/src/views/system/diseaseInfo/index.vue b/src/views/system/diseaseInfo/index.vue
index 9fd0496..5219a43 100644
--- a/src/views/system/diseaseInfo/index.vue
+++ b/src/views/system/diseaseInfo/index.vue
@@ -321,7 +321,6 @@ export default {
//删除deldisease
deldisease(index) {
this.form.diseaseInfoList.splice(index, 1);
- console.log(this.form.diseaseInfoList);
},
//添加adddisease
adddisease() {
diff --git a/src/views/system/goodsCategory/index.vue b/src/views/system/goodsCategory/index.vue
index 1172895..f14bd90 100644
--- a/src/views/system/goodsCategory/index.vue
+++ b/src/views/system/goodsCategory/index.vue
@@ -12,7 +12,7 @@
prefix-icon="el-icon-search"
style="margin-bottom: 20px"
/>
-
-->
+ -->
- -->
+ -->
- 搜索
- 重置
+ 搜索
+ 重置
@@ -78,8 +70,7 @@
size="mini"
@click="handleAdd"
v-hasPermi="['system:goodsCategory:add']"
- >新增
+ >新增
修改
+ >修改
删除
+ >删除
-
+ -->
+
-
+
-
+
修改
+ >修改
删除
+ >删除
@@ -192,12 +168,7 @@
:before-close="cancel"
>
-
+
-
+ >
+ />-->
-
+
+ -->
-->
-
+
{
- getStationCategoryList(id).then((res) => {
+ getStationCategoryList(id).then(res => {
// 接口请求
- res.data.forEach((e) => {
+ res.data.forEach(e => {
e.value = e.id;
e.label = e.goodsCategoryName;
});
resolve(
- res.data.map((item) => {
+ res.data.map(item => {
return {
- ...item,
+ ...item
};
})
);
});
}, 300);
- },
+ }
},
imgone: "",
baseurl: "",
@@ -333,35 +295,33 @@ export default {
categoryRemark: null,
sort: null,
parentId: 0,
- parentName: "",
+ parentName: ""
},
// 表单参数
form: {},
// 表单校验
rules: {
goodsCategoryName: [
- { required: true, message: "商品分类名称不能为空", trigger: "blur" },
+ { required: true, message: "商品分类名称不能为空", trigger: "blur" }
],
goodsCategoryCode: [
- { required: true, message: "商品分类编码不能为空", trigger: "blur" },
+ { required: true, message: "商品分类编码不能为空", trigger: "blur" }
],
goodsCategoryPicture: [
- { required: true, message: "商品分类图片不能为空", trigger: "blur" },
+ { required: true, message: "商品分类图片不能为空", trigger: "blur" }
],
categoryRemark: [
- { required: true, message: "分类概述不能为空", trigger: "blur" },
- ],
- sort: [
- { required: true, message: "显示顺序不能为空", trigger: "blur" },
+ { required: true, message: "分类概述不能为空", trigger: "blur" }
],
+ sort: [{ required: true, message: "显示顺序不能为空", trigger: "blur" }]
},
// 树选项
deptOptions: undefined,
categoryLevel: null,
defaultProps: {
children: "children",
- label: "goodsCategoryName",
- },
+ label: "goodsCategoryName"
+ }
};
},
@@ -383,12 +343,12 @@ export default {
this.queryParams.parentName = data.goodsCategoryName;
// this.categoryLevel = data.categoryLevel;
this.handleQuery();
- getStationCategoryList(data.id).then((res) => {
- res.data.forEach((e) => {
+ getStationCategoryList(data.id).then(res => {
+ res.data.forEach(e => {
e.children = [
{
- goodsCategoryName: "",
- },
+ goodsCategoryName: ""
+ }
];
});
this.loading = false;
@@ -398,20 +358,20 @@ export default {
/** 查询商品分类信息列表 */
info() {
this.loading = true;
- getStationCategoryList(0).then((res) => {
- res.data.forEach((e) => {
+ getStationCategoryList(0).then(res => {
+ res.data.forEach(e => {
e.children = [
{
- goodsCategoryName: "",
- },
+ goodsCategoryName: ""
+ }
];
});
var obj = [
{
goodsCategoryName: "商品分类名称",
children: res.data,
- id: 0,
- },
+ id: 0
+ }
];
this.deptOptions = obj;
this.loading = false;
@@ -419,7 +379,7 @@ export default {
},
getList() {
this.loading = true;
- listGoodsCategory(this.queryParams).then((response) => {
+ listGoodsCategory(this.queryParams).then(response => {
this.goodsCategoryList = response.rows;
this.total = response.total;
this.loading = false;
@@ -433,7 +393,7 @@ export default {
obj.pictureUrlList.push(this.form.goodsCategoryPicture);
}
if (obj.pictureUrlList.length > 0) {
- updatePicture(obj).then((res) => {});
+ updatePicture(obj).then(res => {});
}
this.open = false;
this.reset();
@@ -452,7 +412,7 @@ export default {
updateBy: null,
updateTime: null,
parentId: null,
- parentName: null,
+ parentName: null
};
this.resetForm("form");
},
@@ -466,14 +426,14 @@ export default {
this.queryParams = {
pageNum: 1,
pageSize: 10,
- parentId: 0,
+ parentId: 0
};
this.resetForm("queryForm");
this.handleQuery();
},
// 多选框选中数据
handleSelectionChange(selection) {
- this.ids = selection.map((item) => item.id);
+ this.ids = selection.map(item => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
@@ -482,7 +442,6 @@ export default {
this.reset();
this.open = true;
this.title = "添加商品分类信息";
- console.log(this.queryParams);
// if (this.queryParams.parentId != 0) {
this.form.parentId = this.queryParams.parentId;
// }
@@ -493,26 +452,25 @@ export default {
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
- getGoodsCategory(id).then((response) => {
+ getGoodsCategory(id).then(response => {
this.form = response.data;
this.imgone = this.form.goodsCategoryPicture;
this.open = true;
this.title = "修改商品分类信息";
- console.log(this.form);
});
},
/** 提交按钮 */
submitForm() {
- this.$refs["form"].validate((valid) => {
+ this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
- updateGoodsCategory(this.form).then((response) => {
+ updateGoodsCategory(this.form).then(response => {
var obj = { pictureUrlList: [] };
if (this.imgone != this.form.goodsCategoryPicture) {
obj.pictureUrlList.push(this.imgone);
}
if (obj.pictureUrlList.length > 0) {
- updatePicture(obj).then((res) => {});
+ updatePicture(obj).then(res => {});
}
this.$modal.msgSuccess("修改成功");
++this.isResouceShow;
@@ -521,7 +479,7 @@ export default {
this.info();
});
} else {
- addGoodsCategory(this.form).then((response) => {
+ addGoodsCategory(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
++this.isResouceShow;
this.open = false;
@@ -534,20 +492,17 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
- console.log(row);
const ids = row.id || this.ids;
this.$modal
.confirm("是否确认删除?")
- .then(function () {
+ .then(function() {
return delGoodsCategory(ids);
})
.then(() => {
var obj = { pictureUrlList: [] };
obj.pictureUrlList.push(row.goodsCategoryPicture);
if (obj.pictureUrlList.length > 0) {
- updatePicture(obj).then((res) => {
- console.log(res);
- });
+ updatePicture(obj).then(res => {});
}
this.getList();
this.$modal.msgSuccess("删除成功");
@@ -559,15 +514,15 @@ export default {
this.download(
"system/goodsCategory/export",
{
- ...this.queryParams,
+ ...this.queryParams
},
`goodsCategory_${new Date().getTime()}.xlsx`
);
},
imgUrl(imgUrl) {
this.form.goodsCategoryPicture = imgUrl;
- },
- },
+ }
+ }
};
diff --git a/src/views/system/patientArchives/index.vue b/src/views/system/patientArchives/index.vue
index 5162d49..477544d 100644
--- a/src/views/system/patientArchives/index.vue
+++ b/src/views/system/patientArchives/index.vue
@@ -602,9 +602,7 @@ export default {
methods: {
// 重置密码
handleResetPwd(row) {
- console.log(row)
const id= row.id
- console.log(id)
// const id=row.userId
this.$prompt('请输入新的密码', "提示", {
confirmButtonText: "确定",
@@ -614,7 +612,6 @@ export default {
inputErrorMessage: "用户密码长度必须介于 5 和 20 之间",
})
.then((res) => {
- console.log(res)
const params = {
id,
password: res.value
@@ -627,7 +624,6 @@ export default {
},
// 查询省事件
province(item) {
- console.log(item);
this.queryParams.city = "";
this.queryParams.area = "";
this.queryParams.areaCode = "";
@@ -635,9 +631,7 @@ export default {
// this.value2 = "";
// this.value3 = "";
SecondaryLevelInfo(item.id).then((res) => {
- console.log(res);
this.SecondaryLevelInfolist = res.data;
- // console.log(this.SecondaryLevelInfolist);
this.citylist = res.data;
});
},
@@ -647,41 +641,32 @@ export default {
this.queryParams.areaCode = "";
// this.value2 = "";
// this.value3 = "";
- console.log(item);
SecondaryLevelInfo(item.id).then((res) => {
- console.log(res);
this.arealists = res.data;
});
},
//点击区县城
clickarea(item) {
// this.value3 = "";
- console.log(item);
SecondaryLevelInfo(item.id).then((res) => {
- console.log(res);
this.streetlist = res.data;
});
},
//点击街道
clickstreet(item) {
this.form.areaCode = item.areaCode;
- console.log(this.form);
},
// 所属省下拉框
loadMore() {
- console.log("1");
var a = Math.ceil(this.total2 / 10);
- console.log(this.arealist.length);
if (this.arealist.length + 1 >= this.total2) {
} else {
if (this.getProvincequeryParams.pageNum >= a) {
} else {
this.getProvincequeryParams.pageNum++;
FirstLevel(this.getProvincequeryParams).then((res) => {
- console.log(res);
res.rows.forEach((e) => {
this.arealist.push(e);
- console.log(this.arealist);
});
});
}
@@ -689,10 +674,8 @@ export default {
},
Provincelist() {
FirstLevel(this.getProvincequeryParams).then((res) => {
- console.log(res);
this.arealist = res.data;
this.total2 = res.total;
- console.log(this.arealist);
});
},
/** 查询被护理人基本信息列表 */
diff --git a/src/views/system/person/index.vue b/src/views/system/person/index.vue
index 199fc97..f3af762 100644
--- a/src/views/system/person/index.vue
+++ b/src/views/system/person/index.vue
@@ -6,29 +6,24 @@
size="small"
:inline="true"
v-show="showSearch"
- label-width="68px"
+ label-width="70px"
>
-
+ >
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- 搜索
- 重置
+ 搜索
+ 重置
-
新增
+ >新增
修改
+ >修改
删除
+ >删除
导入
+ >导入
-
+
-
-
-
{{ scope.row.sex == "MALE" ? "男" : "" }}
{{ scope.row.sex == "FEMALE" ? "女" : "" }}
-
-
+
+
-
-
+
+ 审核
修改
+ >修改
删除
+ >删除
-
-
-
-
-
-
-
- {{ item.nurseStationName }}
- {{ item.nurseStationName }}
-
-
-
- {{ item.departmentName }}
- {{ item.departmentName }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
-
+
- 搜索
- 重置
+ 搜索
+ 重置
@@ -520,22 +227,10 @@
>
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
+
+
- 搜索
- 重置
+ 搜索
+ 重置
-
+
-
-
-
-
-
-
+
+
+
-
-
-
-
+
+
-
-
-
-
+
+
+
+
{{ nurseStationName }}
+ style="width: 300px; text-align: left; height: 36px; color: #c0c4cc"
+ >{{ nurseStationName }}
{{ nurseStationName }}
+ >{{ nurseStationName }}
-
-
+
{{ departmentName }}
+ style="width: 300px; text-align: left; height: 36px; color: #c0c4cc"
+ >{{ departmentName }}
{{ departmentName }}
+ >{{ departmentName }}
+
+
+
-
+ >
-
+
-
+ >
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+ 删除
+
+
+
+
-
+
- 将文件拖到此处,或点击上传
+
+ 将文件拖到此处,或
+ 点击上传
+
仅允许导入xls、xlsx格式文件。
下载模板
+ >下载模板
+
+
+
+
+
+ {{ form.nursePersonName }}
+
+
+
+
+ {{ form.positionalTitleLevelCheck=='PRIMARY_LEVEL'?'初级':'' }}
+ {{ form.positionalTitleLevelCheck=='MIDDLE_LEVEL'?'中级':'' }}
+ {{ form.positionalTitleLevelCheck=='HIGH_LEVEL'?'高级':'' }}
+
+
+
+ {{form.geniusItemCheck}}
+
+
+
+
+
+ {{ scope.row.certificateName }}
+
+
+
+
+
+
+
+
+
+
+
+
+ 同意
+ 取消
+
+
@@ -902,3 +578,15 @@
import personjs from "./personjs";
export default personjs;
+
diff --git a/src/views/system/person/personjs.js b/src/views/system/person/personjs.js
index 73be277..e786dc9 100644
--- a/src/views/system/person/personjs.js
+++ b/src/views/system/person/personjs.js
@@ -6,11 +6,15 @@ import {
updatePerson,
stationList,
StationDepartmentList,
+ getNurseStationPersonCheck,
+ updateNurseStationPersonChecks
} from "@/api/system/person";
import { getToken } from "@/utils/auth";
import { getListByUser } from "@/api/system/userlist.js";
-
+import stationAcatar from "../stationAvatar/index.vue";
+import baseurl from '@/api/baseurl'
export default {
+ components: { stationAcatar },
name: "Person",
data() {
// 验证手机号的规则
@@ -34,7 +38,25 @@ export default {
cb(new Error("请输入正确的联系电话"));
};
return {
+ baseurl: null,
//男女选择
+ positionalTitleLevellist: [{
+ label: "初级",
+ value: "PRIMARY_LEVEL",
+ }, {
+ label: "中级",
+ value: "MIDDLE_LEVEL",
+ }, {
+ label: "高级",
+ value: "HIGH_LEVEL",
+ }],
+ modifyCheckStatuslist: [{
+ label: "已审核",
+ value: "CHECKED",
+ }, {
+ label: "未审核",
+ value: "NOT_CHECK",
+ }],
sexs: [{
label: "男",
value: "MALE",
@@ -53,15 +75,12 @@ export default {
value: "NURSE_TEACHER",
},
],
-
innerVisible: false,
innerVisible2: false,
innerVisiblexg: false,
innerVisiblexg2: false,
-
// 遮罩层
loading: true,
-
// 用户导入参数
upload: {
// 是否显示弹出层(用户导入)
@@ -107,8 +126,8 @@ export default {
title3: "",
// 修改弹出层
open: false,
+ templeopen: false,
// 添加弹出层
- open2: false,
//权限查询
// 查询参数
queryParams: {
@@ -132,7 +151,6 @@ export default {
id: null,
nurseStationId: null,
},
-
queryParams3: {
pageNum: 1,
pageSize: 10,
@@ -150,12 +168,21 @@ export default {
pageNum: 1,
pageSize: 10,
},
-
// 表单参数
form: {},
index: "",
+ idd: 1,
// 表单校验
rules: {
+ geniusItem: [
+ { required: true, message: "请输入擅长项目", trigger: "blur" },
+ ],
+ birthDate: [
+ { required: true, message: "请选择出生日期", trigger: "blur" },
+ ],
+ positionalTitleLevel: [
+ { required: true, message: "请选择职称级别", trigger: "blur" },
+ ],
nurseStationId: [
{ required: true, message: "请选择所属护理站", trigger: "blur" },
],
@@ -179,48 +206,60 @@ export default {
address: [
{ required: true, message: "居住地址不能为空", trigger: "blur" },
],
- nurseStationPersonList: {
- nursePersonName: [{
- required: true,
- message: "请选择所属护理站",
- trigger: "blur",
- }, ],
- departmentCode: [
- { required: true, message: "所属科室不能为空", trigger: "blur" },
- ],
- nurseStationId: [
- { required: true, message: "请选择所属护理站", trigger: "blur" },
- ],
- nursePersonName: [
- { required: true, message: "护理人姓名不能为空", trigger: "blur" },
- ],
- nursePersonType: [
- { required: true, message: "护理人职称不能为空", trigger: "blur" },
- ],
- sex: [{ required: true, message: "性别不能为空", trigger: "blur" }],
- phone: [{
- required: true,
- validator: checkMobile,
- message: "",
- trigger: "blur",
- }, ],
- address: [
- { required: true, message: "居住地址不能为空", trigger: "blur" },
- ],
- },
},
};
},
created() {
+ this.baseurl = baseurl
this.infos();
this.info();
},
methods: {
+ //删除Certificate
+ delCertificate(index) {
+ if (this.form.nurseStationPersonCertificateList.length == 1) {
+ this.$message.error("不可全部删除");
+ } else {
+ this.form.nurseStationPersonCertificateList.splice(index, 1);
+ }
+ },
+ //添加Certificate
+ addCertificate() {
+ this.idd++;
+ var obj = {
+ certificateName: null,
+ certificateUrl: null,
+ sort: null,
+ idd: this.idd
+ };
+ if (this.form.nurseStationPersonCertificateList.length == 5) {
+ this.$message.error("最多只能5条");
+ } else {
+ this.form.nurseStationPersonCertificateList.push(obj);
+ }
+ },
+ imgUrl(imgUrl) {},
+ //接收图片所属的item
+ imgclassifyItem(item) {
+ let items = JSON.parse(item);
+ if (items.idd && !items.id) {
+ this.form.nurseStationPersonCertificateList.forEach((e) => {
+ if (e.idd == items.idd) {
+ e.certificateUrl = items.certificateUrl;
+ }
+ });
+ } else if (!items.idd && items.id) {
+ this.form.nurseStationPersonCertificateList.forEach((e) => {
+ if (e.id == items.id) {
+ e.certificateUrl = items.certificateUrl;
+ }
+ });
+ }
+ },
// // 新增所属科室按钮
departclick(item, index) {
if (this.form.nurseStationId != null) {
this.getList3();
- console.log(item);
this.departid = item.departmentCode;
this.innerVisible2 = true;
this.index = index;
@@ -231,7 +270,6 @@ export default {
},
// // 修改所属科室按钮
departclick2() {
- console.log(this.form.nurseStationId);
if (this.form.nurseStationId != null) {
this.getList3();
this.departid2 = this.form.departmentCode;
@@ -257,7 +295,6 @@ export default {
},
// 修改护理站
nurseclick2(row) {
- console.log(row);
this.nurseStationName = row.nurseStationName;
this.stationid2 = row.id;
this.form.nurseStationId = row.id;
@@ -265,7 +302,6 @@ export default {
this.innerVisiblexg = false;
this.form.nursename = row.nurseStationName;
},
-
// 护理站名称
nurseclick(row) {
this.nursename = row.nurseStationName;
@@ -278,13 +314,10 @@ export default {
row.nurseStationName;
this.form.nurseStationPersonList[this.index].nurseStationId = row.id;
},
-
// 所属科室
StationDepartmentclick(row) {
- console.log(row);
this.departname = row.departmentName;
this.departid = row.departmentCode;
- console.log(this.departid);
this.departmentCode = row.departmentCode;
// this.form.nurseStationId = row.id;
this.innerVisible2 = false;
@@ -293,11 +326,9 @@ export default {
row.departmentName;
this.form.nurseStationPersonList[this.index].departmentCode =
row.departmentCode;
- console.log(this.form);
},
// 修改科室
StationDepartmentclick2(row) {
- console.log(row);
this.departmentName = row.departmentName;
this.form.departmentCode = row.departmentCode;
this.departid2 = row.departmentCode;
@@ -314,7 +345,6 @@ export default {
this.loading = false;
});
},
-
getList3() {
this.loading = true;
StationDepartmentList(this.queryParams3).then((res) => {
@@ -326,7 +356,6 @@ export default {
// 取消按钮
cancel() {
this.open = false;
- this.open2 = false;
this.nurseStationName = "请选择所属护理站";
this.departmentName = "请选择所属科室";
// this.upload.open=false;
@@ -335,9 +364,10 @@ export default {
// 表单重置
reset() {
this.form = {
+ geniusItem: null,
+ birthDate: null,
id: null,
- pageNum: 1,
- pageSize: 10,
+ nurseStationId: null,
departmentCode: null,
userId: null,
nursePersonCode: null,
@@ -351,19 +381,12 @@ export default {
updateTime: null,
nurseStationName: "请选择所属护理站",
departmentName: "请选择所属科室",
- nurseStationPersonList: [{
- id: "",
- nurseStationId: "",
- departmentCode: "",
- nursePersonCode: "",
- nursePersonName: "",
- nursePersonType: "",
- nurseStationName: "请选择所属护理站",
- phone: "",
- address: "",
- sex: "",
- departmentName: "请选择所属科室",
- }, ],
+ nurseStationPersonCertificateList: [{
+ certificateName: null,
+ certificateUrl: null,
+ sort: null,
+ idd: this.idd
+ }]
};
this.resetForm("form");
},
@@ -421,12 +444,14 @@ export default {
this.handleQuery3();
},
resetQuery() {
-
if (this.nurseStationlist[0]) {
this.queryParams.pageNum = 1;
this.queryParams.pageSize = 10;
this.queryParams.departmentName = null;
+ this.queryParams.phone = null;
this.queryParams.nursePersonName = null;
+ this.queryParams.positionalTitleLevel = null;
+ this.queryParams.modifyCheckStatus = null;
}
this.handleQuery();
},
@@ -438,9 +463,9 @@ export default {
},
/** 新增按钮操作 */
handleAdd() {
- this.queryParams3.nurseStationId = null;
+ this.queryParams3.nurseStationId = null
this.reset();
- this.open2 = true;
+ this.open = true;
this.title = "添加护理站人员信息";
this.title2 = "请选择所属护理站";
this.title3 = "请选择科室";
@@ -449,10 +474,18 @@ export default {
handleUpdate(row) {
const id = row.id || this.ids;
getPerson(id).then((response) => {
- console.log(response);
this.departmentName = response.data.departmentName;
this.nurseStationName = response.data.nurseStationName;
this.form = response.data;
+ var obj = {
+ certificateName: null,
+ certificateUrl: null,
+ sort: null,
+ idd: this.idd
+ };
+ if (this.form.nurseStationPersonCertificateList.length == 0) {
+ this.form.nurseStationPersonCertificateList.push(obj);
+ }
this.queryParams3.nurseStationId = response.data.nurseStationId;
this.open = true;
this.title = "修改护理站人员信息";
@@ -465,18 +498,15 @@ export default {
},
/** 提交按钮 */
submitForm() {
- if (this.form.id == null) {
- this.form.nursePersonName = this.form.nurseStationPersonList[0].nursePersonName
- this.form.nursePersonType = this.form.nurseStationPersonList[0].nursePersonType
- this.form.sex = this.form.nurseStationPersonList[0].sex
- this.form.address = this.form.nurseStationPersonList[0].address
- this.form.departmentCode = this.form.nurseStationPersonList[0].departmentCode
- this.form.departmentName = this.form.nurseStationPersonList[0].departmentName
- this.form.phone = this.form.nurseStationPersonList[0].phone
- }
- console.log(this.form);
this.$refs["form"].validate((valid) => {
if (valid) {
+ if (this.form.nurseStationPersonCertificateList.length > 0) {
+ this.form.nurseStationPersonCertificateList.forEach(e => {
+ if (!e.certificateName && !e.certificateUrl && !e.sort) {
+ this.form.nurseStationPersonCertificateList = this.form.nurseStationPersonCertificateList.filter(el => el != e)
+ }
+ })
+ }
if (this.form.id != null) {
updatePerson(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
@@ -486,7 +516,7 @@ export default {
} else {
addPerson(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
- this.open2 = false;
+ this.open = false;
this.getList();
this.nurseStationName = "请选择所属护理站";
this.departmentName = "请选择所属科室";
@@ -495,6 +525,26 @@ export default {
}
});
},
+ // 审核
+ handshenhe(row) {
+ getNurseStationPersonCheck(row.id).then(res => {
+ this.form = res.data;
+ this.templeopen = true;
+ })
+ },
+ // 审核提交
+ templesubmit() {
+ this.form.positionalTitleLevel = this.form.positionalTitleLevelCheck
+ this.form.geniusItem = this.form.geniusItemCheck
+ updateNurseStationPersonChecks(this.form).then(res => {
+ this.$modal.msgSuccess("审核成功");
+ this.getList();
+ this.templeopen = false
+ })
+ },
+ templeopenfalse() {
+ this.templeopen = false
+ },
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
diff --git a/src/views/system/revenue/index.vue b/src/views/system/revenue/index.vue
new file mode 100644
index 0000000..2ba97e3
--- /dev/null
+++ b/src/views/system/revenue/index.vue
@@ -0,0 +1,514 @@
+
+
+
+
+
+
+
+
+
+
+ {{
+ queryParams.nursePersonName
+ }}
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/station/index.vue b/src/views/system/station/index.vue
index 8e5f7f4..e1bca27 100644
--- a/src/views/system/station/index.vue
+++ b/src/views/system/station/index.vue
@@ -804,8 +804,6 @@ export default {
this.form.stationIntroducePcitureUrl = imgUrl;
},
delnurseStationLabelList(index, item) {
- console.log(index, item);
- console.log();
// this.looknurseStationLabel.splice(index,1)
if (this.looknurseStationLabel.length === 1) {
this.looknurseStationLabel = [{
@@ -833,7 +831,6 @@ export default {
//点击街道
clickstreet(item) {
this.form.areaCode = item.areaCode;
- console.log(item, this.form);
},
//点击区县城
clickarea(item) {
@@ -1056,7 +1053,6 @@ export default {
this.looknurseStationLabel = response.data.nurseStationLabel;
this.open = true;
this.loading = false;
- console.log(this.form);
});
},
/** 提交按钮 */
diff --git a/src/views/system/stationAvatar/index.vue b/src/views/system/stationAvatar/index.vue
index 7098564..896a540 100644
--- a/src/views/system/stationAvatar/index.vue
+++ b/src/views/system/stationAvatar/index.vue
@@ -1,19 +1,13 @@
-
+
+ >您的浏览器不支持视频播放
![]()
- 您的浏览器不支持视频播放
-
-
![]()
+ >您的浏览器不支持视频播放
+
-
- 请上传图片为800x800px的正方形
-
+
请上传图片为800x800px的正方形
@@ -119,11 +108,9 @@
size="small"
@click="rotateRight()"
>
- -->
+ -->
- 提 交
+ 提 交
@@ -136,7 +123,7 @@ import baseurl from "@/api/baseurl.js";
import {
updateNurseStationHeads,
posts,
- updatePoserHeads,
+ updatePoserHeads
} from "@/api/system/stationAvatar.js";
export default {
@@ -158,17 +145,17 @@ export default {
autoCrop: true, // 是否默认生成截图框
autoCropWidth: 300, // 默认生成截图框宽度
autoCropHeight: 300, // 默认生成截图框高度
- fixedBox: true, // 固定截图框大小 不允许改变
+ fixedBox: true // 固定截图框大小 不允许改变
},
previews: {},
items: {},
//显示上传按钮
videoForm: {
- showVideoPath: null, //回显的变量
+ showVideoPath: null //回显的变量
},
video: {
- VideoPath: null, //回显的变量
- },
+ VideoPath: null //回显的变量
+ }
};
},
created() {
@@ -181,7 +168,6 @@ export default {
} else {
this.video.VideoPath = baseurl + this.tovideo;
}
- console.log(this.video);
if (this.img == null) {
this.options.img = null;
} else if (this.img == "") {
@@ -197,12 +183,12 @@ export default {
},
watch: {
tovideo: {
- handler(newimg, oldimg) {},
+ handler(newimg, oldimg) {}
},
item: {
handler(newimg, oldimg) {
this.items = this.item;
- },
+ }
},
img: {
handler(newimg, oldimg) {
@@ -213,13 +199,13 @@ export default {
} else {
this.options.img = baseurl + this.img;
}
- },
+ }
},
type: {
handler(newimg, oldimg) {
this.types = this.type;
- },
- },
+ }
+ }
},
methods: {
// 编辑头像
@@ -279,13 +265,13 @@ export default {
formData.append("file", this.previews.data);
formData.append("type", this.types);
if (this.types == "posterVideoUrl") {
- updatePoserHeads(formData).then((response) => {
+ updatePoserHeads(formData).then(response => {
this.video.VideoPath = baseurl + response.imgUrl;
this.$emit("imgUrl", response.imgUrl);
this.openimg = false;
});
} else {
- updateNurseStationHeads(formData).then((response) => {
+ updateNurseStationHeads(formData).then(response => {
this.options.img = baseurl + response.imgUrl;
this.$emit("imgUrl", response.imgUrl);
if (this.types == "attributePitureUrl") {
@@ -304,6 +290,14 @@ export default {
this.items.posterPictureUrl = response.imgUrl;
this.$emit("item", JSON.stringify(this.items));
}
+ if (this.types == "certificateUrl") {
+ this.items.certificateUrl = response.imgUrl;
+ this.$emit("item", JSON.stringify(this.items));
+ }
+ if (this.types == "personCertificateUrl") {
+ this.items.certificateUrl = response.imgUrl;
+ this.$emit("item", JSON.stringify(this.items));
+ }
this.openimg = false;
});
}
@@ -319,8 +313,8 @@ export default {
closeDialog() {
this.imgs = "";
this.visible = false;
- },
- },
+ }
+ }
};