|
@@ -953,19 +953,18 @@ class Buy
|
|
|
{
|
|
|
if ($goods_id) {
|
|
|
$name = 'audit';
|
|
|
+ $id = 'audit_' . $goods_id;
|
|
|
} else {
|
|
|
$name = 'audit_set';
|
|
|
+ $id = 'audit';
|
|
|
}
|
|
|
- $select = '<select class="'.$name.'">';
|
|
|
+ $select = '<select class="'.$name.'" id="'.$id.'">';
|
|
|
foreach ($source as $k => $v) {
|
|
|
$yes = '';
|
|
|
if ($source_id && $v['id'] == $source_id) {
|
|
|
$yes = 'selected';
|
|
|
}
|
|
|
- $value = ''.$v['type'] . '_' . $v['id'];
|
|
|
- if ($goods_id) {
|
|
|
- $value .= '_' . $goods_id;
|
|
|
- }
|
|
|
+ $value = $v['type'] . '_' . $v['id'];
|
|
|
$select .= '<option value="'.$value.'" '.$yes.'>'.$v['name'].'</option>';
|
|
|
}
|
|
|
$select .= '</select>';
|
|
@@ -1039,14 +1038,14 @@ class Buy
|
|
|
|
|
|
$btn = array();
|
|
|
$btn[] = array(
|
|
|
- 'type' => 'action',
|
|
|
- 'link' => Dever::url('lib/manage.set_commit?json=1&type=5&order_id='.$info['id'], 'agent'),
|
|
|
- 'name' => '全部调整'
|
|
|
+ 'type' => 'click',
|
|
|
+ 'content' => 'setAudit()',
|
|
|
+ 'name' => '全部调整<script>function setAudit(){layer.confirm(\'确定进行此项操作吗?\', function(){var audit = $(\'.audit_set\').val();$(\'.audit\').each(function(){$(this).val(audit);})})}</script>'
|
|
|
);
|
|
|
$result['商品拆单'] = array
|
|
|
(
|
|
|
'type' => 'table',
|
|
|
- 'head' => array('name' => $this->getSelect($source, false, false), 'btn' => $btn),
|
|
|
+ 'head' => array('name' => '供货商:' . $this->getSelect($source, false, false), 'btn' => $btn),
|
|
|
'content' => array
|
|
|
(
|
|
|
'head' => $head,
|