jiaxing.zhou

refactor(reportingData): 优化撤销单申报功能

- 在撤销单申报时,将 this.dropdownCode 设置为 dropdownCode
- 在取消撤销时,将 this.dropdownCode重置为 'full'
- 修改撤销对话框中的 type 参数,使用 this.dropdownCode 代替固定的 'cancellation'
......@@ -789,6 +789,7 @@ export default {
if (dropdownName === '撤销单申报') {
this.revokeVisible = true;
this.$set(this.loadings, loadingKey, false);
this.dropdownCode = dropdownCode;
return;
}
......@@ -982,6 +983,7 @@ export default {
cancelRevoke(){
this.loadings.dropDownLoading = false;
this.revokeVisible = false
this.dropdownCode = 'full'
},
update(val) {
this.$router.push({
......
......@@ -131,7 +131,7 @@
let obj = {
cancellationReason: this.cancelFormData.otherReason || this.cancelFormData.cancellationReason,
declareIds: [],
type: 'cancellation',
type: this.dropdownCode,
};
this.selectedDatas.forEach((item) => {
obj.declareIds.push(item.declareId);
......