询价单联系方式
This commit is contained in:
@@ -5,7 +5,7 @@ export function exportExcelMethod(tableId, fileName, sheetName) {
|
||||
const tableToExcel = (function() {
|
||||
const uri = 'data:application/vnd.ms-excel;base64,'
|
||||
// 设置导出表格的单元格默认高度/宽度/边框样式/字体颜色/背景颜色/居中,网页显示表格宽度建议1240,tr/td视情况而定
|
||||
const template = `<html xmlns:x="urn:schemas-microsoft-com:office:excel"><head><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><meta charset="UTF-8"><style type="text/css">table td {border: 2px solid #000000;height:40px;text-align: center;color: #000000;}</style></head><body><table>{table}</table></body></html>`
|
||||
const template = `<html xmlns:x="urn:schemas-microsoft-com:office:excel"><head><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><meta charset="UTF-8"><style type="text/css">table td {border: 1px solid #000000;height:40px;text-align: center;color: #000000;}</style></head><body><table>{table}</table></body></html>`
|
||||
const base64 = function(s) { return window.btoa(unescape(encodeURIComponent(s))) }
|
||||
const format = function(s, c) { return s.replace(/{(\w+)}/g, function(m, p) { return c[p] }) }
|
||||
return function(table, filename, sheetname) {
|
||||
|
||||
@@ -433,8 +433,8 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-card>
|
||||
|
||||
<div id="inquirySheet" style="width: 1000px;margin: 0 auto;display:none">
|
||||
<!--display:none-->
|
||||
<div id="inquirySheet" style="width: 1000px;margin: 0 auto;">
|
||||
<table class="inquirySheet" cellspacing="0px" align="center" border="1 solid black" width="100%">
|
||||
<tr>
|
||||
<th style="border: none;text-align:left;font-size: 30px;font-weight: bold" colspan="3"><div style="margin: 10px;">GAOJING</div></th>
|
||||
@@ -462,6 +462,18 @@
|
||||
<td colspan="4"/>
|
||||
<td colspan="3"/>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="14">请速确认后回传合同及具体交货期限,回传:{{ form3.fax }},联系人:{{ form3.contact }}{{ form3.phone }},</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="14">邮箱:{{ form3.email }};公司地址:{{ form3.companyAddress }};公司电话:{{ form3.companyPhone }};</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="14">税号:{{ form3.taxNumber }};邮编:{{ form3.postCode }};帐号:{{ form3.account }};</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="14">开户行:{{ form3.bank }};送货地址:{{ form3.shippingAddress }};</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -914,6 +926,19 @@ export default {
|
||||
})
|
||||
},
|
||||
fetchData() {
|
||||
searchBaseInfo(this.id).then(res => {
|
||||
this.form3.contact = res.data[0] ? res.data[0].联系人 : ''
|
||||
this.form3.phone = res.data[0] ? res.data[0].手机 : ''
|
||||
this.form3.fax = res.data[0] ? res.data[0].传真 : ''
|
||||
this.form3.email = res.data[0] ? res.data[0].邮箱 : ''
|
||||
this.form3.companyAddress = res.data[0] ? res.data[0].公司地址 : ''
|
||||
this.form3.postCode = res.data[0] ? res.data[0].邮编 : ''
|
||||
this.form3.companyPhone = res.data[0] ? res.data[0].公司电话 : ''
|
||||
this.form3.taxNumber = res.data[0] ? res.data[0].税号 : ''
|
||||
this.form3.shippingAddress = res.data[0] ? res.data[0].送货地址 : ''
|
||||
this.form3.account = res.data[0] ? res.data[0].帐号 : ''
|
||||
this.form3.bank = res.data[0] ? res.data[0].开户行 : ''
|
||||
})
|
||||
initProject().then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.project.push({
|
||||
|
||||
Reference in New Issue
Block a user