Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
precision-effect
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
precision-effect
Commits
a0e5855f
Commit
a0e5855f
authored
Jun 13, 2023
by
王晓倩
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
ec3638d9
456c3375
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
195 additions
and
10 deletions
+195
-10
TTradeProject.java
...src/main/java/com/zehong/system/domain/TTradeProject.java
+12
-0
TTradeProjectMapper.xml
...rc/main/resources/mapper/business/TTradeProjectMapper.xml
+3
-1
Approval.vue
precision-effect-web/src/views/trade/components/Approval.vue
+1
-1
CommonInfo.vue
...sion-effect-web/src/views/trade/components/CommonInfo.vue
+41
-1
OperatorButton.vue
...-effect-web/src/views/trade/components/OperatorButton.vue
+7
-3
TableList.vue
...ision-effect-web/src/views/trade/components/TableList.vue
+8
-2
TradeDetail.vue
...ion-effect-web/src/views/trade/components/TradeDetail.vue
+123
-0
index.vue
precision-effect-web/src/views/transaction/index.vue
+0
-2
No files found.
precision-effect-system/src/main/java/com/zehong/system/domain/TTradeProject.java
View file @
a0e5855f
...
@@ -107,7 +107,11 @@ public class TTradeProject extends BaseEntity
...
@@ -107,7 +107,11 @@ public class TTradeProject extends BaseEntity
private
String
queryType
;
private
String
queryType
;
private
String
tradeDeptManagerName
;
private
String
tradeDeptManagerName
;
private
String
dealRemark
;
private
String
dealRemark
;
private
String
applyDeptManagerName
;
public
String
getDealRemark
()
{
public
String
getDealRemark
()
{
return
dealRemark
;
return
dealRemark
;
}
}
...
@@ -350,6 +354,14 @@ public class TTradeProject extends BaseEntity
...
@@ -350,6 +354,14 @@ public class TTradeProject extends BaseEntity
this
.
tradeDeptManagerName
=
tradeDeptManagerName
;
this
.
tradeDeptManagerName
=
tradeDeptManagerName
;
}
}
public
String
getApplyDeptManagerName
()
{
return
applyDeptManagerName
;
}
public
void
setApplyDeptManagerName
(
String
applyDeptManagerName
)
{
this
.
applyDeptManagerName
=
applyDeptManagerName
;
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
...
...
precision-effect-system/src/main/resources/mapper/business/TTradeProjectMapper.xml
View file @
a0e5855f
...
@@ -34,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -34,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"applyDeptName"
column=
"apply_dept_name"
/>
<result
property=
"applyDeptName"
column=
"apply_dept_name"
/>
<result
property=
"tradeDeptName"
column=
"trade_dept_name"
/>
<result
property=
"tradeDeptName"
column=
"trade_dept_name"
/>
<result
property=
"tradeDeptManagerName"
column=
"trade_dept_manager_name"
/>
<result
property=
"tradeDeptManagerName"
column=
"trade_dept_manager_name"
/>
<result
property=
"applyDeptManagerName"
column=
"apply_dept_manager_name"
/>
</resultMap>
</resultMap>
<sql
id=
"selectTTradeProjectVo"
>
<sql
id=
"selectTTradeProjectVo"
>
...
@@ -65,7 +66,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -65,7 +66,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
(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,
(SELECT dept_name FROM sys_dept WHERE dept_id = trade_dept_id) AS trade_dept_name,
(SELECT dept_name FROM sys_dept WHERE dept_id = trade_dept_id) AS trade_dept_name,
(SELECT nick_name FROM sys_user WHERE user_id = trade_dept_manager_id) AS trade_dept_manager_name
(SELECT nick_name FROM sys_user WHERE user_id = trade_dept_manager_id) AS trade_dept_manager_name,
(SELECT nick_name FROM sys_user WHERE user_id = apply_dept_manager_id)AS apply_dept_manager_name
FROM
FROM
t_trade_project
t_trade_project
</sql>
</sql>
...
...
precision-effect-web/src/views/trade/components/Approval.vue
View file @
a0e5855f
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
return
false
;
return
false
;
},
},
submitSuggestion
(){
submitSuggestion
(){
return
{
tradeId
:
this
.
tradeData
.
tradeId
,
tradeStatus
:
this
.
tradeStatus
,
dealPrice
:
this
.
tradeData
.
dealPrice
};
return
{
tradeId
:
this
.
tradeData
.
tradeId
,
tradeStatus
:
this
.
tradeStatus
,
dealPrice
:
this
.
tradeData
.
dealPrice
,
applyDeptManagerId
:
this
.
$store
.
state
.
user
.
userId
};
}
}
}
}
}
}
...
...
precision-effect-web/src/views/trade/components/CommonInfo.vue
View file @
a0e5855f
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
<span
<span
style=
"padding-top: 10px;"
style=
"padding-top: 10px;"
class=
"dbtn"
class=
"dbtn"
@
click=
"
checkFile
(tradeData.attachmentUrl)"
@
click=
"
download
(tradeData.attachmentUrl)"
v-if=
"tradeData.attachmentUrl != null && tradeData.attachmentUrl!=''"
v-if=
"tradeData.attachmentUrl != null && tradeData.attachmentUrl!=''"
>
>
<i
class=
"el-icon el-icon-view"
></i>
查看/下载
<i
class=
"el-icon el-icon-view"
></i>
查看/下载
...
@@ -99,6 +99,46 @@
...
@@ -99,6 +99,46 @@
checkFile
(
url
)
{
checkFile
(
url
)
{
window
.
open
(
url
,
'_blank'
);
window
.
open
(
url
,
'_blank'
);
},
},
//附件下载
download
(
url
)
{
// url = url.replace(/\\/g, "/");
const
xhr
=
new
XMLHttpRequest
();
xhr
.
open
(
"GET"
,
url
,
true
);
xhr
.
responseType
=
"blob"
;
//xhr.setRequestHeader('Authorization', 'Basic a2VybWl0Omtlcm1pdA==');
xhr
.
onload
=
function
()
{
if
(
xhr
.
readyState
===
4
&&
xhr
.
status
===
200
)
{
let
blob
=
this
.
response
;
console
.
log
(
blob
);
// 转换一个blob链接
// 注: URL.createObjectURL() 静态方法会创建一个 DOMString(DOMString 是一个UTF-16字符串),
// 其中包含一个表示参数中给出的对象的URL。这个URL的生命周期和创建它的窗口中的document绑定
let
downLoadUrl
=
window
.
URL
.
createObjectURL
(
new
Blob
([
blob
],
{
type
:
blob
.
type
,
})
);
// 视频的type是video/mp4,图片是image/jpeg
// 01.创建a标签
let
a
=
document
.
createElement
(
"a"
);
// 02.给a标签的属性download设定名称
a
.
download
=
name
;
// 03.设置下载的文件名
a
.
href
=
downLoadUrl
;
// 04.对a标签做一个隐藏处理
a
.
style
.
display
=
"none"
;
// 05.向文档中添加a标签
document
.
body
.
appendChild
(
a
);
// 06.启动点击事件
a
.
click
();
// 07.下载完毕删除此标签
a
.
remove
();
}
};
xhr
.
send
();
},
}
}
}
}
</
script
>
</
script
>
...
...
precision-effect-web/src/views/trade/components/OperatorButton.vue
View file @
a0e5855f
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<div>
<div>
<el-button
type=
"text"
@
click=
"open=true"
size=
"mini"
>
{{
getOperatorName
()
}}
</el-button>
<el-button
type=
"text"
@
click=
"open=true"
size=
"mini"
>
{{
getOperatorName
()
}}
</el-button>
<el-dialog
:title=
"getOperatorName()"
:visible
.
sync=
"open"
width=
"800px"
append-to-body
:close-on-click-modal=
"false"
destroy-on-close
>
<el-dialog
:title=
"getOperatorName()"
:visible
.
sync=
"open"
width=
"800px"
append-to-body
:close-on-click-modal=
"false"
destroy-on-close
>
<component
:is=
"currentTabComponent"
:tradeData=
"tradeData"
ref=
"currentCom"
></component>
<component
:is=
"currentTabComponent"
:tradeData=
"tradeData"
ref=
"currentCom"
v-if=
"open"
></component>
<div
slot=
"footer"
class=
"dialog-footer"
style=
"text-align: center"
>
<div
slot=
"footer"
class=
"dialog-footer"
style=
"text-align: center"
v-if=
"operatorName != 'tradeDetail'"
>
<el-button
style=
"width: 150px;border-color: #1890ff;color: #1890ff;"
@
click=
"resetSuggestion"
>
重置意见
</el-button>
<el-button
style=
"width: 150px;border-color: #1890ff;color: #1890ff;"
@
click=
"resetSuggestion"
>
重置意见
</el-button>
<el-button
type=
"primary"
style=
"width: 150px"
@
click=
"submitSuggestion"
>
提交
</el-button>
<el-button
type=
"primary"
style=
"width: 150px"
@
click=
"submitSuggestion"
>
提交
</el-button>
</div>
</div>
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
<
script
>
<
script
>
import
{
getProject
,
updateProject
}
from
"@/api/transaction/tradeProject.js"
;
import
{
getProject
,
updateProject
}
from
"@/api/transaction/tradeProject.js"
;
import
tradeDetail
from
"./TradeDetail"
;
import
evaluate
from
"./Evaluate"
;
import
evaluate
from
"./Evaluate"
;
import
confirm
from
"./Confirm"
;
import
confirm
from
"./Confirm"
;
import
approval
from
"./Approval"
;
import
approval
from
"./Approval"
;
...
@@ -21,7 +22,8 @@
...
@@ -21,7 +22,8 @@
components
:{
components
:{
evaluate
,
evaluate
,
confirm
,
confirm
,
approval
approval
,
tradeDetail
},
},
props
:{
props
:{
operatorName
:
{
operatorName
:
{
...
@@ -45,6 +47,8 @@
...
@@ -45,6 +47,8 @@
methods
:{
methods
:{
getOperatorName
(){
getOperatorName
(){
switch
(
this
.
operatorName
){
switch
(
this
.
operatorName
){
case
"tradeDetail"
:
return
"详情"
;
case
"evaluate"
:
case
"evaluate"
:
return
"经办人评价"
;
return
"经办人评价"
;
case
"confirm"
:
case
"confirm"
:
...
...
precision-effect-web/src/views/trade/components/TableList.vue
View file @
a0e5855f
...
@@ -15,13 +15,14 @@
...
@@ -15,13 +15,14 @@
:formatter=
"getTradeStatus"
:formatter=
"getTradeStatus"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
/>
/>
<el-table-column
label=
"申请人"
align=
"center"
prop=
"applyName"
/>
<el-table-column
<el-table-column
label=
"卖方"
label=
"卖方"
align=
"center"
align=
"center"
prop=
"applyDeptName"
prop=
"applyDeptName"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
/>
/>
<el-table-column
label=
"申请人"
align=
"center"
prop=
"applyName"
/>
<el-table-column
label=
"申请时间"
align=
"center"
prop=
"createTime"
width=
"150px"
/>
<el-table-column
label=
"申报总价"
align=
"center"
prop=
"tradeTotal"
/>
<el-table-column
label=
"申报总价"
align=
"center"
prop=
"tradeTotal"
/>
<el-table-column
<el-table-column
label=
"买方"
label=
"买方"
...
@@ -52,8 +53,13 @@
...
@@ -52,8 +53,13 @@
<!-- v-hasPermi="['system:project:edit']"-->
<!-- v-hasPermi="['system:project:edit']"-->
<!-- >修改
</el-button-->
<!-- >修改
</el-button-->
<!-- >-->
<!-- >-->
<OperatorButton
operatorName=
"tradeDetail"
:tradeInfo=
"scope.row"
@
getList=
"getList"
/>
<el-button
<el-button
v-if=
"
scope.row.tradeStatus == '0' || scope.row.tradeStatus == '4'
"
v-if=
"
(scope.row.tradeStatus == '0' || scope.row.tradeStatus == '4') && scope.row.applyId == $store.state.user.userId
"
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
icon=
"el-icon-delete"
icon=
"el-icon-delete"
...
...
precision-effect-web/src/views/trade/components/TradeDetail.vue
0 → 100644
View file @
a0e5855f
<
template
>
<div
class=
"detail"
>
<CommonInfo
:tradeData=
"tradeData"
/>
<!-- 买方审核 -->
<div
v-if=
"tradeData.tradeStatus > 0"
>
<div
style=
"margin: 11px 30px;color: #1890ff;"
>
买方审核
</div>
<el-form
label-width=
"100px"
>
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"议价"
v-if=
"!tradeData.socre"
>
{{
tradeData
.
dealPrice
}}
</el-form-item>
<el-form-item
label=
"评价"
v-else
>
{{
tradeData
.
tradeScore
}}
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"成交价"
>
{{
tradeData
.
dealPrice
}}
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"审核人"
>
{{
tradeData
.
tradeTransactorName
}}
</el-form-item>
</el-col>
</el-row>
<el-form-item
label=
"说明"
>
{{
tradeData
.
dealRemark
}}
</el-form-item>
</el-form>
<el-divider></el-divider>
</div>
<!-- 买方部长确认 -->
<div
v-if=
"tradeData.tradeStatus > 1"
>
<div
style=
"margin: 11px 30px;color: #1890ff;"
>
买方部门长审核
</div>
<el-form
label-width=
"100px"
>
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"买方经办人"
>
{{
tradeData
.
tradeTransactorName
}}
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"评分"
>
{{
tradeData
.
tradeScore
?
tradeData
.
tradeScore
:
"-"
}}
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"交易成交价"
>
{{
tradeData
.
dealPrice
}}
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"审核人"
>
{{
tradeData
.
tradeDeptManagerName
}}
</el-form-item>
</el-col>
<el-col
:span=
"8"
></el-col>
</el-row>
</el-form>
<el-divider></el-divider>
</div>
<!-- 卖方部长审核 -->
<div
v-if=
"tradeData.tradeStatus > 2"
>
<div
style=
"margin: 11px 30px;color: #1890ff;"
>
部门复核
</div>
<el-form
label-width=
"100px"
>
<el-row>
<el-col
:span=
"8"
>
<el-form-item>
<el-radio
v-model=
"this.tradeData.tradeStatus =='3'?radio ='1':radio='2'"
label=
"1"
disabled
>
通过
</el-radio>
<el-radio
v-model=
"radio"
label=
"2"
disabled
>
不通过
</el-radio>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"审核人"
>
{{
tradeData
.
applyDeptManagerName
}}
</el-form-item>
</el-col>
<el-col
:span=
"8"
></el-col>
</el-row>
</el-form>
<el-divider></el-divider>
</div>
</div>
</
template
>
<
script
>
import
CommonInfo
from
"./CommonInfo"
;
import
Evaluate
from
"./Evaluate"
;
import
Confirm
from
"./Confirm"
;
import
Approval
from
"./Approval"
;
export
default
{
name
:
"trade-detail"
,
props
:{
tradeData
:
{
type
:
Object
}
},
components
:{
CommonInfo
,
Evaluate
,
Confirm
,
Approval
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.detail
{
height
:
460px
;
overflow-y
:
auto
;
&
:
:-
webkit-scrollbar
{
/* 设置滚动条宽度 */
width
:
4px
;
/* 设置滚动条背景色 */
//background: black;
}
//滚动条轨道
&
:
:-
webkit-scrollbar-track
{
background-color
:transparent
;
-webkit-border-radius
:
2em
;
-moz-border-radius
:
2em
;
border-radius
:
2em
;
}
//滚动条滑块
&
:
:-
webkit-scrollbar-thumb
{
background-color
:
rgb
(
147
,
147
,
153
,
0
.5
);
-webkit-border-radius
:
2em
;
-moz-border-radius
:
2em
;
border-radius
:
2em
;
}
}
</
style
>
precision-effect-web/src/views/transaction/index.vue
View file @
a0e5855f
...
@@ -236,8 +236,6 @@ export default {
...
@@ -236,8 +236,6 @@ export default {
};
};
},
},
created
()
{
created
()
{
console
.
log
(
"userId==="
,
this
.
$store
.
state
.
user
.
userId
);
console
.
log
(
"deptId==="
,
this
.
$store
.
state
.
user
.
deptId
);
if
(
this
.
$store
.
state
.
user
.
userId
!=
1
){
if
(
this
.
$store
.
state
.
user
.
userId
!=
1
){
this
.
queryParams
.
deptId
=
this
.
$store
.
state
.
user
.
deptId
;
this
.
queryParams
.
deptId
=
this
.
$store
.
state
.
user
.
deptId
;
this
.
disabled
=
true
;
this
.
disabled
=
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment