Merge pull request '企业税号不显示问题' (#77) from master-dev into master
Reviewed-on: http://git.xdadan.loc/tanex/emis-frontend/pulls/77
This commit is contained in:
commit
5e66f7f532
@ -1718,13 +1718,22 @@ methods: {
|
|||||||
}
|
}
|
||||||
// });
|
// });
|
||||||
// 获取企业税号
|
// 获取企业税号
|
||||||
if(['2', '4', '5'].includes(this.form.paymentType)){ // 月结
|
if(['2', '4', '5'].includes(this.form.paymentType) || this.form.customerType == 2){ // 月结或者月结客户
|
||||||
const res = await listMonthUserAll({monthlyPayCode: this.form.custNo ,pageNum: 1,pageSize: 1,customerType:2});
|
let params = {
|
||||||
|
pageNum: 1, pageSize: 1, customerType: 2
|
||||||
|
}
|
||||||
|
if (['2', '4', '5'].includes(this.form.paymentType)) {
|
||||||
|
params.monthlyPayCode = this.form.custNo; // 支付类型为月结
|
||||||
|
} else {
|
||||||
|
params.customerCode = this.form.customerCode; // 月结客户下单的现金单
|
||||||
|
}
|
||||||
|
|
||||||
|
const res = await listMonthUserAll(params);
|
||||||
if(res.rows.length > 0){
|
if(res.rows.length > 0){
|
||||||
this.form.sender.enterpriseName = res.rows[0].enterpriseName;
|
this.form.sender.enterpriseName = res.rows[0].enterpriseName;
|
||||||
this.form.sender.enterpriseTaxId = res.rows[0].enterpriseTaxId;
|
this.form.sender.enterpriseTaxId = res.rows[0].enterpriseTaxId;
|
||||||
}
|
}
|
||||||
}else{ // 非月结
|
}else{ // 非月结客户下的非月结单
|
||||||
if (this.form.sender.id) {
|
if (this.form.sender.id) {
|
||||||
const res = await getEmisCustomerAddress(this.form.sender.id);
|
const res = await getEmisCustomerAddress(this.form.sender.id);
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user