重复车架处理调试5

master
zcstatham 2 years ago
parent ab68c37288
commit c21cf0b0f3
  1. 7
      app/controller/Repeat.php
  2. 138
      app/view/repeat/index.html

@ -168,6 +168,13 @@ class Repeat extends BaseController
});
$map[] = ['car_info_t.factory_model', 'like', $factory_model];
}
if (isset($params['tag']) && $params['tag'] != '') {
$tags = explode(',', str_replace(',', '', $params['tag']));
array_walk($tags, function (&$value) {
$value = '%' . $value . '%';
});
$map[] = ['car_info_t.tag', 'like', $tags];
}
if (isset($params['car_frame_no']) && $params['car_frame_no'] != '') {
$map[] = ['car_info_t.car_frame_no', '=', $params['car_frame_no']];
}

@ -8,97 +8,129 @@
{/block}
{block name="body"}
<div class="layui-card">
<div class="layui-card-header layui-card-header-auto layui-form">
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label" style="width: 100px;">车牌号</label>
<div class="layui-input-inline" style="width: 200px;">
<input type="text" name="car_no" id="car_no" autocomplete="off" class="layui-input"
value="{$params.car_no | default=''}">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label" style="width: 100px;">车架号</label>
<div class="layui-input-inline" style="width: 200px;">
<div class="layui-card-header layui-card-header-auto layui-form" style="padding: 0 10px;">
<div class="layui-row">
<div class="layui-form-item layui-col-md3" style="clear: none;">
<label class="layui-form-label">车架号</label>
<div class="layui-input-block">
<input type="text" name="car_frame_no" id="car_frame_no" autocomplete="off"
class="layui-input" value="{$params.car_frame_no | default=''}">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label" style="width: 100px;">厂牌型号</label>
<div class="layui-input-inline" style="width: 200px;">
<div class="layui-form-item layui-col-md3" style="clear: none;">
<label class="layui-form-label">厂牌型号</label>
<div class="layui-input-block">
<input type="text" name="factory_model" id="factory_model" autocomplete="off"
class="layui-input" value="{$params.factory_model | default=''}">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label" style="width: 100px;">注册日期</label>
<div class="layui-input-inline" style="width: 200px;">
<div class="layui-form-item layui-col-md2" style="clear: none;">
<label class="layui-form-label">车牌号</label>
<div class="layui-input-block">
<input type="text" name="car_no" id="car_no" autocomplete="off" class="layui-input"
value="{$params.car_no | default=''}">
</div>
</div>
<div class="layui-form-item layui-col-md2" style="clear: none;">
<label class="layui-form-label">注册日期</label>
<div class="layui-input-block">
<input type="text" name="register_date" id="register_date" autocomplete="off"
class="layui-input layui-date-elem" value="{$params.register_date | default=''}">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label" style="width: 100px;">车主姓名</label>
<div class="layui-input-inline" style="width: 200px;">
<div class="layui-form-item layui-col-md2" style="clear: none;">
<label class="layui-form-label">车主姓名</label>
<div class="layui-input-block">
<input type="text" name="car_man" id="car_man" autocomplete="off"
class="layui-input" value="{$params.car_man | default=''}">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label" style="width: 100px;">身份证号</label>
<div class="layui-input-inline" style="width: 200px;">
<div class="layui-form-item layui-col-md3" style="clear: none;">
<label class="layui-form-label">身份证号</label>
<div class="layui-input-block">
<input type="text" name="car_number" id="car_number" autocomplete="off"
class="layui-input" value="{$params.car_number | default=''}">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label" style="width: 100px;">联系电话</label>
<div class="layui-input-inline" style="width: 200px;">
<div class="layui-form-item layui-col-md3" style="clear: none;">
<label class="layui-form-label">导出文件名</label>
<div class="layui-input-block">
<input type="text" name="export_name" id="export_name" autocomplete="off"
class="layui-input" value="{$params.export_name | default=''}">
</div>
</div>
<div class="layui-form-item layui-col-md2" style="clear: none;">
<label class="layui-form-label">联系电话</label>
<div class="layui-input-block">
<input type="text" name="car_phone" id="car_phone" autocomplete="off"
class="layui-input" value="{$params.car_phone | default=''}">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-inline" style="width: 695px;">
<label class="layui-form-label" style="width: 100px;">初登日期</label>
<div class="layui-input-inline" style="width: 200px;">
<div class="layui-form-item layui-col-md2" style="clear: none;">
<label class="layui-form-label">电话检测</label>
<div class="layui-input-block">
<select name="car_phone_empty">
<option value="">全部</option>
<option value="yes">不为空</option>
<option value="no"></option>
<option value="2">广州</option>
<option value="3">深圳</option>
<option value="4">杭州</option>
</select>
</div>
</div>
<div class="layui-form-item layui-col-md2" style="clear: none;">
<label class="layui-form-label">重复数据</label>
<div class="layui-input-block">
<select name="data_check">
<option value=""></option>
{if $repeat_frame_count > 0 }
<option value="car_frame_check">车架号</option>
{/if}
{if $peer_phone_count > 0 }
<option value="car_phone_check">个人电话</option>
{/if}
</select>
</div>
</div>
<div class="layui-form-item layui-col-md3" style="clear: none;">
<label class="layui-form-label">初登日期</label>
<div class="layui-input-inline" style="width: 100px;">
<input type="text" name="register_date1" id="register-date1" class="layui-input layui-date-elem">
</div>
<div class="layui-form-mid">-</div>
<div class="layui-input-inline" style="width: 200px;">
<div class="layui-input-inline" style="width: 100px;">
<input type="text" name="register_date2" id="register-date2" class="layui-input layui-date-elem">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label" style="width: 100px;">保险日期</label>
<div class="layui-input-inline">
<input type="text" name="insurer_month1" class="layui-input" style="display: inline-block; width: 60px;">
<input type="text" name="insurer_day1" class="layui-input" style="display: inline-block; width: 60px;">
<div class="layui-form-item layui-col-md4" style="clear: none;">
<label class="layui-form-label">保险日期</label>
<div class="layui-input-inline" style="width: 110px;">
<input type="text" name="insurer_month1" class="layui-input" style="display: inline-block; width: 50px;" placeholder="月">
<input type="text" name="insurer_day1" class="layui-input" style="display: inline-block; width: 50px;" placeholder="日">
</div>
<div class="layui-form-mid">-</div>
<div class="layui-input-inline">
<input type="text" name="insurer_month2" class="layui-input" style="display: inline-block; width: 60px;">
<input type="text" name="insurer_day2" class="layui-input" style="display: inline-block; width: 60px;">
<div class="layui-input-inline" style="width: 110px;">
<input type="text" name="insurer_month2" class="layui-input" style="display: inline-block; width: 50px;" placeholder="月">
<input type="text" name="insurer_day2" class="layui-input" style="display: inline-block; width: 50px;" placeholder="日">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label" style="width: 100px;">新车购置价</label>
<div class="layui-input-inline" style="width: auto;">
<input type="text" name="price1" class="layui-input" style="display: inline-block; width: 60px;">
<div class="layui-form-item layui-col-md3" style="clear: none;">
<label class="layui-form-label">新车购置价</label>
<div class="layui-input-inline" style="width: 100px;">
<input type="text" name="price1" class="layui-input" placeholder="万">
</div>
<div class="layui-form-mid">-</div>
<div class="layui-input-inline" style="width: auto;">
<input type="text" name="price2" class="layui-input" style="display: inline-block; width: 60px;">
<div class="layui-input-inline" style="width: 100px;">
<input type="text" name="price2" class="layui-input" placeholder="万">
</div>
</div>
<div class="layui-input-block layui-text-right" id="tool-bar">
<button type="button" class="layui-btn" id="search-btn">搜索</button>
<div class="layui-form-item layui-col-md2" style="clear: none;">
<label class="layui-form-label">标签</label>
<div class="layui-input-block">
<input type="text" name="tag" id="tag" autocomplete="off"
class="layui-input" value="{$params.tag | default=''}">
</div>
</div>
</div>
</div>

Loading…
Cancel
Save