mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 10:25:35 +08:00
156 lines
4.6 KiB
PHP
156 lines
4.6 KiB
PHP
<?php
|
|
/**
|
|
* Copyright 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['replenish_suggest'] = array(
|
|
'columns' => array(
|
|
|
|
'sug_id' => array(
|
|
'type' => 'int unsigned',
|
|
'required' => true,
|
|
'pkey' => true,
|
|
'extra' => 'auto_increment',
|
|
'label' => 'ID',
|
|
'width' => 110,
|
|
'hidden' => true,
|
|
'editable' => false,
|
|
),
|
|
|
|
'task_bn' => array(
|
|
'type' => 'varchar(50)',
|
|
'label' => '补货任务单号',
|
|
'required' => true,
|
|
'default_in_list' => true,
|
|
'in_list' => true,
|
|
'searchtype' => 'head',
|
|
'filtertype' => 'yes',
|
|
'filterdefault' => true,
|
|
'order' => 20,
|
|
),
|
|
'physics_id'=>array(
|
|
'type' => 'table:store@o2o',
|
|
'label' => '门店编码',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
),
|
|
'store_bn' => array(
|
|
'type' => 'varchar(20)',
|
|
'required' => true,
|
|
'label' => '仓库编码',
|
|
'editable' => false,
|
|
'searchtype' => 'nequal',
|
|
'filtertype' => 'normal',
|
|
'filterdefault' => true,
|
|
'width' => 120,
|
|
'order' => 20,
|
|
),
|
|
'branch_id' => array(
|
|
'type' => 'table:branch@ome',
|
|
'required' => true,
|
|
'label' => '调入仓库',
|
|
'filtertype' => 'normal',
|
|
'filterdefault' => true,
|
|
'default_in_list' => true,
|
|
'in_list' => true,
|
|
'order' => 30,
|
|
),
|
|
'out_branch_id' => array(
|
|
'type' => 'table:branch@ome',
|
|
|
|
'label' => '调出仓库',
|
|
'filtertype' => 'normal',
|
|
'filterdefault' => true,
|
|
'default_in_list' => true,
|
|
'in_list' => true,
|
|
'order' => 30,
|
|
),
|
|
'out_branch_bn' => array(
|
|
'type' => 'varchar(20)',
|
|
'label' => '调出仓库',
|
|
'order' => 30,
|
|
),
|
|
'source' => array(
|
|
'type' => 'varchar(50)',
|
|
'default' => 'local',
|
|
'editable' => false,
|
|
'label' => '来源',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
),
|
|
'bill_type'=>array(
|
|
|
|
'type' => 'varchar(20)',
|
|
'default'=>'normal',
|
|
'label'=>'单据类型',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
),
|
|
'sug_status' => array(
|
|
'type' => array(
|
|
'0' => '未确认',
|
|
'1' => '已确认',
|
|
'2' => '已完成',
|
|
'3' => '已作废',
|
|
),
|
|
'default' => '0',
|
|
'label' => '状态',
|
|
'width' => 90,
|
|
'editable' => false,
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'filtertype' => 'has',
|
|
'filterdefault' => true,
|
|
'order' => 21,
|
|
),
|
|
'product_amount' => array(
|
|
'type' => 'money',
|
|
'label' => '货品合计',
|
|
'required' => true,
|
|
'default' => 0,
|
|
'in_list' => true,
|
|
),
|
|
|
|
'create_time' => array(
|
|
'type' => 'time',
|
|
'label' => '创建时间',
|
|
'in_list' => true,
|
|
'default' => 0,
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 98,
|
|
),
|
|
'last_modified' => array(
|
|
'label' => '最后更新时间',
|
|
'type' => 'last_modify',
|
|
'width' => 130,
|
|
'editable' => false,
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 99,
|
|
),
|
|
),
|
|
'index' => array(
|
|
|
|
'in_store_bn' => array(
|
|
'columns' => array('store_bn'),
|
|
),
|
|
|
|
),
|
|
'engine' => 'innodb',
|
|
'version' => '$Rev: $',
|
|
'comment' => '补货建议单据表',
|
|
);
|