find($id); $string = ''; $string = $info['order_num']; $servicer = Dever::db('scm_servicer/info')->one($info['servicer_id']); $string .= '
' . $servicer['name']; $store = Dever::db('scm_servicer/store')->one($info['servicer_store_id']); $string .= '.' . $store['name']; if (isset($info['supplier_id'])) { $supplier = Dever::db('scm_supplier/info')->one($info['supplier_id']); $string .= '
' . $supplier['name']; } $type = Dever::db('scm_servicer/'.$type.'_order_type')->one($info['type']); $string .= '
' . $type['name']; $string .= '
' . $info['info']; return $string; } # 查看详情 public function show() { $type = Dever::input('type'); return Dever::load('scm/lib/order')->show('scm_servicer/'.$type.'_order', 'scm_servicer/info', 'servicer_id', '配送商'); } public function getStore($id) { $table = array(); $table['head'] = array('仓库名称', '仓库编码', '操作'); $table['body'] = array(); $data = Dever::db('scm_servicer/store')->select(array('servicer_id' => $id)); if ($data) { $status = Dever::db('scm_servicer/store')->config['status']; foreach ($data as $k => $v) { $status_name = ''; if ($v['status'] == 2) { $status_name = '(已禁用)'; } $url = Dever::url('project/database/update?project=scm_servicer&table=store&oper_save_table=info&set=1&where_id='.$v['id'], 'manage'); $oper = '编辑'; $url = Dever::url('project/database/list?project=scm_servicer&table=store_goods&oper_table=info&top_table1=info&search_option_servicer_store_id='.$v['id'], 'manage'); $oper .= '库存清单'; $table['body'][$k][] = $v['name'] . $status_name; $table['body'][$k][] = $v['code']; $table['body'][$k][] = $oper; } } $body[''] = array ( 'type' => 'table', 'content' => $table, ); if ($table['body']) { return Dever::show('', $body); } else { return '暂无'; } } }