refactor(reportingData): 优化撤销单申报功能
- 在撤销单申报时,将 this.dropdownCode 设置为 dropdownCode - 在取消撤销时,将 this.dropdownCode重置为 'full' - 修改撤销对话框中的 type 参数,使用 this.dropdownCode 代替固定的 'cancellation'
Showing
2 changed files
with
3 additions
and
1 deletions
| ... | @@ -789,6 +789,7 @@ export default { | ... | @@ -789,6 +789,7 @@ export default { |
| 789 | if (dropdownName === '撤销单申报') { | 789 | if (dropdownName === '撤销单申报') { |
| 790 | this.revokeVisible = true; | 790 | this.revokeVisible = true; |
| 791 | this.$set(this.loadings, loadingKey, false); | 791 | this.$set(this.loadings, loadingKey, false); |
| 792 | + this.dropdownCode = dropdownCode; | ||
| 792 | return; | 793 | return; |
| 793 | } | 794 | } |
| 794 | 795 | ||
| ... | @@ -982,6 +983,7 @@ export default { | ... | @@ -982,6 +983,7 @@ export default { |
| 982 | cancelRevoke(){ | 983 | cancelRevoke(){ |
| 983 | this.loadings.dropDownLoading = false; | 984 | this.loadings.dropDownLoading = false; |
| 984 | this.revokeVisible = false | 985 | this.revokeVisible = false |
| 986 | + this.dropdownCode = 'full' | ||
| 985 | }, | 987 | }, |
| 986 | update(val) { | 988 | update(val) { |
| 987 | this.$router.push({ | 989 | this.$router.push({ | ... | ... |
| ... | @@ -131,7 +131,7 @@ | ... | @@ -131,7 +131,7 @@ |
| 131 | let obj = { | 131 | let obj = { |
| 132 | cancellationReason: this.cancelFormData.otherReason || this.cancelFormData.cancellationReason, | 132 | cancellationReason: this.cancelFormData.otherReason || this.cancelFormData.cancellationReason, |
| 133 | declareIds: [], | 133 | declareIds: [], |
| 134 | - type: 'cancellation', | 134 | + type: this.dropdownCode, |
| 135 | }; | 135 | }; |
| 136 | this.selectedDatas.forEach((item) => { | 136 | this.selectedDatas.forEach((item) => { |
| 137 | obj.declareIds.push(item.declareId); | 137 | obj.declareIds.push(item.declareId); | ... | ... |
-
Please register or login to post a comment