2
This commit is contained in:
parent
20834e3d99
commit
7ce2829aa5
@ -7,7 +7,8 @@
|
||||
<view class="c-head">
|
||||
<view :class="type==2?'left':'right'" @click="changeType(2)">增收销售补贴</view>
|
||||
<!-- <view :class="type==1?'left':'right'" @click="changeType(1)">春耕采购补贴</view> -->
|
||||
<view v-if="mer_info.type_code=='PersonalStore'" :class="type==1?'left':'right'" @click="changeType(1)">春耕采购补贴</view>
|
||||
<view v-if="mer_info.type_code=='PersonalStore'" :class="type==1?'left':'right'"
|
||||
@click="changeType(1)">春耕采购补贴</view>
|
||||
<view v-else></view>
|
||||
</view>
|
||||
<view class="c-body-title">
|
||||
@ -36,7 +37,9 @@
|
||||
<view class="b-bottom">
|
||||
<view class="pro">
|
||||
<view class="loss" :style="{left: `-${100-info.spring_subsidy_rate}%`}">
|
||||
<image class="image" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/f805f20240229155704834.webp"></image>
|
||||
<image class="image"
|
||||
src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/f805f20240229155704834.webp">
|
||||
</image>
|
||||
<view class="text">{{info.spring_subsidy_rate}}%</view>
|
||||
</view>
|
||||
|
||||
@ -53,7 +56,9 @@
|
||||
<view class="b-bottom">
|
||||
<view class="pro">
|
||||
<view class="loss" :style="{left: `-${100-info.sale_finish_rate}%`}">
|
||||
<image class="image" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/f805f20240229155704834.webp"></image>
|
||||
<image class="image"
|
||||
src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/f805f20240229155704834.webp">
|
||||
</image>
|
||||
<view class="text">{{info.sale_finish_rate}}%</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -69,7 +74,9 @@
|
||||
<view class="b-bottom">
|
||||
<view class="pro">
|
||||
<view class="loss" :style="{left: `-${100-info.purchase_finish_rate}%`}">
|
||||
<image class="image" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/f805f20240229155704834.webp"></image>
|
||||
<image class="image"
|
||||
src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/f805f20240229155704834.webp">
|
||||
</image>
|
||||
<view class="text">{{info.purchase_finish_rate}}%</view>
|
||||
</view>
|
||||
|
||||
@ -87,7 +94,9 @@
|
||||
<view class="b-bottom">
|
||||
<view class="pro">
|
||||
<view class="loss" :style="{left: `-${100-info.official_purchase_finish_rate}%`}">
|
||||
<image class="image" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/f805f20240229155704834.webp"></image>
|
||||
<image class="image"
|
||||
src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/f805f20240229155704834.webp">
|
||||
</image>
|
||||
<view class="text">{{info.official_purchase_finish_rate}}%</view>
|
||||
</view>
|
||||
|
||||
@ -104,7 +113,9 @@
|
||||
<view class="b-bottom">
|
||||
<view class="pro">
|
||||
<view class="loss" :style="{left: `-${100-info.purchase_finish_rate}%`}">
|
||||
<image class="image" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/f805f20240229155704834.webp"></image>
|
||||
<image class="image"
|
||||
src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/f805f20240229155704834.webp">
|
||||
</image>
|
||||
<view class="text">{{info.purchase_finish_rate}}%</view>
|
||||
</view>
|
||||
|
||||
@ -115,7 +126,11 @@
|
||||
</view>
|
||||
</block>
|
||||
<view class="b-tips" v-if="type==1">
|
||||
*春耕采购余额使用完,采购金额和销售金额达到后才可获取补贴
|
||||
*春耕采购余额使用完,采购金额和销售金额达到后才可获取补贴。<br>
|
||||
*当进度完成时将在每月月底进行统计审核,审核完成后经本人确认,一个季度内到账。
|
||||
</view>
|
||||
<view class="b-tips" v-if="type==2">
|
||||
*当进度完成时将在每月月底进行统计审核,审核完成后经本人确认,一个季度内到账。
|
||||
</view>
|
||||
<view class="b-list">
|
||||
<view class="list-head"></view>
|
||||
@ -127,7 +142,8 @@
|
||||
<view>状态</view>
|
||||
</view>
|
||||
<view class="list-b-text" v-for="(item,index) in list" :key="index">
|
||||
<view class="item1">¥{{ cPrice2(item.extra.official_purchase_target, item.extra.purchase_target) }}</view>
|
||||
<view class="item1">
|
||||
¥{{ cPrice2(item.extra.official_purchase_target, item.extra.purchase_target) }}</view>
|
||||
<view class="item2">¥{{ item.extra.sale_target }}</view>
|
||||
<view class="item3">
|
||||
<text v-if="item.id==0">¥{{cPrice(item.coupon_price)}}</text>
|
||||
@ -135,7 +151,8 @@
|
||||
</view>
|
||||
<view class="item4" @click="showPopup(item.send_status, item.id)">
|
||||
<!-- send_status 发放状态:-1未激活,0待审核,1待领取,2已完成 -->
|
||||
<text v-if="item.send_status==2||item.send_status==1" style="color: #FF5E0C;">{{item.send_status_cn}}</text>
|
||||
<text v-if="item.send_status==2||item.send_status==1"
|
||||
style="color: #FF5E0C;">{{item.send_status_cn}}</text>
|
||||
<text v-else>{{item.send_status_cn}}</text>
|
||||
</view>
|
||||
</view>
|
||||
@ -147,11 +164,15 @@
|
||||
<uni-popup type="center" ref="pupRef">
|
||||
<view style="width: 630rpx;height: 500rpx;position: relative;">
|
||||
<view style="position: absolute;top: 0;right: 10rpx;" @click="closePopup">
|
||||
<image style="width: 50rpx;height: 50rpx;" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/c8b19202403201714381681.webp"></image>
|
||||
<image style="width: 50rpx;height: 50rpx;"
|
||||
src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/c8b19202403201714381681.webp"></image>
|
||||
</view>
|
||||
<view style="width: 630rpx;position: absolute;top: 70rpx;right: 0;" :class="[send_status_cn>0?'h430':'h310']">
|
||||
<image style="width: 100%;" :class="[send_status_cn>0?'h430':'h310']" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/23ad8202403201716417527.webp"></image>
|
||||
<view style="position: absolute;top: 0;left: 0;width: 100%;height: 100%;padding: 30rpx;display: flex;flex-direction: column;justify-content: center;">
|
||||
<view style="width: 630rpx;position: absolute;top: 70rpx;right: 0;"
|
||||
:class="[send_status_cn>0?'h430':'h310']">
|
||||
<image style="width: 100%;" :class="[send_status_cn>0?'h430':'h310']"
|
||||
src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/23ad8202403201716417527.webp"></image>
|
||||
<view
|
||||
style="position: absolute;top: 0;left: 0;width: 100%;height: 100%;padding: 30rpx;display: flex;flex-direction: column;justify-content: center;">
|
||||
<view style="padding-bottom: 50rpx;font-size: 32rpx;color: #2E2E2E;">
|
||||
<text v-if="send_status_cn==-1">补贴未激活</text>
|
||||
<text v-else-if="send_status_cn==0">补贴审核中</text>
|
||||
@ -166,15 +187,24 @@
|
||||
电话:13627640188
|
||||
</text>
|
||||
</view>
|
||||
<view v-if="send_status_cn==10" style="background-color: #fff;border-radius: 20rpx;padding: 20rpx;">
|
||||
<view v-if="send_status_cn==10"
|
||||
style="background-color: #fff;border-radius: 20rpx;padding: 20rpx;">
|
||||
<textarea v-model="reason" placeholder="请填写错误内容" style="height: 100rpx;" />
|
||||
</view>
|
||||
<view v-if="send_status_cn==1" style="display: flex;justify-content: center;margin-top: 30rpx;color: #F98144;">
|
||||
<view @click="reAudit" style="padding: 9rpx 50rpx 12rpx 50rpx;border-radius: 40rpx;border: 4rpx solid #F98144;margin-right: 100rpx;">错误</view>
|
||||
<view @click="couponReceive" style="padding: 9rpx 50rpx 12rpx 50rpx;border-radius: 40rpx;border: 4rpx solid #F98144;color: #FFF;background-color: #F98144;">正确</view>
|
||||
<view v-if="send_status_cn==1"
|
||||
style="display: flex;justify-content: center;margin-top: 30rpx;color: #F98144;">
|
||||
<view @click="reAudit"
|
||||
style="padding: 9rpx 50rpx 12rpx 50rpx;border-radius: 40rpx;border: 4rpx solid #F98144;margin-right: 100rpx;">
|
||||
错误</view>
|
||||
<view @click="couponReceive"
|
||||
style="padding: 9rpx 50rpx 12rpx 50rpx;border-radius: 40rpx;border: 4rpx solid #F98144;color: #FFF;background-color: #F98144;">
|
||||
正确</view>
|
||||
</view>
|
||||
<view v-else-if="send_status_cn==10" style="display: flex;justify-content: center;margin-top: 30rpx;color: #F98144;">
|
||||
<view @click="couponRefuse" style="padding: 9rpx 50rpx 12rpx 50rpx;border-radius: 40rpx;border: 4rpx solid #F98144;color: #FFF;background-color: #F98144;">提交</view>
|
||||
<view v-else-if="send_status_cn==10"
|
||||
style="display: flex;justify-content: center;margin-top: 30rpx;color: #F98144;">
|
||||
<view @click="couponRefuse"
|
||||
style="padding: 9rpx 50rpx 12rpx 50rpx;border-radius: 40rpx;border: 4rpx solid #F98144;color: #FFF;background-color: #F98144;">
|
||||
提交</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -186,8 +216,15 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getSubsidy, getSubsidyRecord, couponReceive, couponRefuse } from "@/api/admin.js"
|
||||
import { Toast } from "../../libs/uniApi";
|
||||
import {
|
||||
getSubsidy,
|
||||
getSubsidyRecord,
|
||||
couponReceive,
|
||||
couponRefuse
|
||||
} from "@/api/admin.js"
|
||||
import {
|
||||
Toast
|
||||
} from "../../libs/uniApi";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@ -288,7 +325,8 @@
|
||||
})
|
||||
},
|
||||
cPrice(n) { //计算未激活的补贴达成了多少
|
||||
let t = Number(this.info.official_purchase_finish_rate) + Number(this.info.purchase_finish_rate) + Number(this.info.sale_finish_rate);
|
||||
let t = Number(this.info.official_purchase_finish_rate) + Number(this.info.purchase_finish_rate) + Number(
|
||||
this.info.sale_finish_rate);
|
||||
t /= 3 * 100;
|
||||
t == 0 ? t = 1 : null;
|
||||
return (+n * t).toFixed(2);
|
||||
@ -309,6 +347,7 @@
|
||||
page {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.page {
|
||||
position: relative;
|
||||
font-size: 28rpx;
|
||||
@ -321,6 +360,7 @@
|
||||
left: 0;
|
||||
width: 750rpx;
|
||||
height: 530rpx;
|
||||
|
||||
.card {
|
||||
position: absolute;
|
||||
transition: 300ms;
|
||||
@ -333,26 +373,31 @@
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
padding-bottom: 40rpx;
|
||||
|
||||
.c-head {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
height: 90rpx;
|
||||
overflow: hidden;
|
||||
margin-top: 20rpx;
|
||||
|
||||
view {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.left {
|
||||
font-size: 32rpx;
|
||||
color: #DF4104;
|
||||
line-height: 80rpx;
|
||||
}
|
||||
|
||||
.right {
|
||||
color: #7A7A7A;
|
||||
line-height: 100rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.c-body-title {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
@ -360,20 +405,24 @@
|
||||
height: 70rpx;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.c-body-text {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
color: #7A7A7A;
|
||||
height: 70rpx;
|
||||
align-items: center;
|
||||
|
||||
.price {
|
||||
color: #F13B3B;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.card2 {
|
||||
background-image: url('https://lihai001.oss-cn-chengdu.aliyuncs.com/def/e5b2e202402291538018132.webp');
|
||||
}
|
||||
|
||||
.bottom {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
@ -405,13 +454,16 @@
|
||||
|
||||
.body {
|
||||
padding: 530rpx 30rpx 30rpx 30rpx;
|
||||
|
||||
.b-card {
|
||||
padding-bottom: 30rpx;
|
||||
|
||||
.b-top {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.b-bottom {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@ -425,6 +477,7 @@
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
background-color: #ffdfce;
|
||||
|
||||
.loss {
|
||||
width: 570rpx;
|
||||
height: 28rpx;
|
||||
@ -432,10 +485,12 @@
|
||||
top: 0;
|
||||
left: -100%;
|
||||
}
|
||||
|
||||
.image {
|
||||
width: 570rpx;
|
||||
height: 28rpx;
|
||||
}
|
||||
|
||||
.text {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
@ -451,11 +506,13 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.b-tips {
|
||||
color: #7A7A7A;
|
||||
font-size: 24rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.b-list {
|
||||
.list-head {
|
||||
width: 690rpx;
|
||||
@ -464,16 +521,19 @@
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.list-body {
|
||||
.list-b-title {
|
||||
padding: 20rpx 0;
|
||||
display: flex;
|
||||
|
||||
view {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.list-b-text {
|
||||
background-color: #F9F9F9;
|
||||
border-radius: 12rpx;
|
||||
@ -481,20 +541,25 @@
|
||||
margin-bottom: 20rpx;
|
||||
display: flex;
|
||||
font-size: 24rpx;
|
||||
|
||||
view {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.item1 {
|
||||
color: #F13B3B;
|
||||
}
|
||||
|
||||
.item2 {
|
||||
color: #20A162;
|
||||
}
|
||||
|
||||
.item3 {
|
||||
color: #FF8056;
|
||||
}
|
||||
|
||||
.item4 {
|
||||
color: #2E2E2E;
|
||||
}
|
||||
@ -502,9 +567,11 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.h430 {
|
||||
height: 430rpx;
|
||||
}
|
||||
|
||||
.h310 {
|
||||
height: 310rpx;
|
||||
}
|
||||
|
@ -651,6 +651,9 @@
|
||||
let userInfo = this.$store.state.app.userInfo;
|
||||
if (typeof userInfo == 'string') userInfo = JSON.parse(userInfo);
|
||||
let showFlag = '';
|
||||
|
||||
console.log(postData);
|
||||
|
||||
postData.attrValue.forEach(t => {
|
||||
if (userInfo.mer_info.wholesale && (!t.wholesale_price || +t.wholesale_price <= 0)) {
|
||||
showFlag = '批发价不能小于0'
|
||||
|
@ -104,10 +104,9 @@
|
||||
form: {
|
||||
handler(val) {
|
||||
this.formData = val;
|
||||
|
||||
// 需求方要求为空 直接输入 不需要默认值
|
||||
this.formData.price = '';
|
||||
this.formData.stock = '';
|
||||
if (!this.formData.price || this.formData.price == '0.00') this.formData.price = '';
|
||||
if (!this.formData.stock) this.formData.stock = '';
|
||||
},
|
||||
deep: true
|
||||
}
|
||||
|
@ -82,7 +82,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 相关凭证 -->
|
||||
<view class="withdrawal-envidence">
|
||||
<view class="withdrawal-envidence" v-if="isCompany == 1">
|
||||
<view class="withdrawal-envidence">
|
||||
<text class="withdrawal-envidence-main">请上传相关凭证</text>
|
||||
<text class="withdrawal-envidence-sub">(图片格式支持JPG、PNG、JPEG)</text>
|
||||
@ -164,8 +164,19 @@
|
||||
</view>
|
||||
|
||||
<!-- 提现账户 -->
|
||||
<u-action-sheet title="请选择提现账户" :actions="list" :show="show" round="15" @select="handleSelected"
|
||||
@close="show = false" :safeAreaInsetBottom='true'></u-action-sheet>
|
||||
<u-action-sheet title="请选择提现账户" :show="show" round="15" @close="show = false">
|
||||
<view class="actions" style="padding-bottom: 0;">
|
||||
<view class="actions-wrap">
|
||||
<block v-for="(item ,indx) in list" :key="indx">
|
||||
<view class="actions-item" @click="handleSelected(item)">
|
||||
<text :class="{'textactive':bindForm.bank == item.name}">{{item.name}}</text>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 底部安全范围 -->
|
||||
<u-safe-bottom></u-safe-bottom>
|
||||
</u-action-sheet>
|
||||
|
||||
<!-- 银行 -->
|
||||
<u-action-sheet title="请选择银行" :show="bankShow" round="15" @close="bankShow = false">
|
||||
@ -214,7 +225,8 @@
|
||||
id: 0,
|
||||
icon: ''
|
||||
},
|
||||
mer_id: ''
|
||||
mer_id: '',
|
||||
isCompany: ''
|
||||
}
|
||||
},
|
||||
|
||||
@ -230,7 +242,7 @@
|
||||
name: '对公账户'
|
||||
}];
|
||||
this.bindForm.is_own = 1;
|
||||
//获取法人真实姓名
|
||||
//获取公司名称
|
||||
this.bindForm.name = JSON.parse(this.$Cache.get("USER_INFO")).mer_info.company_name;
|
||||
} else if (opt.hasOwnProperty('isOwn') && opt.isOwn == 1) {
|
||||
this.list = [{
|
||||
@ -241,8 +253,8 @@
|
||||
this.bindForm.name = JSON.parse(this.$Cache.get("USER_INFO")).mer_info.real_name;
|
||||
} else {
|
||||
this.bindForm.is_own = 1;
|
||||
//获取法人真实姓名
|
||||
this.bindForm.name = JSON.parse(this.$Cache.get("USER_INFO")).mer_info.real_name;
|
||||
//获取公司名称
|
||||
this.bindForm.name = JSON.parse(this.$Cache.get("USER_INFO")).mer_info.company_name;
|
||||
this.list = [{
|
||||
name: '对公账户'
|
||||
}, {
|
||||
@ -252,6 +264,7 @@
|
||||
|
||||
//如果绑定银行卡用户为个体户 则不能添加对公账户,只能添加法人账户 is_company =0 个体户
|
||||
const isCompany = JSON.parse(this.$Cache.get("USER_INFO")).mer_info.is_company;
|
||||
this.isCompany = isCompany;
|
||||
if (isCompany != 1) {
|
||||
this.bindForm.is_own = 0;
|
||||
this.list = [{
|
||||
@ -372,7 +385,8 @@
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err,
|
||||
duration: 3000
|
||||
duration: 3000,
|
||||
icon: "none"
|
||||
})
|
||||
})
|
||||
},
|
||||
|
@ -104,7 +104,7 @@
|
||||
|
||||
<!-- 协议 -->
|
||||
<view class="withdrawal-pro">
|
||||
<text class="withdrawal-pro-progress" @click="viewProgress">查看审核进度</text>
|
||||
<text class="withdrawal-pro-progress" @click="viewProgress">账户开通审核进度</text>
|
||||
</view>
|
||||
|
||||
<!-- 提示 -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user