lilei 3 年之前
父節點
當前提交
73273f4d77

+ 5 - 2
src/views/salesManagement/outboundOrder/sendGoodModal.vue

@@ -11,7 +11,7 @@
     <a-spin :spinning="spinning" tip="Loading...">
       <div class="common-main">
         <a-alert type="info" v-if="detail.length" style="margin-bottom:10px">
-          <div slot="message">箭冠汽配西安大兴店,共 {{ detail && detail.length }} 个出库单,产品款数合计 <span>{{ productTotal&&productTotal.totalCategory }}</span> ,产品数量合计 <span>{{ productTotal&&productTotal.totalQty }}</span>。</div>
+          <div slot="message">{{ customeName }},共 {{ detail && detail.length }} 个出库单,产品款数合计 <span>{{ productTotal&&productTotal.totalCategory }}</span> ,产品数量合计 <span>{{ productTotal&&productTotal.totalQty }}</span>。</div>
         </a-alert>
         <div class="toolsBar">
           <a-form-model
@@ -242,13 +242,15 @@ export default {
         { title: '合计', dataIndex: 'totalAmount', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '操作', scopedSlots: { customRender: 'action' }, width: '8%', align: 'center' }
       ],
-      isEdit: false
+      isEdit: false,
+      customeName: ''
     }
   },
   methods: {
     // 新增,出库单和收货人信息
     setData (data, customeInfo) {
       this.detail = data
+      this.customeName = data[0].demanderName
       this.isEdit = false
       this.getProductTotal()
       if (customeInfo) {
@@ -261,6 +263,7 @@ export default {
     getDetail (data) {
       this.spinning = true
       this.isEdit = true
+      this.customeName = data.customeName
       sendBillFindBySn({ sn: data.sendBillSn }).then(res => {
         console.log(res)
         this.spinning = false

+ 4 - 2
src/views/salesManagement/sendOutOrder/detailModal.vue

@@ -12,7 +12,7 @@
       <div class="common-main">
         <div style="display: flex;align-items: center;justify-content: space-between;padding-bottom: 10px;">
           <a-alert type="info" v-if="sendBillStockOutList.length" style="margin-bottom:10px">
-            <div slot="message">箭冠汽配西安大兴店,共 {{ sendBillStockOutList && sendBillStockOutList.length }} 个出库单,产品款数合计 <span>{{ productTotal&&productTotal.totalCategory }}</span> ,产品数量合计 <span>{{ productTotal&&productTotal.totalQty }}</span>。</div>
+            <div slot="message">{{ customeName||'' }},共 {{ sendBillStockOutList && sendBillStockOutList.length }} 个出库单,产品款数合计 <span>{{ productTotal&&productTotal.totalCategory }}</span> ,产品数量合计 <span>{{ productTotal&&productTotal.totalQty }}</span>。</div>
           </a-alert>
           <a-button size="small" v-if="type==1" @click="printOrder" type="primary">发货单打印</a-button>
         </div>
@@ -137,7 +137,8 @@ export default {
         { title: '产品数量', dataIndex: 'productTotalQty', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '收款时间', dataIndex: 'settleTime', width: '10%', align: 'center', customRender: function (text) { return text || '--' } }
       ],
-      sendBillSn: null
+      sendBillSn: null,
+      customeName: ''
     }
   },
   methods: {
@@ -155,6 +156,7 @@ export default {
       this.type = type // 0 是物流跟踪,1是详情
       this.modalTit = title
       this.sendBillSn = data.sendBillSn
+      this.customeName = data.customeName
       this.spinning = true
       sendBillFindBySn({ sn: data.sendBillSn }).then(res => {
         console.log(res)