|
|
@@ -153,7 +153,8 @@ export default window.$crudCommon({
|
|
|
return newParams;
|
|
|
},
|
|
|
getFormData() {
|
|
|
- return { ...this.form, yearAndMonth: this.params.yearAndMonth }
|
|
|
+ let syzb = new Decimal(this.form.syzb || 0).div(100).toNumber();
|
|
|
+ return { ...this.form, syzb, yearAndMonth: this.params.yearAndMonth }
|
|
|
},
|
|
|
validCustom() {
|
|
|
if (this.form.ctdtfybm && !isAlphanumericCombination(this.form.ctdtfybm)) {
|
|
|
@@ -216,10 +217,10 @@ export default window.$crudCommon({
|
|
|
// 模块路径
|
|
|
name: 'yfCostManage/basicDataSetting/dtCostAllocationList',
|
|
|
res: ({ data }) => {
|
|
|
- data.records = data.records.map(item => {
|
|
|
- let ytxeNum = Number(item.ytxe);
|
|
|
+ data.records = data.records.map(item => {
|
|
|
+ item.syzb = new Decimal(item.syzb || 0).mul(new Decimal(100)).toNumber();
|
|
|
let syzbNum = new Decimal(Number(item.syzb)).div(new Decimal(100));
|
|
|
- item.yftxe = new Decimal(ytxeNum).mul(new Decimal(syzbNum)).toFixed(2);
|
|
|
+ item.yftxe = new Decimal(item.ytxe || 0).mul(new Decimal(syzbNum)).toFixed(2);
|
|
|
|
|
|
return item;
|
|
|
});
|