This commit is contained in:
DESKTOP-GMUNQ1B\k 2024-03-09 17:35:36 +08:00
parent b5b1be3d39
commit 938a980186
3 changed files with 161 additions and 189 deletions

View File

@ -10,9 +10,12 @@
<view class="line"></view> <view class="line"></view>
<view class="card-bottom"> <view class="card-bottom">
<view class="card-status"> <view class="card-status">
<image class="status-icon" v-if="item.status === 0" src="../static/images/pending.png" mode=""></image> <image class="status-icon" v-if="item.status === 0" src="../static/images/pending.png" mode="">
<image class="status-icon" v-else-if="item.status === 1" src="../static/images/passed.png" mode=""></image> </image>
<image class="status-icon" v-else-if="item.status === 2" src="../static/images/not-pass.png" mode=""></image> <image class="status-icon" v-else-if="item.status === 1" src="../static/images/passed.png"
mode=""></image>
<image class="status-icon" v-else-if="item.status === 2" src="../static/images/not-pass.png"
mode=""></image>
<text class="status-text">{{statusText(item.status)}}</text> <text class="status-text">{{statusText(item.status)}}</text>
</view> </view>
<view class="status-btn" @click="jump(item)">{{statusBtn(item.status)}}</view> <view class="status-btn" @click="jump(item)">{{statusBtn(item.status)}}</view>
@ -83,7 +86,6 @@
}, },
// //
jump(item) { jump(item) {
console.log(item)
if ([0, 2].includes(item.status)) { if ([0, 2].includes(item.status)) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/store/settled/index?mer_i_id=${item.mer_intention_id}` url: `/pages/store/settled/index?mer_i_id=${item.mer_intention_id}`
@ -125,53 +127,64 @@
align-items: center; align-items: center;
background-color: #F5F5F5; background-color: #F5F5F5;
padding: 20rpx 30rpx; padding: 20rpx 30rpx;
.card-list { .card-list {
width: 100%; width: 100%;
background-color: #fff; background-color: #fff;
padding: 20rpx 24rpx; padding: 20rpx 24rpx;
margin: 10rpx 20rpx; margin: 10rpx 20rpx;
border-radius: 12rpx; border-radius: 12rpx;
.card-top { .card-top {
height: 140rpx; height: 140rpx;
.title { .title {
font-size: 28rpx; font-size: 28rpx;
font-weight: bold; font-weight: bold;
color: #333333; color: #333333;
} }
.time { .time {
color: #999999; color: #999999;
font-size: 24rpx; font-size: 24rpx;
padding: 5rpx 0; padding: 5rpx 0;
} }
.reason { .reason {
color: #E93323; color: #E93323;
font-weight: bold; font-weight: bold;
font-size: 24rpx; font-size: 24rpx;
} }
} }
.line { .line {
height: 2rpx; height: 2rpx;
margin: 20rpx 0 20rpx 0; margin: 20rpx 0 20rpx 0;
background-color: #EEEEEE; background-color: #EEEEEE;
} }
.card-bottom { .card-bottom {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
color: #333; color: #333;
.card-status { .card-status {
display: flex; display: flex;
align-items: center; align-items: center;
.status-icon { .status-icon {
width: 30rpx; width: 30rpx;
height: 30rpx; height: 30rpx;
margin: 10rpx; margin: 10rpx;
} }
.status-text { .status-text {
font-size: 28rpx; font-size: 28rpx;
font-weight: 500; font-weight: 500;
} }
} }
.status-btn { .status-btn {
font-size: 26rpx; font-size: 26rpx;
color: #555; color: #555;
@ -182,15 +195,18 @@
} }
} }
} }
.no-shop { .no-shop {
width: 100%; width: 100%;
background-color: #fff; background-color: #fff;
height: 100vh; height: 100vh;
.pictrue { .pictrue {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
color: $uni-nothing-text; color: $uni-nothing-text;
image { image {
width: 414rpx; width: 414rpx;
height: 380rpx; height: 380rpx;

View File

@ -87,18 +87,7 @@
</view> </view>
</view> </view>
</view> </view>
<!-- <view class="item">
<view class="uni-list">
<view class="uni-list-cell">
<view class="uni-list-cell-db acea-row row-middle">
<text class="item-name businessBox">邀请码(选填)</text>
<input type="text" maxlength="30" placeholder="请输入邀请码"
v-model="merchantData.invitation_code" @input="validateBtn"
placeholder-class='placeholder' />
</view>
</view>
</view>
</view> -->
<view class="item"> <view class="item">
<view class="uni-list"> <view class="uni-list">
<view class="uni-list-cell"> <view class="uni-list-cell">
@ -106,11 +95,8 @@
<text class="item-name">公司性质</text> <text class="item-name">公司性质</text>
<picker @change="natureBusinessChange" mode="selector" :value="index" <picker @change="natureBusinessChange" mode="selector" :value="index"
:range="companyTypeList"> :range="companyTypeList">
<input v-if="nature_business==1" placeholder="请选择公司性质" type="text" readonly <input placeholder="请选择公司性质" type="text" readonly
disabled value="对公户"> :value="nature_business===''?'':nature_business==1?'对公户':'个体户'">
<input v-else-if="nature_business==2" placeholder="请选择公司性质" type="text"
readonly disabled value="个体户">
<input v-else placeholder="请选择公司性质" type="text" readonly disabled value="">
<view class='iconfont icon-jiantou'></view> <view class='iconfont icon-jiantou'></view>
</picker> </picker>
</view> </view>
@ -141,7 +127,6 @@
<input type="text" maxlength="30" placeholder="自动识别" <input type="text" maxlength="30" placeholder="自动识别"
v-model="merchantData.address" @input="validateBtn" v-model="merchantData.address" @input="validateBtn"
placeholder-class='placeholder' /> placeholder-class='placeholder' />
</view> </view>
</view> </view>
</view> </view>
@ -154,7 +139,6 @@
<input type="text" maxlength="30" placeholder="自动识别" <input type="text" maxlength="30" placeholder="自动识别"
v-model="merchantData.company_name" @input="validateBtn" v-model="merchantData.company_name" @input="validateBtn"
placeholder-class='placeholder' /> placeholder-class='placeholder' />
</view> </view>
</view> </view>
</view> </view>
@ -174,18 +158,10 @@
<input type="text" maxlength="30" placeholder="自动识别" <input type="text" maxlength="30" placeholder="自动识别"
v-model="merchantData.social_credit_code" @input="validateBtn" v-model="merchantData.social_credit_code" @input="validateBtn"
placeholder-class='placeholder' /> placeholder-class='placeholder' />
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<!-- <view class="item">
<view class="acea-row row-middle">
<text class="item-name">是否农贸市场</text>
<u-switch v-model="isnm" @change="change" activeColor="#42CA4C"></u-switch>
</view>
</view> -->
<view class="item no-border"> <view class="item no-border">
<view class='acea-row row-middle'> <view class='acea-row row-middle'>
<text class="item-title">请上传行业相关其他资质证明图片</text> <text class="item-title">请上传行业相关其他资质证明图片</text>
@ -222,15 +198,16 @@
<view class="item"> <view class="item">
<view class="acea-row row-middle"> <view class="acea-row row-middle">
<text class="item-name">开户银行</text> <text class="item-name">开户银行</text>
<input type="text" maxlength="30" placeholder="请输入开户银行名称" v-model="merchantData.bank_username" <input type="text" maxlength="30" placeholder="请输入开户银行名称"
@input="validateBtn" placeholder-class='placeholder' /> v-model="merchantData.bank_username" @input="validateBtn"
placeholder-class='placeholder' />
</view> </view>
</view> </view>
<view class="item"> <view class="item">
<view class="acea-row row-middle"> <view class="acea-row row-middle">
<text class="item-name">开户网点</text> <text class="item-name">开户网点</text>
<input type="text" placeholder="请输入开户网点" v-model="merchantData.bank_opening" @input="validateBtn" <input type="text" placeholder="请输入开户网点" v-model="merchantData.bank_opening"
placeholder-class='placeholder' /> @input="validateBtn" placeholder-class='placeholder' />
</view> </view>
</view> </view>
<view class="item" v-if="nature_business==2"> <view class="item" v-if="nature_business==2">
@ -248,7 +225,8 @@
<view v-if="bank_front" class='pictrue' @click='uploadpicBack'> <view v-if="bank_front" class='pictrue' @click='uploadpicBack'>
<image :src='bank_front'></image> <image :src='bank_front'></image>
</view> </view>
<view v-else class='pictrue acea-row row-center-wrapper row-column' @click='uploadpicBack'> <view v-else class='pictrue acea-row row-center-wrapper row-column'
@click='uploadpicBack'>
<text class='iconfont icon-icon25201'></text> <text class='iconfont icon-icon25201'></text>
<view>上传图片</view> <view>上传图片</view>
</view> </view>
@ -333,9 +311,6 @@
<view class="setAgCountbtn"> <view class="setAgCountbtn">
<view class="border"></view> <view class="border"></view>
<!-- <button class="setAgCountbtna" @click="refuse">
拒绝
</button> -->
<button :class="num>0?'setAgCountbtnb':'setAgCountbtnc'" class="btn" :disabled="num!=0" <button :class="num>0?'setAgCountbtnb':'setAgCountbtnc'" class="btn" :disabled="num!=0"
@click="agree"> @click="agree">
<text v-if="num>0">请仔细阅读协议 {{num}}秒后可提交</text> <text v-if="num>0">请仔细阅读协议 {{num}}秒后可提交</text>
@ -510,8 +485,8 @@
computed: configMap({ computed: configMap({
sys_intention_agree: '' sys_intention_agree: ''
}, mapGetters(['isLogin', 'viewColor', 'keyColor'])), }, mapGetters(['isLogin', 'viewColor', 'keyColor'])),
onLoad(options) {
onLoad(options) {
if (this.isLogin) { if (this.isLogin) {
this.getClassfication(); this.getClassfication();
this.getStoreType(); this.getStoreType();
@ -530,10 +505,7 @@
} else this.getArea() } else this.getArea()
this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 45; this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 45;
}, },
onShow() {
},
onReady() {},
methods: { methods: {
// //
codelist() { codelist() {
@ -541,12 +513,14 @@
this.codenote = res.data.list this.codenote = res.data.list
}) })
}, },
//退 //退
logout() { logout() {
uni.switchTab({ uni.switchTab({
url: '/pages/user/index' url: '/pages/user/index'
}) })
}, },
// //
recuo() { recuo() {
if (this.num > 0) { if (this.num > 0) {
@ -557,14 +531,7 @@
this.isshow = false this.isshow = false
} }
}, },
//
refuse() {
uni.switchTab({
url: '/pages/user/index'
})
},
countDown() { countDown() {
let { let {
num num
@ -584,13 +551,10 @@
} }
this.countDown(); this.countDown();
}, 1000); }, 1000);
}, },
// //
shoplist(val) { shoplist(val) {
agreeiness({ agreeiness({
type: val type: val
}).then(res => { }).then(res => {
@ -598,11 +562,6 @@
}) })
}, },
//
// change(e) {
// this.isnum = (e === true ? 1 : 0)
// },
// //
getVillage(e) { getVillage(e) {
const self = this; const self = this;
@ -619,6 +578,7 @@
} }
}) })
}, },
// //
getStreet(e, street) { getStreet(e, street) {
const self = this; const self = this;
@ -629,6 +589,7 @@
self.getVillage(street ? street : self.business[1][0].code) self.getVillage(street ? street : self.business[1][0].code)
}) })
}, },
// //
getArea(code = null, street = null) { getArea(code = null, street = null) {
getArea({ getArea({
@ -639,6 +600,7 @@
this.getStreet(this.code1, street) this.getStreet(this.code1, street)
}) })
}, },
// //
pickerColumnchange(e) { pickerColumnchange(e) {
if (e.detail.column === 0) { if (e.detail.column === 0) {
@ -654,12 +616,14 @@
this.index2[2] = e.detail.value this.index2[2] = e.detail.value
} }
}, },
getConfig() { getConfig() {
this.isType = false; this.isType = false;
this.showProtocol = true; this.showProtocol = true;
// //
this.protocol = this.sys_intention_agree this.protocol = this.sys_intention_agree
}, },
/*获取发票说明*/ /*获取发票说明*/
getAgreement() { getAgreement() {
let that = this let that = this
@ -667,16 +631,13 @@
that.isType = true that.isType = true
getAgreementApi('sys_merchant_type').then(res => { getAgreementApi('sys_merchant_type').then(res => {
that.protocol = res.data.sys_merchant_type that.protocol = res.data.sys_merchant_type
}) })
}, },
// //
getGoodsDetails(id) { getGoodsDetails(id) {
getGoodsDetails(id).then(res => { getGoodsDetails(id).then(res => {
let arr = Object.keys(this.merchantData)
let resData = res.data let resData = res.data
arr.map(item => {
this.merchantData.enterprise_name = resData.mer_name this.merchantData.enterprise_name = resData.mer_name
this.merchantData.user_name = resData.name this.merchantData.user_name = resData.name
this.merchantData.phone = resData.phone this.merchantData.phone = resData.phone
@ -689,8 +650,17 @@
this.area_id = resData.area_id this.area_id = resData.area_id
this.street_id = resData.street_id this.street_id = resData.street_id
this.mer_storeType = resData.mer_storeType this.mer_storeType = resData.mer_storeType
this.village_id = resData.village_id this.village_id = resData.village_id;
})
const bankInfo = resData.financial_bank ? JSON.parse(resData.financial_bank) : '';
this.$set(this.merchantData, 'bank_code', bankInfo.bank_code);
this.$set(this.merchantData, 'bank_username', bankInfo.bank);
this.$set(this.merchantData, 'bank_opening', bankInfo.bank_branch);
this.$set(this.merchantData, 'bank_card_username', bankInfo.name);
this.bank_front = bankInfo.bank_front[0] ? bankInfo.bank_front[0] : '';
this.nature_business = resData.is_company == 1 ? 1 : 2;
this.business_license = resData.images[0]; this.business_license = resData.images[0];
resData.images.shift(); resData.images.shift();
this.pics = resData.images; this.pics = resData.images;
@ -706,6 +676,7 @@
uni.hideLoading(); uni.hideLoading();
}) })
}, },
// //
getCategoryName(id, arr) { getCategoryName(id, arr) {
for (let i = 0; i < arr.length; i++) { for (let i = 0; i < arr.length; i++) {
@ -714,6 +685,7 @@
} }
} }
}, },
// //
getStoreTypeName(id, arr) { getStoreTypeName(id, arr) {
for (let i = 0; i < arr.length; i++) { for (let i = 0; i < arr.length; i++) {
@ -722,10 +694,12 @@
} }
} }
}, },
// //
natureBusinessChange(e) { natureBusinessChange(e) {
this.nature_business = this.companyTypeList[e.detail.value] == '个体户' ? 2 : 1; this.nature_business = this.companyTypeList[e.detail.value] == '个体户' ? 2 : 1;
}, },
bindPickerChange: function(e) { bindPickerChange: function(e) {
// console.log(e.detail); // console.log(e.detail);
// this.index = e.target.value[1]; // this.index = e.target.value[1];
@ -737,19 +711,19 @@
// this.mer_classification = this.bindPickerChangeidx[idx]['cate_name'] // this.mer_classification = this.bindPickerChangeidx[idx]['cate_name']
this.validateBtn() this.validateBtn()
}, },
columnchange(e) { columnchange(e) {
// console.log(e.detail); // console.log(e.detail);
if (e.detail.column == 0) { if (e.detail.column == 0) {
this.bindPickerChangeidx = this.array[e.detail.value].children; this.bindPickerChangeidx = this.array[e.detail.value].children;
} }
}, },
bindPickerChange1: function(e) {
bindPickerChange1: function(e) {
this.index1 = e.target.value this.index1 = e.target.value
let idx = e.target.value let idx = e.target.value
this.merchantData.mer_type = this.storeTypeArr[idx]['mer_type_id'] this.merchantData.mer_type = this.storeTypeArr[idx]['mer_type_id']
this.mer_storeType = this.storeTypeArr[idx]['type_name'] this.mer_storeType = this.storeTypeArr[idx]['type_name']
// console.log(this.merchantData.mer_type)
if (this.storeTypeArr[idx]['type_code'] == 'TypeStore' && this.merchantData.mer_type) { if (this.storeTypeArr[idx]['type_code'] == 'TypeStore' && this.merchantData.mer_type) {
this.shoplist('mer_services_agree') this.shoplist('mer_services_agree')
} else { } else {
@ -759,7 +733,6 @@
}, },
bindPickerChange2: function(e) { bindPickerChange2: function(e) {
// console.log(e.detail.value)
this.index2 = e.detail.value this.index2 = e.detail.value
this.business_name = this.business_name =
`${this.business[0][this.index2[0]].name} ${this.business[1][this.index2[1]].name} ${this.business[2][this.index2[2]].name}` `${this.business[0][this.index2[0]].name} ${this.business[1][this.index2[1]].name} ${this.business[2][this.index2[2]].name}`
@ -787,33 +760,18 @@
console.log(res) console.log(res)
}) })
}, },
// //
getClassfication: function() { getClassfication: function() {
merClassifly() merClassifly().then(res => {
.then(res => {
this.array = res.data this.array = res.data
}) }).catch(res => {
.catch(res => {
this.$util.Tips({ this.$util.Tips({
title: res title: res
}); });
}); });
// getCategoryList()
// .then(res => {
// // console.log(res);
// res.data.list.forEach(item=>{
// item.category_name = item.cate_name;
// item.merchant_category_id = item.store_category_id;
// })
// this.array = res.data.list;
// this.bindPickerChangeidx = this.array[0].children;
// })
// .catch(res => {
// this.$util.Tips({
// title: res
// });
// });
}, },
// //
getStoreType: function() { getStoreType: function() {
getStoreTypeApi() getStoreTypeApi()
@ -960,6 +918,7 @@
} }
}); });
}, },
getcaptcha() { getcaptcha() {
let that = this let that = this
getCaptcha().then(data => { getCaptcha().then(data => {
@ -969,6 +928,7 @@
}) })
that.isShowCode = true; that.isShowCode = true;
}, },
sendCode() { sendCode() {
if (this.disabled) return; if (this.disabled) return;
this.disabled = true; this.disabled = true;
@ -986,20 +946,16 @@
} }
}, 1000); }, 1000);
}, },
onConfirm(val) { onConfirm(val) {
this.region = val.checkArr[0] + '-' + val.checkArr[1] + '-' + val.checkArr[2]; this.region = val.checkArr[0] + '-' + val.checkArr[1] + '-' + val.checkArr[2];
}, },
ChangeIsAgree: function(e) { ChangeIsAgree: function(e) {
this.isAgree = !this.isAgree; this.isAgree = !this.isAgree;
this.validateBtn(); this.validateBtn();
}, },
//
//
showxy() {
this.isshow = true
},
// //
agree() { agree() {
let that = this; let that = this;

View File

@ -27,8 +27,8 @@
<view class="table-title-cell">用户名称</view> <view class="table-title-cell">用户名称</view>
<view class="table-title-cell">用户ID</view> <view class="table-title-cell">用户ID</view>
<view class="table-title-cell">状态</view> <view class="table-title-cell">状态</view>
<view class="table-title-cell">采购金额</view> <view class="table-title-cell" style="width:32%;">采购金额</view>
<view class="table-title-cell">销售金额</view> <view class="table-title-cell" style="width:32%;">销售金额</view>
</view> </view>
<scroll-view scroll-y id="scrollView" @scrolltolower="scrolltolower"> <scroll-view scroll-y id="scrollView" @scrolltolower="scrolltolower">
@ -38,8 +38,8 @@
<view class="table-con-cell">{{item.real_name || '-'}}</view> <view class="table-con-cell">{{item.real_name || '-'}}</view>
<view class="table-con-cell">{{item.uid}}</view> <view class="table-con-cell">{{item.uid}}</view>
<view class="table-con-cell">{{item.status == 0?'未入驻':'已入驻'}}</view> <view class="table-con-cell">{{item.status == 0?'未入驻':'已入驻'}}</view>
<view class="table-con-cell red">{{item.buy_amount}}</view> <view class="table-con-cell red" style="width:32%;">{{item.buy_amount}}</view>
<view class="table-con-cell green">{{item.sale_amount}}</view> <view class="table-con-cell green" style="width:32%;">{{item.sale_amount}}</view>
</view> </view>
</block> </block>
<view class='loadings' @click="getList"> <view class='loadings' @click="getList">