|
|
@@ -409,6 +409,7 @@ class ExportController extends AddonController
|
|
|
->field('large.code lcode,large.code_cp1 lcode_cp1,large.code_cp2 lcode_cp2,small.code scode,small.code_cp1 scode_cp1,small.code_cp2 scode_cp2')
|
|
|
->where('small.large_id in ('.$id.') and small.status = 0')
|
|
|
->select();
|
|
|
+
|
|
|
$return = $this->excelExport1($data);
|
|
|
|
|
|
if($return['status']==1){
|
|
|
@@ -961,7 +962,6 @@ $data['s_weight'] = $data['s_weight']/1000;
|
|
|
|
|
|
// $fileName = 'Runtime/Data/'.date('Ymd', time()).rand(100,999).'_'.$info['nickname'].'_'.$data['matter_name'].'_'.$data['small_num'].'.xls';
|
|
|
$fileName = 'Runtime/Data/'.date('Ymd', time()).rand(100,999).'_'.$info['nickname'].'_'.str_replace('/','_',$data['matter_name']).'_'.$data['small_num'].'.xls';
|
|
|
-
|
|
|
/*修改大件的发货状态*/
|
|
|
M()->startTrans();
|
|
|
$update_ret = M('qcode_large')->where('id in ('.$data['id_str'].')')->setField('l_status',1);
|
|
|
@@ -975,6 +975,10 @@ $data['s_weight'] = $data['s_weight']/1000;
|
|
|
$add['num'] = $data['s_weight']*1000;
|
|
|
$add['mater_type'] = 2;
|
|
|
}
|
|
|
+ //2023年4月6日 优化送货单单位,增加mater_type=3 => 万支 后续建议优化 直接从unit单位表中读取
|
|
|
+ if (substr($data['matter_no'],2,2) == '04'){
|
|
|
+ $add['mater_type'] = 3;
|
|
|
+ }
|
|
|
$add['userid'] = $session_config['user_auth']['uid'];
|
|
|
$add['username'] = $data['supplier_name'];
|
|
|
$add['matter_name'] = $data['matter_name'];
|