This commit is contained in:
曹辉 2023-04-10 10:26:00 +08:00
parent 063424530d
commit 2792f4996a
23 changed files with 68 additions and 194 deletions

View File

@ -2,31 +2,31 @@ import { mergeRecursive } from "@/utils/xinyilu";
import dictConverter from './DictConverter' import dictConverter from './DictConverter'
export const options = { export const options = {
metas: { metas: {
'*': { '*': {
/** /**
* 字典请求方法签名为function(dictMeta: DictMeta): Promise * 字典请求方法签名为function(dictMeta: DictMeta): Promise
*/ */
request: (dictMeta) => { request: (dictMeta) => {
console.log(`load dict ${dictMeta.type}`) console.log(`load dict ${dictMeta.type}`)
return Promise.resolve([]) return Promise.resolve([])
}, },
/** /**
* 字典响应数据转换器方法签名为function(response: Object, dictMeta: DictMeta): DictData * 字典响应数据转换器方法签名为function(response: Object, dictMeta: DictMeta): DictData
*/ */
responseConverter, responseConverter,
labelField: 'label', labelField: 'label',
valueField: 'value', valueField: 'value',
},
}, },
}, /**
/** * 默认标签字段
* 默认标签字段 */
*/ DEFAULT_LABEL_FIELDS: ['label', 'name', 'title'],
DEFAULT_LABEL_FIELDS: ['label', 'name', 'title'], /**
/** * 默认值字段
* 默认值字段 */
*/ DEFAULT_VALUE_FIELDS: ['value', 'id', 'uid', 'key'],
DEFAULT_VALUE_FIELDS: ['value', 'id', 'uid', 'key'],
} }
/** /**
@ -36,16 +36,16 @@ export const options = {
* @returns {DictData} * @returns {DictData}
*/ */
function responseConverter(response, dictMeta) { function responseConverter(response, dictMeta) {
const dicts = response.content instanceof Array ? response.content : response const dicts = response.content instanceof Array ? response.content : response
if (dicts === undefined) { if (dicts === undefined) {
console.warn(`no dict data of "${dictMeta.type}" found in the response`) console.warn(`no dict data of "${dictMeta.type}" found in the response`)
return [] return []
} }
return dicts.map(d => dictConverter(d, dictMeta)) return dicts.map(d => dictConverter(d, dictMeta))
} }
export function mergeOptions(src) { export function mergeOptions(src) {
mergeRecursive(options, src) mergeRecursive(options, src)
} }
export default options export default options

View File

@ -486,11 +486,9 @@ export default {
getList() { getList() {
informationStatistics(this.queryParams).then((response) => { informationStatistics(this.queryParams).then((response) => {
console.log(response);
this.List = response.data; this.List = response.data;
}); });
summaryToday(this.queryParams).then((response) => { summaryToday(this.queryParams).then((response) => {
console.log(response);
this.summaryTodayList = response.data; this.summaryTodayList = response.data;
}); });
}, },

View File

@ -411,7 +411,6 @@ export default {
if (response.data.goodAttributeDetailsLists) { if (response.data.goodAttributeDetailsLists) {
this.goodDetailsLists = response.data.goodAttributeDetailsLists; this.goodDetailsLists = response.data.goodAttributeDetailsLists;
} }
// console.log(this.form.parentIdList)
// this.form.goodsCategoryId = this.form.goodsCategoryName // this.form.goodsCategoryId = this.form.goodsCategoryName
// this.form.value = this.form.goodsCategoryId // this.form.value = this.form.goodsCategoryId
// this.form.label = this.form.goodsCategoryName // this.form.label = this.form.goodsCategoryName
@ -423,8 +422,6 @@ export default {
submitForm() { submitForm() {
this.form.goodAttributeDetailsLists = []; this.form.goodAttributeDetailsLists = [];
this.form.goodDetailsLists = this.goodDetailsLists; this.form.goodDetailsLists = this.goodDetailsLists;
console.log(this.form.goodDetailsLists)
if (!this.form.goodDetailsLists.integralExchangeFlag) { if (!this.form.goodDetailsLists.integralExchangeFlag) {
this.form.goodDetailsLists.integralExchangeFlag = null this.form.goodDetailsLists.integralExchangeFlag = null
} }
@ -540,4 +537,4 @@ export default {
}); });
}, },
}, },
}; };

View File

