发票号、接单调整

This commit is contained in:
wuteng 2025-09-05 11:08:15 +08:00
parent fe40da3548
commit 8b176bb5a8
2 changed files with 22 additions and 9 deletions

View File

@ -7,6 +7,7 @@
<el-radio-group class="query-label" v-model="queryOrderType">
<el-radio :key="1" label="1">运单号</el-radio>
<el-radio :key="2" label="2">账单号</el-radio>
<el-radio :key="3" label="3">发票号</el-radio>
</el-radio-group>
</div>
<XdTextareaInput
@ -239,7 +240,7 @@
<!-- <el-table-column :label="$t('开票地址')" align="center" prop="companyAddress" min-width="100" :show-overflow-tooltip="true"/> -->
<!-- <el-table-column :label="$t('联系人')" align="center" prop="contact" min-width="100" :show-overflow-tooltip="true"/> -->
<!-- <el-table-column :label="$t('联系电话')" align="center" prop="phone" min-width="100" :show-overflow-tooltip="true"/> -->
<!-- <el-table-column :label="$t('发票号')" align="center" prop="invoiceNo" min-width="170" :show-overflow-tooltip="true" /> -->
<el-table-column :label="$t('发票号')" align="center" prop="invoiceNo" min-width="170" :show-overflow-tooltip="true" />
<el-table-column :label="$t('申请序号')" align="center" prop="applySeqNo" min-width="170" :show-overflow-tooltip="true"/>
<el-table-column :label="$t('申请人')" align="center" prop="createByName" min-width="100" :show-overflow-tooltip="true"/>
@ -374,9 +375,10 @@ export default {
openComCode: null,
delFlag: null,
paymentStatus:null,
invoiceNo:null,
params:{
billCode:null,
invoiceNo:null,
// invoiceNo:null,
}
},
};
@ -464,10 +466,17 @@ export default {
if(this.queryOrderType=="1"){
this.queryParams.params.billCode=this.queryParams.queryCode;
this.queryParams.settleBillNo=null;
this.queryParams.invoiceNo=null;
}
else if(this.queryOrderType=="2"){
this.queryParams.params.billCode=null;
this.queryParams.settleBillNo=this.queryParams.queryCode;
this.queryParams.invoiceNo=null;
}
else if(this.queryOrderType=="3"){ //发票查询
this.queryParams.params.billCode=null;
this.queryParams.settleBillNo=null;
this.queryParams.invoiceNo=this.queryParams.queryCode;
}
listEmisSettleInvoiceRecord(this.addDateRange(this.queryParams, this.dateTimeRange,'createTime')).then(response => {

View File

@ -1718,15 +1718,19 @@ methods: {
}
// });
// 获取企业税号
if(['2', '4', '5'].includes(this.form.paymentType) || this.form.customerType == 2){ // 月结或者月结客户
if(['2', '4', '5'].includes(this.form.paymentType) || this.form.customerType == 2 || this.form.mainUserId){ // 月结单 或者 月结客户现金单 或者 月结客户子账户现金单
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; // 月结客户下单的现金单
pageNum: 1, pageSize: 1
}
if (this.form.mainUserId) {
params.id = this.form.mainUserId;
} else {
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){