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

196 lines
7.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['wms_delivery'] = array(
'columns' => array(
'id' => array(
'type' => 'int unsigned',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
'label' => 'ID',
'width' => 110,
'hidden' => true,
'editable' => false,
),
'delivery_id' => array(
'type' => 'table:delivery@ome',
'label' => 'OMS发货单ID'
),
'delivery_bn' => array(
'type' => 'varchar(255)',
'label' => '发货单号',
'default_in_list' => true,
'searchtype' => 'nequal',
'in_list' => true,
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 10,
'width' => 200,
),
'delivery_status' => array(
'type' => [
'1' => '未匹配',
'2' => '已匹配未处理完成',
'3' => '处理完成',
],
'label' => '发货单状态',
'default' => '1',
'default_in_list' => true,
'in_list' => true,
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 15,
'width' => 200,
),
'out_delivery_bn' => array(
'type' => 'varchar(255)',
'label' => '仓库系统订单编码',
'default_in_list' => true,
'searchtype' => 'nequal',
'in_list' => true,
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 20,
'width' => 200,
),
'wms_status' => array(
'type' => 'varchar(255)',
'label' => '第三方状态',
'default' => '',
'width' => 200,
),
'wms_node_id' => array(
'type' => 'varchar(255)',
'label' => '第三方仓储绑定ID',
'default' => '',
'in_list' => true,
'default_in_list' => true,
'order' => 30,
'width' => 200,
),
'logistics' => array(
'type' => 'varchar(255)',
'label' => '物流编码',
'default' => '',
'default_in_list' => true,
'order' => 35,
'width' => 200,
),
'logi_no' => array(
'type' => 'varchar(255)',
'label' => '物流单号',
'default_in_list' => true,
'searchtype' => 'nequal',
'in_list' => true,
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 40,
'width' => 200,
),
'weight' => array(
'type' => 'varchar(255)',
'label' => '重量',
'default_in_list' => true,
'in_list' => true,
'order' => 41,
'width' => 200,
),
'volume' => array(
'type' => 'varchar(255)',
'label' => '体积',
'default_in_list' => true,
'in_list' => true,
'order' => 41,
'width' => 200,
),
'remark' => array(
'type' => 'text',
'label' => '备注',
'default' => '',
'default_in_list' => true,
'order' => 45,
'width' => 200,
),
'extend_props' => array(
'type' => 'text',
'label' => '扩展属性',
'order' => 35,
'width' => 200,
),
'warehouse' => array(
'type' => 'varchar(255)',
'label' => '仓库编码',
'default_in_list' => true,
'in_list' => true,
'order' => 50,
'width' => 200,
),
'oid' => array(
'type' => 'varchar(255)',
'label' => '子单单号',
'default_in_list' => true,
'in_list' => true,
'order' => 60,
'width' => 200,
),
'operate_time' => array(
'type' => 'varchar(255)',
'label' => '操作时间',
'default_in_list' => true,
'in_list' => true,
'order' => 70,
'width' => 200,
),
'other_list_0' => array(
'type' => 'text',
'label' => '其他列表',
'default_in_list' => true,
'in_list' => true,
'order' => 80,
'width' => 200,
),
'packages' => array(
'type' => 'text',
'label' => '包裹信息',
'default_in_list' => true,
'in_list' => true,
'order' => 90,
'width' => 200,
),
'at_time' => array(
'type' => 'TIMESTAMP',
'label' => '创建时间',
'default_in_list' => true,
'in_list' => true,
'filtertype' => 'time',
'filterdefault' => true,
'default' => 'CURRENT_TIMESTAMP',
'order' => 100,
),
'up_time' => array(
'type' => 'TIMESTAMP',
'label' => '更新时间',
'default_in_list' => true,
'in_list' => true,
'filtertype' => 'time',
'filterdefault' => true,
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'order' => 110,
),
),
'index' => array(
'idx_delivery_bn_out_delivery_bn_wms_node_id' => array('columns' => array('delivery_bn','out_delivery_bn','wms_node_id'), 'prefix' => 'UNIQUE'),
'idx_out_delivery_bn' => array('columns' => array('out_delivery_bn')),
'idx_logi_no' => array('columns' => array('logi_no')),
'idx_at_time' => array('columns' => array('at_time')),
'idx_up_time' => array('columns' => array('up_time')),
),
'engine' => 'innodb',
'version' => '$Rev: $',
'comment' => '第三方退货单',
);