Browse Source

charge

master
pengjun 1 month ago
parent
commit
6db86876ea
  1. 5
      src/components/doctorCheck/CheckPicture.vue
  2. 66
      src/views/charge/charge.vue

5
src/components/doctorCheck/CheckPicture.vue

@ -420,7 +420,7 @@ export default {
patientName: this.dataTransOpts.tableS.patient_register.patientName, patientName: this.dataTransOpts.tableS.patient_register.patientName,
sexName: this.dataTransOpts.tableS.patient_register.sexName, sexName: this.dataTransOpts.tableS.patient_register.sexName,
age: (this.dataTransOpts.tableS.patient_register.age || '') + '', age: (this.dataTransOpts.tableS.patient_register.age || '') + '',
asbitemName: this.doctorCheck.asbitemName
asbitemName: this.doctorCheck.checkRequestNo||'temp'
} }
// console.log('this.$peisAPI.imageAcquisition', JSON.stringify(toOutShell)) // console.log('this.$peisAPI.imageAcquisition', JSON.stringify(toOutShell))
@ -455,7 +455,8 @@ export default {
this.checkPictures.push({ pictureFilename: baseHead + item.Image }) this.checkPictures.push({ pictureFilename: baseHead + item.Image })
let fileName = item.FilePath let fileName = item.FilePath
let dotIndex = fileName.lastIndexOf('\\'); let dotIndex = fileName.lastIndexOf('\\');
if (dotIndex > -1) fileName = fileName.substring(dotIndex, fileName.length);
let pointIndex = fileName.lastIndexOf('.');
if (dotIndex > -1) fileName = fileName.substring(dotIndex + 1, pointIndex || fileName.length);
let body = { let body = {
registerCheckId: this.dataTransOpts.tableS.register_check.id, registerCheckId: this.dataTransOpts.tableS.register_check.id,

66
src/views/charge/charge.vue

@ -180,8 +180,7 @@
</el-table-column> </el-table-column>
<el-table-column v-if="query.chargeFlag == 'N'" width="30" align="center"> <el-table-column v-if="query.chargeFlag == 'N'" width="30" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<i class="el-icon-search" @click="getCardId(scope.$index)"
v-if="scope.row.payModeId == '05'"
<i class="el-icon-search" @click="getCardId(scope.$index)" v-if="scope.row.payModeId == '05'"
style="font-size: 24px;color: blue;cursor:pointer;"></i> style="font-size: 24px;color: blue;cursor:pointer;"></i>
</template> </template>
</el-table-column> </el-table-column>
@ -276,7 +275,8 @@
<el-option label="身份证号" value="idNo" /> <el-option label="身份证号" value="idNo" />
<el-option label="手机号" value="phone" /> <el-option label="手机号" value="phone" />
</el-select> </el-select>
<el-input placeholder="卡号" v-model="queryCard.value" size="small" clearable style="width: 190px" @change="btnQueryCard"/>
<el-input placeholder="卡号" v-model="queryCard.value" size="small" clearable style="width: 190px"
@change="btnQueryCard" />
</div> </div>
<div class="query"> <div class="query">
<el-button class="commonbutton" @click="btnQueryCard">查询</el-button> <el-button class="commonbutton" @click="btnQueryCard">查询</el-button>
@ -431,7 +431,8 @@ export default {
cardChoosed: {}, // cardChoosed: {}, //
winDialog: { winDialog: {
queryCard: false, queryCard: false,
}
},
charge_normal_card: 1, // 使
}; };
}, },
@ -704,10 +705,10 @@ export default {
// //
btnOkCard() { btnOkCard() {
this.chargePays[this.cardSeq].cardNo = this.cardChoosed.cardNo
this.chargePays[this.cardSeq].cardNo = this.cardChoosed.cardNo + ' 余:' + this.cardChoosed.cardBalance
this.chargePays[this.cardSeq].cardRegisterId = this.cardChoosed.id this.chargePays[this.cardSeq].cardRegisterId = this.cardChoosed.id
// //
this.form.discount = this.cardChoosed.discount||100
this.form.discount = this.cardChoosed.discount || 100
this.discountToDetails() this.discountToDetails()
this.winDialog.queryCard = false this.winDialog.queryCard = false
@ -1241,6 +1242,27 @@ export default {
} }
}, },
// charge_normal_card
getChargeNormalCard() {
return new Promise((resolve, reject) => {
// (pacs0:1:)
postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'charge_normal_card' })
.then(res => {
if (res.code > -1) {
try {
this.charge_normal_card = Number(res.data || "1") || 1
} catch (error) {
console.log('charge_normal_card', error)
}
}
})
.finally(() => {
resolve()
})
})
},
// //
dictInit() { dictInit() {
@ -1350,17 +1372,27 @@ export default {
*/ */
// /api/app/pay-mode() // /api/app/pay-mode()
getapi("/api/app/paymode/getlistinisactive").then((res) => {
if (res.code == 1) {
this.dict.payMode = res.data;
//
this.chargePaysInit = [];
this.dict.payMode.forEach(e => {
this.chargePaysInit.push({ chargeId: null, payModeId: e.id, chargeMoney: 0, cardBillId: null, cardRegisterId: '', cardNo: '' })
});
this.chargePays = deepCopy(this.chargePaysInit);
}
});
this.getChargeNormalCard()
.then(() => {
return getapi("/api/app/paymode/getlistinisactive")
})
.then((res) => {
if (res.code == 1) {
this.dict.payMode = res.data;
//
this.chargePaysInit = [];
this.dict.payMode.forEach(e => {
if(e.id == '05'){
for (let index = 0; index < this.charge_normal_card; index++) {
this.chargePaysInit.push({ chargeId: null, payModeId: e.id, chargeMoney: 0, cardBillId: null, cardRegisterId: '', cardNo: '' })
}
}else{
this.chargePaysInit.push({ chargeId: null, payModeId: e.id, chargeMoney: 0, cardBillId: null, cardRegisterId: '', cardNo: '' })
}
});
this.chargePays = deepCopy(this.chargePaysInit);
}
});
// postapi("/api/app/asbitem/getasbitemlist", {}).then((res) => { // postapi("/api/app/asbitem/getasbitemlist", {}).then((res) => {
// if (res.code == 1) { // if (res.code == 1) {

Loading…
Cancel
Save