diff --git a/app/views/trainings/pay.html.erb b/app/views/trainings/pay.html.erb index df22b65c..0fe3bd89 100644 --- a/app/views/trainings/pay.html.erb +++ b/app/views/trainings/pay.html.erb @@ -45,7 +45,7 @@
发票内容 + value="<%= @training.training_payinfo.try(:invoice_content).presence || '师资培训费' %>"/>
含会议注册费、场地费、培训费、教材资料费、餐费、专家差率费等
+含会议注册费、场地费、培训费、教材资料费、餐费、专家差旅费等
@@ -303,11 +303,11 @@ } //页面加载时,初始化发票类型 function InitBill(userInfo){ - var index=2; - $("#billDemand").html("不需要").attr("status",2); - if(userInfo.invoiceTitle != "" && userInfo.invoiceNo != ""){ - index=0; - $("#billDemand").html("单位").attr("status",0); + var index=0; + $("#billDemand").html("单位").attr("status",0); + if(userInfo.invoiceTitle == "" && userInfo.invoiceNo == ""){ + index=2; + $("#billDemand").html("不需要").attr("status",2); } if(userInfo.invoiceTitle != "" && userInfo.invoiceNo == ""){ index=1;