fix:付款单/收票单/收款单/开票单详情中添加应付单/应收单详情页
parent
c39ed025b9
commit
5409a3c225
|
|
@ -116,7 +116,11 @@
|
|||
<el-table-column type="index" label="序号" width="50"></el-table-column>
|
||||
<!-- <el-table-column property="projectCode" label="项目编号"></el-table-column>-->
|
||||
<el-table-column property="projectName" label="项目名称"></el-table-column>
|
||||
<el-table-column property="receivableBillCode" label="销售-应收单编号"></el-table-column>
|
||||
<el-table-column label="销售 - 应收单编号">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" @click="handleViewReceivable(scope.row)">{{ scope.row.receivableBillCode }}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column property="totalPriceWithTax" label="含税总价(元)"></el-table-column>
|
||||
<el-table-column property="receiptAmount" label="本次开票金额">
|
||||
<template slot-scope="scope">
|
||||
|
|
@ -131,12 +135,16 @@
|
|||
</el-table>
|
||||
</div>
|
||||
</div>
|
||||
<edit-form :visible.sync="receivableVisible" :data="selectedReceivableRow" :z-index="2000" @close="receivableVisible = false" />
|
||||
</el-drawer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import EditForm from "@/views/finance/receivable/components/EditForm.vue";
|
||||
|
||||
export default {
|
||||
name: "DetailDrawer",
|
||||
components: {EditForm},
|
||||
props: {
|
||||
visible: {
|
||||
type: Boolean,
|
||||
|
|
@ -148,10 +156,21 @@ export default {
|
|||
},
|
||||
},
|
||||
dicts:['finance_invoice_type','approve_status','invoice_bill_status'],
|
||||
data() {
|
||||
return {
|
||||
receivableVisible: false,
|
||||
selectedReceivableRow: {},
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
handleClose() {
|
||||
this.$emit("update:visible", false);
|
||||
},
|
||||
handleViewReceivable(row) {
|
||||
row.id = row.receivableBillId;
|
||||
this.selectedReceivableRow = row;
|
||||
this.receivableVisible = true;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="审批节点" align="center" prop="approveNode" width="100" fixed="right"/>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="100" fixed="right">
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width operation-column" width="100" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
|
|
@ -400,3 +400,9 @@ export default {
|
|||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.operation-column .el-button--text:hover {
|
||||
color: red !important;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<el-drawer title="采购-应付单详情" :visible.sync="internalVisible" :wrapper-closable="false" size="70%" @close="handleClose">
|
||||
<el-drawer title="采购 - 应付单详情" :visible.sync="internalVisible" :wrapper-closable="false" size="70%" :z-index="zIndex" @close="handleClose">
|
||||
<div class="dialog-body">
|
||||
<!-- Part 1: Details -->
|
||||
<div>
|
||||
|
|
@ -207,6 +207,10 @@ export default {
|
|||
data: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
},
|
||||
zIndex: {
|
||||
type: Number,
|
||||
default: 2000
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@
|
|||
<el-table-column label="未付款金额(元)" align="center" prop="unpaidPaymentAmount" width="120" :formatter="(row, column, cellValue)=>formatCurrency(cellValue)" />
|
||||
<el-table-column label="未收票金额(元)" align="center" prop="unreceivedTicketAmount" width="120" :formatter="(row, column, cellValue)=>formatCurrency(cellValue)" />
|
||||
<!-- <el-table-column label="付款中金额" align="center" prop="payingAmount" width="120" />-->
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="300" fixed="right">
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width operation-column" width="300" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
|
|
@ -468,3 +468,9 @@ export default {
|
|||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.operation-column .el-button--text:hover {
|
||||
color: red !important;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
:wrapper-closable="false"
|
||||
@close="handleClose"
|
||||
>
|
||||
<div class="dialog-body" v-if="detail">
|
||||
<div class="dialog-body" v-if="detail" ref="paymentDrawer">
|
||||
<div class="section">
|
||||
<el-divider content-position="left">采购-付款单</el-divider>
|
||||
<div class="details-container">
|
||||
|
|
@ -118,7 +118,11 @@
|
|||
<el-table-column type="index" label="序号" width="50"></el-table-column>
|
||||
<el-table-column property="projectCode" label="项目编号"></el-table-column>
|
||||
<el-table-column property="projectName" label="项目名称"></el-table-column>
|
||||
<el-table-column property="payableBillCode" label="采购-应付单编号"></el-table-column>
|
||||
<el-table-column label="采购应付单编号">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" @click="handleViewPayable(scope.row)" >{{ scope.row.payableBillCode }}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column property="totalPriceWithTax" label="含税总价" :formatter="(row, column, cellValue)=>formatCurrency(cellValue)"></el-table-column>
|
||||
<el-table-column property="paymentAmount" label="本次付款金额">
|
||||
<template slot-scope="scope">
|
||||
|
|
@ -133,15 +137,17 @@
|
|||
</el-table>
|
||||
</div>
|
||||
</div>
|
||||
<edit-form :visible.sync="payableVisible" :data="selectedPayableRow" :z-index="2000" @close="payableVisible = false" />
|
||||
</el-drawer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import FileUpload from "@/components/FileUpload";
|
||||
import EditForm from "@/views/finance/payable/components/EditForm.vue";
|
||||
|
||||
export default {
|
||||
name: "DetailDrawer",
|
||||
components: {FileUpload},
|
||||
components: {FileUpload, EditForm},
|
||||
props: {
|
||||
visible: {
|
||||
type: Boolean,
|
||||
|
|
@ -156,6 +162,8 @@ export default {
|
|||
return {
|
||||
fileList: [],
|
||||
fileId: null,
|
||||
payableVisible: false,
|
||||
selectedPayableRow: {},
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
|
|
@ -206,6 +214,11 @@ export default {
|
|||
};
|
||||
this.$emit('submit', saveData);
|
||||
},
|
||||
handleViewPayable(row) {
|
||||
row.id = row.payableBillId;
|
||||
this.selectedPayableRow = row;
|
||||
this.payableVisible = true;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="审批节点" fixed="right" width="80" align="center" prop="approveNode"/>
|
||||
<el-table-column label="操作" fixed="right" width="100" align="center" class-name="small-padding fixed-width">
|
||||
<el-table-column label="操作" fixed="right" width="100" align="center" class-name="small-padding fixed-width operation-column">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
|
|
@ -571,3 +571,9 @@ export default {
|
|||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.operation-column .el-button--text:hover {
|
||||
color: red !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
|
|
|||
|
|
@ -80,19 +80,27 @@
|
|||
<el-table-column type="index" label="序号" width="50"></el-table-column>
|
||||
<el-table-column property="projectCode" label="项目编号"></el-table-column>
|
||||
<el-table-column property="projectName" label="项目名称"></el-table-column>
|
||||
<el-table-column property="payableBillCode" label="采购应付单编号"></el-table-column>
|
||||
<el-table-column label="采购应付单编号">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" @click="handleViewPayable(scope.row)">{{ scope.row.payableBillCode }}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column property="totalPriceWithTax" label="含税总价" :formatter="(row, column, cellValue)=>formatCurrency(cellValue)"></el-table-column>
|
||||
<el-table-column property="paymentAmount" label="本次收票金额" :formatter="(row, column, cellValue)=>formatCurrency(cellValue)"></el-table-column>
|
||||
<el-table-column property="paymentRate" label="本次收票比例(%)"></el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</div>
|
||||
<edit-form :visible.sync="payableVisible" :data="selectedPayableRow" :z-index="2000" @close="payableVisible = false" />
|
||||
</el-drawer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import EditForm from "@/views/finance/payable/components/EditForm.vue";
|
||||
|
||||
export default {
|
||||
name: "DetailDrawer",
|
||||
components: {EditForm},
|
||||
props: {
|
||||
visible: {
|
||||
type: Boolean,
|
||||
|
|
@ -103,11 +111,22 @@ export default {
|
|||
default: () => null,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
payableVisible: false,
|
||||
selectedPayableRow: {},
|
||||
};
|
||||
},
|
||||
dicts:['receipt_bill_type','approve_status','receipt_status'],
|
||||
methods: {
|
||||
handleClose() {
|
||||
this.$emit("update:visible", false);
|
||||
},
|
||||
handleViewPayable(row) {
|
||||
row.id = row.payableBillId;
|
||||
this.selectedPayableRow = row;
|
||||
this.payableVisible = true;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="审批节点" align="center" prop="approveNode" width="100" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width operation-column">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
|
|
@ -434,3 +434,9 @@ export default {
|
|||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.operation-column .el-button--text:hover {
|
||||
color: red !important;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<el-drawer title="修改销售应收单" :visible.sync="internalVisible" size="70%" @close="handleClose">
|
||||
<el-drawer title="修改销售应收单" :visible.sync="internalVisible" size="70%" :z-index="zIndex" @close="handleClose">
|
||||
<div class="dialog-body">
|
||||
<!-- Part 1: Details -->
|
||||
<div>
|
||||
|
|
@ -197,6 +197,10 @@ export default {
|
|||
data: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
},
|
||||
zIndex: {
|
||||
type: Number,
|
||||
default: 2000
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@
|
|||
<el-table-column label="含税总价(元)" align="center" prop="totalPriceWithTax" width="120" :formatter="(row, column, cellValue)=>formatCurrency(cellValue)"/>
|
||||
<el-table-column label="未收款金额" align="center" prop="unreceivedAmount" width="120" :formatter="(row, column, cellValue)=>formatCurrency(cellValue)"/>
|
||||
<el-table-column label="未开票金额" align="center" prop="uninvoicedAmount" width="120" :formatter="(row, column, cellValue)=>formatCurrency(cellValue)" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="120" fixed="right">
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width operation-column" width="120" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
|
|
@ -331,3 +331,9 @@ export default {
|
|||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.operation-column .el-button--text:hover {
|
||||
color: red !important;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -105,7 +105,11 @@
|
|||
<el-table-column type="index" label="序号" width="50"></el-table-column>
|
||||
<el-table-column property="projectCode" label="项目编号"></el-table-column>
|
||||
<el-table-column property="projectName" label="项目名称"></el-table-column>
|
||||
<el-table-column property="receivableBillCode" label="应收单编号"></el-table-column>
|
||||
<el-table-column label="应收单编号">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" @click="handleViewReceivable(scope.row)">{{ scope.row.receivableBillCode }}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column property="totalPriceWithTax" label="含税总价(元)" :formatter="(row, column, cellValue)=>formatCurrency(cellValue)"></el-table-column>
|
||||
<el-table-column property="receiptAmount" label="本次收款金额">
|
||||
<template slot-scope="scope">
|
||||
|
|
@ -126,16 +130,19 @@
|
|||
|
||||
<GlobalFilePreview ref="filePreview" />
|
||||
</div>
|
||||
<edit-form :visible.sync="receivableVisible" :data="selectedReceivableRow" :z-index="2000" @close="receivableVisible = false" />
|
||||
</el-drawer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import GlobalFilePreview from '@/components/GlobalFilePreview';
|
||||
import EditForm from "@/views/finance/receivable/components/EditForm.vue";
|
||||
|
||||
export default {
|
||||
name: "DetailDrawer",
|
||||
components: {
|
||||
GlobalFilePreview
|
||||
GlobalFilePreview,
|
||||
EditForm
|
||||
},
|
||||
props: {
|
||||
visible: {
|
||||
|
|
@ -149,6 +156,8 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
receivableVisible: false,
|
||||
selectedReceivableRow: {},
|
||||
};
|
||||
},
|
||||
dicts:['receipt_bill_type','approve_status','receipt_bill_status','payment_method'],
|
||||
|
|
@ -161,7 +170,12 @@ export default {
|
|||
},
|
||||
downloadFile(attachment) {
|
||||
this.$refs.filePreview.downloadFile(attachment);
|
||||
}
|
||||
},
|
||||
handleViewReceivable(row) {
|
||||
row.id = row.receivableBillId;
|
||||
this.selectedReceivableRow = row;
|
||||
this.receivableVisible = true;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="审批节点" align="center" prop="approveNode" width="100" fixed="right" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="120" fixed="right">
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width operation-column" width="120" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
|
|
@ -405,3 +405,9 @@ export default {
|
|||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.operation-column .el-button--text:hover {
|
||||
color: red !important;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -21,6 +21,9 @@ public class PaymentBillPayableDetailDTO {
|
|||
private String projectName;
|
||||
private String productType;
|
||||
|
||||
/** 采购应付单ID */
|
||||
private Long payableBillId;
|
||||
|
||||
/** 采购应付单编号 */
|
||||
private String payableBillCode;
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,10 @@ public class ReceiptDetailDTO {
|
|||
private String projectName;
|
||||
private String productType;
|
||||
|
||||
/** 采购应付单编号 */
|
||||
/** 采购应收单ID */
|
||||
private Long receivableBillId;
|
||||
|
||||
/** 采购应收单编号 */
|
||||
private String receivableBillCode;
|
||||
|
||||
/** 应付单含税总价 */
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
ORDER BY t1.create_time DESC
|
||||
</select>
|
||||
<select id="listPayableByPaymentCode" resultType="com.ruoyi.sip.domain.dto.PaymentBillPayableDetailDTO">
|
||||
select t1.payment_amount, t2.payable_bill_code, t4.project_name, t4.project_code, t2.total_price_with_tax,t2.product_type
|
||||
select t1.payment_amount, t1.payable_bill_id, t2.payable_bill_code, t4.project_name, t4.project_code, t2.total_price_with_tax,t2.product_type
|
||||
from (SELECT sum(payment_amount) payment_amount,
|
||||
payable_bill_id
|
||||
FROM oms_payable_payment_detail t1
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
where id = #{id}
|
||||
</select>
|
||||
<select id="listByTickerCode" resultType="com.ruoyi.sip.domain.dto.PaymentBillPayableDetailDTO">
|
||||
select t1.payment_amount, t2.payable_bill_code,t2.product_type, t4.project_name, t4.project_code, t2.total_price_with_tax
|
||||
select t1.payment_amount, t1.payable_bill_id, t2.payable_bill_code,t2.product_type, t4.project_name, t4.project_code, t2.total_price_with_tax
|
||||
from (SELECT sum(payment_amount) payment_amount,
|
||||
payable_bill_id
|
||||
FROM oms_payable_ticket_detail t1
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
order by create_time desc
|
||||
</select>
|
||||
<select id="listReceivableByInvoiceBillCode" resultType="com.ruoyi.sip.domain.dto.ReceiptDetailDTO">
|
||||
select t1.receipt_amount, t2.receivable_bill_code, t4.project_name, t4.project_code, t2.total_price_with_tax,t2.product_type
|
||||
select t1.receipt_amount, t1.receivable_bill_id, t2.receivable_bill_code, t4.project_name, t4.project_code, t2.total_price_with_tax,t2.product_type
|
||||
from (SELECT sum(invoice_amount) receipt_amount,
|
||||
receivable_bill_id
|
||||
FROM oms_receivable_invoice_detail t1
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
ORDER BY t1.create_time DESC
|
||||
</select>
|
||||
<select id="listReceivableByReceiptBillCode" resultType="com.ruoyi.sip.domain.dto.ReceiptDetailDTO">
|
||||
select t1.receipt_amount, t2.receivable_bill_code, t4.project_name, t4.project_code, t2.total_price_with_tax,t2.product_type
|
||||
select t1.receipt_amount, t1.receivable_bill_id, t2.receivable_bill_code, t4.project_name, t4.project_code, t2.total_price_with_tax,t2.product_type
|
||||
from (SELECT sum(receipt_amount) receipt_amount,
|
||||
receivable_bill_id
|
||||
FROM oms_receivable_receipt_detail t1
|
||||
|
|
|
|||
Loading…
Reference in New Issue