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

149 lines
3.4 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['inventory_apply']=array (
'columns' =>
array (
'inventory_apply_id' =>
array (
'type' => 'number',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
),
'inventory_apply_bn' =>
array (
'type' => 'varchar(32)',
'required' => true,
'label' => '盘点申请单号',
'width' => 140,
'in_list' => true,
'default_in_list' => true,
'searchtype' => 'nequal',
'filtertype' => 'yes',
'filterdefault' => true,
),
'out_id' =>
array (
'type' => 'varchar(50)',
'in_list' => true,
'default_in_list' => true,
'label' => '盘点仓库',
),
'branch_id' =>
array (
'type' => 'table:branch@ome',
'in_list' => false,
'default_in_list' => false,
'label' => '盘盈仓库',
),
'negative_branch_id' =>
array (
'type' => 'text',
'in_list' => false,
'default_in_list' => false,
'label' => '良品仓库',
),
'negative_cc_branch_id' =>
array (
'type' => 'text',
'in_list' => false,
'default_in_list' => false,
'label' => '残品仓库',
),
'wms_id' =>
array (
'type' => 'varchar(50)',
'required' => true,
'label' => 'WMS编号',
),
'status' =>
array(
'type' =>
array (
'unconfirmed' => '未确认',
'confirming' => '确认中',
'confirmed' => '已确认',
'closed' => '已关闭',
),
'default' => 'unconfirmed',
'required' => true,
'label' => '状态',
'width' => 100,
'in_list' => true,
'default_in_list' => true,
),
'sku_hang' =>
array (
'type' => 'int',
'label' => '物料行数',
'width' => 120,
'in_list' => true,
'default_in_list' => true,
),
'sku_total' =>
array (
'type' => 'int',
'label' => '物料总数',
'width' => 120,
'in_list' => true,
'default_in_list' => true,
),
'inventory_date' =>
array (
'type' => 'time',
'label' => '盘点日期',
'width' => 150,
'in_list' => true,
'default_in_list' => true,
'filtertype' => 'time',
'filterdefault' => true,
),
'process_date' =>
array (
'type' => 'time',
'label' => '处理时间',
'width' => 150,
'in_list' => true,
'filtertype' => 'time',
'filterdefault' => true,
),
'memo' =>
array (
'type' => 'text',
'label' => '备注',
'width' => 150,
'in_list' => true,
),
'at_time' => array(
'type' => 'TIMESTAMP',
'label' => '创建时间',
'default' => 'CURRENT_TIMESTAMP',
'width' => 120,
'in_list' => false,
'order' => 11,
),
'up_time' => array(
'type' => 'TIMESTAMP',
'label' => '更新时间',
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'width' => 120,
'in_list' => false,
'order' => 11,
),
),
'index' => array(
'ind_inventory_apply_bn' => array(
'columns' => array(
0 => 'inventory_apply_bn',
),
'prefix' => 'unique',
),
),
'comment' => '盘点申请表',
'engine' => 'innodb',
'version' => '$Rev: 44513 $',
);