Commit ed9f193b authored by 黄奎's avatar 黄奎

11

parent 674ac7a0
...@@ -177,7 +177,7 @@ ...@@ -177,7 +177,7 @@
<text>金额</text> <text>金额</text>
</view> </view>
<view class="inputBoxRight"> <view class="inputBoxRight">
<input class="text-right" type="number" v-model="item.UnitPrice" /> <input class="text-right" type="text" v-model="item.UnitPrice" />
</view> </view>
</view> </view>
<view class="inputBox row justify-between"> <view class="inputBox row justify-between">
...@@ -185,7 +185,7 @@ ...@@ -185,7 +185,7 @@
<text>返佣</text> <text>返佣</text>
</view> </view>
<view class="inputBoxRight"> <view class="inputBoxRight">
<input class="text-right" type="number" v-model="item.Rebate" /> <input class="text-right" type="text" v-model="item.Rebate" />
</view> </view>
</view> </view>
<view class="paymentTitle PA30">备注</view> <view class="paymentTitle PA30">备注</view>
......
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
<text>金额</text> <text>金额</text>
</view> </view>
<view class="inputBoxRight"> <view class="inputBoxRight">
<input class="text-right" type="number" v-model="item.ShopMoney" /> <input class="text-right" type="text" v-model="item.ShopMoney" />
</view> </view>
</view> </view>
......
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
<text>金额</text> <text>金额</text>
</view> </view>
<view class="inputBoxRight"> <view class="inputBoxRight">
<input class="text-right" type="number" v-model="item.UnitPrice" <input class="text-right" type="text" v-model="item.UnitPrice"
@input="handleInput($event, item,2, 'UnitPrice')" @blur="handleBlur(item,2, 'UnitPrice')" /> @input="handleInput($event, item,2, 'UnitPrice')" @blur="handleBlur(item,2, 'UnitPrice')" />
</view> </view>
</view> </view>
......
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
<text>单价</text> <text>单价</text>
</view> </view>
<view class="inputBoxRight"> <view class="inputBoxRight">
<input class="text-right" type="number" v-model="item.UnitPrice" @input="getNum()" /> <input class="text-right" type="text" v-model="item.UnitPrice" @input="getNum()" />
</view> </view>
</view> </view>
<view class="inputBox row justify-between noBorder"> <view class="inputBox row justify-between noBorder">
......
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
</view> </view>
<view class="inputBoxRight"> <view class="inputBoxRight">
<input class="text-right" type="number" v-model="item.UnitPrice" @input="getNum()" /> <input class="text-right" type="text" v-model="item.UnitPrice" @input="getNum()" />
</view> </view>
</view> </view>
<view class="inputBox row justify-between noBorder"> <view class="inputBox row justify-between noBorder">
......
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
<text>单价</text> <text>单价</text>
</view> </view>
<view class="inputBoxRight"> <view class="inputBoxRight">
<input class="text-right" type="number" v-model="item.UnitPrice" @input="getNum()" /> <input class="text-right" type="text" v-model="item.UnitPrice" @input="getNum()" />
</view> </view>
</view> </view>
<view class="inputBox row justify-between noBorder"> <view class="inputBox row justify-between noBorder">
......
<style lang="scss" scoped> <style lang="scss" scoped>
@import url("@/asset/css/flex.css"); @import url("@/asset/css/flex.css");
.teamLeaderTitle{
.teamLeaderTitle {}
}
.teamLeader{ .teamLeader {
width: 100%; width: 100%;
height: 100vh; height: 100vh;
overflow: hidden; overflow: hidden;
} }
.teamLeaderBJ{
background: url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638868977886703780.png') no-repeat; .teamLeaderBJ {
background-size: 100% 100%; background: url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638868977886703780.png') no-repeat;
} background-size: 100% 100%;
.teamLeaderPath{ }
background: #fff;
} .teamLeaderPath {
.teamLeaderListBox:first-child{ background: #fff;
border-bottom: 1px solid #ccc; }
}
.teamLeaderList{ .teamLeaderListBox:first-child {
width: 33.33%; border-bottom: 1px solid #ccc;
height: 200rpx; }
border-right: 1px solid #ccc;
} .teamLeaderList {
.teamLeaderList:last-child{ width: 33.33%;
border: 0; height: 200rpx;
} border-right: 1px solid #ccc;
.teamLeaderList-top{ }
text-align: center;
} .teamLeaderList:last-child {
.teamLeaderList-top img{ border: 0;
width: 62rpx; }
height: 62rpx;
display: inline-block; .teamLeaderList-top {
} text-align: center;
.teamLeaderList-text{ }
width: 100%;
text-align: center; .teamLeaderList-top img {
font-weight: 400; width: 62rpx;
font-size: 28rpx; height: 62rpx;
margin-top: 10rpx; display: inline-block;
} }
.teamLeader-center{
padding-right: 41rpx; .teamLeaderList-text {
padding-left: 41rpx; width: 100%;
color: #fff; text-align: center;
} font-weight: 400;
.teamLeader-c-box{ font-size: 28rpx;
padding: 30rpx 0; margin-top: 10rpx;
} }
.triangle {
width: 0; .teamLeader-center {
height: 0; padding-right: 41rpx;
border-left: 8rpx solid transparent; padding-left: 41rpx;
border-right: 8rpx solid transparent; color: #fff;
border-top: 8rpx solid #fff; }
}
.teamLeader-currency{ .teamLeader-c-box {
font-size: 24rpx; padding: 30rpx 0;
border-radius: 30rpx; }
border: 1px solid #fff;
padding: 8rpx 20rpx; .triangle {
} width: 0;
.teamLeader-currency text{ height: 0;
margin-right: 15rpx; border-left: 8rpx solid transparent;
} border-right: 8rpx solid transparent;
.teamLeader-title{ border-top: 8rpx solid #fff;
font-weight: 400; }
font-size: 28rpx;
color: #FFFFFF; .teamLeader-currency {
margin-bottom: 20rpx; font-size: 24rpx;
} border-radius: 30rpx;
.teamLeader-text{ border: 1px solid #fff;
font-weight: 100; padding: 8rpx 20rpx;
font-size: 28rpx; }
color: #FFFFFF;
} .teamLeader-currency text {
.teamLeader-text .stip{ margin-right: 15rpx;
position: relative; }
top: -10rpx;
left: -10rpx; .teamLeader-title {
} font-weight: 400;
.teamLeader-text .num{ font-size: 28rpx;
font-size: 54rpx; color: #FFFFFF;
font-weight: 400; margin-bottom: 20rpx;
} }
.teamLeaderLine{
margin: 0 40rpx; .teamLeader-text {
} font-weight: 100;
.teamLeaderLine view{ font-size: 28rpx;
height: 50rpx; color: #FFFFFF;
width: 1px; }
background: #fff;
} .teamLeader-text .stip {
.teamLeaderMakeNote{ position: relative;
margin-bottom: 84rpx; top: -10rpx;
} left: -10rpx;
.teamLeaderMakeNote view{ }
width: 413rpx;
height: 80rpx; .teamLeader-text .num {
line-height: 80rpx; font-size: 54rpx;
background: #257BF1; font-weight: 400;
border-radius: 40rpx; }
font-weight: 400;
font-size: 36rpx; .teamLeaderLine {
color: #FFFFFF; margin: 0 40rpx;
} }
.teamLeaderMakeNote view.active{
background: rgba(211, 207, 207,.9); .teamLeaderLine view {
color: #333; height: 50rpx;
} width: 1px;
background: #fff;
}
.teamLeaderMakeNote {
margin-bottom: 84rpx;
}
.teamLeaderMakeNote view {
width: 413rpx;
height: 80rpx;
line-height: 80rpx;
background: #257BF1;
border-radius: 40rpx;
font-weight: 400;
font-size: 36rpx;
color: #FFFFFF;
}
.teamLeaderMakeNote view.active {
background: rgba(211, 207, 207, .9);
color: #333;
}
</style> </style>
<template> <template>
<view class="teamLeader column" > <view class="teamLeader column">
<view class="teamLeaderBJ flex1 column"> <view class="teamLeaderBJ flex1 column">
<view class="teamLeaderTitle"> <view class="teamLeaderTitle">
<headers textAlign="left" :title="pageTitle" color="#fff"></headers> <headers textAlign="left" :title="pageTitle" color="#fff"></headers>
</view> </view>
<view class="teamLeader-center"> <view class="teamLeader-center">
<view class="teamLeader-c-box row"> <view class="teamLeader-c-box row">
<view class="col"></view> <view class="col"></view>
<view class="teamLeader-currency row items-center" @click="currencyVisible=true"><text>{{ dataList[currentIndex].CurrencyStr }}</text> <view class="triangle"></view></view> <view class="teamLeader-currency row items-center" @click="currencyVisible=true">
</view> <text>{{ dataList[currentIndex].CurrencyStr }}</text>
<view class="teamLeader-c-box row"> <view class="triangle"></view>
<view class="col"></view> </view>
<view> </view>
<view class="teamLeader-title text-right">领队团款</view> <view class="teamLeader-c-box row">
<view class="teamLeader-text row justify-flex-end"> <view class="col"></view>
<view class="row items-flex-end"> <view>
<text class="stip">¥</text> <view class="teamLeader-title text-right">领队团款</view>
</view> <view class="teamLeader-text row justify-flex-end">
<text class="num">{{ dataList[currentIndex].PlanTotalPrice }}</text> <view class="row items-flex-end">
</view> <text class="stip">¥</text>
</view> </view>
</view> <text class="num">{{ dataList[currentIndex].PlanTotalPrice }}</text>
<view class="teamLeader-c-box row"> </view>
<view class="col"></view> </view>
<view class="row"> </view>
<view class="teamLeader-titleBox"> <view class="teamLeader-c-box row">
<view class="teamLeader-title text-center">收入</view> <view class="col"></view>
<view class="teamLeader-text row"> <view class="row">
<view class="row items-flex-end"> <view class="teamLeader-titleBox">
<text class="stip">¥</text> <view class="teamLeader-title text-center">收入</view>
</view> <view class="teamLeader-text row">
<text class="num">{{ dataList[currentIndex].IncomeTotalPrice }}</text> <view class="row items-flex-end">
</view> <text class="stip">¥</text>
</view> </view>
<view class="teamLeaderLine row items-center"> <text class="num">{{ dataList[currentIndex].IncomeTotalPrice }}</text>
<view></view> </view>
</view> </view>
<view class="teamLeader-titleBox"> <view class="teamLeaderLine row items-center">
<view class="teamLeader-title text-center">支出</view> <view></view>
<view class="teamLeader-text row"> </view>
<view class="row items-flex-end"> <view class="teamLeader-titleBox">
<text class="stip">¥</text> <view class="teamLeader-title text-center">支出</view>
</view> <view class="teamLeader-text row">
<text class="num">{{ dataList[currentIndex].ExpendTotalPrice }}</text> <view class="row items-flex-end">
</view> <text class="stip">¥</text>
</view> </view>
</view> <text class="num">{{ dataList[currentIndex].ExpendTotalPrice }}</text>
</view> </view>
<view class="teamLeader-c-box row"> </view>
<view class="col"></view> </view>
<view> </view>
<view class="teamLeader-title text-right">余额</view> <view class="teamLeader-c-box row">
<view class="teamLeader-text row justify-flex-end"> <view class="col"></view>
<view class="row items-flex-end"> <view>
<text class="stip">¥</text> <view class="teamLeader-title text-right">余额</view>
</view> <view class="teamLeader-text row justify-flex-end">
<text class="num">{{ dataList[currentIndex].BalanceTotalPrice }}</text> <view class="row items-flex-end">
</view> <text class="stip">¥</text>
</view> </view>
</view> <text class="num">{{ dataList[currentIndex].BalanceTotalPrice }}</text>
<view class="teamLeader-c-box row"> </view>
<view class="col"></view> </view>
<view> </view>
<view class="teamLeader-title text-right">佣金收入</view> <view class="teamLeader-c-box row">
<view class="teamLeader-text row justify-flex-end"> <view class="col"></view>
<view class="row items-flex-end"> <view>
<text class="stip">¥</text> <view class="teamLeader-title text-right">佣金收入</view>
</view> <view class="teamLeader-text row justify-flex-end">
<text class="num">{{ dataList&&dataList[currentIndex]?dataList[currentIndex].CommissionIncome.toFixed(2):0.00 }}</text> <view class="row items-flex-end">
</view> <text class="stip">¥</text>
</view> </view>
</view> <text
<view class="col"></view> class="num">{{ dataList&&dataList[currentIndex]?dataList[currentIndex].CommissionIncome.toFixed(2):0.00 }}</text>
<view class="teamLeaderMakeNote row PX50" </view>
:class="[params.IsOperation==0?'justify-between':'justify-center']"> </view>
<view class="text-center" @click="goUrl('/pages/teamLeader/reimbursementInfor')">记一笔</view> </view>
<view v-if="params.IsOperation==0" class="text-center ML50" <view class="col"></view>
:class="[loading?'active':'']" @click="saveData">提交</view> <view class="teamLeaderMakeNote row PX50"
</view> :class="[params.IsOperation==0?'justify-between':'justify-center']">
</view> <view class="text-center" @click="goUrl('/pages/teamLeader/reimbursementInfor')">记一笔</view>
<view v-if="params.IsOperation==0" class="text-center ML50" :class="[loading?'active':'']"
</view> @click="saveData">提交</view>
<view class="teamLeaderPath column"> </view>
<view class="teamLeaderListBox row"> </view>
<template v-for="(item,index) in pathList">
<view v-if="index<3" class="teamLeaderList column justify-center" </view>
@click="goUrl(item.path)"> <view class="teamLeaderPath column">
<view class="teamLeaderList-top"> <view class="teamLeaderListBox row">
<img :src="item.src"> <template v-for="(item,index) in pathList">
</view> <view v-if="index<3" class="teamLeaderList column justify-center" @click="goUrl(item.path)">
<view class="teamLeaderList-text">{{ item.name }}</view> <view class="teamLeaderList-top">
</view> <img :src="item.src">
</template> </view>
</view> <view class="teamLeaderList-text">{{ item.name }}</view>
<view class="teamLeaderListBox row"> </view>
<template v-for="(item,index) in pathList"> </template>
<view v-if="index>=3" class="teamLeaderList column justify-center" </view>
@click="goUrl(item.path)"> <view class="teamLeaderListBox row">
<view class="teamLeaderList-top"> <template v-for="(item,index) in pathList">
<img :src="item.src"> <view v-if="index>=3" class="teamLeaderList column justify-center" @click="goUrl(item.path)">
</view> <view class="teamLeaderList-top">
<view class="teamLeaderList-text">{{ item.name }}</view> <img :src="item.src">
</view> </view>
</template> <view class="teamLeaderList-text">{{ item.name }}</view>
</view> </view>
</view> </template>
<currencyBottom v-if="currencyVisible" </view>
:current="currentId" </view>
:currencyList="currencyList" <currencyBottom v-if="currencyVisible" :current="currentId" :currencyList="currencyList" @close="close"
@close="close" @change="popupCurrency"></currencyBottom> @change="popupCurrency"></currencyBottom>
<QRCode v-if="showQRCode" @close="close" :TCIDs="msg.TCIDs"></QRCode> <QRCode v-if="showQRCode" @close="close" :TCIDs="msg.TCIDs"></QRCode>
</view> </view>
</template> </template>
<script> <script>
import headers from "@/components/header/header"; import headers from "@/components/header/header";
import currencyBottom from "./components/currencyBottom"; import currencyBottom from "./components/currencyBottom";
import QRCode from "./components/QRCode"; import QRCode from "./components/QRCode";
export default { export default {
components: { components: {
headers, headers,
currencyBottom, currencyBottom,
QRCode QRCode
}, },
data() { data() {
return { return {
pageTitle: '报账', pageTitle: '报账',
pathList: [ pathList: [{
{ name: "账单",
name: "账单", src: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638868998200434106.png",
src: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638868998200434106.png", path: "/pages/teamLeader/billDetails",
path: "/pages/teamLeader/billDetails", id: 1,
id: 1, },
}, {
{ name: "行程",
name: "行程", src: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638868998200882976.png",
src: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638868998200882976.png", path: "/pages/teamLeader/itineraryInformation",
path: "/pages/teamLeader/itineraryInformation", id: 2,
id: 2, },
}, {
{ name: "分房表",
name: "分房表", src: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638868998392386701.png",
src: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638868998392386701.png", path: "/pages/teamLeader/roomAllocation",
path: "/pages/teamLeader/roomAllocation", id: 3,
id: 3, },
}, {
{ name: "计划表",
name: "计划表", src: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638868998200482430.png",
src: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638868998200482430.png", path: "/pages/teamLeader/schedule",
path: "/pages/teamLeader/schedule", id: 4,
id: 4, },
}, {
{ name: "二维码",
name: "二维码", src: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638868998200501813.png",
src: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638868998200501813.png", path: "",
path: "", id: 5,
id: 5, },
}, {
{ name: "意见调查",
name: "意见调查", src: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638868998200462985.png",
src: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638868998200462985.png", path: "/pages/teamLeader/opinionSurvey",
path: "/pages/teamLeader/opinionSurvey", id: 6,
id: 6, }
} ],
], dataList: {},
dataList: {}, loading: false,
loading: false, msg: {
msg:{ TCIDs: '', // 领队id
TCIDs: '',// 领队id },
}, b2b_user_info: {},
b2b_user_info: {}, currencyVisible: false,
currencyVisible: false, currencyList: [],
currencyList: [], currentId: 0,
currentId: 0, currentIndex: 0,
currentIndex: 0, showQRCode: false,
showQRCode: false, params: {},
params: {}, }
} },
}, onLoad(option) {
onLoad(option){ if (option.TCIDs) this.msg.TCIDs = option.TCIDs
if(option.TCIDs) this.msg.TCIDs = option.TCIDs if (option.datas) {
if(option.datas){ const datas = JSON.parse(decodeURIComponent(option.datas));
const datas = JSON.parse(decodeURIComponent(option.datas)); this.pageTitle = `${datas.LineName}(${this.msg.TCIDs})`
this.pageTitle = `${datas.LineName}(${this.msg.TCIDs})` }
} this.b2b_user_info = uni.getStorageSync('b2b_user')
this.b2b_user_info = uni.getStorageSync('b2b_user') this.init()
this.init() this.getParams()
this.getParams() },
}, created() {
created() { this.contentHeight = this.$utils.calcContentHeight(-40) + "px";
this.contentHeight = this.$utils.calcContentHeight(-40) + "px"; this.mainColor = this.$uiConfig.mainColor;
this.mainColor = this.$uiConfig.mainColor; },
}, mounted() {
mounted() {
},
methods: {
goUrl(url) {
if (url != '') {
uni.navigateTo({
url: `${url}?TCIDs=${this.msg.TCIDs}`,
}, })
methods: { } else {
goUrl(url){ this.showQRCode = true
if(url!=''){ }
uni.navigateTo({ },
url: `${url}?TCIDs=${this.msg.TCIDs}`, close() {
this.currencyVisible = false
this.showQRCode = false
},
popupCurrency(value) {
this.currencyVisible = false
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) => {
}else{ this.loading = false
this.showQRCode = true uni.showToast({
} title: failed.message,
}, icon: "none",
close(){ });
this.currencyVisible = false }, (error) => {
this.showQRCode = false this.loading = false
}, })
popupCurrency(value){ },
this.currencyVisible = false getParams() {
this.currentId = value this.apipost("dmcstatistics_post_GetNewLeaderPayMoneyStatics", this.msg, (res) => {
this.currentIndex = this.dataList.findIndex(item=>item.CurrencyId==value) if (res.resultCode == 1) {
}, this.params = res.data;
saveData(){ }
if(this.loading) return }, (failed) => {
this.loading = true uni.showToast({
uni.showLoading() title: failed.message,
this.apipost("dmcstatistics_post_SetNewLeaderApplyList_V2", { icon: "none",
...this.params, });
RB_DMC_LeaderApply: { }, (error) => {
ID: 0, uni.hideLoading()
Status: 1, })
TCIDs: this.msg.TCIDs, },
} init() {
}, (res) => { uni.showLoading()
if(res.resultCode == 1) { this.apipost("dmcstatistics_post_GetTotalPrice_V2", this.msg, (res) => {
this.loading = false if (res.resultCode == 1) {
uni.hideLoading() uni.hideLoading()
this.getParams() this.dataList = res.data;
} this.currentId = res.data[0].CurrencyId
this.currentIndex = 0
}, (failed) => { for (let i = 0; i < res.data.length; i++) {
this.loading = false this.currencyList.push({
uni.showToast({ name: res.data[i].CurrencyStr,
title: failed.message, id: res.data[i].CurrencyId,
icon: "none", })
}); }
}, (error) => { }
this.loading = false }, (failed) => {
}) uni.hideLoading()
}, uni.showToast({
getParams(){ title: failed.message,
this.apipost("dmcstatistics_post_GetNewLeaderPayMoneyStatics", this.msg, (res) => { icon: "none",
if (res.resultCode == 1) { });
this.params = res.data; }, (error) => {
} uni.hideLoading()
}, (failed) => { })
uni.showToast({ },
title: failed.message, }
icon: "none", }
});
}, (error) => {
uni.hideLoading()
})
},
init() {
uni.showLoading()
this.apipost("dmcstatistics_post_GetTotalPrice_V2", this.msg, (res) => {
if (res.resultCode == 1) {
uni.hideLoading()
this.dataList = res.data;
this.currentId = res.data[0].CurrencyId
this.currentIndex = 0
for(let i=0;i<res.data.length;i++){
this.currencyList.push({
name: res.data[i].CurrencyStr,
id: res.data[i].CurrencyId,
})
}
}
}, (failed) => {
uni.hideLoading()
uni.showToast({
title: failed.message,
icon: "none",
});
}, (error) => {
uni.hideLoading()
})
},
}
}
</script> </script>
\ No newline at end of file
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