mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 10:25:35 +08:00
105 lines
2.6 KiB
PHP
105 lines
2.6 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.
|
|
*/
|
|
|
|
$db['waybill']=array (
|
|
'columns' =>
|
|
array (
|
|
'id' =>
|
|
array (
|
|
'type' => 'number',
|
|
'required' => true,
|
|
'pkey' => true,
|
|
'editable' => false,
|
|
'extra' => 'auto_increment',
|
|
),
|
|
'waybill_number' =>
|
|
array (
|
|
'type' => 'varchar(100)',
|
|
'required' => true,
|
|
'default' => '',
|
|
'editable' => false,
|
|
'label' => '运单号',
|
|
'width' => 130,
|
|
//'searchtype' => 'has',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 10,
|
|
),
|
|
'channel_id' =>
|
|
array (
|
|
'type' => 'table:channel@logisticsmanager',
|
|
//'required' => true,
|
|
'editable' => false,
|
|
'comment' => '渠道主键',
|
|
'label' => '来源渠道',
|
|
'width' => 150,
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 20,
|
|
),
|
|
'logistics_code' =>
|
|
array (
|
|
'type' => 'varchar(100)',
|
|
'required' => true,
|
|
'default' => '',
|
|
'editable' => false,
|
|
'comment' => '物流公司编码',
|
|
'label' => '物流公司',
|
|
'width' => 100,
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 30,
|
|
),
|
|
'status' =>
|
|
array (
|
|
'type' => 'tinyint unsigned',
|
|
'editable' => false,
|
|
'required' => true,
|
|
'default' => 0,
|
|
'label' => '使用状态',
|
|
'width' => 80,
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 40,
|
|
),
|
|
'create_time' =>
|
|
array (
|
|
'type' => 'time',
|
|
'comment' => '单号发放时间',
|
|
'label' => '发放时间',
|
|
'width' => '130',
|
|
'in_list' => true,
|
|
|
|
),
|
|
),
|
|
'index' =>
|
|
array (
|
|
'ind_waybill_channel' => array (
|
|
'columns' => array (
|
|
0 => 'waybill_number',
|
|
1 => 'channel_id',
|
|
),
|
|
'prefix' => 'unique',
|
|
),
|
|
'ind_create_time' => array(
|
|
'columns' => array('create_time'),
|
|
),
|
|
),
|
|
'comment' => '面单号表',
|
|
'engine' => 'innodb',
|
|
'version' => '$Rev: $',
|
|
); |