一、该问题的重现步骤是什么?
1. 
二、你期待的结果是什么?实际看到的又是什么?
数据数量、单价后能够自动计算出合计金额。事件属性中没有组件交互 ,在代码代码里加入组件交互control没有执行,表单json代码如下
{
column: [
{
type: 'radio',
label: '开具发票类型',
dicData: [
{
label: '增值税专用发票',
value: '0'
},
{
label: '增值税普通发票',
value: '1'
}
],
span: 13,
display: true,
props: {
label: 'label',
value: 'value',
desc: 'desc'
},
prop: 'a176768153489324044',
labelPosition: 'right',
border: true,
required: true,
rules: [
{
required: true,
message: '开具发票类型必须填写'
}
]
},
{
type: 'number',
label: '开票税率(%)',
controls: true,
span: 11,
display: true,
prop: 'a176768159313616712',
labelPosition: 'right',
labelWidth: '140',
required: true,
rules: [
{
required: true,
message: '开票税率(%)必须填写'
}
]
},
{
type: 'date',
label: '填制日期',
span: 24,
display: true,
format: 'YYYY-MM-DD',
valueFormat: 'YYYY-MM-DD',
prop: 'a176768403502082616',
labelPosition: 'right'
},
{
type: 'select',
label: '申请人',
dicData: [
{
label: '选项一',
value: '0'
},
{
label: '选项二',
value: '1'
},
{
label: '选项三',
value: '2'
}
],
cascader: [],
span: 12,
display: true,
props: {
label: 'label',
value: 'value',
desc: 'desc'
},
prop: 'a176768167054065847',
labelPosition: 'right',
required: true,
rules: [
{
required: true,
message: '申请人必须填写'
}
]
},
{
type: 'input',
label: '合同编号',
span: 12,
display: true,
prop: 'a176768168417227926',
labelPosition: 'right',
required: true,
rules: [
{
required: true,
message: '合同编号必须填写'
}
]
},
{
type: 'input',
label: '项目名称',
span: 24,
display: true,
prop: 'a176768184031967382',
labelPosition: 'right',
required: true,
rules: [
{
required: true,
message: '项目名称必须填写'
}
]
},
{
type: 'number',
label: '合同金额',
controls: true,
span: 8,
display: true,
prop: 'a176768185300492537',
labelPosition: 'right',
precision: 2,
required: true,
rules: [
{
required: true,
message: '合同金额必须填写'
}
]
},
{
type: 'number',
label: '审定金额',
controls: true,
span: 8,
display: true,
prop: 'a17676818692555248',
labelPosition: 'right',
precision: 2,
required: true,
rules: [
{
required: true,
message: '审定金额必须填写'
}
]
},
{
type: 'number',
label: '已开票金额',
controls: true,
span: 8,
display: true,
prop: 'a176768187114586408',
labelPosition: 'right',
precision: 2
},
{
type: 'number',
label: '本次开票金额(小写)',
controls: true,
span: 8,
display: true,
prop: 'a176768190455425716',
labelWidth: '180',
required: true,
rules: [
{
required: true,
message: '本次开票金额(小写)必须填写'
}
]
},
{
type: 'input',
label: '本次开票金额(大写)',
span: 16,
display: true,
prop: 'a176768193688086110',
labelPosition: 'right',
labelWidth: '180',
readonly: true
},
{
type: 'dynamic',
label: '开票内容',
span: 24,
display: true,
labelPosition: 'top',
children: {
align: 'center',
headerAlign: 'center',
index: false,
addBtn: true,
delBtn: true,
column: [
{
type: 'input',
label: '项目名称',
span: 24,
display: true,
prop: 'a176768223436415361',
width: 300
},
{
type: 'input',
label: '规格型号',
span: 24,
display: true,
prop: 'a176768224566822261',
width: 160
},
{
type: 'input',
label: '计量单位',
span: 24,
display: true,
prop: 'a176768225368985987',
width: 120
},
{
type: 'number',
label: '数量',
controls: true,
span: 24,
display: true,
prop: 'a176768226062569162',
width: 120,
},
{
type: 'number',
label: '单价(元)',
controls: true,
span: 24,
display: true,
prop: 'a176768228860560061',
width: 160,
precision: 2,
control: (val, form) => {console.log("--------------------")}
},
{
type: 'number',
label: '合计金额(元)',
controls: true,
span: 24,
display: true,
prop: 'a176768227172134646',
width: 180,
precision: 2
}
]
},
prop: 'a17676822109721943'
},
{
type: 'textarea',
label: '发票备注',
span: 24,
display: true,
prop: 'a176768255167154713',
labelPosition: 'right',
showWordLimit: false
}
],
labelPosition: 'left',
labelSuffix: ':',
labelWidth: 120,
gutter: 0,
menuBtn: true,
submitBtn: true,
submitText: '提交',
emptyBtn: true,
emptyText: '清空',
menuPosition: 'center',
group: [
{
label: '开票资料',
prop: 'a176768208704711342',
arrow: false,
collapse: true,
display: true,
column: [
{
type: 'input',
label: '公司全称',
span: 24,
display: true,
prop: 'a176768210841123785',
labelPosition: 'right'
},
{
type: 'input',
label: '纳税人识别号',
span: 24,
display: true,
prop: 'a176768212594416063',
labelPosition: 'right'
},
{
type: 'input',
label: '开户银行',
span: 24,
display: true,
prop: 'a176768213416562758',
labelPosition: 'right'
},
{
type: 'input',
label: '开户银行',
span: 24,
display: true,
prop: 'a176768214115819904',
labelPosition: 'right'
},
{
type: 'input',
label: '银行账号',
span: 24,
display: true,
prop: 'a176768214729422242',
labelPosition: 'right'
},
{
type: 'input',
label: '地址及电话',
span: 24,
display: true,
prop: 'a176768215099684425',
labelPosition: 'right'
}
]
}
]
}

control: (val, form) => {console.log("--------------------")}三、你正在使用的是什么产品,什么版本?在什么操作系统上?
BLADE3.4.0 saber
四、请提供详细的错误堆栈信息,这很重要。
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端