|
@@ -0,0 +1,226 @@
|
|
|
+<?php defined('InShopNC') or exit('Access Invalid!'); ?>
|
|
|
+<style>
|
|
|
+ .layui-form-select .layui-input {
|
|
|
+ padding: 13px 5px;
|
|
|
+}
|
|
|
+.layui-form-select dl {
|
|
|
+ top: 29px !important;
|
|
|
+}
|
|
|
+.layui-form-select {
|
|
|
+ width: 85%;
|
|
|
+}
|
|
|
+.layui-select-title {
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
+.page .fixed-bar .item-title h3 {
|
|
|
+ margin-top: 18px !important;
|
|
|
+ margin-bottom: 10px !important;
|
|
|
+ font-weight: 700 !important;
|
|
|
+}
|
|
|
+.tab-base li span {
|
|
|
+ font-size: 12px !important;
|
|
|
+}
|
|
|
+</style>
|
|
|
+<div class="page">
|
|
|
+ <div class="fixed-bar">
|
|
|
+ <div class="item-title">
|
|
|
+ <h3>退款信息管理</h3>
|
|
|
+ <ul class="tab-base">
|
|
|
+ <li><a href="index.php?act=refill_refund&op=index"><span>退款信息管理</span></a></li>
|
|
|
+ <li><a href="JavaScript:void(0);" class="current"><span>编辑</span></a></li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="fixed-empty"></div>
|
|
|
+ <form id="user_form" enctype="multipart/form-data" method="post" class="layui-form">
|
|
|
+ <input type="hidden" name="form_submit" value="ok"/>
|
|
|
+ <input type="hidden" name="id" value="<?php echo $_GET['id'];?>"/>
|
|
|
+ <table class="table tb-type2 nobdb">
|
|
|
+ <tbody>
|
|
|
+ <tr class="noborder">
|
|
|
+ <td colspan="2" class="required"><label class="validation" for="provider_id">通道选择:</label></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="">
|
|
|
+ <td class="">
|
|
|
+ <select name="provider_id" id="provider_id" lay-verify="" lay-search>
|
|
|
+ <option value=""><?php echo $lang['nc_please_choose']; ?></option>
|
|
|
+ <?php foreach($output['provider_list'] as $provider){?>
|
|
|
+ <option value="<?php echo $provider['provider_id']?>" <?php if($output['refund_info']['provider_id'] == $provider['provider_id']){ echo 'selected';}?>><?php echo $provider['store_name']?></option>
|
|
|
+ <?php }?>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <td class="vatop tips"></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="noborder">
|
|
|
+ <td colspan="2" class="required"><label class="validation" for="channel_amount">通道退款金额:</label></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="noborder">
|
|
|
+ <td class="vatop rowform"><input type="text" value="<?php echo $output['refund_info']['channel_amount'];?>" name="channel_amount" id="channel_amount" class="txt"></td>
|
|
|
+ <td class="vatop tips"></td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr class="noborder">
|
|
|
+ <td colspan="2" class="required"><label class="validation" for="mchid">机构选择:</label></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="">
|
|
|
+ <td class="">
|
|
|
+ <select name="mchid" id="mchid" class="layui_in" lay-verify="" lay-search>
|
|
|
+ <option value=""><?php echo $lang['nc_please_choose']; ?></option>
|
|
|
+ <?php foreach($output['merchant_list'] as $merchant){?>
|
|
|
+ <option value="<?php echo $merchant['mchid']?>" <?php if($output['refund_info']['mchid'] == $merchant['mchid']){ echo 'selected';}?>><?php echo $merchant['company_name']??$merchant['name'];?></option>
|
|
|
+ <?php }?>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <td class="vatop tips"></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="noborder">
|
|
|
+ <td colspan="2" class="required"><label class="validation" for="mch_amount">机构退款金额:</label></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="noborder">
|
|
|
+ <td class="vatop rowform"><input type="text" value="<?php echo $output['refund_info']['mch_amount'];?>" name="mch_amount" id="mch_amount" class="txt"></td>
|
|
|
+ <td class="vatop tips"></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="noborder">
|
|
|
+ <td colspan="2" class="required"><label class="validation" for="card_no">退款卡号:</label></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="noborder">
|
|
|
+ <td class="vatop rowform"><input type="text" value="<?php echo $output['refund_info']['card_no'];?>" name="card_no" id="card_no" class="txt"></td>
|
|
|
+ <td class="vatop tips"></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="noborder">
|
|
|
+ <td colspan="2" class="required"><label class="validation" for="card_type">卡类型:</label></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="">
|
|
|
+ <td class="">
|
|
|
+ <select name="card_type" id="card_type" class="layui_in" lay-verify="" lay-search>
|
|
|
+ <option value=""><?php echo $lang['nc_please_choose'];?></option>
|
|
|
+ <option value="<?php echo mtopcard\PetroChinaCard;?>" <?php if($output['refund_info']['card_type'] == mtopcard\PetroChinaCard){ echo 'selected';}?>>中石油</option>
|
|
|
+ <option value="<?php echo mtopcard\SinopecCard;?>" <?php if($output['refund_info']['card_type'] == mtopcard\SinopecCard){ echo 'selected';}?>>中石化</option>
|
|
|
+ <option value="<?php echo mtopcard\ChinaMobileCard;?>" <?php if($output['refund_info']['card_type'] == mtopcard\ChinaMobileCard){ echo 'selected';}?>>中国移动</option>
|
|
|
+ <option value="<?php echo mtopcard\ChinaUnicomCard;?>" <?php if($output['refund_info']['card_type'] == mtopcard\ChinaUnicomCard){ echo 'selected';}?>>中国联通</option>
|
|
|
+ <option value="<?php echo mtopcard\ChinaTelecomCard;?>" <?php if($output['refund_info']['card_type'] == mtopcard\ChinaTelecomCard){ echo 'selected';}?>>中国电信</option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <td class="vatop tips"></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="noborder">
|
|
|
+ <td colspan="2" class="required"><label class="validation" for="refill_amount">面值:</label></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="noborder">
|
|
|
+ <td class="vatop rowform"><input type="text" value="<?php echo $output['refund_info']['refill_amount'];?>" name="refill_amount" id="refill_amount" class="txt"></td>
|
|
|
+ <td class="vatop tips"></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="noborder">
|
|
|
+ <td colspan="2" class="required"><label class="validation">退款日期:</label></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="noborder">
|
|
|
+ <td class="vatop rowform">
|
|
|
+ <input class="txt date" type="text" id="refund_time" value="<?php echo date("Y-m-d H:i:s",$output['refund_info']['refund_time']);?>" name="refund_time" autocomplete="off" style="width:230px" />
|
|
|
+ <td class="vatop tips"></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2" class="required"><label>备注:</label></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="noborder">
|
|
|
+ <td class="vatop rowform"><textarea name="bz" rows="6" class="tarea"><?php echo $output['refund_info']['bz'];?></textarea></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ <tfoot>
|
|
|
+ <tr class="tfoot">
|
|
|
+ <td colspan="15"><a href="JavaScript:void(0);" class="btn" id="submitBtn"><span><?php echo $lang['nc_submit']; ?></span></a></td>
|
|
|
+ </tr>
|
|
|
+ </tfoot>
|
|
|
+ </table>
|
|
|
+ </form>
|
|
|
+</div>
|
|
|
+<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/laydate/laydate.js"></script>
|
|
|
+<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/jquery.ui.js"></script>
|
|
|
+<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/i18n/zh-CN.js"
|
|
|
+ charset="utf-8"></script>
|
|
|
+ <link rel="stylesheet" type="text/css"
|
|
|
+ href="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/themes/ui-lightness/jquery.ui.css"/>
|
|
|
+<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/refill/layer.js"></script>
|
|
|
+<script type="text/javascript" src="<?php echo ADMIN_TEMPLATES_URL;?>/layui/layui.js"></script>
|
|
|
+<link rel="stylesheet" type="text/css" href="<?php echo ADMIN_TEMPLATES_URL; ?>/layui/css/layui.css"/>
|
|
|
+<script type="text/javascript">
|
|
|
+ $(function () {
|
|
|
+
|
|
|
+ //按钮先执行验证再提交表单
|
|
|
+ $("#submitBtn").click(function () {
|
|
|
+ if ($("#user_form").valid()) {
|
|
|
+ $("#user_form").submit();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $('#user_form').validate({
|
|
|
+ errorPlacement: function (error, element) {
|
|
|
+ error.appendTo(element.parent().parent().prev().find('td:first'));
|
|
|
+ },
|
|
|
+ rules: {
|
|
|
+ mchid: {
|
|
|
+ required: true,
|
|
|
+ },
|
|
|
+ provider_id: {
|
|
|
+ required: true,
|
|
|
+ },
|
|
|
+ mch_amount: {
|
|
|
+ required: true,
|
|
|
+ },
|
|
|
+ channel_amount: {
|
|
|
+ required: true,
|
|
|
+ },
|
|
|
+ refund_time: {
|
|
|
+ required: true,
|
|
|
+ },
|
|
|
+ card_no: {
|
|
|
+ required: true,
|
|
|
+ },
|
|
|
+ card_type: {
|
|
|
+ required: true,
|
|
|
+ },
|
|
|
+ refill_amount: {
|
|
|
+ required: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ messages: {
|
|
|
+ mchid: {
|
|
|
+ required: '必须选择机构',
|
|
|
+ },
|
|
|
+ provider_id: {
|
|
|
+ required: '必须选择通道',
|
|
|
+ },
|
|
|
+ mch_amount: {
|
|
|
+ required: '不能为空',
|
|
|
+ },
|
|
|
+ channel_amount: {
|
|
|
+ required: '不能为空',
|
|
|
+ },
|
|
|
+ refund_time: {
|
|
|
+ required: '不能为空',
|
|
|
+ },
|
|
|
+ card_no: {
|
|
|
+ required: '不能为空',
|
|
|
+ },
|
|
|
+ card_type: {
|
|
|
+ required: '不能为空',
|
|
|
+ },
|
|
|
+ refill_amount: {
|
|
|
+ required: '不能为空',
|
|
|
+ },
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ // 日期选择器
|
|
|
+ laydate.render({
|
|
|
+ elem: '#refund_time',
|
|
|
+ type: 'datetime',
|
|
|
+ trigger: 'click'
|
|
|
+ });
|
|
|
+ function trim(str) {
|
|
|
+ if (str && typeof str === "text") {
|
|
|
+ return str.replace(/(^\s*)|(\s*)$/g,""); //去除前后空白符
|
|
|
+ }
|
|
|
+ }
|
|
|
+});
|
|
|
+
|
|
|
+
|
|
|
+</script>
|