Commit c9f3b534 authored by linxin's avatar linxin

Merge branch 'liuxin' into develop

parents 74dd2314 698e5c22
Pipeline #2954 canceled with stages
...@@ -34,25 +34,6 @@ ...@@ -34,25 +34,6 @@
<div slot="name">合格证编号 </div> <div slot="name">合格证编号 </div>
<input slot="content" v-model="rentInfo.certificate_number" readonly placeholder="自动识别合格证编号" > <input slot="content" v-model="rentInfo.certificate_number" readonly placeholder="自动识别合格证编号" >
</item> </item>
<!-- <item>
<div slot="name">厂商型号</div>
<input
slot="content"
v-model="rentInfo.vehicle_model"
readonly
class="write"
placeholder="暂无数据"
>
</item>
<item>
<div slot="name">车牌号</div>
<input
slot="content"
v-model="rentInfo.certificate_number"
readonly
placeholder="暂无数据"
>
</item> -->
<item> <item>
<div slot="name">发车日期</div> <div slot="name">发车日期</div>
<input <input
...@@ -128,7 +109,7 @@ ...@@ -128,7 +109,7 @@
</div> </div>
<div class="center"> <div class="center">
<span>租赁物信息</span> <span>租赁物信息</span>
<span class="status">已维护</span> <span :class="['status',item.lease_status === 'Y'?'unMantain':'mantain']">{{ item.lease_status === 'Y'?'已维护':'待维护' }}</span>
<p> <p>
参数项 参数项
<span>{{ item.product_code }}</span> <span>{{ item.product_code }}</span>
...@@ -139,7 +120,7 @@ ...@@ -139,7 +120,7 @@
</div> </div>
</div> </div>
</h-content> </h-content>
<bottom-tab> <bottom-tab v-if="!flag">
<tab-button class="approve" @click.native="isConfirm">确定</tab-button> <tab-button class="approve" @click.native="isConfirm">确定</tab-button>
</bottom-tab> </bottom-tab>
</h-view> </h-view>
...@@ -151,6 +132,7 @@ export default { ...@@ -151,6 +132,7 @@ export default {
num: null, num: null,
downNum: false, downNum: false,
show: false, show: false,
flag: false, // 判断是否为已确认
info: { info: {
product_plan_id: '', product_plan_id: '',
product_num: '', product_num: '',
...@@ -188,6 +170,11 @@ export default { ...@@ -188,6 +170,11 @@ export default {
next(vm => { next(vm => {
vm.getDetail() vm.getDetail()
vm.getEquipment() vm.getEquipment()
if (vm.$route.params.confirm_status === 'SUBMIT') {
vm.flag = false
} else if (vm.$route.params.confirm_status === 'APPROVED') {
vm.flag = true
}
}) })
}, },
methods: { methods: {
...@@ -425,10 +412,17 @@ export default { ...@@ -425,10 +412,17 @@ export default {
font-size: 12px; font-size: 12px;
color: #ffffff; color: #ffffff;
letter-spacing: 0; letter-spacing: 0;
background-color: #1d3fff;
margin-left: 21px; margin-left: 21px;
margin-top: 12px; margin-top: 12px;
} }
.unMantain{
background-color: #1d3fff;
}
.mantain{
background-color: #FFF;
border:1px solid #1d3fff;
color: #1d3fff;
}
p { p {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 13px; font-size: 13px;
......
...@@ -80,9 +80,7 @@ export default { ...@@ -80,9 +80,7 @@ export default {
}, },
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
next(vm => { next(vm => {
if (from.name === 'MyInfo') {
vm.getList() vm.getList()
}
}) })
}, },
methods: { methods: {
...@@ -108,6 +106,7 @@ export default { ...@@ -108,6 +106,7 @@ export default {
name: 'ConfirmDetail', name: 'ConfirmDetail',
params: { params: {
project_id: e.project_id, project_id: e.project_id,
confirm_status: e.confirm_status,
}, },
}) })
}, },
......
...@@ -129,6 +129,22 @@ export default { ...@@ -129,6 +129,22 @@ export default {
selectYear (e) { selectYear (e) {
return e.substring(0, 4) return e.substring(0, 4)
}, },
insertRank () { // 插入排序法,根据期数升序排序
let vm = this
let len = vm.lists.length
// 从第二个元素开始比较
for (let i = 1; i < len; i++) {
let tempTime = parseInt(vm.lists[i].times)
let temp = vm.lists[i]
let j = i - 1
// 若后面的元素小于前面的元素,进入while循环,直到后面元素大于前面元素,跳出循环
while (j >= 0 && parseInt(vm.lists[j].times) > tempTime) {
vm.lists[j + 1] = vm.lists[j]
j--
}
vm.lists[j + 1] = temp
}
},
getRefund () { getRefund () {
let vm = this let vm = this
let url = process.env.basePath + 'con_equip_repayment_plan' let url = process.env.basePath + 'con_equip_repayment_plan'
...@@ -140,6 +156,7 @@ export default { ...@@ -140,6 +156,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.insertRank()
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
......
...@@ -15,52 +15,51 @@ ...@@ -15,52 +15,51 @@
<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="info.frame_number" placeholder="自动识别车架号" > <input slot="content" v-model="info.frame_number" :readonly="flag" placeholder="自动识别车架号" >
</item> </item>
<item> <item>
<div slot="name">发动机号</div> <div slot="name">发动机号</div>
<input slot="content" v-model="info.engine" placeholder="自动识别发动机号" > <input slot="content" v-model="info.engine" :readonly="flag" placeholder="自动识别发动机号" >
</item> </item>
<item> <item>
<div slot="name">车辆型号 </div> <div slot="name">车辆型号 </div>
<input slot="content" v-model="info.vehicle_model" placeholder="自动识别车辆型号" > <input slot="content" v-model="info.vehicle_model" :readonly="flag" placeholder="自动识别车辆型号" >
</item> </item>
<item> <item>
<div slot="name">合格证编号 </div> <div slot="name">合格证编号 </div>
<input slot="content" v-model="info.certificate_number" placeholder="自动识别合格证编号" > <input slot="content" v-model="info.certificate_number" :readonly="flag" placeholder="自动识别合格证编号" >
</item> </item>
<!-- <item> <item v-if="!flag">
<div slot="name">厂商型号</div> <div slot="name">发车日期</div>
<input <input
slot="content" slot="content" v-model="info.departure_date" readonly placeholder="请输入发车日期"
v-model="info.manufacturer" @click="showTime('YYYY-MM-DD')">
class="write"
placeholder="请输入厂商型号"
>
</item> </item>
<item> <item v-if="flag">
<div slot="name">车牌号</div>
<input slot="content" v-model="info.license_plate_number" placeholder="请输入车牌号" >
</item> -->
<item>
<div slot="name">发车日期</div> <div slot="name">发车日期</div>
<input <input
slot="content" v-model="info.departure_date" readonly placeholder="请输入发车日期" slot="content" v-model="info.departure_date" readonly placeholder="请输入发车日期"
@click="showTime('YYYY-MM-DD')"> >
</item> </item>
<item> <item v-if="!flag">
<div slot="name">开票日期</div> <div slot="name">开票日期</div>
<input <input
slot="content" v-model="info.invoice_date" readonly placeholder="请输入开票日期" slot="content" v-model="info.invoice_date" readonly placeholder="请输入开票日期"
@click="showTimeInvoice('YYYY-MM-DD')"> @click="showTimeInvoice('YYYY-MM-DD')">
</item> </item>
<item v-if="flag">
<div slot="name">开票日期</div>
<input
slot="content" v-model="info.invoice_date" readonly placeholder="请输入开票日期"
>
</item>
<!-- <item :showArrow="true" @click.native="showModalValue=true"> <!-- <item :showArrow="true" @click.native="showModalValue=true">
<div slot="name">产品参数</div> <div slot="name">产品参数</div>
<input slot="content" v-model="info.bank_branch_name" placeholder="请选择产品参数" @click="changeHeight"> <input slot="content" v-model="info.bank_branch_name" placeholder="请选择产品参数" @click="changeHeight">
</item>--> </item>-->
</list-item> </list-item>
</div> </div>
<button @click="isSave">保存</button> <button v-if="!flag" @click="isSave">保存</button>
</div> </div>
</div> </div>
</transition> </transition>
...@@ -127,7 +126,7 @@ ...@@ -127,7 +126,7 @@
slot="content" slot="content"
v-model="detail.total_price" v-model="detail.total_price"
:placeholder="read?'暂无数据':'请输入合同金额'" :placeholder="read?'暂无数据':'请输入合同金额'"
readonly="read" :readonly="read"
> >
</item> </item>
<item v-if="!read" :showArrow="true"> <item v-if="!read" :showArrow="true">
...@@ -145,7 +144,7 @@ ...@@ -145,7 +144,7 @@
</item> </item>
<item> <item>
<div slot="name">租赁物数量</div> <div slot="name">租赁物数量</div>
<input slot="content" v-model="detail.product_num " readonly="read" placeholder="请输入租赁物数量" > <input slot="content" v-model="detail.product_num " :readonly="read" placeholder="请输入租赁物数量" >
</item> </item>
</list-item> </list-item>
<div class="userInfo">设备清单</div> <div class="userInfo">设备清单</div>
...@@ -173,8 +172,8 @@ ...@@ -173,8 +172,8 @@
</div> </div>
</div> </div>
</h-content> </h-content>
<bottom-tab> <bottom-tab v-if="!flag">
<tab-button class="approve" @click.native="isApprove">发车申请</tab-button> <tab-button class="approve" @click.native="checkStatus">发车申请</tab-button>
</bottom-tab> </bottom-tab>
<div class="bottom-pop"> <div class="bottom-pop">
<div class="bottom-content"> <div class="bottom-content">
...@@ -231,6 +230,7 @@ export default { ...@@ -231,6 +230,7 @@ export default {
show: false, show: false,
read: false, // 表示只读 read: false, // 表示只读
showDate: '', showDate: '',
flag: false,
productLine: [ productLine: [
{ {
code: '5', code: '5',
...@@ -350,6 +350,11 @@ export default { ...@@ -350,6 +350,11 @@ export default {
vm.read = true vm.read = true
vm.getDetail() vm.getDetail()
vm.getEquipment() vm.getEquipment()
if (vm.$route.params.car_start_status === 'REJECTED' || vm.$route.params.car_start_status === 'NEW') {
vm.flag = false
} else {
vm.flag = true
}
} }
}) })
}, },
...@@ -403,6 +408,16 @@ export default { ...@@ -403,6 +408,16 @@ export default {
}, },
}) })
}, },
checkStatus () {
let mantained = this.equip.filter(i => {
return i.lease_status === 'N'
})
if (mantained.length > 0) {
hlsPopup.showLongCenter('您有待维护的设备项,请完善信息后再申请发车!')
} else {
this.isApprove()
}
},
isApprove () { isApprove () {
this.hlsPopup.showConfirm({ this.hlsPopup.showConfirm({
title: '提示', title: '提示',
...@@ -682,7 +697,7 @@ export default { ...@@ -682,7 +697,7 @@ export default {
.down { .down {
position: relative; position: relative;
width: 314px; width: 314px;
height: 616px; height: 516px;
background-size: 301px 24.7px; background-size: 301px 24.7px;
background-color: #fff; background-color: #fff;
} }
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
v-for="(item,index) in showList" v-for="(item,index) in showList"
:key="index" :key="index"
class="item" class="item"
@click="changePage(item.project_id)" @click="changePage(item)"
> >
<div class="left"> <div class="left">
<span> <span>
...@@ -117,7 +117,8 @@ export default { ...@@ -117,7 +117,8 @@ export default {
this.$router.push({ this.$router.push({
name: 'AddCar', name: 'AddCar',
params: { params: {
project_id: e, project_id: e.project_id,
car_start_status: e.car_start_status,
}, },
}) })
}, },
......
...@@ -67,7 +67,11 @@ ...@@ -67,7 +67,11 @@
<img src="@/assets/myInfo/unFace.png" > <img src="@/assets/myInfo/unFace.png" >
<p>待面签</p> <p>待面签</p>
</div> </div>
<div @click="goCarConfirm"> <div class="content-wrap" @click="goCarConfirm">
<span
:class="{'content-wrap-class-width':carCount>99, 'content-wrap-class':carCount<99}"
style="left:30px"
>{{ carCount > 99 ? '99+' : carCount }}</span>
<img src="@/assets/myInfo/carConfirm.png" > <img src="@/assets/myInfo/carConfirm.png" >
<p>发车确认</p> <p>发车确认</p>
</div> </div>
...@@ -127,6 +131,7 @@ export default { ...@@ -127,6 +131,7 @@ export default {
confirmCount: '0', confirmCount: '0',
vedioCount: '0', vedioCount: '0',
productCount: '0', productCount: '0',
carCount: '0',
description: '', description: '',
bp_identity: '', bp_identity: '',
approveBtn: false, approveBtn: false,
...@@ -482,6 +487,7 @@ export default { ...@@ -482,6 +487,7 @@ export default {
vm.signCount = res.info.con_sign_num vm.signCount = res.info.con_sign_num
vm.confirmCount = res.info.con_confirm_num vm.confirmCount = res.info.con_confirm_num
vm.productCount = res.info.collect_num vm.productCount = res.info.collect_num
vm.carCount = res.info.car_confirm_num
} }
} else { } else {
this.hlsPopup.showLongCenter(res.message) this.hlsPopup.showLongCenter(res.message)
......
...@@ -54,9 +54,11 @@ ...@@ -54,9 +54,11 @@
@input="addRowsLive(invoiceInfo.open_bank)" @input="addRowsLive(invoiceInfo.open_bank)"
/> />
</item> </item>
<item> <item @click="keyboradShow">
<div slot="name">开户行账号</div> <div slot="name">开户行账号</div>
<input slot="content" v-model="invoiceInfo.open_account" type="text" placeholder="请输入开户行账号" > <input
slot="content" v-model="invoiceInfo.open_account" readonly type="text"
placeholder="请输入开户行账号" >
</item> </item>
</list-item> </list-item>
</template> </template>
...@@ -74,6 +76,7 @@ export default { ...@@ -74,6 +76,7 @@ export default {
}, },
data () { data () {
return { return {
value: '',
invoicList: [], invoicList: [],
taxpayerList: [], taxpayerList: [],
invoiceInfo: { invoiceInfo: {
...@@ -104,6 +107,26 @@ export default { ...@@ -104,6 +107,26 @@ export default {
this.sendList() this.sendList()
}, },
methods: { methods: {
onInput (value) {
this.invoiceInfo.open_account += ('' + value)
console.log(value)
},
onDelete () {
this.invoiceInfo.open_account = ''
console.log('delete')
},
keyboradShow () {
let vm = this
this.hlsPopup.showNumberKeyborad({
title: '数字键盘',
keyDown: (text) => {
vm.onInput(text)
},
keyDelete: () => {
vm.onDelete()
},
})
},
addRows (e) { addRows (e) {
let addNum = parseInt(e.length / 16) let addNum = parseInt(e.length / 16)
if (addNum === 0) { if (addNum === 0) {
......
...@@ -617,7 +617,7 @@ export default { ...@@ -617,7 +617,7 @@ export default {
this.dowload_list = [] // 保存之前将图片下载列表清空,防止出现重复的图片 this.dowload_list = [] // 保存之前将图片下载列表清空,防止出现重复的图片
this.upload_list = [] // 保存之前将待上传列表清空,防止出现重复的图片 this.upload_list = [] // 保存之前将待上传列表清空,防止出现重复的图片
let res = await this.saveWord() let res = await this.saveWord()
if(res){ if (res) {
this.getBankInfo() this.getBankInfo()
// 查询资料清单 // 查询资料清单
this.loadItemList() this.loadItemList()
......
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