mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-07 23:25:32 +08:00
60 lines
2.0 KiB
HTML
60 lines
2.0 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>
|
|
<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> |