zhanbo.xu

feat: 修改排序取值

......@@ -966,7 +966,7 @@ export default {
isFold: false,
// 用于保存原始数据
originalDetailData: {},
// 当前编辑行的 gnum
// 当前编辑行的
currentRowKey: null,
lastItemValid: true, // 默认值为 true,表示没有新增项或上一次新增项通过了校验
};
......@@ -1043,12 +1043,7 @@ export default {
res.data.declare.orderNo = res.data.declare.orderno;
this.formData = res.data.declare;
this.formData.appType = 9610;
this.detailData = res.data.product.length
? res.data.product.map((item, index) => {
item.gnum = index + 1;
return item;
})
: [];
this.detailData = res.data.product;
} else {
this.detailData = [];
this.formData = {};
......