Commit e948a711 by 张立顺

bugfix

1 parent 84354df4
......@@ -16,13 +16,13 @@
<slot wx:if="{{item.type == 'slot'}}" name="{{item.name}}" />
<!-- input / textarea -->
<view wx:if="{{item.type == 'input'}}" class="input-box">
<!-- rows="1" -->
<van-field
class="textarea"
custom-style="padding: 20rpx 0;"
border="{{ false}}"
value="{{formData[item.name]}}"
input-align="{{itme.inputAlign || 'right'}}"
rows="1"
autosize
hold-keyboard
type="{{item.fieldType || 'text'}}"
......
......@@ -50,152 +50,179 @@ const formRule = {
rearTireSpecification: [{ required: true, message: '规格型号(后轮)不能为空' }],
compensationName: [{ required: true, message: '第一受益人不能为空' }],
merchantPhone: [{ required: true, message: '联系电话不能为空' }],
merchantAddress: [{ required: true, message: '联系地址不能为空' }],
merchantAddress: [{ required: true, message: '联系地址不能为空' }]
}
const secondObj = {
carFormList: [{
label: '车架号',
name: 'vin',
type: 'input',
maxlength: '17'
}, {
label: '车辆发票价',
name: 'invoicePrice',
type: 'input',
readonly: true
}, {
label: '座位数',
name: 'seatesNum',
labelName: 'seatesNumTxt',
type: 'select',
optionList: constantList.seatesList,
optionId: 'optionId',
optionLabel: 'optionLabel'
}, {
label: '发动机号',
name: 'engineNo',
type: 'input',
maxlength: '30'
}, {
label: '车身颜色',
name: 'vehicleColor',
type: 'input',
maxlength: '5'
}, {
label: '购车日期',
name: 'billingDate',
type: 'pickerTime',
end: new Date()
}, {
label: '品牌车系',
name: 'vehicleBrandId',
labelName: 'brandTxt',
type: 'brand',
haveArrow: true,
noCellHeight: true,
placeholder: '请选择'
}],
customerFormList: [{
label: '客户类型',
name: 'customerType',
labelName: 'customerTypeName',
type: 'select',
optionList: constantList.customerTypeList,
optionId: 'optionId',
optionLabel: 'optionLabel'
}, {
label: '姓名',
name: 'customerName',
type: 'input',
maxlength: '100',
noCellHeight: true,
fieldType: 'textarea'
}, {
label: '联系电话',
name: 'customerPhone',
type: 'input',
maxlength: '11',
}, {
label: '证件类型',
name: 'cardType',
labelName: 'cardTypeName',
type: 'select',
optionList: constantList.cardTypeList,
optionId: 'optionId',
optionLabel: 'optionLabel'
}, {
label: '证件号码',
name: 'cardNo',
type: 'input'
}, {
label: '联系地址',
name: 'customerAddress',
type: 'input',
maxlength: '100',
noCellHeight: true,
fieldType: 'textarea'
}],
productFormList: [{
label: '服务年限',
name: 'servicePeriod',
type: 'input',
disabled: true,
suffix: '年'
}, {
label: '生效日期',
name: 'effectiveDate',
type: 'pickerTime',
start: new Date(new Date().setDate(new Date(new Date()).getDate() + 1)).toLocaleDateString()
}, {
label: '轮胎品牌',
name: 'tireBrand',
type: 'input',
maxlength: '20'
}, {
label: '规格型号(前轮)',
name: 'frontTireSpecification',
type: 'input',
maxlength: '20'
}, {
label: '规格型号(后轮)',
name: 'rearTireSpecification',
type: 'input',
maxlength: '20'
}, {
label: '购车类型',
name: 'buyCarType',
labelName: 'buyCarTypeName',
type: 'select',
optionList: constantList.buyCarTypeList,
optionId: 'optionId',
optionLabel: 'optionLabel'
}, {
label: '第一受益人',
name: 'compensationName',
type: 'input'
}],
storeFormList: [{
label: '店面名称',
name: 'merchantName',
type: 'input',
readonly: true
}, {
label: '联系电话',
name: 'merchantPhone',
type: 'input',
maxlength: '20'
}, {
label: '联系地址',
name: 'merchantAddress',
type: 'input',
fieldType: 'textarea',
maxlength: '100'
}]
carFormList: [
{
label: '车架号',
name: 'vin',
type: 'input',
maxlength: '17'
},
{
label: '车辆发票价',
name: 'invoicePrice',
type: 'input',
readonly: true
},
{
label: '座位数',
name: 'seatesNum',
labelName: 'seatesNum',
type: 'select',
optionList: constantList.seatesList,
optionId: 'optionId',
optionLabel: 'optionLabel'
},
{
label: '发动机号',
name: 'engineNo',
type: 'input',
maxlength: '30'
},
{
label: '车身颜色',
name: 'vehicleColor',
type: 'input',
maxlength: '5'
},
{
label: '购车日期',
name: 'billingDate',
type: 'pickerTime',
end: new Date()
},
{
label: '品牌车系',
name: 'vehicleBrandId',
labelName: 'brandTxt',
type: 'brand',
haveArrow: true,
noCellHeight: true,
placeholder: '请选择'
}
],
customerFormList: [
{
label: '客户类型',
name: 'customerType',
labelName: 'customerTypeName',
type: 'select',
optionList: constantList.customerTypeList,
optionId: 'optionId',
optionLabel: 'optionLabel'
},
{
label: '姓名',
name: 'customerName',
type: 'input',
maxlength: '100',
noCellHeight: true,
fieldType: 'textarea'
},
{
label: '联系电话',
name: 'customerPhone',
type: 'input',
maxlength: '11'
},
{
label: '证件类型',
name: 'cardType',
labelName: 'cardTypeName',
type: 'select',
optionList: constantList.cardTypeList,
optionId: 'optionId',
optionLabel: 'optionLabel'
},
{
label: '证件号码',
name: 'cardNo',
type: 'input'
},
{
label: '联系地址',
name: 'customerAddress',
type: 'input',
maxlength: '100',
noCellHeight: true,
fieldType: 'textarea'
}
],
productFormList: [
{
label: '服务年限',
name: 'servicePeriod',
type: 'input',
disabled: true,
suffix: '年'
},
{
label: '生效日期',
name: 'effectiveDate',
type: 'pickerTime',
start: new Date(new Date().setDate(new Date(new Date()).getDate() + 1)).toLocaleDateString()
},
{
label: '轮胎品牌',
name: 'tireBrand',
type: 'input',
maxlength: '20'
},
{
label: '规格型号(前轮)',
name: 'frontTireSpecification',
type: 'input',
maxlength: '20'
},
{
label: '规格型号(后轮)',
name: 'rearTireSpecification',
type: 'input',
maxlength: '20'
},
{
label: '购车类型',
name: 'buyCarType',
labelName: 'buyCarTypeName',
type: 'select',
optionList: constantList.buyCarTypeList,
optionId: 'optionId',
optionLabel: 'optionLabel'
},
{
label: '第一受益人',
name: 'compensationName',
type: 'input'
}
],
storeFormList: [
{
label: '店面名称',
name: 'merchantName',
type: 'input',
readonly: true
},
{
label: '联系电话',
name: 'merchantPhone',
type: 'input',
maxlength: '20'
},
{
label: '联系地址',
name: 'merchantAddress',
type: 'input',
fieldType: 'textarea',
maxlength: '100'
}
]
}
export default {
constantList,
formRule,
secondObj
}
\ No newline at end of file
}
......@@ -223,7 +223,7 @@ Page({
handleErrorJump(e) {
let { height } = e.detail
this.setData({
scrollTop: height, // 滚动到的位置(距离顶部 px)
scrollTop: height // 滚动到的位置(距离顶部 px)
})
},
......@@ -360,7 +360,7 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() { },
onReady() {},
/**
* 生命周期函数--监听页面显示
......@@ -375,25 +375,25 @@ Page({
/**
* 生命周期函数--监听页面隐藏
*/
onHide() { },
onHide() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() { },
onUnload() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() { },
onPullDownRefresh() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() { },
onReachBottom() {},
/**
* 用户点击右上角分享
*/
onShareAppMessage() { }
onShareAppMessage() {}
})
......@@ -128,7 +128,7 @@ Page({
onRoute(options) {
// console.log(options = 19)
let { data, id } = options
id = 26
// id = 26
this.setData({ id })
this.getQuotationInfoById()
},
......
......@@ -204,9 +204,14 @@ Component({
let value = e.detail
console.log(e)
let { attrname, attrtype, type } = e.currentTarget.dataset
value = type == 'number' ? wx.$util.numberFixedDigit(value) : value
if (type == 'number') {
value = parseFloat(value) > 2000000 ? 2000000 : value
}
let thisPage = wx.$router.getPageInstance()
console.log(attrtype)
if (attrtype == 'modifyEquityQuotation') {
let { orderInfo } = this.data
let showError = orderInfo.modifyEquityQuotation.minEquityPrice <= value ? false : true
......
<!-- packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml -->
<!-- <scroll-view scroll-y style="height:100vh;"> -->
<view class="testFormCon">
<view
class="selectBox insuranceCompany"
......@@ -30,7 +31,7 @@
class="inputBox"
border="{{false}}"
disabled="{{disable}}"
hold-keyboard
data-hold-keyboard
value="{{orderInfo.business.base}}"
data-attrName="base"
data-type='number'
......@@ -61,7 +62,7 @@
border="{{false}}"
disabled="{{disable}}"
placeholder="请输入保费"
hold-keyboard
data-hold-keyboard
value="{{orderInfo.business.threePremium}}"
data-type='number'
data-attrType="business"
......@@ -89,6 +90,7 @@
<van-field
class="inputBox"
border="{{false}}"
data-hold-keyboard
disabled="{{disable}}"
placeholder="请输入保费"
data-type='number'
......@@ -118,6 +120,7 @@
<van-field
class="inputBox"
border="{{false}}"
data-hold-keyboard
disabled="{{disable}}"
placeholder="请输入保费"
data-type='number'
......@@ -164,6 +167,7 @@
<van-field
class="inputBox"
border="{{false}}"
data-hold-keyboard
readonly="{{true}}"
value="{{item.compensation}}"
data-attrType="otherInsuranceList"
......@@ -173,6 +177,7 @@
<van-field
class="inputBox"
border="{{false}}"
data-hold-keyboard
readonly="{{true}}"
value="{{item.payPrice}}"
data-attrType="otherInsuranceList"
......@@ -199,6 +204,7 @@
<van-field
class="inputBox"
border="{{false}}"
data-hold-keyboard
disabled="{{disable}}"
placeholder="请输入"
value="{{orderInfo.mutualStrength.compensation}}"
......@@ -232,6 +238,7 @@
<van-field
class="inputBox"
border="{{false}}"
data-hold-keyboard
disabled="{{disable}}"
placeholder="请输入保费"
data-type='number'
......@@ -265,9 +272,7 @@
<text>包含</text>
<!-- {{orderInfo.quotationGoodsInfo.quotationGoodsServiceItemsRelationDTOList.length==index?'':'、'}} -->
<block wx:key="index" wx:for="{{orderInfo.quotationGoodsInfo.quotationGoodsServiceItemsRelationDTOList}}">
<text>
{{item.serviceName}}{{orderInfo.quotationGoodsInfo.quotationGoodsServiceItemsRelationDTOList.length==index?'':'、'}}
</text>
<text>{{item.serviceName}}{{orderInfo.quotationGoodsInfo.quotationGoodsServiceItemsRelationDTOList.length==index?'':'、'}}</text>
</block>
</view>
</view>
......@@ -277,6 +282,7 @@
<van-field
class="inputBox"
border="{{false}}"
data-hold-keyboard
value="{{orderInfo.modifyEquityQuotation.quotedPriceUpdate}}"
data-attrType="modifyEquityQuotation"
data-attrName="quotedPriceUpdate"
......@@ -297,6 +303,7 @@
<popup-select show="{{popupShow}}" popObj="{{popObj}}" typeName="{{popObj.typename}}" />
<popup-input show="{{popupInputShow}}" popInputObj="{{popInputObj}}" />
</view>
<!-- </scroll-view> -->
<van-popup
show="{{ showYear }}"
position="bottom"
......@@ -307,6 +314,8 @@
default-index="{{ currentIndex }}"
bind:change="onChange"
show-toolbar
adjust-position="{{false}}"
always-embed="{{true}}"
title="选择年份"
bind:cancel="onCancel"
bind:confirm="onConfirm" />
......
......@@ -67,6 +67,7 @@ const firstObj = {
label: '联系电话',
name: 'phone',
type: 'input',
fieldType: 'number',
maxlength: '11'
},
{
......@@ -98,8 +99,9 @@ const firstObj = {
label: '车辆发票价',
name: 'price',
type: 'input',
fieldType: 'digit',
maxlength: '8'
// fieldType: 'number'
// fieldType: 'digit'
}
]
}
......
......@@ -45,8 +45,8 @@ Page({
},
// 页面存放表单对象的对象名
dataAttrName: 'owner',
// step: 'first',
step: 'second',
step: 'first',
// step: 'second',
needChangeList: ['price', 'base', 'threePremium', 'carInsidePremium', 'passengerPremium', 'payPrice']
},
reWrite(type, data) {
......
......@@ -16,7 +16,8 @@
</view> -->
</view>
</navigation-bar>
<view class="layout" style="padding-top:{{navBarHeight}}px; height: calc(100vh - {{navBarHeight}}px);">
<!-- height: calc(100vh - {{navBarHeight}}px); -->
<view class="layout" style="padding-top:{{navBarHeight}}px; ">
<first-step
wx:if="{{step == 'first'}}"
id="FirstStep"
......
......@@ -53,8 +53,8 @@
<view class="total-box">
{{tabIndex == 0 ? '总订单' : tabList[tabIndex]}} · {{total}}
<text wx:if="{{tabIndex == 0}}" class="total-tips">
今日成功支付{{statisticsObj.todaySuccessPay || 0}}位,战败{{statisticsObj.todayFailurePay || 0}}位
</text>
今日成功支付{{statisticsObj.todaySuccessPay || 0}}位,战败{{statisticsObj.todayFailurePay || 0}}位
</text>
</view>
<view wx:if="{{flag}}" class="order-box">
<scroll-view
......@@ -78,7 +78,8 @@
</view>
<view class="header-status">
<!-- 0待报价、1待确认、2待支付、3已支付、-1战败 -->
<view wx:if="{{item.orderStatus == '3'}}">
<!-- == '3' -->
<view wx:if="{{ item.orderStatus == '3'||item.orderStatus =='4'}}">
<span class="green-txt">{{orderStatusObj[item.orderStatus]}}</span>
<span class="header-price">¥ {{item.quotedPriceUpdate || ''}}</span>
</view>
......@@ -101,13 +102,13 @@
<block>{{item[i.key] || ''}}</block>
</view>
</view>
<view class="order" wx:if="{{i.key == 'payTime' && item.orderStatus == '3'}}">
<view class="order" wx:if="{{i.key == 'payTime' &&( item.orderStatus == '3'||item.orderStatus =='4')}}">
<view class="order-label">{{i.label}}</view>
<view class="order-value">
<block>{{item[i.key] || ''}}</block>
</view>
</view>
<view class="order" wx:if="{{i.key == 'createdTime' && item.orderStatus == '3'}}">
<view class="order" wx:if="{{i.key == 'createdTime' &&( item.orderStatus == '3'||item.orderStatus =='4')}}">
<view class="order-label">{{i.label}}</view>
<view class="order-value">
<block>{{item[i.key] || ''}}</block>
......@@ -122,7 +123,7 @@
</view>
</block>
</view>
<view class="order-detail" wx:if="{{item.orderStatus == '1' || item.orderStatus == '3'}}">
<view class="order-detail" wx:if="{{item.orderStatus == '1' || item.orderStatus == '3' ||item.orderStatus =='4'}}">
<view class="detail-item">
<view class="detail-label">报价金额</view>
<view class="text-hide">{{item.quotedPrice || '--'}}</view>
......@@ -140,7 +141,7 @@
<!-- footer -->
<view class="item-footer">
<view>
<view wx:if="{{item.orderStatus == '3'}}" class="orange-txt">订单已支付,未录入权益合同</view>
<view wx:if="{{item.orderStatus == '3' }}" class="orange-txt">订单已支付,未录入权益合同</view>
<view wx:else>创建时间:{{item.createdTime}}</view>
</view>
<view wx:if="{{item.orderStatus != '4'}}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!