mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-15 02:05:34 +08:00
113 lines
3.7 KiB
PHP
113 lines
3.7 KiB
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
$db['goods_price'] = array(
|
||
'columns' => array(
|
||
'id' => array(
|
||
'type' => 'int',
|
||
'required' => true,
|
||
'pkey' => true,
|
||
'extra' => 'auto_increment',
|
||
'label' => 'ID',
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'width' => 50,
|
||
),
|
||
'bs_id' => array(
|
||
'type' => 'table:business@dealer',
|
||
'required' => true,
|
||
'label' => '经销商编码',
|
||
'width' => 120,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'order' => 10,
|
||
),
|
||
'bm_id' => array(
|
||
'type' => 'table:basic_material@material',
|
||
'required' => true,
|
||
'label' => '基础物料编码',
|
||
'width' => 120,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
// 'filtertype' => 'normal',
|
||
// 'filterdefault' => true,
|
||
'order' => 20,
|
||
),
|
||
'price' => array(
|
||
'type' => 'decimal(20,3)',
|
||
'required' => true,
|
||
'label' => '采购价',
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'order' => 30,
|
||
),
|
||
'price_unit' => array(
|
||
'type' => 'varchar(10)',
|
||
'label' => '价格单位',
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'order' => 35,
|
||
'default' => '',
|
||
),
|
||
'start_time' => array(
|
||
'type' => 'time',
|
||
'label' => '生效时间',
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'filtertype' => 'date',
|
||
'filterdefault' => true,
|
||
'order' => 40,
|
||
),
|
||
'end_time' => array(
|
||
'type' => 'time',
|
||
'label' => '过期时间',
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'filtertype' => 'date',
|
||
'filterdefault' => true,
|
||
'order' => 50,
|
||
),
|
||
'at_time' => array(
|
||
'type' => 'TIMESTAMP',
|
||
'label' => '创建时间',
|
||
'default' => 'CURRENT_TIMESTAMP',
|
||
'width' => 150,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'order' => 60,
|
||
),
|
||
'up_time' => array(
|
||
'type' => 'TIMESTAMP',
|
||
'label' => '更新时间',
|
||
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
|
||
'width' => 150,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'order' => 70,
|
||
),
|
||
),
|
||
'index' => array(
|
||
'ind_bs_bm' => array(
|
||
'columns' => array(
|
||
0 => 'bs_id',
|
||
1 => 'bm_id',
|
||
),
|
||
),
|
||
'ind_bs_id' => array(
|
||
'columns' => array(
|
||
0 => 'bs_id',
|
||
),
|
||
),
|
||
'ind_bm_id' => array(
|
||
'columns' => array(
|
||
0 => 'bm_id',
|
||
),
|
||
),
|
||
),
|
||
'comment' => '经销商品价格管理',
|
||
'engine' => 'innodb',
|
||
'version' => '$Rev: $',
|
||
);
|