OfficeApp/subpkg/property/chosseCompany.vue

352 lines
7.1 KiB
Vue
Raw Normal View History

2023-08-22 16:01:58 +08:00
<template>
2023-08-29 11:11:19 +08:00
<view class="">
<view class="date">
2023-08-31 10:44:45 +08:00
<!-- 2022年12月12日提出申请 -->
{{dataList.create_time.slice(0,10)}} 提出申请
2023-08-22 16:01:58 +08:00
</view>
2023-08-29 11:11:19 +08:00
<view class="cards">
<view class="cards_head">
<view class="cards_head_top">
<text><u--image src="../../static/img/company/company.png" width="33.29rpx" height="33.29rpx"
style="margin-right:20rpx"></u--image></text>
2023-08-31 10:44:45 +08:00
<text>{{dataList.village_company_name}}</text>
2023-08-29 11:11:19 +08:00
</view>
<text @click="navTo('/subpkg/companySign/companySign?id=')">详情 <uni-icons type="forward"
style="margin-left: 10rpx;" color="white"></uni-icons></text>
</view>
<view class="cards_content">
<view class="right">
<view class="is_contract">
<view>
<text>法人姓名 :</text>
2023-08-31 10:44:45 +08:00
<text>{{dataList.village_company_user}}</text>
2023-08-29 11:11:19 +08:00
</view>
<view>
<text style="color: green;" v-if="true">已签约</text>
2023-08-31 10:44:45 +08:00
<!-- <text style="color: red;" v-else>未签约</text> -->
2023-08-29 11:11:19 +08:00
</view>
2023-08-22 16:01:58 +08:00
</view>
2023-08-31 10:44:45 +08:00
2023-08-29 11:11:19 +08:00
<view class="" @click="copyPhone()">
<text>联系电话 :</text>
2023-08-31 10:44:45 +08:00
<text>{{dataList.village_company_phone}}</text>
2023-08-23 11:35:09 +08:00
</view>
2023-08-31 10:44:45 +08:00
2023-08-22 16:01:58 +08:00
</view>
2023-08-29 11:11:19 +08:00
</view>
</view>
<view class="car_info">
<view class="car_type">
<text v-if="true">空闲车辆</text>
<text v-else>自有车辆</text>
</view>
<view class="car_li" v-for="item,index in carList">
2023-08-31 10:44:45 +08:00
车牌号{{item.car_license}}
2023-08-29 11:11:19 +08:00
<view class="" style="float: right;display: flex;">
<text style="margin-right: 10rpx;">租赁车辆</text>
<u-checkbox-group v-model="checked">
2023-08-31 10:44:45 +08:00
<u-checkbox active-color="#0122C7" :label="id" :name="item" shape="square"
2023-08-29 11:11:19 +08:00
label=""></u-checkbox>
</u-checkbox-group>
2023-08-22 16:01:58 +08:00
</view>
</view>
</view>
2023-08-29 11:11:19 +08:00
<view class="btns">
2023-08-31 10:44:45 +08:00
<!-- 生成合同 -->
<view class="" v-if="1">
<u-button :disabled="false" type="primary" @click="showPop=true"
style="margin-bottom: 20rpx;width: 100%;" color="#FF7C32" text="申请驳回"></u-button>
<u-button :disabled="false" type="primary" text="生成合同" @tap="contractFn" color="#0122C7"></u-button>
</view>
<!-- 审核中 -->
<view class="" v-if="0">
<u-button :disabled="true" type="primary" text="合同已上传,等待审核" @tap="contractFn" color="grey"></u-button>
</view>
<!-- 审核通过 -->
<view class="" v-if="0">
<view class="card">
<view class="contract">
<view class="left">
<image class="contract_img" src="../../static/img/contract/pdf.png"></image>
<view class="text">
<view class="name">入股合同</view>
<view>
<text>{{'2023-03-03'}}</text>
</view>
</view>
</view>
<view class="right" @click="navToContract('fdsf')">
<uni-icons type="paperclip" color="#3274F9"></uni-icons>
<view>查看</view>
</view>
</view>
</view>
<u-button :disabled="false" type="primary" text="发送合同" @tap="sendcontractFn" color="#0122C7"></u-button>
</view>
2023-08-29 11:11:19 +08:00
</view>
<view class="">
<u-modal :show="showPop" @close="showPop=false" @confirm="confirm" :closeOnClickOverlay="true"
title="请输入驳回理由">
<view class="slot-content">
<u--textarea v-model="overruleValue" placeholder="请输入内容" class="textarea_cls"></u--textarea>
</view>
</u-modal>
</view>
2023-08-22 16:01:58 +08:00
</view>
</template>
<script>
2023-08-29 11:11:19 +08:00
import {
2023-08-31 10:44:45 +08:00
getAgencyDetailApi,
2023-08-29 11:11:19 +08:00
contractApi,
2023-08-31 10:44:45 +08:00
overruleApi,
sendcontractApi
2023-08-29 11:11:19 +08:00
} from "@/api/property.js"
2023-08-29 16:45:34 +08:00
import {
Toast
} from "../../libs/uniApi"
2023-08-29 11:11:19 +08:00
export default {
data() {
return {
2023-08-31 10:44:45 +08:00
dataList: {},
2023-08-29 11:11:19 +08:00
overruleValue: "",
showPop: false,
checked: [],
carList: [1, 2]
}
},
2023-08-31 10:44:45 +08:00
onLoad() {
console.log(this.$route.query)
// console.log(6565)
getAgencyDetailApi({
id: this.$route.query.id
}).then(res => {
// 13043214321
this.dataList = res.data.apply
this.carList = res.data.cars
2023-08-30 11:28:35 +08:00
})
},
2023-08-29 11:11:19 +08:00
methods: {
confirm() {
2023-08-30 11:28:35 +08:00
// console.log(this.overruleValue)
2023-08-31 10:44:45 +08:00
overruleApi({
apply_id: this.dataList.id,
content: this.overruleValue,
}).then(res => {
2023-08-29 16:45:34 +08:00
Toast("操作成功")
this.showPop = false
})
},
contractFn() {
2023-08-31 10:44:45 +08:00
console.log(this.checked)
contractApi({
apply_id: this.dataList.id,
car_id: this.checked[0].car_id
}).then(res => {
this.navTo('/subpkg/property/success')
2023-08-29 16:45:34 +08:00
})
2023-08-31 10:44:45 +08:00
this.navTo('/subpkg/property/success')
},
sendcontractFn() {
// sendcontractApi({
// id:
// })
2023-08-29 11:11:19 +08:00
},
navTo(url) {
uni.navigateTo({
url
})
}
}
}
2023-08-22 16:01:58 +08:00
</script>
<style lang="scss" scoped>
2023-08-29 11:11:19 +08:00
.date {
padding: 10rpx 28rpx 0;
}
2023-08-31 10:44:45 +08:00
.card {
margin: 28rpx;
width: 694rpx;
background-color: #fff;
border-radius: 14rpx;
.c_title {
color: #0022C7;
font-size: 32rpx;
font-weight: 500;
padding: 28rpx;
}
.c_body {
margin: 28rpx;
padding-bottom: 28rpx;
display: flex;
border-bottom: 1px solid #F3F4F8;
&:last-child {
border-bottom: none;
}
.icon {
width: 77rpx;
height: 77rpx;
flex-shrink: 0;
margin-right: 12rpx;
}
.body_text {
flex: 1;
font-size: 25rpx;
.b_title {
font-size: 32rpx;
color: #333;
font-weight: 500;
}
.b_text {
display: flex;
justify-content: space-between;
padding: 16rpx 0;
font-size: 28rpx;
.b_avatar {
width: 52rpx;
height: 52rpx;
margin-right: 8rpx;
}
&_left {
display: flex;
align-items: center;
}
&_right {
color: #F02828;
display: flex;
align-items: center;
font-size: 35rpx;
}
}
.b_time {
color: #666666;
}
}
}
}
2023-08-22 16:01:58 +08:00
.cards {
margin: 28rpx;
width: 694rpx;
background: #ffffff;
border-radius: 30rpx;
overflow: hidden;
.cards_head {
padding: 28rpx;
background-color: $theme-oa-color;
color: white;
display: flex;
justify-content: space-between;
.cards_head_top {
display: flex;
width: 70vw;
}
}
.cards_content {
padding: 28rpx;
display: flex;
justify-content: space-between;
.left {
text-align: center;
// padding: 15rpx 25rpx;
padding-top: 20rpx;
width: 160rpx;
background-color: $theme-oa-color;
color: white;
border-radius: 40rpx;
.cir {
width: 120rpx;
height: 120rpx;
background-color: #ffffff;
margin-left: 25rpx;
border-radius: 120rpx;
position: relative;
}
}
.right {
display: flex;
flex-direction: column;
justify-content: space-between;
.is_contract {
width: 85vw;
display: flex;
justify-content: space-between;
height: 40rpx;
}
view {
margin-bottom: 10rpx;
text:nth-child(2) {
margin-left: 20rpx;
}
}
}
}
.u_avatar {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
2023-08-29 11:11:19 +08:00
.car_info {
padding: 10rpx 28rpx 0;
.car_type {
margin-bottom: 20rpx;
}
.car_li {
background-color: white;
margin-bottom: 17.54rpx;
padding: 20rpx;
border-radius: 10rpx;
}
}
.btns {
position: fixed;
bottom: 5rpx;
width: 100%;
padding: 10rpx 28rpx 0;
}
.textarea_cls {
width: 70vw;
border: 1px solid #DADBDE;
}
2023-08-22 16:01:58 +08:00
</style>