diff --git a/src/arap/paybill/paybill/card/index.js b/src/arap/paybill/paybill/card/index.js index 5196ce7..0cc8be8 100644 --- a/src/arap/paybill/paybill/card/index.js +++ b/src/arap/paybill/paybill/card/index.js @@ -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') { //暂存不进行校验