Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
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
xugong
hls-xcmg-vue-app
Commits
cd3000fd
Commit
cd3000fd
authored
Jan 02, 2020
by
李晓兵
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://hel.hand-china.com/xugong/hls-xcmg-vue-app
into develop
parents
02104524
c623bff6
Pipeline
#4426
canceled with stages
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
98 additions
and
32 deletions
+98
-32
contract-create-list.vue
src/pages/contractCreate/contract-create-list.vue
+1
-0
creat-rent-info.vue
src/pages/contractCreate/creat-rent-info.vue
+3
-1
create-base-info.vue
src/pages/contractCreate/create-base-info.vue
+59
-23
create-enclosure-info.vue
src/pages/contractCreate/create-enclosure-info.vue
+18
-5
sales-info.vue
src/pages/contractCreate/sales-info.vue
+15
-1
add-car.vue
src/pages/contractStart/add-car.vue
+2
-2
No files found.
src/pages/contractCreate/contract-create-list.vue
View file @
cd3000fd
...
@@ -321,6 +321,7 @@ export default {
...
@@ -321,6 +321,7 @@ export default {
})
})
},
},
changeBase
(
item
)
{
changeBase
(
item
)
{
window
.
localStorage
.
setItem
(
'bp_name_tenant'
,
item
.
bp_name
)
if
(
this
.
num
===
1
)
{
if
(
this
.
num
===
1
)
{
window
.
localStorage
.
setItem
(
'contractReadonly'
,
false
)
window
.
localStorage
.
setItem
(
'contractReadonly'
,
false
)
window
.
localStorage
.
setItem
(
'fromPage'
,
'list'
)
window
.
localStorage
.
setItem
(
'fromPage'
,
'list'
)
...
...
src/pages/contractCreate/creat-rent-info.vue
View file @
cd3000fd
...
@@ -281,6 +281,7 @@ export default {
...
@@ -281,6 +281,7 @@ export default {
}, */
}, */
saveInfo
:
{
saveInfo
:
{
project_id
:
window
.
localStorage
.
project_id
,
project_id
:
window
.
localStorage
.
project_id
,
bp_name
:
''
,
product_id
:
''
,
product_id
:
''
,
product_id_n
:
''
,
product_id_n
:
''
,
product_num
:
''
,
product_num
:
''
,
...
@@ -367,6 +368,7 @@ export default {
...
@@ -367,6 +368,7 @@ export default {
vm
.
calculeFlag
=
false
vm
.
calculeFlag
=
false
vm
.
salesEnter
=
vm
.
$route
.
params
.
salesEnter
vm
.
salesEnter
=
vm
.
$route
.
params
.
salesEnter
vm
.
bp_agent_id
=
vm
.
$route
.
params
.
bp_agent_id
vm
.
bp_agent_id
=
vm
.
$route
.
params
.
bp_agent_id
vm
.
saveInfo
.
bp_name
=
window
.
localStorage
.
bp_name_tenant
vm
.
saveTed
=
false
vm
.
saveTed
=
false
if
(
vm
.
fromPage
===
'sale'
)
{
if
(
vm
.
fromPage
===
'sale'
)
{
vm
.
fromList
=
false
vm
.
fromList
=
false
...
@@ -375,7 +377,7 @@ export default {
...
@@ -375,7 +377,7 @@ export default {
vm
.
rentInfoQuery
()
vm
.
rentInfoQuery
()
}
}
Object
.
keys
(
vm
.
saveInfo
).
forEach
(
i
=>
{
// 置空saveInfo
Object
.
keys
(
vm
.
saveInfo
).
forEach
(
i
=>
{
// 置空saveInfo
if
(
i
!==
'project_id'
)
{
if
(
i
!==
'project_id'
&&
i
!==
'bp_name'
)
{
vm
.
saveInfo
[
i
]
=
''
vm
.
saveInfo
[
i
]
=
''
}
}
})
})
...
...
src/pages/contractCreate/create-base-info.vue
View file @
cd3000fd
...
@@ -276,24 +276,39 @@
...
@@ -276,24 +276,39 @@
<img
v-if=
"!fromPutted"
src=
"@/assets/contractCreate/add.png"
@
click=
"addPerson"
>
<img
v-if=
"!fromPutted"
src=
"@/assets/contractCreate/add.png"
@
click=
"addPerson"
>
</div>
</div>
</div>
</div>
<item-option
v-for=
"(item,index) in selectUdertake"
:key=
"index"
class=
"mySlider"
>
<div
v-if=
"!fromPutted"
>
<list-item
:item-height=
"68"
>
<item-option
v-for=
"(item,index) in selectUdertake"
:key=
"index"
class=
"mySlider"
>
<item>
<list-item
:item-height=
"68"
>
<span
slot=
"left-icon"
class=
"left-icon"
>
{{
index
+
1
}}
</span>
<item>
<div
slot=
"name"
>
<span
slot=
"left-icon"
class=
"left-icon"
>
{{
index
+
1
}}
</span>
担保人
{{
index
+
1
}}
姓名
<div
slot=
"name"
>
<br
>
证件号
担保人
{{
index
+
1
}}
姓名
</div>
<br
>
证件号
<div
slot=
"content"
>
</div>
<input
v-model=
"item.bp_name"
placeholder=
"暂无信息"
readonly
>
<div
slot=
"content"
>
<input
v-model=
"item.id_card_no"
placeholder=
"暂无信息"
readonly
>
<input
v-model=
"item.bp_guta_name"
placeholder=
"暂无信息"
readonly
>
</div>
<input
v-model=
"item.id_card_no"
placeholder=
"暂无信息"
readonly
>
</item>
</div>
</list-item>
</item>
<div
slot=
"buttons"
>
</list-item>
<option-button
type=
"warn"
text
@
click
.
native=
"deleteFun(item)"
/>
<div
slot=
"buttons"
>
</div>
<option-button
type=
"warn"
text
@
click
.
native=
"deleteFun(item)"
/>
</item-option>
</div>
</item-option>
</div>
<list-item
v-if=
"fromPutted"
:item-height=
"68"
>
<item
v-for=
"(item,index) in selectUdertake"
:key=
"index"
>
<span
slot=
"left-icon"
class=
"left-icon"
>
{{
index
+
1
}}
</span>
<div
slot=
"name"
>
担保人
{{
index
+
1
}}
姓名
<br
>
证件号
</div>
<div
slot=
"content"
>
<input
v-model=
"item.bp_guta_name"
placeholder=
"暂无信息"
readonly
>
<input
v-model=
"item.id_card_no"
placeholder=
"暂无信息"
readonly
>
</div>
</item>
</list-item>
</h-content>
</h-content>
<bottom-tab
class=
"add-box"
>
<bottom-tab
class=
"add-box"
>
<tab-button
class=
"before"
@
click
.
native=
"$routeGo()"
>
上一步
</tab-button>
<tab-button
class=
"before"
@
click
.
native=
"$routeGo()"
>
上一步
</tab-button>
...
@@ -321,7 +336,7 @@ export default {
...
@@ -321,7 +336,7 @@ export default {
bp_agent_id
:
''
,
bp_agent_id
:
''
,
pageNum
:
1
,
pageNum
:
1
,
pageNumSearch
:
1
,
pageNumSearch
:
1
,
status
:
window
.
localStorage
.
contractReadonly
,
status
:
''
,
// 是否为已提交
BussinessSituationList
:
[],
// 行业情况
BussinessSituationList
:
[],
// 行业情况
jobSituationList
:
[],
// 职业情况
jobSituationList
:
[],
// 职业情况
houseInfonList
:
[],
// 房产信息
houseInfonList
:
[],
// 房产信息
...
@@ -365,6 +380,26 @@ export default {
...
@@ -365,6 +380,26 @@ export default {
},
},
immediate
:
true
,
immediate
:
true
,
},
},
'saveInfo.abc_deduction_flag'
:
{
handler
(
newVal
,
oldVal
)
{
if
(
newVal
===
'N'
)
{
this
.
checked
=
false
}
else
if
(
newVal
===
'Y'
)
{
this
.
checked
=
true
}
},
immediate
:
true
,
},
'saveInfo.special_flag'
:
{
handler
(
newVal
,
oldVal
)
{
if
(
newVal
===
'N'
)
{
this
.
checkedApproved
=
false
}
else
if
(
newVal
===
'Y'
)
{
this
.
checkedApproved
=
true
}
},
immediate
:
true
,
},
'checkedApproved'
:
{
'checkedApproved'
:
{
handler
(
newVal
,
oldVal
)
{
handler
(
newVal
,
oldVal
)
{
if
(
newVal
===
false
)
{
if
(
newVal
===
false
)
{
...
@@ -384,20 +419,21 @@ export default {
...
@@ -384,20 +419,21 @@ export default {
vm
.
salesEnter
=
''
vm
.
salesEnter
=
''
vm
.
saveTed
=
false
vm
.
saveTed
=
false
vm
.
showModalValue
=
false
vm
.
showModalValue
=
false
vm
.
checked
=
false
// 农行代扣
vm
.
checkedApproved
=
false
// 是否特批
vm
.
pageNum
=
1
vm
.
pageNum
=
1
vm
.
pageNumSearch
=
1
vm
.
pageNumSearch
=
1
vm
.
undertakeList
=
[]
vm
.
undertakeList
=
[]
vm
.
bp_class
=
window
.
localStorage
.
bp_class_tenant
vm
.
bp_class
=
window
.
localStorage
.
bp_class_tenant
vm
.
status
=
window
.
localStorage
.
contractReadonly
vm
.
saveInfo
[
'project_id'
]
=
window
.
localStorage
.
project_id
// 重新赋值,防止缓存
vm
.
saveInfo
[
'project_id'
]
=
window
.
localStorage
.
project_id
// 重新赋值,防止缓存
if
(
from
.
name
===
'SalesInfo'
)
{
if
(
from
.
name
===
'SalesInfo'
)
{
vm
.
salesEnter
=
'SalesInfo'
vm
.
salesEnter
=
'SalesInfo'
vm
.
fromPutted
=
false
vm
.
fromPutted
=
false
vm
.
checked
=
false
// 农行代扣
vm
.
checkedApproved
=
false
// 是否特批
Object
.
keys
(
vm
.
saveInfo
).
forEach
(
i
=>
{
Object
.
keys
(
vm
.
saveInfo
).
forEach
(
i
=>
{
if
(
i
!==
'project_id'
&&
i
!==
'bp_id'
&&
i
!==
'bp_class'
&&
i
!==
'abc_deduction_flag'
&&
i
!==
'special_flag'
)
{
if
(
i
!==
'project_id'
&&
i
!==
'bp_id'
&&
i
!==
'bp_class'
&&
i
!==
'abc_deduction_flag'
&&
i
!==
'special_flag'
)
{
vm
.
saveInfo
[
i
]
=
''
vm
.
saveInfo
[
i
]
=
''
}
else
if
(
i
===
'abc_deduction_flag'
&&
i
===
'special_flag'
)
{
}
else
if
(
i
===
'abc_deduction_flag'
||
i
===
'special_flag'
)
{
vm
.
saveInfo
[
i
]
=
'N'
vm
.
saveInfo
[
i
]
=
'N'
}
else
if
(
i
===
'bp_id'
)
{
}
else
if
(
i
===
'bp_id'
)
{
vm
.
saveInfo
[
i
]
=
window
.
localStorage
.
bp_id_tenant
vm
.
saveInfo
[
i
]
=
window
.
localStorage
.
bp_id_tenant
...
@@ -823,7 +859,7 @@ export default {
...
@@ -823,7 +859,7 @@ export default {
deleteFun
(
e
)
{
deleteFun
(
e
)
{
let
deleteIndex
let
deleteIndex
this
.
selectUdertake
.
forEach
((
i
,
index
,
arr
)
=>
{
this
.
selectUdertake
.
forEach
((
i
,
index
,
arr
)
=>
{
if
(
arr
[
index
].
bp_name
.
indexOf
(
e
.
bp_name
)
!==
-
1
)
{
if
(
arr
[
index
].
bp_name
.
indexOf
(
e
.
bp_
guta_
name
)
!==
-
1
)
{
deleteIndex
=
index
deleteIndex
=
index
}
}
})
})
...
...
src/pages/contractCreate/create-enclosure-info.vue
View file @
cd3000fd
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
</h-content>
</h-content>
<bottom-tab
class=
"add-box"
>
<bottom-tab
class=
"add-box"
>
<tab-button
class=
"before"
@
click
.
native=
"handSave"
>
保存
</tab-button>
<tab-button
class=
"before"
@
click
.
native=
"handSave"
>
保存
</tab-button>
<tab-button
class=
"next"
@
click
.
native=
"
handle
Submit"
>
提交
</tab-button>
<tab-button
class=
"next"
@
click
.
native=
"
is
Submit"
>
提交
</tab-button>
</bottom-tab>
</bottom-tab>
</h-view>
</h-view>
</
template
>
</
template
>
...
@@ -500,23 +500,36 @@ export default {
...
@@ -500,23 +500,36 @@ export default {
handSave
()
{
handSave
()
{
hlsPopup
.
showLongCenter
(
'保存成功!'
)
hlsPopup
.
showLongCenter
(
'保存成功!'
)
},
},
isSubmit
()
{
let
vm
=
this
this
.
hlsPopup
.
showConfirm
({
title
:
'提示'
,
content
:
'您确定提交吗?'
,
onConfirm
:
data
=>
{
if
(
data
===
1
)
{
this
.
handleSubmit
()
}
},
})
},
// 项目提交审批
// 项目提交审批
handleSubmit
()
{
handleSubmit
()
{
let
vm
=
this
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'prj_project_submit'
let
url
=
process
.
env
.
basePath
+
'prj_project_submit'
let
param
=
{
let
param
=
{
project_id
:
window
.
localStorage
.
project_id
,
project_id
:
window
.
localStorage
.
project_id
,
phone
:
window
.
localStorage
.
getItem
(
'user_phone'
),
phone
:
window
.
localStorage
.
getItem
(
'user_phone'
),
}
}
vm
.
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
console
.
log
(
'项目提交审批'
,
res
)
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
)
{
vm
.
hlsPopup
.
showSuccess
(
'提交成功'
)
vm
.
$router
.
push
({
vm
.
$router
.
push
({
name
:
'
MyInfo
'
,
name
:
'
ContractCreateList
'
,
})
})
// vm.showLists = res.lists
}
else
{
vm
.
hlsPopup
.
showLongCenter
(
res
.
message
)
}
}
})
})
},
},
...
...
src/pages/contractCreate/sales-info.vue
View file @
cd3000fd
...
@@ -144,6 +144,7 @@ export default {
...
@@ -144,6 +144,7 @@ export default {
office_name
:
''
,
// 办事处
office_name
:
''
,
// 办事处
factory_name
:
''
,
factory_name
:
''
,
business
:
''
,
business
:
''
,
factoty
:
''
,
// 主机厂列表
showModal
:
false
,
showModal
:
false
,
showLists
:
[],
showLists
:
[],
user_bp_type
:
''
,
// 客户类型
user_bp_type
:
''
,
// 客户类型
...
@@ -168,6 +169,18 @@ export default {
...
@@ -168,6 +169,18 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
'salesInfo.factory'
:
{
handler
(
newVal
,
oldVal
)
{
this
.
factoty
.
forEach
(
i
=>
{
if
(
i
.
bp_factory_id
===
this
.
salesInfo
[
'factory'
])
{
this
.
inflow_line
=
i
.
inflow_line
this
.
inflow_used
=
i
.
inflow_used
this
.
inflow_reset
=
i
.
inflow_reset
}
})
},
immediate
:
true
,
},
},
},
activated
()
{
activated
()
{
...
@@ -309,7 +322,7 @@ export default {
...
@@ -309,7 +322,7 @@ export default {
vm
.
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
console
.
log
(
'主机厂'
,
res
)
vm
.
factoty
=
res
.
lists
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
)
{
vm
.
factoryLists
=
res
.
lists
.
map
(
item
=>
{
vm
.
factoryLists
=
res
.
lists
.
map
(
item
=>
{
return
{
return
{
...
@@ -434,6 +447,7 @@ export default {
...
@@ -434,6 +447,7 @@ export default {
this
.
showModal
=
false
this
.
showModal
=
false
window
.
localStorage
.
setItem
(
'bp_id_tenant'
,
this
.
salesInfo
.
bp_id_tenant
)
window
.
localStorage
.
setItem
(
'bp_id_tenant'
,
this
.
salesInfo
.
bp_id_tenant
)
window
.
localStorage
.
setItem
(
'bp_class_tenant'
,
item
.
bp_class
)
window
.
localStorage
.
setItem
(
'bp_class_tenant'
,
item
.
bp_class
)
window
.
localStorage
.
setItem
(
'bp_name_tenant'
,
item
.
bp_name
)
},
},
hideModal
()
{
hideModal
()
{
this
.
showModal
=
false
this
.
showModal
=
false
...
...
src/pages/contractStart/add-car.vue
View file @
cd3000fd
...
@@ -472,11 +472,11 @@ export default {
...
@@ -472,11 +472,11 @@ export default {
hlsPopup
.
showLoading
(
'请稍候'
)
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S
'
)
{
if
(
res
.
code
===
'00
'
)
{
vm
.
hlsPopup
.
showSuccess
(
'保存成功'
)
vm
.
hlsPopup
.
showSuccess
(
'保存成功'
)
vm
.
getEquipment
()
setTimeout
(()
=>
{
setTimeout
(()
=>
{
vm
.
downNum
=
false
vm
.
downNum
=
false
vm
.
getEquipment
()
},
2000
)
},
2000
)
}
else
{
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
hlsPopup
.
showLongCenter
(
res
.
message
)
...
...
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