修改
This commit is contained in:
parent
063424530d
commit
2792f4996a
@ -2,31 +2,31 @@ import { mergeRecursive } from "@/utils/xinyilu";
|
||||
import dictConverter from './DictConverter'
|
||||
|
||||
export const options = {
|
||||
metas: {
|
||||
'*': {
|
||||
/**
|
||||
* 字典请求,方法签名为function(dictMeta: DictMeta): Promise
|
||||
*/
|
||||
request: (dictMeta) => {
|
||||
console.log(`load dict ${dictMeta.type}`)
|
||||
return Promise.resolve([])
|
||||
},
|
||||
/**
|
||||
* 字典响应数据转换器,方法签名为function(response: Object, dictMeta: DictMeta): DictData
|
||||
*/
|
||||
responseConverter,
|
||||
labelField: 'label',
|
||||
valueField: 'value',
|
||||
metas: {
|
||||
'*': {
|
||||
/**
|
||||
* 字典请求,方法签名为function(dictMeta: DictMeta): Promise
|
||||
*/
|
||||
request: (dictMeta) => {
|
||||
console.log(`load dict ${dictMeta.type}`)
|
||||
return Promise.resolve([])
|
||||
},
|
||||
/**
|
||||
* 字典响应数据转换器,方法签名为function(response: Object, dictMeta: DictMeta): DictData
|
||||
*/
|
||||
responseConverter,
|
||||
labelField: 'label',
|
||||
valueField: 'value',
|
||||
},
|
||||
},
|
||||
},
|
||||
/**
|
||||
* 默认标签字段
|
||||
*/
|
||||
DEFAULT_LABEL_FIELDS: ['label', 'name', 'title'],
|
||||
/**
|
||||
* 默认值字段
|
||||
*/
|
||||
DEFAULT_VALUE_FIELDS: ['value', 'id', 'uid', 'key'],
|
||||
/**
|
||||
* 默认标签字段
|
||||
*/
|
||||
DEFAULT_LABEL_FIELDS: ['label', 'name', 'title'],
|
||||
/**
|
||||
* 默认值字段
|
||||
*/
|
||||
DEFAULT_VALUE_FIELDS: ['value', 'id', 'uid', 'key'],
|
||||
}
|
||||
|
||||
/**
|
||||
@ -36,16 +36,16 @@ export const options = {
|
||||
* @returns {DictData}
|
||||
*/
|
||||
function responseConverter(response, dictMeta) {
|
||||
const dicts = response.content instanceof Array ? response.content : response
|
||||
if (dicts === undefined) {
|
||||
console.warn(`no dict data of "${dictMeta.type}" found in the response`)
|
||||
return []
|
||||
}
|
||||
return dicts.map(d => dictConverter(d, dictMeta))
|
||||
const dicts = response.content instanceof Array ? response.content : response
|
||||
if (dicts === undefined) {
|
||||
console.warn(`no dict data of "${dictMeta.type}" found in the response`)
|
||||
return []
|
||||
}
|
||||
return dicts.map(d => dictConverter(d, dictMeta))
|
||||
}
|
||||
|
||||
export function mergeOptions(src) {
|
||||
mergeRecursive(options, src)
|
||||
mergeRecursive(options, src)
|
||||
}
|
||||
|
||||
export default options
|
||||
export default options
|
||||
@ -486,11 +486,9 @@ export default {
|
||||
|
||||
getList() {
|
||||
informationStatistics(this.queryParams).then((response) => {
|
||||
console.log(response);
|
||||
this.List = response.data;
|
||||
});
|
||||
summaryToday(this.queryParams).then((response) => {
|
||||
console.log(response);
|
||||
this.summaryTodayList = response.data;
|
||||
});
|
||||
},
|
||||
|
||||
@ -411,7 +411,6 @@ export default {
|
||||
if (response.data.goodAttributeDetailsLists) {
|
||||
this.goodDetailsLists = response.data.goodAttributeDetailsLists;
|
||||
}
|
||||
// console.log(this.form.parentIdList)
|
||||
// this.form.goodsCategoryId = this.form.goodsCategoryName
|
||||
// this.form.value = this.form.goodsCategoryId
|
||||
// this.form.label = this.form.goodsCategoryName
|
||||
@ -423,8 +422,6 @@ export default {
|
||||
submitForm() {
|
||||
this.form.goodAttributeDetailsLists = [];
|
||||
this.form.goodDetailsLists = this.goodDetailsLists;
|
||||
console.log(this.form.goodDetailsLists)
|
||||
|
||||
if (!this.form.goodDetailsLists.integralExchangeFlag) {
|
||||
this.form.goodDetailsLists.integralExchangeFlag = null
|
||||
}
|
||||
@ -540,4 +537,4 @@ export default {
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
@ -456,7 +456,6 @@ export default {
|
||||
// 存贮新上传的图片数组
|
||||
this.deletNewImgs.push(imgUrlData.certificateUrl);
|
||||
this.objitem.push(imgUrlData.certificateUrl);
|
||||
console.log(item,'接受图片item')
|
||||
let items = JSON.parse(item);
|
||||
if (items.idd && !items.id) {
|
||||
this.form.certificateUrlList.forEach(e => {
|
||||
@ -469,14 +468,12 @@ export default {
|
||||
}
|
||||
},
|
||||
imgUrl(imgUrl) {
|
||||
console.log(imgUrl)
|
||||
|
||||
},
|
||||
innerVisiblecancel() {
|
||||
this.innerVisible = false;
|
||||
},
|
||||
nurseclick(row) {
|
||||
console.log(row);
|
||||
this.form.personName = row.personName;
|
||||
this.form.hospitalPersonId = row.id;
|
||||
this.innerVisible = false;
|
||||
@ -521,7 +518,6 @@ export default {
|
||||
obj.pictureUrlList.push(e.certificateUrl);
|
||||
});
|
||||
}
|
||||
console.log("2222",this.deletNewImgs)
|
||||
updatePicture({ pictureUrlList: this.deletNewImgs }).then(res => {
|
||||
this.open = false;
|
||||
});
|
||||
@ -585,13 +581,10 @@ export default {
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
console.log(row)
|
||||
this.open = true;
|
||||
const hospitalPersonId = row.hospitalPersonId || this.hospitalPersonIds;
|
||||
getCertificate(hospitalPersonId).then((response) => {
|
||||
console.log(response,'打印返回的值')
|
||||
this.form = response.data;
|
||||
|
||||
this.title = "修改健康咨询-科室人员资质证书信息";
|
||||
});
|
||||
this.reset();
|
||||
@ -619,7 +612,6 @@ export default {
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
console.log(row)
|
||||
const hospitalPersonIds = row.hospitalPersonId || this.hospitalPersonIds;
|
||||
this.$modal
|
||||
.confirm(
|
||||
|
||||
@ -504,7 +504,6 @@ export default {
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
console.log(row);
|
||||
this.$modal
|
||||
.confirm("是否确认删除?")
|
||||
.then(function() {
|
||||
|
||||
@ -642,28 +642,21 @@ export default {
|
||||
methods: {
|
||||
clickcode2(item) {
|
||||
this.form.areaCode = Number(item.areaCode);
|
||||
console.log(this.form);
|
||||
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);
|
||||
// this.SecondaryLevelInfolist = res.data;
|
||||
// console.log(this.SecondaryLevelInfolist);
|
||||
this.citylist = res.data;
|
||||
});
|
||||
},
|
||||
@ -672,35 +665,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);
|
||||
// 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);
|
||||
// this.SecondaryLevelInfolist = res.data;
|
||||
// console.log(this.SecondaryLevelInfolist);
|
||||
this.citylist = res.data;
|
||||
});
|
||||
},
|
||||
// 点击市
|
||||
clickcity(item) {
|
||||
console.log(item);
|
||||
SecondaryLevelInfo(item.id).then((res) => {
|
||||
this.queryParams.area = "";
|
||||
this.queryParams.areaCode = "";
|
||||
console.log(res);
|
||||
this.arealists = res.data;
|
||||
});
|
||||
},
|
||||
@ -712,19 +697,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);
|
||||
this.arealists = res.data;
|
||||
});
|
||||
},
|
||||
// 修改
|
||||
clickcity3(item) {
|
||||
console.log(item);
|
||||
SecondaryLevelInfo(item.id).then((res) => {
|
||||
this.form.area = "";
|
||||
this.form.code = "";
|
||||
console.log(res);
|
||||
this.arealists = res.data;
|
||||
});
|
||||
},
|
||||
@ -733,9 +714,7 @@ export default {
|
||||
this.queryParams.areaCode = "";
|
||||
// this.queryParams.areaCode = "";
|
||||
// this.value3 = "";
|
||||
console.log(item);
|
||||
SecondaryLevelInfo(item.id).then((res) => {
|
||||
console.log(res);
|
||||
this.streetlist = res.data;
|
||||
});
|
||||
},
|
||||
@ -745,9 +724,7 @@ export default {
|
||||
// this.value3 = "";
|
||||
|
||||
this.form.communityInfoList[index].areaCode = "";
|
||||
console.log(item);
|
||||
SecondaryLevelInfo(item.id).then((res) => {
|
||||
console.log(res);
|
||||
this.streetlist = res.data;
|
||||
});
|
||||
},
|
||||
@ -756,36 +733,28 @@ export default {
|
||||
this.form.code = "";
|
||||
// this.queryParams.areaCode = "";
|
||||
// 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);
|
||||
},
|
||||
// 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) => {
|
||||
this.arealist.push(e);
|
||||
console.log(this.arealist);
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -793,16 +762,13 @@ export default {
|
||||
},
|
||||
Provincelist() {
|
||||
FirstLevels(this.getProvincequeryParams).then((res) => {
|
||||
console.log(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() {
|
||||
@ -944,16 +910,13 @@ export default {
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
console.log(row);
|
||||
const id = row.id || this.ids;
|
||||
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);
|
||||
if (res.data !== null) {
|
||||
this.form.province = String(res.data.provinceCode);
|
||||
// this.form.province = res.data.provinceCode;
|
||||
@ -961,7 +924,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;
|
||||
}
|
||||
});
|
||||
|
||||
@ -325,7 +325,6 @@ export default {
|
||||
//删除deldisease
|
||||
deldisease(index) {
|
||||
this.form.diseaseInfoList.splice(index, 1);
|
||||
console.log(this.form.diseaseInfoList);
|
||||
},
|
||||
//添加adddisease
|
||||
adddisease() {
|
||||
|
||||
@ -210,7 +210,6 @@ export default {
|
||||
},
|
||||
// 上传图片
|
||||
uploadImg() {
|
||||
// console.log(this.types);
|
||||
this.$refs.cropper.getCropBlob((data) => {
|
||||
let formData = new FormData();
|
||||
formData.append("file", data);
|
||||
|
||||
@ -158,7 +158,6 @@ export default {
|
||||
},
|
||||
//页面所属护理站
|
||||
ParamsStation(item) {
|
||||
console.log(this.getListByUserquery)
|
||||
this.info();
|
||||
this.nurseStationshow = true
|
||||
},
|
||||
@ -256,14 +255,12 @@ export default {
|
||||
},
|
||||
// 查看录入物流单号弹框
|
||||
seelogistics(row) {
|
||||
// console.log(id);
|
||||
// this.queryexpressNo.id = row.id;
|
||||
this.queryexpressNo = JSON.parse(JSON.stringify(row));
|
||||
this.innerlogistics = true;
|
||||
},
|
||||
// 确定按钮
|
||||
searchlogistics() {
|
||||
console.log(this.queryexpressNo);
|
||||
editExpressNo(this.queryexpressNo).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.$modal.msgSuccess("录入成功");
|
||||
@ -280,10 +277,8 @@ export default {
|
||||
},
|
||||
// 确认退款
|
||||
refund(id) {
|
||||
console.log(id);
|
||||
goodsOrderRefundinfo(id).then((res) => {
|
||||
this.refundlist = res.data;
|
||||
console.log(this.refundlist);
|
||||
this.innerrefund = true;
|
||||
// this.getList();
|
||||
});
|
||||
|
||||
@ -565,11 +565,6 @@ export default {
|
||||
},
|
||||
//所属护理站页面
|
||||
ParamsStation(item) {
|
||||
console.log(
|
||||
item,
|
||||
this.form.nurseStationId,
|
||||
"打印this.queryParams.nurseStationId"
|
||||
);
|
||||
this.info();
|
||||
this.stationidIndex = this.form.nurseStationId;
|
||||
this.nurseStationshow = true;
|
||||
@ -584,10 +579,8 @@ export default {
|
||||
// 设置修改的图片地址
|
||||
setUpdateImgUrl(e) {
|
||||
this.form.groupQrCodeUrl = e;
|
||||
console.log(this.form);
|
||||
},
|
||||
imgUrl(imgUrl) {
|
||||
console.log(this.form);
|
||||
// this.$set(this.form,"groupQrCodeInfoDTOList",[])
|
||||
this.form.groupQrCodeInfoDTOList.forEach(e => {
|
||||
this.$set(e, "groupQrCodeUrl", imgUrl);
|
||||
@ -609,7 +602,6 @@ export default {
|
||||
if (this.form.groupQrCodeUrl != this.imgone) {
|
||||
obj.pictureUrlList.push(this.form.groupQrCodeUrl);
|
||||
}
|
||||
console.log(obj);
|
||||
updatePicture(obj).then(res => {
|
||||
this.editopen = false;
|
||||
});
|
||||
@ -689,9 +681,7 @@ export default {
|
||||
this.reset();
|
||||
const id = row.id || this.ids;
|
||||
getGroupQrCodeInfo(id).then(response => {
|
||||
console.log(response.data);
|
||||
this.form = response.data;
|
||||
|
||||
// this.form.nurseStationName = item.nurseStationName;
|
||||
// this.form.nurseStationId = item.id;
|
||||
this.imgone = this.form.groupQrCodeUrl;
|
||||
@ -728,7 +718,6 @@ export default {
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
console.log(row);
|
||||
const ids = row.id || this.ids;
|
||||
const groupNames = row.groupName || this.groupNames;
|
||||
this.$modal
|
||||
|
||||
@ -282,7 +282,6 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
imgs(item) {
|
||||
console.log(item);
|
||||
this.imgsurl.pictureUrlList.push(item);
|
||||
},
|
||||
/** 查询医院信息管理列表 */
|
||||
@ -290,7 +289,6 @@ export default {
|
||||
this.loading = true;
|
||||
listHospital(this.queryParams).then(response => {
|
||||
this.hospitalList = response.rows;
|
||||
console.log(this.hospitalList);
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
@ -345,7 +343,6 @@ export default {
|
||||
const id = row.id || this.ids;
|
||||
getHospital(id).then(response => {
|
||||
this.form = response.data;
|
||||
console.log(this.form);
|
||||
this.open = true;
|
||||
this.title = "修改医院信息管理";
|
||||
});
|
||||
|
||||
@ -659,9 +659,7 @@ export default {
|
||||
// add
|
||||
|
||||
nurseclick(row) {
|
||||
console.log(row);
|
||||
// if (this.homenumber) {
|
||||
// console.log(this.homenumber);
|
||||
// this.form.hospitalName = row.hospitalName;
|
||||
// this.form.hospitalId = row.id;
|
||||
// } else {
|
||||
@ -697,7 +695,6 @@ export default {
|
||||
this.addresetQuery();
|
||||
this.form.hospitalId = item.hospitalId;
|
||||
this.nnerVisibleindex = index;
|
||||
console.log(this.nnerVisibleindex);
|
||||
this.innerVisible = true;
|
||||
// this.homenumber = item;
|
||||
},
|
||||
@ -728,7 +725,6 @@ export default {
|
||||
info() {
|
||||
list(this.hospitalqueryParams).then((response) => {
|
||||
this.infolist = response.rows;
|
||||
console.log(this.infolist);
|
||||
this.total2 = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
|
||||
@ -624,7 +624,6 @@ export default {
|
||||
informationInfoinfo() {
|
||||
listInformationCategory(this.informationqueryParams).then((response) => {
|
||||
this.infolist = response.rows;
|
||||
console.log(this.infolist);
|
||||
this.total2 = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
@ -650,7 +649,6 @@ export default {
|
||||
this.loading = true;
|
||||
listInformationInfo(this.queryParams).then((response) => {
|
||||
this.informationInfoList = response.rows;
|
||||
console.log(this.informationInfoList);
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
@ -675,7 +673,6 @@ export default {
|
||||
this.reset();
|
||||
},
|
||||
nurseclick(row) {
|
||||
console.log(row);
|
||||
this.form.informationCategoryId = row.id;
|
||||
this.form.informationCategoryName = row.informationCategoryName;
|
||||
this.innerVisible = false;
|
||||
|
||||
@ -184,7 +184,6 @@ export default {
|
||||
}
|
||||
this.getList();
|
||||
this.innerrefund = false;
|
||||
console.log(res);
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
@ -293,7 +292,6 @@ export default {
|
||||
this.nursePersonid = row.nurseStationPersonId;
|
||||
this.nurseName = row.nursePersonName;
|
||||
this.nursePersonNameinfo = false;
|
||||
console.log(row);
|
||||
},
|
||||
// 确认取消预约
|
||||
cencel(row) {
|
||||
@ -363,8 +361,6 @@ export default {
|
||||
handleQuery2() {
|
||||
getPerson(this.querynursePersonname).then((res) => {
|
||||
this.dispatchlist = res.rows;
|
||||
console.log(this.querynursePersonname);
|
||||
// this.innerdispatch = true;
|
||||
});
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
@ -388,7 +384,6 @@ export default {
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
// console.log('row :>> ', row);
|
||||
this.$confirm("是否确认删除订单信息的数据项?", "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
|
||||
@ -645,9 +645,7 @@ export default {
|
||||
methods: {
|
||||
// 重置密码
|
||||
handleResetPwd(row) {
|
||||
console.log(row);
|
||||
const id = row.id;
|
||||
console.log(id);
|
||||
// const id=row.userId
|
||||
this.$prompt("请输入新的密码", "提示", {
|
||||
confirmButtonText: "确定",
|
||||
@ -657,7 +655,6 @@ export default {
|
||||
inputErrorMessage: "用户密码长度必须介于 5 和 20 之间",
|
||||
})
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
const params = {
|
||||
id,
|
||||
password: res.value,
|
||||
@ -670,7 +667,6 @@ export default {
|
||||
},
|
||||
// 查询省事件
|
||||
province(item) {
|
||||
console.log(item);
|
||||
this.queryParams.city = "";
|
||||
this.queryParams.area = "";
|
||||
this.queryParams.areaCode = "";
|
||||
@ -678,9 +674,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;
|
||||
});
|
||||
},
|
||||
@ -690,41 +684,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);
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -732,10 +717,8 @@ export default {
|
||||
},
|
||||
Provincelist() {
|
||||
FirstLevel(this.getProvincequeryParams).then((res) => {
|
||||
console.log(res);
|
||||
this.arealist = res.data;
|
||||
this.total2 = res.total;
|
||||
console.log(this.arealist);
|
||||
});
|
||||
},
|
||||
/** 查询被护理人基本信息列表 */
|
||||
|
||||
@ -239,7 +239,6 @@ export default {
|
||||
//接收图片所属的item
|
||||
imgclassifyItem(item) {
|
||||
let items = JSON.parse(item);
|
||||
console.log(items)
|
||||
if (items.idd && !items.id) {
|
||||
this.form.nurseStationPersonCertificateList.forEach((e) => {
|
||||
if (e.idd == items.idd) {
|
||||
@ -288,7 +287,6 @@ export default {
|
||||
},
|
||||
// 护理站名称
|
||||
nurseclick(row) {
|
||||
console.log(row);
|
||||
this.nursename = row.nurseStationName;
|
||||
this.stationid = row.id;
|
||||
this.form.nurseStationId = row.id;
|
||||
|
||||
@ -494,7 +494,6 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
imgs(item) {
|
||||
console.log(item);
|
||||
this.imgsurl.pictureUrlList.push(item);
|
||||
},
|
||||
/** 查询泉医到家平台系统业务设置信息列表 */
|
||||
@ -587,7 +586,6 @@ export default {
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
console.log(row)
|
||||
const ids = row.id || this.ids;
|
||||
const settingsNames=row.settingsName||this.settingsNames
|
||||
this.$modal
|
||||
|
||||
@ -84,15 +84,15 @@ export default {
|
||||
labelDescription: "",
|
||||
sort: "",
|
||||
idd: 1,
|
||||
},],
|
||||
}, ],
|
||||
// 护理站信息表格数据
|
||||
stationList: [{
|
||||
sysAreaVOList: [{
|
||||
provinceName: null,
|
||||
cityName: null,
|
||||
streetName: null,
|
||||
},],
|
||||
},],
|
||||
}, ],
|
||||
}, ],
|
||||
nurseStationlist: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
@ -126,7 +126,7 @@ export default {
|
||||
resid: null,
|
||||
// 表单校验
|
||||
rules: {
|
||||
|
||||
|
||||
// morningOpenStartTime: [
|
||||
// { required: true, message: "请选择上午营业时间", trigger: "blur" },
|
||||
// ],
|
||||
@ -150,13 +150,13 @@ export default {
|
||||
// validator: checkMobile,
|
||||
trigger: "blur",
|
||||
message: "请输入手机号",
|
||||
},],
|
||||
}, ],
|
||||
|
||||
dutyPhone: [{
|
||||
// validator: checkMobile2,
|
||||
trigger: "blur",
|
||||
message: "请输入联系电话",
|
||||
},],
|
||||
}, ],
|
||||
sort: [{ required: true, message: "排序不能为空", trigger: "blur" }],
|
||||
address: [{ required: true, message: "地址不能为空", trigger: "blur" }],
|
||||
longitude: [
|
||||
@ -176,7 +176,7 @@ export default {
|
||||
],
|
||||
},
|
||||
|
||||
checkedDataList: []// 选择的护理机构分类
|
||||
checkedDataList: [] // 选择的护理机构分类
|
||||
};
|
||||
},
|
||||
created() {
|
||||
@ -195,20 +195,16 @@ 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 = [{
|
||||
labelDescription: "",
|
||||
sort: "",
|
||||
idd: 1,
|
||||
},];
|
||||
}, ];
|
||||
} else {
|
||||
this.looknurseStationLabel.splice(index, 1);
|
||||
}
|
||||
|
||||
console.log(this.form.nurseStationLabelList);
|
||||
},
|
||||
addnurseStationLabelList() {
|
||||
if (this.looknurseStationLabel.length == 5) {
|
||||
@ -222,12 +218,10 @@ export default {
|
||||
};
|
||||
this.looknurseStationLabel.push(obj);
|
||||
}
|
||||
console.log(this.looknurseStationLabel);
|
||||
},
|
||||
//点击街道
|
||||
clickstreet(item) {
|
||||
this.form.areaCode = item.areaCode;
|
||||
console.log(item, this.form);
|
||||
},
|
||||
//点击区县城
|
||||
clickarea(item) {
|
||||
@ -276,10 +270,10 @@ export default {
|
||||
obj.pictureUrlList.push(this.form.stationPictureUrl);
|
||||
}
|
||||
if (obj.pictureUrlList.length > 0) {
|
||||
updatePicture(obj).then((res) => { });
|
||||
updatePicture(obj).then((res) => {});
|
||||
}
|
||||
if (this.imgsurl.pictureUrlList.length > 0) {
|
||||
updatePicture(this.imgsurl).then((res) => { });
|
||||
updatePicture(this.imgsurl).then((res) => {});
|
||||
}
|
||||
this.imgsurl = { pictureUrlList: [] };
|
||||
this.open = false;
|
||||
@ -343,8 +337,7 @@ export default {
|
||||
// 若已存在id 则为删除
|
||||
if (this.checkedDataList.find(el => el == e.id)) {
|
||||
this.checkedDataList = this.checkedDataList.filter(ele => ele != e.id)
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
// 不存在 添加进id
|
||||
this.checkedDataList.push(e.id);
|
||||
}
|
||||
@ -432,7 +425,7 @@ export default {
|
||||
labelDescription: "",
|
||||
sort: "",
|
||||
idd: 1,
|
||||
},];
|
||||
}, ];
|
||||
this.title = "添加护理站信息";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
@ -454,7 +447,6 @@ export default {
|
||||
this.looknurseStationLabel = response.data.nurseStationLabel;
|
||||
this.open = true;
|
||||
this.loading = false;
|
||||
console.log(this.form);
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
@ -496,7 +488,7 @@ export default {
|
||||
}
|
||||
this.imgsurl = { pictureUrlList: [] };
|
||||
if (obj.pictureUrlList.length > 0) {
|
||||
updatePicture(obj).then((res) => { });
|
||||
updatePicture(obj).then((res) => {});
|
||||
}
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
@ -521,7 +513,7 @@ export default {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal
|
||||
.confirm("是否确认删除此护理站信息?")
|
||||
.then(function () {
|
||||
.then(function() {
|
||||
return delStation(ids);
|
||||
})
|
||||
.then(() => {
|
||||
@ -529,19 +521,19 @@ export default {
|
||||
obj.pictureUrlList.push(row.stationIntroducePcitureUrl);
|
||||
obj.pictureUrlList.push(row.stationPictureUrl);
|
||||
if (obj.pictureUrlList.length > 0) {
|
||||
updatePicture(obj).then((res) => { });
|
||||
updatePicture(obj).then((res) => {});
|
||||
}
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(() => { });
|
||||
.catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download(
|
||||
"system/station/export", {
|
||||
...this.getListByUserquery,
|
||||
},
|
||||
...this.getListByUserquery,
|
||||
},
|
||||
`station_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
},
|
||||
@ -579,4 +571,4 @@ export default {
|
||||
this.upload.isUploading = true;
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
@ -168,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 == "") {
|
||||
@ -294,7 +293,6 @@ export default {
|
||||
if (this.types == "certificateUrl") {
|
||||
this.items.certificateUrl = response.imgUrl;
|
||||
this.$emit("item", JSON.stringify(this.items));
|
||||
console.log(this.item);
|
||||
}
|
||||
if (this.types == "personCertificateUrl") {
|
||||
this.items.certificateUrl = response.imgUrl;
|
||||
|
||||
@ -490,8 +490,6 @@ export default {
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
|
||||
console.log(this.form);
|
||||
this.$refs["form"].validate((valid) => {
|
||||
if (valid) {
|
||||
|
||||
|
||||
@ -96,53 +96,53 @@ export default {
|
||||
required: true,
|
||||
message: "请选择所属护理站",
|
||||
trigger: "blur",
|
||||
},],
|
||||
}, ],
|
||||
consumableDetail: [{
|
||||
required: true,
|
||||
message: "请输入耗材包名称",
|
||||
trigger: "blur",
|
||||
},],
|
||||
}, ],
|
||||
consumableUnit: [{
|
||||
required: true,
|
||||
message: "请输入耗材包单位",
|
||||
trigger: "blur",
|
||||
},],
|
||||
}, ],
|
||||
consumablePrice: [{
|
||||
required: true,
|
||||
message: "请输入耗材包价格",
|
||||
trigger: "blur",
|
||||
},],
|
||||
}, ],
|
||||
sort: [{
|
||||
required: true,
|
||||
message: "请输入排序",
|
||||
trigger: "blur",
|
||||
},],
|
||||
}, ],
|
||||
nurseStationConsumables: {
|
||||
consumableDetail: [{
|
||||
required: true,
|
||||
message: "请输入耗材包名称",
|
||||
trigger: "blur",
|
||||
},],
|
||||
}, ],
|
||||
nurseStationId: [{
|
||||
required: true,
|
||||
message: "请选择所属护理站",
|
||||
trigger: "blur",
|
||||
},],
|
||||
}, ],
|
||||
consumableUnit: [{
|
||||
required: true,
|
||||
message: "请输入耗材包单位",
|
||||
trigger: "blur",
|
||||
},],
|
||||
}, ],
|
||||
consumablePrice: [{
|
||||
required: true,
|
||||
message: "请输入耗材包价格",
|
||||
trigger: "blur",
|
||||
},],
|
||||
}, ],
|
||||
sort: [{
|
||||
required: true,
|
||||
message: "请输入排序",
|
||||
trigger: "blur",
|
||||
},],
|
||||
}, ],
|
||||
},
|
||||
},
|
||||
homenumber: null,
|
||||
@ -207,7 +207,6 @@ export default {
|
||||
},
|
||||
//页面所属护理站
|
||||
ParamsStation(item) {
|
||||
console.log(this.queryParams)
|
||||
this.open3 = true
|
||||
this.homenumber = item
|
||||
this.stationid = this.queryParams.nurseStationId;
|
||||
@ -280,7 +279,7 @@ export default {
|
||||
consumablePrice: "",
|
||||
consumableDetail: null,
|
||||
nurseStationName: "请选择所属护理站",
|
||||
},],
|
||||
}, ],
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
@ -393,21 +392,21 @@ export default {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal
|
||||
.confirm("是否确认删除?")
|
||||
.then(function () {
|
||||
.then(function() {
|
||||
return delStationConsumable(ids);
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(() => { });
|
||||
.catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download(
|
||||
"system/stationConsumable/export", {
|
||||
...this.queryParams,
|
||||
},
|
||||
...this.queryParams,
|
||||
},
|
||||
`stationConsumable_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
},
|
||||
@ -424,4 +423,4 @@ export default {
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
@ -587,7 +587,6 @@ export default {
|
||||
methods: {
|
||||
listinfo() {
|
||||
list(this.nurseStationqueryParams).then(res => {
|
||||
console.log(res);
|
||||
this.nurseStationlist = res.rows;
|
||||
this.total2 = res.total;
|
||||
});
|
||||
@ -733,7 +732,6 @@ export default {
|
||||
// ) {getList
|
||||
// } else {
|
||||
// }
|
||||
console.log(this.form);
|
||||
this.postOptions = response.posts;
|
||||
this.roleOptions = response.roles;
|
||||
this.form.postIds = response.postIds;
|
||||
@ -766,7 +764,6 @@ export default {
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm: function() {
|
||||
console.log(this.form);
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
// this.form.nurseStationIds = JSON.stringify(this.form.nurseStationIds);
|
||||
@ -780,7 +777,6 @@ export default {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
// console.log('bbb',this.form)
|
||||
});
|
||||
} else {
|
||||
// this.form.nurseStationIds = Number(this.form.nurseStationIds);
|
||||
@ -791,7 +787,6 @@ export default {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
// console.log('bbb',this.form)
|
||||
});
|
||||
}
|
||||
} else {
|
||||
|
||||
@ -13,9 +13,7 @@ export default {
|
||||
methods: {
|
||||
info() {
|
||||
getListByUser().then((res) => {
|
||||
console.log(res);
|
||||
if (res.rows[0].isAdmin == "1") {
|
||||
console.log(true);
|
||||
} else {
|
||||
this.$emit("itemlist", res.rows);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user