Browse Source

sumdoctor

master
pengjun 2 years ago
parent
commit
9d59c70dc3
  1. 8
      src/components/sumDoctorCheck/CheckDetails.vue
  2. 71
      src/components/sumDoctorCheck/SumAsbItemStatus.vue
  3. 4
      src/components/sumDoctorCheck/SumHistory.vue
  4. 4
      src/components/sumDoctorCheck/SumItems.vue
  5. 4
      src/components/sumDoctorCheck/SumItemsType.vue
  6. 7
      src/components/sumDoctorCheck/SumSug.vue

8
src/components/sumDoctorCheck/CheckDetails.vue

@ -60,8 +60,10 @@ export default {
created() { },
//
mounted() {
mounted() {
if(this.sumDoctorCheck.sumPREdit.id){
this.CheckDetails(this.sumDoctorCheck.sumPREdit.id);
}
},
computed: {
@ -99,7 +101,7 @@ export default {
"sumDoctorCheck.sumPREdit.id"(newVal, oldVal) {
console.log("watch sumDoctorCheck.sumPREdit.id newVal:", newVal, " oldVal:", oldVal);
if (newVal != oldVal && newVal != '') {
this.CheckDetails(newVal)
this.CheckDetails(newVal);
}
},
},

71
src/components/sumDoctorCheck/SumAsbItemStatus.vue

@ -2,26 +2,29 @@
<div style="display: flex;height:90px;">
<div class="asbitemListClass">
<div style="margin-top:2px;font-size:7px;color: #409EFF;">未检组合项目</div>
<div style="display: flex; flex-wrap: wrap; height:68px;width:100%; margin-top:2px;border: 1px solid;">
<el-tag style="margin-left: 5px;" v-for="item in data.unCheckedAsbitem" :key="item" size="mini">{{item}}</el-tag>
<div style="display: flex; flex-wrap: wrap; height:68px;width:100%; margin-top:2px;border: 1px solid;">
<el-tag style="margin-left: 5px;" v-for="item in data.unCheckedAsbitem" :key="item" size="mini">{{ item }}</el-tag>
</div>
</div>
<div class="asbitemListClass">
<div style="margin-top:2px;font-size:7px;color: #909399;">弃检组合项目</div>
<div style="display: flex; flex-wrap: wrap; height:68px;width:100%; margin-top:2px;border: 1px solid;">
<el-tag type="info" style="margin-left: 5px;" v-for="item in data.checkedAsbitem" :key="item" size="mini">{{item}}</el-tag>
<el-tag type="info" style="margin-left: 5px;" v-for="item in data.giveUpAsbitem" :key="item"
size="mini">{{ item }}</el-tag>
</div>
</div>
<div class="asbitemListClass">
<div style="margin-top:2px;font-size:7px;color: #F56C6C;">组合项目已检但无值的明细项目</div>
<div style="display: flex; flex-wrap: wrap; height:68px;width:100%; margin-top:2px;border: 1px solid;">
<el-tag type="danger" style="margin-left: 5px;" v-for="item in data.checkedNullValueItem" :key="item" size="mini">{{item}}</el-tag>
<el-tag type="danger" style="margin-left: 5px;" v-for="item in data.checkedNullValueItem" :key="item"
size="mini">{{ item }}</el-tag>
</div>
</div>
<div class="asbitemListClass">
<div style="margin-top:2px;font-size:7px;color: #E6A23C;">组合项目已检但弃检的明细项目</div>
<div style="display: flex; flex-wrap: wrap; height:68px;width:100%; margin-top:2px;border: 1px solid;">
<el-tag type="warning" style="margin-left: 5px;" v-for="item in data.checkedGiveUpItem" :key="item" size="mini">{{item}}</el-tag>
<el-tag type="warning" style="margin-left: 5px;" v-for="item in data.checkedGiveUpItem" :key="item"
size="mini">{{ item }}</el-tag>
</div>
</div>
</div>
@ -33,35 +36,38 @@ import { getapi, postapi, putapi, deletapi } from "@/api/api";
export default {
components: {},
props:['patientRegisterId'],
props: ['patientRegisterId'],
data() {
return {
data:{
unCheckedAsbitem:['未检项目1','未检项目2','未检项目3','未检项目4','未检项目5','未检项目6','未检项目7','未检项目8'],
checkedAsbitem:['弃检1','弃检2'],
checkedNullValueItem:['无果1','无果2'],
checkedGiveUpItem:['弃检明细1','弃检明细2'],
}
data: {
unCheckedAsbitem: [],//['1','2','3','4','5','6','7','8'],
giveUpAsbitem: [],//['1','2'],
checkedNullValueItem: [],//['1','2'],
checkedGiveUpItem: [],//['1','2'],
}
};
},
created() {},
created() { },
//
mounted() {
if(this.patientRegisterId){
if (this.patientRegisterId) {
this.getSumAsbItemStatus(this.patientRegisterId);
}
},
computed: {
...mapState(["dict", "doctorCheck","sumDoctorCheck"]),
...mapState(["dict", "doctorCheck", "sumDoctorCheck"]),
},
methods: {
getSumAsbItemStatus(PatientRegisterId){
getapi(`/api/app/patientregister/getpatientregisteritemstatus?PatientRegisterId=${PatientRegisterId}`).then(res =>{
if(res.code != -1){
this.data = res.data;
methods: {
getSumAsbItemStatus(PatientRegisterId) {
getapi(`/api/app/patientregister/getpatientregisteritemstatus?PatientRegisterId=${PatientRegisterId}`).then(res => {
if (res.code != -1) {
this.data.unCheckedAsbitem = res.data.unCheckedAsbitem;
this.data.giveUpAsbitem = res.data.giveUpAsbitem;
this.data.checkedNullValueItem = res.data.checkedNullValueItem;
this.data.checkedGiveUpItem = res.data.checkedGiveUpItem;
}
});
}
@ -69,11 +75,11 @@ export default {
//
watch: {
//
//ID
"patientRegisterId"(newVal, oldVal) {
console.log("watch patientRegisterId newVal:", newVal, " oldVal:", oldVal);
if (newVal != oldVal && newVal != '') {
this.getSumAsbItemStatus(newVal);
this.getSumAsbItemStatus(newVal);
}
},
},
@ -82,18 +88,19 @@ export default {
</script>
<style scoped>
.asbitemListClass {
display: block;
display: block;
width: 24.5%;
margin-left: 3px;
}
.labelClass{
margin-top:2px;
font-size:8x;
.labelClass {
margin-top: 2px;
font-size: 8x;
}
.contentClass{
.contentClass {
display: flex;
height:52px;
margin-top:2px;
font-size:8x;
}
</style>
height: 52px;
margin-top: 2px;
font-size: 8x;
}</style>

4
src/components/sumDoctorCheck/SumHistory.vue

@ -39,7 +39,9 @@ export default {
//
mounted() {
if(this.sumDoctorCheck.sumPREdit.patientId){
this.SumHistory(this.sumDoctorCheck.sumPREdit.patientId);
}
},
computed: {

4
src/components/sumDoctorCheck/SumItems.vue

@ -41,7 +41,9 @@ export default {
//
mounted() {
if(this.sumDoctorCheck.sumPREdit.patientId){
this.registerCheckList(this.sumDoctorCheck.sumPREdit.patientId);
}
},
computed: {

4
src/components/sumDoctorCheck/SumItemsType.vue

@ -29,7 +29,9 @@ export default {
//
mounted() {
if(this.sumDoctorCheck.sumPREdit.patientId){
this.SumItems(this.sumDoctorCheck.sumPREdit.patientId);
}
},
computed: {

7
src/components/sumDoctorCheck/SumSug.vue

@ -90,7 +90,12 @@ export default {
//
mounted() {
this.rowDrop();
this.rowDropSuggestion()
this.rowDropSuggestion();
if(this.sumDoctorCheck.sumPREdit.id){
this.summaryList(this.sumDoctorCheck.sumPREdit.id);
this.suggestionList(this.sumDoctorCheck.sumPREdit.id);
}
},
computed: {

Loading…
Cancel
Save