Files
OMS/app/dealer/view/admin/series/close.html
2026-01-04 19:08:31 +08:00

113 lines
4.1 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.
-->
<{capture name="header"}>
<{css app="ome" src="ome.css"}>
<{css app="ome" src="style.css"}>
<{script src="coms/modedialog.js" app="desktop"}>
<{script src="coms/autocompleter.js" app="desktop"}>
<{script src="coms/pager.js" app="desktop"}>
<{/capture}>
<link href="../../../app/desktop/statics/perfect/main.css" rel="stylesheet" type="text/css">
<div class="form-layout">
<form method="post" id="dealer_series_form" action="index.php?app=dealer&ctl=admin_series&act=setStatus&p[0]=<{$series_id}>&p[1]=close">
<div class="form-layout-block">
<h3><em class="red">关停</em>产品线,以下商品将<em class="red">自动改为自发货方式</em></h3>
<div class="form-layout-fields">
<table cellspacing="0" class="gridlist" cellpadding="0" border="0" width="100%">
<thead>
<tr>
<th>基础物料编码</th>
<th>基础物料名称</th>
</tr>
</thead>
<tbody>
<{if $drop_shipping}>
<{foreach from=$drop_shipping item=log}>
<tr>
<td><{$log.material_bn}></td>
<td><{$log.material_name}></td>
</tr>
<{/foreach}>
<{else}>
<tr>
<td colspan="5" align="center"><div style="text-align:center; width:100%;">没有代发货商品...</div></td>
</tr>
<{/if}>
</tbody>
</table>
</div>
<div id="cc" class="noprint table-action">
<{button class="btn-primary" type="button" id="series_btn" label="关 停"}>
&nbsp;
<{button class="btn-secondary" type="button" id='close_btn' label='取 消' }>
</div>
</div>
</form>
</div>
<script>
(function() {
window.addEvent('domready', function() {
$('close_btn').addEvent('click', function(){
try{
var _dialogIns = this.getParent('.dialog').retrieve('instance');
}catch(e){}
if(_dialogIns){
// setTimeout(finder.refresh(),30000);
_dialogIns.close();
}
});
//点击提交表单
$('series_btn').addEvent('click',function(e){
var _this = this;
var form = this.getParent('form');
form.store('target',{
onRequest:function(){
_this.disabled=true;
},
onComplete:function(jsontext){
_this.disabled=false;
},
onSuccess:function(response){
var hash_res_obj = JSON.decode(response);
if (hash_res_obj.success != undefined && hash_res_obj.success != ""){
try{
var _dialogIns = $('series_btn').getParent('.dialog').retrieve('instance');
}catch(e){}
if(_dialogIns){
// setTimeout(finder.refresh(),30000);
_dialogIns.close();
}
}
}
});
form.fireEvent('submit',e);
});
});
})();
</script>
<style>
.form-layout {
background: #EEF5F9;
padding-bottom: 0px;
}
</style>