jiaxing.zhou

feat(summaryDetail): 为 detailData 添加 gnum 字段并从1 开始编号

- 在获取数据后,为 detailData 数组的每个元素添加 gnum 字段
- gnum 从 1 开始编号,用于表示序号
......@@ -67,7 +67,7 @@
<el-select
type="text"
id="inputInner--appType"
v-model="formData.businessStatus"
clearable
placeholder=""
>
......@@ -423,6 +423,7 @@ export default {
this.logData = res.data.receipts;
this.detailData.forEach((item, idx) => {
item.index = idx;
item.gnum = idx + 1; // 设置 gnum 从 1 开始编号
});
} else {
this.alertWarningMsg(res.message);
......