...
|
...
|
@@ -100,7 +100,6 @@ |
|
|
<td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
|
|
|
<td style="width: 130px;">
|
|
|
<a href="{:url('Salesmanorder/sale_order_show',array('id'=>$vo.id))}"><button type="button" class="btn btn-default">查看</button></a>
|
|
|
<button type="button" class="btn btn-default" onclick="sale_order_del({$vo.id})">删除</button>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</volist>
|
...
|
...
|
@@ -111,23 +110,5 @@ |
|
|
{$data_arr->render()}
|
|
|
</div>
|
|
|
<script src="__STATIC__/js/admin.js"></script>
|
|
|
<script>
|
|
|
|
|
|
/**
|
|
|
*点击删除
|
|
|
*/
|
|
|
function sale_order_del(id){
|
|
|
ccc = window.confirm('是否删除这条订单?');
|
|
|
if(ccc){
|
|
|
$.post("{:url('Salesmanorder/sale_order_del')}",{id:id},function(data){
|
|
|
if(data){
|
|
|
$('.tr'+id).remove();
|
|
|
}else{
|
|
|
alert('删除失败!');
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
</body>
|
|
|
</html> |
|
|
\ No newline at end of file |
...
|
...
|
|