|
|
@ -1,7 +1,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div> |
|
|
<div> |
|
|
<div style="display: flex"> |
|
|
<div style="display: flex"> |
|
|
<el-table :data="patientRegister.patientRegisterAbs" border |
|
|
|
|
|
|
|
|
<el-table :data="dataTransOpts.tableM.register_asbitem" border |
|
|
:height="window.pageHeight < 600 ? 100 : Math.floor((window.pageHeight - 302) / 3)" size="small" |
|
|
:height="window.pageHeight < 600 ? 100 : Math.floor((window.pageHeight - 302) / 3)" size="small" |
|
|
highlight-current-row :summary-method="getSummaries" show-summary |
|
|
highlight-current-row :summary-method="getSummaries" show-summary |
|
|
ref="patientRegister.patientRegisterAbs"> |
|
|
ref="patientRegister.patientRegisterAbs"> |
|
|
@ -17,23 +17,19 @@ |
|
|
<el-table-column prop="chargePrice" label="价格" align="center" /> |
|
|
<el-table-column prop="chargePrice" label="价格" align="center" /> |
|
|
<el-table-column prop="payTypeFlag" label="支付方式" align="center" > |
|
|
<el-table-column prop="payTypeFlag" label="支付方式" align="center" > |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<div> |
|
|
|
|
|
{{ |
|
|
|
|
|
ldddw(dict.payType, "id", scope.row.payTypeFlag, "displayName") |
|
|
|
|
|
}} |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<div>{{ dddw(dict.payType, "id", scope.row.payTypeFlag, "displayName") }}</div> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="isCharge" label="收费" width="50" align="center"> |
|
|
|
|
|
|
|
|
<el-table-column prop="isCharge" label="收费" min-width="50" align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-checkbox :value="scope.row.isCharge == 'Y'" align="center" /> |
|
|
<el-checkbox :value="scope.row.isCharge == 'Y'" align="center" /> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="checkCompleteFlag" label="状态" align="center" > |
|
|
|
|
|
|
|
|
<el-table-column prop="checkCompleteFlag" label="状态" min-width="50" align="center" > |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<div> |
|
|
<div> |
|
|
{{ |
|
|
{{ |
|
|
ldddw( |
|
|
|
|
|
|
|
|
dddw( |
|
|
dict.checkCompleteFlag, |
|
|
dict.checkCompleteFlag, |
|
|
"id", |
|
|
"id", |
|
|
scope.row.checkCompleteFlag, |
|
|
scope.row.checkCompleteFlag, |
|
|
@ -43,15 +39,15 @@ |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="isLock" label="锁" width="50" align="center" > |
|
|
|
|
|
|
|
|
<el-table-column prop="isLock" label="锁" min-width="50" align="center" > |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-checkbox :value="scope.row.isLock == 'Y'" align="center" /> |
|
|
<el-checkbox :value="scope.row.isLock == 'Y'" align="center" /> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="creatorName" label="登记人" align="center" /> |
|
|
|
|
|
<el-table-column prop="creationTime" label="登记日期" width="90" align="center" > |
|
|
|
|
|
|
|
|
<el-table-column prop="creatorName" label="登记人" min-width="70" align="center" /> |
|
|
|
|
|
<el-table-column prop="creationTime" label="登记日期" min-width="90" align="center" > |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<div>{{ lmoment(scope.row.creationTime, "yyyy-MM-DD") }}</div> |
|
|
|
|
|
|
|
|
<div>{{ moment(scope.row.creationTime).format("yyyy-MM-DD") }}</div> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
@ -62,6 +58,8 @@ |
|
|
import moment from "moment"; |
|
|
import moment from "moment"; |
|
|
import { mapState } from "vuex"; |
|
|
import { mapState } from "vuex"; |
|
|
import { dddw } from "../../utlis/proFunc"; |
|
|
import { dddw } from "../../utlis/proFunc"; |
|
|
|
|
|
import { getapi, postapi, putapi, deletapi } from "../../api/api"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
components: {}, |
|
|
components: {}, |
|
|
data() { |
|
|
data() { |
|
|
@ -82,15 +80,29 @@ export default { |
|
|
mounted() { }, |
|
|
mounted() { }, |
|
|
|
|
|
|
|
|
computed: { |
|
|
computed: { |
|
|
...mapState(["window", "dict", "patientRegister"]), |
|
|
|
|
|
|
|
|
...mapState(["window", "dataTransOpts", "dict", "patientRegister"]), |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
ldddw(arrayData, key, value, display) { |
|
|
|
|
|
return dddw(arrayData, key, value, display); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
dddw,moment, |
|
|
|
|
|
|
|
|
|
|
|
// 刷新登记的项目 |
|
|
|
|
|
retrieveRegister_asbitem(id){ |
|
|
|
|
|
if(!id){ |
|
|
|
|
|
this.dataTransOpts.tableM.register_asbitem = [] |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
getapi(`/api/app/registerasbitem/getlistinpatientregisterid?PatientRegisterId=${id}`) |
|
|
|
|
|
.then(res => { |
|
|
|
|
|
console.log(`/api/app/registerasbitem/getlistinpatientregisterid?PatientRegisterId=${id}`, res) |
|
|
|
|
|
if (res.code != -1) { |
|
|
|
|
|
res.data.forEach(e => { |
|
|
|
|
|
e.standTotal = e.amount * e.standardPrice |
|
|
|
|
|
e.total = e.amount * e.chargePrice |
|
|
|
|
|
}); |
|
|
|
|
|
this.dataTransOpts.tableM.register_asbitem = res.data |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
lmoment(date, forMat) { |
|
|
|
|
|
return moment(new Date(date)).format(forMat); |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// :row-class-name="tableRowClassName" |
|
|
// :row-class-name="tableRowClassName" |
|
|
@ -142,6 +154,18 @@ export default { |
|
|
return sums; |
|
|
return sums; |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//监听事件 |
|
|
|
|
|
watch: { |
|
|
|
|
|
//人员ID未切换换时 也可以强制刷新数据 |
|
|
|
|
|
"dataTransOpts.refresh.register_asbitem.M":{ |
|
|
|
|
|
immediate:true, |
|
|
|
|
|
handler(newVal, oldVal) { |
|
|
|
|
|
console.log(`watch 人员登记 newVal:${newVal} oldVal:${oldVal} registerCheckId: ${this.dataTransOpts.tableS.patient_register.id}`); |
|
|
|
|
|
this.retrieveRegister_asbitem(this.dataTransOpts.tableS.patient_register.id) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
} |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|
<style scoped> |
|
|
<style scoped> |
|
|
|