Commit bd411744 by 杨树贤

修复字段

parent d6e47ec7
......@@ -55,7 +55,7 @@ class SupplierContractService
if ($oldData) {
$columnMap = [
'supplier_id' => '供应商',
'end_time' => '截止时间',
'end_time' => '合同有效期',
'commission_rate' => '抽佣比率',
'check_date' => '对账日期',
];
......
......@@ -21,7 +21,7 @@ class SupplierContractTransformer
'Y-m-d H:i:s',
$contract['update_time']
) : '';
$contract['valid_date'] = date('Y-m-d H:i:s', $contract['start_time']) . ' 至 ' . date('Y-m-d H:i:s', $contract['end_time']);
$contract['valid_date'] = date('Y-m-d H:i:s', $contract['end_time']);
}
unset($contract);
return $list;
......
......@@ -7,19 +7,23 @@
<div class="layui-card-body">
<form class="layui-form" action="">
<div class="layui-form-item">
@inject('singleSelectPresenter','App\Presenters\SingleSelectPresenter')
{!! $singleSelectPresenter->render('participate_type','参与类型 :',!empty($remark)?$remark['participate_type']:1,config('field.PurchaseRemarkParticipateType'),['required'=>true,'disable' => !empty($remark)?true:false]) !!}
@inject('singleSelectPresenter', 'App\Presenters\SingleSelectPresenter')
{!! $singleSelectPresenter->render(
'participate_type',
'参与类型 :',
!empty($remark) ? $remark['participate_type'] : 1,
config('field.PurchaseRemarkParticipateType'),
['required' => true, 'disable' => !empty($remark) ? true : false],
) !!}
</div>
<input type="hidden" name="id" value="{{$remark['id'] or ''}}">
<input type="hidden" name="id" value="{{ $remark['id'] or '' }}">
<div class="layui-form-item">
<label class="layui-form-label"><span style="color: red">*</span>参与内容 : </label>
<div class="layui-input-block">
<div id="participate_content_div">
<textarea rows="7" name="participate_content"
placeholder="请输入 型号/标准品牌 全称,多个以英文逗号隔开,如果选择品牌类型,会去校验标准品牌是否正确"
class="layui-textarea @if(empty($remark) || (!empty($remark) && $remark['participate_type']==1)) layui-disabled @endif"
@if(empty($remark)|| (!empty($remark) && $remark['participate_type']==1)) disabled @endif
id="participate_content">{{$remark['participate_content'] or ''}}</textarea>
<textarea rows="7" name="participate_content" placeholder="请输入 型号/标准品牌 全称,多个以英文逗号隔开,如果选择品牌类型,会去校验标准品牌是否正确"
class="layui-textarea @if (empty($remark) || (!empty($remark) && $remark['participate_type'] == 1)) layui-disabled @endif"
@if (empty($remark) || (!empty($remark) && $remark['participate_type'] == 1)) disabled @endif id="participate_content">{{ $remark['participate_content'] or '' }}</textarea>
</div>
<blockquote class="layui-elem-quote layui-text">
<b style="color: red" id="checkStandardBrandNameResult"></b>
......@@ -31,11 +35,8 @@
<div class="layui-input-block">
<div class="layui-col-xs4">
<div class="layui-input-inline">
<input type="text" id="start_time" name="start_time"
placeholder="请输入开始时间"
class="layui-input"
autocomplete="off"
value="{{$remark['start_time'] or ''}}">
<input type="text" id="start_time" name="start_time" placeholder="请输入开始时间"
class="layui-input" autocomplete="off" value="{{ $remark['start_time'] or '' }}">
</div>
</div>
<div class="layui-col-xs1">
......@@ -43,11 +44,8 @@
</div>
<div class="layui-col-xs7" style="margin-left: -25px">
<div class="layui-input-inline">
<input type="text" id="end_time" name="end_time"
placeholder="请输入截止时间"
class="layui-input"
autocomplete="off"
value="{{$remark['end_time'] or ''}}">
<input type="text" id="end_time" name="end_time" placeholder="请输入合同有效期"
class="layui-input" autocomplete="off" value="{{ $remark['end_time'] or '' }}">
</div>
</div>
</div>
......@@ -55,22 +53,20 @@
<div class="layui-form-item">
<label class="layui-form-label"><span style="color: red">*</span>备注内容 : </label>
<div class="layui-input-block">
<textarea rows="7" name="remark" placeholder="活动内容(展示在【询报价系统】供销售查看的内容通知)"
class="layui-textarea"
id="remark">{{$remark['remark'] or ''}}</textarea>
<textarea rows="7" name="remark" placeholder="活动内容(展示在【询报价系统】供销售查看的内容通知)" class="layui-textarea" id="remark">{{ $remark['remark'] or '' }}</textarea>
</div>
</div>
<div class="layui-form-item">
<div align="right" style="margin-top: 20px">
<button type="button" class="layui-btn layui-btn-sm layui-btn-info submit-loading" lay-submit
lay-filter="savePurchaseRemark">确认
lay-filter="savePurchaseRemark">确认
</button>
<button type="button" class="layui-btn layui-btn-sm layui-btn-primary" lay-submit
lay-filter="cancel">关闭
lay-filter="cancel">关闭
</button>
</div>
</div>
</form>
</div>
</div>
\ No newline at end of file
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment