|
@@ -136,7 +136,7 @@
|
|
v-show="computedCompany.fax"
|
|
v-show="computedCompany.fax"
|
|
class="company-fax"
|
|
class="company-fax"
|
|
>
|
|
>
|
|
- | 传真: {{ computedCompany.phone }}
|
|
|
|
|
|
+ | 传真: {{ computedCompany.fax }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -524,7 +524,7 @@
|
|
v-show="computedCompany.fax"
|
|
v-show="computedCompany.fax"
|
|
class="company-fax"
|
|
class="company-fax"
|
|
>
|
|
>
|
|
- | 传真: {{ computedCompany.phone }}
|
|
|
|
|
|
+ | 传真: {{ computedCompany.fax }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -1163,7 +1163,7 @@ const generatePDF = (ele = pdfElement, isFirstTime = true) => {
|
|
)
|
|
)
|
|
// document.body.appendChild(page)
|
|
// document.body.appendChild(page)
|
|
pdf.addImage(
|
|
pdf.addImage(
|
|
- page.toDataURL('image/jpeg', 0.2),
|
|
|
|
|
|
+ page.toDataURL('image/jpeg', 0.5),
|
|
'JPEG',
|
|
'JPEG',
|
|
10,
|
|
10,
|
|
10,
|
|
10,
|
|
@@ -1184,19 +1184,7 @@ const generatePDF = (ele = pdfElement, isFirstTime = true) => {
|
|
|
|
|
|
sendPDF(pdf.output('datauristring'), fileName)
|
|
sendPDF(pdf.output('datauristring'), fileName)
|
|
.then(() => {
|
|
.then(() => {
|
|
- // 有两个退税版模版, 需要生成两个PDF.
|
|
|
|
- if (computedCompany.value.taxReimbursement === true && isFirstTime) {
|
|
|
|
- ElNotification({
|
|
|
|
- duration: 0,
|
|
|
|
- title: '正在生成附件2 PDF',
|
|
|
|
- type: 'info',
|
|
|
|
- })
|
|
|
|
- generatePDF(pdfElement2, false).then(() => {
|
|
|
|
- resolve(true)
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- resolve(true)
|
|
|
|
- }
|
|
|
|
|
|
+ resolve(true)
|
|
})
|
|
})
|
|
.catch((e) => {
|
|
.catch((e) => {
|
|
reject(e)
|
|
reject(e)
|
|
@@ -1872,7 +1860,8 @@ const p2 = axios
|
|
const res = response.data.result
|
|
const res = response.data.result
|
|
form.value.field7 = res.Owner_name || res.Owner.name || ''
|
|
form.value.field7 = res.Owner_name || res.Owner.name || ''
|
|
soOwner.value = res.Owner_name || res.Owner.name || ''
|
|
soOwner.value = res.Owner_name || res.Owner.name || ''
|
|
- form.value.Title = res.Contract_Title || res.Sales_Order_Title_Job_Name || ''
|
|
|
|
|
|
+ form.value.Title =
|
|
|
|
+ res.Contract_Title || res.Sales_Order_Title_Job_Name || ''
|
|
form.value.saleOrderId = res.sales_orders_id || res.id || ''
|
|
form.value.saleOrderId = res.sales_orders_id || res.id || ''
|
|
form.value.PO_Date = dayjs(new Date()).format('YYYY-MM-DD')
|
|
form.value.PO_Date = dayjs(new Date()).format('YYYY-MM-DD')
|
|
form.value.Reference = res.Reference || ''
|
|
form.value.Reference = res.Reference || ''
|