<u-input inputAlign="right" placeholder="请输入总质量" v-model="state.form.totalMass" | <u-input inputAlign="right" placeholder="请输入总质量" v-model="state.form.totalMass" | ||||
:disabled="state.isEnableChangeOCRCarInfo" /> | :disabled="state.isEnableChangeOCRCarInfo" /> | ||||
</u-form-item> | </u-form-item> | ||||
<u-form-item label="车轴数"> | |||||
<u-input inputAlign="right" placeholder="请输入车轴数" v-model="state.form.axleCount" /> | |||||
</u-form-item> | |||||
<view class="form-item"> | <view class="form-item"> | ||||
<label>车辆用户类型</label> | <label>车辆用户类型</label> | ||||
<view class="select" @click="state.actionSheetShow = true">{{state.form.useUserTypeName}}</view> | <view class="select" @click="state.actionSheetShow = true">{{state.form.useUserTypeName}}</view> | ||||
msg("请上次车头照"); | msg("请上次车头照"); | ||||
return; | return; | ||||
} | } | ||||
if (state.form.type == 1) { | |||||
state.form.axleCount = 2; | |||||
} else { | |||||
if (!state.form.axleCount) { | |||||
msg("请输入车轴数"); | |||||
return; | |||||
} | |||||
} | |||||
state.form.vehicleId = | state.form.vehicleId = | ||||
state.form.vehicleIdNum + "_" + state.vehiclePlateColor; | state.form.vehicleIdNum + "_" + state.vehiclePlateColor; | ||||
state.form.opId = getItem(StorageKeys.OpenId); | state.form.opId = getItem(StorageKeys.OpenId); | ||||
state.form.approvedCount = parseFloat(state.form.approvedCount); | state.form.approvedCount = parseFloat(state.form.approvedCount); | ||||
state.form.maintenaceMass = parseFloat(state.form.maintenaceMass); | state.form.maintenaceMass = parseFloat(state.form.maintenaceMass); | ||||
state.form.totalMass = parseFloat(state.form.totalMass); | state.form.totalMass = parseFloat(state.form.totalMass); | ||||
state.form.permittedWeight = parseFloat(state.form.permittedWeight); | |||||
state.form.permittedTowWeight = parseFloat(state.form.permittedTowWeight); | |||||
const options = { | const options = { | ||||
type: 2, | type: 2, | ||||
data: state.form, | data: state.form, | ||||
// url: `/subpackage/orders/interestsList?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`// url: `/subpackage/orders/sign-up?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`, | // url: `/subpackage/orders/interestsList?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`// url: `/subpackage/orders/sign-up?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`, | ||||
// }); | // }); | ||||
uni.redirectTo({ | uni.redirectTo({ | ||||
url: `/subpackage/orders/product-detail?orderId=${state.orderId}&&clientFee=${state.clientFee}&&id=${state.id}&&data=${items}&&isValueCard=${getItem("isValueCard")}`, | |||||
url: `/subpackage/orders/product-detail?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}&&isValueCard=${getItem("isValueCard")}`, | |||||
}); | }); | ||||
// #endif | // #endif | ||||
// uni.redirectTo({ | // uni.redirectTo({ | ||||
// url: `/subpackage/orders/sign-up?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`, | // url: `/subpackage/orders/sign-up?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`, | ||||
// }); | // }); | ||||
// uni.redirectTo({ | |||||
// url: `/subpackage/orders/interestsList?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}` | |||||
// }); | |||||
uni.redirectTo({ | uni.redirectTo({ | ||||
url: `/subpackage/orders/interestsList?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}` | |||||
url: `/subpackage/orders/product-detail?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}&&isValueCard=${getItem("isValueCard")}`, | |||||
}); | }); | ||||
// uni.redirectTo({ | // uni.redirectTo({ | ||||
// url: `/subpackage/orders/release-products?orderId=${state.form.orderId}&clientFee=${getItem('clientFee')}&&id=${getItem('productId')}`, | // url: `/subpackage/orders/release-products?orderId=${state.form.orderId}&clientFee=${getItem('clientFee')}&&id=${getItem('productId')}`, | ||||
state.form.issueDate = data.issue; | state.form.issueDate = data.issue; | ||||
state.form.vehPosImgUrl = data.imageUrl; | state.form.vehPosImgUrl = data.imageUrl; | ||||
state.form.vehicleModel = data.model; | state.form.vehicleModel = data.model; | ||||
state.form.permittedWeight = data.alc ? data.alc : 0; | |||||
state.form.permittedTowWeight = data.towing ? data.towing : 0; | |||||
} else { | } else { | ||||
// state.form.approvedCount = parseFloat(data.apc); | // state.form.approvedCount = parseFloat(data.apc); | ||||
// state.form.maintenaceMass = parseFloat(data.unladen); | // state.form.maintenaceMass = parseFloat(data.unladen); |
// url: `/subpackage/orders/essential-information?promoteId=${getItem("promoteId")}&userType=${state.userType}&type=${state.type}&isSign=${state.isSign}&isValueCard=${state.isValueCard}`, | // url: `/subpackage/orders/essential-information?promoteId=${getItem("promoteId")}&userType=${state.userType}&type=${state.type}&isSign=${state.isSign}&isValueCard=${state.isValueCard}`, | ||||
// }); | // }); | ||||
uni.redirectTo({ | uni.redirectTo({ | ||||
url: `/subpackage/orders/interestsList?promoteId=${getItem("promoteId")}&userType=${state.userType}&type=${state.type}&isValueCard=${state.isValueCard}`, | |||||
url: `/subpackage/orders/interestsList?promoteId=${getItem("promoteId")}&userType=${state.userType}&type=${state.type}&isValueCard=${state.isValueCard}&fee=${Number(state.fee)}`, | |||||
}); | }); | ||||
} | } | ||||
const savaHandle = (val) => { | const savaHandle = (val) => { | ||||
// url: `/subpackage/orders/essential-information?promoteId=${getItem("promoteId")}&userType=${state.userType}&type=${state.type}&isValueCard=${state.isValueCard}`, | // url: `/subpackage/orders/essential-information?promoteId=${getItem("promoteId")}&userType=${state.userType}&type=${state.type}&isValueCard=${state.isValueCard}`, | ||||
// }); | // }); | ||||
uni.redirectTo({ | uni.redirectTo({ | ||||
url: `/subpackage/orders/interestsList?promoteId=${val['promoteId']}&userType=${state.userType}&type=${state.type}&isValueCard=${state.isValueCard}`, | |||||
url: `/subpackage/orders/interestsList?promoteId=${val['promoteId']}&userType=${state.userType}&type=${state.type}&isValueCard=${state.isValueCard}&fee=${Number(val.fee)}`, | |||||
}); | }); | ||||
} else { | } else { | ||||
state.radiolist1 = []; | state.radiolist1 = []; | ||||
state.radiolist1.push(obj) | state.radiolist1.push(obj) | ||||
} | } | ||||
state.choiceCardShow = true; | state.choiceCardShow = true; | ||||
state.fee = val.fee; | |||||
console.log("state.radiolist1", state.radiolist1) | console.log("state.radiolist1", state.radiolist1) | ||||
} | } | ||||
}; | }; | ||||
tip: "绑定微信支付,无需绑定银行卡", | tip: "绑定微信支付,无需绑定银行卡", | ||||
}, | }, | ||||
], | ], | ||||
fee: 0 //产品金额 | |||||
}); | }); | ||||
</script> | </script> | ||||
isValueCard: '', | isValueCard: '', | ||||
checked: false, | checked: false, | ||||
agreeURL: "", | agreeURL: "", | ||||
orderId: "", | |||||
totalAmount: "" | |||||
}); | }); | ||||
const globalParam = () => { | const globalParam = () => { | ||||
const options = { | const options = { | ||||
orderGoAction(); | orderGoAction(); | ||||
} else { | } else { | ||||
const data = stringToJson(res.bizContent); | const data = stringToJson(res.bizContent); | ||||
state.orderId = data.orderId | |||||
console.log(data); | console.log(data); | ||||
//提交产品信息 | //提交产品信息 | ||||
productReCodeAction(data.orderId).then((result) => { | productReCodeAction(data.orderId).then((result) => { | ||||
state.data.promoteId = option.promoteId; | state.data.promoteId = option.promoteId; | ||||
state.isValueCard = option.isValueCard | state.isValueCard = option.isValueCard | ||||
state.data.cardType = option.isValueCard | state.data.cardType = option.isValueCard | ||||
state.totalAmount = option.totalAmount; | |||||
console.log("订单选择推广发行产品接口", option) | console.log("订单选择推广发行产品接口", option) | ||||
getInfo(); | getInfo(); | ||||
uni.getLocation({ | uni.getLocation({ | ||||
orderId: state.orderId, //订单编号 | orderId: state.orderId, //订单编号 | ||||
openId: getItem(StorageKeys.OpenId), //操作人 id | openId: getItem(StorageKeys.OpenId), //操作人 id | ||||
equityId: state.data.promoteId, //权益Id | equityId: state.data.promoteId, //权益Id | ||||
totalAmount: allMoney * 100, //总金额 | |||||
totalAmount: state.totalAmount, //总金额 | |||||
isRepeatPurchase: 0 | isRepeatPurchase: 0 | ||||
}, | }, | ||||
method: "POST", | method: "POST", |
<template> | <template> | ||||
<view class="content"> | <view class="content"> | ||||
<view class="item" v-for="(item,index) in state.list" :key='index'> | <view class="item" v-for="(item,index) in state.list" :key='index'> | ||||
<view class="title"> | |||||
<view class="title" @click="addInterestsList(item)"> | |||||
<view> | <view> | ||||
<view v-if='item.children' style="display: inline-block;"> | <view v-if='item.children' style="display: inline-block;"> | ||||
<image :class="item.isShow?'imageChange':'imageDefault'" @click="changeIsShow(index)" | <image :class="item.isShow?'imageChange':'imageDefault'" @click="changeIsShow(index)" | ||||
</view> | </view> | ||||
<text><text>{{item.productName}}</text> <text>¥{{item.discountPrice * 0.01}}</text></text> | <text><text>{{item.productName}}</text> <text>¥{{item.discountPrice * 0.01}}</text></text> | ||||
</view> | </view> | ||||
<checkbox-group @change='getValue(index)'> | |||||
<!-- <checkbox-group @change='getValue(index)'> | |||||
<label> | <label> | ||||
<checkbox :value="index" /> | <checkbox :value="index" /> | ||||
</label> | </label> | ||||
</checkbox-group> | |||||
</checkbox-group> --> | |||||
</view> | </view> | ||||
<view v-if="item.isShow" class="children" v-for="(itemChild,index) in item.children" :key='index'> | <view v-if="item.isShow" class="children" v-for="(itemChild,index) in item.children" :key='index'> | ||||
<view><text>{{itemChild.productName}}</text> <text>{{itemChild.discountPrice * 0.01}}</text> | <view><text>{{itemChild.productName}}</text> <text>{{itemChild.discountPrice * 0.01}}</text> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<button type="default" class="button" @click="addInterestsList()"> | |||||
<!-- <button type="default" class="button" @click="addInterestsList()"> | |||||
加购权益 | 加购权益 | ||||
</button> | |||||
</button> --> | |||||
</view> | </view> | ||||
</template> | </template> | ||||
type: 0, | type: 0, | ||||
userType: 0, | userType: 0, | ||||
promoteId: "", //产品id | promoteId: "", //产品id | ||||
totalAmount: 0, //产品+权益产品金额 | |||||
}) | }) | ||||
onLoad((option : any) => { | onLoad((option : any) => { | ||||
state.type = option.type; | state.type = option.type; | ||||
state.isValueCard = option.isValueCard; | state.isValueCard = option.isValueCard; | ||||
state.promoteId = option.promoteId; | state.promoteId = option.promoteId; | ||||
state.totalAmount = option.fee; | |||||
getList(); | getList(); | ||||
getOpenID(); | getOpenID(); | ||||
console.log("option", option) | console.log("option", option) | ||||
}) | }) | ||||
const addInterestsList = () => { | |||||
const addInterestsList = (item) => { | |||||
state.totalAmount = Number(state.totalAmount) + Number(item.discountPrice) | |||||
uni.redirectTo({ | uni.redirectTo({ | ||||
url: `/subpackage/orders/essential-information?promoteId=${getItem("promoteId")}&userType=${state.userType}&type=${state.type}&isValueCard=${state.isValueCard}`, | |||||
url: `/subpackage/orders/essential-information?promoteId=${getItem("promoteId")}&userType=${state.userType}&type=${state.type}&isValueCard=${state.isValueCard}&totalAmount=${state.totalAmount}`, | |||||
}); | }); | ||||
return; | return; | ||||
state.choiceValueComplete = []; | state.choiceValueComplete = []; | ||||
url: `/subpackage/orders/essential-information?promoteId=${getItem("promoteId")}&userType=${state.userType}&type=${state.type}&isValueCard=${state.isValueCard}`, | url: `/subpackage/orders/essential-information?promoteId=${getItem("promoteId")}&userType=${state.userType}&type=${state.type}&isValueCard=${state.isValueCard}`, | ||||
}); | }); | ||||
}); | }); | ||||
}); | }); | ||||
} | } | ||||
// PRESTORE("预存金",3){}, | // PRESTORE("预存金",3){}, | ||||
// EQUITY("权益费",4){}, | // EQUITY("权益费",4){}, | ||||
for (let i = 0; i < state.dataArray.length; i++) { | for (let i = 0; i < state.dataArray.length; i++) { | ||||
if (state.dataArray[i].payType === 'HANDLE') { | |||||
state.dataArray[i].payName = '办理费' | |||||
} else if (state.dataArray[i].payType === 'MARGIN') { | |||||
// if (state.dataArray[i].payType === 'HANDLE') { | |||||
// state.dataArray[i].payName = '办理费' | |||||
// } else | |||||
if (state.dataArray[i].payType === 'MARGIN') { | |||||
state.dataArray[i].payName = '保证金' | state.dataArray[i].payName = '保证金' | ||||
} else if (state.dataArray[i].payType === 'PRESTORE') { | } else if (state.dataArray[i].payType === 'PRESTORE') { | ||||
state.dataArray[i].payName = '预存金' | state.dataArray[i].payName = '预存金' | ||||
// PRESTORE("预存金",3){}, | // PRESTORE("预存金",3){}, | ||||
// EQUITY("权益费",4){}, | // EQUITY("权益费",4){}, | ||||
for (let i = 0; i < state.dataArray.length; i++) { | for (let i = 0; i < state.dataArray.length; i++) { | ||||
if (state.dataArray[i].payType === 'HANDLE') { | |||||
state.dataArray[i].payName = '办理费' | |||||
} else if (state.dataArray[i].payType === 'MARGIN') { | |||||
// if (state.dataArray[i].payType === 'HANDLE') { | |||||
// state.dataArray[i].payName = '办理费' | |||||
// } else | |||||
if (state.dataArray[i].payType === 'MARGIN') { | |||||
state.dataArray[i].payName = '保证金' | state.dataArray[i].payName = '保证金' | ||||
} else if (state.dataArray[i].payType === 'PRESTORE') { | } else if (state.dataArray[i].payType === 'PRESTORE') { | ||||
state.dataArray[i].payName = '预存金' | state.dataArray[i].payName = '预存金' |
// PRESTORE("预存金",3){}, | // PRESTORE("预存金",3){}, | ||||
// EQUITY("权益费",4){}, | // EQUITY("权益费",4){}, | ||||
for (let i = 0; i < state.dataArray.length; i++) { | for (let i = 0; i < state.dataArray.length; i++) { | ||||
if (state.dataArray[i].payType === 'HANDLE') { | |||||
state.dataArray[i].payName = '办理费' | |||||
} else if (state.dataArray[i].payType === 'MARGIN') { | |||||
// if (state.dataArray[i].payType === 'HANDLE') { | |||||
// state.dataArray[i].payName = '办理费' | |||||
// } else | |||||
if (state.dataArray[i].payType === 'MARGIN') { | |||||
state.dataArray[i].payName = '保证金' | state.dataArray[i].payName = '保证金' | ||||
} else if (state.dataArray[i].payType === 'PRESTORE') { | } else if (state.dataArray[i].payType === 'PRESTORE') { | ||||
state.dataArray[i].payName = '预存金' | state.dataArray[i].payName = '预存金' |