Browse Source

修改bug

chenrui 2 năm trước cách đây
mục cha
commit
bb3d358bef

+ 7 - 2
src/views/salesManagement/waitDispatch/dsModal.vue

@@ -35,7 +35,10 @@
           </div>
           <div v-else>
             <a-form-model-item label="收货客户名称" v-if="detailData&&detailData.receiverName">
-              {{ detailData.receiverName?detailData.receiverName:'--' }}
+              {{ detailData.receiverName }}
+            </a-form-model-item>
+            <a-form-model-item label="收货客户名称" v-else>
+              --
             </a-form-model-item>
             <a-form-model-item label="收货地址">
               {{ chooseAddr }}
@@ -202,8 +205,10 @@ export default {
     //  获取详情
     setDetail (data) {
       this.detailData = data
-      if (data && data.dispatchBillCount == 1) {
+      if (data && data.dispatchBillCount * 1 > 0) {
         this.receiverDisabled = true
+        this.form.receiverSn = data.receiverSn
+        this.form.receiverName = data.receiverName
         if (data.salesBillExtEntity) {
           const address = (data.salesBillExtEntity.shippingAddrProvinceName ? (data.salesBillExtEntity.shippingAddrProvinceName + '-') : '') + (data.salesBillExtEntity.shippingAddrCityName ? (data.salesBillExtEntity.shippingAddrCityName + '-') : '') + (data.salesBillExtEntity.shippingAddrCountyName ? (data.salesBillExtEntity.shippingAddrCountyName + '-') : '') + data.salesBillExtEntity.shippingAddr
           this.chooseAddr = (data.salesBillExtEntity.consigneeName || '') + '(' + (data.salesBillExtEntity.consigneeTel || '-') + ')' + ' ' + (address || '')

+ 1 - 0
src/views/salesManagement/waitDispatch/edit.vue

@@ -356,6 +356,7 @@ export default {
         this.showDsModal = true
         this.detailData.dispatchBillCount = this.totalData.dispatchBillCount
         this.detailData.receiverName = this.totalData.receiverName ? this.totalData.receiverName : ''
+        this.detailData.receiverSn = this.totalData.receiverSn ? this.totalData.receiverSn : ''
         this.$refs.dsModal.setDetail(this.detailData)
       } else {
         this.$message.warning('请选择待下推产品')