Commit e6e312ee authored by gengchunlei's avatar gengchunlei

Merge branch 'chronic-dev' of http://gitlab.yiboshi.com/nightkis1995/frontend-h5 into chronic-dev

 Conflicts:
	src/doctor/Doctor.vue
parents 0648ad65 183e704d
......@@ -66,7 +66,7 @@ export default {
if (!token) {
token = sessionStorage.getItem('token')
if (process.env.NODE_ENV !== 'production') {
token = '0028d420-4ec2-4a1d-bb71-a685d1c4f9dd'
token = '1642c267-186f-4dd4-9e36-493d4fca1f14'
}
}
if (token) {
......
......@@ -94,7 +94,7 @@ export default {
},
loadDevice() {
// 372 ||
getPressureDevices(372 || this.authInfo.unitId).then(res => {
getPressureDevices(this.authInfo.unitId).then(res => {
console.log('getPressureDevices', res)
this.deviceList = res.data || []
if (!this.deviceList.length) {
......@@ -118,7 +118,7 @@ export default {
}
this.loopMark++
// '06B32312010330' ||
getPressureData('06B32312010330' || this.deviceNo).then(res => {
getPressureData(this.deviceNo).then(res => {
const result = res.data || []
if (result.length) {
let val = result[result.length - 1]
......
......@@ -135,17 +135,13 @@ export default {
diseaseInfo: this.form
})
}).catch(e => {
console.warn('居民信息校验失败', e)
const array = e || []
if (array.length) {
this.$refs.form.scrollToField(array[0].name)
}
})
})
// let baseInfo = {}
// try {
// baseInfo = await this.$refs.archive.onSubmit()
// } catch(e) {
// }
},
showDiseaseTypeChange() {
if (this.$route.query.id) return
......
......@@ -1343,7 +1343,11 @@ export default {
...createdInfo
})
}).catch(e => {
console.warn('慢性肾病表单', e)
console.warn('慢性肾病表单校验失败', e)
const array = e || []
if (array.length) {
this.$refs.form.scrollToField(array[0].name)
}
})
})
},
......
......@@ -1712,7 +1712,11 @@ export default {
...createdInfo
})
}).catch(e => {
console.warn('慢阻肺表单', e)
console.warn('慢阻肺表单校验失败', e)
const array = e || []
if (array.length) {
this.$refs.form.scrollToField(array[0].name)
}
})
})
},
......
......@@ -1345,7 +1345,11 @@ export default {
...createdInfo
})
}).catch(e => {
console.warn('冠心病表单', e)
console.warn('冠心病表单校验失败', e)
const array = e || []
if (array.length) {
this.$refs.form.scrollToField(array[0].name)
}
})
})
},
......
......@@ -1638,7 +1638,11 @@ export default {
...createdInfo
})
}).catch(e => {
console.warn('糖尿病表单', e)
console.warn('糖尿病表单校验失败', e)
const array = e || []
if (array.length) {
this.$refs.form.scrollToField(array[0].name)
}
})
})
},
......
......@@ -1343,7 +1343,11 @@ export default {
...createdInfo
})
}).catch(e => {
console.warn('血脂异常表单', e)
console.warn('血脂异常表单校验失败', e)
const array = e || []
if (array.length) {
this.$refs.form.scrollToField(array[0].name)
}
})
})
},
......
......@@ -1400,6 +1400,8 @@ export default {
},
referralUnitChange(option = {}) {
this.form.referralUnitName = option.unitName
this.form.referralOfficeId = undefined
this.form.referralOfficeName = undefined
},
referralOfficeChange(option = {}) {
this.form.referralOfficeName = option.officeName
......@@ -1414,9 +1416,15 @@ export default {
},
visitUnitChange(option = {}) {
this.form.visitUnitName = option.unitName
this.form.visitOfficeId = undefined
this.form.visitOfficeName = undefined
this.form.visitDoctorId = undefined
this.form.visitDoctorName = undefined
},
visitOfficeChange(option = {}) {
this.form.visitOfficeName = option.officeName
this.form.visitDoctorId = undefined
this.form.visitDoctorName = undefined
},
submit() {
......@@ -1459,7 +1467,11 @@ export default {
...createdInfo
})
}).catch(e => {
console.warn('高血压表单', e)
console.warn('高血压表单校验失败', e)
const array = e || []
if (array.length) {
this.$refs.form.scrollToField(array[0].name)
}
})
})
},
......
......@@ -1343,7 +1343,11 @@ export default {
...createdInfo
})
}).catch(e => {
console.warn('脑卒中表单', e)
console.warn('脑卒中表单校验失败', e)
const array = e || []
if (array.length) {
this.$refs.form.scrollToField(array[0].name)
}
})
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment