pengjun 3 months ago
parent
commit
74d34ed1d6
  1. BIN
      public/pic/evaluate.jpg
  2. 34
      src/components/doctorCheck/RegisterCheckEdit.vue
  3. 7
      src/components/patientRegister/PatientRegisterEdit.vue
  4. 1
      src/components/patientRegister/PatientRegisterList.vue
  5. 5
      src/components/patientRegister/patientRegisterQuery.vue
  6. 54
      src/components/report/TurnoverReportReal.vue

BIN
public/pic/evaluate.jpg

After

Width: 800  |  Height: 800  |  Size: 65 KiB

34
src/components/doctorCheck/RegisterCheckEdit.vue

@ -7,39 +7,29 @@
</el-select> </el-select>
</div> </div>
<div> <div>
<span class="query">检查医生</span>
<el-select v-model="doctorCheck.RegisterCheckEdit.checkDoctorId" filterable clearable placeholder="请选择"
style="width: 80px" size="small" :filter-method="filterMethod">
<el-option v-for="item in users" :key="item.id" :label="item.surname" :value="item.id" />
<span class="query">检查</span>
<el-select v-model="doctorCheck.RegisterCheckEdit.checkDoctorId" filterable clearable placeholder="检查医生"
style="width: 120px" size="small" :filter-method="filterMethod">
<el-option v-for="item in users" :key="item.id" :label="item.userName + ' ' + item.surname" :value="item.id" />
</el-select> </el-select>
<el-date-picker v-model="doctorCheck.RegisterCheckEdit.checkDate" type="datetime" placeholder="检查日期" style="width: 90px" size="small" />
</div> </div>
<div> <div>
<span class="query">检查日期</span>
<el-date-picker v-model="doctorCheck.RegisterCheckEdit.checkDate" type="datetime" style="width: 90px" size="small" />
</div>
<div>
<span class="query">审核医生</span>
<el-select v-model="doctorCheck.RegisterCheckEdit.auditorUserId" filterable clearable placeholder="请选择"
style="width: 80px" size="small" :disabled="doctorCheck.RegisterCheckEdit.isAudit == 'Y' ? true:false" :filter-method="filterMethod">
<el-option v-for="item in users" :key="item.id" :label="item.surname" :value="item.id" />
<span class="query">审核</span>
<el-select v-model="doctorCheck.RegisterCheckEdit.auditorUserId" filterable clearable placeholder="审核医生"
style="width: 120px" size="small" :disabled="doctorCheck.RegisterCheckEdit.isAudit == 'Y' ? true:false" :filter-method="filterMethod">
<el-option v-for="item in users" :key="item.id" :label="item.userName + ' ' + item.surname" :value="item.id" />
</el-select> </el-select>
</div>
<div>
<span class="query">审核日期</span>
<el-date-picker v-model="doctorCheck.RegisterCheckEdit.auditTime" type="datetime" style="width: 90px" size="small" :disabled="doctorCheck.RegisterCheckEdit.isAudit == 'Y' ? true:false" />
</div>
<div>
<el-date-picker v-model="doctorCheck.RegisterCheckEdit.auditTime" type="datetime" placeholder="审核日期" style="width: 90px" size="small" :disabled="doctorCheck.RegisterCheckEdit.isAudit == 'Y' ? true:false" />
<el-select v-model="doctorCheck.RegisterCheckEdit.isAudit" style="width: 60px" size="small" disabled> <el-select v-model="doctorCheck.RegisterCheckEdit.isAudit" style="width: 60px" size="small" disabled>
<el-option label="已审" value="Y" /> <el-option label="已审" value="Y" />
<el-option label="未审" value="N" /> <el-option label="未审" value="N" />
</el-select> </el-select>
</div> </div>
<div> <div>
<span class="query">操作</span>
<span class="query">操作</span>
<el-input v-model="doctorCheck.RegisterCheckEdit.lastModifierName" size="small" style="width: 80px" disabled /> <el-input v-model="doctorCheck.RegisterCheckEdit.lastModifierName" size="small" style="width: 80px" disabled />
</div>
<div>
<span class="query">操作日期</span>
<el-input <el-input
:value="doctorCheck.RegisterCheckEdit.lastModificationTime ? lmoment(doctorCheck.RegisterCheckEdit.lastModificationTime, 'yyyy-MM-DD') : ''" :value="doctorCheck.RegisterCheckEdit.lastModificationTime ? lmoment(doctorCheck.RegisterCheckEdit.lastModificationTime, 'yyyy-MM-DD') : ''"
style="width: 90px" size="small" disabled></el-input> style="width: 90px" size="small" disabled></el-input>

7
src/components/patientRegister/PatientRegisterEdit.vue

