Commit a7bb9d30 authored by 任鸿志's avatar 任鸿志

refactor(jiesuan): 重构门诊结算界面

- 优化了订单处理逻辑,增加了订单号和序列号的关联
- 调整了数据结构,提高了代码的可读性和维护性
- 为后续的退费功能做准备,增加了必要的数据字段
parent 916f3214
......@@ -2164,6 +2164,7 @@ export default {
var order_no = []
var serial_arr = [];
array.forEach(function (element) {
let obj = {};
total += element.total * 1 * 1
orders.push(element.settle_type.is_mb)
cost_ids.push(element.serial_no)
......@@ -2207,11 +2208,17 @@ export default {
var orders = []
var costint = []
var cost_ids = []
var order_no = []
var serial_arr = [];
array.forEach(function (element) {
let obj = {};
total += element.total * 1 * 1
orders.push(element.settle_type.is_mb)
cost_ids.push(element.serial_no)
costint.push(element)
obj['serial_no']=element.serial_no
obj['order_no']=element.order_no
serial_arr.push(obj)
})
this.cost_id = cost_ids
......@@ -2220,6 +2227,7 @@ export default {
if (array.length != 0) {
info({
order_no:serial_arr,
serial_no: cost_ids.toString(),
patient_id: this.patientData.patient_id,
settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment