Commit c9cf0aef authored by tianhongyang's avatar tianhongyang

bug fix

parent 5faad965
......@@ -252,8 +252,8 @@ export default {
try {
const temp = JSON.parse(JSON.stringify(this.formData));
const keys = Object.keys(temp);
const flag = keys.every(key => (key == "id" ? true : (temp[key] && temp[key] != "0") ? true : false));
if (!flag) {
const flag = keys.every(key => ((key == "id" || key == "businessId") ? true : (!temp[key] && temp[key] != "0") ? true : false));
if (flag) {
return this.dialogClose();
}
const result = this.formData.id ? await modifyBidOpeningRecordApi(this.formData) : await addBidOpeningRecordApi(this.formData);
......
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