Commit 0f254363 authored by lizhichao's avatar lizhichao

添加经办人打分说明;去掉编辑按钮

parent 7ab86d65
...@@ -107,6 +107,15 @@ public class TTradeProject extends BaseEntity ...@@ -107,6 +107,15 @@ public class TTradeProject extends BaseEntity
private String queryType; private String queryType;
private String tradeDeptManagerName; private String tradeDeptManagerName;
private String dealRemark;
public String getDealRemark() {
return dealRemark;
}
public void setDealRemark(String dealRemark) {
this.dealRemark = dealRemark;
}
public String getTradeTransactorName() { public String getTradeTransactorName() {
return tradeTransactorName; return tradeTransactorName;
...@@ -366,6 +375,7 @@ public class TTradeProject extends BaseEntity ...@@ -366,6 +375,7 @@ public class TTradeProject extends BaseEntity
.append("updateTime", getUpdateTime()) .append("updateTime", getUpdateTime())
.append("isDel", getIsDel()) .append("isDel", getIsDel())
.append("remark", getRemark()) .append("remark", getRemark())
.append("dealRemark", getDealRemark())
.toString(); .toString();
} }
} }
...@@ -120,9 +120,18 @@ public class TTradeProjectServiceImpl implements ITTradeProjectService ...@@ -120,9 +120,18 @@ public class TTradeProjectServiceImpl implements ITTradeProjectService
public int updateTTradeProject(TTradeProject tTradeProject) public int updateTTradeProject(TTradeProject tTradeProject)
{ {
tTradeProject.setUpdateTime(DateUtils.getNowDate()); tTradeProject.setUpdateTime(DateUtils.getNowDate());
//如果卖方部门长审批通过,则需要账户资金划拨
//暂时未判断账户可用金额等信息,仅第一版演示临时用 lizhichao-0612
if ("3".equals(tTradeProject.getTradeStatus())) {
tTradeProject.setPendingPayment(tTradeProject.getDealPrice());
}
return tTradeProjectMapper.updateTTradeProject(tTradeProject); return tTradeProjectMapper.updateTTradeProject(tTradeProject);
} }
//资金划拨
private int cumputeAccount(TTradeProject tTradeProject){
return 1;
}
/** /**
* 批量删除交易项目 * 批量删除交易项目
* *
......
...@@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectTAccountList" parameterType="TAccount" resultMap="TAccountResult"> <select id="selectTAccountList" parameterType="TAccount" resultMap="TAccountResult">
select tt.*,(able_amount+incomeAbleTotalAmount- payableTotalAmount) as totalAmount from( select tt.*,(able_amount+incomeAbleTotalAmount- payableTotalAmount) as totalAmount from(
select account_id, dept_id AS deptId , able_amount, IFNULL((select sum(pending_payment) from t_trade_project where trade_status=5 and apply_dept_id =t.dept_id ),0)incomeAbleTotalAmount,IFNULL((select sum(pending_payment) from t_trade_project where trade_status=5 and trade_dept_id =t.dept_id ),0)payableTotalAmount, create_time, update_time, is_del, remark,(SELECT dept.dept_name FROM sys_dept dept WHERE dept.dept_id = deptId)AS dept_name from t_account t select account_id, dept_id AS deptId , able_amount, IFNULL((select sum(pending_payment) from t_trade_project where trade_status=3 and apply_dept_id =t.dept_id ),0)incomeAbleTotalAmount,IFNULL((select sum(pending_payment) from t_trade_project where trade_status=3 and trade_dept_id =t.dept_id ),0)payableTotalAmount, create_time, update_time, is_del, remark,(SELECT dept.dept_name FROM sys_dept dept WHERE dept.dept_id = deptId)AS dept_name from t_account t
<where> <where>
<if test="deptId != null "> and t.dept_id = #{deptId}</if> <if test="deptId != null "> and t.dept_id = #{deptId}</if>
<if test="ableAmount != null "> and t.able_amount = #{ableAmount}</if> <if test="ableAmount != null "> and t.able_amount = #{ableAmount}</if>
......
...@@ -27,6 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -27,6 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="updateTime" column="update_time" /> <result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" /> <result property="isDel" column="is_del" />
<result property="remark" column="remark" /> <result property="remark" column="remark" />
<result property="dealRemark" column="deal_remark" />
<result property="applyName" column="apply_name"/> <result property="applyName" column="apply_name"/>
<result property="tradeTransactorName" column="trade_transactor_name"/> <result property="tradeTransactorName" column="trade_transactor_name"/>
...@@ -59,6 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -59,6 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
update_time, update_time,
is_del, is_del,
remark, remark,
deal_remark,
(SELECT nick_name FROM sys_user WHERE user_id = trade_transactor) AS trade_transactor_name, (SELECT nick_name FROM sys_user WHERE user_id = trade_transactor) AS trade_transactor_name,
(SELECT nick_name FROM sys_user WHERE user_id = apply_id) AS apply_name, (SELECT nick_name FROM sys_user WHERE user_id = apply_id) AS apply_name,
(SELECT dept_name FROM sys_dept WHERE dept_id = apply_dept_id) AS apply_dept_name, (SELECT dept_name FROM sys_dept WHERE dept_id = apply_dept_id) AS apply_dept_name,
...@@ -111,6 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -111,6 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="tradeStatus != null and tradeStatus != ''"> and trade_status = #{tradeStatus}</if> <if test="tradeStatus != null and tradeStatus != ''"> and trade_status = #{tradeStatus}</if>
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if> <if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
</where> </where>
order by update_time desc
</select> </select>
<select id="selectTTradeProjectById" parameterType="Long" resultMap="TTradeProjectResult"> <select id="selectTTradeProjectById" parameterType="Long" resultMap="TTradeProjectResult">
...@@ -192,6 +195,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -192,6 +195,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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>
<if test="remark != null">remark = #{remark},</if> <if test="remark != null">remark = #{remark},</if>
<if test="dealRemark != null">deal_remark = #{dealRemark},</if>
</trim> </trim>
where trade_id = #{tradeId} where trade_id = #{tradeId}
</update> </update>
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
return false; return false;
}, },
submitSuggestion(){ submitSuggestion(){
return {tradeId:this.tradeData.tradeId,tradeStatus:this.tradeStatus}; return {tradeId:this.tradeData.tradeId,tradeStatus:this.tradeStatus,dealPrice:this.tradeData.dealPrice};
} }
} }
} }
......
...@@ -19,13 +19,19 @@ ...@@ -19,13 +19,19 @@
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-row style="margin-left:95px;padding-top: 5px">
<el-col :span="24">
<span style="color: #d0d0d0">说明</span> {{tradeData.dealRemark}}
</el-col>
</el-row>
<el-row style="margin-left:95px"> <el-row style="margin-left:95px">
<el-col :span="8" style="margin-top: 15px"> <el-col :span="8" style="margin-top: 15px">
<el-checkbox v-model="checked">我已知晓</el-checkbox> <el-checkbox v-model="checked">我已知晓</el-checkbox>
</el-col> </el-col>
<el-col :span="8" style="margin-top: 10px"> <el-col :span="8" style="margin-top: 10px">
<span style="margin: 0px 5px;">审批人</span> <span style="margin: 0px 5px;">审批人</span>
<el-input :value="$store.state.user.name" style="width: 130px" disabled/> <el-input :value="$store.state.user.nickName" style="width: 130px" disabled/>
</el-col> </el-col>
</el-row> </el-row>
<el-divider></el-divider> <el-divider></el-divider>
......
...@@ -24,6 +24,12 @@ ...@@ -24,6 +24,12 @@
<el-input v-model="dealPrice" disabled style="width: 130px"/> <el-input v-model="dealPrice" disabled style="width: 130px"/>
</el-col> </el-col>
</el-row> </el-row>
<el-row style="margin-left:90px;padding-top: 10px">
<el-col :span="24">
<span style="margin: 0px 5px">说明</span>
<el-input v-model="dealRemark" type="textarea" style="width: 590px"/>
</el-col>
</el-row>
<el-divider></el-divider> <el-divider></el-divider>
</div> </div>
</template> </template>
...@@ -47,7 +53,8 @@ ...@@ -47,7 +53,8 @@
socreDisabled: false, socreDisabled: false,
socre: "", socre: "",
price: "", price: "",
dealPrice: "" dealPrice: "",
dealRemark:""
} }
}, },
watch:{ watch:{
...@@ -86,10 +93,10 @@ ...@@ -86,10 +93,10 @@
return false; return false;
}, },
submitSuggestion(){ submitSuggestion(){
let param = {tradeId:this.tradeData.tradeId,tradeStatus:"1",dealPrice:this.dealPrice}; let param = {tradeId:this.tradeData.tradeId,tradeStatus:"1",dealPrice:this.dealPrice,dealRemark:this.dealRemark};
if(this.socre){ // if(this.socre){
param.tradeScore = this.socre; param.tradeScore = this.socre;
} // }
return param; return param;
} }
} }
......
...@@ -43,15 +43,15 @@ ...@@ -43,15 +43,15 @@
class-name="small-padding fixed-width" class-name="small-padding fixed-width"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <!-- <el-button-->
v-if="scope.row.tradeStatus == '0' || scope.row.tradeStatus == '4'" <!-- v-if="scope.row.tradeStatus == '0' || scope.row.tradeStatus == '4'"-->
size="mini" <!-- size="mini"-->
type="text" <!-- type="text"-->
icon="el-icon-edit" <!-- icon="el-icon-edit"-->
@click="handleUpdate(scope.row)" <!-- @click="handleUpdate(scope.row)"-->
v-hasPermi="['system:project:edit']" <!-- v-hasPermi="['system:project:edit']"-->
>修改</el-button <!-- >修改</el-button-->
> <!-- >-->
<el-button <el-button
v-if="scope.row.tradeStatus == '0' || scope.row.tradeStatus == '4'" v-if="scope.row.tradeStatus == '0' || scope.row.tradeStatus == '4'"
size="mini" size="mini"
......
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