Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
严立
/
cd-bid
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f5081806
authored
Jul 07, 2020
by
严立
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复问题
parent
ff7ce936
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
93 additions
and
78 deletions
src/common/js/host.js
src/components/currency-skill.vue
src/components/notice-file.vue
src/components/notice-progress.vue
src/view/home.vue
src/view/personal/supplier-info-change.vue
src/view/personal/supplier-notice.vue
src/view/personal/supplier-notify.vue
src/view/public/bid-buy-result.vue
src/view/public/bid-buy.vue
src/view/public/bid-notice.vue
src/view/public/question-detail.vue
src/view/public/question-list.vue
src/view/register-specialist.vue
src/view/register-supplier.vue
src/view/specialist/specialist-home.vue
src/view/specialist/specialist-info-change.vue
src/view/specialist/specialist-info.vue
src/common/js/host.js
View file @
f5081806
let
output
=
{
// 开发路径
base
:
'http://bid-server.meiqicloud.com/'
,
resources
:
'http://bid-web.meiqicloud.com/'
,
agentSignIn
:
'http://bid-vue.meiqicloud.com/'
//
base: 'http://bid-server.meiqicloud.com/',
//
resources: 'http://bid-web.meiqicloud.com/',
//
agentSignIn: 'http://bid-vue.meiqicloud.com/'
// 正式路径
//
base: '/Api/',
//
resources: 'http://bid-web.meiqicloud.com',
//
agentSignIn: 'http://bid-vue.meiqicloud.com/'
base
:
'/Api/'
,
resources
:
'http://bid-web.meiqicloud.com'
,
agentSignIn
:
'http://bid-vue.meiqicloud.com/'
}
output
.
uploadFile
=
output
.
base
+
'bid/common/webupload/upload'
...
...
src/components/currency-skill.vue
View file @
f5081806
...
...
@@ -85,8 +85,10 @@
},
setSkillList
:
function
(
funcRankIndex
,
funcSkillData
)
{
console
.
log
(
funcRankIndex
)
console
.
log
(
funcSkillData
)
function
createSkillList
()
{
console
.
log
(
'funcSkillData'
,
funcSkillData
)
if
(
!
funcSkillData
)
return
let
funcList
=
[]
...
...
@@ -164,12 +166,10 @@
funcSkillData
=
funcSkillData
[
this
.
selectIndex
[
i
]].
children
}
}
console
.
log
(
funcSelectId
)
this
.
$emit
(
'change'
,
funcSelectId
)
// 设置完成数据触发一次选择事件使父组件获取选择数据
},
onSelect
:
function
(
funcItem
,
funcRankIndex
)
{
console
.
log
(
funcItem
,
funcRankIndex
)
// 清除选择分类之后所有数据
this
.
selectIndex
[
funcRankIndex
]
=
funcItem
.
index
this
.
selectIndexBuffer
[
funcRankIndex
]
=
funcItem
.
index
...
...
src/components/notice-file.vue
View file @
f5081806
...
...
@@ -2,13 +2,13 @@
<!-- 下载模板 - 附件下载 -->
<div
v-if=
"componentFile.length > 0"
class=
"components-file"
>
<div
class=
"row align-c"
>
<span>
附件下载
</span>
<span>
文件预览
</span>
</div>
<div
class=
"col"
>
<div
class=
"list row align-c"
v-for=
"(item, index) in componentFile"
:key=
"index"
@
click=
"onDownload(item)"
>
<img
src=
"../assets/notice-file.png"
alt=
""
>
<div
class=
"row align-c"
>
{{
item
.
name
}}
</div>
<div
class=
"row align-c"
>
下载
</div>
<div
class=
"row align-c"
>
预览
</div>
</div>
</div>
</div>
...
...
src/components/notice-progress.vue
View file @
f5081806
...
...
@@ -90,7 +90,6 @@
<
script
>
import
iMiment
from
'miment'
import
iTime
from
'@/common/js/time.js'
export
default
{
...
...
@@ -219,6 +218,8 @@
* @returns
*/
onEntered
:
function
()
{
// 公告为预览状态禁止操作
if
(
this
.
$route
.
query
.
preview
)
return
this
.
$emit
(
'entered'
)
},
...
...
@@ -228,10 +229,14 @@
* @returns
*/
onDocument
:
function
()
{
// 公告为预览状态禁止操作
if
(
this
.
$route
.
query
.
preview
)
return
this
.
$emit
(
'document'
)
},
onOffer
:
function
()
{
// 公告为预览状态禁止操作
if
(
this
.
$route
.
query
.
preview
)
return
this
.
$emit
(
'offer'
)
},
}
...
...
src/view/home.vue
View file @
f5081806
...
...
@@ -491,8 +491,9 @@
* @returns
*/
onMoreNotice
:
function
()
{
let
funcNoticeType
=
iDictionary
.
noticeType
.
mapping
[
this
.
noticeTabActive
+
3
]
let
funcNoticeUrl
=
this
.
$router
.
resolve
({
path
:
'/bid'
,
query
:
{
type
:
funcNoticeType
}
})
let
funcNoticeIndex
=
this
.
noticeTab
[
this
.
noticeTabActive
].
value
console
.
log
(
funcNoticeIndex
)
let
funcNoticeUrl
=
this
.
$router
.
resolve
({
path
:
'/bid'
,
query
:
{
type
:
funcNoticeIndex
}
})
window
.
open
(
funcNoticeUrl
.
href
,
'_blank'
)
},
/**
...
...
src/view/personal/supplier-info-change.vue
View file @
f5081806
...
...
@@ -437,6 +437,7 @@
onUploadChange
:
function
(
funcType
,
funcFile
,
funcFileList
)
{
if
(
funcFile
.
status
===
'ready'
)
{
if
(
this
.
checkFileFormat
(
funcType
,
funcFile
))
{
funcFile
.
name
=
Math
.
round
(
new
Date
())
this
.
formRegister
[
funcType
+
'Image'
]
=
'image'
this
.
uploadOption
[
funcType
].
image
.
push
(
funcFile
)
}
else
{
...
...
@@ -507,7 +508,7 @@
let
funcImageList
=
this
.
uploadOption
[
funcType
].
image
for
(
let
i
=
0
,
len
=
funcImageList
.
length
;
i
<
len
;
i
++
)
{
if
(
funcImageList
[
i
]
&&
funcImageList
[
i
].
uid
===
funcFile
.
uid
)
{
funcImageList
[
i
].
url
=
funcResponse
.
data
.
url
funcImageList
[
i
].
url
=
iHost
.
resources
+
funcResponse
.
data
.
url
break
}
}
...
...
src/view/personal/supplier-notice.vue
View file @
f5081806
...
...
@@ -363,7 +363,15 @@
if
([
2
,
3
].
indexOf
(
this
.
noticeType
)
>=
0
)
this
.
onBidDocument
()
}
// 竞价公告 - 设置中标
if
([
0
].
indexOf
(
funcProject
.
noticeType
)
>=
0
)
{
for
(
let
i
=
0
,
l
=
this
.
componentContract
.
length
;
i
<
l
;
i
++
)
{
if
(
this
.
componentContract
[
i
].
isWin
)
{
this
.
projectWin
=
true
break
}
}
}
// 采购公告 - 查询合同详情
if
([
2
,
3
].
indexOf
(
funcProject
.
noticeType
)
>=
0
)
{
...
...
src/view/personal/supplier-notify.vue
View file @
f5081806
...
...
@@ -93,6 +93,7 @@
funcList
.
push
(
funcItem
)
}
this
.
mainList
=
funcList
this
.
pagination
.
total
=
funcResponse
.
count
})
.
catch
((
funcError
)
=>
{
this
.
$message
.
error
(
funcError
.
message
)
...
...
src/view/public/bid-buy-result.vue
View file @
f5081806
...
...
@@ -72,6 +72,7 @@
methods
:
{
init
:
function
()
{
let
funcOrders
=
JSON
.
parse
(
localStorage
.
getItem
(
'payInfo'
))
console
.
log
(
funcOrders
)
if
(
funcOrders
)
{
this
.
ordersId
=
funcOrders
.
id
this
.
ordersNumber
=
funcOrders
.
number
...
...
src/view/public/bid-buy.vue
View file @
f5081806
...
...
@@ -149,7 +149,11 @@
data
:
function
()
{
return
{
componentProject
:
{},
// 项目数据
componentContract
:
[],
// 合同数据
componentAgency
:
{},
// 供应信息
componentProjectBuffer
:
{},
contractSelection
:
[],
contractSelectionBuffer
:
{},
tableHeaderStyle
:
{
color
:
'#000000'
,
...
...
@@ -165,52 +169,6 @@
}
},
computed
:
{
componentProject
:
function
()
{
return
this
.
$store
.
state
.
componentProject
},
componentContract
:
function
()
{
return
this
.
$store
.
state
.
componentContract
},
componentAgency
:
function
()
{
return
this
.
$store
.
state
.
componentAgency
},
contractSelection
:
function
()
{
return
this
.
$store
.
state
.
contractSelection
}
},
watch
:
{
componentProject
:
{
handler
:
function
(
funcNewValue
,
funcOldValue
)
{
this
.
componentProjectBuffer
=
funcNewValue
},
deep
:
true
,
immediate
:
true
,
},
componentContract
:
{
handler
:
function
(
funcNewValue
,
funcOldValue
)
{
},
deep
:
true
,
immediate
:
true
,
},
componentAgency
:
{
handler
:
function
(
funcNewValue
,
funcOldValue
)
{
},
deep
:
true
,
immediate
:
true
,
},
contractSelection
:
{
handler
:
function
(
funcNewValue
,
funcOldValue
)
{
this
.
contractSelectionBuffer
=
funcNewValue
},
deep
:
true
,
immediate
:
true
,
}
},
created
:
function
()
{
this
.
init
()
},
...
...
@@ -221,10 +179,16 @@
methods
:
{
init
:
function
()
{
if
(
JSON
.
stringify
(
this
.
componentProject
)
===
'{}'
)
this
.
redirectPath
()
if
(
JSON
.
stringify
(
this
.
componentContract
)
===
'{}'
)
this
.
redirectPath
()
if
(
JSON
.
stringify
(
this
.
componentAgency
)
===
'{}'
)
this
.
redirectPath
()
if
(
JSON
.
stringify
(
this
.
contractSelection
)
===
'{}'
)
this
.
redirectPath
()
if
(
localStorage
.
getItem
(
'buyProject'
))
{
this
.
componentProject
=
JSON
.
parse
(
localStorage
.
getItem
(
'buyProject'
))
this
.
componentContract
=
JSON
.
parse
(
localStorage
.
getItem
(
'buyContract'
))
this
.
componentAgency
=
JSON
.
parse
(
localStorage
.
getItem
(
'buyAgency'
))
this
.
contractSelection
=
JSON
.
parse
(
localStorage
.
getItem
(
'buySelection'
))
this
.
componentProjectBuffer
=
this
.
componentProject
this
.
contractSelectionBuffer
=
this
.
contractSelection
}
else
{
this
.
redirectPath
()
}
},
queryPayCode
:
function
()
{
if
(
this
.
payCode
[
Number
(
this
.
payway
)])
{
...
...
src/view/public/bid-notice.vue
View file @
f5081806
...
...
@@ -133,7 +133,7 @@
</div>
<!-- 附件下载 -->
<div
v-if=
"[0, 1, 2, 3, 4, 5, 7, 9].indexOf(noticeType) >= 0"
class=
"info-item"
>
<div
v-if=
"[0, 1, 2, 3, 4, 5,
6,
7, 9].indexOf(noticeType) >= 0"
class=
"info-item"
>
<noticeFile></noticeFile>
</div>
...
...
@@ -463,6 +463,10 @@
* @returns
*/
onBuy
:
function
()
{
localStorage
.
setItem
(
'buyProject'
,
JSON
.
stringify
(
this
.
componentProject
))
localStorage
.
setItem
(
'buyContract'
,
JSON
.
stringify
(
this
.
componentContract
))
localStorage
.
setItem
(
'buyAgency'
,
JSON
.
stringify
(
this
.
componentAgency
))
localStorage
.
setItem
(
'buySelection'
,
JSON
.
stringify
(
this
.
$store
.
state
.
contractSelection
))
this
.
$router
.
push
(
'/bid/buy'
)
},
...
...
src/view/public/question-detail.vue
View file @
f5081806
...
...
@@ -20,10 +20,10 @@
<i
class=
"el-icon-user"
></i>
<span>
{{
question
.
name
}}
</span>
</div>
<div>
<
!--
<
div>
<i
class=
"el-icon-link"
></i>
<span>
{{
question
.
contact
}}
</span>
</div>
</div>
-->
</div>
<div
class=
"info-reply"
>
<div
class=
"info-reply-title row align-c"
>
...
...
@@ -116,6 +116,8 @@
margin
:
30px
0
10px
0
;
padding-bottom
:
20px
;
font-weight
:
800
;
white-space
:
normal
;
word-break
:
break-all
;
border-bottom
:
1px
@
colorGrey90
solid
;
>
span
:
nth-child
(
1
)
{
...
...
src/view/public/question-list.vue
View file @
f5081806
...
...
@@ -217,6 +217,7 @@
}
span
:nth-child
(
1
)
{
max-width
:
90%
;
padding-right
:
80px
;
flex-grow
:
1
;
}
...
...
src/view/register-specialist.vue
View file @
f5081806
...
...
@@ -858,6 +858,7 @@
onUploadChange
:
function
(
funcType
,
funcFile
,
funcFileList
)
{
if
(
funcFile
.
status
===
'ready'
)
{
if
(
this
.
checkFileFormat
(
funcType
,
funcFile
))
{
funcFile
.
name
=
Math
.
round
(
new
Date
())
this
.
formRegister
[
funcType
+
'Image'
]
=
'image'
this
.
uploadOption
[
funcType
].
image
.
push
(
funcFile
)
}
else
{
...
...
@@ -928,7 +929,7 @@
let
funcImageList
=
this
.
uploadOption
[
funcType
].
image
for
(
let
i
=
0
,
len
=
funcImageList
.
length
;
i
<
len
;
i
++
)
{
if
(
funcImageList
[
i
]
&&
funcImageList
[
i
].
uid
===
funcFile
.
uid
)
{
funcImageList
[
i
].
url
=
iHost
.
base
+
funcResponse
.
data
.
url
funcImageList
[
i
].
url
=
iHost
.
resources
+
funcResponse
.
data
.
url
break
}
}
...
...
src/view/register-supplier.vue
View file @
f5081806
...
...
@@ -453,9 +453,16 @@
case
'phone'
:
if
(
this
.
formRegister
.
corporationPhone
===
''
)
{
this
.
$message
.
error
(
'联系人手机号'
)
this
.
$message
.
error
(
'联系人手机号
不能为空
'
)
return
}
let
funcRegExp
=
new
RegExp
(
/^
(
13
[
0-9
]
|14
[
5|7
]
|15
[
0|1|2|3|4|5|6|7|8|9
]
|18
[
0|1|2|3|5|6|7|8|9
]
|19
[
0-9
])[
0-9
]{8}
$/
,
'g'
)
if
(
!
funcRegExp
.
test
(
this
.
formRegister
.
corporationPhone
))
{
this
.
$message
.
error
(
'请正确输入手机号码'
)
return
}
// 优先校验信息正确性
funcParam
=
{
'mobile'
:
this
.
formRegister
.
corporationPhone
,
...
...
@@ -670,6 +677,9 @@
}
funcParam
.
invoiceType
=
funcParam
.
invoiceType
.
join
()
console
.
log
(
JSON
.
stringify
(
funcParam
))
// return
iRequest
.
request
(
iHost
.
base
+
'bid/zUserCompany/registerCompany'
,
funcParam
,
'json'
,
'post'
)
.
then
((
funcResponse
)
=>
{
this
.
state
=
11
...
...
@@ -725,6 +735,10 @@
onNext
:
function
()
{
switch
(
this
.
state
)
{
case
1
:
// 测试数据
// this.state = 3
// return
// 基础信息
this
.
$refs
[
'formBase'
].
validate
(
funcValid
=>
{
if
(
funcValid
)
{
...
...
@@ -734,6 +748,10 @@
break
case
3
:
// 测试数据
// this.state = 5
// return
// 证照上传
this
.
$refs
.
formLicense
.
validate
(
funcValid
=>
{
if
(
funcValid
)
{
...
...
@@ -752,6 +770,10 @@
break
case
5
:
// 测试数据
// this.state = 7
// return
// 税务信息
this
.
$refs
[
'formTax'
].
validate
(
funcValid
=>
{
if
(
funcValid
)
{
...
...
@@ -761,6 +783,10 @@
break
case
7
:
// 测试数据
// this.state = 9
// return
// 短信验证
this
.
$refs
[
'formPhone'
].
validate
(
funcValid
=>
{
if
(
funcValid
)
{
...
...
@@ -777,10 +803,6 @@
}
})
break
case
11
:
break
}
},
...
...
@@ -820,6 +842,7 @@
onUploadChange
:
function
(
funcType
,
funcFile
,
funcFileList
)
{
if
(
funcFile
.
status
===
'ready'
)
{
if
(
this
.
checkFileFormat
(
funcType
,
funcFile
))
{
funcFile
.
name
=
Math
.
round
(
new
Date
())
this
.
formRegister
[
funcType
+
'Image'
]
=
'image'
this
.
uploadOption
[
funcType
].
image
.
push
(
funcFile
)
}
else
{
...
...
@@ -890,7 +913,7 @@
let
funcImageList
=
this
.
uploadOption
[
funcType
].
image
for
(
let
i
=
0
,
len
=
funcImageList
.
length
;
i
<
len
;
i
++
)
{
if
(
funcImageList
[
i
]
&&
funcImageList
[
i
].
uid
===
funcFile
.
uid
)
{
funcImageList
[
i
].
url
=
iHost
.
base
+
funcResponse
.
data
.
url
funcImageList
[
i
].
url
=
iHost
.
resources
+
funcResponse
.
data
.
url
break
}
}
...
...
src/view/specialist/specialist-home.vue
View file @
f5081806
...
...
@@ -204,6 +204,7 @@
funcList
.
push
(
funcItem
)
}
this
.
mainList
=
funcList
this
.
pagination
.
total
=
funcResponse
.
count
console
.
log
(
JSON
.
stringify
(
this
.
mainList
))
})
},
...
...
src/view/specialist/specialist-info-change.vue
View file @
f5081806
...
...
@@ -649,6 +649,7 @@
onUploadChange
:
function
(
funcType
,
funcFile
,
funcFileList
)
{
if
(
funcFile
.
status
===
'ready'
)
{
if
(
this
.
checkFileFormat
(
funcType
,
funcFile
))
{
funcFile
.
name
=
Math
.
round
(
new
Date
())
this
.
formRegister
[
funcType
+
'Image'
]
=
'image'
this
.
uploadOption
[
funcType
].
image
.
push
(
funcFile
)
}
else
{
...
...
@@ -719,7 +720,7 @@
let
funcImageList
=
this
.
uploadOption
[
funcType
].
image
for
(
let
i
=
0
,
len
=
funcImageList
.
length
;
i
<
len
;
i
++
)
{
if
(
funcImageList
[
i
]
&&
funcImageList
[
i
].
uid
===
funcFile
.
uid
)
{
funcImageList
[
i
].
url
=
iHost
.
base
+
funcResponse
.
data
.
url
funcImageList
[
i
].
url
=
iHost
.
resources
+
funcResponse
.
data
.
url
break
}
}
...
...
src/view/specialist/specialist-info.vue
View file @
f5081806
...
...
@@ -21,7 +21,8 @@
<!-- 项目进度 - 采购 -->
<div
class=
"supplier-operation"
>
<button
v-if=
"formRegister.examineState !== 0"
@
click=
"onChange()"
>
修改
</button>
<button
@
click=
"onChange()"
>
修改
</button>
<!--
<button
v-if=
"formRegister.examineState !== 0"
@
click=
"onChange()"
>
修改
</button>
-->
<button
@
click=
"onChangeRecord()"
>
变更记录
</button>
</div>
...
...
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