pengjun 1 year ago
parent
commit
ccf11bb600
  1. 3
      src/components/patientRegister/PatientRegisterEdit.vue
  2. 4
      src/components/patientRegister/PatientRegisterItem.vue
  3. 2
      src/components/patientRegister/patientRegisterAsbItem.vue

3
src/components/patientRegister/PatientRegisterEdit.vue

@ -1689,6 +1689,9 @@ export default {
// id
this.dataTransOpts.tableM.register_check_asbitem = res.data.registerCheckAsbitems
this.dataTransOpts.tableM.register_check_asbitem.forEach(e => {
e.total = e.amount * e.chargePrice
});
//
if (this.peoplePhoto && this.peoplePhoto.indexOf("data:image") > -1) await savePeoplePhoto(res.data.id, this.peoplePhoto);

4
src/components/patientRegister/PatientRegisterItem.vue

@ -125,13 +125,13 @@
<el-input type="number" v-model="scope.row.amount" size="small" @input="changeDiscount(scope.$index)" />
</template>
</el-table-column>
<el-table-column label="收价格" prop="chargePrice" min-width="70">
<el-table-column label="收价格" prop="chargePrice" min-width="70">
<template slot-scope="scope">
<el-input type="number" v-model="scope.row.chargePrice" size="small" @input="changePrice(scope.$index)" />
<!--立即触发保存 @blur="onSubmit('')" -->
</template>
</el-table-column>
<el-table-column prop="total" label="金额" min-width="70" align="center" />
<el-table-column prop="total" label="应收金额" min-width="70" align="center" />
<el-table-column prop="standTotal" label="标准金额" min-width="70" v-if="false" />
<el-table-column label="支付方式" prop="payTypeFlag" width="80">
<template slot-scope="scope">

2
src/components/patientRegister/patientRegisterAsbItem.vue

@ -186,7 +186,7 @@ export default {
return prev;
}
}, 0);
sums[index] = Math.round(sums[index], 2);
sums[index] = Math.floor(sums[index]*100)/100;
sums[index] += " 元";
} else {
sums[index] = "N/A";

Loading…
Cancel
Save