mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-31 13:25:32 +08:00
56 lines
1.9 KiB
PHP
56 lines
1.9 KiB
PHP
<?php
|
|
/**
|
|
* 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.
|
|
*/
|
|
|
|
/**
|
|
* ============================
|
|
* @Author: yaokangming
|
|
* @Version: 1.0
|
|
* @DateTime: 2022/10/20 17:58:06
|
|
* @describe: 第三方调拨单
|
|
* ============================
|
|
*/
|
|
class console_finder_wms_transferorder {
|
|
public $addon_cols = '';
|
|
|
|
/*public $column_edit = "操作";
|
|
public $column_edit_width = "80";
|
|
public $column_edit_order = "-1";
|
|
public function column_edit($row) {
|
|
$btn = [];
|
|
return implode('|', $btn);
|
|
}*/
|
|
|
|
public $detail_item = "货品详情";
|
|
public function detail_item($id){
|
|
$render = app::get('console')->render();
|
|
$items = app::get('console')->model('wms_transferorder_items')->getList('*', ['wst_id'=>$id]);
|
|
$render->pagedata['items'] = $items;
|
|
return $render->fetch('admin/wms/transferorder_items.html');
|
|
}
|
|
|
|
public $detail_oplog = "操作记录";
|
|
public function detail_oplog($id){
|
|
$render = app::get('console')->render();
|
|
$opObj = app::get('ome')->model('operation_log');
|
|
$logdata = $opObj->read_log(array('obj_id'=>$id,'obj_type'=>'wms_transferorder@console'), 0, -1);
|
|
foreach($logdata as $k=>$v){
|
|
$logdata[$k]['operate_time'] = date('Y-m-d H:i:s',$v['operate_time']);
|
|
}
|
|
$render->pagedata['log'] = $logdata;
|
|
return $render->fetch('admin/oplog.html');
|
|
}
|
|
} |