红冲发票表头部分字段改为可编辑
This commit is contained in:
parent
9f61b8b3da
commit
c2006189c7
|
@ -68,8 +68,17 @@ export default function (data) {
|
||||||
})
|
})
|
||||||
// 设置表头项目可编辑性
|
// 设置表头项目可编辑性
|
||||||
this.props.form.setFormItemsDisabled(presetVar.formAreaId, disabledField);
|
this.props.form.setFormItemsDisabled(presetVar.formAreaId, disabledField);
|
||||||
|
//def1 合同编号、def2开票类型、def23BIP开票类型
|
||||||
|
if(data.rows[0].values.hzfp.value ){
|
||||||
|
this.props.form.setFormItemsDisabled(presetVar.formAreaId, {
|
||||||
|
def2: false,
|
||||||
|
def23: false,
|
||||||
|
def1: false,
|
||||||
|
});
|
||||||
|
}
|
||||||
// 设置表体不可编辑
|
// 设置表体不可编辑
|
||||||
this.props.cardTable.setStatus(presetVar.bodyAreaId, presetVar.status.browse);
|
this.props.cardTable.setStatus(presetVar.bodyAreaId, presetVar.status.browse);
|
||||||
|
|
||||||
// 设置表体相关按钮不显示
|
// 设置表体相关按钮不显示
|
||||||
this.props.button.setButtonVisible({
|
this.props.button.setButtonVisible({
|
||||||
[presetVar.cardBodyBtns.AddLine]: false,
|
[presetVar.cardBodyBtns.AddLine]: false,
|
||||||
|
|
Loading…
Reference in New Issue