Files
OMS/app/ome/view/admin/delivery/printstyle.html
2026-01-04 19:08:31 +08:00

69 lines
2.7 KiB
HTML

<!--
Copyright 2012-2026 ShopeX (https://www.shopex.cn)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<form id="idForm" method='post' action='index.php?app=ome&ctl=admin_receipts_print&act=savePrintStyle' style="margin:5px 10px;">
<input type="hidden" id="current_print" name="current_print" value="" />
<{button label=$___ome="恢复初始样式"|t:'ome' type="submit" id="idresume" style="float:right"}>
<{tabber}>
<{tab name=$___ome="备货单"|t:'ome'}>
<{input type="textarea" name="txtContent" class="info-text" style="height:300px;width:100%;" value=$styleContent }>
<{/tab}>
<{tab name=$___ome="发货单"|t:'ome' }>
<{input type="textarea" name="txtContentDelivery" class="info-text" style="height:300px;width:100%;" value=$styleContentDelivery }>
<{/tab}>
<{tab name=$___ome="采购单"|t:'ome' }>
<{input type="textarea" name="txtContentPurchase" class="info-text" style="height:300px;width:100%;" value=$styleContentPurchase }>
<{/tab}>
<{tab name=$___ome="入库单"|t:'ome' }>
<{input type="textarea" name="txtContentPurchaseEo" class="info-text" style="height:300px;width:100%;" value=$styleContentPurchaseEo }>
<{/tab}>
<{tab name=$___ome="采购退货单"|t:'ome' }>
<{input type="textarea" name="txtContentPurchaseReturn" class="info-text" style="height:300px;width:100%;" value=$styleContentPurchaseReturn }>
<{/tab}>
<{/tabber}>
<div class="table-action">
<{button label=$___ome="保存"|t:'ome' type="button" id="idsave"}>
</div>
</form>
<script>
$('idresume').addEvent('click',function(e){
if (!confirm('<{t}>恢复后将覆盖现有样式,确定要恢复吗?<{/t}>'))
{
return ;
}
setCurrentPrint();
e=new Event(e);
$('idForm').action = 'index.php?app=ome&ctl=admin_receipts_print&act=rebackPrintStyle';
$('idForm').fireEvent('submit', e);
});
$('idsave').addEvent('click',function(e){
setCurrentPrint();
$('idForm').fireEvent('submit', e);
});
function setCurrentPrint(){
$ES('.tab',$('idForm')).each(function(el,i){
if(el.hasClass('current')){
var arr = new Array('txtContent','txtContentDelivery','txtContentPurchase','txtContentPurchaseEo','txtContentPurchaseReturn');
$('current_print').value = arr[i];
}
});
}
</script>