Commit 68cf87c7 authored by linxin's avatar linxin

Merge branch 'liuxin' into develop

parents ef72ab74 4ec66014
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<div slot="name">厂商型号</div> <div slot="name">厂商型号</div>
<input <input
slot="content" slot="content"
v-model="rentInfo.manufacturer" v-model="rentInfo.vehicle_model"
readonly readonly
class="write" class="write"
placeholder="请输入厂商型号" placeholder="请输入厂商型号"
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<div slot="name">车牌号</div> <div slot="name">车牌号</div>
<input <input
slot="content" slot="content"
v-model="rentInfo.license_plate_number" v-model="rentInfo.certificate_number"
readonly readonly
placeholder="请输入车牌号" placeholder="请输入车牌号"
> >
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<div slot="name">发车日期</div> <div slot="name">发车日期</div>
<input <input
slot="content" slot="content"
v-model="rentInfo.date" v-model="rentInfo.departure_date"
readonly readonly
placeholder="请输入发车日期" placeholder="请输入发车日期"
> >
...@@ -158,6 +158,9 @@ export default { ...@@ -158,6 +158,9 @@ export default {
engine: '', engine: '',
manufacturer: '', manufacturer: '',
license_plate_number: '', license_plate_number: '',
vehicle_model: '',
certificate_number: '',
departure_date: '',
}, },
products: [], products: [],
equip: [ equip: [
......
...@@ -23,11 +23,11 @@ ...@@ -23,11 +23,11 @@
</item> </item>
<item> <item>
<div slot="name">车辆型号 </div> <div slot="name">车辆型号 </div>
<input slot="content" v-model="info.type" placeholder="自动识别车辆型号" > <input slot="content" v-model="info.vehicle_model" placeholder="自动识别车辆型号" >
</item> </item>
<item> <item>
<div slot="name">合格证编号 </div> <div slot="name">合格证编号 </div>
<input slot="content" v-model="info.number" placeholder="自动识别合格证编号" > <input slot="content" v-model="info.certificate_number" placeholder="自动识别合格证编号" >
</item> </item>
<item> <item>
<div slot="name">厂商型号</div> <div slot="name">厂商型号</div>
...@@ -285,9 +285,9 @@ export default { ...@@ -285,9 +285,9 @@ export default {
engine: '', engine: '',
manufacturer: '', manufacturer: '',
license_plate_number: '', license_plate_number: '',
type: '', vehicle_model: '',
number: '', certificate_number: '',
date: '', departure_date: '',
}, },
detail: { detail: {
product_num: '', product_num: '',
...@@ -334,7 +334,7 @@ export default { ...@@ -334,7 +334,7 @@ export default {
}, },
}, },
created () { created () {
this.showDate = this.carDate // this.showDate = this.carDate
}, },
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
next(vm => { next(vm => {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<span>合同发车</span> <span>合同发车</span>
</div> </div>
</h-header> </h-header>
<Tab @getTabNum="getTabNum" /> <Tab :tabNum="tabNum" @getTabNum="getTabNum" />
<div class="search"> <div class="search">
<input placeholder="请输入合同号/产品线/承租人名称" > <input placeholder="请输入合同号/产品线/承租人名称" >
</div> </div>
...@@ -78,10 +78,10 @@ export default { ...@@ -78,10 +78,10 @@ export default {
}, },
watch: { watch: {
tabNum: { tabNum: {
handler () { handler (newVal, oldVal) {
if (this.tabNum === 0) { if (newVal === 0) {
this.showList = this.undo this.showList = this.undo
} else if (this.tabNum === 1) { } else if (newVal === 1) {
this.showList = this.done this.showList = this.done
} }
}, },
...@@ -91,12 +91,15 @@ export default { ...@@ -91,12 +91,15 @@ export default {
created () { created () {
}, },
methods: { methods: {
selectShowList () { selectShowList (e) {
let vm = this let vm = this
this.lists.forEach(item => { vm.undo = []
if (item.leases_status === 'Y') { vm.done = []
vm.tabNum = 0
e.forEach(item => {
if (item.leases_status === 'N') {
vm.undo.push(item) vm.undo.push(item)
} else if (item.leases_status === 'N') { } else if (item.leases_status === 'Y') {
vm.done.push(item) vm.done.push(item)
} }
}) })
...@@ -130,25 +133,7 @@ export default { ...@@ -130,25 +133,7 @@ export default {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.lists = res.lists vm.lists = res.lists
// vm.lists = [ vm.selectShowList(res.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',
// },
// ]
vm.selectShowList()
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
......
...@@ -20,9 +20,15 @@ import sign from '@/assets/contractStart/1.png' ...@@ -20,9 +20,15 @@ import sign from '@/assets/contractStart/1.png'
import finish from '@/assets/contractStart/3.png' import finish from '@/assets/contractStart/3.png'
export default { export default {
props: {
'tabNum': {
type: Number,
default: 0,
},
},
data () { data () {
return { return {
tabNum: 0, // tabNum: 0,
signed: signed, signed: signed,
finished: finished, finished: finished,
sign: sign, sign: sign,
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<item <item
v-for="(item,index) in nongBank" v-for="(item,index) in nongBank"
:proportion="[7,1,1]" :proportion="[7,1,1]"
:key="index" :key="item.bank_account_num"
@click.native="isSelect(`nong${index}`)" @click.native="isSelect(`nong${index}`)"
> >
<div slot="name" style="flex=3"> <div slot="name" style="flex=3">
...@@ -121,11 +121,13 @@ export default { ...@@ -121,11 +121,13 @@ export default {
computed: { computed: {
newList () { newList () {
let vm = this let vm = this
let value vm.nongBank = []
let newList = vm.lists.map(i => {
return i.bank_full_name.indexOf('农业') === -1
})
vm.lists.forEach((item, i) => { vm.lists.forEach((item, i) => {
if (item.bank_full_name.indexOf('农业') !== -1) { if (item.bank_full_name.indexOf('农业') !== -1) {
value = vm.lists.splice(i, 1) vm.nongBank.push(vm.lists[i])
vm.nongBank.push(...value)
vm.flag = true vm.flag = true
} }
}) })
...@@ -134,7 +136,7 @@ export default { ...@@ -134,7 +136,7 @@ export default {
} else { } else {
vm.select = 'one' vm.select = 'one'
} }
return vm.lists return newList
}, },
}, },
watch: {}, watch: {},
...@@ -291,10 +293,10 @@ export default { ...@@ -291,10 +293,10 @@ export default {
} }
} }
.push { .push {
position: absolute; margin-left: 0.2rem;
top: 10px; width: 0.7rem;
margin-left: 10px; float: right;
width: 35px; margin-top: 11px;
} }
.entry-content { .entry-content {
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<item <item
v-for="(item,index) in nongBank" v-for="(item,index) in nongBank"
:proportion="[7,1,1]" :proportion="[7,1,1]"
:key="index" :key="item.bank_account_num"
@click.native="isSelect(`nong${index}`)" @click.native="isSelect(`nong${index}`)"
> >
<div slot="name" style="flex=3"> <div slot="name" style="flex=3">
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,7 @@ export default {
vm.money = vm.$route.params.sumMoney vm.money = vm.$route.params.sumMoney
} }
vm.getType() vm.getType()
vm.nongBank = [] // vm.nongBank = []
}) })
}, },
methods: { methods: {
......
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