|
|
|
@ -142,15 +142,15 @@
|
|
|
|
|
:default-sort="defaultSort"
|
|
|
|
|
@sort-change="handleSortChange">
|
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
|
<el-table-column label="登记状态" prop="checkStatus" width="100">
|
|
|
|
|
<el-table-column label="登记状态" prop="invoiceStatus" width="100">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag type="danger" v-if="scope.row.allCout==0">
|
|
|
|
|
<el-tag type="danger" v-if="scope.row.invoiceStatus==0">
|
|
|
|
|
未登记
|
|
|
|
|
</el-tag>
|
|
|
|
|
<el-tag type="warning" v-if="scope.row.partCount>0 && scope.row.allCout>0">
|
|
|
|
|
<el-tag type="warning" v-if="scope.row.invoiceStatus==1 ">
|
|
|
|
|
未全部登记
|
|
|
|
|
</el-tag>
|
|
|
|
|
<el-tag type="success" v-if="scope.row.partCount == 0 && scope.row.allCout>0">
|
|
|
|
|
<el-tag type="success" v-if="scope.row.invoiceStatus == 2 ">
|
|
|
|
|
全部登记
|
|
|
|
|
</el-tag>
|
|
|
|
|
</template>
|
|
|
|
@ -340,7 +340,7 @@
|
|
|
|
|
<!--单据业务详情-->
|
|
|
|
|
<el-tab-pane>
|
|
|
|
|
<span slot="label">单据 {{ currentRow.billNo }}-发票信息</span>
|
|
|
|
|
<el-table v-loading="bizDetailLoading" :data="bizDetailList" style="width: 100%" border
|
|
|
|
|
<el-table v-loading="invoiceLoading" :data="bizDetailList" style="width: 100%" border
|
|
|
|
|
row-key="id"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
@ -684,6 +684,7 @@ export default {
|
|
|
|
|
bizTotal: 0,
|
|
|
|
|
invTotal: 0,
|
|
|
|
|
bizDetailLoading: false,
|
|
|
|
|
invoiceLoading: false,
|
|
|
|
|
bizDetailList: [],
|
|
|
|
|
codeQuery: {
|
|
|
|
|
orderIdFk: null,
|
|
|
|
@ -1055,7 +1056,7 @@ export default {
|
|
|
|
|
this.$message.error("请先选择需要查询的单据!")
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.bizDetailLoading = true;
|
|
|
|
|
this.invoiceLoading = true;
|
|
|
|
|
this.bizQuery.orderIdFk = this.currentRow.billNo;
|
|
|
|
|
if (row != null) {
|
|
|
|
|
this.bizQuery.orderIdFk = row.orderIdFk;
|
|
|
|
@ -1064,7 +1065,7 @@ export default {
|
|
|
|
|
//this.bizQuery.bizIdFk = row.id;
|
|
|
|
|
}
|
|
|
|
|
filterListInvoice(this.bizQuery).then((res) => {
|
|
|
|
|
this.bizDetailLoading = false;
|
|
|
|
|
this.invoiceLoading = false;
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.bizDetailList = res.data.list || [];
|
|
|
|
|
this.invTotal = res.data.total || 0;
|
|
|
|
@ -1074,7 +1075,7 @@ export default {
|
|
|
|
|
this.invTotal = 0;
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.bizDetailLoading = false;
|
|
|
|
|
this.invoiceLoading = false;
|
|
|
|
|
this.$message.error(error.message);
|
|
|
|
|
this.bizDetailList = [];
|
|
|
|
|
this.invTotal = 0;
|
|
|
|
|