Browse Source

charge seo

master
pengjun 2 years ago
parent
commit
32ac3d2f98
  1. 36
      src/components/patientRegister/PatientRegisterEdit.vue
  2. 126
      src/views/charge/charge.vue

36
src/components/patientRegister/PatientRegisterEdit.vue

@ -614,7 +614,13 @@
<MergeAsbitem :id="form.id" :organizationUnitId="form.organizationUnitId" :brushTimes="brushTimes" /> <MergeAsbitem :id="form.id" :organizationUnitId="form.organizationUnitId" :brushTimes="brushTimes" />
</el-dialog> </el-dialog>
<!-- 收费 -->
<el-dialog title="" :visible.sync="chargeVisible" :close-on-click-modal="false"
:append-to-body="true" fullscreen @close="closeDialogCharge">
<div style="margin-top: -30px;">
<Charge :patientRegisterNo="chargePatientRegisterNo"/>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
@ -628,6 +634,7 @@ 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";
import MergeAsbitem from "./MergeAsbitem.vue"; import MergeAsbitem from "./MergeAsbitem.vue";
import Charge from "../../views/charge/charge.vue";
export default { export default {
components: { components: {
@ -635,6 +642,7 @@ export default {
LisRequest, LisRequest,
MergeAsbitem, MergeAsbitem,
PatientRegisterItem, PatientRegisterItem,
Charge,
}, },
props: ['formInitData', 'editTimes'], props: ['formInitData', 'editTimes'],
data() { data() {
@ -735,6 +743,9 @@ export default {
registerChoosed:{}, registerChoosed:{},
dialogCamera: false, // dialogCamera: false, //
chargeVisible:false, //
chargePatientRegisterNo:'', //
}; };
}, },
@ -1318,7 +1329,7 @@ export default {
// let lfind = arrayExistObj(this.patientRegister.prList, 'id', this.form.id) // let lfind = arrayExistObj(this.patientRegister.prList, 'id', this.form.id)
// if(lfind > - 1) objCopy(this.form,this.patientRegister.prList[lfind]) // if(lfind > - 1) objCopy(this.form,this.patientRegister.prList[lfind])
//this.patientRegister.saveTimes++; //
this.patientRegister.saveTimes++; //
} }
}); });
} }
@ -1624,8 +1635,25 @@ export default {
}, },
toCharge(patientRegisterNo) { toCharge(patientRegisterNo) {
this.patientRegister.patientRegisterRd.patientRegisterNo = patientRegisterNo;
this.$router.push({ path: "/charge" });
if(!patientRegisterNo){
this.$message.warning("请先保存人员信息!")
return
}
//
this.chargePatientRegisterNo = ''
setTimeout(() => {
this.chargePatientRegisterNo = patientRegisterNo
}, 100)
//this.$router.push({ path: "/charge" });
this.chargeVisible = true
},
//
closeDialogCharge(){
this.getPatientRegisterAbs(this.form.id)
}, },
}, },

126
src/views/charge/charge.vue

