Commit 4cd6c6b9 authored by 耿迪迪's avatar 耿迪迪

路由问题-审核时间

parent 1dce6553
...@@ -126,6 +126,18 @@ public class TTradeProject extends BaseEntity ...@@ -126,6 +126,18 @@ public class TTradeProject extends BaseEntity
private String sortType; private String sortType;
/** 评价时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date evaluateTime;
/** 确认时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date confirmTime;
/** 审核时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date approvalTime;
public String getDealRemark() { public String getDealRemark() {
return dealRemark; return dealRemark;
} }
...@@ -442,6 +454,30 @@ public class TTradeProject extends BaseEntity ...@@ -442,6 +454,30 @@ public class TTradeProject extends BaseEntity
this.sortType = sortType; this.sortType = sortType;
} }
public Date getEvaluateTime() {
return evaluateTime;
}
public void setEvaluateTime(Date evaluateTime) {
this.evaluateTime = evaluateTime;
}
public Date getConfirmTime() {
return confirmTime;
}
public void setConfirmTime(Date confirmTime) {
this.confirmTime = confirmTime;
}
public Date getApprovalTime() {
return approvalTime;
}
public void setApprovalTime(Date approvalTime) {
this.approvalTime = approvalTime;
}
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
......
...@@ -195,6 +195,7 @@ public class TTradeProjectServiceImpl implements ITTradeProjectService ...@@ -195,6 +195,7 @@ public class TTradeProjectServiceImpl implements ITTradeProjectService
public int settlementTrade(TTradeProject tTradeProject){ public int settlementTrade(TTradeProject tTradeProject){
TTradeProject tradeInfo = tTradeProjectMapper.selectTTradeProjectById(tTradeProject.getTradeId()); TTradeProject tradeInfo = tTradeProjectMapper.selectTTradeProjectById(tTradeProject.getTradeId());
tradeInfo.setTradeStatus(tTradeProject.getTradeStatus()); tradeInfo.setTradeStatus(tTradeProject.getTradeStatus());
tradeInfo.setApprovalTime(tTradeProject.getApprovalTime());
//审核成功结算 //审核成功结算
settleByTradeStatus(tTradeProject,tradeInfo); settleByTradeStatus(tTradeProject,tradeInfo);
if(!"5".equals(tTradeProject.getTradeStatus())){ if(!"5".equals(tTradeProject.getTradeStatus())){
......
...@@ -25,6 +25,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -25,6 +25,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="pendingPayment" column="pending_payment" /> <result property="pendingPayment" column="pending_payment" />
<result property="attachmentUrl" column="attachment_url" /> <result property="attachmentUrl" column="attachment_url" />
<result property="tradeStatus" column="trade_status" /> <result property="tradeStatus" column="trade_status" />
<result property="evaluateTime" column="evaluate_time" />
<result property="confirmTime" column="confirm_time" />
<result property="approvalTime" column="approval_time" />
<result property="createTime" column="create_time" /> <result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" /> <result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" /> <result property="isDel" column="is_del" />
...@@ -61,6 +64,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -61,6 +64,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
trade.pending_payment, trade.pending_payment,
trade.attachment_url, trade.attachment_url,
trade.trade_status, trade.trade_status,
trade.evaluate_time,
trade.confirm_time,
trade.approval_time,
trade.create_time, trade.create_time,
trade.update_time, trade.update_time,
trade.is_del, trade.is_del,
...@@ -155,6 +161,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -155,6 +161,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="pendingPayment != null">pending_payment,</if> <if test="pendingPayment != null">pending_payment,</if>
<if test="attachmentUrl != null">attachment_url,</if> <if test="attachmentUrl != null">attachment_url,</if>
<if test="tradeStatus != null">trade_status,</if> <if test="tradeStatus != null">trade_status,</if>
<if test="evaluateTime != null">evaluate_time,</if>
<if test="confirmTime != null">confirm_time,</if>
<if test="approvalTime != null">approval_time,</if>
<if test="createTime != null">create_time,</if> <if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if> <if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if> <if test="isDel != null">is_del,</if>
...@@ -179,6 +188,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -179,6 +188,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="pendingPayment != null">#{pendingPayment},</if> <if test="pendingPayment != null">#{pendingPayment},</if>
<if test="attachmentUrl != null">#{attachmentUrl},</if> <if test="attachmentUrl != null">#{attachmentUrl},</if>
<if test="tradeStatus != null">#{tradeStatus},</if> <if test="tradeStatus != null">#{tradeStatus},</if>
<if test="evaluateTime != null">#{evaluateTime},</if>
<if test="confirmTime != null">#{confirmTime},</if>
<if test="approvalTime != null">#{approvalTime},</if>
<if test="createTime != null">#{createTime},</if> <if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if> <if test="isDel != null">#{isDel},</if>
...@@ -208,6 +220,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -208,6 +220,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="pendingPayment != null">pending_payment = #{pendingPayment},</if> <if test="pendingPayment != null">pending_payment = #{pendingPayment},</if>
<if test="attachmentUrl != null">attachment_url = #{attachmentUrl},</if> <if test="attachmentUrl != null">attachment_url = #{attachmentUrl},</if>
<if test="tradeStatus != null">trade_status = #{tradeStatus},</if> <if test="tradeStatus != null">trade_status = #{tradeStatus},</if>
<if test="evaluateTime != null">evaluate_time = #{evaluateTime},</if>
<if test="confirmTime != null">confirm_time = #{confirmTime},</if>
<if test="approvalTime != null">approval_time = #{approvalTime},</if>
<if test="createTime != null">create_time = #{createTime},</if> <if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if> <if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if> <if test="isDel != null">is_del = #{isDel},</if>
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
"js-beautify": "1.13.0", "js-beautify": "1.13.0",
"js-cookie": "2.2.1", "js-cookie": "2.2.1",
"jsencrypt": "3.0.0-rc.1", "jsencrypt": "3.0.0-rc.1",
"moment": "^2.29.4",
"nprogress": "0.2.0", "nprogress": "0.2.0",
"quill": "1.3.7", "quill": "1.3.7",
"screenfull": "5.0.2", "screenfull": "5.0.2",
......
...@@ -37,8 +37,9 @@ export default { ...@@ -37,8 +37,9 @@ export default {
if (!this.isDashboard(first)) { if (!this.isDashboard(first)) {
matched = [{ path: '/index', meta: { title: '首页' }}].concat(matched) matched = [{ path: '/index', meta: { title: '首页' }}].concat(matched)
} }
this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false).filter((item,index)=>{
this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false) return index !=0;
})
}, },
isDashboard(route) { isDashboard(route) {
const name = route && route.name const name = route && route.name
......
<template> <template>
<div class="navbar"> <div class="navbar">
<hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" /> <hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
......
...@@ -44,7 +44,7 @@ export default { ...@@ -44,7 +44,7 @@ export default {
}, },
computed: { computed: {
visitedViews() { visitedViews() {
return this.$store.state.tagsView.visitedViews return this.$store.state.tagsView.visitedViews.filter((item,index)=>{return index!=0})
}, },
routes() { routes() {
return this.$store.state.permission.routes return this.$store.state.permission.routes
......
...@@ -25,16 +25,19 @@ router.beforeEach((to, from, next) => { ...@@ -25,16 +25,19 @@ router.beforeEach((to, from, next) => {
store.dispatch("GenerateRoutes").then((accessRoutes) => { store.dispatch("GenerateRoutes").then((accessRoutes) => {
// 根据roles权限生成可访问的路由表 // 根据roles权限生成可访问的路由表
router.addRoutes(accessRoutes); // 动态添加可访问路由表 router.addRoutes(accessRoutes); // 动态添加可访问路由表
// next({ ...to, replace: true }) // hack方法 确保addRoutes已完成 next({ ...to, replace: true }) // hack方法 确保addRoutes已完成
const origin = router.options.routes.find((item) => { const origin = router.options.routes.find((item) => {
return item.redirect === "index"; return item.redirect === "index";
}); });
// 隐藏 // 隐藏
origin.children[0].hidden = true; origin.children[0].hidden = true;
console.log("from-------------",from)
// 挑战 // 挑战
if(from.path=='/login' || from.path=='/'){
if (accessRoutes[0].children) { if (accessRoutes[0].children) {
next({ ...accessRoutes[0].children[0] }); next({ ...accessRoutes[0].children[0] });
} }
}
// console.log('accessRoutes[0].children',accessRoutes) // console.log('accessRoutes[0].children',accessRoutes)
}); });
}) })
......
...@@ -220,11 +220,12 @@ ...@@ -220,11 +220,12 @@
<el-option label="交易支出" value="2" /> <el-option label="交易支出" value="2" />
<el-option label="交易尾款扣除项目" value="3" /> <el-option label="交易尾款扣除项目" value="3" />
<el-option label="采购(报销)支出" value="4" /> <el-option label="采购(报销)支出" value="4" />
<el-option label="借支支出" value="9" />
<el-option label="出借-支出" value="5" /> <el-option label="出借-支出" value="5" />
<el-option label="借款-收入" value="6" /> <el-option label="借款-收入" value="6" />
<el-option label="还款-支出" value="7" /> <el-option label="还款-支出" value="7" />
<el-option label="还款进账-收入" value="8" /> <el-option label="还款进账-收入" value="8" />
<el-option label="借支支出" value="9" />
<el-option label="交易尾款收入项目" value="10"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="操作时间" prop="registerTime"> <el-form-item label="操作时间" prop="registerTime">
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
<script> <script>
import CommonInfo from "./CommonInfo"; import CommonInfo from "./CommonInfo";
import { settlementTrade } from "@/api/transaction/tradeProject.js"; import { settlementTrade } from "@/api/transaction/tradeProject.js";
import moment from "moment";
export default { export default {
name: "approval", name: "approval",
props:{ props:{
...@@ -83,7 +84,7 @@ ...@@ -83,7 +84,7 @@
return false; return false;
}, },
submitSuggestion(){ submitSuggestion(){
return {tradeId:this.tradeData.tradeId,tradeStatus:this.tradeStatus,applyDeptManagerId:this.$store.state.user.userId}; return {tradeId:this.tradeData.tradeId,tradeStatus:this.tradeStatus,applyDeptManagerId:this.$store.state.user.userId,approvalTime:moment().format('YYYY-MM-DD HH:mm:ss')};
} }
} }
} }
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
<script> <script>
import CommonInfo from "./CommonInfo"; import CommonInfo from "./CommonInfo";
import moment from "moment";
export default { export default {
name: "confirm", name: "confirm",
props:{ props:{
...@@ -67,7 +68,7 @@ ...@@ -67,7 +68,7 @@
return false; return false;
}, },
submitSuggestion(){ submitSuggestion(){
return {tradeId:this.tradeData.tradeId,tradeStatus:"2",tradeDeptManagerId:this.$store.state.user.userId}; return {tradeId:this.tradeData.tradeId,tradeStatus:"2",tradeDeptManagerId:this.$store.state.user.userId,confirmTime:moment().format('YYYY-MM-DD HH:mm:ss')};
} }
} }
} }
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
<script> <script>
import CommonInfo from "./CommonInfo"; import CommonInfo from "./CommonInfo";
import moment from "moment";
export default { export default {
name: "evaluate", name: "evaluate",
props:{ props:{
...@@ -94,7 +95,7 @@ ...@@ -94,7 +95,7 @@
return false; return false;
}, },
submitSuggestion(){ submitSuggestion(){
let param = {tradeId:this.tradeData.tradeId,tradeStatus:"1",dealPrice:this.dealPrice,dealRemark:this.dealRemark}; let param = {tradeId:this.tradeData.tradeId,tradeStatus:"1",dealPrice:this.dealPrice,dealRemark:this.dealRemark,evaluateTime:moment().format('YYYY-MM-DD HH:mm:ss')};
if(this.socre){ if(this.socre){
param.tradeScore = this.socre; param.tradeScore = this.socre;
}else{ }else{
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
<el-form-item label="审核人">{{tradeData.tradeTransactorName}}</el-form-item> <el-form-item label="审核人">{{tradeData.tradeTransactorName}}</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-form-item label="审核时间">{{tradeData.evaluateTime? tradeData.evaluateTime : "-"}}</el-form-item>
<el-form-item label="说明">{{tradeData.dealRemark}}</el-form-item> <el-form-item label="说明">{{tradeData.dealRemark}}</el-form-item>
</el-form> </el-form>
<el-divider></el-divider> <el-divider></el-divider>
...@@ -40,7 +41,9 @@ ...@@ -40,7 +41,9 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item label="审核人">{{tradeData.tradeDeptManagerName}}</el-form-item> <el-form-item label="审核人">{{tradeData.tradeDeptManagerName}}</el-form-item>
</el-col> </el-col>
<el-col :span="8"></el-col> <el-col :span="8">
<el-form-item label="审核时间">{{tradeData.confirmTime? tradeData.confirmTime : "-"}}</el-form-item>
</el-col>
</el-row> </el-row>
</el-form> </el-form>
<el-divider></el-divider> <el-divider></el-divider>
...@@ -60,7 +63,9 @@ ...@@ -60,7 +63,9 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item label="审核人">{{tradeData.applyDeptManagerName}}</el-form-item> <el-form-item label="审核人">{{tradeData.applyDeptManagerName}}</el-form-item>
</el-col> </el-col>
<el-col :span="8"></el-col> <el-col :span="8">
<el-form-item label="审核时间">{{tradeData.approvalTime ? tradeData.approvalTime : "-"}}</el-form-item>
</el-col>
</el-row> </el-row>
</el-form> </el-form>
<el-divider></el-divider> <el-divider></el-divider>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment