Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-purchase
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
张冬
web-purchase
Commits
6b1656ac
Commit
6b1656ac
authored
Oct 26, 2020
by
张冬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购项目查看和编辑
parent
17a88754
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
129 additions
and
110 deletions
+129
-110
common.css
src/common/common.css
+3
-0
specialUpload.vue
src/components/Upload/specialUpload.vue
+0
-0
editProject.vue
src/pages/purchaser/bid/editProject/editProject.vue
+33
-2
fileUpload.vue
src/pages/purchaser/bid/editProject/fileUpload.vue
+3
-11
message.vue
src/pages/purchaser/bid/editProject/message.vue
+1
-16
timeSet.vue
src/pages/purchaser/bid/editProject/timeSet.vue
+0
-7
bidInvitation.vue
src/pages/purchaser/bid/reviewed/bidInvitation.vue
+46
-47
tenderAnnouncement.vue
src/pages/purchaser/bid/reviewed/tenderAnnouncement.vue
+0
-0
fileUpload.vue
src/pages/purchaser/bid/seeProject/fileUpload.vue
+37
-8
message.vue
src/pages/purchaser/bid/seeProject/message.vue
+4
-19
seeProject.vue
src/pages/purchaser/bid/seeProject/seeProject.vue
+2
-0
No files found.
src/common/common.css
View file @
6b1656ac
...
...
@@ -9,8 +9,11 @@ html {
}
a
{
color
:
#FF5203
!important
;
text-decoration
:
none
;
}
a
:hover
{
color
:
rgb
(
51
,
218
,
193
)
!important
}
button
{
border
:
none
...
...
src/components/Upload/specialUpload.vue
View file @
6b1656ac
This diff is collapsed.
Click to expand it.
src/pages/purchaser/bid/editProject/editProject.vue
View file @
6b1656ac
...
...
@@ -24,7 +24,7 @@
</div>
<!-- 招标文件上传 -->
<div
class=
"fileUpload"
>
<fileUpload
ref=
"fileUpload"
:
detail
=
"detail"
></fileUpload>
<fileUpload
ref=
"fileUpload"
:
ruleForm
=
"detail"
></fileUpload>
</div>
</div>
<div
class=
"centerButton"
>
...
...
@@ -34,6 +34,7 @@
</
template
>
<
script
>
import
{
editProject
}
from
'@api/purchaser/bid'
;
import
{
getTime1
}
from
'@utils/time'
;
import
{
projectdetail
}
from
'@api/supply/bid'
;
import
messaage
from
'./message.vue'
;
...
...
@@ -65,7 +66,19 @@ export default {
await
this
.
$refs
.
timeSet
.
next
();
await
this
.
$refs
.
fileUpload
.
next
();
console
.
log
(
'通过'
);
console
.
log
(
this
.
detail
);
const
{
msg
,
code
}
=
await
editProject
(
this
.
detail
);
if
(
code
==
200
)
{
this
.
$message
({
message
:
msg
,
type
:
'success'
,
duration
:
1500
});
setTimeout
(()
=>
{
this
.
$router
.
go
(
-
1
)
},
1500
);
}
else
{
this
.
$message
.
error
(
msg
);
}
},
// 获取详情
async
getenquiryProjectId
()
{
...
...
@@ -77,6 +90,24 @@ export default {
data
.
createTime
=
data
.
createTime
.
substring
(
0
,
10
);
data
.
bidBookInfoPO
=
data
.
bidBookInfoDO
;
data
.
earnestInfoPO
=
data
.
earnestInfoDO
;
let
userInfo
=
JSON
.
parse
(
localStorage
.
getItem
(
'userInfo'
));
data
.
purchaseAgent
=
userInfo
.
companyName
;
for
(
let
item
of
data
.
accessoryDOList
)
{
item
.
url
=
item
.
accessoryUrl
;
item
.
name
=
item
.
fileName
;
}
let
bidBookPO
=
[];
bidBookPO
.
push
(
data
.
bidBookPO
);
data
.
bidBookPO
=
bidBookPO
;
for
(
let
item
of
data
.
bidBookPO
)
{
item
.
url
=
item
.
fileUrl
;
item
.
name
=
item
.
fileName
;
}
for
(
let
item
of
data
.
bidBookAccessoryPOList
)
{
item
.
url
=
item
.
fileUrl
;
item
.
name
=
item
.
fileName
;
}
console
.
log
(
data
);
this
.
detail
=
data
;
}
}
...
...
src/pages/purchaser/bid/editProject/fileUpload.vue
View file @
6b1656ac
...
...
@@ -5,10 +5,10 @@
<div
class=
"details"
>
<el-form
ref=
"ruleForm"
:model=
"ruleForm"
:rules=
"rules"
label-width=
"100px"
class=
"demo-ruleForm"
>
<el-form-item
label=
"上传附件"
prop=
"file"
>
<upload
:limit=
"1"
accept=
".pdf"
tip=
"请上传一个招标文件(pdf),不要超过50M。"
:max=
"50"
@
input=
"getfile"
></upload>
<upload
:limit=
"1"
accept=
".pdf"
tip=
"请上传一个招标文件(pdf),不要超过50M。"
:max=
"50"
@
input=
"getfile"
:fileList=
"ruleForm.bidBookPO"
></upload>
</el-form-item>
<el-form-item
label=
"其他附件"
>
<upload
:limit=
"5"
tip=
"最多上传五个附件,单个不超过100M。"
:type=
"1"
:max=
"100"
@
input=
"getfile1"
>
</upload>
<upload
:limit=
"5"
tip=
"最多上传五个附件,单个不超过100M。"
:type=
"1"
:max=
"100"
@
input=
"getfile1"
:fileList=
"ruleForm.bidBookAccessoryPOList"
>
</upload>
</el-form-item>
</el-form>
</div>
...
...
@@ -24,7 +24,7 @@ export default {
upload
},
props
:
{
all
Form
:
{
rule
Form
:
{
type
:
Object
,
default
()
{
return
{};
...
...
@@ -41,11 +41,6 @@ export default {
}
};
return
{
ruleForm
:
{
bidBookPO
:
[],
bidBookAccessoryPOList
:
[]
},
fileList
:
[],
rules
:
{
file
:
[
{
...
...
@@ -64,9 +59,6 @@ export default {
getfile1
(
val
)
{
this
.
ruleForm
.
bidBookAccessoryPOList
=
val
;
},
async
next
()
{
const
valid
=
await
this
.
$refs
[
'ruleForm'
].
validate
();
}
}
};
</
script
>
...
...
src/pages/purchaser/bid/editProject/message.vue
View file @
6b1656ac
...
...
@@ -197,7 +197,7 @@
</el-input>
</el-form-item>
<el-form-item
label=
"附件:"
prop=
"file"
>
<upload
:tip=
"tip"
:limit=
"20"
:max=
"25"
accept=
".PDF,.JPG,.JPEG,.ZIP,.RAR"
@
input=
"getfile"
></upload>
<upload
:tip=
"tip"
:limit=
"20"
:max=
"25"
accept=
".PDF,.JPG,.JPEG,.ZIP,.RAR"
@
input=
"getfile"
:fileList=
"ruleForm.accessoryDOList"
></upload>
</el-form-item>
</el-form>
</div>
...
...
@@ -509,21 +509,6 @@ export default {
computed
:
{},
created
()
{
// 默认操作
let
userInfo
=
JSON
.
parse
(
localStorage
.
getItem
(
'userInfo'
));
this
.
ruleForm
.
purchaseAgent
=
userInfo
.
companyName
;
let
phone
=
userInfo
.
phone
;
this
.
ruleForm
.
projectManager
=
userInfo
.
userId
;
this
.
ruleForm
.
contactsWay
=
phone
;
this
.
bidBookInfoPO
.
phone
=
phone
;
this
.
earnestInfoPO
.
phone
=
phone
;
this
.
ruleForm
.
contacts
=
userInfo
.
name
;
this
.
pageObj
.
companyId
=
localStorage
.
getItem
(
'companyId'
);
this
.
bidBookInfoPO
.
account
=
userInfo
.
bankAccount
;
this
.
bidBookInfoPO
.
bank
=
userInfo
.
bankName
;
this
.
bidBookInfoPO
.
accountName
=
userInfo
.
bankAccountName
;
this
.
earnestInfoPO
.
account
=
userInfo
.
bankAccount
;
this
.
earnestInfoPO
.
bank
=
userInfo
.
bankName
;
this
.
earnestInfoPO
.
userName
=
userInfo
.
bankAccountName
;
this
.
userList
();
this
.
industryList
();
this
.
projectClassifyList
();
...
...
src/pages/purchaser/bid/editProject/timeSet.vue
View file @
6b1656ac
...
...
@@ -108,13 +108,6 @@ export default {
}
};
return
{
ruleForm
:
{
releaseTime
:
''
,
startTime
:
''
,
endTime
:
''
,
answerQuestionEndTime
:
''
,
openBidStartTime
:
''
},
rules
:
{
releaseTime
:
[
{
...
...
src/pages/purchaser/bid/reviewed/bidInvitation.vue
View file @
6b1656ac
...
...
@@ -2,11 +2,11 @@
<div>
<div
class=
"content-head"
>
<dataBreadcrumb
:breads=
"breads"
></dataBreadcrumb>
<h3>
{{
type
==
1
?
"编辑"
:
"发布"
}}
投标邀请书
</h3>
<h5>
{{
type
==
1
?
"编辑"
:
"发布"
}}
投标邀请书
</h5>
<div
v-if=
"type == 1"
class=
"abs"
>
<h3>
发布
投标邀请书
</h3>
<h5>
发布
投标邀请书
</h5>
<
!--
<
div
v-if=
"type == 1"
class=
"abs"
>
<div>
拒绝原因:
{{
ruleForm
.
reason
}}
</div>
</div>
</div>
-->
</div>
<div
class=
"content"
>
<div
class=
"describe"
>
投标邀请书
</div>
...
...
@@ -27,8 +27,7 @@
</div>
<div
class=
"bottomButton"
>
<el-button
@
click=
"cancel"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"submit1"
v-if=
"type == 1"
>
编辑
</el-button>
<el-button
type=
"primary"
@
click=
"submit"
v-else
>
提交审核
</el-button>
<el-button
type=
"primary"
@
click=
"submit"
>
提交审核
</el-button>
</div>
</div>
</
template
>
...
...
@@ -78,11 +77,11 @@ export default {
};
},
created
()
{
let
type
=
this
.
$route
.
query
.
type
;
this
.
type
=
type
;
if
(
type
==
1
)
{
this
.
getbiddingProjectId
();
}
//
let type = this.$route.query.type;
//
this.type = type;
//
if (type == 1) {
//
this.getbiddingProjectId();
//
}
},
methods
:
{
cancel
()
{
...
...
@@ -94,17 +93,17 @@ export default {
}
this
.
ruleForm
.
accessoryPOList
=
val
;
},
async
getbiddingProjectId
()
{
let
projectId
=
localStorage
.
getItem
(
'projectId'
);
const
{
data
,
code
,
msg
}
=
await
biddingProjectId
(
projectId
);
if
(
code
==
200
)
{
for
(
let
item
of
data
.
accessoryVOList
)
{
item
.
url
=
item
.
accessoryUrl
;
item
.
name
=
item
.
fileName
;
}
this
.
ruleForm
=
data
;
}
},
//
async getbiddingProjectId() {
//
let projectId = localStorage.getItem('projectId');
//
const { data, code, msg } = await biddingProjectId(projectId);
//
if (code == 200) {
//
for (let item of data.accessoryVOList) {
//
item.url = item.accessoryUrl;
//
item.name = item.fileName;
//
}
//
this.ruleForm = data;
//
}
//
},
//提交表单
async
submit
()
{
let
ruleForm
=
this
.
ruleForm
;
...
...
@@ -128,31 +127,31 @@ export default {
}
},
//提交表单
async
submit1
()
{
let
ruleForm
=
this
.
ruleForm
;
ruleForm
.
projectId
=
localStorage
.
getItem
(
'projectId'
);
ruleForm
.
accessoryPOList
=
this
.
accessoryPOList
;
try
{
const
valid
=
await
this
.
$refs
[
'ruleForm'
].
validate
();
if
(
valid
)
{
const
{
code
,
msg
}
=
await
editBidding
(
this
.
ruleForm
);
if
(
code
===
200
)
{
this
.
$message
({
message
:
msg
,
type
:
'success'
,
duration
:
1500
});
setTimeout
(()
=>
{
this
.
$router
.
go
(
-
1
);
},
1500
);
}
else
if
(
code
==
500
)
{
this
.
$message
.
error
(
msg
);
}
}
}
catch
(
err
)
{
console
.
log
(
err
);
}
}
//
async submit1() {
//
let ruleForm = this.ruleForm;
//
ruleForm.projectId = localStorage.getItem('projectId');
//
ruleForm.accessoryPOList = this.accessoryPOList;
//
try {
//
const valid = await this.$refs['ruleForm'].validate();
//
if (valid) {
//
const { code, msg } = await editBidding(this.ruleForm);
//
if (code === 200) {
//
this.$message({
//
message: msg,
//
type: 'success',
//
duration: 1500
//
});
//
setTimeout(() => {
//
this.$router.go(-1);
//
}, 1500);
//
} else if (code == 500) {
//
this.$message.error(msg);
//
}
//
}
//
} catch (err) {
//
console.log(err);
//
}
//
}
}
};
</
script
>
...
...
src/pages/purchaser/bid/reviewed/tenderAnnouncement.vue
View file @
6b1656ac
This diff is collapsed.
Click to expand it.
src/pages/purchaser/bid/seeProject/fileUpload.vue
View file @
6b1656ac
...
...
@@ -5,10 +5,27 @@
<div
class=
"details"
>
<el-form
ref=
"ruleForm"
:model=
"ruleForm"
:rules=
"rules"
label-width=
"100px"
class=
"demo-ruleForm"
>
<el-form-item
label=
"上传附件"
prop=
"file"
>
<upload
:limit=
"1"
accept=
".pdf"
tip=
"请上传一个招标文件(pdf),不要超过50M。"
:max=
"50"
@
input=
"getfile"
></upload>
<dataTable
:table-data=
"ruleForm.bidBookDO"
:columns=
"columns"
:is-pageobj=
"false"
>
<el-table-column
slot=
"operate"
label=
"文件大小"
align=
"center"
fixed=
"right"
width=
"300"
>
<template
slot-scope=
"scope"
>
<div>
{{
getMb
(
scope
.
row
.
size
)
}}
KB
</div>
</
template
>
</el-table-column>
<el-table-column
slot=
"operate"
label=
"价格"
align=
"center"
fixed=
"right"
width=
"300"
>
<
template
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
free
?
scope
.
row
.
free
:
'无'
}}
</div>
</
template
>
</el-table-column>
</dataTable>
</el-form-item>
<el-form-item
label=
"其他附件"
>
<upload
:limit=
"5"
tip=
"最多上传五个附件,单个不超过100M。"
:type=
"1"
:max=
"100"
@
input=
"getfile1"
>
</upload>
<el-form-item
label=
"其他附件"
>
<dataTable
:table-data=
"ruleForm.bidBookAccessoryDO"
:columns=
"columns"
:is-pageobj=
"false"
>
<el-table-column
slot=
"operate"
label=
"文件大小"
align=
"center"
fixed=
"right"
width=
"300"
>
<
template
slot-scope=
"scope"
>
<div>
{{
getMb
(
scope
.
row
.
size
)
}}
KB
</div>
</
template
>
</el-table-column>
</dataTable>
</el-form-item>
</el-form>
</div>
...
...
@@ -17,11 +34,12 @@
</template>
<
script
>
import
{
creatProject
}
from
'@api/purchaser/bid'
;
import
dataTable
from
'@components/nopageTable.vue'
import
upload
from
'@components/Upload/specialUpload.vue'
;
export
default
{
components
:
{
upload
upload
,
dataTable
},
props
:
{
allForm
:
{
...
...
@@ -41,6 +59,20 @@ export default {
}
};
return
{
columns
:
[
{
label
:
'文件名称'
,
prop
:
'name'
},
{
label
:
'上传时间'
,
prop
:
'time'
},
{
slot
:
'operate'
}
],
ruleForm
:
{
bidBookPO
:
[],
bidBookAccessoryPOList
:
[]
...
...
@@ -64,9 +96,6 @@ export default {
getfile1
(
val
)
{
this
.
ruleForm
.
bidBookAccessoryPOList
=
val
;
},
async
next
()
{
const
valid
=
await
this
.
$refs
[
'ruleForm'
].
validate
();
}
}
};
</
script
>
...
...
src/pages/purchaser/bid/seeProject/message.vue
View file @
6b1656ac
...
...
@@ -195,11 +195,12 @@
</el-input>
</el-form-item>
<el-form-item
label=
"附件:"
prop=
"file"
>
<ul>
<li>
<a
href=
""
>
</a>
<ul
v-if=
'ruleForm.accessoryDOList!==undefined && ruleForm.accessoryDOList.length>0'
>
<li
v-for=
"(item,i) in ruleForm.accessoryDOList"
:key=
"i"
>
<a
:href=
"item.accessoryUrl"
>
{{
item
.
fileName
}}
</a>
</li>
</ul>
<div
v-else
>
无
</div>
</el-form-item>
</el-form>
</div>
...
...
@@ -517,22 +518,6 @@ export default {
// },
computed
:
{},
created
()
{
// 默认操作
// let userInfo = JSON.parse(localStorage.getItem('userInfo'));
// this.ruleForm.purchaseAgent = userInfo.companyName;
// let phone = userInfo.phone;
// this.ruleForm.projectManager = userInfo.userId;
// this.ruleForm.contactsWay = phone;
// this.bidBookInfoPO.phone = phone;
// this.earnestInfoPO.phone = phone;
// this.ruleForm.contacts = userInfo.name;
// this.pageObj.companyId = localStorage.getItem('companyId');
// this.bidBookInfoPO.account = userInfo.bankAccount;
// this.bidBookInfoPO.bank = userInfo.bankName;
// this.bidBookInfoPO.accountName = userInfo.bankAccountName;
// this.earnestInfoPO.account = userInfo.bankAccount;
// this.earnestInfoPO.bank = userInfo.bankName;
// this.earnestInfoPO.userName = userInfo.bankAccountName;
this
.
userList
();
this
.
industryList
();
this
.
projectClassifyList
();
...
...
src/pages/purchaser/bid/seeProject/seeProject.vue
View file @
6b1656ac
...
...
@@ -73,6 +73,8 @@ export default {
data
.
createTime
=
data
.
createTime
.
substring
(
0
,
10
);
data
.
bidBookInfoPO
=
data
.
bidBookInfoDO
data
.
earnestInfoPO
=
data
.
earnestInfoDO
let
userInfo
=
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
))
data
.
purchaseAgent
=
userInfo
.
companyName
this
.
detail
=
data
;
}
}
...
...
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