feat(finance): 优化财务模块界面显示和业务逻辑
- 添加paymentRedLog路由用于付款退款审批日志 - 统一各审批页面底部编号显示格式,移除冗余标签文字 - 为金额列添加红色样式高亮显示 - 优化审批状态标签颜色显示,根据状态值动态设置标签类型 - 修复收票单详情页面跳转路径错误 - 在各财务单据详情页添加标题标识 - 优化发票详情页金额显示颜色 - 修复发票单据数据更新时时间字段处理逻辑 - 优化供应商信息回填逻辑,避免覆盖已有数据 - 完善退款流程中的单据状态检查 - 修复收票单红冲功能中的业务逻辑错误 - 更新付款单详情页显示字段 - 添加技术方案会审分隔区域 - 修复附件获取类型参数错误dev_1.0.0
parent
d1e23c58ef
commit
0dfdeee19d
|
|
@ -99,6 +99,11 @@ export const constantRoutes = [
|
||||||
component: () => import('@/views/approve/finance/payment/approved/index'),
|
component: () => import('@/views/approve/finance/payment/approved/index'),
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'paymentRedLog',
|
||||||
|
component: () => import('@/views/approve/finance/paymentRefund/approved/index'),
|
||||||
|
hidden: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'invoiceRedLog',
|
path: 'invoiceRedLog',
|
||||||
component: () => import('@/views/approve/finance/invoiceRed/approved/index'),
|
component: () => import('@/views/approve/finance/invoiceRed/approved/index'),
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
<ApproveLayout ref="approveLayout" title="收票单详情">
|
<ApproveLayout ref="approveLayout" title="收票单详情">
|
||||||
<invoice-receipt-detail :data="form"></invoice-receipt-detail>
|
<invoice-receipt-detail :data="form"></invoice-receipt-detail>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span>收票编号: {{ form.invoiceBillCode }}</span>
|
<span> {{ form.ticketBillCode }}</span>
|
||||||
</template>
|
</template>
|
||||||
</ApproveLayout>
|
</ApproveLayout>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="invoice-receipt-detail">
|
<div class="invoice-receipt-detail">
|
||||||
|
<div style="text-align: center;font-weight:bold;font-size: 25px;">收票申请单</div>
|
||||||
<el-descriptions title="收票单信息" :column="3" border>
|
<el-descriptions title="收票单信息" :column="3" border>
|
||||||
<el-descriptions-item label="采购-收票单编号">{{ data.ticketBillCode }}</el-descriptions-item>
|
<el-descriptions-item label="采购-收票单编号">{{ data.ticketBillCode }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="制造商名称">{{ data.vendorName }}</el-descriptions-item>
|
<el-descriptions-item label="制造商名称">{{ data.vendorName }}</el-descriptions-item>
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@
|
||||||
<ApproveLayout ref="approveLayout" title="收票单详情">
|
<ApproveLayout ref="approveLayout" title="收票单详情">
|
||||||
<invoice-receipt-detail :data="form"></invoice-receipt-detail>
|
<invoice-receipt-detail :data="form"></invoice-receipt-detail>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span>收票编号: {{ form.invoiceBillCode }}</span>
|
<span>{{ form.ticketBillCode }}</span>
|
||||||
</template>
|
</template>
|
||||||
</ApproveLayout>
|
</ApproveLayout>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@
|
||||||
<ApproveLayout ref="approveLayout" title="红冲发票详情">
|
<ApproveLayout ref="approveLayout" title="红冲发票详情">
|
||||||
<invoice-red-detail :data="form"></invoice-red-detail>
|
<invoice-red-detail :data="form"></invoice-red-detail>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span>收票编号: {{ form.receiptBillCode }}</span>
|
<span> {{ form.ticketBillCode }}</span>
|
||||||
</template>
|
</template>
|
||||||
</ApproveLayout>
|
</ApproveLayout>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,15 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="invoice-red-detail">
|
<div class="invoice-red-detail">
|
||||||
|
<div style="text-align: center;font-weight:bold;font-size: 25px;">红冲收票申请单</div>
|
||||||
<el-descriptions title="红冲发票信息" :column="3" border>
|
<el-descriptions title="红冲发票信息" :column="3" border>
|
||||||
<el-descriptions-item label="采购-收票单编号">{{ data.ticketBillCode }}</el-descriptions-item>
|
<el-descriptions-item label="采购-收票单编号">{{ data.ticketBillCode }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="制造商名称">{{ data.vendorName }}</el-descriptions-item>
|
<el-descriptions-item label="制造商名称">{{ data.vendorName }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="票据类型">
|
<el-descriptions-item label="票据类型">
|
||||||
<dict-tag :options="dict.type.finance_invoice_type" :value="data.ticketType"/>
|
<dict-tag :options="dict.type.finance_invoice_type" :value="data.ticketType"/>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="含税总价(元)">{{ data.totalPriceWithTax }}</el-descriptions-item>
|
<el-descriptions-item label="含税总价(元)"><span style="color: red">{{ data.totalPriceWithTax }} </span></el-descriptions-item>
|
||||||
<el-descriptions-item label="未税总价(元)">{{ data.totalPriceWithoutTax }}</el-descriptions-item>
|
<el-descriptions-item label="未税总价(元)"><span style="color: red">{{ data.totalPriceWithTax }}</span></el-descriptions-item>
|
||||||
<el-descriptions-item label="税额(元)">{{ data.taxAmount }}</el-descriptions-item>
|
<el-descriptions-item label="税额(元)"><span style="color: red">{{ data.taxAmount }} </span></el-descriptions-item>
|
||||||
<el-descriptions-item label="收票时间">{{ data.ticketTime }}</el-descriptions-item>
|
<el-descriptions-item label="收票时间">{{ data.ticketTime }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="制造商开票时间">{{ data.vendorTicketTime }}</el-descriptions-item>
|
<el-descriptions-item label="制造商开票时间">{{ data.vendorTicketTime }}</el-descriptions-item>
|
||||||
<!-- <el-descriptions-item label="备注" :span="3">{{ data.remark }}</el-descriptions-item>-->
|
<!-- <el-descriptions-item label="备注" :span="3">{{ data.remark }}</el-descriptions-item>-->
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,11 @@
|
||||||
<el-table-column label="收票编号" align="center" prop="ticketBillCode" />
|
<el-table-column label="收票编号" align="center" prop="ticketBillCode" />
|
||||||
<el-table-column label="供应商" align="center" prop="vendorName" />
|
<el-table-column label="供应商" align="center" prop="vendorName" />
|
||||||
<!-- <el-table-column label="项目名称" align="center" prop="projectName" />-->
|
<!-- <el-table-column label="项目名称" align="center" prop="projectName" />-->
|
||||||
<el-table-column label="金额" align="center" prop="totalPriceWithTax" />
|
<el-table-column label="金额" align="center" prop="totalPriceWithTax" >
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span style="color: red">{{ scope.row.totalPriceWithTax }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<!-- <el-table-column label="登记人" align="center" prop="createUserName" />-->
|
<!-- <el-table-column label="登记人" align="center" prop="createUserName" />-->
|
||||||
<el-table-column label="提交日期" align="center" prop="applyTime" width="180">
|
<el-table-column label="提交日期" align="center" prop="applyTime" width="180">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
@ -77,7 +81,7 @@
|
||||||
<ApproveLayout ref="approveLayout" title="红冲发票详情">
|
<ApproveLayout ref="approveLayout" title="红冲发票详情">
|
||||||
<invoice-red-detail :data="form"></invoice-red-detail>
|
<invoice-red-detail :data="form"></invoice-red-detail>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span>收票编号: {{ form.ticketBillCode }}</span>
|
<span> {{ form.ticketBillCode }}</span>
|
||||||
</template>
|
</template>
|
||||||
</ApproveLayout>
|
</ApproveLayout>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@
|
||||||
<el-card>
|
<el-card>
|
||||||
<h4>{{ log.approveOpinion }}</h4>
|
<h4>{{ log.approveOpinion }}</h4>
|
||||||
<p><b>操作人:</b> {{ log.approveUserName }} </p>
|
<p><b>操作人:</b> {{ log.approveUserName }} </p>
|
||||||
<p><b>审批状态:</b> <el-tag size="small">{{ getStatusText(log.approveStatus) }}</el-tag></p>
|
<p><b>审批状态:</b><el-tag :type="log.approveStatus == '3' ? 'success' : log.approveStatus == '2' ? 'danger' : 'info'">{{ getStatusText(log.approveStatus) }}</el-tag></p>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-timeline-item>
|
</el-timeline-item>
|
||||||
</el-timeline>
|
</el-timeline>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,11 @@
|
||||||
<el-descriptions title="付款单信息" :column="3" border>
|
<el-descriptions title="付款单信息" :column="3" border>
|
||||||
<el-descriptions-item label="采购-付款单编号">{{ data.paymentBillCode }}</el-descriptions-item>
|
<el-descriptions-item label="采购-付款单编号">{{ data.paymentBillCode }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="制造商名称">{{ data.vendorName }}</el-descriptions-item>
|
<el-descriptions-item label="制造商名称">{{ data.vendorName }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="付款单类型">
|
<el-descriptions-item label="付款条件">
|
||||||
<dict-tag :options="dict.type.payment_bill_type" :value="data.paymentBillType"/>
|
{{data.payType==='0'?'入库付款':'出库付款'}}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="付款周期">
|
||||||
|
{{data.payConfigDay}}天
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="含税总价(元)">{{ data.totalPriceWithTax }}</el-descriptions-item>
|
<el-descriptions-item label="含税总价(元)">{{ data.totalPriceWithTax }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="未税总价(元)">{{ data.totalPriceWithoutTax }}</el-descriptions-item>
|
<el-descriptions-item label="未税总价(元)">{{ data.totalPriceWithoutTax }}</el-descriptions-item>
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,10 @@
|
||||||
<el-card>
|
<el-card>
|
||||||
<h4>{{ log.approveOpinion }}</h4>
|
<h4>{{ log.approveOpinion }}</h4>
|
||||||
<p><b>操作人:</b> {{ log.approveUserName }} </p>
|
<p><b>操作人:</b> {{ log.approveUserName }} </p>
|
||||||
<p><b>审批状态:</b> <el-tag size="small">{{ getStatusText(log.approveStatus) }}</el-tag></p>
|
<p><b>审批状态:</b>
|
||||||
|
|
||||||
|
<el-tag :type="log.approveStatus == '3' ? 'success' : log.approveStatus == '2' ? 'danger' : 'info'">{{ getStatusText(log.approveStatus) }}</el-tag></p>
|
||||||
|
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-timeline-item>
|
</el-timeline-item>
|
||||||
</el-timeline>
|
</el-timeline>
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,11 @@
|
||||||
<el-table-column label="付款编号" align="center" prop="paymentBillCode" />
|
<el-table-column label="付款编号" align="center" prop="paymentBillCode" />
|
||||||
<el-table-column label="制造商" align="center" prop="vendorName" />
|
<el-table-column label="制造商" align="center" prop="vendorName" />
|
||||||
<!-- <el-table-column label="项目名称" align="center" prop="projectName" />-->
|
<!-- <el-table-column label="项目名称" align="center" prop="projectName" />-->
|
||||||
<el-table-column label="金额" align="center" prop="totalPriceWithTax" />
|
<el-table-column label="金额" align="center" prop="totalPriceWithTax" >
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span style="color: red">{{ scope.row.totalPriceWithTax }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<!-- <el-table-column label="汇智负责人" align="center" prop="hzUserName" />-->
|
<!-- <el-table-column label="汇智负责人" align="center" prop="hzUserName" />-->
|
||||||
<el-table-column label="提交日期" align="center" prop="applyTime" width="180">
|
<el-table-column label="提交日期" align="center" prop="applyTime" width="180">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,18 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="payment-refund-detail">
|
<div class="payment-refund-detail">
|
||||||
<el-descriptions title="付款退款单信息" :column="3" border>
|
<div style="text-align: center;font-weight:bold;font-size: 25px;">退款申请单</div>
|
||||||
|
<el-descriptions title="付款单信息" :column="3" border>
|
||||||
<el-descriptions-item label="采购付款单编号">{{ data.paymentBillCode }}</el-descriptions-item>
|
<el-descriptions-item label="采购付款单编号">{{ data.paymentBillCode }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="制造商名称">{{ data.vendorName }}</el-descriptions-item>
|
<el-descriptions-item label="制造商名称">{{ data.vendorName }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="付款单类型">
|
<el-descriptions-item label="付款条件">
|
||||||
<dict-tag :options="dict.type.payment_bill_type" :value="data.paymentBillType"/>
|
{{data.payType==='0'?'入库付款':'出库付款'}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="含税总价(元)">{{ data.totalPriceWithTax }}</el-descriptions-item>
|
<el-descriptions-item label="付款周期">
|
||||||
<el-descriptions-item label="未税总价(元)">{{ data.totalPriceWithoutTax }}</el-descriptions-item>
|
{{data.payConfigDay}}天
|
||||||
<el-descriptions-item label="税额(元)">{{ data.taxAmount }}</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="含税总价(元)"><span style="color: red">{{ data.totalPriceWithTax }}</span></el-descriptions-item>
|
||||||
|
<el-descriptions-item label="未税总价(元)"><span style="color: red">{{ data.totalPriceWithoutTax }}</span></el-descriptions-item>
|
||||||
|
<el-descriptions-item label="税额(元)"><span style="color: red">{{ data.taxAmount }}</span></el-descriptions-item>
|
||||||
<el-descriptions-item label="支付方式">
|
<el-descriptions-item label="支付方式">
|
||||||
<dict-tag :options="dict.type.payment_method" :value="data.paymentMethod"/>
|
<dict-tag :options="dict.type.payment_method" :value="data.paymentMethod"/>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
|
@ -48,7 +52,7 @@ export default {
|
||||||
default: () => ({})
|
default: () => ({})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dicts: ['payment_bill_type', 'payment_method']
|
dicts: ['payment_bill_type', 'payment_method','product_type']
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,11 @@
|
||||||
<el-table-column label="付款编号" align="center" prop="paymentBillCode" />
|
<el-table-column label="付款编号" align="center" prop="paymentBillCode" />
|
||||||
<el-table-column label="制造商" align="center" prop="vendorName" />
|
<el-table-column label="制造商" align="center" prop="vendorName" />
|
||||||
<!-- <el-table-column label="项目名称" align="center" prop="projectName" />-->
|
<!-- <el-table-column label="项目名称" align="center" prop="projectName" />-->
|
||||||
<el-table-column label="金额" align="center" prop="totalPriceWithTax" />
|
<el-table-column label="金额" align="center" prop="totalPriceWithTax" >
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span style="color: red">{{ scope.row.totalPriceWithTax }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<!-- <el-table-column label="汇智负责人" align="center" prop="hzUserName" />-->
|
<!-- <el-table-column label="汇智负责人" align="center" prop="hzUserName" />-->
|
||||||
<el-table-column label="提交日期" align="center" prop="applyTime" width="180">
|
<el-table-column label="提交日期" align="center" prop="applyTime" width="180">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
@ -184,7 +188,7 @@ export default {
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
},
|
},
|
||||||
toApproved() {
|
toApproved() {
|
||||||
this.$router.push( '/approve/paymentLog' )
|
this.$router.push( '/approve/paymentRedLog' )
|
||||||
},
|
},
|
||||||
handleApprove(row) {
|
handleApprove(row) {
|
||||||
this.resetDetailForm();
|
this.resetDetailForm();
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
<ApproveLayout ref="approveLayout" title="收款单详情">
|
<ApproveLayout ref="approveLayout" title="收款单详情">
|
||||||
<receipt-detail :data="form"></receipt-detail>
|
<receipt-detail :data="form"></receipt-detail>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span>收款编号: {{ form.receiptBillCode }}</span>
|
<span>{{ form.receiptBillCode }}</span>
|
||||||
</template>
|
</template>
|
||||||
</ApproveLayout>
|
</ApproveLayout>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="receipt-detail">
|
<div class="receipt-detail">
|
||||||
|
<div style="text-align: center;font-weight:bold;font-size: 25px;">收款申请单</div>
|
||||||
<el-descriptions title="收款单信息" :column="3" border>
|
<el-descriptions title="收款单信息" :column="3" border>
|
||||||
<el-descriptions-item label="销售-收款单编号">{{ data.receiptBillCode }}</el-descriptions-item>
|
<el-descriptions-item label="销售-收款单编号">{{ data.receiptBillCode }}</el-descriptions-item>
|
||||||
<el-descriptions-item :span="2" label="进货商名称">{{ data.partnerName }}</el-descriptions-item>
|
<el-descriptions-item :span="2" label="进货商名称">{{ data.partnerName }}</el-descriptions-item>
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
<ApproveLayout ref="approveLayout" title="收款单详情">
|
<ApproveLayout ref="approveLayout" title="收款单详情">
|
||||||
<receipt-detail :data="form"></receipt-detail>
|
<receipt-detail :data="form"></receipt-detail>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span>收款编号: {{ form.receiptBillCode }}</span>
|
<span> {{ form.receiptBillCode }}</span>
|
||||||
</template>
|
</template>
|
||||||
</ApproveLayout>
|
</ApproveLayout>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,15 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="receipt-detail">
|
<div class="receipt-detail">
|
||||||
|
<div style="text-align: center;font-weight:bold;font-size: 25px;">退款申请单</div>
|
||||||
<el-descriptions title="收款单信息" :column="3" border>
|
<el-descriptions title="收款单信息" :column="3" border>
|
||||||
<el-descriptions-item label="销售-收款单编号">{{ data.receiptBillCode }}</el-descriptions-item>
|
<el-descriptions-item label="销售-收款单编号">{{ data.receiptBillCode }}</el-descriptions-item>
|
||||||
<el-descriptions-item :span="2" label="进货商名称">{{ data.partnerName }}</el-descriptions-item>
|
<el-descriptions-item :span="2" label="进货商名称">{{ data.partnerName }}</el-descriptions-item>
|
||||||
<!-- <el-descriptions-item label="收款单类型">-->
|
<!-- <el-descriptions-item label="收款单类型">-->
|
||||||
<!-- <dict-tag :options="dict.type.receipt_bill_type" :value="data.receiptBillType"/>-->
|
<!-- <dict-tag :options="dict.type.receipt_bill_type" :value="data.receiptBillType"/>-->
|
||||||
<!-- </el-descriptions-item>-->
|
<!-- </el-descriptions-item>-->
|
||||||
<el-descriptions-item label="含税总价(元)">{{ data.totalPriceWithTax }}</el-descriptions-item>
|
<el-descriptions-item label="含税总价(元)"><span style="color: red">{{ data.totalPriceWithTax }}</span></el-descriptions-item>
|
||||||
<el-descriptions-item label="未税总价(元)">{{ data.totalPriceWithoutTax }}</el-descriptions-item>
|
<el-descriptions-item label="未税总价(元)"><span style="color: red">{{ data.totalPriceWithoutTax }}</span></el-descriptions-item>
|
||||||
<el-descriptions-item label="税额(元)">{{ data.taxAmount }}</el-descriptions-item>
|
<el-descriptions-item label="税额(元)"><span style="color: red">{{ data.taxAmount }}</span></el-descriptions-item>
|
||||||
<el-descriptions-item label="支付方式">
|
<el-descriptions-item label="支付方式">
|
||||||
<dict-tag :options="dict.type.payment_method" :value="data.receiptMethod"/>
|
<dict-tag :options="dict.type.payment_method" :value="data.receiptMethod"/>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,11 @@
|
||||||
<el-table-column label="收款编号" align="center" prop="receiptBillCode" />
|
<el-table-column label="收款编号" align="center" prop="receiptBillCode" />
|
||||||
<el-table-column label="进货商" align="center" prop="partnerName" />
|
<el-table-column label="进货商" align="center" prop="partnerName" />
|
||||||
<!-- <el-table-column label="项目名称" align="center" prop="projectName" />-->
|
<!-- <el-table-column label="项目名称" align="center" prop="projectName" />-->
|
||||||
<el-table-column label="金额" align="center" prop="totalPriceWithTax" />
|
<el-table-column label="金额" align="center" prop="totalPriceWithTax" >
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span style="color: red">{{ scope.row.totalPriceWithTax }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<!-- <el-table-column label="汇智负责人" align="center" prop="hzUserName" />-->
|
<!-- <el-table-column label="汇智负责人" align="center" prop="hzUserName" />-->
|
||||||
<el-table-column label="提交日期" align="center" prop="applyTime" width="180">
|
<el-table-column label="提交日期" align="center" prop="applyTime" width="180">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
<ApproveLayout ref="approveLayout" title="开票单详情">
|
<ApproveLayout ref="approveLayout" title="开票单详情">
|
||||||
<receivable-invoice-detail :data="form"></receivable-invoice-detail>
|
<receivable-invoice-detail :data="form"></receivable-invoice-detail>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span>开票编号: {{ form.invoiceBillCode }}</span>
|
<span>{{ form.invoiceBillCode }}</span>
|
||||||
</template>
|
</template>
|
||||||
</ApproveLayout>
|
</ApproveLayout>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="invoice-detail">
|
<div class="invoice-detail">
|
||||||
|
<div style="text-align: center;font-weight:bold;font-size: 25px;">开票申请单</div>
|
||||||
<el-descriptions title="开票单信息" :column="3" border>
|
<el-descriptions title="开票单信息" :column="3" border>
|
||||||
<el-descriptions-item label="销售-开票单编号">{{ data.invoiceBillCode }}</el-descriptions-item>
|
<el-descriptions-item label="销售-开票单编号">{{ data.invoiceBillCode }}</el-descriptions-item>
|
||||||
<el-descriptions-item :span="2" label="进货商">{{ data.partnerName }}</el-descriptions-item>
|
<el-descriptions-item :span="2" label="进货商">{{ data.partnerName }}</el-descriptions-item>
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@
|
||||||
<ApproveLayout ref="approveLayout" title="开票单详情">
|
<ApproveLayout ref="approveLayout" title="开票单详情">
|
||||||
<receivable-invoice-detail :data="form"></receivable-invoice-detail>
|
<receivable-invoice-detail :data="form"></receivable-invoice-detail>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span>开票编号: {{ form.invoiceBillCode }}</span>
|
<span>{{ form.invoiceBillCode }}</span>
|
||||||
</template>
|
</template>
|
||||||
</ApproveLayout>
|
</ApproveLayout>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="invoice-detail">
|
<div class="invoice-detail">
|
||||||
|
<div style="text-align: center;font-weight:bold;font-size: 25px;">红冲开票申请单</div>
|
||||||
<el-descriptions title="开票单信息" :column="3" border>
|
<el-descriptions title="开票单信息" :column="3" border>
|
||||||
<el-descriptions-item label="销售-开票单编号">{{ data.invoiceBillCode }}</el-descriptions-item>
|
<el-descriptions-item label="销售-开票单编号">{{ data.invoiceBillCode }}</el-descriptions-item>
|
||||||
<el-descriptions-item :span="2" label="进货商">{{ data.partnerName }}</el-descriptions-item>
|
<el-descriptions-item :span="2" label="进货商">{{ data.partnerName }}</el-descriptions-item>
|
||||||
|
|
|
||||||
|
|
@ -325,7 +325,7 @@ export default {
|
||||||
fetchAttachments() {
|
fetchAttachments() {
|
||||||
if (!this.receiptData.id) return;
|
if (!this.receiptData.id) return;
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
getReceiptAttachments(this.receiptData.id, { type: 'receipt' })
|
getReceiptAttachments(this.receiptData.id, { type: 'ticket' })
|
||||||
.then(response => {
|
.then(response => {
|
||||||
const data = response.data || [];
|
const data = response.data || [];
|
||||||
data.sort((a, b) => new Date(b.createTime) - new Date(a.createTime));
|
data.sort((a, b) => new Date(b.createTime) - new Date(a.createTime));
|
||||||
|
|
|
||||||
|
|
@ -140,9 +140,21 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="制造商名称" align="center" prop="vendorName" />
|
<el-table-column label="制造商名称" align="center" prop="vendorName" />
|
||||||
<el-table-column label="含税总价(元)" align="center" prop="totalPriceWithTax" />
|
<el-table-column label="含税总价(元)" align="center" prop="totalPriceWithTax" >
|
||||||
<el-table-column label="未税总价(元)" align="center" prop="totalPriceWithoutTax" />
|
<template slot-scope="scope">
|
||||||
<el-table-column label="税额(元)" align="center" prop="taxAmount" />
|
<span :style="scope.row.totalPriceWithTax<0?{color:'red'}:{}">{{ scope.row.totalPriceWithTax }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="未税总价(元)" align="center" prop="totalPriceWithoutTax" >
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span :style="scope.row.totalPriceWithoutTax<0?{color:'red'}:{}">{{ scope.row.totalPriceWithoutTax }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="税额(元)" align="center" prop="taxAmount" >
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span :style="scope.row.taxAmount<0?{color:'red'}:{}">{{ scope.row.taxAmount }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<!-- <el-table-column label="收票单类型" align="center" prop="ticketBillType" >-->
|
<!-- <el-table-column label="收票单类型" align="center" prop="ticketBillType" >-->
|
||||||
<!-- <template slot-scope="scope">-->
|
<!-- <template slot-scope="scope">-->
|
||||||
<!-- <dict-tag :options="dict.type.ticket_bill_type" :value="scope.row.ticketBillType"/>-->
|
<!-- <dict-tag :options="dict.type.ticket_bill_type" :value="scope.row.ticketBillType"/>-->
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,7 @@
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
v-show="scope.row.unreceivedAmount!==0"
|
v-show="scope.row.uninvoicedAmount!==0"
|
||||||
@click="handleGeneratedInvoice(scope.row)"
|
@click="handleGeneratedInvoice(scope.row)"
|
||||||
v-hasPermi="['finance:invoice:generate']"
|
v-hasPermi="['finance:invoice:generate']"
|
||||||
>生成收票单</el-button>
|
>生成收票单</el-button>
|
||||||
|
|
|
||||||
|
|
@ -173,7 +173,7 @@
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-money"
|
icon="el-icon-money"
|
||||||
v-show="scope.row.receiptBillType==='FROM_RECEIVABLE' && scope.row.receiptStatus==='1' && scope.row.approveStatus==='0'"
|
v-show=" scope.row.receiptStatus==='1' && scope.row.approveStatus==='0'"
|
||||||
@click="handleApplyPayment(scope.row)"
|
@click="handleApplyPayment(scope.row)"
|
||||||
>申请收款</el-button>
|
>申请收款</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
|
|
|
||||||
|
|
@ -185,6 +185,12 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
<el-divider content-position="left" style="margin-top: 40px">
|
||||||
|
<h3 style="font-weight: bold">技术方案会审</h3>
|
||||||
|
</el-divider>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<el-form-item label="项目简述" prop="projectDesc">
|
<el-form-item label="项目简述" prop="projectDesc">
|
||||||
<el-input v-model="form.projectDesc" type="textarea" readonly />
|
<el-input v-model="form.projectDesc" type="textarea" readonly />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
|
||||||
|
|
@ -201,6 +201,9 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
<el-divider content-position="left" style="margin-top: 40px">
|
||||||
|
<h3 style="font-weight: bold">技术方案会审</h3>
|
||||||
|
</el-divider>
|
||||||
<el-form-item label="项目简述" prop="projectDesc">
|
<el-form-item label="项目简述" prop="projectDesc">
|
||||||
<el-input v-model="form.projectDesc" type="textarea" placeholder="请输入项目简述" maxlength="500" :disabled="isFormDisabled" />
|
<el-input v-model="form.projectDesc" type="textarea" placeholder="请输入项目简述" maxlength="500" :disabled="isFormDisabled" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
|
||||||
|
|
@ -639,9 +639,10 @@ public class OmsInvoiceBillServiceImpl implements IOmsInvoiceBillService, TodoCo
|
||||||
List<String> row = new ArrayList<>();
|
List<String> row = new ArrayList<>();
|
||||||
row.add(String.valueOf(integer.getAndIncrement()));
|
row.add(String.valueOf(integer.getAndIncrement()));
|
||||||
row.add(item.getBuyerName());
|
row.add(item.getBuyerName());
|
||||||
row.add(item.getBuyerCreditCode());
|
row.add(Optional.ofNullable(item.getBuyerCreditCode()).orElse(""));
|
||||||
row.add(item.getBuyerAddress());
|
row.add(Optional.ofNullable(item.getBuyerAddress()).orElse(""));
|
||||||
row.add("开户行:"+item.getBuyerBank()+"\n"+"账号:"+item.getBuyerBankAccount());
|
row.add("开户行:"+Optional.ofNullable(item.getBuyerBank()).orElse("")+"\n"+"账号:"
|
||||||
|
+Optional.ofNullable(item.getBuyerBankAccount()).orElse(""));
|
||||||
row.add("");
|
row.add("");
|
||||||
row.add(item.getProductName());
|
row.add(item.getProductName());
|
||||||
row.add(item.getProductModel());
|
row.add(item.getProductModel());
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,7 @@ public class OmsPayablePaymentDetailServiceImpl implements IOmsPayablePaymentDet
|
||||||
OmsPayablePaymentDetail temp = new OmsPayablePaymentDetail();
|
OmsPayablePaymentDetail temp = new OmsPayablePaymentDetail();
|
||||||
BeanUtil.copyProperties(payablePaymentDetail,temp);
|
BeanUtil.copyProperties(payablePaymentDetail,temp);
|
||||||
temp.setId(null);
|
temp.setId(null);
|
||||||
|
temp.setWriteOffId(null);
|
||||||
temp.setPayableDetailType(OmsPayablePaymentDetail.PayableDetailTypeEnum.REFUND.getCode());
|
temp.setPayableDetailType(OmsPayablePaymentDetail.PayableDetailTypeEnum.REFUND.getCode());
|
||||||
temp.setPaymentBillCode(payableBillCode);
|
temp.setPaymentBillCode(payableBillCode);
|
||||||
temp.setCreateBy(ShiroUtils.getUserId().toString());
|
temp.setCreateBy(ShiroUtils.getUserId().toString());
|
||||||
|
|
|
||||||
|
|
@ -104,12 +104,24 @@ public class OmsPaymentBillServiceImpl implements IOmsPaymentBillService , TodoC
|
||||||
{
|
{
|
||||||
VendorInfo vendorInfo = vendorInfoService.selectVendorInfoByVendorCode(omsPaymentBill.getVendorCode());
|
VendorInfo vendorInfo = vendorInfoService.selectVendorInfoByVendorCode(omsPaymentBill.getVendorCode());
|
||||||
omsPaymentBill.setCreateBy(ShiroUtils.getUserId().toString());
|
omsPaymentBill.setCreateBy(ShiroUtils.getUserId().toString());
|
||||||
|
if (StrUtil.isEmpty(omsPaymentBill.getPayName())) {
|
||||||
omsPaymentBill.setPayName(vendorInfo.getPayName());
|
omsPaymentBill.setPayName(vendorInfo.getPayName());
|
||||||
|
}
|
||||||
|
if (StrUtil.isEmpty(omsPaymentBill.getPayBankNumber())) {
|
||||||
omsPaymentBill.setPayBankNumber(vendorInfo.getPayBankNumber());
|
omsPaymentBill.setPayBankNumber(vendorInfo.getPayBankNumber());
|
||||||
|
}
|
||||||
|
if (StrUtil.isEmpty(omsPaymentBill.getPayBankOpenAddress())) {
|
||||||
omsPaymentBill.setPayBankOpenAddress(vendorInfo.getPayBankOpenAddress());
|
omsPaymentBill.setPayBankOpenAddress(vendorInfo.getPayBankOpenAddress());
|
||||||
|
}
|
||||||
|
if (StrUtil.isEmpty(omsPaymentBill.getBankNumber())) {
|
||||||
omsPaymentBill.setBankNumber(vendorInfo.getBankNumber());
|
omsPaymentBill.setBankNumber(vendorInfo.getBankNumber());
|
||||||
|
}
|
||||||
|
if (StrUtil.isEmpty(omsPaymentBill.getPaymentStatus())) {
|
||||||
omsPaymentBill.setPaymentStatus(OmsPaymentBill.PaymentStatusEnum.WAIT_PAYMENT.getCode());
|
omsPaymentBill.setPaymentStatus(OmsPaymentBill.PaymentStatusEnum.WAIT_PAYMENT.getCode());
|
||||||
|
}
|
||||||
|
if (StrUtil.isEmpty(omsPaymentBill.getApproveStatus())) {
|
||||||
omsPaymentBill.setApproveStatus(ApproveStatusEnum.WAIT_COMMIT.getCode());
|
omsPaymentBill.setApproveStatus(ApproveStatusEnum.WAIT_COMMIT.getCode());
|
||||||
|
}
|
||||||
omsPaymentBill.setPaymentBillCode(generatePaymentBillCode());
|
omsPaymentBill.setPaymentBillCode(generatePaymentBillCode());
|
||||||
omsPaymentBill.setCreateTime(DateUtils.getNowDate());
|
omsPaymentBill.setCreateTime(DateUtils.getNowDate());
|
||||||
if (omsPaymentBill.getPaymentTime() == null) {
|
if (omsPaymentBill.getPaymentTime() == null) {
|
||||||
|
|
@ -406,9 +418,9 @@ public class OmsPaymentBillServiceImpl implements IOmsPaymentBillService , TodoC
|
||||||
originalBill.setRefundStatus(OmsPaymentBill.RefundStatusEnum.REFUNDED.getCode());
|
originalBill.setRefundStatus(OmsPaymentBill.RefundStatusEnum.REFUNDED.getCode());
|
||||||
updateOmsPaymentBill(originalBill);
|
updateOmsPaymentBill(originalBill);
|
||||||
//4 创建付款明细
|
//4 创建付款明细
|
||||||
detailService.applyRefund(originalBill.getPayableBillCode(),refundBill.getPayableBillCode());
|
detailService.applyRefund(originalBill.getPaymentBillCode(),refundBill.getPaymentBillCode());
|
||||||
//5. 开始退款审批流程
|
//5. 开始退款审批流程
|
||||||
todoService.startProcessDeleteBefore(originalBill.getPaymentBillCode(), originalBill.getPaymentBillCode(),
|
todoService.startProcessDeleteBefore(refundBill.getPaymentBillCode(), refundBill.getPaymentBillCode(),
|
||||||
new HashMap<String, Object>() {{
|
new HashMap<String, Object>() {{
|
||||||
put("applyUserName", ShiroUtils.getSysUser().getUserName());
|
put("applyUserName", ShiroUtils.getSysUser().getUserName());
|
||||||
put("applyUser", ShiroUtils.getUserId());
|
put("applyUser", ShiroUtils.getUserId());
|
||||||
|
|
@ -476,6 +488,9 @@ public class OmsPaymentBillServiceImpl implements IOmsPaymentBillService , TodoC
|
||||||
return AjaxResult.error("付款单不存在,请刷新后重试");
|
return AjaxResult.error("付款单不存在,请刷新后重试");
|
||||||
}
|
}
|
||||||
if (OmsPaymentBill.PaymentBillTypeEnum.REFUND.getCode().equals(existBill.getPaymentBillType())){
|
if (OmsPaymentBill.PaymentBillTypeEnum.REFUND.getCode().equals(existBill.getPaymentBillType())){
|
||||||
|
if (OmsPaymentBill.PaymentStatusEnum.REFUNDED.getCode().equals(existBill.getPaymentStatus())){
|
||||||
|
return AjaxResult.error("该退款单已退款成功,无法撤销");
|
||||||
|
}
|
||||||
// 撤销退款单
|
// 撤销退款单
|
||||||
deleteOmsPaymentBillById(existBill.getId());
|
deleteOmsPaymentBillById(existBill.getId());
|
||||||
detailService.deleteByPaymentCode(existBill.getPaymentBillCode());
|
detailService.deleteByPaymentCode(existBill.getPaymentBillCode());
|
||||||
|
|
@ -484,6 +499,9 @@ public class OmsPaymentBillServiceImpl implements IOmsPaymentBillService , TodoC
|
||||||
omsPaymentBill.setRefundStatus(OmsPaymentBill.RefundStatusEnum.WAIT_REFUNDED.getCode());
|
omsPaymentBill.setRefundStatus(OmsPaymentBill.RefundStatusEnum.WAIT_REFUNDED.getCode());
|
||||||
updateOmsPaymentBill(omsPaymentBill);
|
updateOmsPaymentBill(omsPaymentBill);
|
||||||
}else{
|
}else{
|
||||||
|
if (OmsPaymentBill.PaymentStatusEnum.PAYMENT.getCode().equals(existBill.getPaymentStatus())){
|
||||||
|
return AjaxResult.error("该退款单已付款成功,无法撤销");
|
||||||
|
}
|
||||||
// 撤销付款单
|
// 撤销付款单
|
||||||
paymentBill.setApproveStatus(ApproveStatusEnum.WAIT_COMMIT.getCode());
|
paymentBill.setApproveStatus(ApproveStatusEnum.WAIT_COMMIT.getCode());
|
||||||
omsPaymentBillMapper.revoke(paymentBill);
|
omsPaymentBillMapper.revoke(paymentBill);
|
||||||
|
|
|
||||||
|
|
@ -218,13 +218,13 @@ public class OmsTicketBillServiceImpl implements IOmsTicketBillService, TodoComm
|
||||||
ticketBill.setId(null);
|
ticketBill.setId(null);
|
||||||
OmsTicketBill originalBill = selectOmsTicketBillById(originId);
|
OmsTicketBill originalBill = selectOmsTicketBillById(originId);
|
||||||
if (originalBill == null) {
|
if (originalBill == null) {
|
||||||
return AjaxResult.error("原始付款单不存在");
|
return AjaxResult.error("原始收票单不存在");
|
||||||
}
|
}
|
||||||
if (!OmsTicketBill.TicketStatusEnum.TICKET.getCode().equals(originalBill.getTicketStatus())) {
|
if (!OmsTicketBill.TicketStatusEnum.TICKET.getCode().equals(originalBill.getTicketStatus())) {
|
||||||
return AjaxResult.error("只有已收票的订单才能申请红冲");
|
return AjaxResult.error("只有已收票的数据才能申请红冲");
|
||||||
}
|
}
|
||||||
if (OmsTicketBill.RefundStatusEnum.REFUNDED.getCode().equals(originalBill.getRefundStatus())) {
|
if (OmsTicketBill.RefundStatusEnum.REFUNDED.getCode().equals(originalBill.getRefundStatus())) {
|
||||||
return AjaxResult.error("该付款单已申请过红冲,请勿重复操作");
|
return AjaxResult.error("该收票单已申请过红冲,请勿重复操作");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2. 创建新的退款单
|
// 2. 创建新的退款单
|
||||||
|
|
@ -242,7 +242,7 @@ public class OmsTicketBillServiceImpl implements IOmsTicketBillService, TodoComm
|
||||||
refundBill.setTicketType(originalBill.getTicketType());
|
refundBill.setTicketType(originalBill.getTicketType());
|
||||||
// 设置新属性
|
// 设置新属性
|
||||||
refundBill.setTicketBillType(OmsTicketBill.TicketBillTypeEnum.RED_RUSH.getCode());
|
refundBill.setTicketBillType(OmsTicketBill.TicketBillTypeEnum.RED_RUSH.getCode());
|
||||||
refundBill.setTicketStatus(OmsTicketBill.TicketStatusEnum.TICKET.getCode());
|
refundBill.setTicketStatus(OmsTicketBill.TicketStatusEnum.WAIT_RED_RUSH.getCode());
|
||||||
refundBill.setRefundStatus(OmsTicketBill.RefundStatusEnum.REFUNDED.getCode());
|
refundBill.setRefundStatus(OmsTicketBill.RefundStatusEnum.REFUNDED.getCode());
|
||||||
refundBill.setApproveStatus(ApproveStatusEnum.WAIT_APPROVE.getCode());
|
refundBill.setApproveStatus(ApproveStatusEnum.WAIT_APPROVE.getCode());
|
||||||
refundBill.setTicketPriceWithoutTax(ticketBill.getTicketPriceWithoutTax());
|
refundBill.setTicketPriceWithoutTax(ticketBill.getTicketPriceWithoutTax());
|
||||||
|
|
|
||||||
|
|
@ -462,9 +462,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="updateBy != null and updateBy != ''">
|
<if test="updateBy != null and updateBy != ''">
|
||||||
update_by = #{updateBy},
|
update_by = #{updateBy},
|
||||||
</if>
|
</if>
|
||||||
<if test="updateTime != null">
|
|
||||||
update_time = #{updateTime},
|
|
||||||
</if>
|
|
||||||
<if test="remark != null and remark != ''">
|
<if test="remark != null and remark != ''">
|
||||||
remark = #{remark},
|
remark = #{remark},
|
||||||
</if>
|
</if>
|
||||||
|
|
@ -520,6 +518,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="invoiceApplyUser != null and invoiceApplyUser != ''">
|
<if test="invoiceApplyUser != null and invoiceApplyUser != ''">
|
||||||
invoice_apply_user = #{invoiceApplyUser},
|
invoice_apply_user = #{invoiceApplyUser},
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
update_time = now()
|
||||||
</trim>
|
</trim>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|
@ -545,6 +545,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="refundStatus != null and refundStatus != ''">
|
<if test="refundStatus != null and refundStatus != ''">
|
||||||
refund_status = #{refundStatus},
|
refund_status = #{refundStatus},
|
||||||
</if>
|
</if>
|
||||||
|
update_time = now()
|
||||||
</trim>
|
</trim>
|
||||||
where invoice_bill_code = #{invoiceBillCode}
|
where invoice_bill_code = #{invoiceBillCode}
|
||||||
</update>
|
</update>
|
||||||
|
|
@ -561,14 +562,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
approve_status=#{approveStatus},
|
approve_status=#{approveStatus},
|
||||||
invoice_type=#{invoiceType},
|
invoice_type=#{invoiceType},
|
||||||
remark=#{remark},
|
remark=#{remark},
|
||||||
update_time=#{updateTime}
|
update_time=now()
|
||||||
where invoice_bill_code = #{invoiceBillCode}
|
where invoice_bill_code = #{invoiceBillCode}
|
||||||
|
|
||||||
</update>
|
</update>
|
||||||
<update id="clearApprove">
|
<update id="clearApprove">
|
||||||
update oms_invoice_bill
|
update oms_invoice_bill
|
||||||
set approve_status=#{approveStatus},
|
set approve_status=#{approveStatus},
|
||||||
approve_time=null
|
approve_time=null,
|
||||||
|
update_time=now()
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
<update id="updateReturnWriteOffBatch">
|
<update id="updateReturnWriteOffBatch">
|
||||||
|
|
@ -643,7 +645,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectMaxCodeByPrefix" resultType="java.lang.Integer">
|
<select id="selectMaxCodeByPrefix" resultType="java.lang.Integer">
|
||||||
select COALESCE(MAX(CAST(SUBSTRING(invoice_bill_code, #{codePrefix.length() + 1}) AS UNSIGNED)), 0)
|
select ifnull(max(SUBSTR(invoice_bill_code FROM LENGTH(#{codePrefix}) + 1 FOR 4)), 0)
|
||||||
from oms_invoice_bill
|
from oms_invoice_bill
|
||||||
where invoice_bill_code LIKE CONCAT(#{codePrefix}, '%')
|
where invoice_bill_code LIKE CONCAT(#{codePrefix}, '%')
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue