fix: 录入数据测试问题修复。
This commit is contained in:
@@ -184,8 +184,36 @@ function dictStr(val, arr) {
|
|||||||
return str
|
return str
|
||||||
}
|
}
|
||||||
function getData() {
|
function getData() {
|
||||||
// 就医类型
|
|
||||||
getDicts('doctor_type').then(res => {
|
// 药品来源
|
||||||
|
|
||||||
|
if(form.value.id!=null){
|
||||||
|
getDoctorRecord(form.value.id).then(res => {
|
||||||
|
listPerson(queryPersonParams.value).then((response) => {
|
||||||
|
personList.value = [response.rows]
|
||||||
|
if(response.rows.length>0){
|
||||||
|
form.value.personName= response.rows[0].name
|
||||||
|
form.value.personId = response.rows[0].id
|
||||||
|
queryHealthRecordParams.value.personId=res.data.personId
|
||||||
|
listHealthRecord(queryHealthRecordParams.value).then((response) => {
|
||||||
|
healthRecordList.value = [response.rows]
|
||||||
|
if(response.rows.length>0){
|
||||||
|
form.value.healthRecordName= response.rows[0].name
|
||||||
|
form.value.healthRecordId = response.rows[0].id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
form.value = res.data
|
||||||
|
// 就医类型
|
||||||
|
getDicts('doctor_type').then(result => {
|
||||||
|
form.value.typeName=dictStr(form.value.type, result.data)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
}else{
|
||||||
|
// 就医类型
|
||||||
|
getDicts('doctor_type').then(res => {
|
||||||
typeList.value =[res.data]
|
typeList.value =[res.data]
|
||||||
})
|
})
|
||||||
listPerson(queryPersonParams.value).then((response) => {
|
listPerson(queryPersonParams.value).then((response) => {
|
||||||
@@ -203,16 +231,7 @@ function getData() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// 药品来源
|
|
||||||
|
|
||||||
if(form.value.id!=null){
|
|
||||||
getDoctorRecord(form.value.id).then(res => {
|
|
||||||
form.value = res.data
|
|
||||||
})
|
|
||||||
// 就医类型
|
|
||||||
getDicts('doctor_type').then(result => {
|
|
||||||
form.value.typeName=dictStr(form.value.type, result.data)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -39,6 +39,10 @@
|
|||||||
inputAlign="right" border="none"></u--input>
|
inputAlign="right" border="none"></u--input>
|
||||||
<u-icon slot="right" name="arrow-down"></u-icon>
|
<u-icon slot="right" name="arrow-down"></u-icon>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
|
<u-form-item label="康复时间" prop="rehabilitationTime" @click="selectRehabilitationTime()">
|
||||||
|
<u--input v-model="form.rehabilitationTime" disabled disabledColor="#ffffff" placeholder="请选择康复时间" inputAlign="right" border="none"></u--input>
|
||||||
|
<u-icon slot="right" name="arrow-right"></u-icon>
|
||||||
|
</u-form-item>
|
||||||
<u-form-item label="初期症状" prop="initialSymptoms" required >
|
<u-form-item label="初期症状" prop="initialSymptoms" required >
|
||||||
<u--textarea v-model="form.initialSymptoms" placeholder="请填写初期症状" border="none" autoHeight inputAlign="right" count
|
<u--textarea v-model="form.initialSymptoms" placeholder="请填写初期症状" border="none" autoHeight inputAlign="right" count
|
||||||
maxlength="2000" style="padding:18rpx 0;"></u--textarea>
|
maxlength="2000" style="padding:18rpx 0;"></u--textarea>
|
||||||
@@ -52,10 +56,7 @@
|
|||||||
maxlength="2000" style="padding:18rpx 0;"></u--textarea>
|
maxlength="2000" style="padding:18rpx 0;"></u--textarea>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
|
|
||||||
<u-form-item label="康复时间" prop="rehabilitationTime" @click="selectRehabilitationTime()">
|
|
||||||
<u--input v-model="form.rehabilitationTime" disabled disabledColor="#ffffff" placeholder="请选择康复时间" inputAlign="right" border="none"></u--input>
|
|
||||||
<u-icon slot="right" name="arrow-right"></u-icon>
|
|
||||||
</u-form-item>
|
|
||||||
|
|
||||||
<u-form-item label="备注" prop="remark" labelPosition="top">
|
<u-form-item label="备注" prop="remark" labelPosition="top">
|
||||||
<u--textarea v-model="form.remark" placeholder="请填写备注" border="none" autoHeight inputAlign="right" count
|
<u--textarea v-model="form.remark" placeholder="请填写备注" border="none" autoHeight inputAlign="right" count
|
||||||
@@ -298,7 +299,7 @@ function handleState() {
|
|||||||
function handleEtiologyConfirm(e) {
|
function handleEtiologyConfirm(e) {
|
||||||
form.value.etiologyName = e.value[0].dictLabel
|
form.value.etiologyName = e.value[0].dictLabel
|
||||||
form.value.place = e.value[0].dictValue
|
form.value.place = e.value[0].dictValue
|
||||||
showEtiology.value = false
|
showEtiology.etiology = false
|
||||||
}
|
}
|
||||||
function handleEtiologyCancel() {
|
function handleEtiologyCancel() {
|
||||||
showEtiology.value = false
|
showEtiology.value = false
|
||||||
|
|||||||
@@ -207,7 +207,45 @@ function getData() {
|
|||||||
listMedicineBasic(queryMedicineParams.value).then((response) => {
|
listMedicineBasic(queryMedicineParams.value).then((response) => {
|
||||||
medicalList.value = [response.rows]
|
medicalList.value = [response.rows]
|
||||||
})
|
})
|
||||||
listPerson(queryPersonParams.value).then((response) => {
|
// 药品来源
|
||||||
|
|
||||||
|
if(form.value.id!=null){
|
||||||
|
getMarRecord(form.value.id).then(res => {
|
||||||
|
listPerson(queryPersonParams.value).then((response) => {
|
||||||
|
personList.value = [response.rows]
|
||||||
|
if(response.rows.length>0){
|
||||||
|
form.value.personName= response.rows[0].name
|
||||||
|
form.value.personId = response.rows[0].id
|
||||||
|
queryHealthRecordParams.value.personId=res.data.personId
|
||||||
|
listHealthRecord(queryHealthRecordParams.value).then((response) => {
|
||||||
|
healthRecordList.value = [response.rows]
|
||||||
|
if(response.rows.length>0){
|
||||||
|
form.value.healthRecordName= response.rows[0].name
|
||||||
|
form.value.healthRecordId = response.rows[0].id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
form.value = res.data
|
||||||
|
form.value.medicalName=form.value.name
|
||||||
|
getDicts('mar_place').then(result => {
|
||||||
|
form.value.placeName=dictStr(form.value.place, result.data)
|
||||||
|
})
|
||||||
|
// 药品来源
|
||||||
|
getDicts('mar_resource').then(result => {
|
||||||
|
form.value.resourceName=dictStr(form.value.resource, result.data)
|
||||||
|
})
|
||||||
|
// 药品来源
|
||||||
|
getDicts('medical_unit').then(result => {
|
||||||
|
form.value.unitName=dictStr(form.value.unit, result.data)
|
||||||
|
})
|
||||||
|
// 用药类型
|
||||||
|
getDicts('mar_type').then(result => {
|
||||||
|
form.value.marTypeName=dictStr(form.value.type, result.data)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
listPerson(queryPersonParams.value).then((response) => {
|
||||||
personList.value = [response.rows]
|
personList.value = [response.rows]
|
||||||
if(response.rows.length>0){
|
if(response.rows.length>0){
|
||||||
form.value.personName= response.rows[0].name
|
form.value.personName= response.rows[0].name
|
||||||
@@ -239,28 +277,6 @@ function getData() {
|
|||||||
placeList.value =[res.data]
|
placeList.value =[res.data]
|
||||||
})
|
})
|
||||||
|
|
||||||
// 药品来源
|
|
||||||
|
|
||||||
if(form.value.id!=null){
|
|
||||||
getMarRecord(form.value.id).then(res => {
|
|
||||||
form.value = res.data
|
|
||||||
form.value.medicalName=form.value.name
|
|
||||||
getDicts('mar_place').then(result => {
|
|
||||||
form.value.placeName=dictStr(form.value.place, result.data)
|
|
||||||
})
|
|
||||||
// 药品来源
|
|
||||||
getDicts('mar_resource').then(result => {
|
|
||||||
form.value.resourceName=dictStr(form.value.resource, result.data)
|
|
||||||
})
|
|
||||||
// 药品来源
|
|
||||||
getDicts('medical_unit').then(result => {
|
|
||||||
form.value.unitName=dictStr(form.value.unit, result.data)
|
|
||||||
})
|
|
||||||
// 用药类型
|
|
||||||
getDicts('mar_type').then(result => {
|
|
||||||
form.value.marTypeName=dictStr(form.value.type, result.data)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
</u-form-item>
|
</u-form-item>
|
||||||
|
|
||||||
<u-form-item label="生日" prop="birthday" required @click="selectBirthday()">
|
<u-form-item label="生日" prop="birthday" required @click="selectBirthday()">
|
||||||
<u--input v-model="form.birthday" disabled disabledColor="#ffffff" placeholder="请选择发生时间" inputAlign="right" border="none"></u--input>
|
<u--input v-model="form.birthday" disabled disabledColor="#ffffff" placeholder="请选择生日" inputAlign="right" border="none"></u--input>
|
||||||
<u-icon slot="right" name="arrow-right"></u-icon>
|
<u-icon slot="right" name="arrow-right"></u-icon>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="性别" prop="sexName" required @click="handleSex">
|
<u-form-item label="性别" prop="sexName" required @click="handleSex">
|
||||||
|
|||||||
@@ -123,7 +123,22 @@ onReady(() => {
|
|||||||
form.value.recordingTime = dayjs(new Date().getTime()).format("YYYY-MM-DD HH:mm:ss")
|
form.value.recordingTime = dayjs(new Date().getTime()).format("YYYY-MM-DD HH:mm:ss")
|
||||||
})
|
})
|
||||||
function getData() {
|
function getData() {
|
||||||
listPerson(queryPersonParams.value).then((response) => {
|
|
||||||
|
if(form.value.id!=null){
|
||||||
|
getProcessRecord(form.value.id).then(res => {
|
||||||
|
listPerson(queryPersonParams.value).then((response) => {
|
||||||
|
personList.value = [response.rows]
|
||||||
|
if(response.rows.length>0){
|
||||||
|
queryHealthRecordParams.value.personId=res.data.personId
|
||||||
|
listHealthRecord(queryHealthRecordParams.value).then((response) => {
|
||||||
|
healthRecordList.value = [response.rows]
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
form.value = res.data
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
listPerson(queryPersonParams.value).then((response) => {
|
||||||
personList.value = [response.rows]
|
personList.value = [response.rows]
|
||||||
if(response.rows.length>0){
|
if(response.rows.length>0){
|
||||||
form.value.personName= response.rows[0].name
|
form.value.personName= response.rows[0].name
|
||||||
@@ -138,12 +153,9 @@ function getData() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
if(form.value.id!=null){
|
|
||||||
getProcessRecord(form.value.id).then(res => {
|
|
||||||
form.value = res.data
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function handlePerson() {
|
function handlePerson() {
|
||||||
@@ -163,6 +175,10 @@ function handlePersonConfirm(e) {
|
|||||||
queryHealthRecordParams.value.personId=e.value[0].id
|
queryHealthRecordParams.value.personId=e.value[0].id
|
||||||
listHealthRecord(queryHealthRecordParams.value).then((response) => {
|
listHealthRecord(queryHealthRecordParams.value).then((response) => {
|
||||||
healthRecordList.value = [response.rows]
|
healthRecordList.value = [response.rows]
|
||||||
|
if(response.rows.length>0){
|
||||||
|
form.value.healthRecordName= response.rows[0].name
|
||||||
|
form.value.healthRecordId = response.rows[0].id
|
||||||
|
}
|
||||||
showPerson.value = false
|
showPerson.value = false
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -129,7 +129,21 @@ onReady(() => {
|
|||||||
form.value.measureTime = dayjs(new Date().getTime()).format("YYYY-MM-DD HH:mm:ss")
|
form.value.measureTime = dayjs(new Date().getTime()).format("YYYY-MM-DD HH:mm:ss")
|
||||||
})
|
})
|
||||||
function getData() {
|
function getData() {
|
||||||
listPerson(queryPersonParams.value).then((response) => {
|
if(form.value.id!=null){
|
||||||
|
getTemperatureRecord(form.value.id).then(res => {
|
||||||
|
listPerson(queryPersonParams.value).then((response) => {
|
||||||
|
personList.value = [response.rows]
|
||||||
|
if(response.rows.length>0){
|
||||||
|
queryHealthRecordParams.value.personId=res.data.personId
|
||||||
|
listHealthRecord(queryHealthRecordParams.value).then((response) => {
|
||||||
|
healthRecordList.value = [response.rows]
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
form.value = res.data
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
listPerson(queryPersonParams.value).then((response) => {
|
||||||
personList.value = [response.rows]
|
personList.value = [response.rows]
|
||||||
if(response.rows.length>0){
|
if(response.rows.length>0){
|
||||||
form.value.personName= response.rows[0].name
|
form.value.personName= response.rows[0].name
|
||||||
@@ -144,11 +158,6 @@ function getData() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
if(form.value.id!=null){
|
|
||||||
getTemperatureRecord(form.value.id).then(res => {
|
|
||||||
form.value = res.data
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -169,6 +178,10 @@ function handlePersonConfirm(e) {
|
|||||||
queryHealthRecordParams.value.personId=e.value[0].id
|
queryHealthRecordParams.value.personId=e.value[0].id
|
||||||
listHealthRecord(queryHealthRecordParams.value).then((response) => {
|
listHealthRecord(queryHealthRecordParams.value).then((response) => {
|
||||||
healthRecordList.value = [response.rows]
|
healthRecordList.value = [response.rows]
|
||||||
|
if(response.rows.length>0){
|
||||||
|
form.value.healthRecordName= response.rows[0].name
|
||||||
|
form.value.healthRecordId = response.rows[0].id
|
||||||
|
}
|
||||||
showPerson.value = false
|
showPerson.value = false
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user