Browse Source

dj seo

master
pengjun 2 years ago
parent
commit
0e19229f2b
  1. 30
      src/components/patientRegister/PatientRegisterEdit.vue
  2. 19
      src/components/patientRegister/PatientRegisterItem.vue
  3. 8
      src/components/patientRegister/PatientRegisterList.vue

30
src/components/patientRegister/PatientRegisterEdit.vue

@ -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)
}
},

19
src/components/patientRegister/PatientRegisterItem.vue

@ -192,9 +192,11 @@ export default {
},
mounted() {
if(this.patientRegisterForm.id){
this.getPatientRegisterAbs(this.patientRegisterForm.id)
}
// if(this.patientRegisterForm.id){
// this.getPatientRegisterAbs(this.patientRegisterForm.id)
// }else{
// this.getPatientRegisterAbs()
// }
},
methods: {
@ -992,11 +994,12 @@ export default {
}
},
"patientRegisterForm.id"(newVal, oldVal) {
if (newVal && newVal != oldVal) {
this.getPatientRegisterAbs(newVal)
}
},
// getPatientRegisterAbs
// "patientRegisterForm.id"(newVal, oldVal) {
// if (newVal && newVal != oldVal) {
// this.getPatientRegisterAbs(newVal)
// }
// },
//
"payTypeFlag"(newVal, oldVal) {

8
src/components/patientRegister/PatientRegisterList.vue

@ -129,7 +129,7 @@
>
</div>
<div class="listBtn">
<el-button type="" class="btnClass commonbutton" @click="edit"
<el-button type="" class="btnClass commonbutton" @click="btnEdit"
>编辑</el-button
>
</div>
@ -809,14 +809,14 @@ export default {
this.getPatientRegisterAbs();
},
edit() {
btnEdit() {
if (!this.patientRegister.patientRegisterRd.id) {
alert("请选择要操作的记录");
return;
}
//this.patientRegister.patientRegisterTimes++;
this.getPatientRegisterAbs(this.patientRegister.patientRegisterRd.id);
this.formInitData = { ...this.patientRegister.patientRegisterRd };
//this.getPatientRegisterAbs(this.patientRegister.patientRegisterRd.id);
this.formInitData = deepCopy(this.patientRegister.patientRegisterRd);
this.dialogVisible = true;
this.editTimes++; //
},

Loading…
Cancel
Save