Files
OMS/app/inventorydepth/controller/stock/release.php
2025-12-28 23:13:25 +08:00

45 lines
1.6 KiB
PHP
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.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
/**
* ============================
* @Author: yaokangming
* @describe: 库存发布
* ============================
*/
class inventorydepth_ctl_stock_release extends desktop_controller {
public function index() {
$actions = array();
$actions[] = array(
'label' => '导入发布库存',
'href' => $this->url.'&act=execlImportDailog&p[0]=shop_adjustment',
'target' => 'dialog::{width:500,height:300,title:\'导入发布库存\'}',
);
$params = array(
'title'=>'库存发布',
'use_buildin_set_tag'=>false,
'use_buildin_filter'=>false,
'use_buildin_export'=>false,
'use_buildin_recycle'=>false,
'actions'=>$actions,
'orderBy'=>'id desc',
);
$this->finder('inventorydepth_mdl_stock_release', $params);
}
public function execlImportDailog($type = ''){
$arrShopRequest = app::get('ome')->model('shop')->getList('shop_id, name, shop_type', ['node_id|noequal'=>'', 'delivery_mode'=>'self']);
if(empty($arrShopRequest)) {
die('缺少店铺');
}
$modeSupport = kernel::single('inventorydepth_sync_set')->getModeSupport();
$this->pagedata['shop_request'] = $arrShopRequest;
$this->pagedata['mode_support'] = $modeSupport;
$this->pagedata['custom_html'] = $this->fetch('admin/shop/adjustment/import.html');
parent::execlImportDailog($type);
}
}