|
@@ -236,66 +236,9 @@
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
{/if}
|
|
|
|
|
|
- <!-- 操作按钮 -->
|
|
|
|
- {if condition="$row.status == 'pending'"}
|
|
|
|
- <div class="form-group">
|
|
|
|
- <label class="control-label col-xs-12 col-sm-2"></label>
|
|
|
|
- <div class="col-xs-12 col-sm-8">
|
|
|
|
- {if condition="$auth->check('commission/apply/approve')"}
|
|
|
|
- <button type="button" class="btn btn-success btn-approve-single" data-id="{$row.id}">
|
|
|
|
- <i class="fa fa-check"></i> 审核通过
|
|
|
|
- </button>
|
|
|
|
- {/if}
|
|
|
|
- {if condition="$auth->check('commission/apply/reject')"}
|
|
|
|
- <button type="button" class="btn btn-danger btn-reject-single" data-id="{$row.id}">
|
|
|
|
- <i class="fa fa-times"></i> 审核拒绝
|
|
|
|
- </button>
|
|
|
|
- {/if}
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- {/if}
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
-<script>
|
|
|
|
-$(function() {
|
|
|
|
- // 单个通过按钮
|
|
|
|
- $(document).on('click', '.btn-approve-single', function() {
|
|
|
|
- var id = $(this).data('id');
|
|
|
|
- Layer.confirm('确定要通过该申请吗?', {title: '提示'}, function(index) {
|
|
|
|
- Fast.api.ajax({
|
|
|
|
- url: 'commission/apply/approve',
|
|
|
|
- data: {ids: id}
|
|
|
|
- }, function() {
|
|
|
|
- Layer.close(index);
|
|
|
|
- location.reload();
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- // 单个拒绝按钮
|
|
|
|
- $(document).on('click', '.btn-reject-single', function() {
|
|
|
|
- var id = $(this).data('id');
|
|
|
|
- Layer.prompt({
|
|
|
|
- title: '请输入拒绝原因',
|
|
|
|
- formType: 2
|
|
|
|
- }, function(value, index) {
|
|
|
|
- if (!value || !value.trim()) {
|
|
|
|
- Layer.msg('请输入拒绝原因');
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- Fast.api.ajax({
|
|
|
|
- url: 'commission/apply/reject',
|
|
|
|
- data: {ids: id, reason: value}
|
|
|
|
- }, function() {
|
|
|
|
- Layer.close(index);
|
|
|
|
- location.reload();
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
-});
|
|
|
|
-</script>
|
|
|