@ -24,7 +24,7 @@
<el-radio label="Y">已收费</el-radio> <el-radio label="Y">已收费</el-radio>
<el-radio label="B">已退费</el-radio> <el-radio label="B">已退费</el-radio>
</el-radio-group> </el-radio-group>
<div style="margin-left:20px;">
<div v-if="query.chargeFlag != 'N'" style="margin-left:20px;">
<span>发票号</span> <span>发票号</span>
<el-input placeholder="发票/收据号" v-model="query.invoiceNo" size="small" style="width: 100px;" clearable <el-input placeholder="发票/收据号" v-model="query.invoiceNo" size="small" style="width: 100px;" clearable
@change="Query('invoiceNo')" /> @change="Query('invoiceNo')" />
@ -33,7 +33,7 @@
</div> </div>
<!-- 列表 --> <!-- 列表 -->
<div class="prListDivClass"> <div class="prListDivClass">
<el-table :data="patientList" border highlight-current-row
<el-table :data="patientList" border highlight-current-row ref="patientList"
:height="(window.pageHeight > 600 ? (window.pageHeight - 230) : 370)" @row-click="rowClick" size="small"> :height="(window.pageHeight > 600 ? (window.pageHeight - 230) : 370)" @row-click="rowClick" size="small">
<!-- <!--
<el-table-column prop="patientRegisterId" label="体检记录ID" /> <el-table-column prop="patientRegisterId" label="体检记录ID" />
@ -96,7 +96,7 @@
<!-- 收费信息 --> <!-- 收费信息 -->
<div class="prListDivClass"> <div class="prListDivClass">
<!-- charge --> <!-- charge -->
<div style="height:103px;">
<div style="height:148px;">
<el-form ref="form" :model="form" label-width="80px" :rules="rules" size="small" <el-form ref="form" :model="form" label-width="80px" :rules="rules" size="small"
:disabled="query.chargeFlag != 'N'"> :disabled="query.chargeFlag != 'N'">
<el-row> <el-row>
@ -247,10 +247,11 @@ export default {
PatientRegisterQuery, PatientRegisterQuery,
PatientRegisterRefuseList, PatientRegisterRefuseList,
}, },
props:["patientRegisterNo"],
data() { data() {
return { return {
query: { query: {
chargeFlag: 'N',
chargeFlag: 'N', // N:YB退
dateRange: null, dateRange: null,
startDate: null, startDate: null,
endDate: null, endDate: null,
@ -280,37 +281,37 @@ export default {
], ],
}, },
pickerOptions: {
shortcuts: [
{
text: "最近一周",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近一个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近三个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit("pick", [start, end]);
},
},
],
},
// pickerOptions: {
// shortcuts: [
// {
// text: "",
// onClick(picker) {
// const end = new Date();
// const start = new Date();
// start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
// picker.$emit("pick", [start, end]);
// },
// },
// {
// text: "",
// onClick(picker) {
// const end = new Date();
// const start = new Date();
// start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
// picker.$emit("pick", [start, end]);
// },
// },
// {
// text: "",
// onClick(picker) {
// const end = new Date();
// const start = new Date();
// start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
// picker.$emit("pick", [start, end]);
// },
// },
// ],
// },
chargePays: [], // chargePays: [], //
chargePaysInit: [], //() chargePaysInit: [], //()
asbItemsForFee: [], // asbItemsForFee: [], //
@ -322,17 +323,15 @@ export default {
created() { created() {
this.dictInit(); this.dictInit();
this.query.patientRegisterNo = this.patientRegister.patientRegisterRd.patientRegisterNo;
}, },
// //
mounted() { mounted() {
if(this.query.patientRegisterNo){
if(this.patientRegisterNo){
this.Query('patientRegisterNo'); this.Query('patientRegisterNo');
}else{ }else{
this.Query(); this.Query();
} }
}, },
computed: { computed: {
@ -346,8 +345,8 @@ export default {
// //
Query(type) { Query(type) {
let url = '', body = {};
console.log('query', type, this.query);
let url = '', ltype = type,body = {};
// { // {
// "skipCount": 2147483647, // "skipCount": 2147483647,
@ -360,13 +359,22 @@ export default {
// "endDate": "string", // "endDate": "string",
// "maxResultCount": 0 // "maxResultCount": 0
// } // }
if (type == 'patientRegisterNo') {
if(this.patientRegisterNo){
this.query.patientRegisterNo = this.patientRegisterNo
ltype = 'patientRegisterNo'
}
console.log('query', ltype, this.query,this.patientRegisterNo);
if (ltype == 'patientRegisterNo') {
if (!this.query.patientRegisterNo) return; if (!this.query.patientRegisterNo) return;
body = { patientRegisterNo: this.query.patientRegisterNo }; body = { patientRegisterNo: this.query.patientRegisterNo };
} else if (type == 'patientNo') {
} else if (ltype == 'patientNo') {
if (!this.query.patientNo) return; if (!this.query.patientNo) return;
body = { patientNo: this.query.patientNo }; body = { patientNo: this.query.patientNo };
} else if (type == 'invoiceNo' && this.query.chargeFlag != 'N') {
} else if (ltype == 'invoiceNo' && this.query.chargeFlag != 'N') {
if (!this.query.invoiceNo) return; if (!this.query.invoiceNo) return;
body = { invoiceNo: this.query.invoiceNo }; body = { invoiceNo: this.query.invoiceNo };
} else { } else {
@ -402,12 +410,17 @@ export default {
background: 'rgba(0, 0, 0, 0.7)' background: 'rgba(0, 0, 0, 0.7)'
}); });
postapi(url, body).then(res => { postapi(url, body).then(res => {
console.log(url,body,res)
if (res.code != - 1) { if (res.code != - 1) {
this.patientList = res.data.items; this.patientList = res.data.items;
if (this.patientList.length > 0) {
this.query.patientRegisterNo = this.patientList[0].patientRegisterNo;
this.query.patientName = this.patientList[0].patientName;
this.query.patientNo = this.patientList[0].patientNo;
if (this.patientList.length == 1 && this.query.chargeFlag == 'N') {
// this.query.patientRegisterNo = this.patientList[0].patientRegisterNo;
// this.query.patientName = this.patientList[0].patientName;
// this.query.patientNo = this.patientList[0].patientNo;
this.rowClick(this.patientList[0])
setTimeout(() => {
this.$refs['patientList'].setCurrentRow(this.patientList[0])
}, 100)
} }
} }
loading.close(); loading.close();
@ -425,7 +438,7 @@ export default {
this.query.patientNo = row.patientNo; this.query.patientNo = row.patientNo;
this.chargePays = deepCopy(this.chargePaysInit); this.chargePays = deepCopy(this.chargePaysInit);
//console.log(this.chargePays, this.chargePaysInit);
console.log(this.chargePays, this.chargePaysInit);
if (this.query.chargeFlag == 'B') { if (this.query.chargeFlag == 'B') {
this.form.chargeFlag = '1'; this.form.chargeFlag = '1';
@ -947,6 +960,9 @@ export default {
// //
dictInit() { dictInit() {
this.query.startDate = new Date()
this.query.endDate = this.query.startDate
// //
getapi("/api/app/sex").then((res) => { getapi("/api/app/sex").then((res) => {
if (res.code == 1) { if (res.code == 1) {
@ -1073,7 +1089,19 @@ export default {
//() //()
watch: { watch: {
"patientRegisterNo":{
immediate: true, //
// deep: true, //
handler(newVal,oldVal){
console.log('watch:patientRegisterNo:',newVal,oldVal)
if(newVal != oldVal){
if(newVal){
this.query.patientRegisterNo = newVal
this.Query("patientRegisterNo")
}
}
}
},
}, },
}; };
</script> </script>

Loading…
Cancel
Save