123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- <?php
- $status = array
- (
- 1 => '待支付',
- 2 => '待生产发货',
- 3 => '已发货',
- 4 => '已到货',
- 5 => '已取消',
- 6 => '缺货与报损',
- );
- $type = array
- (
- 1 => '仓库',
- 2 => '门店',
- );
- return array
- (
-
- 'name' => 'order',
-
- 'lang' => '订货单',
- 'order' => 99,
- 'menu' => false,
- 'status' => $status,
-
- 'struct' => array
- (
-
- 'id' => array
- (
- 'type' => 'int-11',
- 'name' => 'ID',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
- 'search' => 'order',
-
- ),
- 'factory_id' => array
- (
- 'type' => 'int-11',
- 'name' => '所属工厂',
- 'default' => '',
- 'desc' => '所属工厂',
- 'match' => 'is_numeric',
- 'update' => 'hidden',
- 'value' => Dever::input('search_option_factory_id'),
- 'list' => 'Dever::load("factory/info-find#name", {factory_id})',
- ),
- 'name' => array
- (
- 'type' => 'varchar-800',
- 'name' => '订单名称',
- 'default' => '',
- 'desc' => '订单名称',
- 'match' => 'is_string',
- 'update' => 'text',
- ),
- 'order_num' => array
- (
- 'type' => 'varchar-100',
- 'name' => '订单编号',
- 'default' => '',
- 'desc' => '订单编号',
- 'match' => 'is_string',
- 'update' => 'text',
- 'search' => 'fulltext',
- 'list' => true,
- ),
- 'type' => array
- (
- 'type' => 'int-11',
- 'name' => '采购来源',
- 'default' => '',
- 'desc' => '采购来源',
- 'match' => 'is_numeric',
- ),
- 'type_id' => array
- (
- 'type' => 'int-11',
- 'name' => '来源id',
- 'default' => '',
- 'desc' => '来源id',
- 'match' => 'is_numeric',
- ),
- 'price' => array
- (
- 'type' => 'varchar-50',
- 'name' => '购买价格',
- 'default' => '',
- 'desc' => '购买价格',
- 'match' => 'option',
- 'update' => 'text',
- 'list' => true,
- ),
- 'num' => array
- (
- 'type' => 'int-11',
- 'name' => '购买数量',
- 'default' => '',
- 'desc' => '购买数量',
- 'match' => 'is_numeric',
- 'search' => 'select',
- 'list' => true,
- ),
- 'info' => array
- (
- 'type' => 'varchar-300',
- 'name' => '订单备注',
- 'default' => '',
- 'desc' => '订单备注',
- 'match' => 'option',
- 'update' => 'textarea',
- ),
- 'state' => array
- (
- 'type' => 'tinyint-1',
- 'name' => '状态',
- 'default' => '1',
- 'desc' => '请选择状态',
- 'match' => 'is_numeric',
- ),
-
- 'cdate' => array
- (
- 'type' => 'int-11',
- 'name' => '下单时间',
- 'match' => array('is_numeric', time()),
- 'desc' => '',
-
- 'insert' => true,
- 'search' => 'date',
- 'list' => 'date("Y-m-d H:i:s", {cdate})',
-
- ),
- ),
- 'manage' => array
- (
- 'delete' => false,
- 'edit' => false,
- 'insert' => false,
- 'button' => array
- (
-
- ),
- 'list_button' => array(
-
-
- ),
- ),
- 'request' => array
- (
-
- ),
- );
|