Commit 38f5fa34 by cen

fix: 失败提示

1 parent 1ee07db5
...@@ -3,135 +3,223 @@ import { gscPost } from '../request/signHttp' ...@@ -3,135 +3,223 @@ import { gscPost } from '../request/signHttp'
module.exports = { module.exports = {
/** 评估单列表 */ /** 评估单列表 */
evalOrderList(data) { evalOrderList(data) {
return gscPost(`/evalOrder/page`, { return gscPost(
`/evalOrder/page`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 评估单详情 */ /** 评估单详情 */
evalOrderDetail(data) { evalOrderDetail(data) {
return gscPost(`/evalOrder/detail`, { return gscPost(
`/evalOrder/detail`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 评估单创建 */ /** 评估单创建 */
evalOrderCreate(data) { evalOrderCreate(data) {
return gscPost(`/evalOrder/create`, { return gscPost(
`/evalOrder/create`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 评估单分页状态数量 */ /** 评估单分页状态数量 */
evalOrderPageCount(data) { evalOrderPageCount(data) {
return gscPost(`/evalOrder/pageCount`, { return gscPost(
`/evalOrder/pageCount`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 评估单更新 */ /** 评估单更新 */
evalOrderUpdate(data) { evalOrderUpdate(data) {
return gscPost(`/evalOrder/edit`, { return gscPost(
`/evalOrder/edit`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 评估单重新报价 */ /** 评估单重新报价 */
evalOrderOwnerReQuote(data) { evalOrderOwnerReQuote(data) {
return gscPost(`/evalOrder/ownerReQuote`, { return gscPost(
`/evalOrder/ownerReQuote`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 签订买卖合同 */ /** 签订买卖合同 */
evalOrderSignContract(data) { evalOrderSignContract(data) {
return gscPost(`/evalOrder/signingSaleContract`, { return gscPost(
`/evalOrder/signingSaleContract`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 评估单取消合同 */ /** 评估单取消合同 */
evalOrderCancelContract(data) { evalOrderCancelContract(data) {
return gscPost(`/evalOrder/cancelSaleContract`, { return gscPost(
`/evalOrder/cancelSaleContract`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 评估单重新提交 */ /** 评估单重新提交 */
evalOrderConfirmVehicleDelivery(data) { evalOrderConfirmVehicleDelivery(data) {
return gscPost(`/confirmVehicleDelivery/reSubmit`, { return gscPost(
`/confirmVehicleDelivery/reSubmit`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 确认交车 */ /** 确认交车 */
confirmDelivery(data) { confirmDelivery(data) {
return gscPost(`/confirmVehicleDelivery/confirmVehicleDelivery`, { return gscPost(
`/confirmVehicleDelivery/confirmVehicleDelivery`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 支付定金 */ /** 支付定金 */
payDepositApplication(data) { payDepositApplication(data) {
return gscPost(`/applyPayment/payDepositApplication`, { return gscPost(
`/applyPayment/payDepositApplication`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 发起代保管协议签署 */ /** 发起代保管协议签署 */
signAgreement(data) { signAgreement(data) {
return gscPost(`/applyPayment/payFinal`, { return gscPost(
`/applyPayment/payFinal`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 检查代保管协议签署状态 */ /** 检查代保管协议签署状态 */
checkSignAgreement(data) { checkSignAgreement(data) {
return gscPost(`/applyPayment/checkSignAgreement`, { return gscPost(
`/applyPayment/checkSignAgreement`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 检查车辆是否存在重复评估单 */ /** 检查车辆是否存在重复评估单 */
checkRepeat(data) { checkRepeat(data) {
return gscPost(`/evalOrder/checkRepeat`, { return gscPost(
`/evalOrder/checkRepeat`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 车辆ocr识别 */ /** 车辆ocr识别 */
vinOcr(data) { vinOcr(data) {
return gscPost(`/evalOrder/vinOcr`, { return gscPost(
`/evalOrder/vinOcr`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 行驶证ocr识别 */ /** 行驶证ocr识别 */
carLicenseOcr(data) { carLicenseOcr(data) {
return gscPost(`/evalOrder/carLicenseOcr`, { return gscPost(
`/evalOrder/carLicenseOcr`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 获取合同详情 */ /** 获取合同详情 */
getContractDetail(data) { getContractDetail(data) {
return gscPost(`/evalElectronicContract/getDetail`, { return gscPost(
`/evalElectronicContract/getDetail`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 获取保管人列表 */ /** 获取保管人列表 */
getCustodyAgreementList(data) { getCustodyAgreementList(data) {
return gscPost(`/custodyAgreement/custodyAgreementList`, { return gscPost(
`/custodyAgreement/custodyAgreementList`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 新增保管人 */ /** 新增保管人 */
addCustodyAgreement(data) { addCustodyAgreement(data) {
return gscPost(`/custodyAgreement/addCustodyAgreement`, { return gscPost(
`/custodyAgreement/addCustodyAgreement`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 发送代保管人协议 */ /** 发送代保管人协议 */
sendCustodyAgreement(data) { sendCustodyAgreement(data) {
return gscPost(`/custodyAgreement/sendCustodyAgreement`, { return gscPost(
`/custodyAgreement/sendCustodyAgreement`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 销售协议预览 */ /** 销售协议预览 */
salesAgreementPreview(data) { salesAgreementPreview(data) {
return gscPost(`/evalOrder/salesAgreementPreview`, { return gscPost(
`/evalOrder/salesAgreementPreview`,
{
...data ...data
}) },
{ returnAll: true }
)
}, },
/** 线上合同预览 */ /** 线上合同预览 */
viewOnlineContract(data) { viewOnlineContract(data) {
return gscPost(`/evalOrder/viewOnlineContract`, { return gscPost(
`/evalOrder/viewOnlineContract`,
{
...data ...data
}) },
{ returnAll: true }
)
} }
} }
import { Request } from 'glsk-toolkit' import { Request } from 'glsk-toolkit'
module.exports = { module.exports = {
gscPost: (url, data, _config = {}) => { gscPost: (url, data, _config = {}) => {
if(!uni.$signHttp) uni.$signHttp = new Request(uni.signHttpConfig) if (!uni.$signHttp) uni.$signHttp = new Request(uni.signHttpConfig)
return uni.$signHttp.post(url, data, _config) return uni.$signHttp.post(url, data, _config)
} }
} }

47.4 KB | W: | H:

50.8 KB | W: | H:

assets/images/common/sign-no-data.png
assets/images/common/sign-no-data.png
assets/images/common/sign-no-data.png
assets/images/common/sign-no-data.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -540,7 +540,8 @@ export default { ...@@ -540,7 +540,8 @@ export default {
}) })
.then(res => { .then(res => {
console.log('res:', res) console.log('res:', res)
const { basic = {}, carInfo = {}, carLicense = {}, images = {} } = res if (res.data.code == 0) {
const { basic = {}, carInfo = {}, carLicense = {}, images = {} } = res.data.data
that.formData.evalOrderBasicReqDTO = { ...basic } that.formData.evalOrderBasicReqDTO = { ...basic }
that.formData.carBaseReqDTO = { ...carInfo } that.formData.carBaseReqDTO = { ...carInfo }
that.formData.carLicenseReqDTO = { ...carLicense } that.formData.carLicenseReqDTO = { ...carLicense }
...@@ -606,6 +607,7 @@ export default { ...@@ -606,6 +607,7 @@ export default {
} }
} }
}) })
}
}) })
}, },
...@@ -803,21 +805,32 @@ export default { ...@@ -803,21 +805,32 @@ export default {
}) })
.then(res => { .then(res => {
console.log('res:', res) console.log('res:', res)
if (res.result == 1) { if (res.data.code == 0) {
if (res.data.data.result == 1) {
this.isExistSamePlate = true this.isExistSamePlate = true
this.$refs.tipsPopup this.$refs.tipsPopup
.open() .open()
.then(() => { .then(() => {
uni.navigateTo({ uni.navigateTo({
url: '/pages/evaluationForm/addEvaluationFrom?type=edit' + '&evalOrderNo=' + res.evalOrderNo url: '/pages/evaluationForm/addEvaluationFrom?type=edit' + '&evalOrderNo=' + res.data.data.evalOrderNo
}) })
}) })
.catch(() => { .catch(() => {
console.log('用户点击了取消') console.log('用户点击了取消')
}) })
} else if (res.result == 2) { } else if (res.data.data.result == 2) {
this.isExistSamePlate = false this.isExistSamePlate = false
this.$refs.tipsPopup.open() this.$refs.tipsPopup
.open()
.then(() => {
uni.navigateTo({
url: '/pages/evaluationForm/evaluationFormDetails?evalOrderNo=' + res.data.data.evalOrderNo
})
})
.catch(() => {
console.log('用户点击了取消')
})
}
} }
}) })
} }
...@@ -960,11 +973,11 @@ export default { ...@@ -960,11 +973,11 @@ export default {
}) })
.then(res => { .then(res => {
console.log('res:', res) console.log('res:', res)
if (res.status == 1) { if (res.data.data.status == 1) {
this.formData.carBaseReqDTO.vin = res.vin this.formData.carBaseReqDTO.vin = res.data.data.vin
uni.hideLoading() uni.hideLoading()
} else { } else {
uni.showToast({ title: res.errorMessage, icon: 'none' }) uni.showToast({ title: res.data.data.errorMessage, icon: 'none' })
uni.hideLoading() uni.hideLoading()
} }
}) })
...@@ -981,16 +994,18 @@ export default { ...@@ -981,16 +994,18 @@ export default {
.then(res => { .then(res => {
console.log('res:', res) console.log('res:', res)
uni.hideLoading() uni.hideLoading()
if (res.status == 1) { if (res.data.data.status == 1) {
this.formData.carBaseReqDTO.engineNumber = res.engineNumber this.formData.carBaseReqDTO.engineNumber = res.data.data.engineNumber
this.formData.carBaseReqDTO.licensePlate = res.licensePlate this.formData.carBaseReqDTO.licensePlate = res.data.data.licensePlate
this.formData.carBaseReqDTO.vin = res.vin this.formData.carBaseReqDTO.vin = res.data.data.vin
this.formData.carBaseReqDTO.registrationDate = res.registrationDate this.formData.carBaseReqDTO.registrationDate = res.data.data.registrationDate
this.formData.carLicenseReqDTO.previousOwnerAddress = res.previousOwnerAddress this.formData.carLicenseReqDTO.previousOwnerAddress = res.data.data.previousOwnerAddress
this.formData.carLicenseReqDTO.previousOwnerName = res.previousOwnerName this.formData.carLicenseReqDTO.previousOwnerName = res.data.data.previousOwnerName
this.formData.carLicenseReqDTO.carSeriesName = res.data.data.carSeriesName
this.formData.carLicenseReqDTO.carTypeName = res.data.data.carTypeName
} else { } else {
uni.hideLoading() uni.hideLoading()
uni.showToast({ title: res.errorMessage, icon: 'none' }) uni.showToast({ title: res.data.data.errorMessage, icon: 'none' })
} }
}) })
}, },
...@@ -1040,7 +1055,7 @@ export default { ...@@ -1040,7 +1055,7 @@ export default {
if (this.query.type === 'add') { if (this.query.type === 'add') {
const res = await uni.$api.evaluationApi.evalOrderCreate(this.formData) const res = await uni.$api.evaluationApi.evalOrderCreate(this.formData)
console.log('res:', res) console.log('res:', res)
if (res.data) { if (res.data.code == 0) {
uni.hideLoading() uni.hideLoading()
uni.showToast({ uni.showToast({
title: '新增成功', title: '新增成功',
...@@ -1055,7 +1070,7 @@ export default { ...@@ -1055,7 +1070,7 @@ export default {
} else if (this.query.type === 'edit') { } else if (this.query.type === 'edit') {
const res = await uni.$api.evaluationApi.evalOrderUpdate(this.formData) const res = await uni.$api.evaluationApi.evalOrderUpdate(this.formData)
console.log('res:', res) console.log('res:', res)
if (res.data) { if (res.data.code == 0) {
uni.hideLoading() uni.hideLoading()
uni.showToast({ uni.showToast({
title: '编辑成功', title: '编辑成功',
......
...@@ -155,24 +155,28 @@ export default { ...@@ -155,24 +155,28 @@ export default {
width: toRpx(848); width: toRpx(848);
border-radius: toRpx(36); border-radius: toRpx(36);
background-color: #fff !important; background-color: #fff !important;
padding: 0 toRpx(64) toRpx(48); padding: 0 0 toRpx(48);
overflow: hidden; overflow: hidden;
.content { .content {
min-height: 32vh; min-height: 32vh;
max-height: 80vh; max-height: 80vh;
overflow-y: auto; overflow-y: auto;
padding-bottom: toRpx(96); padding: 0 toRpx(64) toRpx(64);
box-sizing: border-box; box-sizing: border-box;
background-color: #fff; background-color: #fff;
.uni-input-placeholder {
color: #999999;
}
} }
.popup-top-box { .popup-top-box {
color: #1a1a1a; color: #1a1a1a;
font-size: toRpx(40); font-size: toRpx(40);
font-weight: 500; font-weight: 500;
text-align: center; text-align: center;
background-color: #fff;
height: toRpx(136); height: toRpx(136);
padding: 0 toRpx(64);
background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%);
.popup-top-box-title { .popup-top-box-title {
flex: 1; flex: 1;
text-align: center; text-align: center;
...@@ -184,12 +188,15 @@ export default { ...@@ -184,12 +188,15 @@ export default {
.footer-box { .footer-box {
width: 100%; width: 100%;
margin-top: toRpx(16); margin-top: toRpx(16);
padding: 0 toRpx(64);
border-radius: toRpx(42); border-radius: toRpx(42);
} }
} }
::v-deep .noTitle .uni-popup__wrapper.center { ::v-deep .noTitle .uni-popup__wrapper.center {
padding: 0; padding: 0;
.content {
padding: 0;
}
.footer-box { .footer-box {
padding: 0 toRpx(64); padding: 0 toRpx(64);
} }
......
...@@ -253,6 +253,7 @@ export default { ...@@ -253,6 +253,7 @@ export default {
supplementaryClauseText: this.formData.supplementaryClauseText supplementaryClauseText: this.formData.supplementaryClauseText
}) })
.then(res => { .then(res => {
if (res.data.code == 0) {
this.$refs.addAgreementPopup.closePopup() this.$refs.addAgreementPopup.closePopup()
this.formFields.forEach(item => { this.formFields.forEach(item => {
if (item.key === field.key) { if (item.key === field.key) {
...@@ -261,6 +262,7 @@ export default { ...@@ -261,6 +262,7 @@ export default {
}) })
this.pdfUrl = res.fileDownloadUrl this.pdfUrl = res.fileDownloadUrl
console.log('this.pdfUrl', this.pdfUrl) console.log('this.pdfUrl', this.pdfUrl)
}
}) })
}) })
} else if (field.type === 'calendar') { } else if (field.type === 'calendar') {
...@@ -304,12 +306,12 @@ export default { ...@@ -304,12 +306,12 @@ export default {
...this.formData ...this.formData
}) })
console.log('res:', res) console.log('res:', res)
if (res.data) { if (res.data.code == 0) {
uni.showToast({ title: '交车成功', icon: 'none' }) uni.showToast({ title: '交车成功', icon: 'none' })
setTimeout(() => { setTimeout(() => {
// uni.navigateBack({ uni.navigateBack({
// delta: 1 delta: 1
// }) })
}, 500) }, 500)
} }
}, },
......
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,7 @@
</view> </view>
<view v-for="(item, index) in detailsInfo.paymentList || []" :key="index" class="tableRow"> <view v-for="(item, index) in detailsInfo.paymentList || []" :key="index" class="tableRow">
<view class="tableCell">{{ item.paymentType == 1 ? '定金' : item.paymentType == 2 ? '尾款' : '全款' }}</view> <view class="tableCell">{{ item.paymentType == 1 ? '定金' : item.paymentType == 2 ? '尾款' : '全款' }}</view>
<view class="tableCell">{{ item.paymentStatus == 1 ? '已支付' : '未支付' }}</view> <view class="tableCell">{{ item.status == 1 ? '已支付' : '未支付' }}</view>
<view class="tableCell">{{ item.payTime || '-' }}</view> <view class="tableCell">{{ item.payTime || '-' }}</view>
<view class="tableCell">{{ item.paymentAmount ? '¥' + item.paymentAmount : '-' }}</view> <view class="tableCell">{{ item.paymentAmount ? '¥' + item.paymentAmount : '-' }}</view>
</view> </view>
...@@ -546,8 +546,9 @@ export default { ...@@ -546,8 +546,9 @@ export default {
}) })
.then(res => { .then(res => {
console.log('res:', res) console.log('res:', res)
const { basic = {}, carInfo = {}, carLicense = {}, images = {} } = res if (res.data.code == 0) {
that.detailsInfo = res that.detailsInfo = res.data.data
}
}) })
}, },
switchTab(index) { switchTab(index) {
...@@ -613,11 +614,13 @@ export default { ...@@ -613,11 +614,13 @@ export default {
}) })
.then(res => { .then(res => {
console.log('res:', res) console.log('res:', res)
if (res.data.code == 0) {
// const pdfUrl = 'https://jinrong-huidan-test.oss-cn-shenzhen.aliyuncs.com/testdev/696fdf0c-0287-4bcd-9d4e-6b423f2fe5ba%E4%BA%8C%E6%89%8B%E8%BD%A6%E8%BD%AC%E8%AE%A9%E5%8D%8F%E8%AE%AE.docx' // const pdfUrl = 'https://jinrong-huidan-test.oss-cn-shenzhen.aliyuncs.com/testdev/696fdf0c-0287-4bcd-9d4e-6b423f2fe5ba%E4%BA%8C%E6%89%8B%E8%BD%A6%E8%BD%AC%E8%AE%A9%E5%8D%8F%E8%AE%AE.docx'
const url = `/pages/evaluationForm/components/pdfPreView?fileUrl=${res.contractUrl}&title=pdf&fileType=pdf&Signature=false` const url = `/pages/evaluationForm/components/pdfPreView?fileUrl=${res.data.data.contractUrl}&title=pdf&fileType=pdf&Signature=false`
uni.navigateTo({ uni.navigateTo({
url: `${url}` url: `${url}`
}) })
}
}) })
} }
} }
......
...@@ -31,7 +31,11 @@ ...@@ -31,7 +31,11 @@
客户意向报价 客户意向报价
<text class="requiredLabel">*</text> <text class="requiredLabel">*</text>
</view> </view>
<input class="intention-input mb-48" type="number" maxlength="6" placeholder="请输入" v-model="requoteObj.customerTargetPrice" /> <view class="flex align-center intention-input-cell mb-48">
<input class="flex-1" type="number" maxlength="6" placeholder="请输入" v-model="requoteObj.customerTargetPrice" />
<text>元</text>
</view>
<view class="requote-label mb-24"> <view class="requote-label mb-24">
客户意向报价 客户意向报价
<text class="requiredLabel">*</text> <text class="requiredLabel">*</text>
...@@ -110,7 +114,7 @@ ...@@ -110,7 +114,7 @@
<text class="popup-cell-title light-title">{{ payPopupObj.paymentType == 1 && payPopupObj.status == 40 ? '已支付定金' : '待支付尾款' }}</text> <text class="popup-cell-title light-title">{{ payPopupObj.paymentType == 1 && payPopupObj.status == 40 ? '已支付定金' : '待支付尾款' }}</text>
<text class="popup-cell-value light-value">{{ payPopupObj.paymentType == 1 && payPopupObj.status == 40 ? payPopupObj.depositPrice : payPopupObj.finalPrice }}元</text> <text class="popup-cell-value light-value">{{ payPopupObj.paymentType == 1 && payPopupObj.status == 40 ? payPopupObj.depositPrice : payPopupObj.finalPrice }}元</text>
</view> </view>
<view class="flex align-center mb-40"> <view class="flex align-center mb-40" :class="payPopupObj.paymentType == 2 ? 'mt-28' : ''">
<text class="popup-cell-title">评估价</text> <text class="popup-cell-title">评估价</text>
<text class="popup-cell-value">{{ payPopupObj.evalPrice }}元</text> <text class="popup-cell-value">{{ payPopupObj.evalPrice }}元</text>
</view> </view>
...@@ -129,7 +133,7 @@ ...@@ -129,7 +133,7 @@
</view> </view>
</template> </template>
</GeneralPopup> </GeneralPopup>
<GeneralPopup ref="tipsPopup" popupClass="tipsPopup" type="center" :showClose="true" :showTitle="false" @confirm="confirmTips"> <GeneralPopup ref="tipsPopup" popupClass="tipsPopup" type="center" :showClose="true" :showTitle="false" @confirm="confirmTips" :noTitle="true">
<template #content> <template #content>
<view> <view>
<image class="tipsPopupBg" :src="bg" /> <image class="tipsPopupBg" :src="bg" />
...@@ -261,10 +265,10 @@ export default { ...@@ -261,10 +265,10 @@ export default {
currentPage: pageNo, currentPage: pageNo,
pageSize: 10 pageSize: 10
}) })
if (res) { if (res.data.code == 0) {
console.log('res:', res) console.log('res:', res)
// this.dataList = res.records // this.dataList = res.records
this.$refs.paging.complete(res.records) this.$refs.paging.complete(res.data.data.records)
} else { } else {
this.$refs.paging.complete(false) this.$refs.paging.complete(false)
console.log(err) console.log(err)
...@@ -282,11 +286,13 @@ export default { ...@@ -282,11 +286,13 @@ export default {
}) })
.then(res => { .then(res => {
console.log('res:', res) console.log('res:', res)
if (res.data.code == 0) {
this.typeList.forEach(item => { this.typeList.forEach(item => {
item.count = res[item.keyNum] || 0 item.count = res.data.data[item.keyNum] || 0
}) })
// this.$set(this.typeList, item.count, res[item.keyNum]) // this.$set(this.typeList, item.count, res[item.keyNum])
console.log('this.typeList:', this.typeList) console.log('this.typeList:', this.typeList)
}
}) })
}, },
addEvaluationForm(e) { addEvaluationForm(e) {
...@@ -325,7 +331,7 @@ export default { ...@@ -325,7 +331,7 @@ export default {
const res = await uni.$api.evaluationApi.evalOrderConfirmVehicleDelivery({ const res = await uni.$api.evaluationApi.evalOrderConfirmVehicleDelivery({
evalOrderNo: e.evalOrderNo evalOrderNo: e.evalOrderNo
}) })
if (res) { if (res.data.code == 0) {
uni.showToast({ uni.showToast({
title: '重新提交成功', title: '重新提交成功',
icon: 'none' icon: 'none'
...@@ -342,22 +348,26 @@ export default { ...@@ -342,22 +348,26 @@ export default {
async amountRequested(e) { async amountRequested(e) {
const that = this const that = this
const contractDetail = await uni.$api.evaluationApi.getContractDetail({ const res = await uni.$api.evaluationApi.getContractDetail({
contractNo: e.saleContractNo contractNo: e.saleContractNo
}) })
if (res.data.code == 0) {
const contractDetail = res.data.data
console.log('res:', contractDetail) console.log('res:', contractDetail)
this.payPopupObj = { ...that.payPopupObj, ...JSON.parse(contractDetail.electronicContractField), ...e } this.payPopupObj = { ...that.payPopupObj, ...JSON.parse(contractDetail.electronicContractField), ...e }
that.$refs.amountRequestedPopup.open().then(async () => { that.$refs.amountRequestedPopup.open().then(async () => {
if (e.type == 'payDeposit') { if (e.type == 'payDeposit') {
await uni.$api.evaluationApi.payDepositApplication({ const res = await uni.$api.evaluationApi.payDepositApplication({
evalOrderNo: e.evalOrderNo evalOrderNo: e.evalOrderNo
}) })
if (res.data.code == 0) {
uni.showToast({ uni.showToast({
title: '定金已申请,请等待付款审批', title: '定金已申请,请等待付款审批',
icon: 'none' icon: 'none'
}) })
that.currentPage = 1 that.currentPage = 1
that.search() that.search()
}
} else { } else {
uni.$api.evaluationApi uni.$api.evaluationApi
.checkSignAgreement({ .checkSignAgreement({
...@@ -368,7 +378,7 @@ export default { ...@@ -368,7 +378,7 @@ export default {
if (!res.false) { if (!res.false) {
that.$refs.signAgreementPopup.open().then(() => { that.$refs.signAgreementPopup.open().then(() => {
uni.$api.evaluationApi.sendCustodyAgreement({ ...that.signAgreementObj, evalOrderNo: e.evalOrderNo }).then(res => { uni.$api.evaluationApi.sendCustodyAgreement({ ...that.signAgreementObj, evalOrderNo: e.evalOrderNo }).then(res => {
if (res) { if (res.data.code == 0) {
uni.showToast({ uni.showToast({
title: '代保管协议已发送', title: '代保管协议已发送',
icon: 'none' icon: 'none'
...@@ -379,17 +389,20 @@ export default { ...@@ -379,17 +389,20 @@ export default {
}) })
}) })
} else { } else {
await uni.$api.evaluationApi.signAgreement({ const res = await uni.$api.evaluationApi.signAgreement({
evalOrderNo: e.evalOrderNo evalOrderNo: e.evalOrderNo
}) })
if (res.data.code == 0) {
uni.showToast({ uni.showToast({
title: e.status == 40 && e.paymentType == 1 ? '尾款款项已申请,完成代保管协议电子签约后将安排支付尾款' : '全款款项已申请,完成代保管协议电子签约后将安排支付全款', title: e.status == 40 && e.paymentType == 1 ? '尾款款项已申请,完成代保管协议电子签约后将安排支付尾款' : '全款款项已申请,完成代保管协议电子签约后将安排支付全款',
icon: 'none' icon: 'none'
}) })
} }
}
}) })
} }
}) })
}
}, },
confirmDelivery(e) { confirmDelivery(e) {
uni.navigateTo({ uni.navigateTo({
...@@ -425,7 +438,7 @@ export default { ...@@ -425,7 +438,7 @@ export default {
return return
} }
const res = uni.$api.evaluationApi.evalOrderOwnerReQuote(this.requoteObj) const res = uni.$api.evaluationApi.evalOrderOwnerReQuote(this.requoteObj)
if (res) { if (res.data.code == 0) {
uni.showToast({ uni.showToast({
title: '重新报价成功', title: '重新报价成功',
icon: 'none' icon: 'none'
...@@ -438,11 +451,18 @@ export default { ...@@ -438,11 +451,18 @@ export default {
cancelSign(e) { cancelSign(e) {
this.cancelSignObj.evalOrderNo = e.evalOrderNo this.cancelSignObj.evalOrderNo = e.evalOrderNo
this.$refs.cancleSignPopup.open().then(() => { this.$refs.cancleSignPopup.open().then(() => {
if (!this.cancelSignObj.cancelReason) {
uni.showToast({
title: '请输入取消签约原因',
icon: 'none'
})
return
}
this.$refs.tipsPopup this.$refs.tipsPopup
.open() .open()
.then(() => { .then(() => {
const res = uni.$api.evaluationApi.evalOrderCancelContract(this.cancelSignObj) const res = uni.$api.evaluationApi.evalOrderCancelContract(this.cancelSignObj)
if (res) { if (res.data.code == 0) {
uni.showToast({ uni.showToast({
title: '取消签约成功', title: '取消签约成功',
icon: 'none' icon: 'none'
...@@ -460,11 +480,29 @@ export default { ...@@ -460,11 +480,29 @@ export default {
this.$refs.orderPopup.open() this.$refs.orderPopup.open()
}, },
async addSignAgreement() { async addSignAgreement() {
if (!this.addSignAgreementObj.custodianName) {
uni.showToast({ title: '请输入签约保管人', icon: 'none' })
return Promise.reject()
}
if (!this.addSignAgreementObj.custodianIdentityCode) {
uni.showToast({ title: '请输入身份证号', icon: 'none' })
return Promise.reject()
}
if (!this.addSignAgreementObj.custodianPhone) {
uni.showToast({ title: '请输入手机号', icon: 'none' })
return Promise.reject()
}
if (!this.addSignAgreementObj.custodianAddress) {
uni.showToast({ title: '请输入地址', icon: 'none' })
return Promise.reject()
}
this.$refs.addSignAgreementPopup.open().then(() => { this.$refs.addSignAgreementPopup.open().then(() => {
uni.$api.evaluationApi.addCustodyAgreement(this.addSignAgreementObj).then(res => { uni.$api.evaluationApi.addCustodyAgreement(this.addSignAgreementObj).then(res => {
if (res.data.code == 0) {
console.log('res:', res) console.log('res:', res)
this.currentPage = 1 this.currentPage = 1
this.search() this.search()
}
}) })
}) })
}, },
...@@ -477,6 +515,37 @@ export default { ...@@ -477,6 +515,37 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
::v-deep .tipsPopup .uni-popup__wrapper {
width: toRpx(848);
border-radius: toRpx(42);
background: rgb(255, 255, 255) !important;
.tipsPopupBg {
border-radius: toRpx(42) toRpx(42) 0 0;
width: 100%;
height: toRpx(244);
}
.title {
color: #333333;
font-size: toRpx(40);
font-weight: 500;
text-align: center;
margin-top: toRpx(48);
}
.tipsConent {
color: #666666;
font-size: toRpx(32);
font-weight: 400;
padding: toRpx(16) toRpx(64);
line-height: toRpx(48);
text {
color: #347bff;
}
}
.footer-box {
height: toRpx(154);
}
}
.evaluation-form-list { .evaluation-form-list {
position: relative; position: relative;
width: 100vw; width: 100vw;
...@@ -589,6 +658,13 @@ export default { ...@@ -589,6 +658,13 @@ export default {
box-sizing: border-box; box-sizing: border-box;
} }
} }
.intention-input-cell {
height: toRpx(96);
border-radius: toRpx(16);
background: #f4f5f7;
padding: toRpx(24);
box-sizing: border-box;
}
::v-deep .feedback-textarea { ::v-deep .feedback-textarea {
height: toRpx(288); height: toRpx(288);
border-radius: toRpx(16); border-radius: toRpx(16);
......
...@@ -125,9 +125,9 @@ ...@@ -125,9 +125,9 @@
</view> </view>
<template> <template>
<checkbox-group @change="checkboxChange" class="checkbox-group flex align-center"> <checkbox-group @change="checkboxChange" class="checkbox-group flex align-center">
<label class="uni-list-cell uni-list-cell-pd align-center flex ml-48" v-for="item in checkboxList" :key="item.value"> <label class="uni-list-cell uni-list-cell-pd align-center flex ml-48 mb-16" v-for="item in checkboxList" :key="item.value">
<view> <view>
<checkbox style="transform: scale(0.7)" activeBackgroundColor="#4673FF" iconColor="#fff" :value="item.value" :checked="item.checked" :disabled="item.disabled" /> <checkbox class="sign-checkbox" style="transform: scale(0.7)" activeBackgroundColor="#4673FF" iconColor="#fff" :value="item.value" :checked="item.checked" :disabled="item.disabled" />
</view> </view>
<view class="checkbox-name">{{ item.name }}</view> <view class="checkbox-name">{{ item.name }}</view>
<input class="checkbox-input" v-if="item.isShowInput" v-model="formData[item.inputValue]" placeholder="请输入" type="text" /> <input class="checkbox-input" v-if="item.isShowInput" v-model="formData[item.inputValue]" placeholder="请输入" type="text" />
...@@ -859,7 +859,10 @@ export default { ...@@ -859,7 +859,10 @@ export default {
delete this.formData.depositPrice delete this.formData.depositPrice
delete this.formData.finalPrice delete this.formData.finalPrice
} }
uni.$api.evaluationApi.evalOrderSignContract({ ...this.formData, evalOrderNo: this.query.evalOrderNo }) const res = uni.$api.evaluationApi.evalOrderSignContract({ ...this.formData, evalOrderNo: this.query.evalOrderNo })
res.then(res => {
console.log('res:', res)
if (res.data.code == 0) {
uni.showToast({ uni.showToast({
title: '电子签约已发送,请注意查收短信', title: '电子签约已发送,请注意查收短信',
icon: 'none' icon: 'none'
...@@ -867,6 +870,8 @@ export default { ...@@ -867,6 +870,8 @@ export default {
setTimeout(() => { setTimeout(() => {
uni.navigateBack() uni.navigateBack()
}, 500) }, 500)
}
})
}, },
// 计算尾款:尾款 = 评估价 - 定金 // 计算尾款:尾款 = 评估价 - 定金
calculateFinalPrice() { calculateFinalPrice() {
...@@ -919,6 +924,12 @@ export default { ...@@ -919,6 +924,12 @@ export default {
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
::v-deep .sign-checkbox .uni-checkbox-input.uni-checkbox-input-disabled {
background-color: #8cb6ff !important;
&::before {
color: #fff;
}
}
.sign-info { .sign-info {
position: relative; position: relative;
width: 100vw; width: 100vw;
...@@ -927,9 +938,7 @@ export default { ...@@ -927,9 +938,7 @@ export default {
background-size: 100%; background-size: 100%;
padding: toRpx(160) toRpx(64) toRpx(48); padding: toRpx(160) toRpx(64) toRpx(48);
box-sizing: border-box; box-sizing: border-box;
::v-deep .uni-checkbox .uni-checkbox-input.uni-checkbox-input-disabled {
background-color: #4673ff !important;
}
.detail-content { .detail-content {
width: 100%; width: 100%;
height: 100%; height: 100%;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!