You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
simple-yewu/frontend/views/fix-car/step1-list-edit.php

255 lines
12 KiB

5 years ago
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
<form id="theFrm">
<input type="hidden" name="id" value="<?=$info->id?>">
<input type="hidden" name="car_id" value="<?=$info->car_id?>">
<tr>
<td width="100" height="25" class="td_bg">车牌号</td>
<td height="25" class="td_bg" nowrap>
<input name="car_no" type="text" id="car_no" value="<?=$info->car_no?>" style="width:100px;"/>
</td>
<td width="100" height="25" class="td_bg">发动机号</td>
<td height="25" class="td_bg">
<input name="engine_no" type="text" id="engine_no" value="<?=$car_info?$car_info->engine_no:''?>" style="width:100px;"/>
</td>
<td width="100" height="25" class="td_bg">车架号</td>
<td height="25" class="td_bg">
<input name="car_frame_no" type="text" id="car_frame_no" value="<?=$car_info?$car_info->car_frame_no:''?>" style="width:100px;"/>
</td>
<td width="100" height="25" class="td_bg">新车购置价</td>
<td height="25" class="td_bg">
<input name="price" type="text" id="price" value="" style="width:100px;"/>
</td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">品牌</td>
<td height="25" class="td_bg" nowrap>
<select id="brand_id" name="brand_id">
<option value="0">---请选择---</option>
<?php
foreach($brand_items as $item) {
echo '<option value="'.$item->id.'"';
if($car_info && $car_info->brand_id == $item->id)
echo ' selected ';
echo '>'.$item->name.'</option>';
}
?>
</select>
</td>
<td width="100" height="25" class="td_bg">车型</td>
<td height="25" class="td_bg">
<select name="series_id" id="series_id">
<option value="0">---请选择---</option>
<?php
foreach($series_items as $item) {
echo '<option value="'.$item->id.'"';
if($car_info && $car_info->series_id == $item->id)
echo ' selected ';
echo '>'.$item->name.'</option>';
}
?>
</select>
</td>
<td width="100" height="25" class="td_bg">排量</td>
<td height="25" class="td_bg">
<select name="displacement_id" id="displacement_id">
<option value="0">---请选择---</option>
<?php
foreach($displacement_items as $item) {
echo '<option value="'.$item->id.'"';
if($info->displacement_id == $item->id)
echo ' selected ';
echo '>'.$item->name.'</option>';
}
?>
</select>
</td>
<td width="100" height="25" class="td_bg">年份</td>
<td height="25" class="td_bg">
<input type="text" id="car_year" name="car_year" value="<?=$car_info && $car_info->car_year?>" style="width:100px;">
</td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">被保险人</td>
<td height="25" class="td_bg">
<input name="id_man" type="text" id="id_man" value="<?=$info->id_man?>" style="width:100px;"/>
</td>
<td width="100" height="25" class="td_bg">电话</td>
<td height="25" class="td_bg">
<input name="id_phone" type="text" id="id_phone" value="<?=$info->id_phone?>" style="width:100px;"/>
</td>
<td width="100" height="25" class="td_bg">联系人</td>
<td height="25" class="td_bg">
<input name="link_man" type="text" id="link_man" value="<?=$info->link_man?>" style="width:100px;"/>
</td>
<td width="100" height="25" class="td_bg">电话</td>
<td height="25" class="td_bg">
<input name="link_phone" type="text" id="link_phone" value="<?=$info->link_phone?>" style="width:100px;"/>
</td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">保险公司</td>
<td height="25" class="td_bg">
<input name="company" type="text" id="company" value="<?=$info->company?>" style="width:100px;"/>
</td>
<td width="100" height="25" class="td_bg">商业保单号</td>
<td height="25" class="td_bg">
<input name="company" type="text" id="company" value="" style="width:100px;"/>
</td>
<td width="100" height="25" class="td_bg">交强保单号</td>
<td height="25" class="td_bg">
<input name="company" type="text" id="company" value="" style="width:100px;"/>
</td>
<td width="100" height="25" class="td_bg">险项</td>
<td height="25" class="td_bg">
<input name="company" type="text" id="company" value="" style="width:100px;"/>
</td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">接车日期</td>
<td height="25" class="td_bg">
<input name="receive_date" type="text" id="receive_date" value="<?=$info->receive_date?>" style="width:100px;" onClick="WdatePicker()"/>
</td>
<td width="100" height="25" class="td_bg">交车方式</td>
<td height="25" class="td_bg">
<select name="receive_type" id="receive_type">
<option value="1" <?=$info->receive_type == 1?'selected':''?>>上门接车</option>
<option value="2" <?=$info->receive_type == 2?'selected':''?>>客户自送</option>
</select>
</td>
<td width="100" height="25" class="td_bg">事故类型</td>
<td height="25" class="td_bg">
<select name="receive_type" id="receive_type">
<option value="1" <?=$info->receive_type == 1?'selected':''?>>单方</option>
<option value="2" <?=$info->receive_type == 2?'selected':''?>>双方</option>
<option value="2" <?=$info->receive_type == 2?'selected':''?>>多方</option>
<option value="2" <?=$info->receive_type == 2?'selected':''?>>自费维修</option>
</select>
</td>
<td width="100" height="25" class="td_bg">责任</td>
<td height="25" class="td_bg">
<select name="receive_type" id="receive_type">
<option value="1" <?=$info->receive_type == 1?'selected':''?>>全责</option>
<option value="2" <?=$info->receive_type == 2?'selected':''?>>无责</option>
<option value="2" <?=$info->receive_type == 2?'selected':''?>>主要责任</option>
<option value="2" <?=$info->receive_type == 2?'selected':''?>>次要责任</option>
</select>
</td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">代步车</td>
<td height="25" class="td_bg">
<select name="receive_type" id="receive_type">
<option value="1" <?=$info->receive_type == 1?'selected':''?>></option>
<option value="2" <?=$info->receive_type == 2?'selected':''?>></option>
</select>
</td>
<td width="100" height="25" class="td_bg">接车司机</td>
<td height="25" class="td_bg">
<select name="receive_type" id="receive_type">
<option value="1" <?=$info->receive_type == 1?'selected':''?>></option>
<option value="2" <?=$info->receive_type == 2?'selected':''?>></option>
</select>
</td>
<td width="100" height="25" class="td_bg"></td>
<td height="25" class="td_bg"></td>
<td width="100" height="25" class="td_bg"></td>
<td height="25" class="td_bg"></td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">方位</td>
<td height="25" class="td_bg">
<select name="direction_id" id="direction_id">
<option value="0">请选择</option>
<?php
foreach($direction_items as $item) {
echo '<option value="'.$item->id.'"';
if($info->direction_id == $item->id)
echo ' selected ';
echo '>'.$item->name.'</option>';
}
?>
</select>
</td>
<td width="100" height="25" class="td_bg">范围</td>
<td height="25" class="td_bg">
<select name="range_id" id="range_id">
<option value="0">请选择</option>
<?php
foreach($range_items as $item) {
echo '<option value="'.$item->id.'"';
if($info->range_id == $item->id)
echo ' selected ';
echo '>'.$item->name.'</option>';
}
?>
</select>
</td>
<td width="100" height="25" class="td_bg">地址</td>
<td colspan="3" height="25" class="td_bg">
<input name="address" type="text" id="address" value="<?=$info->address?>" style="width:80%;"/>
</td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">提单备注</td>
<td colspan="7" height="25" class="td_bg">
<input name="remark" type="text" id="remark" value="<?=$info->remark?>" style="width:80%;"/>
</td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">调度备注</td>
<td colspan="7" height="25" class="td_bg">
<input name="remark2" type="text" id="remark2" value="" style="width:80%;"/>
</td>
</tr>
</form>
<tr>
<td colspan="8" height="22" colspan="2" align="center" class="td_bg">
<input id="print-btn" type=button class="ACT_btn" name=Submit1 value=" 打印接车单 "/>
&nbsp;&nbsp;
<input id="save-btn" type=button class="ACT_btn" name=Submit1 value=" 保存 "/>
&nbsp;&nbsp;
<input id="submit-btn" type=button class="ACT_btn" name=Submit3 value=" 提交 "/>
&nbsp;&nbsp;
<input id="back-btn" type="button" class="ACT_btn" name="Submit2" value=" 返回 ">
</td>
</tr>
</table>
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script>
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
<script type="text/javascript" language="javascript">
$(function () {
//保存按钮
$("#save-btn").click(function(){
if(confirm('是否确认提交?')) {
var params = $("#theFrm").serialize();
params = params + '&status=1';
$.post('/fix-car/step1-list-save',params,function(obj){
alert(obj.msg);
if(obj.success) {
$('#back-btn').click();
}
},'json');
}
});
//提交按钮
$("#submit-btn").click(function(){
if(confirm('是否确认提交?')) {
var params = $("#theFrm").serialize();
params = params + '&status=2';
$.post('/fix-car/step1-list-save',params,function(obj){
alert(obj.msg);
if(obj.success) {
$('#back-btn').click();
}
},'json');
}
});
//返回按钮
$('#back-btn').click(function(){
window.location.href='/fix-car/step1-list';
});
})
</script>