Commit 7271876e authored by youjie's avatar youjie

no message

parent 38a339e3
......@@ -43,6 +43,7 @@
}
.teamLeader-center{
padding-right: 41rpx;
padding-left: 41rpx;
color: #fff;
}
.teamLeader-c-box{
......@@ -105,7 +106,10 @@
font-size: 36rpx;
color: #FFFFFF;
}
.teamLeaderMakeNote view.active{
background: rgba(211, 207, 207,.9);
color: #333;
}
</style>
<template>
......@@ -182,8 +186,11 @@
</view>
</view>
<view class="col"></view>
<view class="teamLeaderMakeNote row justify-center">
<view class="teamLeaderMakeNote row PX50"
:class="[params.IsOperation==0?'justify-between':'justify-center']">
<view class="text-center" @click="goUrl('/pages/teamLeader/reimbursementInfor')">记一笔</view>
<view v-if="params.IsOperation==0" class="text-center ML50"
:class="[loading?'active':'']" @click="saveData">提交</view>
</view>
</view>
......@@ -281,6 +288,7 @@ export default {
currentId: 0,
currentIndex: 0,
showQRCode: false,
params: {},
}
},
onLoad(option){
......@@ -291,6 +299,7 @@ export default {
}
this.b2b_user_info = uni.getStorageSync('b2b_user')
this.init()
this.getParams()
},
created() {
this.contentHeight = this.$utils.calcContentHeight(-40) + "px";
......@@ -319,6 +328,48 @@ export default {
this.currentId = value
this.currentIndex = this.dataList.findIndex(item=>item.CurrencyId==value)
},
saveData(){
if(this.loading) return
this.loading = true
uni.showLoading()
this.apipost("dmcstatistics_post_SetNewLeaderApplyList_V2", {
...this.params,
RB_DMC_LeaderApply: {
ID: 0,
Status: 1,
TCIDs: this.msg.TCIDs,
}
}, (res) => {
if(res.resultCode == 1) {
this.loading = false
uni.hideLoading()
this.getParams()
}
}, (failed) => {
this.loading = false
uni.showToast({
title: failed.message,
icon: "none",
});
}, (error) => {
this.loading = false
})
},
getParams(){
this.apipost("dmcstatistics_post_GetNewLeaderPayMoneyStatics", this.msg, (res) => {
if (res.resultCode == 1) {
this.params = res.data;
}
}, (failed) => {
uni.showToast({
title: failed.message,
icon: "none",
});
}, (error) => {
uni.hideLoading()
})
},
init() {
uni.showLoading()
this.apipost("dmcstatistics_post_GetTotalPrice_V2", this.msg, (res) => {
......
......@@ -119,7 +119,7 @@
<!-- 购物报账-->
<otherInfor6 :currencyList="currencyList" :data="params" v-else-if="params.type==10" @change="getNewData" :options="shopTypeList"></otherInfor6>
</scroll-view>
<view class="saveBox" @click="saveData">
<view v-if="params.IsOperation==0" class="saveBox" @click="saveData">
<view class="row justify-center items-center">
<text>保存</text>
</view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment