amis 公式在表格编辑框应用时,公式计算偶现不及时更新

qcuzuvrc  于 4个月前  发布在  其他
关注(0)|答案(1)|浏览(60)
描述问题:

请用一段清晰简洁的文字描述问题是什么...

截图或视频:

如何复现(请务必完整填写下面内容):
  1. 你是如何使用 amis 的?
  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
    sdk3.3.0
  3. 粘贴有问题的完整 amis schema 代码:
{
                "type": "form",
                "name": "formPage",
                "data": {
                    "table_2": [
                        {
                            "condition_1": "",
                            "amount_1": "",
                            "receiveDate_1": "",
                            "receiveAmount_1": "",
                            "receiveDate_2": "",
                            "amountOut_1": "",
                            "amountCombination_1": "",
                            "amountGroup_1": "",
                            "amountDesign_1": "",
                            "amountCost_1": "",
                            "amountConstruction_1": "",
                            "amountManufacture_1": "",
                            "amountOther_1": "",
                            "amountPM_1": "",
                        }

                    ]
                },
                "body": [
                    {
                        "type": "input-table",
                        "mode": "normal",
                        "addable": true,
                        "editable": true,
                        "removable": true,
                        "columns": [
                            {
                                "name": "condition_1",
                                "label": "收款条件",
                                "type": "input-text"
                            },
                            {
                                "precision": 2,
                                "name": "amount_1",
                                "label": "金额(元)",
                                "placeholder": "-",
                                "type": "input-number"
                            },
                            {
                                "name": "receiveDate_1",
                                "label": "预计收款日期",
                                "type": "input-date"
                            },
                            {
                                "precision": 2,
                                "name": "receiveAmount_1",
                                "label": "实际收款金额(元)",
                                "placeholder": "-",
                                "type": "input-number"
                            },
                            {
                                "name": "receiveDate_2",
                                "label": "实际收款日期",
                                "type": "input-date"
                            },
                            {
                                "precision": 2,
                                "name": "amountSum_1",
                                "label": "收款总额A",
                                "placeholder": "-",
                                "type": "input-number"
                            },
                            {
                                "precision": 2,
                                "name": "amountOut_1",
                                "label": "外部分包付款额B",
                                "placeholder": "-",
                                "type": "input-number"
                            },
                            {
                                "precision": 2,
                                "name": "amountCombination_1",
                                "label": "联合体单位付款额C",
                                "placeholder": "-",
                                "type": "input-number"
                            },
                            {
                                "precision": 2,
                                "name": "amountGroup_1",
                                "label": "权益收款额E=A-B-C",
                                "placeholder": "-",
                                "type": "input-number",
                                "disabled": true
                            },
                            {
                                "type": "formula",
                                "name": "amountGroup_1",
                                "value": 0,
                                "formula": "${amountSum_1 - amountOut_1 - amountCombination_1}"
                            },

                            {
                                "precision": 2,
                                "name": "amountDesign_1",
                                "label": "设计业务F",
                                "placeholder": "-",
                                "type": "input-number"
                            },
                            {
                                "precision": 2,
                                "name": "amountCost_1",
                                "label": "造价业务G",
                                "placeholder": "-",
                                "type": "input-number"
                            },
                            {
                                "precision": 2,
                                "name": "amountConstruction_1",
                                "label": "施工业务H",
                                "placeholder": "-",
                                "type": "input-number"
                            },
                            {
                                "precision": 2,
                                "name": "amountManufacture_1",
                                "label": "生产制造 I",
                                "placeholder": "-",
                                "type": "input-number"
                            },
                            {
                                "precision": 2,
                                "name": "amountOther_1",
                                "label": "其他J",
                                "placeholder": "-",
                                "type": "input-number"
                            },

                            {
                                "precision": 2,
                                "name": "amountPM_1",
                                "label": "项目管理事业部K=E-F-G-H-I-J",
                                "placeholder": "-",
                                "type": "input-number",
                                "disabled": true
                            },
                            {
                                "type": "formula",
                                "name": "amountPM_1",
                                "value": 0,
                                "formula": "${amountGroup_1 - amountDesign_1 - amountCost_1 - amountConstruction_1 - amountManufacture_1 - amountOther_1}"
                            },

                            {
                                "minRows": 1,
                                "maxRows": 1,
                                "name": "comments_1",
                                "label": "备注",
                                "type": "textarea"
                            }
                        ],
                        "strictMode": false,
                        "needConfirm": false,
                        "name": "table_2",
                        "label": "设计管理费及深化设计费"
                    }
                ],
                "id": "u:2d75a680fd01",
                "debug": true
            }
  1. 操作步骤
    1、只输入“收款总额A”时,“权益收款额E=A-B-C”不会计算
    2、输入A、B、C的值,“项目管理事业部K=E-F-G-H-I-J”有时不会更新

相关问题