Files
OMS/app/logisticsmanager/view/admin/channel/netsite/shop.html
2025-12-28 23:13:25 +08:00

49 lines
1.5 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>
<table>
<tr>
<th>关联店铺:</th>
<td>
<{input type="select" name="shop_id" rows=$shopList valueColumn="shop_id" labelColumn="name" required="true"}>
</td>
</tr>
<tr>
<th>物流公司:</th>
<td>
<{input type="select" name="logistics_code" rows=$cpList valueColumn="code" labelColumn="name"}>
</td>
</tr>
</table>
</div>
<hr/>
<div class="netsite-list division">
</div>
<script>
(function(){
let logiCodeEl = $E('select[name=logistics_code]');
let lastSelectedIndex = logiCodeEl.selectedIndex;
logiCodeEl.addEvent('change',function(e){
var shop_id = $E('select[name=shop_id]').value;
if (!shop_id) {
MessageBox.error('请先选择关系店铺');
this.selectedIndex = lastSelectedIndex;
return false;
}
lastSelectedIndex = this.selectedIndex;
// new Dialog('index.php?app=logisticsmanager&ctl=admin_channel&act=queryNetsiteDetail&p[]='+this.value+'&p[]='+shop_id);
W.page('index.php?app=logisticsmanager&ctl=admin_channel&act=queryNetsiteDetail&p[]='+this.value+'&shop_id='+shop_id+'&channel_type=<{$env.get.channel_type}>',{
update:$E('.netsite-list'),
clearUpdateMap:false,
});
});
})();
</script>