付款单:处理附件数量

This commit is contained in:
xyz 2025-03-03 14:13:42 +08:00
parent 3ef0b7eaa1
commit f2889ff133
1 changed files with 5 additions and 7 deletions

View File

@ -647,14 +647,12 @@ class Card extends Component {
//保存单据
saveBill = (url, extype, flag, modelIndex) => {
/*let saveData = this.props.createMasterChildData(this.getPagecode(), this.formId, this.tableId)
let saveData = this.props.createMasterChildData(this.getPagecode(), this.formId, this.tableId)
let newData = dealCardData(this, saveData); //去掉空值,减少压缩时间
let tableLength = newData.body.bodys.rows.length
console.log(this.props.form)
// console.log(this.props.form.getFormItemsValue(this.formId, 'def5'))
this.props.form.setFormItemsValue(this.formId, {'def5': {'value': tableLength, 'display': undefined}}); //附件数量*/
// return false //todo
let tableLength = newData.body.bodys.rows.length || 0
// console.log('form', this.props.form)
//附件张数
this.props.form.setFormItemsValue(this.formId, {'accessorynum': {'value': tableLength + '', 'display': undefined}});
if (url != '/nccloud/arap/arappub/tempsave.do') {
//暂存不进行校验