Переглянути джерело

打印标题读取商户配置名称

pengyh 1 рік тому
батько
коміт
6d2e937eb2

+ 2 - 2
src/views/auxiliaryFittings/salesManagement/attachmentSalesOrder/index.vue

@@ -75,7 +75,7 @@ export default {
 			isShowTab: true,
 			orderEnginBaseId: '',
 			payQrcode: JSON.parse(localStorage.getItem('greemall_user')).payQrcode,
-
+			billTitle: JSON.parse(localStorage.getItem('greemall_user')).billTitle,//打印名称
 			showImportResult: false,
 			importResultList: [],
 		}
@@ -335,7 +335,7 @@ export default {
 	   <div style="font-family:'黑体';font-size: 16px;">
 			<div style="display: flex;justify-content: space-between;align-items: center;">
 				<div style="width: 28%;"></div>
-				<h1 style="text-align:center;margin: 10px 0;">${data.websitName}销售单</h1>
+				<h1 style="text-align:center;margin: 10px 0;">${this.billTitle?this.billTitle:data.websitName}销售单</h1>
 				<div>共 ${length}页 第 ${page + 1} 页</div>
 			</div>
 		  <div style="display: flex;justify-content: space-between;">

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

@@ -75,7 +75,7 @@ export default {
 			isShowTab: true,
 			orderEnginBaseId: '',
 			payQrcode: JSON.parse(localStorage.getItem('greemall_user')).payQrcode,
-
+			billTitle: JSON.parse(localStorage.getItem('greemall_user')).billTitle,//打印名称
 			showImportResult: false,
 			importResultList: [],
 		}
@@ -333,7 +333,7 @@ export default {
 			return `
 	   <div style="font-family:'黑体';font-size: 16px;">
 			<div style="display: flex;justify-content: center;align-items: center;position: relative;">
-				<h1 style="text-align:center;margin: 10px 0;">${data.websitName}销售单</h1>
+				<h1 style="text-align:center;margin: 10px 0;">${this.billTitle?this.billTitle:data.websitName}销售单</h1>
 				<div style="position: absolute;right:0;">共 ${length}页 第 ${page+1} 页</div>
 			</div>
 		  <div style="display: flex;justify-content: space-between;">