From f2889ff1338222f346f7d6e146d7cc81ce0e13ec Mon Sep 17 00:00:00 2001 From: xyz <747050115@qq.com> Date: Mon, 3 Mar 2025 14:13:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=98=E6=AC=BE=E5=8D=95=EF=BC=9A=E5=A4=84?= =?UTF-8?q?=E7=90=86=E9=99=84=E4=BB=B6=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/arap/paybill/paybill/card/index.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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') { //暂存不进行校验