jiaxing.zhou

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

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