|
|
@@ -1,10 +1,132 @@
|
|
|
-<!DOCTYPE html>
|
|
|
-<html lang="en">
|
|
|
-<head>
|
|
|
- <meta charset="UTF-8">
|
|
|
- <title>Title</title>
|
|
|
-</head>
|
|
|
-<body>
|
|
|
- 订单管理
|
|
|
-</body>
|
|
|
-</html>
|
|
|
+{include file='common/_js_css'}
|
|
|
+<link href="__CSS__/common.css" rel="stylesheet">
|
|
|
+<div class="container-fluid">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-lg-12">
|
|
|
+ <div class="card" id="select_card_caviar" style="display: none">
|
|
|
+ <div class="card-header">{$Think.lang.condition}</div>
|
|
|
+ <div class="card-body">
|
|
|
+ <form action="{:url('admin/order/index')}" method="post" class="form-horizontal form-search">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-md-4">
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="w-120 pull-left control-label">{:lang("Bar Code")}</label>
|
|
|
+ <div class="pull-left w-120-calc">
|
|
|
+ <input type="text" class="form-control pull-left" name="bar_code" value="{$params.bar_code}" placeholder='{:lang("Bar Code")}' />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-md-4">
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="w-120 pull-left control-label">{:lang("Category")}</label>
|
|
|
+ <div class="pull-left w-120-calc">
|
|
|
+ <select class="form-control pull-left" name="category_id">
|
|
|
+ <option value="0" selected>{:lang("Unknown")}</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-md-4">
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="w-120 pull-left control-label"></label>
|
|
|
+ <div class="pull-left w-120-calc">
|
|
|
+ <button class="btn btn-success m-r-5" id="caviar_send_btn" type="submit" href="#">{:lang('search')}</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="card">
|
|
|
+ <div class="card-toolbar clearfix">
|
|
|
+ <div class="toolbar-btn-action">
|
|
|
+ <a class="btn btn-success m-r-5" id="caviar_search_btn" href="#!" onclick="select_card_switch()">{$Think.lang.unfold_search}</a>
|
|
|
+ <a class="btn btn-primary m-r-5" href="#!" onclick="add('{:url(\'admin/order/add\')}')"><i class="mdi mdi-plus"></i> {:lang('add')}</a>
|
|
|
+ <a class="btn btn-danger" href="#!" onclick="
|
|
|
+ caviar_checkbox_delete('{:url(\'admin/order/delete\')}', ['{:lang(\'Check at least one box\')}','{:lang(\'Succeed\')}'],'{:lang(\'Warn\')}','{:lang(\'Are you sure you want to delete the selected data\')}',['{:lang(\'Confirm\')}'])"
|
|
|
+ ><i class="mdi mdi-window-close"></i> {:lang('delete')}</a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="card-body">
|
|
|
+ <div class="table-responsive">
|
|
|
+ <table class="table table-bordered">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>
|
|
|
+ <label class="lyear-checkbox checkbox-primary">
|
|
|
+ <input type="checkbox" id="check-all" onclick="checkbox()"><span></span>
|
|
|
+ </label>
|
|
|
+ </th>
|
|
|
+ <th>{:lang("ID")}</th>
|
|
|
+ <th>{:lang("Order no")}</th>
|
|
|
+ <th>{:lang('rental_amount')}</th>
|
|
|
+ <th>{:lang('receivable_amount')}</th>
|
|
|
+ <th>{:lang('receive_money')}</th>
|
|
|
+ <th>{:lang('imposed_amount')}</th>
|
|
|
+ <th>{:lang('create_time')}</th>
|
|
|
+ <th>{:lang('operation')}</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ {volist name="list" id="item"}
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <label class="lyear-checkbox checkbox-primary">
|
|
|
+ <input class="checkbox_caviar" type="checkbox" name="ids[]" value="{$item.id}"><span></span>
|
|
|
+ </label>
|
|
|
+ </td>
|
|
|
+ <td>{$item.id}</td>
|
|
|
+ <td>{$item.no}</td>
|
|
|
+ <td>{$item.name}</td>
|
|
|
+ <td>{$item.tax_rate}</td>
|
|
|
+ <td>{$item.tax_rate}</td>
|
|
|
+ <td>{$item.tax_rate}</td>
|
|
|
+ <td>{$item.create_time}</td>
|
|
|
+ <td>
|
|
|
+ <div class="btn-group">
|
|
|
+ <a class="btn btn-xs btn-default" href="#!" title="{:lang('select')}" data-toggle="tooltip" onclick='view("/admin/order/edit?id={$item.id}")'><i class="mdi mdi-eye"></i></a>
|
|
|
+ <a class="btn btn-xs btn-default" href="#!" title="{:lang('delete')}" data-toggle="tooltip" onclick='
|
|
|
+ deletingASingle("{:url(\"admin/order/delete\")}","{$item.id}",["{:lang(\"Succeed\")}"],"{:lang(\"Warn\")}","{:lang(\"Are you sure you want to delete the selected data\")}",["{:lang(\"Confirm\")}"])'
|
|
|
+ ><i class="mdi mdi-window-close"></i></a>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ {/volist}
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ {$list|raw}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+
|
|
|
+<style>
|
|
|
+
|
|
|
+</style>
|
|
|
+
|
|
|
+<script type="text/javascript">
|
|
|
+ if(check_params(["{$params.bar_code}","{$params.category_id}", "{$params.is_serve}"]))
|
|
|
+ $('#select_card_caviar').css('display','block');
|
|
|
+</script>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|