jiaxing.zhou

fix(reportingData): 修复撤回申报数据的类型值错误

- 将 this.dropdownCode 替换为固定的 'cancellation' 字符串
- 确保在撤销对话框中提交的数据类型始终正确
......@@ -56,7 +56,7 @@
</div>
</el-dialog>
</template>
<script>
import { declareDataUpload } from "@/api/declareData-api.js";
import { getDictData } from '@/api/system/dict-api.js'
......@@ -131,7 +131,7 @@
let obj = {
cancellationReason: this.cancelFormData.otherReason || this.cancelFormData.cancellationReason,
declareIds: [],
type: this.dropdownCode,
type: 'cancellation',
};
this.selectedDatas.forEach((item) => {
obj.declareIds.push(item.declareId);
......@@ -161,13 +161,13 @@
this.cancelVisible = false
this.showOtherReason = false
this.cancelFormData.cancellationReason = ''
this.cancelFormData.otherReason = ''
this.cancelFormData.otherReason = ''
this.$emit('cancelRevoke')
}
},
};
</script>
<style lang="scss" scoped>
@import "@/assets/styles/variables.scss";
.modelItem {
......@@ -188,4 +188,3 @@
}
}
</style>
\ No newline at end of file
......