48 行
3.7 KiB
PHP
可执行文件
48 行
3.7 KiB
PHP
可执行文件
<?php
|
|
/*
|
|
* 门店入库的商品记录模型 - 数据对象模型
|
|
*/
|
|
namespace Common\Model;
|
|
use Think\Model;
|
|
//[1.7.90]
|
|
class SWarehousingGoodsModel extends JBaseModel
|
|
{
|
|
protected $tableName = 'retail_store_warehouse_goods';
|
|
protected $fields = array(
|
|
'id', //int(11) NOT NULL AUTO_INCREMENT,
|
|
'merchant_id', //int(11) DEFAULT '0' COMMENT '商户Id',
|
|
'store_id', //门店id
|
|
'warehouse_id', //int(11) DEFAULT '0' COMMENT '仓库id',
|
|
'supplier_id', //int(11) DEFAULT '0' COMMENT '供货商id',
|
|
'warehouse_record_id', //int(11) DEFAULT '0' COMMENT '入库单id',
|
|
'goods_class_id', //int(11) DEFAULT '0' COMMENT '分类id',
|
|
'goods_id', //int(11) DEFAULT '0' COMMENT '商品id',
|
|
'sku_id', //int(11) DEFAULT '0' COMMENT '规格id',
|
|
'goods_name', //varchar(255) DEFAULT '' COMMENT '商品名称',
|
|
'sku_name', // varchar(255) DEFAULT '' COMMENT '规格名称',
|
|
'sku_id_list', //规格名称
|
|
'goods_number', //varchar(30) DEFAULT '' COMMENT '货号',
|
|
'sku_goods_number', //varchar(30) DEFAULT '' COMMENT ' 规格货号',
|
|
'goods_code', //varchar(30) DEFAULT '' COMMENT '商品条码',
|
|
'sku_code', //varchar(30) DEFAULT '' COMMENT '条码规格',
|
|
'company', //varchar(255) DEFAULT '' COMMENT '单位',
|
|
'attribute_state', //tinyint(1) DEFAULT '1' COMMENT '1无规格 2规格商品',
|
|
'pricing_method', //tinyint(1) DEFAULT '1' COMMENT '1无称重 2称重 ',
|
|
'sku_num', //规格基数
|
|
'warehouse_price', // decimal(10,2) DEFAULT '0.00' COMMENT ' 入库价',
|
|
'refund_price', // decimal(10,2) DEFAULT NULL COMMENT ' 用户收银退货价',
|
|
'warehouse_num', //decimal(10,3) DEFAULT '0.000' COMMENT '入库数量',
|
|
'surplus_num', //可售库存
|
|
'subtotal', //decimal(10,2) DEFAULT '0.00' COMMENT '小计',
|
|
'remarks', //text COMMENT '备注',
|
|
'warehouse_order_number', //varchar(255) DEFAULT '' COMMENT '入库订单号',
|
|
'type', // tinyint(2) DEFAULT '0' COMMENT '入库类型 0其他入库 1采购入库 2补货入库 3盘盈入库 4商户调拨入库 5其他门店调拨入库 6该门店申请调拨入库 7初始化商品档案入库 8拼团恢复库存入库 9秒杀恢复库存入库 10拆分入库 11收银退货入库 12商城退货入库 13组合入库 14拼团换货入库 15秒杀换货入库 16商城普通换货入库 17预售退货入库 18预售换货入库 19收银赠品入库 20商城赠品退货入库 21调拨拒收入库',
|
|
'purchase_order_number', // 采购入库对应的单号
|
|
'purchase_warehouse_id', //采购的仓库id
|
|
'add_time', //varchar(10) DEFAULT '' COMMENT '添加时间',
|
|
'purchase_order_id', //采购入库时的采购单id
|
|
'build_date', //生产日期
|
|
'quality_guarantee_period', //保质期
|
|
'serial_number_state', //串号状态 0关闭 1开启
|
|
);
|
|
} |