|
@@ -2,16 +2,23 @@
|
|
|
|
|
|
$status = array
|
|
|
(
|
|
|
- 1 => '待审核',
|
|
|
- 2 => '已审核',
|
|
|
- 3 => '已驳回',
|
|
|
+ 1 => array('name' => '待审核', 'style' => 'font-weight:bold;color:#436EEE'),
|
|
|
+ 2 => array('name' => '已审核', 'style' => 'font-weight:bold;color:#003366'),
|
|
|
+ 3 => array('name' => '已驳回', 'style' => 'font-weight:bold;color:#993333'),
|
|
|
+);
|
|
|
+
|
|
|
+$audit = array
|
|
|
+(
|
|
|
+ //1 => '待审核',
|
|
|
+ 2 => '审核通过',
|
|
|
+ 3 => '审核未通过',
|
|
|
);
|
|
|
|
|
|
$store = array();
|
|
|
$servicer_id = Dever::input('search_option_servicer_id');
|
|
|
if ($servicer_id) {
|
|
|
$store = function() use($servicer_id) {
|
|
|
- return Dever::db('scm_servicer/store')->select(array('servicer_id' => $servicer_id));
|
|
|
+ return Dever::db('scm_servicer/store')->state(array('servicer_id' => $servicer_id));
|
|
|
};
|
|
|
}
|
|
|
|
|
@@ -19,6 +26,10 @@ $supplier = function() use($servicer_id) {
|
|
|
return Dever::db('scm_servicer/supplier')->getData(array('servicer_id' => $servicer_id));
|
|
|
};
|
|
|
|
|
|
+$servicer = function() {
|
|
|
+ return Dever::db('scm_servicer/info')->state();
|
|
|
+};
|
|
|
+
|
|
|
return array
|
|
|
(
|
|
|
# 表名
|
|
@@ -30,6 +41,11 @@ return array
|
|
|
(
|
|
|
'status' => $status,
|
|
|
),
|
|
|
+ 'end' => array
|
|
|
+ (
|
|
|
+ 'insert' => 'scm_product/lib/order.updateOrderNum?table=scm_servicer/in_order&prefix=C',
|
|
|
+ 'update' => 'scm_product/lib/order.updateOrderNum?table=scm_servicer/in_order&prefix=C',
|
|
|
+ ),
|
|
|
|
|
|
# 数据结构
|
|
|
'struct' => array
|
|
@@ -54,15 +70,15 @@ return array
|
|
|
'match' => 'is_string',
|
|
|
'search' => 'fulltext',
|
|
|
'list_name' => '订单信息',
|
|
|
- //'list' => 'Dever::load("scm_order/lib/sell.info#order", {id})',
|
|
|
+ 'list' => 'Dever::load("scm_servicer/lib/in.info", {id})',
|
|
|
),
|
|
|
|
|
|
'servicer_id' => array
|
|
|
(
|
|
|
'type' => 'int-11',
|
|
|
- 'name' => '配送商ID',
|
|
|
+ 'name' => '配送商',
|
|
|
'default' => '',
|
|
|
- 'desc' => '配送商ID',
|
|
|
+ 'desc' => '配送商',
|
|
|
'match' => 'is_numeric',
|
|
|
'update' => 'hidden',
|
|
|
'searchs' => array
|
|
@@ -71,7 +87,10 @@ return array
|
|
|
'col' => 'name',
|
|
|
'result' => 'id',
|
|
|
),
|
|
|
+ 'search' => 'select',
|
|
|
+ 'option' => $servicer,
|
|
|
'value' => $servicer_id,
|
|
|
+ //'list' => 'Dever::load("scm_servicer/info-one#name", {servicer_id})',
|
|
|
),
|
|
|
|
|
|
'servicer_store_id' => array
|
|
@@ -83,7 +102,7 @@ return array
|
|
|
'match' => 'is_numeric',
|
|
|
'update' => 'select',
|
|
|
'option' => $store,
|
|
|
- 'list' => true,
|
|
|
+ //'list' => 'Dever::load("scm_servicer/store-one#name", {servicer_store_id})',
|
|
|
),
|
|
|
|
|
|
'supplier_id' => array
|
|
@@ -95,7 +114,7 @@ return array
|
|
|
'match' => 'is_numeric',
|
|
|
'update' => 'select',
|
|
|
'option' => $supplier,
|
|
|
- 'list' => true,
|
|
|
+ 'list' => 'Dever::load("scm_supplier/info-one#name", {supplier_id})',
|
|
|
),
|
|
|
|
|
|
'info' => array
|
|
@@ -106,6 +125,53 @@ return array
|
|
|
'desc' => '订单备注',
|
|
|
'match' => 'option',
|
|
|
'update' => 'text',
|
|
|
+ //'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'scm_servicer-in_order_goods'=> array
|
|
|
+ (
|
|
|
+ 'name' => '商品设置',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '商品设置',
|
|
|
+ 'match' => 'option',
|
|
|
+ # 同步更新另外一个表的内容,两个表相关联的id,更新另一个表的字段
|
|
|
+ 'sync' => array('id', 'order_id'),
|
|
|
+ 'update' => array(1),
|
|
|
+ # 1纵向展示 2横向展示
|
|
|
+ 'update_type' => 2,
|
|
|
+ 'list_name' => '商品信息',
|
|
|
+ 'list' => 'Dever::load("scm_servicer/lib/manage.getGoods", {id})',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'audit' => array
|
|
|
+ (
|
|
|
+ 'type' => 'tinyint-1',
|
|
|
+ 'name' => '审核状态',
|
|
|
+ 'default' => '2',
|
|
|
+ 'desc' => '审核状态',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'option' => $audit,
|
|
|
+ 'update' => 'radio',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'audit_desc' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-500',
|
|
|
+ 'name' => '审核备注',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '审核备注',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'textarea',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'audit_admin' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '审核人',
|
|
|
+ 'default' => '',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'desc' => '审核人',
|
|
|
+ //'list' => '"{audit_admin}" > 0 ? Dever::load("manage/admin-find#username", {audit_admin}) : "-"',
|
|
|
),
|
|
|
|
|
|
'status' => array
|
|
@@ -117,25 +183,12 @@ return array
|
|
|
'match' => 'is_numeric',
|
|
|
'option' => $status,
|
|
|
'search' => 'select',
|
|
|
+ 'list' => true,
|
|
|
//'search_after' => '<br />',
|
|
|
//'mul' => true,
|
|
|
//'mul_option' => array(2 => '批量审核', 5 => '确认收货'),
|
|
|
),
|
|
|
|
|
|
- 'scm_servicer-in_order_goods'=> array
|
|
|
- (
|
|
|
- 'name' => '商品设置',
|
|
|
- 'default' => '',
|
|
|
- 'desc' => '商品设置',
|
|
|
- 'match' => 'option',
|
|
|
- # 同步更新另外一个表的内容,两个表相关联的id,更新另一个表的字段
|
|
|
- 'sync' => array('id', 'order_id'),
|
|
|
- 'update' => array(1),
|
|
|
- # 1纵向展示 2横向展示
|
|
|
- 'update_type' => 2,
|
|
|
- //'list' => 'Dever::load("scm_servicer/lib/manage.getStore", {id})',
|
|
|
- ),
|
|
|
-
|
|
|
'state' => array
|
|
|
(
|
|
|
'type' => 'tinyint-1',
|
|
@@ -173,16 +226,9 @@ return array
|
|
|
|
|
|
'list_button' => array
|
|
|
(
|
|
|
- //fast_list
|
|
|
- /*
|
|
|
- 'list' => array('查看详情', '"sell_order_goods&project=shop&order_id={id}&page_type=&search_option_shop_type='.$search_option_shop_type.'"'),
|
|
|
-
|
|
|
- 'list11' => array('查看采购单', '"buy_order&project=shop&search_option_type=1&&search_option_parent_type=2&search_option_parent_order_id={id}&oper_table=sell_order&search_option_shop_type='.$search_option_shop_type.'"', '{status} >= 3 && {audit} == 2 && {shop_type} == 2'),
|
|
|
-
|
|
|
- 'list1' => array('审核', '"sell_order_goods&project=shop&order_id={id}&audit=1&page_type=&search_option_shop_type='.$search_option_shop_type.'"', '{status} == 2 && {shop_type} == 2'),
|
|
|
+ 'list' => array('查看详情', '"in_order_goods&&order_id={id}"'),
|
|
|
|
|
|
- 'oper' => array('确认收货', '"shop/lib/manage.setSellOrderStatus?shop_id={shop_id}&order_id={id}"', '{status} == 4 && {shop_type} == 2'),
|
|
|
- */
|
|
|
+ 'fast' => array('审核', '"in_order&where_id={id}&col=audit,audit_desc"', '{status} == 1'),
|
|
|
),
|
|
|
),
|
|
|
|