完善发票管理前端,修复不能组合开票 bug
This commit is contained in:
parent
159132ee7e
commit
d92f8cd997
@ -413,7 +413,7 @@
|
||||
<el-table-column label="发票号" align="center" prop="invoiceNum"/>
|
||||
<el-table-column label="税号" align="center" prop="taxId"/>
|
||||
<el-table-column label="收款方式" align="center" prop="collectionType"/>
|
||||
<el-table-column label="开票类型" align="center" prop="invoiceType" :formatter="formatInvoiceType"/>
|
||||
<el-table-column label="回款跟踪" align="center" prop="invoiceType" :formatter="formatInvoiceType"/>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
@ -500,9 +500,9 @@ export default {
|
||||
methods: {
|
||||
formatInvoiceType(row) {
|
||||
if (row.invoiceType === 1 || row.invoiceType === "1") {
|
||||
return "开票"
|
||||
return "完成"
|
||||
} else {
|
||||
return "挂账"
|
||||
return "未完成"
|
||||
}
|
||||
},
|
||||
/** 查询财务收费开票列表 */
|
||||
|
@ -188,13 +188,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
addSettlement,
|
||||
delSettlement,
|
||||
exportSettlement,
|
||||
getSettlement,
|
||||
listSettlement
|
||||
} from "../../../api/fantang/settlement";
|
||||
import {delSettlement, exportSettlement, getSettlement, listSettlement} from "../../../api/fantang/settlement";
|
||||
import {addToInvoice} from "../../../api/fantang/invoice";
|
||||
|
||||
export default {
|
||||
@ -442,19 +436,12 @@ export default {
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.settleId != null) {
|
||||
addToInvoice(this.form).then(response => {
|
||||
this.msgSuccess("已开票");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
})
|
||||
} else {
|
||||
addSettlement(this.form).then(response => {
|
||||
this.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
addToInvoice(this.form).then(response => {
|
||||
this.msgSuccess("已开票");
|
||||
this.open = false;
|
||||
this.combinationOpen = false;
|
||||
this.getList();
|
||||
})
|
||||
}
|
||||
});
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user