警告內(nèi)容為“已發(fā)貨,無法修改派車”這是table<table class="table" layoutH="138" width="700" rel="yd"> <thead> <tr> <th width="120">運(yùn)單號</th> <th width="80">貨品重量</th> <th width="150">運(yùn)輸目的地</th> <th width="100">運(yùn)單狀態(tài)</th> <th width="100">運(yùn)送車輛</th> </tr> </thead> <tbody> <% for (zzpt_yd one : p.getList()) { %> <tr target="field_id" rel="<%=one.getId()%>"> <td><%=one.getYd_number() == null ? "" : one.getYd_number()%></td> <td><%=one.getGoods_wight() == null ? "" : one.getGoods_wight()%></td> <td><%=one.getReceive_address() == null ? "" : one.getReceive_address()%></td> <% if("0".equals(one.getYd_status())){ %> <td>未派車</td> <% }else if("1".equals(one.getYd_status())){ %> <td>已發(fā)貨</td> <% }else if("2".equals(one.getYd_status())){ %> <td>已完成</td> <% } %> <td><%=one.getCar_number() == null ? "" : one.getCar_number()%></td> </tr> <% } %> </tbody></table>
1 回答

狐的傳說
TA貢獻(xiàn)1804條經(jīng)驗 獲得超3個贊
-!,能不要把后端代碼揉在js里面嗎,亂得不能忍 - -!。
假如有個狀態(tài)變量status,當(dāng)其值為2時表示已經(jīng)發(fā)貨。你要點擊的那個按鈕class名為paiche
if(status == 2) {
$('.paiche').click(function() {
// 讓警告框顯示
})
}
添加回答
舉報
0/150
提交
取消