fix(reportingData): 修复撤回申报数据的类型值错误
- 将 this.dropdownCode 替换为固定的 'cancellation' 字符串 - 确保在撤销对话框中提交的数据类型始终正确
Showing
1 changed file
with
4 additions
and
5 deletions
| ... | @@ -56,7 +56,7 @@ | ... | @@ -56,7 +56,7 @@ |
| 56 | </div> | 56 | </div> |
| 57 | </el-dialog> | 57 | </el-dialog> |
| 58 | </template> | 58 | </template> |
| 59 | - | 59 | + |
| 60 | <script> | 60 | <script> |
| 61 | import { declareDataUpload } from "@/api/declareData-api.js"; | 61 | import { declareDataUpload } from "@/api/declareData-api.js"; |
| 62 | import { getDictData } from '@/api/system/dict-api.js' | 62 | import { getDictData } from '@/api/system/dict-api.js' |
| ... | @@ -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: this.dropdownCode, | 134 | + type: 'cancellation', |
| 135 | }; | 135 | }; |
| 136 | this.selectedDatas.forEach((item) => { | 136 | this.selectedDatas.forEach((item) => { |
| 137 | obj.declareIds.push(item.declareId); | 137 | obj.declareIds.push(item.declareId); |
| ... | @@ -161,13 +161,13 @@ | ... | @@ -161,13 +161,13 @@ |
| 161 | this.cancelVisible = false | 161 | this.cancelVisible = false |
| 162 | this.showOtherReason = false | 162 | this.showOtherReason = false |
| 163 | this.cancelFormData.cancellationReason = '' | 163 | this.cancelFormData.cancellationReason = '' |
| 164 | - this.cancelFormData.otherReason = '' | 164 | + this.cancelFormData.otherReason = '' |
| 165 | this.$emit('cancelRevoke') | 165 | this.$emit('cancelRevoke') |
| 166 | } | 166 | } |
| 167 | }, | 167 | }, |
| 168 | }; | 168 | }; |
| 169 | </script> | 169 | </script> |
| 170 | - | 170 | + |
| 171 | <style lang="scss" scoped> | 171 | <style lang="scss" scoped> |
| 172 | @import "@/assets/styles/variables.scss"; | 172 | @import "@/assets/styles/variables.scss"; |
| 173 | .modelItem { | 173 | .modelItem { |
| ... | @@ -188,4 +188,3 @@ | ... | @@ -188,4 +188,3 @@ |
| 188 | } | 188 | } |
| 189 | } | 189 | } |
| 190 | </style> | 190 | </style> |
| 191 | - | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment