m0_70156489 пре 1 дан
родитељ
комит
0462495ebc
1 измењених фајлова са 6 додато и 3 уклоњено
  1. 6 3
      application/admin/controller/QcodeAdd.php

+ 6 - 3
application/admin/controller/QcodeAdd.php

@@ -190,7 +190,8 @@ class QcodeAdd extends Backend
             'box_num' => $box_number,
             'tray_num' => $tray_num1,
             'l_reservation' => '',
-            'l_flow' => $data['big_liushui'],
+            // 'l_flow' => $data['big_liushui'],
+            'l_flow' => intval($data['big_liushui']),
             'l_weight' => $data['big_weight'],
             's_flow' => $data['small_start_liushui'],
             's_weight' => $data['small_weight'],
@@ -235,11 +236,13 @@ class QcodeAdd extends Backend
             if (strpos($batchList['matter_no'], 'AB') !== false) {
                 // 新物料编码处理逻辑
                 $fixed_code .= '0000000000'; // 新编码补10个0
-                $fixed_code .= $this->intTochar($batchList['matter_no'], 10);  // 转换为10位辅料编码
+                // $fixed_code .= $this->intTochar($batchList['matter_no'], 10);  // 转换为10位辅料编码
+                $fixed_code .= $this->intTochar(trim($batchList['matter_no']), 10);  // 去掉空格
             } else {
                 // 老物料编码处理逻辑
                 $fixed_code .= '000';       // 老编码补
-                $fixed_code .= $this->intTochar($batchList['matter_no'], 17);  // 转换为16位辅料编码
+                // $fixed_code .= $this->intTochar($batchList['matter_no'], 17);  // 转换为16位辅料编码
+                $fixed_code .= $this->intTochar(trim($batchList['matter_no']), 17);  // 去掉空格
             }
 
 //            $fixed_code .= '0000000000'; // 补0一位