mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 18:35:35 +08:00
63 lines
1.8 KiB
PHP
63 lines
1.8 KiB
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
class purchase_finder_inventory{
|
||
var $detail_basic = "盘点记录";
|
||
|
||
function __construct(){
|
||
|
||
if ($_GET['act']=='confirm'){
|
||
unset($this->column_view);
|
||
}
|
||
|
||
if ($_GET['act']=='import'){
|
||
unset($this->column_confirm);
|
||
}
|
||
|
||
}
|
||
|
||
function detail_basic($inventory_id){
|
||
|
||
$render = app::get('purchase')->render();
|
||
$oInventory = app::get('purchase')->model("inventory");
|
||
$inventory_detail = $oInventory->dump($inventory_id, '*');
|
||
|
||
$render->pagedata['detail'] = $inventory_detail;
|
||
return $render->fetch('admin/inventory/base_detail.html');
|
||
}
|
||
|
||
var $addon_cols = "inventory_id,import_status";
|
||
var $column_view = '盘点明细';
|
||
var $column_view_width = "60";
|
||
function column_view($row){
|
||
$id = $row[$this->col_prefix.'inventory_id'];
|
||
$import_status = $row[$this->col_prefix.'import_status'];
|
||
|
||
$button = <<<EOF
|
||
<a href="index.php?app=purchase&ctl=admin_inventory&act=confirm_detail&p[0]=$id&view=true" class="lnk">查看</a>
|
||
|
||
EOF;
|
||
//盘点导入查看
|
||
return $button;
|
||
}
|
||
|
||
var $column_confirm = '盘点损益';
|
||
var $column_confirm_width = "60";
|
||
function column_confirm($row){
|
||
$id = $row[$this->col_prefix.'inventory_id'];
|
||
$import_status = $row[$this->col_prefix.'import_status'];
|
||
|
||
if ($import_status=='2'){
|
||
$button = <<<EOF
|
||
<a href="index.php?app=purchase&ctl=admin_inventory&act=confirm_detail&p[0]=$id" class="lnk">确认</a>
|
||
|
||
EOF;
|
||
}else $button = '-';
|
||
return $button;
|
||
}
|
||
|
||
}
|
||
?>
|