diff --git a/api/pagesB/screenOrder/index.js b/api/pagesB/screenOrder/index.js index 04f660a..71754c1 100644 --- a/api/pagesB/screenOrder/index.js +++ b/api/pagesB/screenOrder/index.js @@ -188,9 +188,9 @@ export function changeUserInfo(data) { }) } // 获取机构列表 -export function getDeptList() { +export function getDeptList(hospitalName) { return request({ - url: `/nurseApplet/hospital/getList`, + url: `/nurseApplet/hospital/getList?hospitalName=${hospitalName}`, method: 'get' }) } diff --git a/pagesB/screenorder/screenorder.vue b/pagesB/screenorder/screenorder.vue index 42e2ebd..5ac2b33 100644 --- a/pagesB/screenorder/screenorder.vue +++ b/pagesB/screenorder/screenorder.vue @@ -28,13 +28,16 @@ - + + @@ -43,6 +46,7 @@ + @@ -58,6 +62,7 @@ + 11 @@ -76,6 +81,7 @@ export default { data() { return { + hidden: false, showSex: false, userInfo: {}, datetimerange: [Date.now(), this.todayEndTime()], @@ -197,20 +203,46 @@ this.userInfo = JSON.parse(e.userinfo) if (this.userInfo.sex == 'MALE') { this.userInfo.sex = '男' - } else if(this.userInfo.sex == 'FEMALE'){ + } else if (this.userInfo.sex == 'FEMALE') { this.userInfo.sex = '女' } this.userInfo.age = getAgeFun(this.userInfo.birthDate) - if(this.userInfo.diseaseList.length>0){ + if (this.userInfo.diseaseList.length > 0) { this.formData.disease = this.userInfo.diseaseList.join(',') - console.log(this.formData.disease,'9999') + console.log(this.formData.disease, '9999') } } this.getDeptAndPro() }, - + watch: { //监听 + 'formData.hospitalName'(e) { + console.log(e, '858') + this.getDeptAndPro() + }, + }, methods: { + clickMask(e) { + console.log(e, '478') + }, + input(e) { + if (e) { + this.formData.hospitalName = e + this.formData.hospitalNameId = '' + + } + + + }, + + confirm(e) { + console.log(e, '89') + this.formData.projectId = '' + this.infolist() + // this.formData.hospitalName = this.DeptList.find(item => item.value == e).text + this.formData.hospitalName = e.label + this.formData.hospitalId = e.value + }, appointitem(e) { var that = this if (that.formData.hospitalId == '') { @@ -221,12 +253,14 @@ } }, getDeptAndPro() { - getDeptList().then(res => { - this.DeptList = res.data.map(item => { - return { - text: item.hospitalName, + getDeptList(this.formData.hospitalName).then(res => { + this.DeptList = [] + res.data.map((item) => { + var obj = { + label: item.hospitalName, value: item.id - } + }; + this.DeptList.push(obj); }) }) @@ -235,7 +269,7 @@ getProlist({ projectType: 1, status: 0, - hospitalId: this.hospitalId + hospitalId: this.formData.hospitalId }).then(res => { if (res.code == 200) { this.ProList = res.data.map(item => { @@ -250,10 +284,7 @@ changeDept(e) { console.log(e, '99') console.log(this.formData, '9') - this.formData.projectId = '' - this.hospitalId = e - this.infolist() - this.formData.hospitalName = this.DeptList.find(item => item.value == e).text + }, changePro(e) { this.formData.projectName = this.ProList.find(item => item.value == e).text @@ -390,6 +421,28 @@ // z-index: 99; // } // } + ::v-deep .inputBox .focusBox .inputStyle.data-v-36ae0e32 { + height: 70rpx !important; + // color: #006DF7; + width: 91%; + padding-right: 60rpx; + border: 1px solid #C4C5C6; + } + + ::v-deep .inputBox .focusBox .inputStyle.data-v-36ae0e32 { + color: #000 !important; + } + + ::v-deep .srollViewBox .scrollView-item.data-v-36ae0e32 { + padding-left: 0 !important; + color: #000 !important; + line-height: 45rpx !important; + } + + ::v-deep .srollViewBox .scrollView.data-v-36ae0e32 { + height: 350rpx !important; + overflow: auto; + } ::v-deep.u-form-item--left__content__label.data-v-5e7216f1 { display: flex; @@ -489,4 +542,4 @@ /deep/.u-button__text { font-size: 34rpx !important; } - + \ No newline at end of file