首次登录没有头像
This commit is contained in:
parent
96d2552de2
commit
6dc0e69392
@ -7,7 +7,7 @@
|
|||||||
<view class="price" v-else>0.00</view>
|
<view class="price" v-else>0.00</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item" @click="navTo('/subpkg/withdrawDeposit/company')">
|
<view class="item" @click="navTo('/subpkg/withdrawDeposit/company')">
|
||||||
<view>公司收益总金额(元)</view>
|
<view>公司预计收益总金额(元)</view>
|
||||||
<view class="price" v-if="company.company_money">{{cCount(+company.company_money)}}</view>
|
<view class="price" v-if="company.company_money">{{cCount(+company.company_money)}}</view>
|
||||||
<view class="price" v-else>0.00</view>
|
<view class="price" v-else>0.00</view>
|
||||||
</view>
|
</view>
|
||||||
@ -46,7 +46,8 @@
|
|||||||
<view class="t_title">收益来源:</view>
|
<view class="t_title">收益来源:</view>
|
||||||
<view class="tips">
|
<view class="tips">
|
||||||
<text v-if="item.change_type==202" style="color: #46be61;">{{item.type_desc}}</text>
|
<text v-if="item.change_type==202" style="color: #46be61;">{{item.type_desc}}</text>
|
||||||
<text v-else-if="item.change_type==203" style="color: #ff7c32;">{{item.type_desc}}</text>
|
<text v-else-if="item.change_type==203"
|
||||||
|
style="color: #ff7c32;">{{item.type_desc}}</text>
|
||||||
<text v-else="item.change_type==203">{{item.type_desc}}</text>
|
<text v-else="item.change_type==203">{{item.type_desc}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -100,24 +101,26 @@
|
|||||||
this.initLoad();
|
this.initLoad();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async loadCompany(){
|
async loadCompany() {
|
||||||
let res = await companyView();
|
let res = await companyView();
|
||||||
this.company = res.data.company;
|
this.company = res.data.company;
|
||||||
},
|
},
|
||||||
navTo(url) {
|
navTo(url) {
|
||||||
if(url){
|
if (url) {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '加载中',
|
title: '加载中',
|
||||||
mask: true
|
mask: true
|
||||||
});
|
});
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: url,
|
url: url,
|
||||||
success:(res)=> {
|
success: (res) => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
res.eventChannel.emit('company_money', { company_money: this.company.company_money })
|
res.eventChannel.emit('company_money', {
|
||||||
|
company_money: this.company.company_money
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else Toast('暂未开放')
|
} else Toast('暂未开放')
|
||||||
},
|
},
|
||||||
initLoad() {
|
initLoad() {
|
||||||
this.loadConfig.page = 1;
|
this.loadConfig.page = 1;
|
||||||
@ -251,7 +254,7 @@
|
|||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
content: '账户收益';
|
content: '预计收益';
|
||||||
width: 137rpx;
|
width: 137rpx;
|
||||||
height: 49rpx;
|
height: 49rpx;
|
||||||
line-height: 49rpx;
|
line-height: 49rpx;
|
||||||
|
@ -270,7 +270,14 @@
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
|
// console.log('asdashg')
|
||||||
|
if (uni.getStorageSync('USER_INFO')) {
|
||||||
|
let userData = JSON.parse(uni.getStorageSync('USER_INFO'))
|
||||||
|
|
||||||
|
this.initUserInfo(userData);
|
||||||
|
// console.log(545)
|
||||||
|
}
|
||||||
|
console.log(7787878)
|
||||||
await this.$onLaunched;
|
await this.$onLaunched;
|
||||||
this.is_captain = JSON.parse(uni.getStorageSync("USER_INFO") || '{}')?.is_captain
|
this.is_captain = JSON.parse(uni.getStorageSync("USER_INFO") || '{}')?.is_captain
|
||||||
this.options.data = bj;
|
this.options.data = bj;
|
||||||
@ -286,6 +293,10 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if (this.flag) return
|
if (this.flag) return
|
||||||
@ -314,6 +325,9 @@
|
|||||||
// }
|
// }
|
||||||
// this.getUserIndex()
|
// this.getUserIndex()
|
||||||
// this.getIndexList()
|
// this.getIndexList()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
let user_id = JSON.parse(uni.getStorageSync("USER_INFO")).id
|
let user_id = JSON.parse(uni.getStorageSync("USER_INFO")).id
|
||||||
this.getOrderList();
|
this.getOrderList();
|
||||||
console.log("show")
|
console.log("show")
|
||||||
|
@ -4,24 +4,14 @@
|
|||||||
<view class="top">
|
<view class="top">
|
||||||
<view>
|
<view>
|
||||||
<view v-if="user_id == 0" class="accont">
|
<view v-if="user_id == 0" class="accont">
|
||||||
<u--image
|
<u--image :showLoading="true" :src="userInfo.avatar || '../../static/img/public/man.png'"
|
||||||
:showLoading="true"
|
width="44px" height="44px" shape="circle"></u--image>
|
||||||
:src="userInfo.avatar || '../../static/img/public/man.png'"
|
|
||||||
width="44px"
|
|
||||||
height="44px"
|
|
||||||
shape="circle"
|
|
||||||
></u--image>
|
|
||||||
<view class="name">{{ userInfo.nickname }}</view>
|
<view class="name">{{ userInfo.nickname }}</view>
|
||||||
<!-- <u-icon name="setting-fill" color="white" size="20"></u-icon> -->
|
<!-- <u-icon name="setting-fill" color="white" size="20"></u-icon> -->
|
||||||
</view>
|
</view>
|
||||||
<view v-else class="accont">
|
<view v-else class="accont">
|
||||||
<u--image
|
<u--image :showLoading="true" :src="userInfo.avatar || '../../static/img/public/man.png'"
|
||||||
:showLoading="true"
|
width="44px" height="44px" shape="circle"></u--image>
|
||||||
:src="userInfo.avatar || '../../static/img/public/man.png'"
|
|
||||||
width="44px"
|
|
||||||
height="44px"
|
|
||||||
shape="circle"
|
|
||||||
></u--image>
|
|
||||||
|
|
||||||
<view class="name">{{ userInfo.nickname }}</view>
|
<view class="name">{{ userInfo.nickname }}</view>
|
||||||
<!-- <u-icon name="setting-fill" color="white" size="20"></u-icon> -->
|
<!-- <u-icon name="setting-fill" color="white" size="20"></u-icon> -->
|
||||||
@ -33,22 +23,14 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="center">
|
<view class="center">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
<text style="margin-right: 20rpx">账户总金额(元)</text
|
<text style="margin-right: 20rpx">账户总金额(元)</text><uni-icons @click="updateEye()"
|
||||||
><uni-icons
|
:type="eyeType ? 'eye-filled' : 'eye-slash-filled'" color="#fff"></uni-icons>
|
||||||
@click="updateEye()"
|
|
||||||
:type="eyeType ? 'eye-filled' : 'eye-slash-filled'"
|
|
||||||
color="#fff"
|
|
||||||
></uni-icons>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="price" v-show="eyeType"
|
<view class="price" v-show="eyeType">{{ all_money }}元</view>
|
||||||
>{{ all_money }}元</view
|
|
||||||
>
|
|
||||||
<view class="price" v-show="!eyeType">****元</view>
|
<view class="price" v-show="!eyeType">****元</view>
|
||||||
<view class="bubble">
|
<view class="bubble">
|
||||||
<!-- <image src="../../static/img/contract/bubble.png"></image> -->
|
<!-- <image src="../../static/img/contract/bubble.png"></image> -->
|
||||||
<view class="text" v-show="eyeType"
|
<view class="text" v-show="eyeType">可提现金额{{ userInfo.user_money || 0.0 }}元</view>
|
||||||
>可提现金额{{ userInfo.user_money || 0.0 }}元</view
|
|
||||||
>
|
|
||||||
<view class="text" v-show="!eyeType">可提现金额****元</view>
|
<view class="text" v-show="!eyeType">可提现金额****元</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -62,7 +44,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<u-line direction="col" length="40%" color="#999999FF"></u-line>
|
<u-line direction="col" length="40%" color="#999999FF"></u-line>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<view>个人收益金额(元)</view>
|
<view>个人预计收益金额(元)</view>
|
||||||
<view class="num" v-show="eyeType">{{
|
<view class="num" v-show="eyeType">{{
|
||||||
userInfo.user_money || 0.0
|
userInfo.user_money || 0.0
|
||||||
}}</view>
|
}}</view>
|
||||||
@ -72,11 +54,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="bill">
|
<view class="bill">
|
||||||
<view style="width: 100%; height: 90rpx; background-color: #fff"></view>
|
<view style="width: 100%; height: 90rpx; background-color: #fff"></view>
|
||||||
<uni-section
|
<uni-section titleFontSize="32rpx" type="line" title="账单流水"></uni-section>
|
||||||
titleFontSize="32rpx"
|
|
||||||
type="line"
|
|
||||||
title="账单流水"
|
|
||||||
></uni-section>
|
|
||||||
<!-- <u-subsection :list="billTypeList" :current="current" mode="subsection"></u-subsection> -->
|
<!-- <u-subsection :list="billTypeList" :current="current" mode="subsection"></u-subsection> -->
|
||||||
<!-- <view class="type_box">
|
<!-- <view class="type_box">
|
||||||
<view class="type">
|
<view class="type">
|
||||||
@ -116,7 +94,7 @@
|
|||||||
<view class="t_title">任务名称:</view>
|
<view class="t_title">任务名称:</view>
|
||||||
<view class="tips">{{ item.remark }}</view>
|
<view class="tips">{{ item.remark }}</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="t_item">
|
<!-- <view class="t_item">
|
||||||
<view class="t_title">金额归属:</view>
|
<view class="t_title">金额归属:</view>
|
||||||
<view class="tips">{{
|
<view class="tips">{{
|
||||||
$store.state.app.userInfo.nickname
|
$store.state.app.userInfo.nickname
|
||||||
@ -128,11 +106,8 @@
|
|||||||
<text v-if="item.change_type == 202" style="color: #46be61">{{
|
<text v-if="item.change_type == 202" style="color: #46be61">{{
|
||||||
item.type_desc
|
item.type_desc
|
||||||
}}</text>
|
}}</text>
|
||||||
<text
|
<text v-else-if="item.change_type == 203"
|
||||||
v-else-if="item.change_type == 203"
|
style="color: #ff7c32">{{ item.type_desc }}</text>
|
||||||
style="color: #ff7c32"
|
|
||||||
>{{ item.type_desc }}</text
|
|
||||||
>
|
|
||||||
<text v-else="item.change_type == 203">{{
|
<text v-else="item.change_type == 203">{{
|
||||||
item.type_desc
|
item.type_desc
|
||||||
}}</text>
|
}}</text>
|
||||||
@ -171,12 +146,8 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
-->
|
-->
|
||||||
<u-loadmore
|
<u-loadmore :status="loadConfig.status" :loading-text="loadConfig.loadingText"
|
||||||
:status="loadConfig.status"
|
:loadmore-text="loadConfig.loadmoreText" :nomore-text="loadConfig.nomoreText" />
|
||||||
:loading-text="loadConfig.loadingText"
|
|
||||||
:loadmore-text="loadConfig.loadmoreText"
|
|
||||||
:nomore-text="loadConfig.nomoreText"
|
|
||||||
/>
|
|
||||||
</view>
|
</view>
|
||||||
<!-- 月账单 -->
|
<!-- 月账单 -->
|
||||||
<view class="bill_list" v-show="current == 1">
|
<view class="bill_list" v-show="current == 1">
|
||||||
@ -187,15 +158,13 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="bottom">
|
<view class="bottom">
|
||||||
<view class="left">
|
<view class="left">
|
||||||
<view>个人收益金额(元)</view>
|
<view>个人预计收益金额(元)</view>
|
||||||
<view class="num">{{ item.income }}</view>
|
<view class="num">{{ item.income }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="right">
|
<view class="right">
|
||||||
<view
|
<view>支出金额:{{
|
||||||
>支出金额:{{
|
|
||||||
item.expenditure > 0 ? item.expenditure : "0.00"
|
item.expenditure > 0 ? item.expenditure : "0.00"
|
||||||
}}</view
|
}}</view>
|
||||||
>
|
|
||||||
<view>入账金额:{{ item.income > 0 ? item.income : "0.00" }}</view>
|
<view>入账金额:{{ item.income > 0 ? item.income : "0.00" }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -209,19 +178,19 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
accountLogLists,
|
accountLogLists,
|
||||||
accountLogListsMonth
|
accountLogListsMonth
|
||||||
} from "@/api/pay.js"
|
} from "@/api/pay.js"
|
||||||
import {
|
import {
|
||||||
userInfo
|
userInfo
|
||||||
} from "@/api/oaUser.js"
|
} from "@/api/oaUser.js"
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Toast
|
Toast
|
||||||
} from '@/libs/uniApi.js'
|
} from '@/libs/uniApi.js'
|
||||||
export default {
|
export default {
|
||||||
data () {
|
data() {
|
||||||
return {
|
return {
|
||||||
user_id: 0,
|
user_id: 0,
|
||||||
userInfo: {},
|
userInfo: {},
|
||||||
@ -240,14 +209,14 @@ export default {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad (e) {
|
onLoad(e) {
|
||||||
if (e.id > 0) {
|
if (e.id > 0) {
|
||||||
this.user_id = e.id
|
this.user_id = e.id
|
||||||
|
|
||||||
}
|
}
|
||||||
this.loadBill()
|
this.loadBill()
|
||||||
},
|
},
|
||||||
onShow () {
|
onShow() {
|
||||||
// console.log(this.userInfo);
|
// console.log(this.userInfo);
|
||||||
if (this.user_id == 0) {
|
if (this.user_id == 0) {
|
||||||
// this.userInfo = this.$store.state.app.userInfo;
|
// this.userInfo = this.$store.state.app.userInfo;
|
||||||
@ -260,47 +229,47 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
eyeType () {
|
eyeType() {
|
||||||
return this.$store.state.config.eyeType;
|
return this.$store.state.config.eyeType;
|
||||||
},
|
},
|
||||||
all_money(){
|
all_money() {
|
||||||
let str = 0.00;
|
let str = 0.00;
|
||||||
|
|
||||||
try{
|
try {
|
||||||
this.userInfo.user_money?str=str+parseFloat(this.userInfo.user_money):0.00;
|
this.userInfo.user_money ? str = str + parseFloat(this.userInfo.user_money) : 0.00;
|
||||||
this.userInfo.deposit?str=str+parseFloat(this.userInfo.deposit):0.00;
|
this.userInfo.deposit ? str = str + parseFloat(this.userInfo.deposit) : 0.00;
|
||||||
str = str.toFixed(2);
|
str = str.toFixed(2);
|
||||||
}catch(e){
|
} catch (e) {
|
||||||
str = 0.00;
|
str = 0.00;
|
||||||
}
|
}
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onBackPress () {
|
onBackPress() {
|
||||||
this.loadBill()
|
this.loadBill()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
navTo (url) {
|
navTo(url) {
|
||||||
url ?
|
url ?
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: url
|
url: url
|
||||||
}) : Toast('暂未开放')
|
}) : Toast('暂未开放')
|
||||||
},
|
},
|
||||||
async OtherUserInfo () {
|
async OtherUserInfo() {
|
||||||
let res = await userInfo({
|
let res = await userInfo({
|
||||||
id: this.user_id
|
id: this.user_id
|
||||||
});
|
});
|
||||||
this.userInfo = res.data
|
this.userInfo = res.data
|
||||||
},
|
},
|
||||||
updateEye () {
|
updateEye() {
|
||||||
this.$store.commit('SET_EYE_TYPE')
|
this.$store.commit('SET_EYE_TYPE')
|
||||||
},
|
},
|
||||||
// 选择日账单月账单
|
// 选择日账单月账单
|
||||||
changeBillType (type) {
|
changeBillType(type) {
|
||||||
this.current = type;
|
this.current = type;
|
||||||
if (type == 1) this.loadBillMonth();
|
if (type == 1) this.loadBillMonth();
|
||||||
},
|
},
|
||||||
async loadBill () {
|
async loadBill() {
|
||||||
if (this.loadConfig.status == "nomore") return;
|
if (this.loadConfig.status == "nomore") return;
|
||||||
this.loadConfig.status = "loading"
|
this.loadConfig.status = "loading"
|
||||||
let res = await accountLogLists({
|
let res = await accountLogLists({
|
||||||
@ -317,7 +286,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.billList = [...this.billList, ...res.data.lists];
|
this.billList = [...this.billList, ...res.data.lists];
|
||||||
},
|
},
|
||||||
async loadBillMonth () {
|
async loadBillMonth() {
|
||||||
let res = await accountLogListsMonth();
|
let res = await accountLogListsMonth();
|
||||||
let list = [];
|
let list = [];
|
||||||
for (let key in res.data) {
|
for (let key in res.data) {
|
||||||
@ -326,18 +295,18 @@ export default {
|
|||||||
this.billListMonth = list;
|
this.billListMonth = list;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onPullDownRefresh () {
|
onPullDownRefresh() {
|
||||||
uni.stopPullDownRefresh()
|
uni.stopPullDownRefresh()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
page {
|
page {
|
||||||
// background-color: #fff;
|
// background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.finance_head {
|
.finance_head {
|
||||||
background-color: $theme-oa-color;
|
background-color: $theme-oa-color;
|
||||||
height: 400rpx;
|
height: 400rpx;
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -424,8 +393,7 @@ page {
|
|||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
|
|
||||||
.text {
|
.text {}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -459,9 +427,9 @@ page {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.bill {
|
.bill {
|
||||||
// padding: 28rpx;
|
// padding: 28rpx;
|
||||||
// padding-top: 90rpx;
|
// padding-top: 90rpx;
|
||||||
padding-bottom: 32rpx;
|
padding-bottom: 32rpx;
|
||||||
@ -654,5 +622,5 @@ page {
|
|||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
@ -46,7 +46,8 @@
|
|||||||
<u--input v-model="formData.id_card" placeholder="请输入身份证号" @input="c_idcard"
|
<u--input v-model="formData.id_card" placeholder="请输入身份证号" @input="c_idcard"
|
||||||
type="idcard"></u--input>
|
type="idcard"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item v-if="$store.state.app.userInfo.company.company_type==18" labelWidth="auto" label="是否为小队长" required prop="is_captain" borderBottom>
|
<u-form-item v-if="$store.state.app.userInfo.company.company_type==18" labelWidth="auto"
|
||||||
|
label="是否为小队长" required prop="is_captain" borderBottom>
|
||||||
<u-radio-group v-model="formData.is_captain" style="margin: 16rpx;">
|
<u-radio-group v-model="formData.is_captain" style="margin: 16rpx;">
|
||||||
<u-radio activeColor="#0122C7" :customStyle="{marginRight: '16px'}"
|
<u-radio activeColor="#0122C7" :customStyle="{marginRight: '16px'}"
|
||||||
v-for="(item, index) in [{value:1,label:'是'},{value:0,label:'否'}]" :key="index"
|
v-for="(item, index) in [{value:1,label:'是'},{value:0,label:'否'}]" :key="index"
|
||||||
@ -54,7 +55,8 @@
|
|||||||
</u-radio>
|
</u-radio>
|
||||||
</u-radio-group>
|
</u-radio-group>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item v-if="$store.state.app.userInfo.company.company_type==41" labelWidth="auto" label="是否为服务部长" required prop="is_service_manager" borderBottom>
|
<u-form-item v-if="$store.state.app.userInfo.company.company_type==16" labelWidth="auto"
|
||||||
|
label="是否为服务部长" required prop="is_service_manager" borderBottom>
|
||||||
<u-radio-group v-model="formData.is_service_manager" style="margin: 16rpx;">
|
<u-radio-group v-model="formData.is_service_manager" style="margin: 16rpx;">
|
||||||
<u-radio activeColor="#0122C7" :customStyle="{marginRight: '16px'}"
|
<u-radio activeColor="#0122C7" :customStyle="{marginRight: '16px'}"
|
||||||
v-for="(item, index) in [{value:1,label:'是'},{value:0,label:'否'}]" :key="index"
|
v-for="(item, index) in [{value:1,label:'是'},{value:0,label:'否'}]" :key="index"
|
||||||
@ -295,8 +297,7 @@
|
|||||||
</u-upload>
|
</u-upload>
|
||||||
</u-form-item> -->
|
</u-form-item> -->
|
||||||
</u--form>
|
</u--form>
|
||||||
<button @click="modelShow=true" type="primary" class="btn"
|
<button @click="modelShow=true" type="primary" class="btn" style="margin: 28rpx;">创建</button>
|
||||||
style="margin: 28rpx;">创建</button>
|
|
||||||
</view>
|
</view>
|
||||||
<u-modal :show="modelShow" title="提示" content='请确认人员信息无误后再创建' closeOnClickOverlay showCancelButton
|
<u-modal :show="modelShow" title="提示" content='请确认人员信息无误后再创建' closeOnClickOverlay showCancelButton
|
||||||
@close="modelShow=false" @cancel="modelShow=false" @confirm="$u.throttle(addAcountNum, 2000)"></u-modal>
|
@close="modelShow=false" @cancel="modelShow=false" @confirm="$u.throttle(addAcountNum, 2000)"></u-modal>
|
||||||
@ -429,14 +430,14 @@
|
|||||||
// 上传头像
|
// 上传头像
|
||||||
async afterReadAvatar(event) {
|
async afterReadAvatar(event) {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title:'上传中'
|
title: '上传中'
|
||||||
})
|
})
|
||||||
upLoadImage({
|
upLoadImage({
|
||||||
filePath: event.file.url,
|
filePath: event.file.url,
|
||||||
name: 'file'
|
name: 'file'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.formData.avatar = res.data.uri;
|
this.formData.avatar = res.data.uri;
|
||||||
}).finally(()=>{
|
}).finally(() => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -447,14 +448,14 @@
|
|||||||
// 上传图片
|
// 上传图片
|
||||||
upLoad(url, type) {
|
upLoad(url, type) {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title:'上传中请稍后'
|
title: '上传中请稍后'
|
||||||
})
|
})
|
||||||
upLoadImage({
|
upLoadImage({
|
||||||
filePath: url,
|
filePath: url,
|
||||||
name: 'file'
|
name: 'file'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.formData.qualification[type] = res.data.uri
|
this.formData.qualification[type] = res.data.uri
|
||||||
}).finally(()=>{
|
}).finally(() => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -464,8 +465,10 @@
|
|||||||
await this.$nextTick();
|
await this.$nextTick();
|
||||||
if (!this.formData.avatar) return Toast('头像未上传');
|
if (!this.formData.avatar) return Toast('头像未上传');
|
||||||
let flag = this.$refs.districtSelectorRef.validate();
|
let flag = this.$refs.districtSelectorRef.validate();
|
||||||
if (!this.formData.qualification.id_card || !this.formData.qualification.id_card_b) return Toast('身份证未上传');
|
if (!this.formData.qualification.id_card || !this.formData.qualification.id_card_b) return Toast(
|
||||||
if (!this.formData.qualification.bank_account || !this.formData.qualification.bank_account_b) return Toast(
|
'身份证未上传');
|
||||||
|
if (!this.formData.qualification.bank_account || !this.formData.qualification.bank_account_b)
|
||||||
|
return Toast(
|
||||||
'银行卡未上传');
|
'银行卡未上传');
|
||||||
this.$refs.uForm.validate().then(async (e) => {
|
this.$refs.uForm.validate().then(async (e) => {
|
||||||
if (e && flag) {
|
if (e && flag) {
|
||||||
|
@ -109,7 +109,9 @@
|
|||||||
:loadmore-text="loadConfig.loadmoreText" :nomore-text="loadConfig.nomoreText" />
|
:loadmore-text="loadConfig.loadmoreText" :nomore-text="loadConfig.nomoreText" />
|
||||||
</view>
|
</view>
|
||||||
<!-- <button class="new_btn" @click.stop="navTo('/subpkg/newPersonnel/newPersonnel')">创建账号</button> -->
|
<!-- <button class="new_btn" @click.stop="navTo('/subpkg/newPersonnel/newPersonnel')">创建账号</button> -->
|
||||||
<mybtn v-if="$store.state.app.userInfo.company && ($store.state.app.userInfo.company.company_type==18||$store.state.app.userInfo.company.company_type==41)" text="创建账号" @click="navTo('/subpkg/newPersonnel/newPersonnel')"></mybtn>
|
<mybtn
|
||||||
|
v-if="$store.state.app.userInfo.company && ($store.state.app.userInfo.company.company_type==18||$store.state.app.userInfo.company.company_type==16)"
|
||||||
|
text="创建账号" @click="navTo('/subpkg/newPersonnel/newPersonnel')"></mybtn>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -146,7 +148,7 @@
|
|||||||
// console.log(a.substring(0, 10))
|
// console.log(a.substring(0, 10))
|
||||||
},
|
},
|
||||||
navTo(url) {
|
navTo(url) {
|
||||||
if(url){
|
if (url) {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '加载中',
|
title: '加载中',
|
||||||
mask: true
|
mask: true
|
||||||
@ -157,7 +159,7 @@
|
|||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else Toast('暂未开放')
|
} else Toast('暂未开放')
|
||||||
},
|
},
|
||||||
async initLoad() {
|
async initLoad() {
|
||||||
this.loadConfig.page = 1;
|
this.loadConfig.page = 1;
|
||||||
@ -204,6 +206,7 @@
|
|||||||
.personnel {
|
.personnel {
|
||||||
padding: 28rpx 0;
|
padding: 28rpx 0;
|
||||||
padding-bottom: 160rpx;
|
padding-bottom: 160rpx;
|
||||||
|
|
||||||
.new_btn {
|
.new_btn {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 30rpx;
|
bottom: 30rpx;
|
||||||
|
@ -401,8 +401,8 @@
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
formData: {
|
formData: {
|
||||||
"entityName": "5",
|
"entityName": "",
|
||||||
phone: "15884967539",
|
phone: "",
|
||||||
employee: "",
|
employee: "",
|
||||||
arableLand: "",
|
arableLand: "",
|
||||||
"breeding_training": 1, //有无养殖培训
|
"breeding_training": 1, //有无养殖培训
|
||||||
@ -466,15 +466,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
|
|
||||||
|
|
||||||
this.taskId = option.task_id
|
this.taskId = option.task_id
|
||||||
if (option.type == 'supply') this.page = 0
|
if (option.type == 'supply') this.page = 0
|
||||||
|
|
||||||
townMasterTask3List({
|
townMasterTask3List({
|
||||||
id: option.task_id
|
id: option.task_id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.pas_Info = res.data.template_info.extend.purchase_sales_info
|
this.pas_Info = res.data.template_info.extend.purchase_sales_info || this.pas_Info
|
||||||
if (option.index) {
|
if (option.index) {
|
||||||
this.readonly = true
|
this.readonly = true
|
||||||
this.flag = true
|
this.flag = true
|
||||||
@ -601,6 +598,7 @@
|
|||||||
},
|
},
|
||||||
async commit() {
|
async commit() {
|
||||||
console.log(this.pas_Info)
|
console.log(this.pas_Info)
|
||||||
|
|
||||||
if (this.page) {
|
if (this.page) {
|
||||||
this.pas_Info.planting.push(this.formData)
|
this.pas_Info.planting.push(this.formData)
|
||||||
await townMasterTask3Commit({
|
await townMasterTask3Commit({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user