优化结算时间选择

master
chenzhi 5 years ago
parent 8b8b0721b3
commit aabc0703df

@ -48,6 +48,7 @@
<td class="r">
<input type="text" class="txt time time1" name="contract_start_time" value="" placeholder="请选择开始时间">
-<input type="text" class="txt time time2" name="contract_end_time" value="" placeholder="请选择结束时间">
<span class="notice-text" style="float: none;">结束时间不选默认永久</span>
</td>
</tr>
@ -56,6 +57,7 @@
<td class="r">
<input type="text" class="txt time time3" name="validity_start_time" value="" placeholder="生效开始时间">
-<input type="text" class="txt time time4" name="validity_end_time" value="" placeholder="生效结束时间">
<span class="notice-text" style="float: none;">结束时间不选默认永久</span>
</td>
</tr>
@ -385,6 +387,7 @@
return false;
});
$(".time3").datetimepicker("setDate", new Date());
$('.time4').datetimepicker({
format: 'yyyy-mm-dd',

@ -48,6 +48,7 @@
<td class="r">
<input type="text" class="txt time time1" name="contract_start_time" value="{$data.contract_start_time}" placeholder="请选择开始时间">
-<input type="text" class="txt time time2" name="contract_end_time" value="{$data.contract_end_time}" placeholder="请选择结束时间">
<span class="notice-text" style="float: none;">结束时间不选默认永久</span>
</td>
</tr>
@ -56,6 +57,7 @@
<td class="r">
<input type="text" class="txt time time3" name="validity_start_time" value="{$data.validity_start_time}" placeholder="生效开始时间">
-<input type="text" class="txt time time4" name="validity_end_time" value="{$data.validity_end_time}" placeholder="生效结束时间">
<span class="notice-text" style="float: none;">结束时间不选默认永久</span>
</td>
</tr>

@ -167,16 +167,9 @@
<tr>
<td class="l">合同期限:</td>
<td class="r" >
<div class="input-list" style="margin:0;">
<input type="text" readonly id="contact_begin" name="contact_begin" class="" value="{:I('contact_begin')}"
placeholder="合同开始时间" />
&nbsp;-&nbsp;
<div class="input-append date" id="datetimepicker" style="display:inline-block">
<input type="text" readonly id="contact_end" name="contact_end" class="" value="{:I('contact_end')}"
placeholder="合同结束时间" />
<span class="add-on"><i class="icon-th"></i></span>
</div>
</div>
<input type="text" class="txt time" id="contact_begin" name="contact_begin" placeholder="合同开始时间">
&nbsp;-&nbsp;<input type="text" class="txt time" id="contact_end" name="contact_end" placeholder="合同结束时间">
<span class="notice-text" style="float: none;">结束时间不选默认永久</span>
</td>
</tr>
@ -490,7 +483,7 @@
return false;
});
$('#datetimepicker').datetimepicker({
$('#contact_end').datetimepicker({
format: 'yyyy-mm-dd',
language: "zh-CN",
minView: 2,

@ -166,16 +166,9 @@
<tr>
<td class="l">合同期限:</td>
<td class="r" >
<div class="input-list" style="margin:0;">
<input type="text" readonly id="contact_begin" name="contact_begin" class="" value="{$data.contact_begin}"
placeholder="合同开始时间" />
&nbsp;-&nbsp;
<div class="input-append date" id="datetimepicker" style="display:inline-block">
<input type="text" readonly id="contact_end" name="contact_end" class="" value="{$data.contact_end}"
placeholder="合同结束时间" />
<span class="add-on"><i class="icon-th"></i></span>
</div>
</div>
<input type="text" class="txt time" id="contact_begin" name="contact_begin" value="{$data.contact_begin}" placeholder="合同开始时间">
&nbsp;-&nbsp;<input type="text" class="txt time" id="contact_end" name="contact_end" value="{$data.contact_end}" placeholder="合同结束时间">
<span class="notice-text" style="float: none;">结束时间不选默认永久</span>
</td>
</tr>
<tr>
@ -564,7 +557,7 @@
return false;
});
$('#datetimepicker').datetimepicker({
$('#contact_end').datetimepicker({
format: 'yyyy-mm-dd',
language: "zh-CN",
minView: 2,

Loading…
Cancel
Save