調整
This commit is contained in:
@@ -496,6 +496,14 @@
|
||||
}, 300)
|
||||
},
|
||||
bom_addNew() {
|
||||
|
||||
if (this.prod_bom_num === undefined || this.prod_bom_num ===0) {
|
||||
this.snackbar.text = "請先點選設定或儲存子項目,點選前先確定此為群組功德項目"
|
||||
this.snackbar.show = true;
|
||||
return
|
||||
} else {
|
||||
console.log(this.prod_bom_num === undefined || this.prod_bom_num === 0);
|
||||
}
|
||||
this.spliceNullData();
|
||||
|
||||
//addObj.id = this.desserts.length + 1;
|
||||
@@ -798,8 +806,10 @@
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<asp:button class="btn btn-primary" id="setBom" runat="server"
|
||||
OnClientClick="if (!confirm('警告!!是否確定此為群組功德項目??')) return false;"
|
||||
Text="設定子項目" OnClick="setBom_Click" Visible="true"></asp:button>
|
||||
<asp:button class="btn btn-primary" id="saveBom" runat="server"
|
||||
OnClientClick="if (!confirm('警告!!是否確定此為群組功德項目??')) return false;"
|
||||
Text="儲存子項目" OnClick="saveBom_Click" Visible="true"></asp:button>
|
||||
</div>
|
||||
<div class="packageNum">
|
||||
|
||||
@@ -272,6 +272,7 @@ public partial class admin_activity_item_reg : MyWeb.config
|
||||
actBom.memo = bom_memo.Text;
|
||||
_db.act_bom.Add(actBom);
|
||||
_db.SaveChanges();
|
||||
prod_bom_num=actBom.num;
|
||||
Response.Redirect("item_reg.aspx?num=" + _num);
|
||||
}
|
||||
}
|
||||
@@ -290,6 +291,7 @@ public partial class admin_activity_item_reg : MyWeb.config
|
||||
prodBom.qty = Val(bom_qty.Text);
|
||||
prodBom.memo = bom_memo.Text;
|
||||
_db.SaveChanges();
|
||||
prod_bom_num=prodBom.num;
|
||||
//Response.Redirect("item_reg.aspx?num=" + _num);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user