[bug] 标协同步的邮寄打印调整
This commit is contained in:
@@ -86,6 +86,8 @@ const aduitExpenditureContract = (param) => postAction('/contract/paySpendingCon
|
|||||||
const archiveExpenditureContract = (param) => postAction('/contract/paySpendingContract/archive', param)
|
const archiveExpenditureContract = (param) => postAction('/contract/paySpendingContract/archive', param)
|
||||||
// 获取全部收入合同(通过企业id查询列表)
|
// 获取全部收入合同(通过企业id查询列表)
|
||||||
const getAllRevenueContract = (param) => getAction('/contract/payIncomeContract/queryByCompanyId', param)
|
const getAllRevenueContract = (param) => getAction('/contract/payIncomeContract/queryByCompanyId', param)
|
||||||
|
// 打印获取邮寄联系人信息接口,传票据邮寄列表id
|
||||||
|
const getPrintPostContactByMailId = (param) => getAction('/mail/payMailBill/print', param)
|
||||||
|
|
||||||
export {
|
export {
|
||||||
getWorkingGroupById,
|
getWorkingGroupById,
|
||||||
@@ -130,5 +132,6 @@ export {
|
|||||||
getIsAssociatedProject,
|
getIsAssociatedProject,
|
||||||
aduitExpenditureContract,
|
aduitExpenditureContract,
|
||||||
archiveExpenditureContract,
|
archiveExpenditureContract,
|
||||||
getAllRevenueContract
|
getAllRevenueContract,
|
||||||
|
getPrintPostContactByMailId
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { USER_INFO } from '../../store/mutation-types'
|
import { USER_INFO } from '../../store/mutation-types'
|
||||||
|
import { getPrintPostContactByMailId } from '../../api/incomePaymentsApi'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'PrintPage',
|
name: 'PrintPage',
|
||||||
@@ -56,13 +57,24 @@ export default {
|
|||||||
this.userInfo = Vue.ls.get(USER_INFO)
|
this.userInfo = Vue.ls.get(USER_INFO)
|
||||||
// 从路由参数获取项目信息
|
// 从路由参数获取项目信息
|
||||||
this.mailDetail = JSON.parse(this.$route.query.record)
|
this.mailDetail = JSON.parse(this.$route.query.record)
|
||||||
console.log(this.mailDetail)
|
// 数据中没有邮编或地址信息,调用接口
|
||||||
},
|
if (!this.mailDetail.contactAddress || !this.mailDetail.postalCode) {
|
||||||
mounted() {
|
this.getPostContactDetail(this.mailDetail.id)
|
||||||
// 打印
|
}
|
||||||
this.print()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getPostContactDetail(id) {
|
||||||
|
getPrintPostContactByMailId({id: id}).then(res => {
|
||||||
|
console.log(res)
|
||||||
|
this.mailDetail.contactAddress = res.result.contactAddress
|
||||||
|
this.mailDetail.postalCode = res.result.postalCode
|
||||||
|
console.log(this.mailDetail)
|
||||||
|
this.$nextTick(() => {
|
||||||
|
// 打印
|
||||||
|
this.print()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 打印
|
* 打印
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user