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.
 
 
 
 
excel_handle/app/view/index/edit.html

236 lines
11 KiB

{extend name="public/base" /}
{block name="header"}
<style>
.layui-form-label {
width: 100px;
}
.layui-badge {
height: 28px;
line-height: 28px;
font-size: 14px;
}
</style>
{/block}
{block name="body"}
<div class="layui-card">
<div class="layui-card-header"></div>
<div class="layui-card-body layui-form">
<input type="hidden" name="id" value="{$info.id}">
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">车牌号</label>
<div class="layui-input-inline">
<input type="text" name="car_no" value="{$info.car_no}" class="layui-input">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">车架号</label>
<div class="layui-input-inline">
<input type="text" name="car_frame_no" value="{$info.car_frame_no}" class="layui-input">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">发动机号</label>
<div class="layui-input-inline">
<input type="text" name="engine_no" value="{$info.engine_no}" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">厂牌型号</label>
<div class="layui-input-inline">
<input type="text" name="factory_model" value="{$info.factory_model}" class="layui-input">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">初登日期</label>
<div class="layui-input-inline">
<input type="text" name="register_date" id="register_date" value="{$info.register_date}" class="layui-input">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">新车购置价</label>
<div class="layui-input-inline">
<input type="text" name="purchase_price" value="{$info.purchase_price}" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">车主姓名</label>
<div class="layui-input-inline">
<input type="text" name="car_man" value="{$info.car_man}" class="layui-input">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">车主证件号</label>
<div class="layui-input-inline">
<input type="text" name="car_number" value="{$info.car_number}" class="layui-input">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">车主联系方式</label>
<div class="layui-input-inline">
<input type="text" name="car_phone" value="{$info.car_phone}" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">上年承保公司</label>
<div class="layui-input-inline">
<input type="text" name="company" value="{$info.company}" class="layui-input">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">商业止保日期</label>
<div class="layui-input-inline">
<input type="text" name="insurer1_date" id="insurer1_date" value="{$info.insurer1_date}" class="layui-input">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">交强止保日期</label>
<div class="layui-input-inline">
<input type="text" name="insurer2_date" id="insurer2_date" value="{$info.insurer2_date}" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">被保险人</label>
<div class="layui-input-inline">
<input type="text" name="id_man" value="{$info.id_man}" class="layui-input">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">被保险人证件号</label>
<div class="layui-input-inline">
<input type="text" name="id_number" value="{$info.id_number}" class="layui-input">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">被保险人联系方式</label>
<div class="layui-input-inline">
<input type="text" name="id_phone" value="{$info.car_phone}" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">投保人</label>
<div class="layui-input-inline">
<input type="text" name="insured_man" value="{$info.id_man}" class="layui-input">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">投保人证件号</label>
<div class="layui-input-inline">
<input type="text" name="insured_number" value="{$info.id_number}" class="layui-input">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">投保人联系方式</label>
<div class="layui-input-inline">
<input type="text" name="insured_phone" value="{$info.car_phone}" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">联系人1</label>
<div class="layui-input-inline">
<input type="text" name="link_man_1" value="{$info.id_man}" class="layui-input">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">联系人2</label>
<div class="layui-input-inline">
<input type="text" name="link_man_2" value="{$info.id_number}" class="layui-input">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">联系人3</label>
<div class="layui-input-inline">
<input type="text" name="link_man_3" value="{$info.car_phone}" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">联系电话1</label>
<div class="layui-input-inline">
<input type="text" name="link_phone_1" value="{$info.id_man}" class="layui-input">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">联系电话2</label>
<div class="layui-input-inline">
<input type="text" name="link_phone_2" value="{$info.id_number}" class="layui-input">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">联系电话3</label>
<div class="layui-input-inline">
<input type="text" name="link_phone_3" value="{$info.car_phone}" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">数据状态</label>
<div class="layui-input-block" style="height: 36px; line-height: 36px;">
{if $info.is_export_bhx == 0 && $info.is_update_bhx == 0 && $info.is_export_bmc == 0 &&
$info.is_export_failed == 0 && $info.is_export_none_bmc == 0 && $info.is_export_failed_bmc == 0}
<span class="layui-badge layui-bg-green">未处理</span>
{/if}
{if $info.is_export_bhx > 0 /}
<span class="layui-badge layui-bg-green">导出至清洗</span>
{/if}
{if $info.is_export_bhx > 0 && $info.is_update_bhx > 0 /}
<span class="layui-badge layui-bg-green">清洗成功</span>
{/if}
{if $info.is_export_bhx > 0 && $info.is_update_bhx < 0 /}
<span class="layui-badge layui-bg-green">清洗失败</span>
{/if}
{if $info.is_export_bhx > 0 && $info.is_export_failed > 0 /}
<span class="layui-badge layui-bg-green">导出清洗失败</span>
{/if}
{if $info.is_export_bhx > 0 && $info.is_export_failed_bmc > 0 /}
<span class="layui-badge layui-bg-green">导出清洗失败至上传</span>
{/if}
{if $info.is_export_bhx > 0 && $info.is_update_bhx > 0 && $info.is_export_bmc > 0 /}
<span class="layui-badge layui-bg-green">导出清洗成功至上传</span>
{/if}
{if $info.is_export_none_bmc > 0 /}
<span class="layui-badge layui-bg-green">导出未处理至上传</span>
{/if}
</div>
</div>
<div class="layui-form-item" style="margin-top: 60px; text-align: center">
<button type="submit" class="layui-btn" lay-submit="" lay-filter="car-info">立即提交</button>
<button type="button" class="layui-btn layui-btn-danger" onclick="location.reload();">重置</button>
<button type="button" class="layui-btn layui-btn-danger" onclick="window.parent.layer.closeAll();">关闭</button>
</div>
</div>
</div>
{/block}
{block name="script"}
<script>
layui.laydate.render({
elem: '#register_date'
});
layui.form.on('submit(car-info)', function(data){
$.post('{:url("index/edit")}',data.field,function(ret){
layer.msg(ret['msg'],function(){
if(ret['code'] == 1){
window.parent.layer.closeAll();
window.parent.layui.table.reload('carInfo');
}
delete ret;
});
});
return false;
});
</script>
{/block}