From 13c6a4749882df20bc9994c57687c8f4bccc6ca3 Mon Sep 17 00:00:00 2001 From: mzr Date: Wed, 9 Apr 2025 17:52:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=98=E6=AC=BE=E5=8D=95-=E9=99=84=E4=BB=B6?= =?UTF-8?q?=E5=BC=A0=E6=95=B0=E8=B5=8B=E5=80=BC-2005=E8=BF=81=E7=A7=BB?= =?UTF-8?q?=E5=88=B02312?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/arap/paybill/paybill/card/index.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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; }