调整实名认证城市,新增个人订单确认流程,调整退款订单状态
This commit is contained in:
281
pages/work/confirmScheme.vue
Normal file
281
pages/work/confirmScheme.vue
Normal file
@@ -0,0 +1,281 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view class="scheme-item" v-for="(item, index) in list" :key="index">
|
||||
<view class="no">{{item.order.order_no}}</view>
|
||||
<view class="scheme-content">
|
||||
<view class="scheme-flex" @click="item.is_show_type = !item.is_show_type">
|
||||
<label>业务类型</label>
|
||||
<view class="value nowrap">
|
||||
<view class="value-type">
|
||||
<text class="type-tag" v-for="(citem, cindex) in item.order.item_type" :key="cindex" v-if="citem.number > 0">{{citem.title}}x{{citem.number}}</text>
|
||||
</view>
|
||||
<uni-icons class="orders-content-icon" :type="item.is_show_type ? 'top': 'bottom'" size="14" color="gray"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
<view class="scheme-block" v-show="item.is_show_type">
|
||||
<view class="item-flex" v-for="(citem, cindex) in item.order.items" :key="cindex">
|
||||
<view class="item-flex-title">{{citem.institution.title}}({{citem.business_type.title}})</view>
|
||||
<view class="item-flex-value">¥{{citem.price}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="scheme-flex">
|
||||
<label>应确认方案</label>
|
||||
<view class="value nowrap">{{item.confirm.all}}份</view>
|
||||
</view>
|
||||
<view class="scheme-flex">
|
||||
<label>应确认方案</label>
|
||||
<view class="value nowrap">{{item.confirm.confirm}}份</view>
|
||||
</view>
|
||||
<view class="scheme-flex">
|
||||
<label>当前方案</label>
|
||||
<view class="value nowrap">{{item.institution.title}}<text class="tag">{{item.business_type.title}}</text></view>
|
||||
</view>
|
||||
<view class="scheme-flex">
|
||||
<label>下单日期</label>
|
||||
<view class="value nowrap">{{item.order.created_at}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="orders-flex">
|
||||
<view class="user" @click="makePhone(item.order.manager.username)">
|
||||
<image class="user-cover" :src="item.order.manager.avatar" mode="aspectFill"></image>
|
||||
<view class="user-name">{{item.order.manager.nickname}}</view>
|
||||
</view>
|
||||
<view class="btns">
|
||||
<view class="btns-item" @click="$Router.push({name: 'ConfirmSchemeInfo', params: {schemeId: item.business_order_close_scheme_id}})">确认方案</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<u-loadmore v-if="pagesShow" :status="status" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getConfirmScheme } from '@/apis/interfaces/order.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
list : [],
|
||||
page : {
|
||||
current : 1,
|
||||
has_more: false,
|
||||
},
|
||||
pagesShow : false,
|
||||
status : ''
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
this.page = {
|
||||
current : 1,
|
||||
has_more: false,
|
||||
}
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
getList(){
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
getConfirmScheme({
|
||||
business_order_id: this.$Route.query.orderId,
|
||||
page: this.page.current
|
||||
}).then(res => {
|
||||
let { data, page } = res;
|
||||
data.map(val => {
|
||||
val.is_show_type = false
|
||||
})
|
||||
let atList = page.current == 1 ? [] : this.list
|
||||
this.list = atList.concat(data)
|
||||
this.page = page
|
||||
this.pagesShow = false
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 拨打电话
|
||||
makePhone(phone){
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phone
|
||||
})
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
this.pagesShow = true;
|
||||
if(this.page.has_more){
|
||||
this.status = 'loading';
|
||||
this.page.current++
|
||||
this.getList()
|
||||
return
|
||||
}
|
||||
this.status = 'nomore';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.content{
|
||||
padding: 30rpx 30rpx 0 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.scheme-item{
|
||||
background: white;
|
||||
margin-bottom: 30rpx;
|
||||
border-radius: 20rpx;
|
||||
.no{
|
||||
padding: 0 30rpx;
|
||||
line-height: 90rpx;
|
||||
border-bottom: solid 1rpx #f6f6f6;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.scheme-content{
|
||||
padding: 20rpx 30rpx;
|
||||
.scheme-flex{
|
||||
line-height: 70rpx;
|
||||
font-size: 30rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
label{
|
||||
color: gray;
|
||||
width: 200rpx;
|
||||
}
|
||||
.value{
|
||||
width: calc(100% - 200rpx);
|
||||
text-align: right;
|
||||
.value-type{
|
||||
display: inline-block;
|
||||
text{
|
||||
margin-right: 30rpx;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
&::after{
|
||||
position: absolute;
|
||||
content: "/";
|
||||
width: 30rpx;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
top: 0;
|
||||
right: -30rpx;
|
||||
}
|
||||
&:last-child{
|
||||
margin-right: 0;
|
||||
&::after{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.tag{
|
||||
color: $main-color;
|
||||
border:solid 1rpx $main-color;
|
||||
font-size: 26rpx;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
padding: 0 15rpx;
|
||||
border-radius: 20rpx;
|
||||
display: inline-block;
|
||||
box-sizing: border-box;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.scheme-block{
|
||||
background: rgba(68, 110, 254, .03);
|
||||
padding: 20rpx;
|
||||
font-size: 28rpx;
|
||||
border-radius: 10rpx;
|
||||
margin: 10rpx 0;
|
||||
.item-flex{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
line-height: 50rpx;
|
||||
}
|
||||
}
|
||||
.orders-flex{
|
||||
border-bottom: solid 1rpx #F6F6F6;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 20rpx $padding;
|
||||
&:last-child{
|
||||
border-top: solid 1rpx #F6F6F6;
|
||||
border-bottom: none;
|
||||
}
|
||||
.orders-tag{
|
||||
display: inline-block;
|
||||
background: $main-color;
|
||||
font-size: 26rpx;
|
||||
color: white;
|
||||
border-radius: 10rpx;
|
||||
padding: 0 10rpx;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
margin-right: 10rpx;
|
||||
&.order-tag-my{
|
||||
background: $text-price;
|
||||
}
|
||||
}
|
||||
.no{
|
||||
font-size: 30rpx;
|
||||
color: #111;
|
||||
line-height: 60rpx;
|
||||
width: calc(100% - 150rpx);
|
||||
}
|
||||
.state{
|
||||
color: $main-color;
|
||||
font-weight: bold;
|
||||
font-size: 30rpx;
|
||||
line-height: 60rpx;
|
||||
width: 150rpx;
|
||||
text-align: right;
|
||||
}
|
||||
.user{
|
||||
padding-left: 90rpx;
|
||||
position: relative;
|
||||
min-height: 70rpx;
|
||||
box-sizing: border-box;
|
||||
width: calc(100% - 400rpx);
|
||||
.user-cover{
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 70rpx;
|
||||
height: 70rpx;
|
||||
border-radius: 50%;
|
||||
background: #ddd;
|
||||
}
|
||||
.user-name{
|
||||
line-height: 70rpx;
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
.btns{
|
||||
width: 400rpx;
|
||||
text-align: right;
|
||||
.btns-item{
|
||||
display: inline-block;
|
||||
height: 70rpx;
|
||||
|
||||
line-height: 70rpx;
|
||||
background: $main-color;
|
||||
color: white;
|
||||
border-radius: 35rpx;
|
||||
padding: 0 30rpx;
|
||||
font-size: 30rpx;
|
||||
&.btns-border{
|
||||
line-height: 68rpx;
|
||||
box-sizing: border-box;
|
||||
border:solid 1rpx $main-color;
|
||||
background: white;
|
||||
color: $main-color;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
285
pages/work/confirmSchemeInfo.vue
Normal file
285
pages/work/confirmSchemeInfo.vue
Normal file
@@ -0,0 +1,285 @@
|
||||
<template>
|
||||
<view class="content" v-if="user.nickname">
|
||||
<view class="greet">
|
||||
<view class="name">您好!{{user.nickname}}{{user.sex === '女'? '女士': '先生'}}</view>
|
||||
<view>您名下的{{closeScheme.institution.title}}账户{{closeScheme.business_type.title}}洽谈协商服务已完成。</view>
|
||||
</view>
|
||||
<!-- 卡片信息 -->
|
||||
<view class="schemes-block">
|
||||
<view class="schemes-info">
|
||||
<view class="schemes-flex">
|
||||
<view class="schemes-title">{{closeScheme.institution.title}}</view>
|
||||
<text class="schemes-type">{{closeScheme.business_type.title}}</text>
|
||||
</view>
|
||||
<block v-if="closeScheme.params.length > 0">
|
||||
<view class="schemes-flex" v-for="(item, index) in closeScheme.params" :key="index">
|
||||
<view class="schemes-label">{{item.title}}</view>
|
||||
<text class="schemes-value">{{item.value || '-'}}</text>
|
||||
</view>
|
||||
</block>
|
||||
<block v-else>
|
||||
<view class="params-null">
|
||||
<u-empty
|
||||
mode="coupon"
|
||||
icon="http://cdn.uviewui.com/uview/empty/coupon.png"
|
||||
text="暂无结案方案"
|
||||
>
|
||||
</u-empty>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 温馨提示 -->
|
||||
<view class="notic">
|
||||
<text>{{closeScheme.business_type.sweet_notic}}</text>
|
||||
</view>
|
||||
<!-- 确认方案 -->
|
||||
<view class="footer-btns">
|
||||
<view class="btn-item" @click="show = true">不同意</view>
|
||||
<view class="btn-item" @click="onAgree">同意并确认</view>
|
||||
</view>
|
||||
<!-- 弹出层 -->
|
||||
<u-popup
|
||||
:show="show"
|
||||
round="20rpx"
|
||||
closeable
|
||||
@close="show = false"
|
||||
:closeOnClickOverlay="false"
|
||||
>
|
||||
<view class="remove-from">
|
||||
<view class="title">不同意原因</view>
|
||||
<view class="textarea">
|
||||
<textarea placeholder="请输入不同意原因" maxlength="500" v-model="remove"></textarea>
|
||||
<view class="remove-number">{{remove.length}}/500</view>
|
||||
</view>
|
||||
<button class="btn" :disabled="remove.length <= 0" @click="onScheme('refuse', { 'remark': remove })">提交</button>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getConfirmSchemeInfo, sbuConfirmScheme } from '@/apis/interfaces/order.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
show : false,
|
||||
user : '',
|
||||
closeScheme : '',
|
||||
remove : ''
|
||||
};
|
||||
},
|
||||
created() {
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
getConfirmSchemeInfo(this.$Route.query.schemeId).then(res => {
|
||||
let { close_scheme, user } = res;
|
||||
this.closeScheme = close_scheme
|
||||
this.user = user
|
||||
uni.hideLoading()
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
// 提示信息
|
||||
onAgree(){
|
||||
uni.showModal({
|
||||
title : '提示',
|
||||
content : '是确认接受当前结案方案?',
|
||||
cancelText : '再想一想',
|
||||
confirmText : '确认方案',
|
||||
success : res => {
|
||||
if(res.confirm){
|
||||
this.onScheme('agree')
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
// 提交方案
|
||||
onScheme(type, parms){
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
let data = parms || {}
|
||||
sbuConfirmScheme(type, this.$Route.query.schemeId, data).then(res => {
|
||||
if(type === 'refuse'){
|
||||
this.show = false
|
||||
this.remove = ''
|
||||
}
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: res,
|
||||
showCancel: false,
|
||||
success() {
|
||||
this.$Route.back()
|
||||
}
|
||||
})
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.content{
|
||||
padding-bottom: 200rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
// 拒绝方案弹出层
|
||||
.remove-from{
|
||||
padding: 30rpx 30rpx 50rpx;
|
||||
.title{
|
||||
text-align: center;
|
||||
font-size: 34rpx;
|
||||
padding-bottom: 30rpx;
|
||||
}
|
||||
.textarea{
|
||||
background: #F6F6F6;
|
||||
border-radius: 20rpx;
|
||||
padding: 30rpx;
|
||||
textarea{
|
||||
font-size: 30rpx;
|
||||
line-height: 40rpx;
|
||||
height: 200rpx;
|
||||
}
|
||||
}
|
||||
.remove-number{
|
||||
text-align: right;
|
||||
font-size: 28rpx;
|
||||
color: gray;
|
||||
}
|
||||
.btn{
|
||||
margin-top: 30rpx;
|
||||
border-radius: 20rpx;
|
||||
background: $main-color;
|
||||
color: white;
|
||||
font-size: 34rpx;
|
||||
color: white;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
padding: 0;
|
||||
&[disabled]{
|
||||
background-color: $main-color;
|
||||
color: white;
|
||||
opacity: .5;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 同意方案
|
||||
.footer-btns{
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 30rpx 15rpx 50rpx;
|
||||
background: white;
|
||||
z-index: 3;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
.btn-item{
|
||||
width: calc(50% - 30rpx);
|
||||
margin: 0 15rpx;
|
||||
text-align: center;
|
||||
line-height: 90rpx;
|
||||
border:solid 1rpx $main-color;
|
||||
color: $main-color;
|
||||
border-radius: 20rpx;
|
||||
&:last-child{
|
||||
background-color: $main-color;
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 欢迎
|
||||
.greet{
|
||||
background: $main-color;
|
||||
padding: 30rpx 30rpx 200rpx 30rpx;
|
||||
color: white;
|
||||
font-size: 30rpx;
|
||||
line-height: 40rpx;
|
||||
.name{
|
||||
padding-bottom: 20rpx;
|
||||
}
|
||||
}
|
||||
// 温馨提示
|
||||
.notic{
|
||||
padding: 30rpx;
|
||||
color: #FBAF3B;
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
// 方案
|
||||
.schemes-block{
|
||||
border-radius: 20rpx;
|
||||
background: white;
|
||||
margin: -140rpx 30rpx 0;
|
||||
position: relative;
|
||||
.schemes-info{
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
.params-null{
|
||||
padding: 30rpx 0 50rpx;
|
||||
}
|
||||
.schemes-flex{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.schemes-title{
|
||||
font-weight: bold;
|
||||
font-size: 40rpx;
|
||||
line-height: 70rpx;
|
||||
}
|
||||
.schemes-type{
|
||||
background: white;
|
||||
color: $main-color;
|
||||
border:solid 1rpx $main-color;
|
||||
font-size: 28rpx;
|
||||
padding: 0 20rpx;
|
||||
line-height: 40rpx;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
.schemes-label{
|
||||
line-height: 70rpx;
|
||||
font-size: 30rpx;
|
||||
width: 200rpx;
|
||||
color: #999999;
|
||||
}
|
||||
.schemes-value{
|
||||
width: calc( 100% - 200rpx );
|
||||
font-size: 30rpx;
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
// 提示信息
|
||||
.schemes-tips{
|
||||
background: #F6F6F6;
|
||||
border-radius: 20rpx;
|
||||
margin-top: 30rpx;
|
||||
padding: 30rpx;
|
||||
font-size: 28rpx;
|
||||
color: #666;
|
||||
.schemes-tips-title{
|
||||
font-weight: bold;
|
||||
color: #111;
|
||||
padding-bottom: 20rpx;
|
||||
}
|
||||
text{
|
||||
line-height: 40rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -75,7 +75,9 @@
|
||||
<view class="btns-item btns-border" v-if="item.status.value == 4 && item.is_my" @click="onSign(item.business_order_id)">签约</view>
|
||||
<view class="btns-item btns-border" v-if="item.status.value == 3" @click="$Router.push({name: 'Pay', params: {orderId: item.business_order_id, type: 'acting', paytype: 'price'}})">缴费</view>
|
||||
<view class="btns-item btns-border" v-if="item.status.value == 5" @click="$Router.push({name: 'WorkPerfectChoose', params: {orderId: item.business_order_id, type: 'perfect'}})">完善</view>
|
||||
<view class="btns-item btns-border" v-if="item.status.value == 6" @click="$Router.push({name: 'WorkPerfectChoose', params: {orderId: item.business_order_id, type: 'perfect'}})">查看资料</view>
|
||||
<view class="btns-item btns-border" v-if="item.status.value == 6" @click="$Router.push({name: 'WorkPerfectChoose', params: {orderId: item.business_order_id }})">查看资料</view>
|
||||
<!-- type: 'perfect' -->
|
||||
<view class="btns-item btns-border" v-if="item.status.value == 9 && item.is_my" @click="$Router.push({name: 'ConfirmScheme', params: {orderId: item.business_order_id,}})">去确认</view>
|
||||
<view class="btns-item" @click="$Router.push({name: 'OrderInfo', params: {orderId: item.business_order_id}})">查看</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -193,6 +195,7 @@
|
||||
},
|
||||
// 获取转让对象
|
||||
onTransfers(index, item){
|
||||
console.log(index)
|
||||
levels(item.business_order_id).then(res => {
|
||||
let ActionSheet = []
|
||||
for(let key in res){
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { perfectBase, updPerfectBase } from '@/apis/interfaces/order.js'
|
||||
import { perfectBase, updPerfectBase, historyBase } from '@/apis/interfaces/order.js'
|
||||
import { region } from '@/apis/interfaces/address.js'
|
||||
export default {
|
||||
data() {
|
||||
@@ -211,6 +211,53 @@
|
||||
showCancel : false,
|
||||
})
|
||||
}
|
||||
},
|
||||
onNavigationBarButtonTap() {
|
||||
let { userBankId, isMy} = this.$Route.query
|
||||
if(!isMy) {
|
||||
uni.showToast({
|
||||
title: '非个人订单无法使用账户信息',
|
||||
icon : 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if(!userBankId.user_base_id) {
|
||||
uni.showToast({
|
||||
title: '暂无历史记录,无法使用账户历史信息,请手动填写',
|
||||
icon : 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.showModal({
|
||||
title : '提示',
|
||||
content : '确认使用历史基础信息快捷提交审核吗?提交后在审核期间不可更改',
|
||||
confirmText : '提交审核',
|
||||
cancelText : '取消',
|
||||
success : res => {
|
||||
if(res.confirm){
|
||||
uni.showLoading({
|
||||
title: '提交中...',
|
||||
mask : true
|
||||
})
|
||||
historyBase(this.baseInfo.business_order_user_id, userBankId.user_base_id).then(res => {
|
||||
uni.hideLoading()
|
||||
uni.showModal({
|
||||
title : '提示',
|
||||
content : '资料已保存',
|
||||
showCancel : false,
|
||||
success : ModalRes => {
|
||||
this.$Router.back()
|
||||
}
|
||||
})
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<image class="cover" src="@/static/background/info_back.png" mode="widthFix"></image>
|
||||
</view>
|
||||
<view class="perfect-list">
|
||||
<view class="perfect-item" @click="onPerfect('WorkPerfectBasis', baseInfo.is_finish, baseInfo.business_order_user_id)">
|
||||
<view class="perfect-item" @click="onPerfect('WorkPerfectBasis', baseInfo.is_finish, baseInfo.business_order_user_id, baseInfo.is_my, baseInfo.user_base)">
|
||||
<view class="cover">
|
||||
<image class="cover-src" src="@/static/icons/tabs_show_01.png" mode="aspectFit"></image>
|
||||
</view>
|
||||
@@ -21,7 +21,7 @@
|
||||
</view>
|
||||
<!-- 机构列表 -->
|
||||
<block v-for="(item, index) in businessArr" :key="index">
|
||||
<view class="perfect-item" @click="onPerfect('WorkPerfectInstitutions', item.is_finish, item.business_order_item_id)">
|
||||
<view class="perfect-item" @click="onPerfect('WorkPerfectInstitutions', item.is_finish, item.business_order_item_id, item.is_my, item.user_bank)">
|
||||
<view class="cover">
|
||||
<image class="cover-src" :src="item.institution.cover" mode="aspectFit"></image>
|
||||
</view>
|
||||
@@ -81,17 +81,19 @@
|
||||
})
|
||||
},
|
||||
// 资料导航
|
||||
onPerfect(name, finish, itemId){
|
||||
onPerfect(name, finish, itemId, isMy, user){
|
||||
if(finish == 1) {
|
||||
if(name === 'WorkPerfectBasis') this.$Router.push({name: 'OrderPerfectBasisInfo', params: {orderId: this.orderId} })
|
||||
if(name === 'WorkPerfectInstitutions') this.$Router.push({name: 'OrderPerfectInstitutionsInfo', params: { itemId } })
|
||||
if(name === 'WorkPerfectBasis') this.$Router.push({ name: 'OrderPerfectBasisInfo', params: { orderId: this.orderId, }})
|
||||
if(name === 'WorkPerfectInstitutions') this.$Router.push({ name: 'OrderPerfectInstitutionsInfo', params: { itemId }})
|
||||
return
|
||||
}
|
||||
this.$Router.push({
|
||||
name,
|
||||
params: {
|
||||
itemId : itemId,
|
||||
orderId: this.orderId
|
||||
orderId: this.orderId,
|
||||
isMy,
|
||||
userBankId: user,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { baseBase, updBaseBase } from '@/apis/interfaces/order.js'
|
||||
import { baseBase, updBaseBase, historyBank } from '@/apis/interfaces/order.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -269,6 +269,54 @@
|
||||
showCancel : false,
|
||||
})
|
||||
}
|
||||
},
|
||||
onNavigationBarButtonTap() {
|
||||
console.log(this.$Route.query)
|
||||
let { userBankId, isMy} = this.$Route.query
|
||||
if(!isMy) {
|
||||
uni.showToast({
|
||||
title: '非个人订单无法使用账户信息',
|
||||
icon : 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if(!userBankId.user_bank_id) {
|
||||
uni.showToast({
|
||||
title: '暂无历史记录,无法使用账户历史信息,请手动填写',
|
||||
icon : 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.showModal({
|
||||
title : '提示',
|
||||
content : '确认使用历史基础信息快捷提交审核吗?提交后在审核期间不可更改',
|
||||
confirmText : '提交审核',
|
||||
cancelText : '取消',
|
||||
success : res => {
|
||||
if(res.confirm){
|
||||
uni.showLoading({
|
||||
title: '提交中...',
|
||||
mask : true
|
||||
})
|
||||
historyBank(this.submitId, userBankId.user_bank_id).then(res => {
|
||||
uni.hideLoading()
|
||||
uni.showModal({
|
||||
title : '提示',
|
||||
content : '资料已保存',
|
||||
showCancel : false,
|
||||
success : ModalRes => {
|
||||
this.$Router.back()
|
||||
}
|
||||
})
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<text class="orders-tag order-tag-my" v-else>个人</text>
|
||||
{{item.order_no}}
|
||||
</view>
|
||||
<view class="state">{{item.status.text}}</view>
|
||||
<view class="state">{{item.refund_status.text}}</view>
|
||||
</view>
|
||||
<view class="orders-content">
|
||||
<view class="orders-content-item">
|
||||
|
||||
Reference in New Issue
Block a user