<template>
|
|
<view class="containers" >
|
|
<view class="header">
|
|
<view class="header_info">
|
|
<view class="header_info_icon" @click.native.stop.prevent="toBack" style="display: flex; justify-content: center; align-items: center;">
|
|
<uni-icons type="left" size="30" color="#c2d4de" > </uni-icons>
|
|
</view>
|
|
<text class="header_text">信息录入</text>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="section" style="margin-top: 5%;">
|
|
<view class="form-item">
|
|
<text class="label">付款方式</text>
|
|
<text>
|
|
{{records[0].payType}}
|
|
</text>
|
|
</view>
|
|
<view class="form-item">
|
|
<text class="label">客户类型</text>
|
|
<text @change="onChange" class="radio-group" >
|
|
{{records[0].custType == 0 ? "个人" : "公司"}}
|
|
</text>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="idCard-box">
|
|
<view class="reverse" @tap.prevent="uploadPositive">
|
|
<image :src="records[0].certFront" >
|
|
</image>
|
|
</view>
|
|
<view class="reverse" @tap.prevent="uploadReverse">
|
|
<image :src="records[0].certBack" >
|
|
</image>
|
|
</view>
|
|
<view class="reverse" @tap.prevent="uploadCarCert">
|
|
<image :src="records[0].carPic" >
|
|
</image>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 客户基本信息 -->
|
|
<view class="section">
|
|
<view class="con_size">
|
|
<image src="/static/image/矩形 5315.png" class='con_size_img' ></image>
|
|
客户基本信息
|
|
</view>
|
|
<view class="form-item">
|
|
<text class="labels">*</text>
|
|
<text class="label">产品名称</text>
|
|
<text class="value">{{ records[0].productName }}</text>
|
|
</view>
|
|
<view class="form-item">
|
|
<text class="labels">*</text>
|
|
<text class="label">经销商</text>
|
|
<text class="value">{{ records[0].storeName }}</text>
|
|
</view>
|
|
<view class="form-item">
|
|
<text class="labels">*</text>
|
|
<text class="label">客户姓名</text>
|
|
<text class="value">{{ records[0].custName }}</text>
|
|
</view>
|
|
<view class="form-item">
|
|
<text class="labels">*</text>
|
|
<text class="label">居住地址</text>
|
|
<text class="value">{{ records[0].custAddress }}</text>
|
|
</view>
|
|
<view class="form-item">
|
|
<text class="labels">*</text>
|
|
<text class="label">身份证号码</text>
|
|
<text class="value">{{ records[0].custCardNo }}</text>
|
|
</view>
|
|
<view class="form-item">
|
|
<text class="labels">*</text>
|
|
<text class="label">联系方式</text>
|
|
<text class="value">{{ records[0].custPhone }}</text>
|
|
</view>
|
|
<view class="form-item">
|
|
<text class="labels">*</text>
|
|
<text class="label">销售端口</text>
|
|
<text class="value">{{ records[0].storeName }}</text>
|
|
</view>
|
|
<view class="form-item">
|
|
<text class="labels">*</text>
|
|
<text class="label">店端销售顾问</text>
|
|
<text class="value">{{ records[0].saleName }}</text>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 车辆信息 -->
|
|
<view class="section">
|
|
<view class="con_size">
|
|
<image src="/static/image/矩形 5315.png" class='con_size_img' ></image>车辆信息</view>
|
|
<view class="form-item">
|
|
<text class="labels">*</text>
|
|
<text class="label">车牌车系</text>
|
|
<text class="value">{{cars[0].saleName}}</text>
|
|
</view>
|
|
<view class="form-item">
|
|
<text class="labels">*</text>
|
|
<text class="label">车辆型号</text>
|
|
<text class="value">{{cars[0].carModel}}</text>
|
|
</view>
|
|
|
|
<view class="form-item">
|
|
<text class="labels">*</text>
|
|
<text class="label">车架号</text>
|
|
<text class="value">{{cars[0].vin}}</text>
|
|
</view>
|
|
|
|
<view class="form-item">
|
|
<text class="labels">*</text>
|
|
<text class="label">车辆类型</text>
|
|
<text class="value">{{cars[0].carType}}</text>
|
|
</view>
|
|
|
|
<view class="form-item">
|
|
<text class="labels">*</text>
|
|
<text class="label">使用性质</text>
|
|
<text class="value">{{cars[0].useType}}</text>
|
|
</view>
|
|
<view class="form-item">
|
|
<text class="labels">*</text>
|
|
<text class="label">是否新车</text>
|
|
<text class="value">{{cars[0].newCar==0?"否":"是" }}</text>
|
|
</view>
|
|
|
|
<view class="form-item">
|
|
<text class="label">车牌号</text>
|
|
<text class="value">{{cars[0].carNo}}</text>
|
|
</view>
|
|
<view class="form-item">
|
|
<text class="labels">*</text>
|
|
<text class="label">发动机号</text>
|
|
<text class="value">{{cars[0].engineNo}}</text>
|
|
</view>
|
|
<view class="form-item" v-if="productTypeFlag">
|
|
<text class="labels">*</text>
|
|
<text class="label">里程</text>
|
|
<text class="value">{{cars[0].mileage}}</text>
|
|
</view>
|
|
<view class="form-item" v-if="productTypeFlag">
|
|
<text class="labels">*</text>
|
|
<text class="label">购车时间</text>
|
|
<text class="value">{{cars[0].buyTime}}</text>
|
|
</view>
|
|
<view class="form-item" v-if="productTypeFlag">
|
|
<text class="labels">*</text>
|
|
<text class="label">车辆购置价</text>
|
|
<text class="value">{{cars[0].buyMoney}}</text>
|
|
</view>
|
|
<view class="form-item" v-if="productTypeFlag">
|
|
<text class="labels">*</text>
|
|
<text class="label">购置税</text>
|
|
<text class="value">{{cars[0].buyTax}}</text>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<!-- 凭证信息 -->
|
|
<view class="section">
|
|
<view class="con_size">
|
|
<image src="/static/image/矩形 5315.png" class='con_size_img' ></image>凭证信息</view>
|
|
<view class="form-item" v-if="productTypeFlag">
|
|
<text class="labels">*</text>
|
|
<text class="label">第一受益人</text>
|
|
<text class="value">{{vouchers[0].firstBeneficiary}}</text>
|
|
</view>
|
|
<view class="form-item" v-if="productTypeFlag">
|
|
<text class="labels">*</text>
|
|
<text class="label">服务费</text>
|
|
<text class="value">{{vouchers[0].serviceMoney}}</text>
|
|
</view>
|
|
<view class="form-item" v-if="productTypeFlag">
|
|
<text class="labels">*</text>
|
|
<text class="label">生效时间</text>
|
|
<text class="value">{{vouchers[0].effectiveTime}}</text>
|
|
</view>
|
|
<view class="form-item" v-if="productTypeFlag">
|
|
<text class="labels">*</text>
|
|
<text class="label">失效时间</text>
|
|
<text class="value">{{vouchers[0].endTime}}</text>
|
|
</view>
|
|
<view class="form-item" v-if="productTypeFlag">
|
|
<text class="labels">*</text>
|
|
<text class="label">服务年限</text>
|
|
<text class="value">{{vouchers[0].serviceYear}}</text>
|
|
</view>
|
|
|
|
<view class="form-item" v-if="productTypeFlag">
|
|
<text class="labels">*</text>
|
|
<text class="label">付款时间</text>
|
|
<text class="value">{{vouchers[0].payTime}}</text>
|
|
</view>
|
|
|
|
|
|
<view class="con_size" >
|
|
<text class="labels">*</text>
|
|
<text class="label">支付凭证</text><image
|
|
:src="records[0].payVoucherUrl"
|
|
mode="widthFix"
|
|
style="width: 100px;height: 150px;"
|
|
@click="clickImg"
|
|
></image>
|
|
</view>
|
|
|
|
<view class="con_size">
|
|
<text class="labels">*</text>
|
|
<text class="label">发票信息</text><image
|
|
:src="records[0].invoiceUrl"
|
|
mode="widthFix"
|
|
style="width: 100px;height: 150px;"
|
|
@click="clickImg"
|
|
></image>
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="section" v-if="productTypeFlag">
|
|
<view class="con_size">
|
|
<image src="/static/image/矩形 5315.png" class='con_size_img' ></image>金融信息</view>
|
|
<view class="form-item">
|
|
<text class="label">贷款机构</text>
|
|
<text class="value">{{Finances[0].lender||0}}</text>
|
|
</view>
|
|
<view class="form-item">
|
|
<text class="label">贷款金额</text>
|
|
<text class="value">{{Finances[0].lenderMoney||0}}</text>
|
|
</view>
|
|
<view class="form-item">
|
|
<text class="label">贷款期限</text>
|
|
<text class="value">{{Finances[0].lenderYear||0}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {isToken,list,queryAppOrderCarByMainId,queryAppOrderFinanceByMainId,queryAppOrderVoucherByMainId,queryDictItemsByCode} from '@/api.uts'
|
|
export default {
|
|
data() {
|
|
return {
|
|
records: [],
|
|
cars:[],
|
|
vouchers:[],
|
|
Finances:[],
|
|
productTypeFlag:true
|
|
|
|
}
|
|
},
|
|
onLoad(options) {
|
|
isToken();
|
|
list({id:getApp().id}).then((res)=>{
|
|
this.records = res.result.records
|
|
})
|
|
|
|
queryAppOrderCarByMainId({id:getApp().id}).then((res)=>{
|
|
this.cars = res.result
|
|
})
|
|
queryAppOrderFinanceByMainId({id:getApp().id}).then((res)=>{
|
|
this.Finances = res.result
|
|
})
|
|
queryAppOrderVoucherByMainId({id:getApp().id}).then((res)=>{
|
|
this.vouchers = res.result
|
|
queryDictItemsByCode({code:"service_year"}).then((res)=>{
|
|
for (let s of res) {
|
|
if(s.value == String( this.vouchers[0].serviceYear)){
|
|
this.vouchers[0].serviceYear = s.text
|
|
}
|
|
}
|
|
})
|
|
|
|
})
|
|
console.log('111',JSON.parse(this.cars));
|
|
this.productTypeFlag = getApp().productTypeFlag;
|
|
},
|
|
|
|
onUpload() {
|
|
// 页面销毁时移除监听
|
|
uni.offKeyboardHeightChange();
|
|
},
|
|
methods: {
|
|
keyboardheightchange(e){
|
|
// this.changeBottomVal = e.detail.height + 'px'
|
|
},
|
|
clickImg(){
|
|
uni.previewImage({
|
|
urls: [this.records[0].payVoucherUrl], //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
|
|
current: '', // 当前显示图片的http链接,默认是第一个
|
|
success: function(res) {},
|
|
fail: function(res) {},
|
|
complete: function(res) {},
|
|
})
|
|
},
|
|
toBack(){
|
|
// console.log('111')
|
|
uni.navigateBack({delta: 1})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.containers {
|
|
height: 100%;
|
|
width: 100%;
|
|
background-color: #fff;
|
|
overflow-y:scroll;
|
|
|
|
}
|
|
.footer {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
}
|
|
|
|
.container::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
.section {
|
|
// margin-bottom: 30rpx;
|
|
border-bottom: 1rpx solid #eee;
|
|
margin: 0 1rem 0 1rem;
|
|
}
|
|
|
|
.sections{
|
|
margin: 0 1rem 1rem 1rem;
|
|
}
|
|
.form-item {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.5rem 0;
|
|
border-bottom: 0.1rem solid #f2f2f2;
|
|
color: #767676;
|
|
}
|
|
.labels{
|
|
color: red;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
.label {
|
|
font-size: 28rpx;
|
|
color: #666;
|
|
width: 200rpx;
|
|
}
|
|
|
|
.input {
|
|
flex: 1;
|
|
text-align: right;
|
|
font-size: 28rpx;
|
|
color: #737373;
|
|
}
|
|
|
|
.picker {
|
|
flex: 1;
|
|
}
|
|
|
|
.picker-text {
|
|
text-align: right;
|
|
color: #737373;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.radio-group {
|
|
display: flex;
|
|
flex: 1;
|
|
justify-content: flex-end;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.radio-label {
|
|
padding: 0;
|
|
margin-left: 10rpx;
|
|
display: flex;
|
|
flex-direction: row;
|
|
font-size: 1rem;
|
|
transform: scale(0.7);
|
|
}
|
|
|
|
.value {
|
|
flex: 1;
|
|
text-align: right;
|
|
color: #737373;
|
|
font-size: 0.8rem;
|
|
}
|
|
// .timePiker{
|
|
// display: flex;
|
|
// justify-content: center;
|
|
// align-items: center;
|
|
// color: #3f3f3f;
|
|
// }
|
|
|
|
.idCard-box {
|
|
margin-top: 10%;
|
|
width: 100%;
|
|
height: 50%;
|
|
display: flex;
|
|
flex-direction: row;
|
|
/* background-color: red; */
|
|
flex-wrap: wrap;
|
|
|
|
.reverse {
|
|
height: 30%;
|
|
width: 40%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
// background-color: blue;
|
|
margin: 0 5% 0 5%;
|
|
image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
text{
|
|
position: absolute;
|
|
text-shadow: 1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black;
|
|
font-size: 0.8rem;
|
|
color:#fff;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* 表单分区样式 */
|
|
.con_size {
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
margin: 1rem 0;
|
|
color: #000000;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
}
|
|
|
|
.con_size_img{
|
|
height: 100%;
|
|
width: 2%;
|
|
margin-right: 2%;
|
|
}
|
|
|
|
|
|
.form-button{
|
|
width: 100%;
|
|
height:100%;
|
|
// background-color: #000000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.button{
|
|
height: 100%;
|
|
width: 100%;
|
|
background-color: #044f7a;
|
|
color: #ffffff;
|
|
border-radius: 1rem;
|
|
}
|
|
</style>
|