|
@@ -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 || '')
|