Browse Source

tjcs seo

master
pengjun 2 years ago
parent
commit
a530e51e47
  1. 8
      src/components/customerOrg/ContactPerson.vue
  2. 14
      src/components/customerOrg/customerOrgEdit.vue
  3. 6
      src/components/customerOrg/customerOrgRegister.vue
  4. 131
      src/components/patientRegister/PatientRegisterEdit.vue

8
src/components/customerOrg/ContactPerson.vue

@ -10,13 +10,17 @@
<el-table-column prop="creatorName" label="创建者" width="" /> <el-table-column prop="creatorName" label="创建者" width="" />
<el-table-column prop="creationTime" label="创建时间" width="180"> <el-table-column prop="creationTime" label="创建时间" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.creationTime">
{{ moment(scope.row.creationTime).format('yyyy-MM-DD HH:mm:ss') }} {{ moment(scope.row.creationTime).format('yyyy-MM-DD HH:mm:ss') }}
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="lastModifierName" label="修改者" /> <el-table-column prop="lastModifierName" label="修改者" />
<el-table-column prop="lastModificationTime" label="修改时间" width="180"> <el-table-column prop="lastModificationTime" label="修改时间" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.lastModificationTime">
{{ moment(scope.row.lastModificationTime).format('yyyy-MM-DD HH:mm:ss') }} {{ moment(scope.row.lastModificationTime).format('yyyy-MM-DD HH:mm:ss') }}
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -34,13 +38,17 @@
<el-table-column prop="creatorName" label="创建者" width="" /> <el-table-column prop="creatorName" label="创建者" width="" />
<el-table-column prop="creationTime" label="创建时间" width="180"> <el-table-column prop="creationTime" label="创建时间" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.creationTime">
{{ moment(scope.row.creationTime).format('yyyy-MM-DD HH:mm:ss') }} {{ moment(scope.row.creationTime).format('yyyy-MM-DD HH:mm:ss') }}
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="lastModifierName" label="修改者" /> <el-table-column prop="lastModifierName" label="修改者" />
<el-table-column prop="lastModificationTime" label="修改时间" width="180"> <el-table-column prop="lastModificationTime" label="修改时间" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.lastModificationTime">
{{ moment(scope.row.lastModificationTime).format('yyyy-MM-DD HH:mm:ss') }} {{ moment(scope.row.lastModificationTime).format('yyyy-MM-DD HH:mm:ss') }}
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

14
src/components/customerOrg/customerOrgEdit.vue

