Files
OMS/app/inventorydepth/view/regulation/release_task.html
2026-01-04 17:22:44 +08:00

59 lines
1.8 KiB
HTML

<!--
Copyright 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.
-->
<style>
.info{font-weight:bold;font-size:30px;}
</style>
<{if $error}>
<div class='division info' style='color:red;'>
<{$error}>
</div>
<{area inject='.mainFoot'}>
<div class='table-action'>
<{button label='取消' type='button' isCloseDialogBtn='true'}>
</div>
<{/area}>
<{else}>
<div class='division info'>
批量发布活动商品库存,任务会先进队列。<br/>稍后执行,确认吗?
</div>
<{area inject='.mainFoot'}>
<div class='table-action'>
<{button label='确定' type='button' id='submitbtn'}>
<{button label='取消' type='button' isCloseDialogBtn='true'}>
</div>
<{/area}>
<script type="text/javascript">
$('submitbtn').addEvent('click',function(){
$('submitbtn').set('disabled',true);
new Request.JSON({
url:"index.php?app=inventorydepth&ctl=regulation_skus&act=releaseUpload",
data:"<{$post}>",
onComplete:function(resp){
if (resp.error) {
$E('.info').setHTML('<div style="color:red;font-size:30px;">'+resp.error+'</div>');
return;
}
MessageBox.success('成功插入队列!');
$E('.info').getParent('.dialog').retrieve('instance').close();
}
}).send();
});
</script>
<{/if}>