cqp před 16 hodinami
rodič
revize
431d576dfd
2 změnil soubory, kde provedl 6 přidání a 2 odebrání
  1. 5 1
      app/Service/DrbService.php
  2. 1 1
      app/Service/U8ServerService.php

+ 5 - 1
app/Service/DrbService.php

@@ -395,7 +395,11 @@ class DrbService extends Service
                                 "value" => $item['number'] ?? 0,
                             ],
                             [
-                                "name"  => "主计量", // 修改这里,对应模板字段
+                                "name"  => "单价",
+                                "value" => $item['price'] ?? 0,
+                            ],
+                            [
+                                "name"  => "主计量",
                                 "value" => $item['unit_title'] ?? ''
                             ],
                             [

+ 1 - 1
app/Service/U8ServerService.php

@@ -215,7 +215,7 @@ class U8ServerService extends Service
             ->leftJoin('ComputationUnit as c', 'c.cComunitCode', 'b.cComUnitCode')
             ->where('a.PID', $order['id'])
             ->select('a.cSource as source','a.cCoVouchID as source_order_number','b.cInvName as product_title','b.cInvStd as product_size','b.cCurrencyName as product_ty','c.cComUnitName as unit_title',DB::raw("LTRIM(STR(a.iApplyAmt_s, 20, 2)) as number"),
-    DB::raw("LTRIM(STR(a.iApplyAmt_f, 20, 2)) as amount"))
+    DB::raw("LTRIM(STR(a.iApplyAmt_f, 20, 2)) as amount"),DB::raw("LTRIM(STR(a.iOriTaxCost, 20, 2)) as price"))
             ->get();
         // 转为数组的数组
         $detail = array_map(function ($item) {