@ -2616,9 +2616,10 @@ export default {
preViewCanPrint: 'N', preViewCanPrint: 'N',
BusinessCode: this.form.id, BusinessCode: this.form.id,
Parameters: [ Parameters: [
{ Name: 'printer', Value: user },
{ Name: 'hisLog', Value: 'pic/hisLog.jpg' },
{ Name: 'pageFooter', Value: 'pic/peisQrCode.jpg' },
{ Name: 'printer', Value: user }, //
{ Name: 'hisLog', Value: 'pic/hisLog.jpg' }, //
{ Name: 'pageFooter', Value: 'pic/peisQrCode.jpg' }, //
{ Name: "picExtOne", Value: "pic/evaluate.jpg" }, // ()
], ],
}; };
console.log('this.$peisAPI.print', JSON.stringify(toOutShell)) console.log('this.$peisAPI.print', JSON.stringify(toOutShell))

1
src/components/patientRegister/PatientRegisterList.vue

@ -1134,6 +1134,7 @@ export default {
{ Name: "printer", Value: user }, { Name: "printer", Value: user },
{ Name: "hisLog", Value: "pic/hisLog.jpg" }, { Name: "hisLog", Value: "pic/hisLog.jpg" },
{ Name: "pageFooter", Value: "pic/peisQrCode.jpg" }, { Name: "pageFooter", Value: "pic/peisQrCode.jpg" },
{ Name: "picExtOne", Value: "pic/evaluate.jpg" }, // ()
], ],
}; };
let lfind = -1; let lfind = -1;

5
src/components/patientRegister/patientRegisterQuery.vue

@ -351,9 +351,8 @@ export default {
this.query.patientName = idNos.Name this.query.patientName = idNos.Name
this.query.sex = idNos.sexId this.query.sex = idNos.sexId
this.query.idCardNo = idNos.IDCode this.query.idCardNo = idNos.IDCode
this.query.times++;
//
this.btnQuery('idCardNo')
} else { } else {
this.$message.error({ showClose: true, message: lres.message }) this.$message.error({ showClose: true, message: lres.message })
} }

54
src/components/report/TurnoverReportReal.vue

