Commit 96d040f8 authored by linxin's avatar linxin

Merge branch 'liuxin' into develop

parents 0ebd9ebf 5d65ac90
<template> <template>
<h-view id="addCar"> <h-view id="addCar">
<transition name="trans">
<div v-show="downNum" class="modal-show"> <div v-show="downNum" class="modal-show">
<div class="down"> <div class="down">
<div class="top"> <div class="top">
...@@ -14,7 +15,12 @@ ...@@ -14,7 +15,12 @@
<list-item :item-height="44"> <list-item :item-height="44">
<item> <item>
<div slot="name">车架号</div> <div slot="name">车架号</div>
<input slot="content" v-model="rentInfo.frame_number" readonly placeholder="自动识别车架号" > <input
slot="content"
v-model="rentInfo.frame_number"
readonly
placeholder="自动识别车架号"
>
</item> </item>
<item> <item>
<div slot="name">发动机号</div> <div slot="name">发动机号</div>
...@@ -23,21 +29,31 @@ ...@@ -23,21 +29,31 @@
<item> <item>
<div slot="name">厂商型号</div> <div slot="name">厂商型号</div>
<input <input
slot="content" v-model="rentInfo.manufacturer" readonly class="write" slot="content"
placeholder="请输入厂商型号" > v-model="rentInfo.manufacturer"
readonly
class="write"
placeholder="请输入厂商型号"
>
</item> </item>
<item> <item>
<div slot="name">车牌号</div> <div slot="name">车牌号</div>
<input slot="content" v-model="rentInfo.license_plate_number" readonly placeholder="请输入车牌号" > <input
slot="content"
v-model="rentInfo.license_plate_number"
readonly
placeholder="请输入车牌号"
>
</item> </item>
</list-item> </list-item>
</div> </div>
</div> </div>
</div> </div>
</transition>
<h-header :proportion="[5,1,1]" class="bar-custom"> <h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()" > <img src="@/assets/userBind/arrow.png" @click="$routeGo()" >
<span>合同发车</span> <span>合同明细</span>
</div> </div>
</h-header> </h-header>
<h-content> <h-content>
...@@ -69,13 +85,16 @@ ...@@ -69,13 +85,16 @@
</item> </item>
<item> <item>
<div slot="name">租赁物数量</div> <div slot="name">租赁物数量</div>
<input <input slot="content" v-model="info.product_num" readonly placeholder="请输入租赁物数量" >
slot="content" v-model="info.product_num" readonly
placeholder="请输入租赁物数量" >
</item> </item>
</list-item> </list-item>
<div class="userInfo">设备清单</div> <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"> <div class="left">
<span> <span>
<img src="@/assets/contractStart/list.png" > <img src="@/assets/contractStart/list.png" >
...@@ -95,9 +114,8 @@ ...@@ -95,9 +114,8 @@
</div> </div>
</h-content> </h-content>
<bottom-tab> <bottom-tab>
<tab-button class="approve" @click.native="confirm">确定</tab-button> <tab-button class="approve" @click.native="isConfirm">确定</tab-button>
</bottom-tab> </bottom-tab>
</h-view> </h-view>
</template> </template>
<script> <script>
...@@ -108,28 +126,30 @@ export default { ...@@ -108,28 +126,30 @@ export default {
downNum: false, downNum: false,
show: false, show: false,
info: { info: {
'product_plan_id': '29', product_plan_id: '29',
'product_num': '1', product_num: '1',
'first_pay': '102500', first_pay: '102500',
'division_n': '平地机', division_n: '平地机',
'gps_fee': '500', gps_fee: '500',
'bp_name': '黄冲', bp_name: '黄冲',
'project_number': 'PJ2019050043', project_number: 'PJ2019050043',
'bp_agent_name': '上海汉得信息技术股份有限公司 ', bp_agent_name: '上海汉得信息技术股份有限公司 ',
'product_plan_id_n': 'PDJ', product_plan_id_n: 'PDJ',
}, },
rentInfo: { rentInfo: {
'frame_number': '', frame_number: '',
'engine': '', engine: '',
'manufacturer': '', manufacturer: '',
'license_plate_number': '', license_plate_number: '',
}, },
products: [], products: [],
equip: [{ equip: [
'product_id': '3', {
'product_code': 'GTC389', product_id: '3',
'contract_id': '231', product_code: 'GTC389',
}], contract_id: '231',
},
],
} }
}, },
computed: { computed: {
...@@ -148,19 +168,32 @@ export default { ...@@ -148,19 +168,32 @@ export default {
}) })
}, },
methods: { methods: {
isConfirm () {
this.hlsPopup.showConfirm({
title: '提示',
content: '您确定同意发车吗?',
onConfirm: data => {
if (data === 1) {
this.confirm()
}
},
})
},
confirm () { confirm () {
let vm = this let vm = this
let url = process.env.basePath + 'do_car_confirm' let url = process.env.basePath + 'do_car_confirm'
let param = { let param = {
'master': { master: {
'contract_id': '123', contract_id: '123',
'confirm_status': 'APPROVED', confirm_status: 'APPROVED',
}} },
}
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.result === 'S') {
vm.equip = res.lists vm.equip = res.lists
vm.hlsPopup.showSuccess('发车成功')
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
...@@ -223,18 +256,26 @@ export default { ...@@ -223,18 +256,26 @@ export default {
input::placeholder { input::placeholder {
color: #888c8f; color: #888c8f;
} }
.hide{ .trans-enter-active,
.trans-leave-active {
transition: opacity 0.5s;
}
.trans-enter,
.trans-leave-active {
opacity: 0;
}
.hide {
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
img{ img {
width:30px; width: 30px;
height:30px; height: 30px;
margin-left:65%; margin-left: 65%;
} }
} }
.wrap{ .wrap {
padding-top:92px; padding-top: 92px;
} }
.modal-show { .modal-show {
width: 100%; width: 100%;
......
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'car_confirm_list_query' let url = process.env.basePath + 'car_confirm_list_query'
let param = { let param = {
order_id: window.sessionStorage.getItem('user_phone'), user_phone: window.localStorage.getItem('user_phone'),
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
......
This diff is collapsed.
...@@ -11,12 +11,13 @@ ...@@ -11,12 +11,13 @@
<input placeholder="请输入合同号/产品线/承租人名称" > <input placeholder="请输入合同号/产品线/承租人名称" >
</div> </div>
<h-content class="my-content"> <h-content class="my-content">
<scroll <scroll ref="scroll" :updateData="[contructs]" :pullUp="true">
ref="scroll" <div
:updateData="[contructs]" v-for="(item,index) in showList"
:pullUp="true" :key="index"
class="item"
@click="changePage(item.project_id)"
> >
<div v-for="(item,index) in showList" :key="index" class="item" @click="changePage(item.project_id)">
<div class="left"> <div class="left">
<span> <span>
<img src="@/assets/contractStart/icon.png" > <img src="@/assets/contractStart/icon.png" >
...@@ -45,12 +46,10 @@ ...@@ -45,12 +46,10 @@
</div> </div>
</div> </div>
</div> </div>
</scroll>
</scroll></h-content> </h-content>
<bottom-tab> <bottom-tab>
<tab-button class="add" @click.native="goAdd"> <tab-button class="add" @click.native="goAdd">新增发车</tab-button>
新增发车
</tab-button>
</bottom-tab> </bottom-tab>
</h-view> </h-view>
</template> </template>
...@@ -64,22 +63,24 @@ export default { ...@@ -64,22 +63,24 @@ export default {
return { return {
tabNum: 0, tabNum: 0,
contructs: [], contructs: [],
lists: [{ lists: [
'project_id': '48812', {
'project_number': '', project_id: '48812',
'bp_name': '李四', project_number: '',
'total_price': '51', bp_name: '李四',
'division_n': 'PDJ', total_price: '51',
'leases_status': 'Y', division_n: 'PDJ',
leases_status: 'Y',
}, },
{ {
'project_id': '48800', project_id: '48800',
'project_number': '', project_number: '',
'bp_name': '张三', bp_name: '张三',
'total_price': '51', total_price: '51',
'division_n': 'PDJ', division_n: 'PDJ',
'leases_status': 'N', leases_status: 'N',
}], },
],
showList: [], showList: [],
undo: [], undo: [],
done: [], done: [],
...@@ -93,7 +94,7 @@ export default { ...@@ -93,7 +94,7 @@ export default {
}) })
}, },
watch: { watch: {
'tabNum': { tabNum: {
handler () { handler () {
if (this.tabNum === 0) { if (this.tabNum === 0) {
this.showList = this.undo this.showList = this.undo
...@@ -140,7 +141,7 @@ export default { ...@@ -140,7 +141,7 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'car_apply_list_query' let url = process.env.basePath + 'car_apply_list_query'
let param = { let param = {
order_id: window.sessionStorage.getItem('user_phone'), user_phone: window.localStorage.getItem('user_phone'),
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
...@@ -244,7 +245,7 @@ export default { ...@@ -244,7 +245,7 @@ export default {
font-size: 14px; font-size: 14px;
color: #4b4a4b; color: #4b4a4b;
letter-spacing: 0; letter-spacing: 0;
font-weight:bold; font-weight: bold;
} }
li { li {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
...@@ -256,15 +257,14 @@ export default { ...@@ -256,15 +257,14 @@ export default {
span { span {
float: right; float: right;
} }
} }
} }
} }
} }
} }
.add{ .add {
color:#fff; color: #fff;
background-color:#0041C4; background-color: #0041c4;
} }
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment