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.

81 lines
3.4 KiB

<script type="text/javascript">
$(document).ready(function() {
common_obj.form_submit();
//提交保存
$('#recharge-form').submit(function(e) {
e.preventDefault();
if (global_obj.check_form($('#recharge-form').find('*[notnull]'))) {
return false;
}
common_obj.showLoading('加载中,请等待');
$.post($("#recharge-form").find("#do_action").val(), $('#recharge-form').serialize(), function(data) {
common_obj.hideLoading();
setTimeout(function() {
if (data.code == 0) {
if (data.msg) {
alert(data.msg);
}
if ($("#recharge-form").find("#do_jump").length) {
window.location.href = $("#recharge-form").find("#do_jump").val();
} else {
window.history.go(-1);
}
} else {
if (data.msg) {
alert(data.msg);
return false;
}
if (data.url) {
window.location.href = data.url;
}
}
}, 10);
}, 'json');
});
});
</script>
<section class="wrapper" style="margin-top:0">
<div class="row">
<div class="col-lg-4"></div>
<div class="col-lg-4">
<section class="panel internal_rolling_1">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="myModalLabel">
供应商审核-拒绝
</h4>
</div>
<div class="panel-body internal_rolling_2">
<div class="form">
<form class="cmxform form-horizontal tasi-form" id="recharge-form">
<div class="form-group">
<label class="control-label col-lg-2">拒绝原因</label>
<div class="col-lg-10">
<input class="form-control"
type="text"
name="examine_idea"
value="{$data.examine_idea}"
notnull/>
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-4 col-lg-8">
<input class="btn btn-danger" type="submit" value="确认保存">
</div>
</div>
<input type="hidden" name="id" value="{$data.id}">
<input type="hidden" id="do_action" value="{:url('Product/supplyRefuse')}">
<input type="hidden" id="do_jump" value="{:url('Product/supply')}">
</form>
</div>
</div>
</section>
</div>
<div class="col-lg-4"></div>
</div>
</section>