linwenxin 6 ماه پیش
والد
کامیت
9c2126795f
1فایلهای تغییر یافته به همراه14 افزوده شده و 14 حذف شده
  1. 14 14
      src/views/auxiliaryFittings/salesManagement/auxiliarySalesOrder/index.vue

+ 14 - 14
src/views/auxiliaryFittings/salesManagement/auxiliarySalesOrder/index.vue

@@ -306,13 +306,13 @@ export default {
             num += Number(item.salesQty)
             html += `
 					<tr align="center">
-					<td>${item.goodsName}</td>
-					<td>${item.goodsSpecification}</td>
-					<td>${item.goodsSalesUnit}</td>
-					<td>${item.salesQty}</td>
-					<td>${item.price}</td>
-					<td>${item.saleAmount}</td>
-					<td>${data.storageName}</td>
+					<td>${item.goodsName || ''}</td>
+					<td>${item.goodsSpecification || ''}</td>
+					<td>${item.goodsSalesUnit || ''}</td>
+					<td>${item.salesQty || ''}</td>
+					<td>${item.price || ''}</td>
+					<td>${item.saleAmount || ''}</td>
+					<td>${data.storageName || ''}</td>
 					<td></td>
 					</tr>
 				`
@@ -320,9 +320,9 @@ export default {
           this.websitList.slice(0, 5).forEach(item => {
             websitHtml += `
 					<div style="display: flex;font-size: 14px;margin-bottom: 6px;">
-						<div style="margin-right: 10px;">${item.name}</div>
-						<div style="margin-right: 10px;">${item.websitPhone}</div>
-						<div>地址: ${item.address}</div>
+						<div style="margin-right: 10px;">${item.name || ''}</div>
+						<div style="margin-right: 10px;">${item.websitPhone || ''}</div>
+						<div>地址: ${item.address || ''}</div>
 					</div>
 				`
           })
@@ -373,15 +373,15 @@ export default {
 			</div>
 		  <div style="display: flex;justify-content: space-between;">
 			<div style="width: 28%;"></div>
-			<div>单据日期: ${data.createTime}</div>
-			<div>单据编号: ${data.salesId}</div>
+			<div>单据日期: ${data.createTime || ''}</div>
+			<div>单据编号: ${data.salesId || ''}</div>
 		  </div>
 		  <div style="display: flex;justify-content: space-between;font-size: 16px;margin: 10px 0;">
-		  	<div>客户: ${data.workerName}</div>
+		  	<div>客户: ${data.workerName || ''}</div>
 		  	<div>摘要: ${data.payType == 'CASH' ? '现金' : data.payType == 'WECHAT' ? '微信' : '工程支付'}</div>
 		  </div>
 		  <div style="display: flex;font-size: 16px;margin-bottom: 10px;">
-		  	<div>联系电话: ${data.workerMobile}</div>
+		  	<div>联系电话: ${data.workerMobile || ''}</div>
 		  	<div style="margin-left: 50px;">收货地址: ${
           data.province ? data.province + data.city + data.area + data.street + data.address : ''
         }</div>