Browse Source

peter

master
newPeter7 2 years ago
parent
commit
4cbaff9499
  1. 3
      src/page-subspecialty/router/index.js
  2. 3
      src/page-subspecialty/views/modules/outpatientManagement/treat/index.vue

3
src/page-subspecialty/router/index.js

@ -198,7 +198,6 @@ router.beforeEach((to, from, next) => {
// window.SITE_CONFIG['menuList'] = res.data // window.SITE_CONFIG['menuList'] = res.data
const menuListChild = res.data.filter(item => item.children.length > 0) const menuListChild = res.data.filter(item => item.children.length > 0)
fnAddDynamicMenuRoutes(JSON.parse(JSON.stringify(res.data)), menuListChild.length) fnAddDynamicMenuRoutes(JSON.parse(JSON.stringify(res.data)), menuListChild.length)
next({ ...to, replace: true }) next({ ...to, replace: true })
}).catch(() => { }).catch(() => {
return next({ name: 'login' }) return next({ name: 'login' })
@ -252,7 +251,7 @@ function loginByDocId(doctorId, next, to) {
} }
function loginByUserId(userIdNumber, next, to) { function loginByUserId(userIdNumber, next, to) {
const params = { const params = {
userIdNumber: userIdNumber
userIdNumber: userIdNumber.slice(2)
} }
http.post('/loginByPidNum', params).then(({ data: res }) => { http.post('/loginByPidNum', params).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {

3
src/page-subspecialty/views/modules/outpatientManagement/treat/index.vue

@ -316,7 +316,7 @@ export default {
async handleCall(scopeRow, status) { async handleCall(scopeRow, status) {
this.patientId = scopeRow.patientId this.patientId = scopeRow.patientId
const risNo = scopeRow.risNo const risNo = scopeRow.risNo
const examItemId = scopeRow.zlProjectList.length ? scopeRow.zlProjectList[0].id : ''
const examItemId = scopeRow.zlProjectList.length ? scopeRow.zlProjectList[0].porjectCode : ''
const { data: res } = await this.$http.get('/zlCall/callByPatient', { const { data: res } = await this.$http.get('/zlCall/callByPatient', {
params: { params: {
patientId: this.patientId, patientId: this.patientId,
@ -326,6 +326,7 @@ export default {
} }
}) })
if (res.code === 0) { if (res.code === 0) {
this.pageCurrentChangeHandle(this.page)
} else { } else {
this.$message.error(res.msg) this.$message.error(res.msg)
} }

Loading…
Cancel
Save