mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-30 21:15:34 +08:00
106 lines
3.2 KiB
HTML
106 lines
3.2 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.
|
|
-->
|
|
|
|
<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=" "}>
|
|
</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> |