Browse Source

列表显示

Zhouzhendong 5 years ago
parent
commit
b5fabda4d6
1 changed files with 11 additions and 2 deletions
  1. 11 2
      resources/views/store/deliveryAppointment/list.blade.php

+ 11 - 2
resources/views/store/deliveryAppointment/list.blade.php

@@ -144,8 +144,8 @@
                 <td>@{{ info.box_amount>0 ? info.box_amount : '-' }}</td>
                 <td>@{{ info.box_amount>0 ? info.box_amount : '-' }}</td>
                 <td>@{{ info.logistic ? info.logistic.name : '' }}</td>
                 <td>@{{ info.logistic ? info.logistic.name : '' }}</td>
                 <td>@{{ info.logistic_number }}</td>
                 <td>@{{ info.logistic_number }}</td>
-                <td>@{{ info.procurement_number }}</td>
-                <td>@{{ info.asn_number }}</td>
+                <td><span v-html="warpText(info.procurement_number)"></span></td>
+                <td><span v-html="warpText(info.asn_number)"></span></td>
                 <td>
                 <td>
                     <div v-if="info.details.length>0">
                     <div v-if="info.details.length>0">
                         <div class="row">
                         <div class="row">
@@ -425,6 +425,15 @@
                     this.printInfo.print_date = str;
                     this.printInfo.print_date = str;
                     $("#printModal").modal("show");
                     $("#printModal").modal("show");
                 },
                 },
+                warpText(code){
+                    if (!code)return code;
+                    code = code.split(/[,, ]+/is);
+                    let str = "";
+                    for (let i=0;i<code.length;i++){
+                        str += code[i]+"<br>";
+                    }
+                    return str;
+                }
             },
             },
             filters:{
             filters:{
                 getCommodity(detail){
                 getCommodity(detail){