发票问题修改

pro
anthonywj 2 years ago
parent d720668a63
commit fc09387617

@ -7,7 +7,7 @@ ENV = 'production'
#林纪裕 #林纪裕
# VUE_APP_BASE_API = 'http://101.43.77.55:9150/UDI_SPMS_SERVER/' # VUE_APP_BASE_API = 'http://101.43.77.55:9150/UDI_SPMS_SERVER/'
# VUE_APP_BASE_API = 'http://r.jiyuudims.cloud:82/UDI_SPMS_SERVER/' VUE_APP_BASE_API = 'http://r.jiyuudims.cloud:82/UDI_SPMS_SERVER/'
# VUE_APP_BASE_API = 'http://127.0.0.1:9150/UDI_SPMS_SERVER/' # VUE_APP_BASE_API = 'http://127.0.0.1:9150/UDI_SPMS_SERVER/'
@ -15,7 +15,7 @@ ENV = 'production'
# VUE_APP_BASE_API = 'http://116.204.106.103:9150/UDI_SPMS_SERVER/' # VUE_APP_BASE_API = 'http://116.204.106.103:9150/UDI_SPMS_SERVER/'
# 平潭 # 平潭
VUE_APP_BASE_API = 'http://121.204.169.96:9150/UDI_SPMS_SERVER/' # VUE_APP_BASE_API = 'http://121.204.169.96:9150/UDI_SPMS_SERVER/'
# 文明懂 # 文明懂
# VUE_APP_BASE_API = 'http://192.168.0.62:9150/UDI_SPMS_SERVER/' # VUE_APP_BASE_API = 'http://192.168.0.62:9150/UDI_SPMS_SERVER/'

@ -342,7 +342,7 @@ export default {
corpLoading: false, corpLoading: false,
fromOptions: [], fromOptions: [],
invoiceLoading: false,
formName: 1, formName: 1,
formMap: { formMap: {
1: "发票登记", 1: "发票登记",
@ -525,6 +525,7 @@ export default {
postInvoice() { postInvoice() {
insertInvoice(this.inputQuery) insertInvoice(this.inputQuery)
.then((response) => { .then((response) => {
this.closeDialog();
if (response.code === 20000) { if (response.code === 20000) {
this.statusCode = response.code; this.statusCode = response.code;
this.getOrderDetails(); this.getOrderDetails();
@ -536,10 +537,10 @@ export default {
this.$message.error(response.message); this.$message.error(response.message);
}); });
// // //
updateorderBiz(this.inputQuery.list).then((res) => { // updateorderBiz(this.inputQuery.list).then((res) => {
this.closeDialog(); // this.closeDialog();
}); // });
}, },
getInputFocus(event) { getInputFocus(event) {

@ -142,15 +142,15 @@
:default-sort="defaultSort" :default-sort="defaultSort"
@sort-change="handleSortChange"> @sort-change="handleSortChange">
<el-table-column label="序号" type="index"></el-table-column> <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"> <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>
<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>
<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> </el-tag>
</template> </template>
@ -164,11 +164,11 @@
</el-table-column> </el-table-column>
<el-table-column label="创建时间" prop="createTime" width="150" show-overflow-tooltip <el-table-column label="创建时间" prop="createTime" width="150" show-overflow-tooltip
sortable="custom" sortable="custom"
:sort-orders="['ascending', 'descending']" > :sort-orders="['ascending', 'descending']">
</el-table-column> </el-table-column>
<el-table-column label="审核时间" prop="auditTime" width="150" show-overflow-tooltip <el-table-column label="审核时间" prop="auditTime" width="150" show-overflow-tooltip
sortable="custom" sortable="custom"
:sort-orders="['ascending', 'descending']" > :sort-orders="['ascending', 'descending']">
</el-table-column> </el-table-column>
<el-table-column label="采购部门" prop="deptName" width="120" v-if="enableDept"> <el-table-column label="采购部门" prop="deptName" width="120" v-if="enableDept">
@ -340,7 +340,7 @@
<!--单据业务详情--> <!--单据业务详情-->
<el-tab-pane> <el-tab-pane>
<span slot="label">单据 {{ currentRow.billNo }}-发票信息</span> <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" row-key="id"
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
@ -684,6 +684,7 @@ export default {
bizTotal: 0, bizTotal: 0,
invTotal: 0, invTotal: 0,
bizDetailLoading: false, bizDetailLoading: false,
invoiceLoading: false,
bizDetailList: [], bizDetailList: [],
codeQuery: { codeQuery: {
orderIdFk: null, orderIdFk: null,
@ -836,7 +837,7 @@ export default {
deleteById(row) deleteById(row)
.then((response) => { .then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
if(response.data.length == 0){ if (response.data.length == 0) {
this.getList(); this.getList();
} }
this.getBizDetailListInv(this.subRow); this.getBizDetailListInv(this.subRow);
@ -972,7 +973,7 @@ export default {
for (var i = 0; i < invlist1.length; i++) { for (var i = 0; i < invlist1.length; i++) {
if (invlist1[i].code == 1000000) { if (invlist1[i].code == 1000000) {
this.invList.push(invlist1[i]); this.invList.push(invlist1[i]);
this.filterQuery.invCode=invlist1[i].code; this.filterQuery.invCode = invlist1[i].code;
} }
} }
@ -1019,7 +1020,7 @@ export default {
} }
this.codeQuery.orderIdFk = this.currentRow.billNo; this.codeQuery.orderIdFk = this.currentRow.billNo;
this.codeDetailLoading = true; this.codeDetailLoading = true;
this.codeDetailList=[]; this.codeDetailList = [];
filterBizOrderList(this.codeQuery).then((res) => { filterBizOrderList(this.codeQuery).then((res) => {
this.codeDetailLoading = false; this.codeDetailLoading = false;
if (res.code === 20000) { if (res.code === 20000) {
@ -1055,7 +1056,7 @@ export default {
this.$message.error("请先选择需要查询的单据!") this.$message.error("请先选择需要查询的单据!")
return; return;
} }
this.bizDetailLoading = true; this.invoiceLoading = true;
this.bizQuery.orderIdFk = this.currentRow.billNo; this.bizQuery.orderIdFk = this.currentRow.billNo;
if (row != null) { if (row != null) {
this.bizQuery.orderIdFk = row.orderIdFk; this.bizQuery.orderIdFk = row.orderIdFk;
@ -1064,7 +1065,7 @@ export default {
//this.bizQuery.bizIdFk = row.id; //this.bizQuery.bizIdFk = row.id;
} }
filterListInvoice(this.bizQuery).then((res) => { filterListInvoice(this.bizQuery).then((res) => {
this.bizDetailLoading = false; this.invoiceLoading = false;
if (res.code === 20000) { if (res.code === 20000) {
this.bizDetailList = res.data.list || []; this.bizDetailList = res.data.list || [];
this.invTotal = res.data.total || 0; this.invTotal = res.data.total || 0;
@ -1074,7 +1075,7 @@ export default {
this.invTotal = 0; this.invTotal = 0;
} }
}).catch((error) => { }).catch((error) => {
this.bizDetailLoading = false; this.invoiceLoading = false;
this.$message.error(error.message); this.$message.error(error.message);
this.bizDetailList = []; this.bizDetailList = [];
this.invTotal = 0; this.invTotal = 0;

Loading…
Cancel
Save