refactor(editReportingData): 优化报关数据编辑功能
-移除出口日期的必填验证 - 注释掉申报数据获取时的日志输出 - 优化取消编辑行数据的逻辑,删除对应索引的数据 - 修改离境回执名称为离境单回执
Showing
3 changed files
with
6 additions
and
6 deletions
| ... | @@ -365,7 +365,7 @@ | ... | @@ -365,7 +365,7 @@ |
| 365 | }, | 365 | }, |
| 366 | cancelEditRowData(){ | 366 | cancelEditRowData(){ |
| 367 | this.tableRowformData = {} | 367 | this.tableRowformData = {} |
| 368 | - this.$emit('cancelEditRowData') | 368 | + this.$emit('cancelEditRowData',this.rowDatas.row.gnum-1) |
| 369 | }, | 369 | }, |
| 370 | }, | 370 | }, |
| 371 | }; | 371 | }; |
| ... | @@ -411,4 +411,3 @@ | ... | @@ -411,4 +411,3 @@ |
| 411 | border-left: 3px solid #007AB7; | 411 | border-left: 3px solid #007AB7; |
| 412 | } | 412 | } |
| 413 | </style> | 413 | </style> |
| 414 | - | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -592,7 +592,7 @@ | ... | @@ -592,7 +592,7 @@ |
| 592 | { required: true, message: '请选择申报地海关', trigger: 'change' } | 592 | { required: true, message: '请选择申报地海关', trigger: 'change' } |
| 593 | ], | 593 | ], |
| 594 | exportDate: [ | 594 | exportDate: [ |
| 595 | - { required: true, message: '请选择出口日期', trigger: 'change' } | 595 | + { message: '请选择出口日期', trigger: 'change' } |
| 596 | ], | 596 | ], |
| 597 | goodsValue: [ | 597 | goodsValue: [ |
| 598 | { required: true, message: '请输入商品金额', trigger: 'blur' } | 598 | { required: true, message: '请输入商品金额', trigger: 'blur' } |
| ... | @@ -844,7 +844,7 @@ | ... | @@ -844,7 +844,7 @@ |
| 844 | //获取申报数据 | 844 | //获取申报数据 |
| 845 | queryDeclareData(declareId) { | 845 | queryDeclareData(declareId) { |
| 846 | getDeclareData({declareId}).then(res =>{ | 846 | getDeclareData({declareId}).then(res =>{ |
| 847 | - console.log(1111, res) | 847 | + // console.log(1111, res) |
| 848 | if (res.code == 200) { | 848 | if (res.code == 200) { |
| 849 | res.data.declare.orderNo = res.data.declare.orderno | 849 | res.data.declare.orderNo = res.data.declare.orderno |
| 850 | this.formData = res.data.declare | 850 | this.formData = res.data.declare |
| ... | @@ -941,8 +941,9 @@ | ... | @@ -941,8 +941,9 @@ |
| 941 | this.getTotalNumber() | 941 | this.getTotalNumber() |
| 942 | }) | 942 | }) |
| 943 | }, | 943 | }, |
| 944 | - cancelEditRowData(){ | 944 | + cancelEditRowData(index){ |
| 945 | this.expandRowKeys = [] | 945 | this.expandRowKeys = [] |
| 946 | + this.detailData.splice(index) | ||
| 946 | }, | 947 | }, |
| 947 | 948 | ||
| 948 | //提交更新数据 | 949 | //提交更新数据 | ... | ... |
| ... | @@ -492,7 +492,7 @@ export default { | ... | @@ -492,7 +492,7 @@ export default { |
| 492 | slot: true, | 492 | slot: true, |
| 493 | }, | 493 | }, |
| 494 | { | 494 | { |
| 495 | - name: "离境回执", | 495 | + name: "离境单回执", |
| 496 | value: "logisticsReceiptStatus", | 496 | value: "logisticsReceiptStatus", |
| 497 | width: "", | 497 | width: "", |
| 498 | align: "left", | 498 | align: "left", | ... | ... |
-
Please register or login to post a comment