<form action="<?php echo $this->getUrl('SampleProduceOrder/update', array('id' => $order->id)); ?> " class="frm" rel="async" method="post"> <table class="frm-tbl"> <caption><?php echo $order->id ? '更新' : '新增'; ?> 样品生产单</caption> <tbody> <tr> <td class="col-label">生产单号</td> <td> <input type="text" name="order_no" class="txt" value="<?php echo $order->order_no ?: SampleProduceOrder::generateOrderNo(); ?> " readonly="readonly"> </td> </tr> <tr> <td class="col-label">客户</td> <td> <select name="customer_id" required="required"> <option value="">请选择客户</option> <?php foreach ($customer_list as $cus) { ?> <option value="<?php echo $cus->id; ?>