From 3db50e4fd550b536dc2e05902cc453870903ceca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Fri, 10 Mar 2023 15:54:10 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/hospitalDepartment/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/system/hospitalDepartment/index.vue b/src/views/system/hospitalDepartment/index.vue index 848fc88..be4a38b 100644 --- a/src/views/system/hospitalDepartment/index.vue +++ b/src/views/system/hospitalDepartment/index.vue @@ -263,6 +263,7 @@ > Date: Fri, 10 Mar 2023 17:16:03 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/hospital/index.vue | 25 +- src/views/system/hospitalDepartment/index.vue | 82 ++--- src/views/system/hospitalPerson/index.vue | 295 +++--------------- 3 files changed, 99 insertions(+), 303 deletions(-) diff --git a/src/views/system/hospital/index.vue b/src/views/system/hospital/index.vue index 3052b5f..6f36972 100644 --- a/src/views/system/hospital/index.vue +++ b/src/views/system/hospital/index.vue @@ -128,7 +128,8 @@ - + @@ -161,16 +162,16 @@ export default { components: { editor }, name: "Hospital", data() { - // 验证手机号的规则 - var checkMobile = (rule, value, cb) => { - // 验证手机号的正则表达式 - const regMobile = - /^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57]|19[0-9])[0-9]{8}$/; - if (regMobile.test(value)) { - return cb(); - } - cb(new Error("请输入正确的联系电话")); - }; + // // 验证手机号的规则 + // var checkMobile = (rule, value, cb) => { + // // 验证手机号的正则表达式 + // const regMobile = + // /^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57]|19[0-9])[0-9]{8}$/; + // if (regMobile.test(value)) { + // return cb(); + // } + // cb(new Error("请输入正确的联系电话")); + // }; return { // 遮罩层 loading: true, @@ -223,7 +224,7 @@ export default { phone: [ { required: true, - validator: checkMobile, + // validator: checkMobile, message: "", trigger: "blur", }, diff --git a/src/views/system/hospitalDepartment/index.vue b/src/views/system/hospitalDepartment/index.vue index be4a38b..67535af 100644 --- a/src/views/system/hospitalDepartment/index.vue +++ b/src/views/system/hospitalDepartment/index.vue @@ -8,7 +8,6 @@ v-show="showSearch" label-width="68px" > - @@ -262,11 +262,11 @@ :prop="`hospitalDepartmentInfoList.${index}.departmentSort`" > - - + + @@ -443,8 +455,8 @@ { - // 验证手机号的正则表达式 - const regMobile = - /^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57]|19[0-9])[0-9]{8}$/; - if (regMobile.test(value)) { - return cb(); - } - cb(new Error("请输入正确的联系电话")); - }; + // var checkMobile = (rule, value, cb) => { + // // 验证手机号的正则表达式 + // const regMobile = + // /^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57]|19[0-9])[0-9]{8}$/; + // if (regMobile.test(value)) { + // return cb(); + // } + // cb(new Error("请输入正确的联系电话")); + // }; return { // 遮罩层 loading: true, @@ -491,8 +503,8 @@ export default { hospitalqueryParams: { pageNum: 1, pageSize: 10, - hospitalCode:"", - hospitalName:"", + hospitalCode: "", + hospitalName: "", }, infolist: [], // 非单个禁用 @@ -570,7 +582,7 @@ export default { departmentPhone: [ { required: true, - validator: checkMobile, + // validator: checkMobile, trigger: "blur", message: "", }, @@ -601,7 +613,7 @@ export default { departmentPhone: [ { required: true, - validator: checkMobile, + // validator: checkMobile, trigger: "blur", message: "", }, @@ -621,7 +633,6 @@ export default { trigger: "blur", }, ], - }, }; }, @@ -648,11 +659,10 @@ export default { // this.form.hospitalName = row.hospitalName; // this.form.hospitalId = row.id; // } else { - this.form.hospitalDepartmentInfoList[ - this.nnerVisibleindex - ].hospitalName = row.hospitalName; - this.form.hospitalDepartmentInfoList[this.nnerVisibleindex].hospitalId = - row.id; + this.form.hospitalDepartmentInfoList[this.nnerVisibleindex].hospitalName = + row.hospitalName; + this.form.hospitalDepartmentInfoList[this.nnerVisibleindex].hospitalId = + row.id; // } this.innerVisible = false; }, @@ -695,8 +705,8 @@ export default { this.hospitalqueryParams = { pageNum: 1, pageSize: 10, - hospitalCode:"", - hospitalName:"", + hospitalCode: "", + hospitalName: "", }; this.info(); }, @@ -710,9 +720,9 @@ export default { }); }, info() { - list(this.hospitalqueryParams,).then((response) => { + list(this.hospitalqueryParams).then((response) => { this.infolist = response.rows; - console.log(this.infolist) + console.log(this.infolist); this.total2 = response.total; this.loading = false; }); @@ -752,9 +762,9 @@ export default { this.queryParams = { pageNum: 1, pageSize: 10, - hospitalName:"", - departmentCode:"", - departmentName:"", + hospitalName: "", + departmentCode: "", + departmentName: "", }; this.handleQuery(); }, @@ -805,7 +815,7 @@ export default { handleDelete(row) { const ids = row.id || this.ids; this.$modal - .confirm('是否确认删除此科室的信息?') + .confirm("是否确认删除此科室的信息?") .then(function () { return delHospitalDepartment(ids); }) diff --git a/src/views/system/hospitalPerson/index.vue b/src/views/system/hospitalPerson/index.vue index 566f08e..72a28ab 100644 --- a/src/views/system/hospitalPerson/index.vue +++ b/src/views/system/hospitalPerson/index.vue @@ -32,6 +32,7 @@ v-model="queryParams.personPhone" placeholder="请输入联系电话" clearable + oninput="value=value.replace(/[^\d]/g,'')" @keyup.enter.native="handleQuery" /> @@ -257,6 +258,7 @@ @@ -309,7 +311,7 @@ @@ -347,7 +349,7 @@ :prop="`hospitalPersonCertificateList.${index}.certificateUrl`" > @@ -782,7 +785,7 @@ prop="hospitalPersonCertificateList[0].certificateUrl" > 取 消 - - - - - @@ -1071,18 +863,18 @@ export default { } }; // 验证手机号的规则 - // var checkMobile = (rule, value, cb) => { - // // 验证手机号的正则表达式 - // const regMobile = - // // /^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57]|19[0-9])[0-9]{8}$/; - // // /^((0\\d{2,3}(-)?\\d{7,8})|((13[0-9]{1})|(14[0-9]{1})|(15[0-9]{1})|(16[2567]{1})(17[0-9]{1})|(18[0-9]{1})|(19[0-9]{1}))+\\d{8})$/; - // /^((0\d{2,3}(-)?\d{7,8})|(13[0-9]|14[0-9]|15[0-9]|16[2567]|17[0-9]|18[0-9]|19[0-9])+\d{8})$/; + var checkMobile = (rule, value, cb) => { + // 验证手机号的正则表达式 + const regMobile = + // /^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57]|19[0-9])[0-9]{8}$/; + // /^((0\\d{2,3}(-)?\\d{7,8})|((13[0-9]{1})|(14[0-9]{1})|(15[0-9]{1})|(16[2567]{1})(17[0-9]{1})|(18[0-9]{1})|(19[0-9]{1}))+\\d{8})$/; + /^((0\d{2,3}(-)?\d{7,8})|(13[0-9]|14[0-9]|15[0-9]|16[2567]|17[0-9]|18[0-9]|19[0-9])+\d{8})$/; - // if (regMobile.test(value)) { - // return cb(); - // } - // cb(new Error("请输入正确的联系电话")); - // }; + if (regMobile.test(value)) { + return cb(); + } + cb(new Error("请输入正确的联系电话")); + }; return { // 遮罩层 loading: true, @@ -1141,6 +933,7 @@ export default { open: false, addopen: false, homenumber: false, + deletupdata:[], // 查询参数 queryParams: { pageNum: 1, @@ -1237,7 +1030,7 @@ export default { personPhone: [ { required: true, - // validator: checkMobile, + validator: checkMobile, message: "请输入联系电话", trigger: "blur", }, @@ -1312,7 +1105,7 @@ export default { personPhone: [ { required: true, - // validator: checkMobile, + validator: checkMobile, message: "11", trigger: "blur", }, @@ -1399,11 +1192,17 @@ export default { this.form.certificateUrl = items.certificateUrl; } }, - imgUrl(imgUrl) { + console.log(imgUrl, "新上传"); + this.form.certificateUrl = imgUrl; + this.deletupdata.push(imgUrl); + console.log(this.deletupdata) + }, + imgUrl2(imgUrl) { console.log(imgUrl, "新上传"); this.form.personPictureUrl = imgUrl; this.deletUploadImages.push(imgUrl); + console.log( this.deletUploadImages) }, nurseclick(row) { @@ -1420,12 +1219,6 @@ export default { this.innerVisible = false; // this.stationcancel(); }, - // nurseclickxg(row) { - // console.log(row); - // this.form.hospitalName = row.hospitalName; - // this.hospitalId = row.id; - // this.innerVisiblexg = false; - // }, // 科室 departmentclick(row) { console.log(row); @@ -1442,28 +1235,16 @@ export default { } this.innerVisibledepartment = false; }, - // departmentclickxg(row) { - // console.log(row); - // this.form.departmentName = row.departmentName; - // this.departmentId = row.id; - // // } - // this.innerVisibledepartmentxg = false; - // }, + //医院关闭 innerVisiblecancel() { this.innerVisible = false; }, - - // innerVisiblecancelxg() { - // this.innerVisiblexg = false; - // }, //科室关闭 innerVisiblecanceldepart() { this.innerVisibledepartment = false; }, - // innerVisiblecanceldepartxg() { - // this.innerVisibledepartmentxg = false; - // }, + //删除deldisease deldisease(index) { this.form.hospitalPersonCertificateList.splice(index, 1); @@ -1504,16 +1285,10 @@ export default { this.hospitalId = this.form.hospitalId; } }, - // // 修改医院按钮 - // clickinnerVisiblexg() { - // this.addresetQuery(); - // this.innerVisiblexg = true; - // }, //新增科室按钮 clicklist(item) { this.homenumber = item; if (this.homenumber) { - // 为查询页面时 this.hospitalId = this.queryParams.hospitalId; } else { this.hospitalId = this.form.hospitalId; @@ -1576,6 +1351,14 @@ export default { } ); } + console.log("",this.deletupdata) + if (this.deletupdata.length > 0) { + updatePicture({ pictureUrlList: this.deletupdata }).then( + (res) => { + this.open = false; + } + ); + } this.imgsurl = { pictureUrlList: [] }; this.addopen = false; this.open = false; @@ -1614,6 +1397,8 @@ export default { ], }; this.deletUploadImages = []; + + this.deletupdata = []; // this.resetForm("form"); }, /** 搜索按钮操作 */ From 9f64999a0228b3430ee56f05e36460586d4d4c09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Fri, 10 Mar 2023 17:46:29 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/hospitalPerson/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/system/hospitalPerson/index.vue b/src/views/system/hospitalPerson/index.vue index 72a28ab..fdcb84c 100644 --- a/src/views/system/hospitalPerson/index.vue +++ b/src/views/system/hospitalPerson/index.vue @@ -928,6 +928,8 @@ export default { // 弹出层标题 title: "", deletNewImgs: [], + NewImgs:[], + objitempicture:[], objitem: [], // 是否显示弹出层 open: false, @@ -1199,6 +1201,8 @@ export default { console.log(this.deletupdata) }, imgUrl2(imgUrl) { + // this.NewImgs.push(imgUrl); + // this.objitempicture.push(imgUrl); console.log(imgUrl, "新上传"); this.form.personPictureUrl = imgUrl; this.deletUploadImages.push(imgUrl); @@ -1351,7 +1355,7 @@ export default { } ); } - console.log("",this.deletupdata) + console.log("11111",this.NewImgs) if (this.deletupdata.length > 0) { updatePicture({ pictureUrlList: this.deletupdata }).then( (res) => { From d1ff5be640a5376f028738ff916b909b4616e8a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Mon, 13 Mar 2023 10:16:25 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/hospitalPerson/index.vue | 22 ++++++++++------------ src/views/system/stationAvatar/index.vue | 7 +++++++ 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/views/system/hospitalPerson/index.vue b/src/views/system/hospitalPerson/index.vue index fdcb84c..d7ad162 100644 --- a/src/views/system/hospitalPerson/index.vue +++ b/src/views/system/hospitalPerson/index.vue @@ -311,7 +311,7 @@ @@ -606,7 +606,7 @@ /> - - + --> - + @@ -1201,8 +1201,6 @@ export default { console.log(this.deletupdata) }, imgUrl2(imgUrl) { - // this.NewImgs.push(imgUrl); - // this.objitempicture.push(imgUrl); console.log(imgUrl, "新上传"); this.form.personPictureUrl = imgUrl; this.deletUploadImages.push(imgUrl); @@ -1351,7 +1349,7 @@ export default { if (this.deletUploadImages.length > 0) { updatePicture({ pictureUrlList: this.deletUploadImages }).then( (res) => { - this.open = false; + // this.open = false; } ); } @@ -1359,13 +1357,13 @@ export default { if (this.deletupdata.length > 0) { updatePicture({ pictureUrlList: this.deletupdata }).then( (res) => { - this.open = false; + // this.open = false; } ); } this.imgsurl = { pictureUrlList: [] }; this.addopen = false; - this.open = false; + this.addopen = false; this.reset(); }, // 表单重置 @@ -1455,7 +1453,7 @@ export default { getHospitalPerson(id).then((response) => { this.form = response.data; this.imgone = this.form.certificateUrl; - this.open = true; + this.addopen = true; this.title = "修改科室人员信息"; }); }, @@ -1470,7 +1468,7 @@ export default { if (this.form.id != null) { updateHospitalPerson(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); - this.open = false; + this.addopen = false; this.getList(); }); } else { diff --git a/src/views/system/stationAvatar/index.vue b/src/views/system/stationAvatar/index.vue index 0b6d6e1..09a9d38 100644 --- a/src/views/system/stationAvatar/index.vue +++ b/src/views/system/stationAvatar/index.vue @@ -80,6 +80,7 @@
+ Date: Mon, 13 Mar 2023 10:26:34 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/hospital/index.vue | 4 +- src/views/system/hospitalDepartment/index.vue | 8 +- src/views/system/hospitalPerson/index.vue | 226 +----------------- src/views/system/settings/index.vue | 14 +- 4 files changed, 16 insertions(+), 236 deletions(-) diff --git a/src/views/system/hospital/index.vue b/src/views/system/hospital/index.vue index 6f36972..db8341c 100644 --- a/src/views/system/hospital/index.vue +++ b/src/views/system/hospital/index.vue @@ -119,13 +119,13 @@ - + - + @@ -219,6 +220,7 @@ style="width: 250px" v-model="item.departmentName" placeholder="请输入科室名称" + maxlength="50" /> @@ -252,6 +255,7 @@ > @@ -427,13 +431,14 @@ v-model="form.departmentName" placeholder="请输入科室名称" style="width: 250px" - maxlength="15" + maxlength="50" /> @@ -451,6 +456,7 @@ v-model="form.departmentAddress" placeholder="请输入科室地址" style="width: 250px" + maxlength="300" /> diff --git a/src/views/system/hospitalPerson/index.vue b/src/views/system/hospitalPerson/index.vue index d7ad162..bfc3efa 100644 --- a/src/views/system/hospitalPerson/index.vue +++ b/src/views/system/hospitalPerson/index.vue @@ -295,7 +295,7 @@ @@ -605,227 +605,7 @@ @pagination="departmentList" /> - - - - + diff --git a/src/views/system/settings/index.vue b/src/views/system/settings/index.vue index f3e9973..3958d11 100644 --- a/src/views/system/settings/index.vue +++ b/src/views/system/settings/index.vue @@ -437,7 +437,7 @@ export default { settingsName: [ { required: true, - message: "请输入系统设置名称", + message: "请输入规则名称", trigger: "blur", }, ], @@ -451,7 +451,7 @@ export default { settingsType: [ { required: true, - message: "请选择系统设置类型", + message: "请选择规则类型", trigger: "blur", }, ], @@ -487,14 +487,7 @@ export default { }, }; }, - // computed: { - // label() { - // let label = "积分数量"; - // if (this.form.settingsType == "INVITE_FRIENDS") label = "邀请好友次数"; - // if (this.form.settingsType == "SIGN_IN_RULE") label = "赠送积分数量"; - // return label; - // }, - // }, + created() { this.getList(); @@ -594,6 +587,7 @@ export default { }, /** 删除按钮操作 */ handleDelete(row) { + console.log(row) const ids = row.id || this.ids; const settingsNames=row.settingsName||this.settingsNames this.$modal From 4b7a923db7c0de1f7e6dc00d6114debbf69f4a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Mon, 13 Mar 2023 10:32:04 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/hospitalPerson/index.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/views/system/hospitalPerson/index.vue b/src/views/system/hospitalPerson/index.vue index bfc3efa..d3eb763 100644 --- a/src/views/system/hospitalPerson/index.vue +++ b/src/views/system/hospitalPerson/index.vue @@ -1129,7 +1129,6 @@ export default { if (this.deletUploadImages.length > 0) { updatePicture({ pictureUrlList: this.deletUploadImages }).then( (res) => { - // this.open = false; } ); } @@ -1137,13 +1136,12 @@ export default { if (this.deletupdata.length > 0) { updatePicture({ pictureUrlList: this.deletupdata }).then( (res) => { - // this.open = false; + } ); } this.imgsurl = { pictureUrlList: [] }; this.addopen = false; - this.addopen = false; this.reset(); }, // 表单重置