This commit is contained in:
wangshiming
2022-04-14 18:08:36 +08:00
parent fa3794437d
commit 7f7f1f8ffc

View File

@ -32,7 +32,7 @@ export class TaxManagementIndividualDeclareComponent implements OnInit {
];
selectedIndex = ''; //选择的项目
serviceTel = '';
isVisible : boolean = false
isVisible: boolean = false;
constructor(
public service: TaxManagementService,
private router: Router,
@ -88,16 +88,16 @@ export class TaxManagementIndividualDeclareComponent implements OnInit {
ngOnInit() {
this.initSF();
this.initST();
const object1 : any = {};
const object2 : any = {};
Object.defineProperty(object1, 'name',{ writable: false ,value: 'wang'});
Object.defineProperty(object2, 'xxoo',{ writable: false ,value: 'wang'});
const object1: any = {};
const object2: any = {};
Object.defineProperty(object1, 'name', { writable: false, value: 'wang' });
Object.defineProperty(object2, 'xxoo', { writable: false, value: 'wang' });
console.log(object1);
console.log(object1.name);
console.log(object2);
console.log(object2.xxoo);
object1.name = 'ming'
object2.xxoo = 'ming'
object1.name = 'ming';
object2.xxoo = 'ming';
console.log(object1);
console.log(object2);
}
@ -263,13 +263,31 @@ export class TaxManagementIndividualDeclareComponent implements OnInit {
{ title: '征收项目', index: 'zsxm', className: 'text-center', width: '200px' },
{ title: '征收品目', index: 'zsmp', className: 'text-center', width: '200px' },
{ title: '计税依据', index: 'jsyj', className: 'text-center', width: '200px' },
{ title: '税率', index: 'sl', render: 'sl', className: 'text-center', width: '200px' },
{ title: '应纳税额', index: 'ynse', className: 'text-center', width: '180px' },
{ title: '减免税额', index: 'jmse', className: 'text-center', width: '180px' },
{ title: '已缴纳税额', index: 'yjnse', className: 'text-center', width: '180px' },
{ title: '应代征税额', index: 'dzse', className: 'text-center', width: '180px' },
{ title: '已代征税额', index: 'ydzse', className: 'text-center', width: '150px' },
{ title: '申报日期', render: 'sbrq', className: 'text-center', width: '150px' },
{
title: '税率',
index: 'sl',
render: 'sl',
className: 'text-center',
width: '200px',
format: item => `${item.sl ? ((item.sl as number) * 100).toFixed(2) : 0}%`
},
{
title: '应纳税额',
index: 'ynse',
className: 'text-center',
width: '180px',
type: 'widget',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.ynse }) }
},
{ title: '减免税额', index: 'jmse', className: 'text-center', width: '180px' , type: 'widget',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.jmse }) } },
{ title: '已缴纳税额', index: 'yjnse', className: 'text-center', width: '180px', type: 'widget',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.yjnse }) } },
{ title: '应代征税额', index: 'dzse', className: 'text-center', width: '180px', type: 'widget',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.dzse }) } },
{ title: '已代征税额', index: 'ydzse', className: 'text-center', width: '150px', type: 'widget',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.ydzse }) } },
{ title: '申报日期', render: 'sbrq', className: 'text-center', width: '150px' }
];
}
@ -307,7 +325,6 @@ export class TaxManagementIndividualDeclareComponent implements OnInit {
return;
}
// this.isVisible = true
}
/**
*撤销
@ -402,7 +419,7 @@ export class TaxManagementIndividualDeclareComponent implements OnInit {
this.service.msgSrv.success('更新成功');
this.st.load(1);
}
})
});
}
/**
@ -450,9 +467,7 @@ export class TaxManagementIndividualDeclareComponent implements OnInit {
nzContent: content
});
}
handleOK() {
}
handleOK() {}
handleCancel() {
this.isVisible = false;
}