Эх сурвалжийг харах

入库预约--预约管理,明细单数量显示问题

hu hao 4 жил өмнө
parent
commit
0662ae3c16

+ 1 - 1
app/StoreItem.php

@@ -14,7 +14,7 @@ class StoreItem extends Model
     use ModelTimeFormat;
     protected $fillable=[
         'store_id','asn_line_code','name',
-        'sku','barcode','depository_id','amount','quality','status','commodity_id'
+        'sku','barcode','depository_id','amount','quality','status','commodity_id','expected_amount'
     ];
     protected $appends=[
         'store_asn_code',

+ 1 - 1
resources/views/store/deliveryAppointment/appointment.blade.php

@@ -343,7 +343,7 @@
                       if (!res)return  "ASN单不存在明细项";
                       let details = [];
                       res.forEach(item=>{
-                          details.push({name:"",amount:item.amount,bar_code:"",commodity_id:item.commodity_id});
+                          details.push({name:"",amount:item.expected_amount,bar_code:"",commodity_id:item.commodity_id});
                       });
                       this.details = details;
                       this.fileName = (details.length)+"条明细";

+ 1 - 1
resources/views/store/deliveryAppointment/list.blade.php

@@ -154,7 +154,7 @@
                             <div class="row" v-for="(detail,i) in info.details" v-if="i!==0">
                                 <div class="col-5 font-weight-bold text-overflow-warp">@{{ detail.commodity_id ? (detail.commodity ? detail.commodity.name : '') : detail.name }}</div>
                                 <div class="col-4 text-secondary text-overflow-warp">@{{ detail | getCommodity }}</div>
-                                <div class="col-2 text-secondary">@{{ detail.expected_amount }}</div>
+                                <div class="col-2 text-secondary">@{{ detail.amount }}</div>
                             </div>
                         </div>
                         <div class="text-center m-auto small cursor-pointer" v-if="info.details.length>1" @click="upAllDetail(info.id)">