@ -75,6 +75,13 @@
<el-option v-for="item in dictSalesman" :key="item.id" :label="item.surname" :value="item.surname" /> <el-option v-for="item in dictSalesman" :key="item.id" :label="item.surname" :value="item.surname" />
</el-select> </el-select>
</div> </div>
<div class="query">
<span>支付方式</span>
<el-select v-model="query.payModeIds" placeholder="请选择" style="margin-left: 10px" filterable clearable
size="small" multiple collapse-tags>
<el-option v-for="item in dict.payMode" :key="item.id" :label="item.displayName" :value="item.id" />
</el-select>
</div>
</div> </div>
</div> </div>
<div style="display: block;width: 110px;"> <div style="display: block;width: 110px;">
@ -93,20 +100,22 @@
<el-table-column prop="customerOrgName" label="单位名称" min-width="240" /> <el-table-column prop="customerOrgName" label="单位名称" min-width="240" />
<el-table-column v-if="query.isCustomerOrgRegister == 'Y' ? true : false" prop="medicalTimes" label="单位次数" <el-table-column v-if="query.isCustomerOrgRegister == 'Y' ? true : false" prop="medicalTimes" label="单位次数"
min-width="80" align="center" /> min-width="80" align="center" />
<el-table-column label="收款" align="center" >
<el-table-column label="收款" align="center">
<el-table-column prop="chargeCount" label="人数" min-width="80" align="center" /> <el-table-column prop="chargeCount" label="人数" min-width="80" align="center" />
<el-table-column prop="chargeTotal" label="金额" min-width="80" align="center" /> <el-table-column prop="chargeTotal" label="金额" min-width="80" align="center" />
</el-table-column> </el-table-column>
<el-table-column label="退款" min-width="80" align="center" >
<el-table-column label="退款" min-width="80" align="center">
<el-table-column prop="refundCount" label="人数" min-width="80" align="center" /> <el-table-column prop="refundCount" label="人数" min-width="80" align="center" />
<el-table-column prop="refundTotal" label="金额" min-width="80" align="center" /> <el-table-column prop="refundTotal" label="金额" min-width="80" align="center" />
</el-table-column> </el-table-column>
<el-table-column label="营收金额" min-width="80" align="center" >
<el-table-column label="营收金额" min-width="80" align="center">
<el-table-column prop="turnoverTotal" label="汇总" min-width="80" align="center" /> <el-table-column prop="turnoverTotal" label="汇总" min-width="80" align="center" />
<el-table-column v-for="(col,index) in asyncCols" :key="index" :prop="col" :label="col" min-width="80" align="center">
<el-table-column v-for="(col, index) in asyncCols" :key="index" :prop="col" :label="col" min-width="80"
align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tooltip class="item" :content="`收款:${scope.row[col+'_p']} 退款:${scope.row[col+'_b']}`" placement="top">
<div v-if="scope.row[col] !=0 ? true:false">{{ scope.row[col] }}</div>
<el-tooltip class="item" :content="`收款:${scope.row[col + '_p']} 退款:${scope.row[col + '_b']}`"
placement="top">
<div v-if="scope.row[col] != 0 ? true : false">{{ scope.row[col] }}</div>
</el-tooltip> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
@ -140,7 +149,6 @@ export default {
medicalType: [], medicalType: [],
personnelType: [], personnelType: [],
dictSalesman: [], dictSalesman: [],
query: { query: {
dateType: '6', dateType: '6',
startDate: '', startDate: '',
@ -149,6 +157,7 @@ export default {
medicalTypeIds: [], medicalTypeIds: [],
personnelTypeIds: [], personnelTypeIds: [],
salesmans: [], salesmans: [],
payModeIds: [],
// isMedicalTypeId: 'Y', // isMedicalTypeId: 'Y',
isPreRegistration: 'N', isPreRegistration: 'N',
isChild: 'Y', isChild: 'Y',
@ -177,7 +186,7 @@ export default {
}, },
computed: { computed: {
...mapState(["pickerOptions","window", "dict", "patientRegister", "report"]),
...mapState(["pickerOptions", "window", "dict", "patientRegister", "report"]),
}, },
methods: { methods: {
// //
@ -218,6 +227,12 @@ export default {
} }
}) })
//
getapi("/api/app/pay-mode").then((res) => {
if (res.code == 1) {
this.dict.payMode = res.data;
}
});
}, },
// //
@ -252,11 +267,9 @@ export default {
//let body = deepCopy(this.query) //let body = deepCopy(this.query)
postapi("/api/app/CustomerReport/GetCustomerOrgAmountReceivedStatistics", this.query).then(res => { postapi("/api/app/CustomerReport/GetCustomerOrgAmountReceivedStatistics", this.query).then(res => {
if (res.code > -1) { if (res.code > -1) {
if (Array.isArray(res.data) && res.data.length > 0) {
// //
this.makeDispData(res.data) this.makeDispData(res.data)
} }
}
}) })
}, },
@ -264,6 +277,9 @@ export default {
makeDispData(orgData) { makeDispData(orgData) {
this.tableData = [] this.tableData = []
this.asyncCols = [] this.asyncCols = []
//
if (!(Array.isArray(orgData) && orgData.length > 0)) return
orgData.forEach(e => { orgData.forEach(e => {
if (this.query.isChild == 'Y') { if (this.query.isChild == 'Y') {
e.customerOrgName = (e.customerOrgName == e.departmentName ? e.customerOrgName : e.customerOrgName + '--' + e.departmentName) e.customerOrgName = (e.customerOrgName == e.departmentName ? e.customerOrgName : e.customerOrgName + '--' + e.departmentName)
@ -273,7 +289,7 @@ export default {
e.feeDetail.forEach(c => { e.feeDetail.forEach(c => {
e.chargeTotal = Number(e.chargeTotal) + Number(c.chargeMoney) e.chargeTotal = Number(e.chargeTotal) + Number(c.chargeMoney)
e.refundTotal = Number(e.refundTotal) + Number(c.refundMoney) e.refundTotal = Number(e.refundTotal) + Number(c.refundMoney)
if(!this.asyncCols.includes(c.payModeName)){
if (!this.asyncCols.includes(c.payModeName)) {
this.asyncCols.push(c.payModeName) this.asyncCols.push(c.payModeName)
} }
e[c.payModeName] = Math.round((Number(c.chargeMoney) + Number(c.refundMoney)) * 100) / 100 e[c.payModeName] = Math.round((Number(c.chargeMoney) + Number(c.refundMoney)) * 100) / 100
@ -288,7 +304,7 @@ export default {
this.tableData.forEach(e => { this.tableData.forEach(e => {
this.asyncCols.forEach(col => { this.asyncCols.forEach(col => {
if(!e[col]){
if (!e[col]) {
e[col] = 0 e[col] = 0
} }
}); });
@ -308,22 +324,22 @@ export default {
// } // }
const { columns, data } = param; const { columns, data } = param;
let count = 7,sumCol = [] //
let count = 7, sumCol = [] //
const sums = []; const sums = [];
if (this.query.isCustomerOrgRegister == 'Y'){
sumCol = [2,3,4,5,6,7]
if (this.query.isCustomerOrgRegister == 'Y') {
sumCol = [2, 3, 4, 5, 6, 7]
count = 8 count = 8
}else{
sumCol = [2,3,4,5,6]
} else {
sumCol = [2, 3, 4, 5, 6]
} }
this.asyncCols.forEach(() => { this.asyncCols.forEach(() => {
sumCol.push(count++) sumCol.push(count++)
}); });
console.log('sumCol',sumCol)
console.log('sumCol', sumCol)
columns.forEach((column, index) => { columns.forEach((column, index) => {
console.log('column.property, index,data',column.property, index,data)
console.log('column.property, index,data', column.property, index, data)
// //
if (index === 1) { if (index === 1) {
sums[index] = '合计'; sums[index] = '合计';

Loading…
Cancel
Save