@ -456,7 +456,6 @@ export default {
// //
this.deletNewImgs.push(imgUrlData.certificateUrl); this.deletNewImgs.push(imgUrlData.certificateUrl);
this.objitem.push(imgUrlData.certificateUrl); this.objitem.push(imgUrlData.certificateUrl);
console.log(item,'接受图片item')
let items = JSON.parse(item); let items = JSON.parse(item);
if (items.idd && !items.id) { if (items.idd && !items.id) {
this.form.certificateUrlList.forEach(e => { this.form.certificateUrlList.forEach(e => {
@ -469,14 +468,12 @@ export default {
} }
}, },
imgUrl(imgUrl) { imgUrl(imgUrl) {
console.log(imgUrl)
}, },
innerVisiblecancel() { innerVisiblecancel() {
this.innerVisible = false; this.innerVisible = false;
}, },
nurseclick(row) { nurseclick(row) {
console.log(row);
this.form.personName = row.personName; this.form.personName = row.personName;
this.form.hospitalPersonId = row.id; this.form.hospitalPersonId = row.id;
this.innerVisible = false; this.innerVisible = false;
@ -521,7 +518,6 @@ export default {
obj.pictureUrlList.push(e.certificateUrl); obj.pictureUrlList.push(e.certificateUrl);
}); });
} }
console.log("2222",this.deletNewImgs)
updatePicture({ pictureUrlList: this.deletNewImgs }).then(res => { updatePicture({ pictureUrlList: this.deletNewImgs }).then(res => {
this.open = false; this.open = false;
}); });
@ -585,13 +581,10 @@ export default {
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
console.log(row)
this.open = true; this.open = true;
const hospitalPersonId = row.hospitalPersonId || this.hospitalPersonIds; const hospitalPersonId = row.hospitalPersonId || this.hospitalPersonIds;
getCertificate(hospitalPersonId).then((response) => { getCertificate(hospitalPersonId).then((response) => {
console.log(response,'打印返回的值')
this.form = response.data; this.form = response.data;
this.title = "修改健康咨询-科室人员资质证书信息"; this.title = "修改健康咨询-科室人员资质证书信息";
}); });
this.reset(); this.reset();
@ -619,7 +612,6 @@ export default {
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
console.log(row)
const hospitalPersonIds = row.hospitalPersonId || this.hospitalPersonIds; const hospitalPersonIds = row.hospitalPersonId || this.hospitalPersonIds;
this.$modal this.$modal
.confirm( .confirm(

View File

@ -504,7 +504,6 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
console.log(row);
this.$modal this.$modal
.confirm("是否确认删除?") .confirm("是否确认删除?")
.then(function() { .then(function() {

View File

@ -642,28 +642,21 @@ export default {
methods: { methods: {
clickcode2(item) { clickcode2(item) {
this.form.areaCode = Number(item.areaCode); this.form.areaCode = Number(item.areaCode);
console.log(this.form);
this.$forceUpdate() this.$forceUpdate()
}, },
clickcode(item, index) { clickcode(item, index) {
console.log(item);
this.form.communityInfoList[index].areaCode = Number(item.areaCode); this.form.communityInfoList[index].areaCode = Number(item.areaCode);
// this.form.communityInfoList[index].areaCode = Number(this.form.communityInfoList[index].areaCode); // this.form.communityInfoList[index].areaCode = Number(this.form.communityInfoList[index].areaCode);
console.log(this.form);
}, },
// //
province(item) { province(item) {
// this.form.xxx[index].code='' // this.form.xxx[index].code=''
console.log(item);
this.queryParams.city = ""; this.queryParams.city = "";
this.queryParams.area = ""; this.queryParams.area = "";
this.queryParams.areaCode = ""; this.queryParams.areaCode = "";
SecondaryLevelInfo(item.id).then((res) => { SecondaryLevelInfo(item.id).then((res) => {
console.log(res);
// this.SecondaryLevelInfolist = res.data; // this.SecondaryLevelInfolist = res.data;
// console.log(this.SecondaryLevelInfolist);
this.citylist = res.data; this.citylist = res.data;
}); });
}, },
@ -672,35 +665,27 @@ export default {
this.form.communityInfoList[index].city = ""; this.form.communityInfoList[index].city = "";
this.form.communityInfoList[index].area = ""; this.form.communityInfoList[index].area = "";
this.form.communityInfoList[index].areaCode = ""; this.form.communityInfoList[index].areaCode = "";
console.log(item);
SecondaryLevelInfo(item.id).then((res) => { SecondaryLevelInfo(item.id).then((res) => {
console.log(res);
// this.SecondaryLevelInfolist = res.data; // this.SecondaryLevelInfolist = res.data;
// console.log(this.SecondaryLevelInfolist);
this.citylist = res.data; this.citylist = res.data;
}); });
}, },
// //
province3(item) { province3(item) {
// this.form.xxx[index].code='' // this.form.xxx[index].code=''
console.log(item);
this.form.city = ""; this.form.city = "";
this.form.area = ""; this.form.area = "";
this.form.code = ""; this.form.code = "";
SecondaryLevelInfo(item.id).then((res) => { SecondaryLevelInfo(item.id).then((res) => {
console.log(res);
// this.SecondaryLevelInfolist = res.data; // this.SecondaryLevelInfolist = res.data;
// console.log(this.SecondaryLevelInfolist);
this.citylist = res.data; this.citylist = res.data;
}); });
}, },
// //
clickcity(item) { clickcity(item) {
console.log(item);
SecondaryLevelInfo(item.id).then((res) => { SecondaryLevelInfo(item.id).then((res) => {
this.queryParams.area = ""; this.queryParams.area = "";
this.queryParams.areaCode = ""; this.queryParams.areaCode = "";
console.log(res);
this.arealists = res.data; this.arealists = res.data;
}); });
}, },
@ -712,19 +697,15 @@ export default {
// this.value3 = ""; // this.value3 = "";
this.form.communityInfoList[index].area = ""; this.form.communityInfoList[index].area = "";
this.form.communityInfoList[index].areaCode = ""; this.form.communityInfoList[index].areaCode = "";
console.log(item);
SecondaryLevelInfo(item.id).then((res) => { SecondaryLevelInfo(item.id).then((res) => {
console.log(res);
this.arealists = res.data; this.arealists = res.data;
}); });
}, },
// //
clickcity3(item) { clickcity3(item) {
console.log(item);
SecondaryLevelInfo(item.id).then((res) => { SecondaryLevelInfo(item.id).then((res) => {
this.form.area = ""; this.form.area = "";
this.form.code = ""; this.form.code = "";
console.log(res);
this.arealists = res.data; this.arealists = res.data;
}); });
}, },
@ -733,9 +714,7 @@ export default {
this.queryParams.areaCode = ""; this.queryParams.areaCode = "";
// this.queryParams.areaCode = ""; // this.queryParams.areaCode = "";
// this.value3 = ""; // this.value3 = "";
console.log(item);
SecondaryLevelInfo(item.id).then((res) => { SecondaryLevelInfo(item.id).then((res) => {
console.log(res);
this.streetlist = res.data; this.streetlist = res.data;
}); });
}, },
@ -745,9 +724,7 @@ export default {
// this.value3 = ""; // this.value3 = "";
this.form.communityInfoList[index].areaCode = ""; this.form.communityInfoList[index].areaCode = "";
console.log(item);
SecondaryLevelInfo(item.id).then((res) => { SecondaryLevelInfo(item.id).then((res) => {
console.log(res);
this.streetlist = res.data; this.streetlist = res.data;
}); });
}, },
@ -756,36 +733,28 @@ export default {
this.form.code = ""; this.form.code = "";
// this.queryParams.areaCode = ""; // this.queryParams.areaCode = "";
// this.value3 = ""; // this.value3 = "";
console.log(item);
SecondaryLevelInfo(item.id).then((res) => { SecondaryLevelInfo(item.id).then((res) => {
console.log(res);
this.streetlist = res.data; this.streetlist = res.data;
}); });
}, },
// //
clickstreet(item) { clickstreet(item) {
this.form.areaCode = item.areaCode; this.form.areaCode = item.areaCode;
console.log(this.form);
}, },
// clickstreet3(item) { // clickstreet3(item) {
// this.form.areaCode = item.areaCode; // this.form.areaCode = item.areaCode;
// // console.log(this.queryParams);
// }, // },
// //
loadMore() { loadMore() {
console.log("1");
var a = Math.ceil(this.total2 / 10); var a = Math.ceil(this.total2 / 10);
console.log(this.arealist.length);
if (this.arealist.length + 1 >= this.total2) { if (this.arealist.length + 1 >= this.total2) {
} else { } else {
if (this.getProvincequeryParams.pageNum >= a) { if (this.getProvincequeryParams.pageNum >= a) {
} else { } else {
this.getProvincequeryParams.pageNum++; this.getProvincequeryParams.pageNum++;
FirstLevels(this.getProvincequeryParams).then((res) => { FirstLevels(this.getProvincequeryParams).then((res) => {
console.log(res);
res.rows.forEach((e) => { res.rows.forEach((e) => {
this.arealist.push(e); this.arealist.push(e);
console.log(this.arealist);
}); });
}); });
} }
@ -793,16 +762,13 @@ export default {
}, },
Provincelist() { Provincelist() {
FirstLevels(this.getProvincequeryParams).then((res) => { FirstLevels(this.getProvincequeryParams).then((res) => {
console.log(res);
this.arealist = res.data; this.arealist = res.data;
this.total2 = res.total; this.total2 = res.total;
console.log(this.arealist);
}); });
}, },
//delcommunity //delcommunity
delcommunity(index) { delcommunity(index) {
this.form.communityInfoList.splice(index, 1); this.form.communityInfoList.splice(index, 1);
console.log(this.form.communityInfoList);
}, },
//addcommunity //addcommunity
addcommunity() { addcommunity() {
@ -944,16 +910,13 @@ export default {
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
console.log(row);
const id = row.id || this.ids; const id = row.id || this.ids;
getCommunityInfo(id).then((response) => { getCommunityInfo(id).then((response) => {
this.form = response.data; this.form = response.data;
this.title = "修改居住社区信息"; this.title = "修改居住社区信息";
this.form.code = null; this.form.code = null;
console.log(1);
SubordinateRegions(response.data.areaCode).then((res) => { SubordinateRegions(response.data.areaCode).then((res) => {
console.log(res);
if (res.data !== null) { if (res.data !== null) {
this.form.province = String(res.data.provinceCode); this.form.province = String(res.data.provinceCode);
// this.form.province = res.data.provinceCode; // this.form.province = res.data.provinceCode;
@ -961,7 +924,6 @@ export default {
this.form.area = res.data.regionName; this.form.area = res.data.regionName;
// this.form.areaCode = res.data.streetName; // this.form.areaCode = res.data.streetName;
this.form.code = res.data.streetName; this.form.code = res.data.streetName;
console.log(this.form);
this.open = true; this.open = true;
} }
}); });

View File

@ -325,7 +325,6 @@ export default {
//deldisease //deldisease
deldisease(index) { deldisease(index) {
this.form.diseaseInfoList.splice(index, 1); this.form.diseaseInfoList.splice(index, 1);
console.log(this.form.diseaseInfoList);
}, },
//adddisease //adddisease
adddisease() { adddisease() {

View File

@ -210,7 +210,6 @@ export default {
}, },
// //
uploadImg() { uploadImg() {
// console.log(this.types);
this.$refs.cropper.getCropBlob((data) => { this.$refs.cropper.getCropBlob((data) => {
let formData = new FormData(); let formData = new FormData();
formData.append("file", data); formData.append("file", data);

View File

@ -158,7 +158,6 @@ export default {
}, },
//页面所属护理站 //页面所属护理站
ParamsStation(item) { ParamsStation(item) {
console.log(this.getListByUserquery)
this.info(); this.info();
this.nurseStationshow = true this.nurseStationshow = true
}, },
@ -256,14 +255,12 @@ export default {
}, },
// 查看录入物流单号弹框 // 查看录入物流单号弹框
seelogistics(row) { seelogistics(row) {
// console.log(id);
// this.queryexpressNo.id = row.id; // this.queryexpressNo.id = row.id;
this.queryexpressNo = JSON.parse(JSON.stringify(row)); this.queryexpressNo = JSON.parse(JSON.stringify(row));
this.innerlogistics = true; this.innerlogistics = true;
}, },
// 确定按钮 // 确定按钮
searchlogistics() { searchlogistics() {
console.log(this.queryexpressNo);
editExpressNo(this.queryexpressNo).then((res) => { editExpressNo(this.queryexpressNo).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.$modal.msgSuccess("录入成功"); this.$modal.msgSuccess("录入成功");
@ -280,10 +277,8 @@ export default {
}, },
// 确认退款 // 确认退款
refund(id) { refund(id) {
console.log(id);
goodsOrderRefundinfo(id).then((res) => { goodsOrderRefundinfo(id).then((res) => {
this.refundlist = res.data; this.refundlist = res.data;
console.log(this.refundlist);
this.innerrefund = true; this.innerrefund = true;
// this.getList(); // this.getList();
}); });

View File

@ -565,11 +565,6 @@ export default {
}, },
// //
ParamsStation(item) { ParamsStation(item) {
console.log(
item,
this.form.nurseStationId,
"打印this.queryParams.nurseStationId"
);
this.info(); this.info();
this.stationidIndex = this.form.nurseStationId; this.stationidIndex = this.form.nurseStationId;
this.nurseStationshow = true; this.nurseStationshow = true;
@ -584,10 +579,8 @@ export default {
// //
setUpdateImgUrl(e) { setUpdateImgUrl(e) {
this.form.groupQrCodeUrl = e; this.form.groupQrCodeUrl = e;
console.log(this.form);
}, },
imgUrl(imgUrl) { imgUrl(imgUrl) {
console.log(this.form);
// this.$set(this.form,"groupQrCodeInfoDTOList",[]) // this.$set(this.form,"groupQrCodeInfoDTOList",[])
this.form.groupQrCodeInfoDTOList.forEach(e => { this.form.groupQrCodeInfoDTOList.forEach(e => {
this.$set(e, "groupQrCodeUrl", imgUrl); this.$set(e, "groupQrCodeUrl", imgUrl);
@ -609,7 +602,6 @@ export default {
if (this.form.groupQrCodeUrl != this.imgone) { if (this.form.groupQrCodeUrl != this.imgone) {
obj.pictureUrlList.push(this.form.groupQrCodeUrl); obj.pictureUrlList.push(this.form.groupQrCodeUrl);
} }
console.log(obj);
updatePicture(obj).then(res => { updatePicture(obj).then(res => {
this.editopen = false; this.editopen = false;
}); });
@ -689,9 +681,7 @@ export default {
this.reset(); this.reset();
const id = row.id || this.ids; const id = row.id || this.ids;
getGroupQrCodeInfo(id).then(response => { getGroupQrCodeInfo(id).then(response => {
console.log(response.data);
this.form = response.data; this.form = response.data;
// this.form.nurseStationName = item.nurseStationName; // this.form.nurseStationName = item.nurseStationName;
// this.form.nurseStationId = item.id; // this.form.nurseStationId = item.id;
this.imgone = this.form.groupQrCodeUrl; this.imgone = this.form.groupQrCodeUrl;
@ -728,7 +718,6 @@ export default {
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
console.log(row);
const ids = row.id || this.ids; const ids = row.id || this.ids;
const groupNames = row.groupName || this.groupNames; const groupNames = row.groupName || this.groupNames;
this.$modal this.$modal

View File

@ -282,7 +282,6 @@ export default {
}, },
methods: { methods: {
imgs(item) { imgs(item) {
console.log(item);
this.imgsurl.pictureUrlList.push(item); this.imgsurl.pictureUrlList.push(item);
}, },
/** 查询医院信息管理列表 */ /** 查询医院信息管理列表 */
@ -290,7 +289,6 @@ export default {
this.loading = true; this.loading = true;
listHospital(this.queryParams).then(response => { listHospital(this.queryParams).then(response => {
this.hospitalList = response.rows; this.hospitalList = response.rows;
console.log(this.hospitalList);
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
}); });
@ -345,7 +343,6 @@ export default {
const id = row.id || this.ids; const id = row.id || this.ids;
getHospital(id).then(response => { getHospital(id).then(response => {
this.form = response.data; this.form = response.data;
console.log(this.form);
this.open = true; this.open = true;
this.title = "修改医院信息管理"; this.title = "修改医院信息管理";
}); });

View File

@ -659,9 +659,7 @@ export default {
// add // add
nurseclick(row) { nurseclick(row) {
console.log(row);
// if (this.homenumber) { // if (this.homenumber) {
// console.log(this.homenumber);
// this.form.hospitalName = row.hospitalName; // this.form.hospitalName = row.hospitalName;
// this.form.hospitalId = row.id; // this.form.hospitalId = row.id;
// } else { // } else {
@ -697,7 +695,6 @@ export default {
this.addresetQuery(); this.addresetQuery();
this.form.hospitalId = item.hospitalId; this.form.hospitalId = item.hospitalId;
this.nnerVisibleindex = index; this.nnerVisibleindex = index;
console.log(this.nnerVisibleindex);
this.innerVisible = true; this.innerVisible = true;
// this.homenumber = item; // this.homenumber = item;
}, },
@ -728,7 +725,6 @@ export default {
info() { info() {
list(this.hospitalqueryParams).then((response) => { list(this.hospitalqueryParams).then((response) => {
this.infolist = response.rows; this.infolist = response.rows;
console.log(this.infolist);
this.total2 = response.total; this.total2 = response.total;
this.loading = false; this.loading = false;
}); });

View File

@ -624,7 +624,6 @@ export default {
informationInfoinfo() { informationInfoinfo() {
listInformationCategory(this.informationqueryParams).then((response) => { listInformationCategory(this.informationqueryParams).then((response) => {
this.infolist = response.rows; this.infolist = response.rows;
console.log(this.infolist);
this.total2 = response.total; this.total2 = response.total;
this.loading = false; this.loading = false;
}); });
@ -650,7 +649,6 @@ export default {
this.loading = true; this.loading = true;
listInformationInfo(this.queryParams).then((response) => { listInformationInfo(this.queryParams).then((response) => {
this.informationInfoList = response.rows; this.informationInfoList = response.rows;
console.log(this.informationInfoList);
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
}); });
@ -675,7 +673,6 @@ export default {
this.reset(); this.reset();
}, },
nurseclick(row) { nurseclick(row) {
console.log(row);
this.form.informationCategoryId = row.id; this.form.informationCategoryId = row.id;
this.form.informationCategoryName = row.informationCategoryName; this.form.informationCategoryName = row.informationCategoryName;
this.innerVisible = false; this.innerVisible = false;

View File

@ -184,7 +184,6 @@ export default {
} }
this.getList(); this.getList();
this.innerrefund = false; this.innerrefund = false;
console.log(res);
}); });
}, },
// 取消按钮 // 取消按钮
@ -293,7 +292,6 @@ export default {
this.nursePersonid = row.nurseStationPersonId; this.nursePersonid = row.nurseStationPersonId;
this.nurseName = row.nursePersonName; this.nurseName = row.nursePersonName;
this.nursePersonNameinfo = false; this.nursePersonNameinfo = false;
console.log(row);
}, },
// 确认取消预约 // 确认取消预约
cencel(row) { cencel(row) {
@ -363,8 +361,6 @@ export default {
handleQuery2() { handleQuery2() {
getPerson(this.querynursePersonname).then((res) => { getPerson(this.querynursePersonname).then((res) => {
this.dispatchlist = res.rows; this.dispatchlist = res.rows;
console.log(this.querynursePersonname);
// this.innerdispatch = true;
}); });
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
@ -388,7 +384,6 @@ export default {
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
// console.log('row :>> ', row);
this.$confirm("是否确认删除订单信息的数据项?", "提示", { this.$confirm("是否确认删除订单信息的数据项?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",

View File

@ -645,9 +645,7 @@ export default {
methods: { methods: {
// //
handleResetPwd(row) { handleResetPwd(row) {
console.log(row);
const id = row.id; const id = row.id;
console.log(id);
// const id=row.userId // const id=row.userId
this.$prompt("请输入新的密码", "提示", { this.$prompt("请输入新的密码", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
@ -657,7 +655,6 @@ export default {
inputErrorMessage: "用户密码长度必须介于 5 和 20 之间", inputErrorMessage: "用户密码长度必须介于 5 和 20 之间",
}) })
.then((res) => { .then((res) => {
console.log(res);
const params = { const params = {
id, id,
password: res.value, password: res.value,
@ -670,7 +667,6 @@ export default {
}, },
// //
province(item) { province(item) {
console.log(item);
this.queryParams.city = ""; this.queryParams.city = "";
this.queryParams.area = ""; this.queryParams.area = "";
this.queryParams.areaCode = ""; this.queryParams.areaCode = "";
@ -678,9 +674,7 @@ export default {
// this.value2 = ""; // this.value2 = "";
// this.value3 = ""; // this.value3 = "";
SecondaryLevelInfo(item.id).then((res) => { SecondaryLevelInfo(item.id).then((res) => {
console.log(res);
this.SecondaryLevelInfolist = res.data; this.SecondaryLevelInfolist = res.data;
// console.log(this.SecondaryLevelInfolist);
this.citylist = res.data; this.citylist = res.data;
}); });
}, },
@ -690,41 +684,32 @@ export default {
this.queryParams.areaCode = ""; this.queryParams.areaCode = "";
// this.value2 = ""; // this.value2 = "";
// this.value3 = ""; // this.value3 = "";
console.log(item);
SecondaryLevelInfo(item.id).then((res) => { SecondaryLevelInfo(item.id).then((res) => {
console.log(res);
this.arealists = res.data; this.arealists = res.data;
}); });
}, },
// //
clickarea(item) { clickarea(item) {
// this.value3 = ""; // this.value3 = "";
console.log(item);
SecondaryLevelInfo(item.id).then((res) => { SecondaryLevelInfo(item.id).then((res) => {
console.log(res);
this.streetlist = res.data; this.streetlist = res.data;
}); });
}, },
// //
clickstreet(item) { clickstreet(item) {
this.form.areaCode = item.areaCode; this.form.areaCode = item.areaCode;
console.log(this.form);
}, },
// //
loadMore() { loadMore() {
console.log("1");
var a = Math.ceil(this.total2 / 10); var a = Math.ceil(this.total2 / 10);
console.log(this.arealist.length);
if (this.arealist.length + 1 >= this.total2) { if (this.arealist.length + 1 >= this.total2) {
} else { } else {
if (this.getProvincequeryParams.pageNum >= a) { if (this.getProvincequeryParams.pageNum >= a) {
} else { } else {
this.getProvincequeryParams.pageNum++; this.getProvincequeryParams.pageNum++;
FirstLevel(this.getProvincequeryParams).then((res) => { FirstLevel(this.getProvincequeryParams).then((res) => {
console.log(res);
res.rows.forEach((e) => { res.rows.forEach((e) => {
this.arealist.push(e); this.arealist.push(e);
console.log(this.arealist);
}); });
}); });
} }
@ -732,10 +717,8 @@ export default {
}, },
Provincelist() { Provincelist() {
FirstLevel(this.getProvincequeryParams).then((res) => { FirstLevel(this.getProvincequeryParams).then((res) => {
console.log(res);
this.arealist = res.data; this.arealist = res.data;
this.total2 = res.total; this.total2 = res.total;
console.log(this.arealist);
}); });
}, },
/** 查询被护理人基本信息列表 */ /** 查询被护理人基本信息列表 */

View File

@ -239,7 +239,6 @@ export default {
//接收图片所属的item //接收图片所属的item
imgclassifyItem(item) { imgclassifyItem(item) {
let items = JSON.parse(item); let items = JSON.parse(item);
console.log(items)
if (items.idd && !items.id) { if (items.idd && !items.id) {
this.form.nurseStationPersonCertificateList.forEach((e) => { this.form.nurseStationPersonCertificateList.forEach((e) => {
if (e.idd == items.idd) { if (e.idd == items.idd) {
@ -288,7 +287,6 @@ export default {
}, },
// 护理站名称 // 护理站名称
nurseclick(row) { nurseclick(row) {
console.log(row);
this.nursename = row.nurseStationName; this.nursename = row.nurseStationName;
this.stationid = row.id; this.stationid = row.id;
this.form.nurseStationId = row.id; this.form.nurseStationId = row.id;

View File

@ -494,7 +494,6 @@ export default {
}, },
methods: { methods: {
imgs(item) { imgs(item) {
console.log(item);
this.imgsurl.pictureUrlList.push(item); this.imgsurl.pictureUrlList.push(item);
}, },
/** 查询泉医到家平台系统业务设置信息列表 */ /** 查询泉医到家平台系统业务设置信息列表 */
@ -587,7 +586,6 @@ export default {
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
console.log(row)
const ids = row.id || this.ids; const ids = row.id || this.ids;
const settingsNames=row.settingsName||this.settingsNames const settingsNames=row.settingsName||this.settingsNames
this.$modal this.$modal

View File

@ -84,15 +84,15 @@ export default {
labelDescription: "", labelDescription: "",
sort: "", sort: "",
idd: 1, idd: 1,
},], }, ],
// 护理站信息表格数据 // 护理站信息表格数据
stationList: [{ stationList: [{
sysAreaVOList: [{ sysAreaVOList: [{
provinceName: null, provinceName: null,
cityName: null, cityName: null,
streetName: null, streetName: null,
},], }, ],
},], }, ],
nurseStationlist: [], nurseStationlist: [],
// 弹出层标题 // 弹出层标题
title: "", title: "",
@ -126,7 +126,7 @@ export default {
resid: null, resid: null,
// 表单校验 // 表单校验
rules: { rules: {
// morningOpenStartTime: [ // morningOpenStartTime: [
// { required: true, message: "请选择上午营业时间", trigger: "blur" }, // { required: true, message: "请选择上午营业时间", trigger: "blur" },
// ], // ],
@ -150,13 +150,13 @@ export default {
// validator: checkMobile, // validator: checkMobile,
trigger: "blur", trigger: "blur",
message: "请输入手机号", message: "请输入手机号",
},], }, ],
dutyPhone: [{ dutyPhone: [{
// validator: checkMobile2, // validator: checkMobile2,
trigger: "blur", trigger: "blur",
message: "请输入联系电话", message: "请输入联系电话",
},], }, ],
sort: [{ required: true, message: "排序不能为空", trigger: "blur" }], sort: [{ required: true, message: "排序不能为空", trigger: "blur" }],
address: [{ required: true, message: "地址不能为空", trigger: "blur" }], address: [{ required: true, message: "地址不能为空", trigger: "blur" }],
longitude: [ longitude: [
@ -176,7 +176,7 @@ export default {
], ],
}, },
checkedDataList: []// 选择的护理机构分类 checkedDataList: [] // 选择的护理机构分类
}; };
}, },
created() { created() {
@ -195,20 +195,16 @@ export default {
this.form.stationIntroducePcitureUrl = imgUrl; this.form.stationIntroducePcitureUrl = imgUrl;
}, },
delnurseStationLabelList(index, item) { delnurseStationLabelList(index, item) {
console.log(index, item);
console.log();
// this.looknurseStationLabel.splice(index,1) // this.looknurseStationLabel.splice(index,1)
if (this.looknurseStationLabel.length === 1) { if (this.looknurseStationLabel.length === 1) {
this.looknurseStationLabel = [{ this.looknurseStationLabel = [{
labelDescription: "", labelDescription: "",
sort: "", sort: "",
idd: 1, idd: 1,
},]; }, ];
} else { } else {
this.looknurseStationLabel.splice(index, 1); this.looknurseStationLabel.splice(index, 1);
} }
console.log(this.form.nurseStationLabelList);
}, },
addnurseStationLabelList() { addnurseStationLabelList() {
if (this.looknurseStationLabel.length == 5) { if (this.looknurseStationLabel.length == 5) {
@ -222,12 +218,10 @@ export default {
}; };
this.looknurseStationLabel.push(obj); this.looknurseStationLabel.push(obj);
} }
console.log(this.looknurseStationLabel);
}, },
//点击街道 //点击街道
clickstreet(item) { clickstreet(item) {
this.form.areaCode = item.areaCode; this.form.areaCode = item.areaCode;
console.log(item, this.form);
}, },
//点击区县城 //点击区县城
clickarea(item) { clickarea(item) {
@ -276,10 +270,10 @@ export default {
obj.pictureUrlList.push(this.form.stationPictureUrl); obj.pictureUrlList.push(this.form.stationPictureUrl);
} }
if (obj.pictureUrlList.length > 0) { if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => { }); updatePicture(obj).then((res) => {});
} }
if (this.imgsurl.pictureUrlList.length > 0) { if (this.imgsurl.pictureUrlList.length > 0) {
updatePicture(this.imgsurl).then((res) => { }); updatePicture(this.imgsurl).then((res) => {});
} }
this.imgsurl = { pictureUrlList: [] }; this.imgsurl = { pictureUrlList: [] };
this.open = false; this.open = false;
@ -343,8 +337,7 @@ export default {
// 若已存在id 则为删除 // 若已存在id 则为删除
if (this.checkedDataList.find(el => el == e.id)) { if (this.checkedDataList.find(el => el == e.id)) {
this.checkedDataList = this.checkedDataList.filter(ele => ele != e.id) this.checkedDataList = this.checkedDataList.filter(ele => ele != e.id)
} } else {
else {
// 不存在 添加进id // 不存在 添加进id
this.checkedDataList.push(e.id); this.checkedDataList.push(e.id);
} }
@ -432,7 +425,7 @@ export default {
labelDescription: "", labelDescription: "",
sort: "", sort: "",
idd: 1, idd: 1,
},]; }, ];
this.title = "添加护理站信息"; this.title = "添加护理站信息";
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
@ -454,7 +447,6 @@ export default {
this.looknurseStationLabel = response.data.nurseStationLabel; this.looknurseStationLabel = response.data.nurseStationLabel;
this.open = true; this.open = true;
this.loading = false; this.loading = false;
console.log(this.form);
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
@ -496,7 +488,7 @@ export default {
} }
this.imgsurl = { pictureUrlList: [] }; this.imgsurl = { pictureUrlList: [] };
if (obj.pictureUrlList.length > 0) { if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => { }); updatePicture(obj).then((res) => {});
} }
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
@ -521,7 +513,7 @@ export default {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal this.$modal
.confirm("是否确认删除此护理站信息?") .confirm("是否确认删除此护理站信息?")
.then(function () { .then(function() {
return delStation(ids); return delStation(ids);
}) })
.then(() => { .then(() => {
@ -529,19 +521,19 @@ export default {
obj.pictureUrlList.push(row.stationIntroducePcitureUrl); obj.pictureUrlList.push(row.stationIntroducePcitureUrl);
obj.pictureUrlList.push(row.stationPictureUrl); obj.pictureUrlList.push(row.stationPictureUrl);
if (obj.pictureUrlList.length > 0) { if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => { }); updatePicture(obj).then((res) => {});
} }
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
}) })
.catch(() => { }); .catch(() => {});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download( this.download(
"system/station/export", { "system/station/export", {
...this.getListByUserquery, ...this.getListByUserquery,
}, },
`station_${new Date().getTime()}.xlsx` `station_${new Date().getTime()}.xlsx`
); );
}, },
@ -579,4 +571,4 @@ export default {
this.upload.isUploading = true; this.upload.isUploading = true;
}, },
}, },
}; };

View File

@ -168,7 +168,6 @@ export default {
} else { } else {
this.video.VideoPath = baseurl + this.tovideo; this.video.VideoPath = baseurl + this.tovideo;
} }
console.log(this.video);
if (this.img == null) { if (this.img == null) {
this.options.img = null; this.options.img = null;
} else if (this.img == "") { } else if (this.img == "") {
@ -294,7 +293,6 @@ export default {
if (this.types == "certificateUrl") { if (this.types == "certificateUrl") {
this.items.certificateUrl = response.imgUrl; this.items.certificateUrl = response.imgUrl;
this.$emit("item", JSON.stringify(this.items)); this.$emit("item", JSON.stringify(this.items));
console.log(this.item);
} }
if (this.types == "personCertificateUrl") { if (this.types == "personCertificateUrl") {
this.items.certificateUrl = response.imgUrl; this.items.certificateUrl = response.imgUrl;

View File

@ -490,8 +490,6 @@ export default {
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
console.log(this.form);
this.$refs["form"].validate((valid) => { this.$refs["form"].validate((valid) => {
if (valid) { if (valid) {

View File

@ -96,53 +96,53 @@ export default {
required: true, required: true,
message: "请选择所属护理站", message: "请选择所属护理站",
trigger: "blur", trigger: "blur",
},], }, ],
consumableDetail: [{ consumableDetail: [{
required: true, required: true,
message: "请输入耗材包名称", message: "请输入耗材包名称",
trigger: "blur", trigger: "blur",
},], }, ],
consumableUnit: [{ consumableUnit: [{
required: true, required: true,
message: "请输入耗材包单位", message: "请输入耗材包单位",
trigger: "blur", trigger: "blur",
},], }, ],
consumablePrice: [{ consumablePrice: [{
required: true, required: true,
message: "请输入耗材包价格", message: "请输入耗材包价格",
trigger: "blur", trigger: "blur",
},], }, ],
sort: [{ sort: [{
required: true, required: true,
message: "请输入排序", message: "请输入排序",
trigger: "blur", trigger: "blur",
},], }, ],
nurseStationConsumables: { nurseStationConsumables: {
consumableDetail: [{ consumableDetail: [{
required: true, required: true,
message: "请输入耗材包名称", message: "请输入耗材包名称",
trigger: "blur", trigger: "blur",
},], }, ],
nurseStationId: [{ nurseStationId: [{
required: true, required: true,
message: "请选择所属护理站", message: "请选择所属护理站",
trigger: "blur", trigger: "blur",
},], }, ],
consumableUnit: [{ consumableUnit: [{
required: true, required: true,
message: "请输入耗材包单位", message: "请输入耗材包单位",
trigger: "blur", trigger: "blur",
},], }, ],
consumablePrice: [{ consumablePrice: [{
required: true, required: true,
message: "请输入耗材包价格", message: "请输入耗材包价格",
trigger: "blur", trigger: "blur",
},], }, ],
sort: [{ sort: [{
required: true, required: true,
message: "请输入排序", message: "请输入排序",
trigger: "blur", trigger: "blur",
},], }, ],
}, },
}, },
homenumber: null, homenumber: null,
@ -207,7 +207,6 @@ export default {
}, },
//页面所属护理站 //页面所属护理站
ParamsStation(item) { ParamsStation(item) {
console.log(this.queryParams)
this.open3 = true this.open3 = true
this.homenumber = item this.homenumber = item
this.stationid = this.queryParams.nurseStationId; this.stationid = this.queryParams.nurseStationId;
@ -280,7 +279,7 @@ export default {
consumablePrice: "", consumablePrice: "",
consumableDetail: null, consumableDetail: null,
nurseStationName: "请选择所属护理站", nurseStationName: "请选择所属护理站",
},], }, ],
}; };
this.resetForm("form"); this.resetForm("form");
}, },
@ -393,21 +392,21 @@ export default {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal this.$modal
.confirm("是否确认删除?") .confirm("是否确认删除?")
.then(function () { .then(function() {
return delStationConsumable(ids); return delStationConsumable(ids);
}) })
.then(() => { .then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
}) })
.catch(() => { }); .catch(() => {});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download( this.download(
"system/stationConsumable/export", { "system/stationConsumable/export", {
...this.queryParams, ...this.queryParams,
}, },
`stationConsumable_${new Date().getTime()}.xlsx` `stationConsumable_${new Date().getTime()}.xlsx`
); );
}, },
@ -424,4 +423,4 @@ export default {
}); });
}, },
}, },
}; };

View File

@ -587,7 +587,6 @@ export default {
methods: { methods: {
listinfo() { listinfo() {
list(this.nurseStationqueryParams).then(res => { list(this.nurseStationqueryParams).then(res => {
console.log(res);
this.nurseStationlist = res.rows; this.nurseStationlist = res.rows;
this.total2 = res.total; this.total2 = res.total;
}); });
@ -733,7 +732,6 @@ export default {
// ) {getList // ) {getList
// } else { // } else {
// } // }
console.log(this.form);
this.postOptions = response.posts; this.postOptions = response.posts;
this.roleOptions = response.roles; this.roleOptions = response.roles;
this.form.postIds = response.postIds; this.form.postIds = response.postIds;
@ -766,7 +764,6 @@ export default {
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm: function() { submitForm: function() {
console.log(this.form);
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
// this.form.nurseStationIds = JSON.stringify(this.form.nurseStationIds); // this.form.nurseStationIds = JSON.stringify(this.form.nurseStationIds);
@ -780,7 +777,6 @@ export default {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
// console.log('bbb',this.form)
}); });
} else { } else {
// this.form.nurseStationIds = Number(this.form.nurseStationIds); // this.form.nurseStationIds = Number(this.form.nurseStationIds);
@ -791,7 +787,6 @@ export default {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
// console.log('bbb',this.form)
}); });
} }
} else { } else {

View File

@ -13,9 +13,7 @@ export default {
methods: { methods: {
info() { info() {
getListByUser().then((res) => { getListByUser().then((res) => {
console.log(res);
if (res.rows[0].isAdmin == "1") { if (res.rows[0].isAdmin == "1") {
console.log(true);
} else { } else {
this.$emit("itemlist", res.rows); this.$emit("itemlist", res.rows);
} }