|
@ -100,16 +100,17 @@ |
|
|
<td>{$item.id}</td> |
|
|
<td>{$item.id}</td> |
|
|
<td>{$item.name}</td> |
|
|
<td>{$item.name}</td> |
|
|
<td>{$item.source}</td> |
|
|
<td>{$item.source}</td> |
|
|
<td style="padding: 10px"> |
|
|
<td style="padding: 10px;position: relative"> |
|
|
<div class="formula-item" style="display: flex;flex-wrap: wrap;border-bottom: 1px dashed #ccc;padding-bottom: 10px;"> |
|
|
<div class="formula-item" style="display: flex;flex-wrap: wrap;border-bottom: 1px dashed #ccc;padding-bottom: 10px;"> |
|
|
{foreach from=$item.formula item=value} |
|
|
{foreach from=$item.formula item=value} |
|
|
<span class="item" style="flex-basis: auto;white-space: nowrap;border: 1px dashed #f6f5f5;padding:0 20px 0 0">{$value.name}{if $value.desc}({$value.desc}){/if} {$value.num_str}</span> |
|
|
<span class="item" style="flex-basis: auto;white-space: nowrap;border: 1px dashed #f6f5f5;padding:0 20px 0 0">{$value.name}{if $value.desc}({$value.desc}){/if} {$value.num_str}</span> |
|
|
{/foreach} |
|
|
{/foreach} |
|
|
</div> |
|
|
</div> |
|
|
<div style="line-height: 20px;padding-top: 10px">用法:{$item.method}</div> |
|
|
<div style="line-height: 20px;padding-top: 10px">用法:{$item.method}</div> |
|
|
<div style="line-height: 20px;padding-top: 10px"> |
|
|
<div class="remark_txt_{$item.id}" style="line-height: 20px;padding-top: 10px;"> |
|
|
备注:<textarea cols="80" class="remark_{$item.id}" style="color: #0069d6">{$item.remark}</textarea> <a onclick="saveRemark({$item.id})">保存</a> |
|
|
{if $item.remark}备注:{/if}<span class="remark-span remark_{$item.id}">{$item.remark}</span> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<a style="position: absolute;right: 10px;bottom: 5px;" onclick="to_remark('{$item.id}')">修改备注</a> |
|
|
</td> |
|
|
</td> |
|
|
<td class="status_{$item.id}" data-status="{$item.is_delete}" style="{if $item.is_delete == 0}color:#57a957{/if}{if $item.is_delete == 3}color:red{/if}"> |
|
|
<td class="status_{$item.id}" data-status="{$item.is_delete}" style="{if $item.is_delete == 0}color:#57a957{/if}{if $item.is_delete == 3}color:red{/if}"> |
|
|
{if $item.uid==0} |
|
|
{if $item.uid==0} |
|
@ -120,7 +121,7 @@ |
|
|
</td> |
|
|
</td> |
|
|
<td> |
|
|
<td> |
|
|
{if $item.uid == 0} |
|
|
{if $item.uid == 0} |
|
|
<a href="javascript:;" onclick="to_check({$item.id})">审核</a> |
|
|
<a href="javascript:;" onclick="to_check('{$item.id}')">审核</a> |
|
|
<a target="_blank" href="/admin/formula_add/id/{$item.id}">编辑</a> |
|
|
<a target="_blank" href="/admin/formula_add/id/{$item.id}">编辑</a> |
|
|
{/if} |
|
|
{/if} |
|
|
<div style="color: #ccc;white-space: nowrap;" class="user-name-{$item.id}">{if $user_list[$item.user_id]}{$user_list[$item.user_id].username}{/if}</div> |
|
|
<div style="color: #ccc;white-space: nowrap;" class="user-name-{$item.id}">{if $user_list[$item.user_id]}{$user_list[$item.user_id].username}{/if}</div> |
|
@ -139,8 +140,8 @@ |
|
|
<div class="modal-dialog"> |
|
|
<div class="modal-dialog"> |
|
|
<div class="modal-content"> |
|
|
<div class="modal-content"> |
|
|
<div class="modal-header"> |
|
|
<div class="modal-header"> |
|
|
<button id="close_tip" type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
|
|
<h4 class="modal-title" id="card_title">审核药方</h4> |
|
|
<h4 class="modal-title">审核药方</h4> |
|
|
<br> |
|
|
<br> |
|
|
</div> |
|
|
</div> |
|
|
<div class="modal-body inputs" style="padding: 30px;"> |
|
|
<div class="modal-body inputs" style="padding: 30px;"> |
|
@ -153,6 +154,26 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<!-- 设置价格 --> |
|
|
<!-- 设置价格 --> |
|
|
|
|
|
<!-- 设置备注 --> |
|
|
|
|
|
<div class="modal" id="remark_div" style="width: 700px;left: 46%;display: none;"> |
|
|
|
|
|
<div class="modal-dialog"> |
|
|
|
|
|
<div class="modal-content"> |
|
|
|
|
|
<div class="modal-header"> |
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
|
|
|
|
|
<h4 class="modal-title">药方备注</h4> |
|
|
|
|
|
<br> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="modal-body" style="padding: 30px;"> |
|
|
|
|
|
<input type="hidden" name="id" id="remark_id"> |
|
|
|
|
|
<textarea cols="100" rows="5" id="remark_text"></textarea> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="modal-footer inputs" style="padding: 30px;"> |
|
|
|
|
|
<button class="button primary" style="margin-left: 50px" onclick="saveRemark()">确定</button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!-- 设置备注 --> |
|
|
</section><!--end of main section--> |
|
|
</section><!--end of main section--> |
|
|
|
|
|
|
|
|
</div><!--end of container--> |
|
|
</div><!--end of container--> |
|
@ -187,8 +208,15 @@ |
|
|
} |
|
|
} |
|
|
$('#check_div').show() |
|
|
$('#check_div').show() |
|
|
} |
|
|
} |
|
|
$("#close_tip").click(function(){ |
|
|
function to_remark(id){ |
|
|
|
|
|
$('#remark_id').val(id); |
|
|
|
|
|
let remark = $('.remark_'+id).html(); |
|
|
|
|
|
$('#remark_text').val(remark); |
|
|
|
|
|
$('#remark_div').show() |
|
|
|
|
|
} |
|
|
|
|
|
$(".close").click(function(){ |
|
|
$("#check_div").hide(); |
|
|
$("#check_div").hide(); |
|
|
|
|
|
$("#remark_div").hide(); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
function to_status() { |
|
|
function to_status() { |
|
@ -241,8 +269,11 @@ |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function saveRemark(id){ |
|
|
function saveRemark(){ |
|
|
let remark = $('.remark_'+id).val(); |
|
|
$("#remark_div").hide(); |
|
|
|
|
|
|
|
|
|
|
|
let id = $('#remark_id').val() |
|
|
|
|
|
let remark = $('#remark_text').val(); |
|
|
const data = { |
|
|
const data = { |
|
|
id: id, |
|
|
id: id, |
|
|
remark: remark, |
|
|
remark: remark, |
|
@ -256,6 +287,8 @@ |
|
|
success: function (response) { |
|
|
success: function (response) { |
|
|
if (response.status == true) { |
|
|
if (response.status == true) { |
|
|
showAlert('保存成功') |
|
|
showAlert('保存成功') |
|
|
|
|
|
$('.remark_txt_'+id).html('备注:<span class="remark-span remark_'+id+'">'+remark+'</span>'); |
|
|
|
|
|
|
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -313,6 +346,10 @@ |
|
|
color: #aaa; /* 文字颜色变淡 */ |
|
|
color: #aaa; /* 文字颜色变淡 */ |
|
|
cursor: not-allowed; /* 禁用手型指针 */ |
|
|
cursor: not-allowed; /* 禁用手型指针 */ |
|
|
} |
|
|
} |
|
|
|
|
|
.remark-span{ |
|
|
|
|
|
color: #0069d6 !important; |
|
|
|
|
|
padding: 0 !important; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
{/literal} |
|
|
{/literal} |
|
|
|
|
|
|
|
|