45 行
2.9 KiB
PHP
可执行文件
45 行
2.9 KiB
PHP
可执行文件
<?php
|
|
/*
|
|
* 商户出库商品模型 - 数据对象模型
|
|
*/
|
|
namespace Common\Model;
|
|
use Think\Model;
|
|
//[1.7.90]
|
|
class StockOutGoodsModel extends JBaseModel
|
|
{
|
|
protected $tableName = 'retail_stock_out_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', //供货商id
|
|
'stock_out_id', //出库单id
|
|
'warehouse_record_id', //调拨出库的入库单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', //规格id名称
|
|
'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', //规格基数
|
|
'cost_price', //成本价
|
|
'stock_price', //decimal(10,2) DEFAULT '0.00' COMMENT '出库价',
|
|
'stock_num', //decimal(10,3) DEFAULT '0.000' COMMENT '出库数量',
|
|
'subtotal', //decimal(10,2) DEFAULT '0.00' COMMENT '小计',
|
|
'remarks', //text COMMENT '备注',
|
|
'stock_order_number', //varchar(255) DEFAULT '' COMMENT '出库订单号',
|
|
'type', // tinyint(1) DEFAULT '0' COMMENT '出库类型 0其他出库 1调拨出库 2盘亏出库 3门店申请调拨出库',
|
|
'add_time', // varchar(10) DEFAULT '' COMMENT '添加时间',
|
|
'build_date', //生产日期
|
|
'quality_guarantee_period', //保质期
|
|
'serial_number_state', //串号状态
|
|
);
|
|
} |