Files
OMS/app/console/dbschema/stockdump.php
2025-12-28 23:13:25 +08:00

186 lines
6.0 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.
*/
$db['stockdump'] = array(
'columns' => array(
'stockdump_id' => array(
'type' => 'number',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
),
'stockdump_bn' => array(
'type' => 'varchar(20)',
'required' => true,
'label' => '编号',
'width' => 130,
'is_title' => true,
'searchtype' => 'has',
'filtertype' => 'normal',
'filterdefault' => true,
'in_list' => true,
'default_in_list' => true,
),
'create_time' => array(
'type' => 'time',
'label' => '生成日期',
'width' => 140,
'editable' => false,
'in_list' => true,
'default_in_list' => true,
'filtertype' => 'time',
'filterdefault' => true,
),
'operator_name' => array(
'type' => 'varchar(50)',
'label' => '操作人员',
'width' => 110,
'editable' => false,
'in_list' => true,
'default_in_list' => true,
'searchtype' => 'has',
'filtertype' => 'normal',
'filterdefault' => true,
),
'in_status' => array(
'type' => array(
0 => '未入库',
1 => '已入库',
2 => '失败',
),
'default' => '0',
'label' => '单据状态',
),
'self_status' => array(
'type' => array(
0 => '取消',
1 => '生效',
2 => '关闭',
),
'default' => '1',
'label' => '取消状态',
),
'from_branch_id' => array(
'type' => 'table:branch@ome',
'required' => false,
),
'to_branch_id' => array(
'type' => 'table:branch@ome',
'required' => false,
),
'from_branch_name' => array(
'type' => 'varchar(30)',
'label' => '调出仓库',
),
'to_branch_name' => array(
'type' => 'varchar(30)',
'label' => '调入仓库',
),
'from_physics_id'=>array(
'type' => 'table:store@o2o',
'label' => '调出方门店',
'in_list' => true,
'default_in_list' => true,
'filtertype' => 'normal',
'filterdefault' => true,
),
'to_physics_id'=>array(
'type' => 'table:store@o2o',
'label' => '调入方门店',
'in_list' => true,
'default_in_list' => true,
'filtertype' => 'normal',
'filterdefault' => true,
),
'transfer_channel' => array(
'type' => 'varchar(25)',
'label' => '移库单类型',
'comment' => '移库单类型,branch_yk:仓库store_yk:门店',
// 'filtertype' => 'normal',
// 'filterdefault' => true,
'default' => 'branch_yk',
// 'default_in_list' => true,
// 'in_list' => true,
// 'order' => 20,
),
'source_from' => array(
'type' => array(
'pc' => 'PC发起',
'store' => '门店',
),
'default' => 'pc',
'label' => '单据来源',
),
'confirm_type' => array(
'type' => array(
0 => '无需确认',
1 => '未确认',
2 => '已确认',
),
'default' => '1',
'label' => '确认状态',
),
'confirm_name' => array(
'type' => 'varchar(30)',
'label' => '确认人',
'width' => 80,
),
'confirm_time' => array(
'type' => 'time',
'label' => '确认日期',
'width' => 140,
'editable' => false,
),
'response_time' => array(
'type' => 'time',
'label' => '出入库响应时间',
'width' => 140,
'editable' => false,
),
'memo' => array(
'type' => 'longtext',
'editable' => false,
),
'branch_memo' => array(
'type' => 'longtext',
'editable' => false,
),
'sync_status' => array(
'type' => array(
'nosync' => '未同步',
'running' => '运行中',
'fail' => '失败',
'success' => '成功',
),
'default' => 'nosync',
'label' => '同步状态',
'editable' => false,
),
'up_time' => array(
'type' => 'TIMESTAMP',
'label' => '更新时间',
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'width' => 120,
'in_list' => false,
),
),
'index' => array(
'ind_stockdump_bn' => array('columns' => array('stockdump_bn'), 'prefix' => 'unique'),
'ind_create_time' => array('columns' => array('create_time')),
'ind_confirm_type' => array('columns' => array('confirm_type')),
'ind_confirm_time' => array('columns' => array('confirm_time')),
),
'comment' => '库存出入库单列表',
'engine' => 'innodb',
'version' => '$Rev: 44513 $',
);