...
|
...
|
@@ -4,151 +4,222 @@ |
|
|
</div>
|
|
|
{/if}
|
|
|
<style>
|
|
|
.form-group .col-sm-2{
|
|
|
.form-group .col-sm-2 {
|
|
|
min-width: 120px;
|
|
|
}
|
|
|
|
|
|
</style>
|
|
|
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
|
|
<div class="">
|
|
|
<div class="panel panel-success">
|
|
|
<div class="panel-heading">
|
|
|
<h4 class="panel-title">
|
|
|
<a data-toggle="collapse"
|
|
|
href="#collapseOne">
|
|
|
<span>{:__('基本信息')}</span>
|
|
|
</a>
|
|
|
|
|
|
</h4>
|
|
|
</div>
|
|
|
<div id="collapseOne" class="panel-collapse collapse in">
|
|
|
<div class="panel-body">
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-number" class="control-label col-xs-12 col-sm-2">{:__('合同编号')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-number" data-rule="required" type="text" class="form-control" name="row[number]" value="{$row.number|htmlentities}" {if $row.check_status=="2"}disabled{/if} />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('合同名称')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-name" data-rule="required" type="text" class="form-control" name="row[name]" value="{$row.name|htmlentities}" {if $row.check_status=="2"}disabled{/if} />
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-customer_id" class="control-label col-xs-12 col-sm-2">{:__('选择客户')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-customer_id" data-rule="required" data-source="facrm/customer/index/selectpage/type/all"
|
|
|
class="form-control selectpage" type="text" value="{$row.customer_id|htmlentities}" disabled>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-md-4 col-xs-12 form-group business_id_div" >
|
|
|
<label for="c-business_id" class="control-label col-xs-12 col-sm-2">{:__('选择商机')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
|
|
|
|
|
|
<input id="c-business_id" data-rule="required" data-source="facrm/business/index/index"
|
|
|
class="form-control selectpage" name="" type="text" value="{$row.business_id|htmlentities}" disabled>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-money" class="control-label col-xs-12 col-sm-2">{:__('合同金额')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-money" type="number" class="form-control" name="row[money]" value="{$row.money|htmlentities}" {if $row.check_status=="2"}disabled{/if} />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-order_time" class="control-label col-xs-12 col-sm-2">{:__('下单时间')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-order_time" value="{:datetime($row.order_time)}" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[order_time]" type="text" {if $row.check_status=="2"}disabled{/if} >
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-start_time" class="control-label col-xs-12 col-sm-2">{:__('合同开始时间')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-start_time" value="{:datetime($row.start_time)}" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm" data-use-current="true" name="row[start_time]" type="text" {if $row.check_status=="2"}disabled{/if} >
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-end_time" class="control-label col-xs-12 col-sm-2">{:__('合同结束时间')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-end_time" value="{:datetime($row.end_time)}" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm" data-use-current="true" name="row[end_time]" type="text" {if $row.check_status=="2"}disabled{/if}>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-contacts_id" class="control-label col-xs-12 col-sm-2">{:__('客户签约人')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-contacts_id" data-source="facrm/contract/index/selectcontact"
|
|
|
class="form-control selectpage" name="row[contacts_id]" type="text" value="{$row.contacts_id|htmlentities}" {if $row.check_status=="2"}disabled{/if} >
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-order_admin_id" class="control-label col-xs-12 col-sm-2">{:__('公司签约人')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-order_admin_id" data-rule="required" data-source="facrm/common/selectpage/model/admin/type/all" data-field="nickname"
|
|
|
class="form-control selectpage" name="row[order_admin_id]" type="text" value="{$row.order_admin_id|htmlentities}" {if $row.check_status=="2"}disabled{/if} >
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
{if $row.check_status!="2"}
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-flow_admin_id" class="control-label col-xs-12 col-sm-2">{:__('审批人')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
{if($flow)}
|
|
|
<input id="c-flow_admin_id" value="{$row.flow_admin_id|htmlentities}" data-source="facrm/common/selectpage/model/admin/type/all" data-field="nickname" data-multiple="true" {if $row.check_status=="2"}disabled{/if} {$flow->config==1?'disabled ':'data-rule="required"'}
|
|
|
class="form-control selectpage" name="row[flow_admin_id]" type="text" value="{if $flow->config==1}{$flow->step[0]['admin_ids']}{/if}">
|
|
|
{else/}
|
|
|
<label class="control-label">审批流程已被删除</label>
|
|
|
{/if}
|
|
|
</div>
|
|
|
</div>
|
|
|
{/if}
|
|
|
|
|
|
{if $row.check_status=="2"}
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-expire_handle" class="control-label col-xs-12 col-sm-2">合同过期处理:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
{:build_radios('row[expire_handle]', ['0'=>'未处理', '1'=>'已续签', '2'=>'不再合作'], $row.expire_handle)}
|
|
|
</div>
|
|
|
</div>
|
|
|
{/if}
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-order_admin_id" class="control-label col-xs-12 col-sm-2">{:__('合同负责人')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-owner_user_id" data-rule="required" data-source="facrm/common/selectpage/model/admin" data-field="nickname"
|
|
|
class="form-control selectpage" name="row[owner_user_id]" type="text" value="{$row.owner_user_id|htmlentities}" >
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-remark" class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<textarea id="c-remark" class="form-control" name="row[remark]">{$row.remark|htmlentities}</textarea>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
<div class="panel panel-success">
|
|
|
<div class="panel-heading">
|
|
|
<h4 class="panel-title">
|
|
|
<a data-toggle="collapse"
|
|
|
href="#collapseOne">
|
|
|
<span>{:__('基本信息')}</span>
|
|
|
</a>
|
|
|
|
|
|
</h4>
|
|
|
</div>
|
|
|
<div id="collapseOne" class="panel-collapse collapse in">
|
|
|
<div class="panel-body">
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-number" class="control-label col-xs-12 col-sm-2">{:__('合同编号')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-number" data-rule="required" type="text" class="form-control"
|
|
|
name="row[number]" value="{$row.number|htmlentities}" {if
|
|
|
$row.check_status=="2"}disabled{/if}/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('合同名称')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-name" data-rule="required" type="text" class="form-control" name="row[name]"
|
|
|
value="{$row.name|htmlentities}" {if $row.check_status=="2"}disabled{/if}/>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-customer_id" class="control-label col-xs-12 col-sm-2">{:__('选择客户')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-customer_id" data-rule="required"
|
|
|
data-source="facrm/customer/index/selectpage/type/all"
|
|
|
class="form-control selectpage" type="text" value="{$row.customer_id|htmlentities}"
|
|
|
disabled>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-md-4 col-xs-12 form-group business_id_div">
|
|
|
<label for="c-business_id" class="control-label col-xs-12 col-sm-2">{:__('选择商机')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
|
|
|
|
|
|
<input id="c-business_id" data-rule="required" data-source="facrm/business/index/index"
|
|
|
class="form-control selectpage" name="" type="text"
|
|
|
value="{$row.business_id|htmlentities}" disabled>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-money" class="control-label col-xs-12 col-sm-2">{:__('合同金额')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-money" type="number" class="form-control" name="row[money]"
|
|
|
value="{$row.money|htmlentities}" {if $row.check_status=="2"}disabled{/if}/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-order_time" class="control-label col-xs-12 col-sm-2">{:__('下单时间')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-order_time" value="{:datetime($row.order_time)}"
|
|
|
class="form-control datetimepicker" data-date-format="YYYY-MM-DD"
|
|
|
data-use-current="true" name="row[order_time]" type="text" {if
|
|
|
$row.check_status=="2"}disabled{/if}>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-start_time"
|
|
|
class="control-label col-xs-12 col-sm-2">{:__('合同开始时间')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-start_time" value="{:datetime($row.start_time)}"
|
|
|
class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm"
|
|
|
data-use-current="true" name="row[start_time]" type="text" {if
|
|
|
$row.check_status=="2"}disabled{/if}>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-end_time" class="control-label col-xs-12 col-sm-2">{:__('合同结束时间')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-end_time" value="{:datetime($row.end_time)}"
|
|
|
class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm"
|
|
|
data-use-current="true" name="row[end_time]" type="text" {if
|
|
|
$row.check_status=="2"}disabled{/if}>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-contacts_id" class="control-label col-xs-12 col-sm-2">{:__('客户签约人')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-contacts_id" data-source="facrm/contract/index/selectcontact"
|
|
|
class="form-control selectpage" name="row[contacts_id]" type="text"
|
|
|
value="{$row.contacts_id|htmlentities}" {if $row.check_status=="2"}disabled{/if}>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-order_admin_id"
|
|
|
class="control-label col-xs-12 col-sm-2">{:__('公司签约人')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-order_admin_id" data-rule="required"
|
|
|
data-source="facrm/common/selectpage/model/admin/type/all" data-field="nickname"
|
|
|
class="form-control selectpage" name="row[order_admin_id]" type="text"
|
|
|
value="{$row.order_admin_id|htmlentities}" {if $row.check_status=="2"}disabled{/if}>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
{if $row.check_status!="2"}
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-flow_admin_id" class="control-label col-xs-12 col-sm-2">{:__('审批人')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
{if($flow)}
|
|
|
<input id="c-flow_admin_id" value="{$row.flow_admin_id|htmlentities}"
|
|
|
data-source="facrm/common/selectpage/model/admin/type/all" data-field="nickname"
|
|
|
data-multiple="true" {if $row.check_status=="2"}disabled{/if} {$flow->config==1?'disabled
|
|
|
':'data-rule="required"'}
|
|
|
class="form-control selectpage" name="row[flow_admin_id]" type="text" value="{if
|
|
|
$flow->config==1}{$flow->step[0]['admin_ids']}{/if}">
|
|
|
{else/}
|
|
|
<label class="control-label">审批流程已被删除</label>
|
|
|
{/if}
|
|
|
</div>
|
|
|
</div>
|
|
|
{/if}
|
|
|
|
|
|
{if $row.check_status=="2"}
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-expire_handle" class="control-label col-xs-12 col-sm-2">合同过期处理:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
{:build_radios('row[expire_handle]', ['0'=>'未处理', '1'=>'已续签', '2'=>'不再合作'],
|
|
|
$row.expire_handle)}
|
|
|
</div>
|
|
|
</div>
|
|
|
{/if}
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-order_admin_id"
|
|
|
class="control-label col-xs-12 col-sm-2">{:__('合同负责人')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-owner_user_id" data-rule="required"
|
|
|
data-source="facrm/common/selectpage/model/admin" data-field="nickname"
|
|
|
class="form-control selectpage" name="row[owner_user_id]" type="text"
|
|
|
value="{$row.owner_user_id|htmlentities}">
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="col-md-4 col-xs-12 form-group">
|
|
|
<label for="c-remark" class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<textarea id="c-remark" class="form-control"
|
|
|
name="row[remark]">{$row.remark|htmlentities}</textarea>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('附件')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<div class="input-group">
|
|
|
<input id="c-attachfiles" class="form-control" size="20"
|
|
|
name="row[attachfiles]" type="text" value="{$row.attachfiles|htmlentities}">
|
|
|
<div class="input-group-addon no-border no-padding">
|
|
|
<span><button type="button" id="faupload-attachfiles"
|
|
|
class="btn btn-danger faupload" data-input-id="c-attachfiles"
|
|
|
data-multiple="true" data-preview-id="p-attachfiles"><i
|
|
|
class="fa fa-upload"></i> {:__('Upload')}</button></span>
|
|
|
<span><button type="button" id="fachoose-attachfiles"
|
|
|
class="btn btn-primary fachoose" data-input-id="c-attachfiles"
|
|
|
data-multiple="true"><i
|
|
|
class="fa fa-list"></i> {:__('Choose')}</button></span>
|
|
|
</div>
|
|
|
<span class="msg-box n-right" for="c-attachfiles"></span>
|
|
|
</div>
|
|
|
<ul class="row list-inline faupload-preview" id="p-attachfiles"></ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('图片')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<div class="input-group">
|
|
|
<input id="c-smallimages" class="form-control" size="50" name="row[smallimages]"
|
|
|
type="text" value="{$row.smallimages|htmlentities}">
|
|
|
<div class="input-group-addon no-border no-padding">
|
|
|
<span><button type="button" id="plupload-smallimages"
|
|
|
class="btn btn-danger plupload" data-input-id="c-smallimages"
|
|
|
data-multiple="true" data-preview-id="p-smallimages"><i
|
|
|
class="fa fa-upload"></i> {:__('Upload')}</button></span>
|
|
|
<span><button type="button" id="fachoose-smallimages"
|
|
|
class="btn btn-primary fachoose" data-input-id="c-smallimages"
|
|
|
data-multiple="true"><i
|
|
|
class="fa fa-list"></i> {:__('Choose')}</button></span>
|
|
|
</div>
|
|
|
<span class="msg-box n-right" for="c-smallimages"></span>
|
|
|
</div>
|
|
|
<ul class="row list-inline plupload-preview" id="p-smallimages"></ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<div class="panel-group" id="accordion">
|
|
|
<div class="panel panel-info">
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<div class="panel-group" id="accordion">
|
|
|
<div class="panel panel-info">
|
|
|
<div class="panel-heading">
|
|
|
<h4 class="panel-title">
|
|
|
<a data-toggle="collapse"
|
|
|
href="#collapseThree">
|
|
|
合同扩展
|
|
|
合同扩展
|
|
|
</a>
|
|
|
</h4>
|
|
|
</div>
|
...
|
...
|
@@ -159,9 +230,9 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
...
|
...
|
@@ -177,7 +248,7 @@ |
|
|
<th>{:__('备注')}</th>
|
|
|
<th>{:__('规格')}</th>
|
|
|
<th>{:__('属性')}</th>
|
|
|
<th >{:__('单位')}</th>
|
|
|
<th>{:__('单位')}</th>
|
|
|
<th>{:__('小计')}</th>
|
|
|
|
|
|
|
...
|
...
|
@@ -188,9 +259,9 @@ |
|
|
$allMoney=0;//产品金额小计
|
|
|
|
|
|
{/php}
|
|
|
{foreach name="product_list" item="vo" index="i" }
|
|
|
{foreach name="product_list" item="vo" index="i" }
|
|
|
{php}
|
|
|
|
|
|
|
|
|
$totalnums +=$vo['nums'];
|
|
|
$allMoney+=$vo['subtotal'];
|
|
|
{/php}
|
...
|
...
|
@@ -202,20 +273,33 @@ |
|
|
<td>{$i|htmlentities}</td>
|
|
|
<td>{$vo.sku|htmlentities}</td>
|
|
|
<td>
|
|
|
<input date-rule="required;" style="width: 100px" value="{$vo.name|htmlentities}" type="text" name="product[{$i|htmlentities}][name]" data-index="{$i|htmlentities}" class="find" class="" data-toggle="modal" data-target="#modelProduct" {if $row.check_status=="2"}disabled{/if} >
|
|
|
<input type="hidden" name="product[{$i|htmlentities}][product_id]" value="{$vo.product_id|htmlentities}" >
|
|
|
<input type="hidden" name="product[{$i|htmlentities}][sku]" value="{$vo.sku|htmlentities}" >
|
|
|
<input type="hidden" name="product[{$i|htmlentities}][specification]" value="{$vo.specification|htmlentities}" >
|
|
|
<input type="hidden" name="product[{$i|htmlentities}][prop]" value="{$vo.prop|htmlentities}" >
|
|
|
<input type="hidden" name="product[{$i|htmlentities}][unit]" value="{$vo.unit|htmlentities}" >
|
|
|
<input date-rule="required;" style="width: 100px" value="{$vo.name|htmlentities}" type="text"
|
|
|
name="product[{$i|htmlentities}][name]" data-index="{$i|htmlentities}" class="find"
|
|
|
class="" data-toggle="modal" data-target="#modelProduct" {if
|
|
|
$row.check_status=="2"}disabled{/if}>
|
|
|
<input type="hidden" name="product[{$i|htmlentities}][product_id]"
|
|
|
value="{$vo.product_id|htmlentities}">
|
|
|
<input type="hidden" name="product[{$i|htmlentities}][sku]" value="{$vo.sku|htmlentities}">
|
|
|
<input type="hidden" name="product[{$i|htmlentities}][specification]"
|
|
|
value="{$vo.specification|htmlentities}">
|
|
|
<input type="hidden" name="product[{$i|htmlentities}][prop]" value="{$vo.prop|htmlentities}">
|
|
|
<input type="hidden" name="product[{$i|htmlentities}][unit]" value="{$vo.unit|htmlentities}">
|
|
|
</td>
|
|
|
<td>
|
|
|
<input type="number" value="{$vo.nums|htmlentities}" style="width: 80px" name="product[{$i|htmlentities}][nums]" data-rule="required;integer;range(0~);" class="nums" onchange="totalNums(this)" onblur="totalNums(this)" {if $row.check_status=="2"}disabled{/if}>
|
|
|
<input type="number" value="{$vo.nums|htmlentities}" style="width: 80px"
|
|
|
name="product[{$i|htmlentities}][nums]" data-rule="required;integer;range(0~);"
|
|
|
class="nums" onchange="totalNums(this)" onblur="totalNums(this)" {if
|
|
|
$row.check_status=="2"}disabled{/if}>
|
|
|
</td>
|
|
|
<td><input value="{$vo.sales_price|htmlentities}" type="number" style="width: 80px" data-rule="required;range(0~);" onchange="calMoney(this)" onblur="calMoney(this)" class="unit-price" name="product[{$i|htmlentities}][price]" {if $row.check_status=="2"}disabled{/if}>
|
|
|
<input type="hidden" name="product[{$i|htmlentities}][subtotal]" value="{$vo.subtotal|htmlentities}" >
|
|
|
<td><input value="{$vo.sales_price|htmlentities}" type="number" style="width: 80px"
|
|
|
data-rule="required;range(0~);" onchange="calMoney(this)" onblur="calMoney(this)"
|
|
|
class="unit-price" name="product[{$i|htmlentities}][price]" {if
|
|
|
$row.check_status=="2"}disabled{/if}>
|
|
|
<input type="hidden" name="product[{$i|htmlentities}][subtotal]"
|
|
|
value="{$vo.subtotal|htmlentities}">
|
|
|
</td>
|
|
|
<td> <textarea rows="1" class="remarks" name="product[{$i|htmlentities}][remarks]" cols="20" {if $row.check_status=="2"}disabled{/if}>{$vo.remarks|htmlentities}</textarea></td>
|
|
|
<td><textarea rows="1" class="remarks" name="product[{$i|htmlentities}][remarks]" cols="20" {if
|
|
|
$row.check_status=="2"}disabled{/if}>{$vo.remarks|htmlentities}</textarea></td>
|
|
|
|
|
|
<td class="gg">{$vo.specification|htmlentities}</td>
|
|
|
<td>
|
...
|
...
|
@@ -235,7 +319,7 @@ |
|
|
<td></td>
|
|
|
<td></td>
|
|
|
<td></td>
|
|
|
<td class="totalnums" >{$totalnums|htmlentities}</td>
|
|
|
<td class="totalnums">{$totalnums|htmlentities}</td>
|
|
|
<td></td>
|
|
|
<td></td>
|
|
|
<td></td>
|
...
|
...
|
@@ -254,7 +338,9 @@ |
|
|
<div class="col-md-4 col-xs-12">
|
|
|
<label class="control-label col-xs-12 col-sm-6">{:__('优惠率%')}:</label>
|
|
|
<div class="col-xs-12 col-sm-6">
|
|
|
<input id="c-rate" {if $row.check_status=="2"}disabled{/if} class="form-control" data-rule="required;float;range(0~100);" name="row[discount_rate]" type="number" value="{$row.discount_rate|htmlentities}" onblur="calTotalMoneys()">
|
|
|
<input id="c-rate" {if $row.check_status=="2"}disabled{/if} class="form-control"
|
|
|
data-rule="required;float;range(0~100);" name="row[discount_rate]" type="number"
|
|
|
value="{$row.discount_rate|htmlentities}" onblur="calTotalMoneys()">
|
|
|
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -262,9 +348,12 @@ |
|
|
|
|
|
<label class="control-label col-xs-12 col-sm-6"> {:__('产品总额 $')}:</label>
|
|
|
<div class="col-xs-12 col-sm-6">
|
|
|
<input id="totalMoneys" class="form-control" name="row[total_price]" {if $row.check_status=="2"}disabled{/if} type="number" value="{$row.total_price|htmlentities}">
|
|
|
<input id="money" style="display: none;" readonly="readonly" type="number" >
|
|
|
<input id="allNums" style="display: none;" name="row[totalNums]" readonly="readonly" type="number" >
|
|
|
<input id="totalMoneys" class="form-control" name="row[total_price]" {if
|
|
|
$row.check_status=="2"}disabled{/if} type="number"
|
|
|
value="{$row.total_price|htmlentities}">
|
|
|
<input id="money" style="display: none;" readonly="readonly" type="number">
|
|
|
<input id="allNums" style="display: none;" name="row[totalNums]" readonly="readonly"
|
|
|
type="number">
|
|
|
</div>
|
|
|
|
|
|
</div>
|
...
|
...
|
@@ -278,7 +367,8 @@ |
|
|
<button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
|
|
|
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
|
|
|
{if $row.check_status=="2" &&$auth->check('facrm/contract/index/change')}
|
|
|
<a class="btn btn-xs btn-danger btn-dialog" href="facrm/contract/index/change/ids/{$row.id|htmlentities}" data-title="合同更变">{:__('更变')}</a>
|
|
|
<a class="btn btn-xs btn-danger btn-dialog" href="facrm/contract/index/change/ids/{$row.id|htmlentities}"
|
|
|
data-title="合同更变">{:__('更变')}</a>
|
|
|
{/if}
|
|
|
|
|
|
</div>
|
...
|
...
|
@@ -291,12 +381,14 @@ |
|
|
<div class="modal-dialog" role="document">
|
|
|
<div class="modal-content" style="padding: 15px;">
|
|
|
<div class="modal-header">
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
|
|
|
</button>
|
|
|
<h4 class="modal-title" id="myModalLabel">{:__('选择产品')}</h4>
|
|
|
</div>
|
|
|
<div class="modal-body">
|
|
|
<div id="lays-row" class="row" >
|
|
|
<table id="table2" class="table table-striped table-bordered table-hover " data-show-export="false" data-show-toggle="false" data-show-columns="false">
|
|
|
<div id="lays-row" class="row">
|
|
|
<table id="table2" class="table table-striped table-bordered table-hover " data-show-export="false"
|
|
|
data-show-toggle="false" data-show-columns="false">
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -304,7 +396,11 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
<script>
|
|
|
var contract_id={:intval(input('ids'))};
|
|
|
var contract_id = {
|
|
|
:
|
|
|
intval(input('ids'))
|
|
|
}
|
|
|
;
|
|
|
</script>
|
|
|
|
|
|
|
...
|
...
|
|