Browse Source

room

master
pengjun 1 year ago
parent
commit
4295ea7bda
  1. 190
      src/components/room/RoomEdit.vue
  2. 247
      src/components/room/room.vue
  3. 8
      src/store/index.js

190
src/components/room/RoomEdit.vue

@ -2,19 +2,14 @@
<div>
<el-form :model="form" label-width="80px" :rules="rules" ref="form">
<el-row>
<el-col :span="8">
<el-form-item prop="displayName" label="分组名称">
<el-col :span="12">
<el-form-item prop="displayName" label="房间名称">
<el-input v-model="form.displayName" size="small" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="金额">
<el-input v-model="form.price" type="number" size="small" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-col :span="12">
<el-form-item label="适用性别">
<el-select v-model="form.forSexId" placeholder="请选择" size="small">
<el-select v-model="form.forSexId" placeholder="请选择" size="small" style="width:310px;">
<el-option v-for="item in dict.forSex" :key="item.id" :label="item.displayName" :value="item.id">
</el-option>
</el-select>
@ -22,46 +17,41 @@
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="婚姻状况">
<el-select v-model="form.maritalStatusId" placeholder="请选择" style="width: 100%" size="small">
<el-option v-for="item in dict.forMaritalStatus" :key="item.id" :label="item.displayName" :value="item.id">
<el-col :span="12">
<el-form-item label="体检中心">
<el-select v-model="form.medicalCenterId" placeholder="请选择" size="small" style="width:310px;">
<el-option v-for="item in dict.medicalCenter" :key="item.id" :label="item.displayName" :value="item.id">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="年龄下限">
<el-input v-model="form.ageLowerLimit" type="number" min="1" max="200" size="small" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="年龄上限">
<el-input v-model="form.ageUpperLimit" type="number" min="1" max="200" size="small" />
<el-col :span="12">
<el-form-item label="项目类别">
<el-cascader :options="dict.itemTypeTree" v-model="form.itemTypeId" popper-class="example"
style="width:310px;"
:props="{ checkStrictly: true, expandTrigger: 'hover', label: 'displayName', value: 'id', id: 'id', children: 'treeChildren'}" clearable filterable
size="small">
</el-cascader>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="适用职务">
<el-input v-model="form.jobPost" size="small" />
<el-form-item label="房间类别">
<el-select v-model="form.roomTypeFlag" placeholder="请选择" size="small">
<el-option v-for="item in dict.roomType" :key="item.id" :label="item.displayName" :value="item.id">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="适用职称">
<el-input v-model="form.jobTitle" size="small" />
<el-form-item label="候诊时间">
<el-input type="number" v-model="form.queueTime" size="small" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="可自选金额">
<el-input type="number" v-model="form.canAddMoney" size="small" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="备注">
<el-input v-model="form.remark" size="small" />
<el-form-item label="启用">
<el-checkbox v-model="form.isActive" true-label="Y" false-label="N" size="small" />
</el-form-item>
</el-col>
</el-row>
@ -69,7 +59,7 @@
<div style="display: flex;margin-top: 5px;justify-content:space-between;">
<div></div>
<div style="display: flex;">
<el-button class="commonbutton" @click="dialogWin.CustomerOrgGroupEdit = false">关闭</el-button>
<el-button class="commonbutton" @click="dialogWin.RommEdit = false">关闭</el-button>
<!--
<el-button type="success" @click="computePrice">同比折算组合项目价格</el-button>
-->
@ -100,27 +90,20 @@ export default {
data() {
return {
form: {
//
customerOrgId: "", //()
isComplete: "N", //
id: "",
customerOrgRegisterId: null, //
displayName: "",
price: 0,
itemTypeId: "",
medicalCenterId: "",
forSexId: "A",
maritalStatusId: "A",
ageLowerLimit: 0,
ageUpperLimit: 200,
canAddMoney:0,
jobPost: "",
jobTitle: "",
remark: "",
isMaxMedicalTimes: "N",
roomTypeFlag: "0",
queueTime: 0,
isActive: "Y"
},
formOri: {}, //
formInit: {}, //
rules: {
displayName: [{ required: true, message: "请填写分组名称", trigger: "blur" }],
displayName: [{ required: true, message: "请填写房间名称", trigger: "blur" }],
itemTypeId: [{ required: true, message: "请填写项目类别", trigger: "blur" }],
medicalCenterId: [{ required: true, message: "请填写体检中心", trigger: "blur" }],
},
};
},
@ -135,7 +118,7 @@ export default {
mounted() {
//
this.dictInit();
this.getFormData(this.dataTransOpts.tableS.customer_org_group.id);
this.getFormData(this.dataTransOpts.tableS.room.id);
},
methods: {
moment, dddw, deepCopy,
@ -166,15 +149,12 @@ export default {
getapi(`/api/app/customer-org-group/${id}`)
.then(res => {
if (res.code != -1) {
this.formOri = deepCopy(res.data)
this.form = deepCopy(res.data)
}
})
} else {
console.log('this.formInit',this.formInit)
this.form = deepCopy(this.formInit)
this.form.customerOrgId = this.params.customerOrgId
this.form.customerOrgRegisterId = this.params.customerOrgRegisterId
this.form.medicalCenterId = this.params.medicalCenterId
}
},
@ -186,84 +166,30 @@ export default {
return false;
}
if (!this.form.id && !this.form.customerOrgRegisterId) {
this.$message.warning("请选择单位体检次数!");
return false;
}
let body = deepCopy(this.form);
delete body.id;
delete body.customerOrgId;
delete body.isComplete;
body.roomId = body.id
if(Array.isArray(this.form.itemTypeId) && this.form.itemTypeId.length > 0){
body.itemTypeId = this.form.itemTypeId[this.form.itemTypeId.length - 1]
}else{
body.itemTypeId = this.form.itemTypeId
}
if(!body.itemTypeId){
this.$message.warning("必须选择项目类别");
return false;
}
let url = "/api/app/Room/Create"
if (this.form.id) {
let customerOrgGroupId = this.form.id;
let customerOrgGroupAsbitems = []; //
//
/*
putapi(`/api/app/customer-org-group/${this.form.id}`, body)
.then((res) => {
// console.log(res)
if (res.code != -1) {
console.log("保存分组成功!");
//
if (this.formOri.price != this.form.price) {
return getapi(`/api/app/customerorggroupdetail/getcustomerorggroupdetailinasbitem?CustomerOrgGroupId=${customerOrgGroupId}`);
} else {
this.dialogWin.CustomerOrgGroupEdit = false;
}
}
})
.then((res) => {
if (res && res.code != -1) {
customerOrgGroupAsbitems = res.data;
if (customerOrgGroupAsbitems.length < 1) {
console.log("该分组暂没有组合项目!");
this.dialogWin.CustomerOrgGroupEdit = false;
} else {
let detailsBody = {
customerOrgGroupId,
details: this.madeNewGroupAsbitems(customerOrgGroupAsbitems, this.form.price),
};
return postapi("/api/app/customerorggroupdetail/createcustomerorggroupdetailmany", detailsBody);
}
}
})
.then((res) => {
if (res && res.code != -1) {
console.log("操作成功!并自动按总价同比折算组合项目价格!");
this.dialogWin.CustomerOrgGroupEdit = false;
//
let id = this.form.id;
this.form.id = "";
setTimeout(() => {
this.form.id = id;
}, 100);
}
});
*/
//
putapi(`/api/app/customer-org-group/${this.form.id}`, body)
.then((res) => {
// console.log(res)
if (res.code != -1) {
console.log("保存分组成功!");
this.dataTransOpts.refresh.customer_org_group_detail.M
}
})
} else {
//
postapi("/api/customerorggroup/createcustomerorggroupincustomerorgregister", body)
.then(res => {
if (res.code != -1) {
console.log("操作成功!");
this.dataTransOpts.tableS.customer_org_group.id = res.data.id
this.dialogWin.CustomerOrgGroupEdit = false;
}
});
url = "/api/app/Room/Update"
}
postapi(url,body).then(res => {
if(res.code > -1){
this.dialogWin.RommEdit = false
this.dataTransOpts.refresh.room_detail.M++
}
})
});
},
@ -375,11 +301,11 @@ export default {
// },
// ID
"dataTransOpts.refresh.customer_org_group.S": {
"dataTransOpts.refresh.room.S": {
// immediate: true,
handler(newVal, oldVal) {
console.log(`watch 体检分组 newVal:${newVal} oldVal:${oldVal} customerOrgGroupId: ${this.dataTransOpts.tableS.customer_org_group.id}`);
this.getFormData(this.dataTransOpts.tableS.customer_org_group.id);
console.log(`watch 体检分组 newVal:${newVal} oldVal:${oldVal} customerOrgGroupId: ${this.dataTransOpts.tableS.room.id}`);
this.getFormData(this.dataTransOpts.tableS.room.id);
}
},
},

247
src/components/room/room.vue

@ -10,54 +10,54 @@
<div style="display: flex">
<div>
<span>体检中心</span>
<el-select v-model="customerOrgId" placeholder="请选择体检中心" :filter-method="filterMethod" default-first-option
clearable filterable style="margin-left: 10px" @change="changeMedicalCenter" size="small">
<el-select v-model="medicalCenterId" placeholder="请选择体检中心"
default-first-option clearable filterable style="margin-left: 10px" @change="changeMedicalCenter"
size="small">
<el-option v-for="item in dict.medicalCenter" :key="item.id" :label="item.displayName" :value="item.id">
{{ item.displayName }}
</el-option>
</el-select>
</div>
</div>
</div>
<div>
<el-table :data="customerOrgGroups" ref="customerOrgGroups" style="margin-top: 2px" row-key="id" border
height="240px" size="small" highlight-current-row :row-class-name="handleRowClassName"
@row-click="rowClick">
<el-table :data="tableData" ref="tableData" style="margin-top: 2px" row-key="id" border height="240px"
size="small" highlight-current-row :row-class-name="handleRowClassName" @row-click="rowClick">
<el-table-column type="index" label="序号" width="50" align="center" />
<el-table-column label="id" prop="id" min-width="200" align="center" />
<el-table-column prop="displayName" label="名称" min-width="150" />
<el-table-column prop="itemTypeId" label="项目类别" min-width="100">
<el-table-column label="id" prop="id" min-width="200" align="center" />
<el-table-column prop="displayName" label="名称" min-width="150" />
<el-table-column v-if="!medicalCenterId" prop="medicalCenterId" label="体检中心" min-width="150">
<template slot-scope="scope">
{{ dddw(dict.medicalCenter, "id", scope.row.medicalCenterId, "displayName") }}
</template>
</el-table-column>
<el-table-column prop="itemTypeId" label="项目类别" min-width="80">
<template slot-scope="scope">
{{ dddw(dict.itemTypeTree, "id", scope.row.itemTypeId, "displayName") }}
</template>
</el-table-column>
</el-table-column>
<el-table-column prop="forSexId" label="适用性别" min-width="80" align="center">
<template slot-scope="scope">
{{ dddw(dict.forSex, "id", scope.row.forSexId, "displayName") }}
</template>
</el-table-column>
</el-table-column>
<el-table-column prop="roomTypeFlag" label="房间类别" min-width="80" align="center">
<template slot-scope="scope">
{{ dddw(dict.roomType, "id", scope.row.roomTypeFlag, "displayName") }}
</template>
</el-table-column>
<el-table-column prop="queueTime" label="候诊时间" min-width="80" align="center"/>
<el-table-column prop="isActive" label="是否启用" min-width="80" align="center">
</el-table-column>
<el-table-column prop="queueTime" label="候诊时间" min-width="80" align="center" />
<el-table-column prop="isActive" label="是否启用" min-width="80" align="center">
<template slot-scope="scope">
{{ isActive == 'Y' ? '':'' }}
<div style="font-family: 'Microsoft YaHei';">{{ scope.row.isActive == 'Y' ? '' : '' }}</div>
</template>
</el-table-column>
</el-table-column>
<el-table-column prop="creatorName" label="创建者" min-width="60" align="center" />
<el-table-column label="创建时间" min-width="150" align="center">
<template slot-scope="scope">
{{ scope.row.creationTime ? moment(scope.row.creationTime).format("yyyy-MM-DD HH:mm:ss") : "" }}
</template>
</el-table-column>
number($double)
string
<el-table-column label="操作" align="center">
<el-table-column label="操作" min-width="40" align="center">
<template>
<el-tag class="move" style="
cursor: move;
@ -73,10 +73,7 @@
</div>
<!--按钮-->
<div style="display: block; margin-left: 5px">
<div v-show="checkPagePriv(pagePriv.privs, '复制上次分组')" style="margin-top: 0px">
<el-button class="commonbutton" @click="btnCopyPreGroup">复制上次分组</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '新增')" style="margin-top: 5px">
<div v-show="checkPagePriv(pagePriv.privs, '新增')" style="margin-top: 45px">
<el-button class="commonbutton" @click="btnAdd('')">新增</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '编辑')" style="margin-top: 5px">
@ -123,6 +120,7 @@ import {
deepCopy,
objCopy,
arrayExistObj,
tcdate,
} from "../../utlis/proFunc";
import RoomAsbitem from "./RoomAsbitem.vue";
@ -138,14 +136,15 @@ export default {
routeUrlorPageName: "customerOrgGroup", //
privs: [], //
},
customerOrg: [], //
customerOrgGroups: [], //
tableData: [], //
customerOrgId: "", //id
customerOrgRegisterList: [], //
customerOrgRegister: {}, //
curCustomerOrgGroup: {}, //
RoomEditParams: {}, //
medicalCenterId: "", //
isDrag: false,
form: {
@ -153,7 +152,7 @@ export default {
customerOrgId: "", //()
isComplete: "N", //
id: "",
customerOrgRegisterId: null, //
medicalCenterId: null, //
displayName: "",
price: 0,
forSexId: "A",
@ -191,40 +190,25 @@ export default {
mounted() {
//
this.dictInit();
this.getRoom()
},
methods: {
moment,
checkPagePriv,
dddw,
deepCopy,
//
btnCopyPreGroup() {
if (!this.customerOrgRegister.id) {
this.$message.warning("请选择体检次数");
return;
}
postapi('/api/app/CustomerOrgGroup/CopyLastGrouping', { customerOrgRegisterId: this.customerOrgRegister.id })
.then(res => {
if (res.code > -1) {
//
this.getCustomerOrgGroup(this.customerOrgRegister.id);
}
})
},
//
refreshMoney(formData) {
//console.log('this is parent')
let lfind = arrayExistObj(this.customerOrgGroups, "id", formData.id);
if (lfind > -1) this.customerOrgGroups[lfind].price = formData.price;
let lfind = arrayExistObj(this.tableData, "id", formData.id);
if (lfind > -1) this.tableData[lfind].price = formData.price;
},
//
btnSort() {
const result = [];
this.customerOrgGroups.forEach((item, index) => {
this.tableData.forEach((item, index) => {
result.push({ id: item.id, displayOrder: index });
});
putapi("/api/app/customerorggroup/updatesortmany", {
@ -245,15 +229,15 @@ export default {
// animation: 300,
// onEnd({ newIndex, oldIndex }) {
// _this.isDrag = false;
// const currRow = _this.customerOrgGroups.splice(oldIndex, 1)[0];
// _this.customerOrgGroups.splice(newIndex, 0, currRow);
// _this.customerOrgGroups.map((item, index) => {
// const currRow = _this.tableData.splice(oldIndex, 1)[0];
// _this.tableData.splice(newIndex, 0, currRow);
// _this.tableData.map((item, index) => {
// if (index == newIndex && index == oldIndex) {
// } else if (index == oldIndex) {
// } else if (index == newIndex) {
// }
// });
// console.log(_this.customerOrgGroups.map((item) => item.displayOrder));
// console.log(_this.tableData.map((item) => item.displayOrder));
// },
// });
// });
@ -268,8 +252,8 @@ export default {
//
onEnd({ newIndex, oldIndex }) {
that.isDrag = true;
const currRow = that.customerOrgGroups.splice(oldIndex, 1)[0];
that.customerOrgGroups.splice(newIndex, 0, currRow);
const currRow = that.tableData.splice(oldIndex, 1)[0];
that.tableData.splice(newIndex, 0, currRow);
console.log("el", el);
},
});
@ -282,16 +266,16 @@ export default {
this.$message.warning("请选择操作的数据");
return;
}
let lfind = arrayExistObj(this.customerOrgGroups, "id", this.dataTransOpts.tableS.customer_org_group.id);
let lfind = arrayExistObj(this.tableData, "id", this.dataTransOpts.tableS.customer_org_group.id);
let currentRow = {};
putapi(
`/api/app/customerorggroup/updatemanysort?id=${this.dataTransOpts.tableS.customer_org_group.id}&SortType=2`
).then((res) => {
console.log("操作成功");
currentRow = this.customerOrgGroups.splice(lfind, 1)[0]; //
this.customerOrgGroups.push(currentRow);
this.$refs["customerOrgGroups"].setCurrentRow(currentRow);
currentRow = this.tableData.splice(lfind, 1)[0]; //
this.tableData.push(currentRow);
this.$refs["tableData"].setCurrentRow(currentRow);
});
},
@ -302,16 +286,16 @@ export default {
return;
}
let lfind = arrayExistObj(this.customerOrgGroups, "id", this.dataTransOpts.tableS.customer_org_group.id);
let lfind = arrayExistObj(this.tableData, "id", this.dataTransOpts.tableS.customer_org_group.id);
let currentRow = {};
putapi(
`/api/app/customerorggroup/updatemanysort?id=${this.dataTransOpts.tableS.customer_org_group.id}&SortType=1`
).then((res) => {
console.log("操作成功");
currentRow = this.customerOrgGroups.splice(lfind, 1)[0];
this.customerOrgGroups.unshift(currentRow);
this.$refs["customerOrgGroups"].setCurrentRow(currentRow);
currentRow = this.tableData.splice(lfind, 1)[0];
this.tableData.unshift(currentRow);
this.$refs["tableData"].setCurrentRow(currentRow);
});
},
@ -335,7 +319,7 @@ export default {
this.dict.medicalCenter = res.data;
}
});
//
getapi("/api/app/item-type/by-code-all").then((res) => {
if (res.code != -1) {
@ -350,55 +334,31 @@ export default {
this.dict.forSex = res.data;
}
});
},
//
getCustomerOrgGroup(customerOrgRegisterId) {
//
getRoom(medicalCenterId) {
this.isDrag = false;
objCopy(this.formInit, this.form);
this.form.customerOrgRegisterId = customerOrgRegisterId;
this.customerOrgGroups = [];
getapi(
`/api/app/customerorggroup/getlistinfilter?CustomerOrgRegisterId=${customerOrgRegisterId}`
).then((res) => {
if (res.code != -1) {
this.customerOrgGroups = res.data;
this.customerOrgGroups.forEach((e) => {
e.customerOrgRegisterId = customerOrgRegisterId;
this.form.medicalCenterId = medicalCenterId;
this.tableData = [];
postapi('/api/app/Room/GetList').then((res) => {
if (res.code > -1) {
this.tableData = res.data.filter(e => {
return medicalCenterId ? (e.medicalCenterId == medicalCenterId) : e
});
}
});
},
filterMethod(keyWords) {
if (keyWords) {
this.customerOrg = [];
this.customerOrgAll.forEach((item) => {
if (
item.displayName.toLowerCase().indexOf(keyWords.toLowerCase()) > -1 ||
item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > -1
// || item.shortName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1
) {
this.customerOrg.push(item);
}
});
} else {
this.customerOrg = deepCopy(this.customerOrgAll);
}
},
//
//
changeMedicalCenter(v) {
console.log('changeMedicalCenter',v)
// console.log('changeMedicalCenter', v)
this.getRoom(v)
},
//
changeTimes(v) {
this.getCustomerOrgGroup(v.id);
},
//
//
rowClick(row) {
this.dataTransOpts.tableS.customer_org_group.id = row.id
this.curCustomerOrgGroup = deepCopy(row);
@ -410,26 +370,14 @@ export default {
// (id)
btnAdd(id) {
if (!this.customerOrgRegister.id) {
this.$message.warning("请选择体检次数");
return;
}
if (this.customerOrgRegister.isComplete.toUpperCase() == "Y") {
this.$message.warning(`该单位的该次体检次数已完成,不能再${id ? '编辑' : '新增'}分组!`);
return;
}
if (!id) this.dataTransOpts.tableS.customer_org_group.id = ''
setTimeout(() => {
this.dataTransOpts.refresh.customer_org_group.S++
if (!id) this.dataTransOpts.refresh.customer_org_group_detail.M++; //
}, 20);
if (!id) this.dataTransOpts.tableS.room.id = ''
this.dataTransOpts.refresh.room.S++
if (!id) this.dataTransOpts.refresh.room_detail.M++; //
this.RoomEditParams = {
customerOrgRegisterId: this.customerOrgRegister.id,
customerOrgId: this.customerOrgId
medicalCenterId: this.medicalCenterId
}
this.dialogWin.RoomEdit = true;
},
@ -464,8 +412,8 @@ export default {
.then((res) => {
if (res.code != -1) {
console.log("删除成功");
let lfind = arrayExistObj(this.customerOrgGroups, "id", this.dataTransOpts.tableS.customer_org_group.id);
if (lfind > -1) this.customerOrgGroups.splice(lfind, 1);
let lfind = arrayExistObj(this.tableData, "id", this.dataTransOpts.tableS.customer_org_group.id);
if (lfind > -1) this.tableData.splice(lfind, 1);
this.dataTransOpts.tableS.customer_org_group.id = ''
setTimeout(() => {
this.dataTransOpts.refresh.customer_org_group_detail.M++
@ -480,52 +428,7 @@ export default {
});
},
//
computePrice() {
if (!this.form.id) {
this.$message.warning("尚未保存信息,不可执行此操作!");
return;
}
let customerOrgGroupId = this.form.id;
let RoomAsbitems = []; //
getapi(`/api/app/customerorggroupdetail/getcustomerorggroupdetailinasbitem?CustomerOrgGroupId=${customerOrgGroupId}
`)
.then((res) => {
if (res.code != -1) {
RoomAsbitems = res.data;
if (RoomAsbitems.length < 1) {
this.$message.warning("当前分组尚未设置组合项目,不可执行此操作!");
} else {
let body = {
customerOrgGroupId,
details: this.madeNewGroupAsbitems(
RoomAsbitems,
this.form.price
),
};
console.log("body", body);
return postapi(
"/api/app/customerorggroupdetail/createcustomerorggroupdetailmany",
body
);
}
}
})
.then((res) => {
if (res.code != -1) {
//console.log("");
//
this.form.id = "";
//
setTimeout(() => {
this.form.id = customerOrgGroupId;
this.onSubmit("form");
}, 100);
}
});
},
madeNewGroupAsbitems(oldGroupAsbitems, newTotal) {
newTotal = Math.round(Number(newTotal) * 100) / 100;
@ -588,17 +491,17 @@ export default {
.then(res => {
if (res.code != -1) {
let lfind = -1
lfind = arrayExistObj(this.customerOrgGroups, 'id', id)
lfind = arrayExistObj(this.tableData, 'id', id)
if (lfind > -1) {
objCopy(res.data, this.customerOrgGroups[lfind])
objCopy(res.data, this.tableData[lfind])
} else {
lfind = this.customerOrgGroups.length
this.customerOrgGroups.push(res.data)
lfind = this.tableData.length
this.tableData.push(res.data)
}
//
this.$refs["customerOrgGroups"].setCurrentRow(); //
this.$refs["customerOrgGroups"].setCurrentRow(this.customerOrgGroups[lfind]);
this.$refs["tableData"].setCurrentRow(); //
this.$refs["tableData"].setCurrentRow(this.tableData[lfind]);
// customer_org_group_detail
this.curCustomerOrgGroup = deepCopy(res.data);

8
src/store/index.js

@ -348,8 +348,11 @@ export default new Vuex.Store({
sum_diagnosis: { S: 0, M: 0 }, // 总检诊断
sumDoctor: { S: 0, M: 0 }, // 总检--综述 触发强制刷新 (sumDoctor.M 合并包含:综述、建议、对比、历史等,不包含总检诊断)
room: { S: 0, M: 0 }, // 房间
room_detail: { S: 0, M: 0 }, // 房间关联的组合项目
},
//表当前数据(单条记录 S--single)
tableS: {
adp_roles: { id: '' }, // 角色
@ -383,6 +386,8 @@ export default new Vuex.Store({
isOccSummary: 'N', // 修改总检结论
},
appoint_patient_register: {}, // 预约登记数据
room: { id: '' }, // 房间
room_detail: { id: '' }, // 房间关联组合项目
},
//表当前数据(多条记录 M--more)
@ -412,6 +417,8 @@ export default new Vuex.Store({
patient_past_medical_history: [], // 既往病史
patient_occupational_medical_history: [], // 职业病史
appoint_register_asbitem: [], // 预约所选组合项目
room: [], // 房间
room_detail: [], // 房间关联组合项目
},
plus: {
PatientRegisterEditQuery: 0, // 更新查询条件
@ -443,6 +450,7 @@ export default new Vuex.Store({
Label: false, // 补打条码
WebBooking: false, // 网上预约
ImportOrgData: false, // 导入企业(青藏公司)数据
RoomEdit:false, //房间
}
},

Loading…
Cancel
Save