mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 18:35:35 +08:00
477 lines
11 KiB
PHP
477 lines
11 KiB
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
$db['delivery']=array (
|
||
'columns' =>
|
||
array (
|
||
'delivery_id' =>
|
||
array (
|
||
'type' => 'int unsigned',
|
||
'required' => true,
|
||
'pkey' => true,
|
||
'editable' => false,
|
||
'extra' => 'auto_increment',
|
||
),
|
||
'shop_id' =>
|
||
array (
|
||
'type' => 'table:shop@ome',
|
||
'label' => '来源店铺',
|
||
'width' => 75,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
'filtertype' => 'normal',
|
||
'filterdefault' => true,
|
||
),
|
||
'idx_split' =>
|
||
array(
|
||
'type' => 'bigint',
|
||
'required' => true,
|
||
'label' => '订单内容',
|
||
'comment' => '订单的大致内容',
|
||
'editable' => false,
|
||
'width' => 160,
|
||
'in_list' => false,
|
||
'default_in_list' => false,
|
||
'default' => 0,
|
||
),
|
||
'skuNum' =>
|
||
array(
|
||
'type' => 'number',
|
||
'required' => true,
|
||
'label' => '商品种类',
|
||
'comment' => '商品种类数',
|
||
'editable' => false,
|
||
'in_list' => false,
|
||
'default' => 0,
|
||
),
|
||
'itemNum' =>
|
||
array(
|
||
'type' => 'number',
|
||
'required' => true,
|
||
'label' => '商品总数量',
|
||
'comment' => '商品种类数',
|
||
'editable' => false,
|
||
'in_list' => false,
|
||
'default' => 0,
|
||
),
|
||
'bnsContent' =>
|
||
array(
|
||
'type' => 'text',
|
||
'required' => true,
|
||
'label' => '具体订单内容',
|
||
'comment' => '具体订单内容',
|
||
'editable' => false,
|
||
'in_list' => false,
|
||
'default' => '',
|
||
),
|
||
'delivery_bn' =>
|
||
array (
|
||
'type' => 'varchar(32)',
|
||
'required' => true,
|
||
'label' => '发货单号',
|
||
'comment' => '配送流水号',
|
||
'editable' => false,
|
||
'width' =>140,
|
||
'searchtype' => 'nequal',
|
||
'filtertype' => 'yes',
|
||
'filterdefault' => true,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'is_title' => true,
|
||
),
|
||
|
||
'member_id' =>
|
||
array (
|
||
'type' => 'table:members@ome',
|
||
'label' => '会员用户名',
|
||
'comment' => '订货会员ID',
|
||
'editable' => false,
|
||
'width' =>75,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
),
|
||
'is_protect' =>
|
||
array (
|
||
'type' => 'bool',
|
||
'default' => 'false',
|
||
'required' => true,
|
||
'label' => '是否保价',
|
||
'comment' => '是否保价',
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
),
|
||
'cost_protect' =>
|
||
array (
|
||
'type' => 'money',
|
||
'default' => '0',
|
||
'label' => '保价费用',
|
||
'required' => false,
|
||
'editable' => false,
|
||
),
|
||
'is_cod' =>
|
||
array (
|
||
'type' => 'bool',
|
||
'default' => 'false',
|
||
'required' => true,
|
||
'label' => '是否货到付款',
|
||
'editable' => false,
|
||
'filtertype' => 'normal',
|
||
'in_list' => true,
|
||
),
|
||
'delivery' =>
|
||
array (
|
||
'type' => 'varchar(20)',
|
||
'label' => '配送方式',
|
||
'comment' => '配送方式(货到付款、EMS...)',
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
'width' =>65,
|
||
'default_in_list' => true,
|
||
'is_title' => true,
|
||
),
|
||
'logi_id' =>
|
||
array (
|
||
'type' => 'table:dly_corp@ome',
|
||
'comment' => '物流公司ID',
|
||
'editable' => false,
|
||
'label' => '物流公司',
|
||
'filtertype' => 'normal',
|
||
'filterdefault' => true,
|
||
),
|
||
'logi_name' =>
|
||
array (
|
||
'type' => 'varchar(100)',
|
||
'label' => '物流公司',
|
||
'comment' => '物流公司名称',
|
||
'editable' => false,
|
||
'width' =>75,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
),
|
||
'logi_no' =>
|
||
array (
|
||
'type' => 'varchar(50)',
|
||
'label' => '物流单号',
|
||
'comment' => '物流单号',
|
||
'editable' => false,
|
||
'width' =>110,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'filtertype' => 'normal',
|
||
'filterdefault' => true,
|
||
'searchtype' => 'nequal',
|
||
),
|
||
'logi_number' =>
|
||
array (
|
||
'type' => 'number',
|
||
'required' => true,
|
||
'default' => 1,
|
||
'editable' => false,
|
||
'label' => '包裹总数',
|
||
'comment' => '物流包裹总数',
|
||
),
|
||
'delivery_logi_number' =>
|
||
array (
|
||
'type' => 'number',
|
||
'required' => true,
|
||
'default' => 0,
|
||
'editable' => false,
|
||
'label' => '已发货包裹数',
|
||
'comment' => '已发货物流包裹数',
|
||
),
|
||
'ship_name' =>
|
||
array (
|
||
'type' => 'varchar(255)',
|
||
'label' => '收货人',
|
||
'comment' => '收货人姓名',
|
||
'editable' => false,
|
||
'searchtype' => 'tequal',
|
||
'filtertype' => 'normal',
|
||
'filterdefault' => true,
|
||
'width' =>75,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'sdfpath' => 'consignee/name',
|
||
),
|
||
'ship_area' =>
|
||
array (
|
||
'type' => 'region',
|
||
'label' => '收货地区',
|
||
'comment' => '收货人地区',
|
||
'editable' => false,
|
||
'filtertype' => 'normal',
|
||
'filterdefault' => true,
|
||
'width' =>130,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'sdfpath' => 'consignee/area',
|
||
),
|
||
'ship_province' =>
|
||
array (
|
||
'type' => 'varchar(50)',
|
||
'editable' => false,
|
||
'sdfpath' => 'consignee/province',
|
||
'comment' => '省',
|
||
),
|
||
'ship_city' =>
|
||
array (
|
||
'type' => 'varchar(50)',
|
||
'editable' => false,
|
||
'sdfpath' => 'consignee/city',
|
||
'comment' => '市',
|
||
),
|
||
'ship_district' =>
|
||
array (
|
||
'type' => 'varchar(50)',
|
||
'editable' => false,
|
||
'sdfpath' => 'consignee/district',
|
||
'comment' => '区/县',
|
||
),
|
||
'ship_addr' =>
|
||
array (
|
||
'type' => 'text',
|
||
'label' => '收货地址',
|
||
'comment' => '收货人地址',
|
||
'editable' => false,
|
||
'filtertype' => 'normal',
|
||
'width' =>150,
|
||
'in_list' => true,
|
||
'sdfpath' => 'consignee/addr',
|
||
),
|
||
'ship_zip' =>
|
||
array (
|
||
'type' => 'varchar(20)',
|
||
'label' => '收货邮编',
|
||
'comment' => '收货人邮编',
|
||
'editable' => false,
|
||
'width' =>75,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'sdfpath' => 'consignee/zip',
|
||
),
|
||
'ship_tel' =>
|
||
array (
|
||
'type' => 'varchar(200)',
|
||
'label' => '收货人电话',
|
||
'comment' => '收货人电话',
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
'sdfpath' => 'consignee/telephone',
|
||
),
|
||
'ship_mobile' =>
|
||
array (
|
||
'type' => 'varchar(200)',
|
||
'label' => '收货人手机',
|
||
'comment' => '收货人手机',
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
'sdfpath' => 'consignee/mobile',
|
||
),
|
||
'ship_email' =>
|
||
array (
|
||
'type' => 'varchar(150)',
|
||
'label' => '收货人Email',
|
||
'comment' => '收货人Email',
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
'sdfpath' => 'consignee/email',
|
||
),
|
||
'create_time' =>
|
||
array (
|
||
'type' => 'time',
|
||
'label' => '单据创建时间',
|
||
'comment' => '单据生成时间',
|
||
'editable' => false,
|
||
'filtertype' => 'time',
|
||
'in_list' => true,
|
||
),
|
||
'status' =>
|
||
array (
|
||
'type' =>
|
||
array (
|
||
'succ' => '已发货',
|
||
'failed' => '发货失败',
|
||
'cancel' => '已取消',
|
||
'progress' => '等待配货',
|
||
'timeout' => '超时',
|
||
'ready' => '等待配货',
|
||
'stop' => '暂停',
|
||
'back' => '打回',
|
||
),
|
||
'default' => 'ready',
|
||
'width' => 150,
|
||
'required' => true,
|
||
'comment' => '状态',
|
||
'editable' => false,
|
||
'label' => '发货状态',
|
||
),
|
||
'memo' =>
|
||
array (
|
||
'type' => 'longtext',
|
||
'label' => '备注',
|
||
'comment' => '备注',
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
),
|
||
'branch_id' =>
|
||
array (
|
||
'type' => 'table:branch@ome',
|
||
'editable' => false,
|
||
'label' => '仓库',
|
||
'width' => 110,
|
||
'filtertype' => 'normal',
|
||
'filterdefault' => true,
|
||
'in_list' => true,
|
||
'panel_id' => 'delivery_finder_top',
|
||
),
|
||
'last_modified' =>
|
||
array (
|
||
'label' => '最后更新时间',
|
||
'type' => 'last_modify',
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
),
|
||
'delivery_time' =>
|
||
array (
|
||
'type' => 'time',
|
||
'label' => '发货时间',
|
||
'comment' => '发货时间',
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
),
|
||
'ship_time' =>
|
||
array (
|
||
'type' => 'varchar(50)',
|
||
'editable' => false,
|
||
'sdfpath' => 'consignee/r_time',
|
||
'comment' => '指定发货时间',
|
||
),
|
||
'op_id' =>
|
||
array (
|
||
'type' => 'table:account@pam',
|
||
'editable' => false,
|
||
'required' => true,
|
||
'comment' => '操作员ID',
|
||
),
|
||
'op_name' =>
|
||
array (
|
||
'type' => 'varchar(30)',
|
||
'editable' => false,
|
||
'comment' => '操作员名称',
|
||
),
|
||
'org_id' =>
|
||
array (
|
||
'type' => 'table:operation_organization@ome',
|
||
'label' => '运营组织',
|
||
'editable' => false,
|
||
'width' => 60,
|
||
'filtertype' => 'normal',
|
||
'filterdefault' => true,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
),
|
||
'shop_type' =>
|
||
array (
|
||
'type' => 'varchar(50)',
|
||
'label' => '店铺类型',
|
||
'width' => 75,
|
||
'editable' => false,
|
||
),
|
||
'betc_id' => array(
|
||
'type' => 'int unsigned',
|
||
'default' => 0,
|
||
'editable' => false,
|
||
'label' => '贸易公司ID',
|
||
'in_list' => true,
|
||
'default_in_list' => false,
|
||
),
|
||
'cos_id' => array(
|
||
'type' => 'int unsigned',
|
||
'default' => 0,
|
||
'editable' => false,
|
||
'label' => '组织架构ID',
|
||
'in_list' => true,
|
||
'default_in_list' => false,
|
||
),
|
||
),
|
||
'index' =>
|
||
array (
|
||
'ind_delivery_bn_shop' =>
|
||
array (
|
||
'columns' =>
|
||
array (
|
||
0 => 'delivery_bn',
|
||
1 => 'shop_id',
|
||
),
|
||
'prefix' => 'unique',
|
||
),
|
||
'ind_status' =>
|
||
array (
|
||
'columns' =>
|
||
array (
|
||
0 => 'status',
|
||
),
|
||
),
|
||
|
||
'ind_delivery_time' =>
|
||
array(
|
||
'columns' =>
|
||
array(
|
||
0 => 'delivery_time',
|
||
),
|
||
),
|
||
'ind_create_time' =>
|
||
array(
|
||
'columns' =>
|
||
array(
|
||
0 => 'create_time',
|
||
),
|
||
),
|
||
'ind_logi_no' =>
|
||
array(
|
||
'columns' =>
|
||
array(
|
||
0 => 'logi_no',
|
||
),
|
||
),
|
||
'ind_ship_name' =>
|
||
array(
|
||
'columns' =>
|
||
array(
|
||
0 => 'ship_name',
|
||
),
|
||
),
|
||
'ind_ship_mobile' =>
|
||
array(
|
||
'columns' =>
|
||
array(
|
||
0 => 'ship_mobile',
|
||
),
|
||
),
|
||
'ind_ship_tel' =>
|
||
array(
|
||
'columns' =>
|
||
array(
|
||
0 => 'ship_tel',
|
||
),
|
||
),
|
||
'ind_betc_id' => array(
|
||
'columns' => array(
|
||
0 => 'betc_id',
|
||
),
|
||
),
|
||
'ind_cos_id' => array(
|
||
'columns' => array(
|
||
0 => 'cos_id',
|
||
),
|
||
),
|
||
),
|
||
'comment' => '归档发货单表',
|
||
'engine' => 'innodb',
|
||
'version' => '$Rev: 41996 $',
|
||
'charset' => 'utf8mb4',
|
||
);
|