|
@@ -30,9 +30,23 @@ if ($mid) {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
-$list2_button = array();
|
|
|
-if (Dever::load('manage/auth')->checkFunc('agent.dh_order', 'edit', '审核')){
|
|
|
- $list2_button = array('审核', '"dh_order_goods&project=agent&order_id={id}&audit=1&page_type=1"', '{status} == 2');
|
|
|
+$list_button = array
|
|
|
+(
|
|
|
+ //fast_list
|
|
|
+ 'list' => array('查看详情', '"dh_order_goods&project=agent&order_id={id}&page_type=1"', '{type} == 1'),
|
|
|
+
|
|
|
+ 'list1' => array('查看采购单', '"buy_order&project=shop&search_option_type=1&search_option_parent_type=3&search_option_parent_order_id={id}&oper_table=dh_order&oper_project=agent"', '{type} == 1 && {status} >= 3 && {audit} == 2'),
|
|
|
+
|
|
|
+ // 'fast' => array('审核', '"dh_order&where_id={id}&col=audit,audit_desc&oper_save_jump=dh_order&oper_table=dh_order&oper_parent=dh_order"', '{type} == 1 && {status} == 2'),
|
|
|
+ 'list2' => array('审核', '"dh_order_goods&project=agent&order_id={id}&audit=1&page_type=1"', '{status} == 2'),
|
|
|
+
|
|
|
+ 'oper' => array('确认收货', '"agent/lib/manage.setDhOrderStatus?mid={mid}&order_id={id}"', '{type} == 1 && {status} == 4'),
|
|
|
+);
|
|
|
+if (!Dever::load('manage/auth')->checkFunc('agent.dh_order', 'edit', '审核')){
|
|
|
+ unset($list_button['list2']);
|
|
|
+}
|
|
|
+if (!Dever::load('manage/auth')->checkFunc('agent.dh_order', 'fafang', '确认收货')){
|
|
|
+ unset($list_button['oper']);
|
|
|
}
|
|
|
|
|
|
$status = array
|