|
@ -14,7 +14,7 @@ |
|
|
|
|
|
|
|
|
<div id="page"> |
|
|
<div id="page"> |
|
|
<div class="container"> |
|
|
<div class="container"> |
|
|
<section id="main" style="width: 100%;"> |
|
|
<div id="main" style="width: 100%;"> |
|
|
<div id="main-content"> |
|
|
<div id="main-content"> |
|
|
<div class="entry"> |
|
|
<div class="entry"> |
|
|
<div class="modal-body"> |
|
|
<div class="modal-body"> |
|
@ -106,19 +106,9 @@ |
|
|
{if $item.is_delete == 3} 审核不通过 {/if} |
|
|
{if $item.is_delete == 3} 审核不通过 {/if} |
|
|
</td> |
|
|
</td> |
|
|
<td> |
|
|
<td> |
|
|
{if $item.is_delete == 2} |
|
|
|
|
|
<a href="javascript:;" onclick="to_status({$item.id},0)">审核通过</a> |
|
|
|
|
|
<br> |
|
|
|
|
|
<a href="javascript:;" onclick="to_status({$item.id},3)">审核不通过</a> |
|
|
|
|
|
<br> |
|
|
|
|
|
{/if} |
|
|
|
|
|
{if $item.is_delete == 3} |
|
|
|
|
|
<a href="javascript:;" onclick="to_status({$item.id},0)">审核通过</a> |
|
|
|
|
|
<br> |
|
|
|
|
|
{/if} |
|
|
|
|
|
{if $item.uid == 0} |
|
|
{if $item.uid == 0} |
|
|
|
|
|
<a href="javascript:;" onclick="to_check({$item.id})">审核</a> |
|
|
<a href="/admin/formula_add/id/{$item.id}">编辑</a> |
|
|
<a href="/admin/formula_add/id/{$item.id}">编辑</a> |
|
|
<br> |
|
|
|
|
|
{/if} |
|
|
{/if} |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
@ -127,7 +117,28 @@ |
|
|
</table> |
|
|
</table> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</div></section><!--end of main section--> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 设置价格 --> |
|
|
|
|
|
<div class="modal" id="check_div" style="width: 700px;left: 46%;display: none;"> |
|
|
|
|
|
<div class="modal-dialog"> |
|
|
|
|
|
<div class="modal-content"> |
|
|
|
|
|
<div class="modal-header"> |
|
|
|
|
|
<button id="close_tip" type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
|
|
|
|
|
<h4 class="modal-title" id="card_title">审核药方</h4> |
|
|
|
|
|
<br> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="modal-body inputs" style="padding: 30px;"> |
|
|
|
|
|
<input type="hidden" name="id" id="check_id"> |
|
|
|
|
|
<input type="radio" checked name="status" value="0">审核通过 |
|
|
|
|
|
<input type="radio" name="status" value="3">审核不通过 |
|
|
|
|
|
<button class="button primary" style="margin-left: 50px" onclick="to_status()">确定</button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!-- 设置价格 --> |
|
|
|
|
|
</div><!--end of main section--> |
|
|
|
|
|
|
|
|
</div><!--end of container--> |
|
|
</div><!--end of container--> |
|
|
|
|
|
|
|
@ -151,12 +162,22 @@ |
|
|
function to_add(){ |
|
|
function to_add(){ |
|
|
location.href = '/admin/formula_add'; |
|
|
location.href = '/admin/formula_add'; |
|
|
} |
|
|
} |
|
|
function to_status(id,status) { |
|
|
function to_check(id){ |
|
|
|
|
|
$('#check_id').val(id); |
|
|
|
|
|
$('#check_div').show() |
|
|
|
|
|
} |
|
|
|
|
|
$("#close_tip").click(function(){ |
|
|
|
|
|
$("#check_div").hide(); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
function to_status() { |
|
|
if (!confirm("确定要操作吗?")) { |
|
|
if (!confirm("确定要操作吗?")) { |
|
|
console.log("用户选择了确认"); |
|
|
|
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let id = $('#check_id').val() |
|
|
|
|
|
let status = $('input[name="status"]:checked').val() |
|
|
|
|
|
|
|
|
const data = { |
|
|
const data = { |
|
|
id: id, |
|
|
id: id, |
|
|
is_delete: status, |
|
|
is_delete: status, |
|
|