@ -134,7 +134,7 @@
</el-col> </el-col>
<el-col :span="5"> <el-col :span="5">
<el-form-item label="修改人员"> <el-form-item label="修改人员">
<el-input v-model="form.creatorName" size="small" disabled />
<el-input v-model="form.lastModifierName" size="small" disabled />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7">
@ -200,6 +200,10 @@ export default {
isLockBox: false, isLockBox: false,
isActiveBox: true, isActiveBox: true,
organizationUnitId: null, organizationUnitId: null,
creatorName:'',
creationTime:null,
lastModifierName:'',
lastModificationTime:null,
}, // }, //
rules: { rules: {
@ -311,6 +315,10 @@ export default {
body = deepCopy(this.form); body = deepCopy(this.form);
delete body.isActiveBox; delete body.isActiveBox;
delete body.isLockBox; delete body.isLockBox;
delete body.creatorName;
delete body.creationTime;
delete body.lastModifierName;
delete body.lastModificationTime;
if (typeof body.parentId === "string") { if (typeof body.parentId === "string") {
if (!body.parentId || body.parentId.length < 1) { if (!body.parentId || body.parentId.length < 1) {
@ -326,9 +334,9 @@ export default {
console.log("body", body, "this.form", this.form); console.log("body", body, "this.form", this.form);
if (this.customerOrg.customerOrgRd.id.length < 1) {
if (!this.customerOrg.customerOrgRd.id) {
//id //id
postapi(`/api/app/customer-org`, body).then((res) => {
postapi(`/api/app/customerorg/create`, body).then((res) => {
if (res.code == 1) { if (res.code == 1) {
this.$message.success("创健 操作成功"); this.$message.success("创健 操作成功");
this.setData({ key: "customerOrg.customerOrgRd", value: res }); this.setData({ key: "customerOrg.customerOrgRd", value: res });

6
src/components/customerOrg/customerOrgRegister.vue

@ -22,13 +22,17 @@
<el-table-column prop="creatorName" label="创建者" width="" /> <el-table-column prop="creatorName" label="创建者" width="" />
<el-table-column prop="creationTime" label="创建时间" width="200"> <el-table-column prop="creationTime" label="创建时间" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.creationTime">
{{ moment(scope.row.creationTime).format('yyyy-MM-DD HH:mm:ss') }} {{ moment(scope.row.creationTime).format('yyyy-MM-DD HH:mm:ss') }}
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="lastModifierName" label="修改者" /> <el-table-column prop="lastModifierName" label="修改者" />
<el-table-column prop="lastModificationTime" label="修改时间" width="200"> <el-table-column prop="lastModificationTime" label="修改时间" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.lastModificationTime">
{{ moment(scope.row.lastModificationTime).format('yyyy-MM-DD HH:mm:ss') }} {{ moment(scope.row.lastModificationTime).format('yyyy-MM-DD HH:mm:ss') }}
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -112,7 +116,7 @@ export default {
return; return;
} }
postapi( postapi(
`/api/app/customer-org-register/default/${customerOrgId}`
`/api/customerorgregister/createcustomerorgregister?CustomerOrgId=${customerOrgId}`
).then((res) => { ).then((res) => {
if (res.Code != -1) { if (res.Code != -1) {
this.getCustomerOrgRegisterList(customerOrgId); this.getCustomerOrgRegisterList(customerOrgId);

131
src/components/patientRegister/PatientRegisterEdit.vue

@ -183,7 +183,8 @@
<el-row> <el-row>
<el-col :span="5"> <el-col :span="5">
<el-form-item label="体检中心" prop="organizationUnitId"> <el-form-item label="体检中心" prop="organizationUnitId">
<el-select v-model="form.organizationUnitId" placeholder="请选择" filterable :disabled="peisid ? true:false"
<el-select v-model="form.organizationUnitId" placeholder="请选择" filterable
:disabled="peisid ? true : false"
:style="'width:' + Math.floor((window.pageWidth - 530) / 4.8) + 'px;'"> :style="'width:' + Math.floor((window.pageWidth - 530) / 4.8) + 'px;'">
<el-option v-for="item in dict.organization" :key="item.id" :label="item.displayName" <el-option v-for="item in dict.organization" :key="item.id" :label="item.displayName"
:value="item.id"> :value="item.id">
@ -192,15 +193,17 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="5"> <el-col :span="5">
<el-form-item label="是否VIP" prop="isVip">
<!--
<el-radio v-model="form.isVip" label="Y"></el-radio>
<el-radio v-model="form.isVip" label="N"></el-radio>
-->
<el-checkbox v-model="form.isVipBox" @change="changeBox('isVip')" />
<el-form-item label="单位体检次数" prop="isVip" label-width="110px">
<el-select v-model="form.customerOrgRegisterId" placeholder="次数" size="small"
:disabled="form.customerOrgId == dict.personOrgId"
:style="'width:' + Math.floor((window.pageWidth - 674) / 4.8) + 'px;'" @change="changeMedicalTimes"
value-key="id">
<el-option v-for="item in customerOrgRegisterList" :key="item.id" :label="item.medicalTimes"
:value="item.id" />
</el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="5">
<el-col :span="3">
<el-form-item label="电话随访" prop="isPhoneFollow"> <el-form-item label="电话随访" prop="isPhoneFollow">
<!-- <!--
<el-radio v-model="form.isPhoneFollow" label="Y"></el-radio> <el-radio v-model="form.isPhoneFollow" label="Y"></el-radio>
@ -209,6 +212,15 @@
<el-checkbox v-model="form.isPhoneFollowBox" @change="changeBox('isPhoneFollow')" /> <el-checkbox v-model="form.isPhoneFollowBox" @change="changeBox('isPhoneFollow')" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2">
<el-form-item label="VIP" prop="isVip" label-width="50px">
<!--
<el-radio v-model="form.isVip" label="Y"></el-radio>
<el-radio v-model="form.isVip" label="N"></el-radio>
-->
<el-checkbox v-model="form.isVipBox" @change="changeBox('isVip')" />
</el-form-item>
</el-col>
<el-col :span="3"> <el-col :span="3">
<el-form-item label="隐藏姓名" prop="isNameHide"> <el-form-item label="隐藏姓名" prop="isNameHide">
<!-- <!--
@ -364,23 +376,19 @@
<div style="position: absolute;top:40px;left:160px;display: flex; flex-wrap: wrap; height:60px;"> <div style="position: absolute;top:40px;left:160px;display: flex; flex-wrap: wrap; height:60px;">
<div class="query"> <div class="query">
<span>查找&nbsp;&nbsp;条码号</span> <span>查找&nbsp;&nbsp;条码号</span>
<el-input placeholder="条码号" v-model="query.patientRegisterNo" size="small" clearable
style="width: 140px" />
<el-input placeholder="条码号" v-model="query.patientRegisterNo" size="small" clearable style="width: 140px" />
</div> </div>
<div class="query"> <div class="query">
<span>档案号</span> <span>档案号</span>
<el-input placeholder="档案号" v-model="query.patientNo" size="small" clearable
style="width: 100px" />
<el-input placeholder="档案号" v-model="query.patientNo" size="small" clearable style="width: 100px" />
</div> </div>
<div class="query"> <div class="query">
<span>姓名</span> <span>姓名</span>
<el-input placeholder="姓名" v-model="query.patientName" size="small" clearable
style="width: 80px" />
<el-input placeholder="姓名" v-model="query.patientName" size="small" clearable style="width: 80px" />
</div> </div>
<div class="query"> <div class="query">
<span>手机号</span> <span>手机号</span>
<el-input placeholder="预约手机号" v-model="query.tel" size="small" clearable
style="width: 120px" />
<el-input placeholder="预约手机号" v-model="query.tel" size="small" clearable style="width: 120px" />
</div> </div>
</div> </div>
@ -463,7 +471,7 @@ import { mapState } from "vuex";
import { getapi, postapi, putapi, deletapi } from "@/api/api"; import { getapi, postapi, putapi, deletapi } from "@/api/api";
import mm from "../../utlis/mm"; import mm from "../../utlis/mm";
import { objCopy, setNull, dddw, parseID, birthdayToAge,deepCopy } from "../../utlis/proFunc";
import { objCopy, setNull, dddw, parseID, birthdayToAge, deepCopy, arrayFilter } from "../../utlis/proFunc";
import Camera from "./Camera.vue"; import Camera from "./Camera.vue";
import PatientRegisterItem from "./PatientRegisterItem.vue"; import PatientRegisterItem from "./PatientRegisterItem.vue";
import LisRequest from "./LisRequest.vue"; import LisRequest from "./LisRequest.vue";
@ -491,7 +499,7 @@ export default {
customerOrgGroupId: null, // customerOrgGroupId: null, //
medicalPackageId: null, // medicalPackageId: null, //
patientName: "", // patientName: "", //
birthDate: "", // 2012-01-29
birthDate: null, //
sexId: "U", // U sexId: "U", // U
age: null, // age: null, //
jobCardNo: "", // jobCardNo: "", //
@ -530,8 +538,10 @@ export default {
isNameHideBox: false, // isNameHideBox: false, //
isPhoneFollowBox: false, //访 isPhoneFollowBox: false, //访
isLockBox: false, // isLockBox: false, //
customerOrgRegisterId: null,
isMaxMedicalTimes: 'N',
}, // }, //
customerOrgRegisterList: [], //
defaultNull: [ defaultNull: [
"customerOrgId", "customerOrgId",
"customerOrgGroupId", "customerOrgGroupId",
@ -573,6 +583,7 @@ export default {
mounted() { mounted() {
objCopy(this.formInitData, this.form); objCopy(this.formInitData, this.form);
this.initBox(); this.initBox();
this.getCustomerOrgRegisterList()
}, },
computed: { computed: {
@ -583,6 +594,48 @@ export default {
console.log("this.form1", this.form); console.log("this.form1", this.form);
}, },
//
async getCustomerOrgRegisterList() {
this.customerOrgRegisterList = []
if (this.form.customerOrgId == this.dict.personOrgId){
this.form.customerOrgRegisterId = null
return
}
try {
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()
}
} catch (error) {
console.log(error)
}
},
//
changeMedicalTimes() {
this.form.customerOrgGroupId = null
this.changeCustomerOrgGroupId()
//
this.getCustomerOrgGroup(this.form.customerOrgRegisterId)
},
//
getCustomerOrgGroup(customerOrgRegisterId){
this.patientRegister.customerOrgGroup = []
getapi(`/api/app/customerorggroup/getlistinfilter?CustomerOrgRegisterId=${customerOrgRegisterId}`).then(res => {
if (res.code != - 1) {
this.patientRegister.customerOrgGroup = res.data.items;
}
})
},
// //
changeBirthDate() { changeBirthDate() {
this.form.age = birthdayToAge(this.form.birthDate) this.form.age = birthdayToAge(this.form.birthDate)
@ -592,7 +645,7 @@ export default {
changeIdNo() { changeIdNo() {
let ret = parseID(this.form.idNo) let ret = parseID(this.form.idNo)
if (ret.age != -1) { if (ret.age != -1) {
this.form.birthDate = ret.birthday
this.form.birthDate = new Date(ret.birthday)
this.form.age = ret.age this.form.age = ret.age
this.form.sexId = ret.sex this.form.sexId = ret.sex
} }
@ -645,13 +698,26 @@ export default {
this.form.patientName = this.patientChoosed.displayName; this.form.patientName = this.patientChoosed.displayName;
this.form.sexId = this.patientChoosed.sexId; this.form.sexId = this.patientChoosed.sexId;
this.form.maritalStatusId = this.patientChoosed.maritalStatusId; this.form.maritalStatusId = this.patientChoosed.maritalStatusId;
this.form.birthDate = this.patientChoosed.birthDate;
this.form.birthDate = new Date(this.patientChoosed.birthDate);
this.form.nationId = this.patientChoosed.nationId; this.form.nationId = this.patientChoosed.nationId;
this.form.idNo = this.patientChoosed.idNo; this.form.idNo = this.patientChoosed.idNo;
this.form.telephone = this.patientChoosed.telephone; this.form.telephone = this.patientChoosed.telephone;
this.form.mobileTelephone = this.patientChoosed.mobileTelephone; this.form.mobileTelephone = this.patientChoosed.mobileTelephone;
this.form.patientNo = this.patientChoosed.patientNo; this.form.patientNo = this.patientChoosed.patientNo;
this.form.medicalTimes = this.patientChoosed.medicalTimes + 1; this.form.medicalTimes = this.patientChoosed.medicalTimes + 1;
if (this.form.birthDate) {
this.form.age = birthdayToAge(this.form.birthDate)
}
if (this.form.idNo) {
let ret = parseID(this.form.idNo)
if (!this.form.birthDate) this.form.birthDate = new Date(ret.birthday)
if (!this.form.age) this.form.age = ret.age
if (!this.form.sexId) this.form.age = ret.sex
}
}, },
ldddw(arrayData, key, value, display) { ldddw(arrayData, key, value, display) {
@ -735,8 +801,8 @@ export default {
if (this.form.id.length < 1) { if (this.form.id.length < 1) {
//id //id
console.log(`/api/app/patient-register/return-info`, body);
postapi(`/api/app/patient-register/return-info`, body).then(
console.log(`/api/patientregister/createreturninfo`, body);
postapi(`/api/patientregister/createreturninfo`, body).then(
(res) => { (res) => {
if (res.code == 1) { if (res.code == 1) {
//console.log('res',res) //console.log('res',res)
@ -756,9 +822,9 @@ export default {
} }
); );
} else { } else {
//id
console.log(`/api/app/patient-register?PatientRegisterId=${this.form.id}`, body);
putapi(`/api/app/patient-register?PatientRegisterId=${this.form.id}`, body).then((res) => {
//id api/patientregister/updatepatientregister
console.log(`/api/patientregister/updatepatientregister?PatientRegisterId=${this.form.id}`, body);
postapi(`/api/patientregister/updatepatientregister?PatientRegisterId=${this.form.id}`, body).then((res) => {
if (res.code == 1) { if (res.code == 1) {
if (msgTip) this.$message.success("更新 操作成功"); if (msgTip) this.$message.success("更新 操作成功");
this.patientRegister.query.times++; this.patientRegister.query.times++;
@ -1022,6 +1088,13 @@ export default {
// //
watch: { watch: {
"form.customerOrgId"(newVal, oldVal) {
//console.log('editTimes newVal',newVal,' oldVal',oldVal)
if (newVal != oldVal) {
this.getCustomerOrgRegisterList()
}
},
// //
"editTimes"(newVal, oldVal) { "editTimes"(newVal, oldVal) {
//console.log('editTimes newVal',newVal,' oldVal',oldVal) //console.log('editTimes newVal',newVal,' oldVal',oldVal)
@ -1046,8 +1119,10 @@ export default {
</script> </script>
<style scoped> <style scoped>
::v-deep .el-button { ::v-deep .el-button {
padding: 10px 5px; /* 原值:12px 20px; */
padding: 10px 5px;
/* 原值:12px 20px; */
} }
::v-deep .el-form-item { ::v-deep .el-form-item {
margin-bottom: 0px; margin-bottom: 0px;
} }
@ -1073,8 +1148,8 @@ export default {
.btnClass { .btnClass {
width: 110px; width: 110px;
} }
.query { .query {
margin-left: 10px; margin-left: 10px;
} }
</style> </style>
Loading…
Cancel
Save