Commit 37745a5a by cen

fix: 定时器

1 parent e67dc8de
......@@ -1100,6 +1100,7 @@ export default {
})
console.log('提交的表单数据:', this.formData)
if (this.query.type === 'add') {
uni.showLoading()
const res = await uni.$api.evaluationApi.evalOrderCreate(this.formData)
console.log('res:', res)
if (res.data.code == 0) {
......@@ -1121,6 +1122,7 @@ export default {
})
}
} else if (this.query.type === 'edit') {
uni.showLoading()
const res = await uni.$api.evaluationApi.evalOrderUpdate(this.formData)
console.log('res:', res)
if (res.data.code == 0) {
......
......@@ -19,9 +19,9 @@
<view class="sprites-icon icon-play"></view>
</view>
</view>
<cover-view class="delete-icon" @click.stop="deleteMedia(field.key, index)">
<view class="delete-icon" @click.stop="deleteMedia(field.key, index)">
<uni-icons type="clear" size="16" color="#fff"></uni-icons>
</cover-view>
</view>
</view>
<!-- 上传按钮,当未达到最大限制时显示 -->
<view v-if="!hasReachedMax(field)" class="upload-item" @click="handleMediaUpload(field)">
......
......@@ -267,7 +267,7 @@ export default {
if (field.type === 'pdf') {
this.$refs.addAgreementPopup.open().then(() => {
console.log('this.supplementaryClauseText', this.supplementaryClauseText)
uni.showLoading()
uni.$api.evaluationApi
.salesAgreementPreview({
evalOrderNo: this.query.evalOrderNo,
......@@ -275,6 +275,7 @@ export default {
})
.then(res => {
if (res.data.code == 0) {
uni.hideLoading()
this.$refs.addAgreementPopup.closePopup()
this.formFields.forEach(item => {
if (item.key === field.key) {
......
......@@ -133,7 +133,7 @@
</view>
</template>
</GeneralPopup>
<GeneralPopup ref="tipsPopup" popupClass="tipsPopup" type="center" :showClose="true" :showTitle="false" @confirm="confirmTips" :noTitle="true">
<GeneralPopup ref="tipsPopup" popupClass="tipsPopup" type="center" :showClose="true" :showTitle="false" :noTitle="true">
<template #content>
<view>
<image class="tipsPopupBg" :src="bg" />
......@@ -340,10 +340,12 @@ export default {
}
},
async reSubmit(e) {
uni.showLoading()
const res = await uni.$api.evaluationApi.evalOrderConfirmVehicleDelivery({
evalOrderNo: e.evalOrderNo
})
if (res.data.code == 0) {
uni.hideLoading()
uni.showToast({
title: '重新提交成功',
icon: 'none'
......@@ -365,20 +367,23 @@ export default {
},
async amountRequested(e) {
const that = this
uni.showLoading()
const res = await uni.$api.evaluationApi.getContractDetail({
contractNo: e.saleContractNo
})
if (res.data.code == 0) {
uni.hideLoading()
const contractDetail = res.data.data
console.log('res:', contractDetail)
this.payPopupObj = { ...that.payPopupObj, ...JSON.parse(contractDetail.electronicContractField), ...e }
that.$refs.amountRequestedPopup.open().then(async () => {
if (e.type == 'payDeposit') {
uni.showLoading()
const res = await uni.$api.evaluationApi.payDepositApplication({
evalOrderNo: e.evalOrderNo
})
if (res.data.code == 0) {
uni.hideLoading()
uni.showToast({
title: '定金已申请,请等待付款审批',
icon: 'none'
......@@ -387,6 +392,7 @@ export default {
that.search()
}
} else {
uni.showLoading()
uni.$api.evaluationApi
.checkSignAgreement({
evalOrderNo: e.evalOrderNo
......@@ -397,6 +403,7 @@ export default {
that.$refs.signAgreementPopup.open().then(() => {
uni.$api.evaluationApi.sendCustodyAgreement({ ...that.signAgreementObj, evalOrderNo: e.evalOrderNo }).then(res => {
if (res.data.code == 0) {
uni.hideLoading()
uni.showToast({
title: '代保管协议已发送',
icon: 'none'
......@@ -407,10 +414,12 @@ export default {
})
})
} else {
uni.showLoading()
const res = await uni.$api.evaluationApi.signAgreement({
evalOrderNo: e.evalOrderNo
})
if (res.data.code == 0) {
uni.hideLoading()
uni.showToast({
title: e.status == 40 && e.paymentType == 1 ? '尾款款项已申请,完成代保管协议电子签约后将安排支付尾款' : '全款款项已申请,完成代保管协议电子签约后将安排支付全款',
icon: 'none'
......@@ -489,9 +498,12 @@ export default {
}
this.$refs.tipsPopup
.open()
.then(() => {
const res = uni.$api.evaluationApi.evalOrderCancelContract(this.cancelSignObj)
.then(async () => {
uni.showLoading()
const res = await uni.$api.evaluationApi.evalOrderCancelContract(this.cancelSignObj)
console.log('res:', res)
if (res.data.code == 0) {
uni.hideLoading()
uni.showToast({
title: '取消签约成功',
icon: 'none'
......@@ -515,25 +527,27 @@ export default {
this.$refs.orderPopup.open()
},
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(() => {
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()
}
uni.showLoading()
uni.$api.evaluationApi.addCustodyAgreement(this.addSignAgreementObj).then(res => {
if (res.data.code == 0) {
uni.hideLoading()
console.log('res:', res)
this.currentPage = 1
this.search()
......
......@@ -496,10 +496,12 @@ export default {
this.query = options
},
async getEvalOrderSimpleDetail() {
uni.showLoading()
const res = await uni.$api.evaluationApi.evalOrderSimpleDetail({
evalOrderNo: this.query.evalOrderNo
})
if (res.data.code == 0) {
uni.hideLoading()
this.$set(this.formData, 'partAName', res.data.data.evalCarLicense.previousOwnerName)
this.$set(this.formData, 'payeeName', res.data.data.evalCarLicense.previousOwnerName)
this.$set(this.formData, 'phone', res.data.data.evalCarLicense.previousOwnerPhone)
......@@ -938,10 +940,12 @@ export default {
delete this.formData.depositPrice
delete this.formData.finalPrice
}
uni.showLoading()
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.hideLoading()
uni.showToast({
title: '电子签约已发送,请注意查收短信',
icon: 'none'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!