Files
OMS/app/o2o/view/admin/system/position.html
2025-12-28 23:13:25 +08:00

95 lines
2.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!--
Copyright © ShopeX http://www.shopex.cn. All rights reserved.
See LICENSE file for license details.
-->
<div class="tableform">
<form method="post" action="index.php?app=o2o&ctl=admin_store&act=saveposition" id="store-form">
<input type="hidden" name="store_id" value="<{$stores.store_id}>">
<h4>基本信息</h4>
<div class="division">
<table>
<tbody>
<tr>
<th><em class="c-red">*</em>门店编码:</th>
<td>
<{$stores.store_bn}>
</td>
<th>
</th>
<td>
</td>
</tr>
<tr>
<th><em class="c-red">*</em>库位编码:</th>
<td>
<{input type="text&&required" name="storage_code"}>
</td>
<th>
</th>
<td>
</td>
</tr>
<tr>
<th>
<em class="c-red">*</em>库位类型:
</th>
<td>
<{input type="radio" vtype="requiredradio" name="branch_type" value="exhibit" options=$typeoptions separator="&nbsp;"}>
</td>
<th>
</th>
<td>
</td>
</tr>
</tbody>
</table>
</div>
<div class="table-action">
<{button class="btn-primary" type="button" id="savestore" name="submit" label="提交"}>
<{button class="btn-secondary" type="button" isCloseDialogBtn="true" label="取消"}>
</div>
</form>
</div>
<script>
$('savestore').addEvent('click',function(event){
if (!validate($('store-form'))){
return ;
}
$('store-form').fireEvent('submit', {stop:$empty});
});
$('store-form').store('target',{
onRequest:function(){
$('savestore').set('disabled', 'true');
},
onComplete:function(resp){
resp = JSON.decode(resp)
$('savestore').set('disabled', '');
if (resp.error) return ;
$('store-form').getParent('.dialog').retrieve('instance').close();
finderGroup['<{$env.get.finder_id}>'].refresh();
}
});
</script>