fix:应付付款审批添加应付单、项目超链接
parent
6280850e30
commit
53d900ca22
|
|
@ -28,8 +28,16 @@
|
||||||
<div class="el-descriptions__title">应付单信息</div>
|
<div class="el-descriptions__title">应付单信息</div>
|
||||||
<el-table :data="data.payableDetails" border style="width: 100%; margin-top: 10px;">
|
<el-table :data="data.payableDetails" border style="width: 100%; margin-top: 10px;">
|
||||||
<el-table-column type="index" label="序号" width="50" align="center"></el-table-column>
|
<el-table-column type="index" label="序号" width="50" align="center"></el-table-column>
|
||||||
<el-table-column prop="payableBillCode" label="采购-应付单编号" align="center"></el-table-column>
|
<el-table-column label="采购-应付单编号" align="center">
|
||||||
<el-table-column prop="projectName" label="项目名称" align="center"></el-table-column>
|
<template slot-scope="scope">
|
||||||
|
<el-button type="text" @click="handleViewPayable(scope.row)">{{ scope.row.payableBillCode }}</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="项目名称" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a @click="handleViewProject(scope.row)" class="link-type">{{ scope.row.projectName }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="productType" label="产品类型" align="center">
|
<el-table-column prop="productType" label="产品类型" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<dict-tag :options="dict.type.product_type" :value="scope.row.productType"/>
|
<dict-tag :options="dict.type.product_type" :value="scope.row.productType"/>
|
||||||
|
|
@ -62,6 +70,9 @@
|
||||||
<el-dialog :visible.sync="imagePreviewVisible" width="60%" append-to-body top="5vh" title="图片预览">
|
<el-dialog :visible.sync="imagePreviewVisible" width="60%" append-to-body top="5vh" title="图片预览">
|
||||||
<img :src="currentImageUrl" style="width: 100%;" />
|
<img :src="currentImageUrl" style="width: 100%;" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
<edit-form :visible.sync="payableVisible" :data="selectedPayableRow" :z-index="2000" @close="payableVisible = false" />
|
||||||
|
<project-detail-drawer :visible.sync="projectDrawerVisible" :project-id="currentProjectId" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -69,9 +80,12 @@
|
||||||
|
|
||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import {formatCurrency} from "@/utils";
|
import {formatCurrency} from "@/utils";
|
||||||
|
import EditForm from "@/views/finance/payable/components/EditForm.vue";
|
||||||
|
import ProjectDetailDrawer from "@/views/project/info/ProjectDetailDrawer.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "PaymentDetail",
|
name: "PaymentDetail",
|
||||||
|
components: { EditForm, ProjectDetailDrawer },
|
||||||
props: {
|
props: {
|
||||||
data: {
|
data: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
|
@ -86,7 +100,11 @@ export default {
|
||||||
pdfPreviewVisible: false,
|
pdfPreviewVisible: false,
|
||||||
currentPdfUrl: '',
|
currentPdfUrl: '',
|
||||||
imagePreviewVisible: false,
|
imagePreviewVisible: false,
|
||||||
currentImageUrl: ''
|
currentImageUrl: '',
|
||||||
|
payableVisible: false,
|
||||||
|
selectedPayableRow: {},
|
||||||
|
projectDrawerVisible: false,
|
||||||
|
currentProjectId: null
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
@ -128,6 +146,15 @@ export default {
|
||||||
document.body.appendChild(link);
|
document.body.appendChild(link);
|
||||||
link.click();
|
link.click();
|
||||||
document.body.removeChild(link);
|
document.body.removeChild(link);
|
||||||
|
},
|
||||||
|
handleViewPayable(row) {
|
||||||
|
row.id = row.payableBillId;
|
||||||
|
this.selectedPayableRow = row;
|
||||||
|
this.payableVisible = true;
|
||||||
|
},
|
||||||
|
handleViewProject(row) {
|
||||||
|
this.currentProjectId = row.projectId;
|
||||||
|
this.projectDrawerVisible = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
:visible.sync="localVisible"
|
:visible.sync="localVisible"
|
||||||
direction="rtl"
|
direction="rtl"
|
||||||
size="70%"
|
size="70%"
|
||||||
|
:z-index="zIndex"
|
||||||
@close="handleClose"
|
@close="handleClose"
|
||||||
:wrapper-closable="false"
|
:wrapper-closable="false"
|
||||||
:with-header="true"
|
:with-header="true"
|
||||||
|
|
@ -398,6 +399,10 @@ export default {
|
||||||
type: [Number, String],
|
type: [Number, String],
|
||||||
default: null,
|
default: null,
|
||||||
},
|
},
|
||||||
|
zIndex: {
|
||||||
|
type: Number,
|
||||||
|
default: 2000
|
||||||
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,9 @@ import java.util.Date;
|
||||||
@Data
|
@Data
|
||||||
public class PaymentBillPayableDetailDTO {
|
public class PaymentBillPayableDetailDTO {
|
||||||
|
|
||||||
|
/** 项目ID */
|
||||||
|
private Long projectId;
|
||||||
|
|
||||||
/** 项目编号 */
|
/** 项目编号 */
|
||||||
private String projectCode;
|
private String projectCode;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
ORDER BY t1.create_time DESC
|
ORDER BY t1.create_time DESC
|
||||||
</select>
|
</select>
|
||||||
<select id="listPayableByPaymentCode" resultType="com.ruoyi.sip.domain.dto.PaymentBillPayableDetailDTO">
|
<select id="listPayableByPaymentCode" resultType="com.ruoyi.sip.domain.dto.PaymentBillPayableDetailDTO">
|
||||||
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
|
select t1.payment_amount, t1.payable_bill_id, t2.payable_bill_code, t3.project_id, t4.project_name, t4.project_code, t2.total_price_with_tax,t2.product_type
|
||||||
from (SELECT sum(payment_amount) payment_amount,
|
from (SELECT sum(payment_amount) payment_amount,
|
||||||
payable_bill_id
|
payable_bill_id
|
||||||
FROM oms_payable_payment_detail t1
|
FROM oms_payable_payment_detail t1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue