diff --git a/develop/@gms/gms-plugin-billexpand/src/components-control/typesBill.vue b/develop/@gms/gms-plugin-billexpand/src/components-control/typesBill.vue index beccd27..28f90c9 100644 --- a/develop/@gms/gms-plugin-billexpand/src/components-control/typesBill.vue +++ b/develop/@gms/gms-plugin-billexpand/src/components-control/typesBill.vue @@ -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) } diff --git a/develop/@gms/gms-plugin-billexpand/src/query-actions/createBill.js b/develop/@gms/gms-plugin-billexpand/src/query-actions/createBill.js index e5dbd98..1be3420 100644 --- a/develop/@gms/gms-plugin-billexpand/src/query-actions/createBill.js +++ b/develop/@gms/gms-plugin-billexpand/src/query-actions/createBill.js @@ -11,7 +11,7 @@ export default { } else { templateName = param.viewName; } - let defaultValueList = param.defaultValueList + let defaultValueList = param.defaultValueList || [] if ( window.osConfig.appOpenMode && diff --git a/develop/@rbc/runner-bill-form/src/views/bill-form-runner.vue b/develop/@rbc/runner-bill-form/src/views/bill-form-runner.vue index 0c3de29..a49af96 100644 --- a/develop/@rbc/runner-bill-form/src/views/bill-form-runner.vue +++ b/develop/@rbc/runner-bill-form/src/views/bill-form-runner.vue @@ -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) }