|
|
|
@ -619,7 +619,7 @@ |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import moment from "moment"; |
|
|
|
import { mapState } from "vuex"; |
|
|
|
import { mapState, mapActions } from "vuex"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import mm from "../../utlis/mm"; |
|
|
|
|
|
|
|
@ -743,10 +743,10 @@ export default { |
|
|
|
|
|
|
|
//挂载完成 |
|
|
|
mounted() { |
|
|
|
objCopy(this.formInitData, this.form); |
|
|
|
this.initBox(); |
|
|
|
this.getCustomerOrgRegisterList() |
|
|
|
this.getPeoplePhoto(this.patientRegister.photo) |
|
|
|
// objCopy(this.formInitData, this.form); |
|
|
|
// this.initBox(); |
|
|
|
// this.getCustomerOrgRegisterList() |
|
|
|
// this.getPeoplePhoto(this.patientRegister.photo) |
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
@ -754,7 +754,7 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
...mapActions(['getPatientRegisterAbs']), |
|
|
|
//快速查找个人数据 |
|
|
|
quickQuery(type) { |
|
|
|
let url1 = '/api/app/patientregister/getpatientregisterorpatient' |
|
|
|
@ -807,6 +807,7 @@ export default { |
|
|
|
objCopy(res.data, this.form) |
|
|
|
this.patientRegister.patientRegisterId = res.data.id |
|
|
|
this.patientRegister.photo = res.data.photo |
|
|
|
this.getPatientRegisterAbs(res.data.id) |
|
|
|
}else if(res.code == 0){ |
|
|
|
this.$message.info("未找到相关信息") |
|
|
|
} |
|
|
|
@ -824,6 +825,7 @@ export default { |
|
|
|
objCopy(res.data.items[0], this.form) |
|
|
|
this.patientRegister.patientRegisterId = res.data.items[0].id |
|
|
|
this.patientRegister.photo = res.data.items[0].photo |
|
|
|
this.getPatientRegisterAbs(res.data.items[0].id) |
|
|
|
}else{ |
|
|
|
//显示列表,供选择 |
|
|
|
this.patientRegisters = res.data.items |
|
|
|
@ -864,12 +866,14 @@ export default { |
|
|
|
let res = await getapi(`/api/app/customer-org/parent/${this.form.customerOrgId}`); |
|
|
|
let res1 = await getapi(`/api/app/customerorgregister/getlistincustomerorgid?CustomerOrgId=${res.data}`); |
|
|
|
this.customerOrgRegisterList = arrayFilter(res1.data, 'isComplete', 'N') |
|
|
|
//要把已完成体检的次数去掉 |
|
|
|
if (this.customerOrgRegisterList.length > 0) { |
|
|
|
this.form.customerOrgRegisterId = this.customerOrgRegisterList[this.customerOrgRegisterList.length - 1].id |
|
|
|
//this.changeCustomerOrgGroupId() |
|
|
|
this.changeMedicalTimes() |
|
|
|
} |
|
|
|
|
|
|
|
//要把已完成体检的次数去掉 (查询时不能触发保存) |
|
|
|
// if (this.customerOrgRegisterList.length > 0) { |
|
|
|
// this.form.customerOrgRegisterId = this.customerOrgRegisterList[this.customerOrgRegisterList.length - 1].id |
|
|
|
// //this.changeCustomerOrgGroupId() |
|
|
|
// this.changeMedicalTimes() |
|
|
|
// } |
|
|
|
|
|
|
|
} catch (error) { |
|
|
|
console.log(error) |
|
|
|
} |
|
|
|
@ -993,6 +997,7 @@ export default { |
|
|
|
this.patientRegister.patientRegisterId = this.registerChoosed.id |
|
|
|
this.patientRegister.photo = this.registerChoosed.photo |
|
|
|
this.registerVisible = false |
|
|
|
this.getPatientRegisterAbs(this.registerChoosed.id) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
@ -1443,6 +1448,7 @@ export default { |
|
|
|
console.log('this.editTimes', this.editTimes) |
|
|
|
objCopy(this.formInitData, this.form); |
|
|
|
this.initBox(); |
|
|
|
this.getPeoplePhoto(this.patientRegister.photo) |
|
|
|
//console.log('this.form',this.form) |
|
|
|
} |
|
|
|
}, |
|
|
|
|