init: import production code mss.nahaichuan.com (exclude Runtime/Uploads/backups/logs)
这个提交包含在:
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/*
|
||||
* 商户采购退货商品详情模型 - 数据对象模型
|
||||
*/
|
||||
namespace Common\Model;
|
||||
use Think\Model;
|
||||
//[1.7.90]
|
||||
class RetreatGoodsModel extends JBaseModel
|
||||
{
|
||||
protected $tableName = 'retail_retreat_goods';
|
||||
protected $fields = array(
|
||||
'id', //int(11) NOT NULL AUTO_INCREMENT,
|
||||
'merchant_id', //int(11) DEFAULT '0' COMMENT '商户Id',
|
||||
'retreat_order_id', //int(11) DEFAULT '0' COMMENT '退货单id',
|
||||
'warehouse_id', //int(11) DEFAULT '0' COMMENT '仓库id',
|
||||
'supplier_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', //规格名称id拼接
|
||||
'goods_number', //varchar(20) DEFAULT '' COMMENT '货号'
|
||||
'sku_goods_number', //varchar(20) 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:开启'
|
||||
'purchase_price', //decimal(10,2) DEFAULT NULL COMMENT '原采购价',
|
||||
'retreat_price', //decimal(10,2) DEFAULT '0.00' COMMENT '退货价',
|
||||
'sku_num', //规格基数
|
||||
'retreat_num', //decimal(10,3) DEFAULT '0.000' COMMENT '退货数量',
|
||||
'subtotal', //decimal(10,2) DEFAULT '0.00' COMMENT '小计',
|
||||
'remarks', //text COMMENT '备注',
|
||||
'order_number', //退货订单号
|
||||
'purchase_order_number', //采购订单号
|
||||
'add_time', //varchar(10) DEFAULT NULL COMMENT '添加时间',
|
||||
'build_date', //生产日期
|
||||
'quality_guarantee_period', //保质期
|
||||
'serial_number_state', //串号状态 0关闭 1开启
|
||||
);
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户