diff --git a/src/arap/paybill/paybill/card/index.js b/src/arap/paybill/paybill/card/index.js index 022f8c6..342ef69 100644 --- a/src/arap/paybill/paybill/card/index.js +++ b/src/arap/paybill/paybill/card/index.js @@ -940,7 +940,7 @@ class Card extends Component { //保存单据 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') { // //暂存不进行校验 // //删除空白行 @@ -961,14 +961,17 @@ class Card extends Component { // return; // } // } - let cardData = this.props.createMasterChildData(this.getPagecode(), this.formId, this.tableId); - let newCardData = dealCardData(this, cardData); //去掉空值,减少压缩时间 + let saveData = this.props.createMasterChildData(this.getPagecode(), this.formId, this.tableId); + 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) //附件张数赋值 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)) { return; }