mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-31 13:25:32 +08:00
75 lines
2.3 KiB
HTML
75 lines
2.3 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 id="bind-shop-form" method="post" action="index.php?app=wmsmgr&ctl=admin_wms&act=bind_shop">
|
|
<input type="hidden" name="channel_id" value="<{$channel_id}>">
|
|
<div class="division">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tbody>
|
|
<tr>
|
|
<th>绑定店铺:</th>
|
|
<td>
|
|
<{input type='object' object='shop@ome' name='shop_id' filter=$filter required="required"}>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<{area inject=".mainFoot"}>
|
|
<div class="table-action">
|
|
<table width="100%" cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr><td>
|
|
<{button class="btn-primary" label="确定" type="button" id="bind-shop-btn"}>
|
|
</td></tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<{/area}>
|
|
<script type="text/javascript">
|
|
(function(){
|
|
$('bind-shop-form').store('target',{
|
|
onRequest:function(){
|
|
$('bind-shop-btn').set('disabled','disabled');
|
|
$('bind-shop-btn').setStyle('cursor','not-allowed');
|
|
},
|
|
onSuccess:function(resp){
|
|
resp = JSON.decode(resp);
|
|
|
|
if (resp.error) {
|
|
return MessageBox.error(resp.error);
|
|
}
|
|
|
|
MessageBox.success(resp.success);
|
|
|
|
$('bind-shop-btn').getParent('.dialog').retrieve('instance').close();
|
|
finderGroup['<{$env.get.finder_id}>'].refresh();
|
|
},
|
|
onComplete:function(){
|
|
$('bind-shop-btn').set('disabled','');
|
|
$('bind-shop-btn').setStyle('cursor','pointer');
|
|
}
|
|
});
|
|
|
|
$('bind-shop-btn').addEvent('click',function(){
|
|
$('bind-shop-form').fireEvent('submit',{stop:$empty});
|
|
});
|
|
|
|
})();
|
|
</script> |