Commit b1964e21 by yangchen

单据默认值功能增加判空

parent adf2ed65
......@@ -90,7 +90,7 @@ export default {
return
}
// 给bill设置默认值
let defaultValueList = this.defaultValueList
let defaultValueList = this.defaultValueList || []
for(let item of defaultValueList){
bill.getMasterData().setValue(item.field,item.defaultValue)
}
......
......@@ -11,7 +11,7 @@ export default {
} else {
templateName = param.viewName;
}
let defaultValueList = param.defaultValueList
let defaultValueList = param.defaultValueList || []
if (
window.osConfig.appOpenMode &&
......
......@@ -127,7 +127,7 @@ export default {
return
}
// 给bill设置默认值
let defaultValueList = this.defaultValueList
let defaultValueList = this.defaultValueList || []
for(let item of defaultValueList){
bill.getMasterData().setValue(item.field,item.defaultValue)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment