Showing
1 changed file
with
2 additions
and
7 deletions
| ... | @@ -966,7 +966,7 @@ export default { | ... | @@ -966,7 +966,7 @@ export default { |
| 966 | isFold: false, | 966 | isFold: false, |
| 967 | // 用于保存原始数据 | 967 | // 用于保存原始数据 |
| 968 | originalDetailData: {}, | 968 | originalDetailData: {}, |
| 969 | - // 当前编辑行的 gnum | 969 | + // 当前编辑行的 |
| 970 | currentRowKey: null, | 970 | currentRowKey: null, |
| 971 | lastItemValid: true, // 默认值为 true,表示没有新增项或上一次新增项通过了校验 | 971 | lastItemValid: true, // 默认值为 true,表示没有新增项或上一次新增项通过了校验 |
| 972 | }; | 972 | }; |
| ... | @@ -1043,12 +1043,7 @@ export default { | ... | @@ -1043,12 +1043,7 @@ export default { |
| 1043 | res.data.declare.orderNo = res.data.declare.orderno; | 1043 | res.data.declare.orderNo = res.data.declare.orderno; |
| 1044 | this.formData = res.data.declare; | 1044 | this.formData = res.data.declare; |
| 1045 | this.formData.appType = 9610; | 1045 | this.formData.appType = 9610; |
| 1046 | - this.detailData = res.data.product.length | 1046 | + this.detailData = res.data.product; |
| 1047 | - ? res.data.product.map((item, index) => { | ||
| 1048 | - item.gnum = index + 1; | ||
| 1049 | - return item; | ||
| 1050 | - }) | ||
| 1051 | - : []; | ||
| 1052 | } else { | 1047 | } else { |
| 1053 | this.detailData = []; | 1048 | this.detailData = []; |
| 1054 | this.formData = {}; | 1049 | this.formData = {}; | ... | ... |
-
Please register or login to post a comment