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
96d040f8
Commit
96d040f8
authored
Nov 01, 2019
by
linxin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'liuxin' into develop
parents
0ebd9ebf
5d65ac90
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
459 additions
and
275 deletions
+459
-275
confirm-detail.vue
src/pages/carConfirm/confirm-detail.vue
+108
-67
confirm-list.vue
src/pages/carConfirm/confirm-list.vue
+1
-1
add-car.vue
src/pages/contractStart/add-car.vue
+311
-168
start-list.vue
src/pages/contractStart/start-list.vue
+39
-39
No files found.
src/pages/carConfirm/confirm-detail.vue
View file @
96d040f8
<
template
>
<h-view
id=
"addCar"
>
<div
v-show=
"downNum"
class=
"modal-show"
>
<div
class=
"down"
>
<div
class=
"top"
>
录入产品信息
<img
src=
"@/assets/intoApproval/close.png"
@
click=
"downNum=false"
>
</div>
<div
class=
"down-content"
>
<span>
请上传照片
</span>
<div
class=
"photo"
>
<!--
<img
src=
""
>
-->
<transition
name=
"trans"
>
<div
v-show=
"downNum"
class=
"modal-show"
>
<div
class=
"down"
>
<div
class=
"top"
>
录入产品信息
<img
src=
"@/assets/intoApproval/close.png"
@
click=
"downNum=false"
>
</div>
<div
class=
"down-content"
>
<span>
请上传照片
</span>
<div
class=
"photo"
>
<!--
<img
src=
""
>
-->
</div>
<list-item
:item-height=
"44"
>
<item>
<div
slot=
"name"
>
车架号
</div>
<input
slot=
"content"
v-model=
"rentInfo.frame_number"
readonly
placeholder=
"自动识别车架号"
>
</item>
<item>
<div
slot=
"name"
>
发动机号
</div>
<input
slot=
"content"
v-model=
"rentInfo.engine"
readonly
placeholder=
"自动识别发动机号"
>
</item>
<item>
<div
slot=
"name"
>
厂商型号
</div>
<input
slot=
"content"
v-model=
"rentInfo.manufacturer"
readonly
class=
"write"
placeholder=
"请输入厂商型号"
>
</item>
<item>
<div
slot=
"name"
>
车牌号
</div>
<input
slot=
"content"
v-model=
"rentInfo.license_plate_number"
readonly
placeholder=
"请输入车牌号"
>
</item>
</list-item>
</div>
<list-item
:item-height=
"44"
>
<item>
<div
slot=
"name"
>
车架号
</div>
<input
slot=
"content"
v-model=
"rentInfo.frame_number"
readonly
placeholder=
"自动识别车架号"
>
</item>
<item>
<div
slot=
"name"
>
发动机号
</div>
<input
slot=
"content"
v-model=
"rentInfo.engine"
readonly
placeholder=
"自动识别发动机号"
>
</item>
<item>
<div
slot=
"name"
>
厂商型号
</div>
<input
slot=
"content"
v-model=
"rentInfo.manufacturer"
readonly
class=
"write"
placeholder=
"请输入厂商型号"
>
</item>
<item>
<div
slot=
"name"
>
车牌号
</div>
<input
slot=
"content"
v-model=
"rentInfo.license_plate_number"
readonly
placeholder=
"请输入车牌号"
>
</item>
</list-item>
</div>
</div>
</
div
>
</
transition
>
<h-header
:proportion=
"[5,1,1]"
class=
"bar-custom"
>
<div
slot=
"left"
class=
"h-header-btn"
>
<img
src=
"@/assets/userBind/arrow.png"
@
click=
"$routeGo()"
>
<span>
合同
发车
</span>
<span>
合同
明细
</span>
</div>
</h-header>
<h-content>
...
...
@@ -69,13 +85,16 @@
</item>
<item>
<div
slot=
"name"
>
租赁物数量
</div>
<input
slot=
"content"
v-model=
"info.product_num"
readonly
placeholder=
"请输入租赁物数量"
>
<input
slot=
"content"
v-model=
"info.product_num"
readonly
placeholder=
"请输入租赁物数量"
>
</item>
</list-item>
<div
class=
"userInfo"
>
设备清单
</div>
<div
v-for=
"(item,index) in numInt"
:key=
"index"
class=
"equipment"
@
click=
"downNum=true;getRent()"
>
<div
v-for=
"(item,index) in numInt"
:key=
"index"
class=
"equipment"
@
click=
"downNum=true;getRent()"
>
<div
class=
"left"
>
<span>
<img
src=
"@/assets/contractStart/list.png"
>
...
...
@@ -95,9 +114,8 @@
</div>
</h-content>
<bottom-tab>
<tab-button
class=
"approve"
@
click
.
native=
"
c
onfirm"
>
确定
</tab-button>
<tab-button
class=
"approve"
@
click
.
native=
"
isC
onfirm"
>
确定
</tab-button>
</bottom-tab>
</h-view>
</
template
>
<
script
>
...
...
@@ -108,28 +126,30 @@ export default {
downNum
:
false
,
show
:
false
,
info
:
{
'product_plan_id'
:
'29'
,
'product_num'
:
'1'
,
'first_pay'
:
'102500'
,
'division_n'
:
'平地机'
,
'gps_fee'
:
'500'
,
'bp_name'
:
'黄冲'
,
'project_number'
:
'PJ2019050043'
,
'bp_agent_name'
:
'上海汉得信息技术股份有限公司 '
,
'product_plan_id_n'
:
'PDJ'
,
product_plan_id
:
'29'
,
product_num
:
'1'
,
first_pay
:
'102500'
,
division_n
:
'平地机'
,
gps_fee
:
'500'
,
bp_name
:
'黄冲'
,
project_number
:
'PJ2019050043'
,
bp_agent_name
:
'上海汉得信息技术股份有限公司 '
,
product_plan_id_n
:
'PDJ'
,
},
rentInfo
:
{
'frame_number'
:
''
,
'engine'
:
''
,
'manufacturer'
:
''
,
'license_plate_number'
:
''
,
frame_number
:
''
,
engine
:
''
,
manufacturer
:
''
,
license_plate_number
:
''
,
},
products
:
[],
equip
:
[{
'product_id'
:
'3'
,
'product_code'
:
'GTC389'
,
'contract_id'
:
'231'
,
}],
equip
:
[
{
product_id
:
'3'
,
product_code
:
'GTC389'
,
contract_id
:
'231'
,
},
],
}
},
computed
:
{
...
...
@@ -148,19 +168,32 @@ export default {
})
},
methods
:
{
isConfirm
()
{
this
.
hlsPopup
.
showConfirm
({
title
:
'提示'
,
content
:
'您确定同意发车吗?'
,
onConfirm
:
data
=>
{
if
(
data
===
1
)
{
this
.
confirm
()
}
},
})
},
confirm
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'do_car_confirm'
let
param
=
{
'master'
:
{
'contract_id'
:
'123'
,
'confirm_status'
:
'APPROVED'
,
}}
master
:
{
contract_id
:
'123'
,
confirm_status
:
'APPROVED'
,
},
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
equip
=
res
.
lists
vm
.
hlsPopup
.
showSuccess
(
'发车成功'
)
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
...
...
@@ -223,18 +256,26 @@ export default {
input::placeholder {
color: #888c8f;
}
.hide{
.trans-enter-active,
.trans-leave-active {
transition: opacity 0.5s;
}
.trans-enter,
.trans-leave-active {
opacity: 0;
}
.hide {
display: flex;
justify-content: flex-start;
align-items: center;
img{
width:
30px;
height:
30px;
margin-left:
65%;
img
{
width:
30px;
height:
30px;
margin-left:
65%;
}
}
.wrap{
padding-top:92px;
.wrap
{
padding-top:
92px;
}
.modal-show {
width: 100%;
...
...
src/pages/carConfirm/confirm-list.vue
View file @
96d040f8
...
...
@@ -129,7 +129,7 @@ export default {
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'car_confirm_list_query'
let
param
=
{
order_id
:
window
.
session
Storage
.
getItem
(
'user_phone'
),
user_phone
:
window
.
local
Storage
.
getItem
(
'user_phone'
),
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
...
...
src/pages/contractStart/add-car.vue
View file @
96d040f8
This diff is collapsed.
Click to expand it.
src/pages/contractStart/start-list.vue
View file @
96d040f8
...
...
@@ -11,12 +11,13 @@
<input
placeholder=
"请输入合同号/产品线/承租人名称"
>
</div>
<h-content
class=
"my-content"
>
<scroll
ref=
"scroll"
:updateData=
"[contructs]"
:pullUp=
"true"
>
<div
v-for=
"(item,index) in showList"
:key=
"index"
class=
"item"
@
click=
"changePage(item.project_id)"
>
<scroll
ref=
"scroll"
:updateData=
"[contructs]"
:pullUp=
"true"
>
<div
v-for=
"(item,index) in showList"
:key=
"index"
class=
"item"
@
click=
"changePage(item.project_id)"
>
<div
class=
"left"
>
<span>
<img
src=
"@/assets/contractStart/icon.png"
>
...
...
@@ -45,12 +46,10 @@
</div>
</div>
</div>
</
scroll></
h-content>
</scroll>
</h-content>
<bottom-tab>
<tab-button
class=
"add"
@
click
.
native=
"goAdd"
>
新增发车
</tab-button>
<tab-button
class=
"add"
@
click
.
native=
"goAdd"
>
新增发车
</tab-button>
</bottom-tab>
</h-view>
</
template
>
...
...
@@ -64,22 +63,24 @@ export default {
return
{
tabNum
:
0
,
contructs
:
[],
lists
:
[{
'project_id'
:
'48812'
,
'project_number'
:
''
,
'bp_name'
:
'李四'
,
'total_price'
:
'51'
,
'division_n'
:
'PDJ'
,
'leases_status'
:
'Y'
,
},
{
'project_id'
:
'48800'
,
'project_number'
:
''
,
'bp_name'
:
'张三'
,
'total_price'
:
'51'
,
'division_n'
:
'PDJ'
,
'leases_status'
:
'N'
,
}],
lists
:
[
{
project_id
:
'48812'
,
project_number
:
''
,
bp_name
:
'李四'
,
total_price
:
'51'
,
division_n
:
'PDJ'
,
leases_status
:
'Y'
,
},
{
project_id
:
'48800'
,
project_number
:
''
,
bp_name
:
'张三'
,
total_price
:
'51'
,
division_n
:
'PDJ'
,
leases_status
:
'N'
,
},
],
showList
:
[],
undo
:
[],
done
:
[],
...
...
@@ -93,7 +94,7 @@ export default {
})
},
watch
:
{
'tabNum'
:
{
tabNum
:
{
handler
()
{
if
(
this
.
tabNum
===
0
)
{
this
.
showList
=
this
.
undo
...
...
@@ -140,7 +141,7 @@ export default {
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'car_apply_list_query'
let
param
=
{
order_id
:
window
.
session
Storage
.
getItem
(
'user_phone'
),
user_phone
:
window
.
local
Storage
.
getItem
(
'user_phone'
),
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
...
...
@@ -240,12 +241,12 @@ export default {
width: 285px;
margin-top: 10px;
.number {
font-family: Verdana-Bold;
font-size: 14px;
color: #4b4a4b;
letter-spacing: 0;
font-weight:
bold;
}
font-family: Verdana-Bold;
font-size: 14px;
color: #4b4a4b;
letter-spacing: 0;
font-weight:
bold;
}
li {
font-family: PingFangSC-Regular;
font-size: 14px;
...
...
@@ -256,15 +257,14 @@ export default {
span {
float: right;
}
}
}
}
}
}
.add{
color:#fff;
background-color:
#0041C
4;
.add
{
color:
#fff;
background-color:
#0041c
4;
}
}
</
style
>
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