付款单-附件张数赋值-2005迁移到2312

This commit is contained in:
mzr 2025-04-09 17:52:47 +08:00
parent 41ff917317
commit 13c6a47498
1 changed files with 7 additions and 4 deletions

View File

@ -940,7 +940,7 @@ class Card extends Component {
//保存单据 //保存单据
saveBill = (url, extype, flag, modelIndex) => { saveBill = (url, extype, flag, modelIndex) => {
this.props.form.setFormItemsValue("allocobjrule",  { "allocobjrule": { value: '', display: '' } }); this.props.form.setFormItemsValue("allocobjrule", { "allocobjrule": { value: '', display: '' } });
// if (url != '/nccloud/arap/arappub/tempsave.do') { // if (url != '/nccloud/arap/arappub/tempsave.do') {
// //暂存不进行校验 // //暂存不进行校验
// //删除空白行 // //删除空白行
@ -961,14 +961,17 @@ class Card extends Component {
// return; // return;
// } // }
// } // }
let cardData = this.props.createMasterChildData(this.getPagecode(), this.formId, this.tableId); let saveData = this.props.createMasterChildData(this.getPagecode(), this.formId, this.tableId);
let newCardData = dealCardData(this, cardData); //去掉空值,减少压缩时间 let newData = dealCardData(this, saveData); //去掉空值,减少压缩时间
let tableLength = newCardData.body.bodys.rows.length || 0 let tableLength = newData.body.bodys.rows.length || 0
// console.log('form', this.props.form) // console.log('form', this.props.form)
//附件张数赋值 //附件张数赋值
this.props.form.setFormItemsValue(this.formId, {'accessorynum': {'value': tableLength + '', 'display': undefined}}); this.props.form.setFormItemsValue(this.formId, {'accessorynum': {'value': tableLength + '', 'display': undefined}});
let cardData = this.props.createMasterChildData(this.getPagecode(), this.formId, this.tableId);
let newCardData = dealCardData(this, cardData); //去掉空值,减少压缩时间
if(checkScommet(this, cardData)) { if(checkScommet(this, cardData)) {
return; return;
} }