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{
.teamLeaderBJ {
background: url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638868977886703780.png') no-repeat; background: url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638868977886703780.png') no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
.teamLeaderPath{
.teamLeaderPath {
background: #fff; background: #fff;
} }
.teamLeaderListBox:first-child{
.teamLeaderListBox:first-child {
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;
} }
.teamLeaderList{
.teamLeaderList {
width: 33.33%; width: 33.33%;
height: 200rpx; height: 200rpx;
border-right: 1px solid #ccc; border-right: 1px solid #ccc;
} }
.teamLeaderList:last-child{
.teamLeaderList:last-child {
border: 0; border: 0;
} }
.teamLeaderList-top{
.teamLeaderList-top {
text-align: center; text-align: center;
} }
.teamLeaderList-top img{
.teamLeaderList-top img {
width: 62rpx; width: 62rpx;
height: 62rpx; height: 62rpx;
display: inline-block; display: inline-block;
} }
.teamLeaderList-text{
.teamLeaderList-text {
width: 100%; width: 100%;
text-align: center; text-align: center;
font-weight: 400; font-weight: 400;
font-size: 28rpx; font-size: 28rpx;
margin-top: 10rpx; margin-top: 10rpx;
} }
.teamLeader-center{
.teamLeader-center {
padding-right: 41rpx; padding-right: 41rpx;
padding-left: 41rpx; padding-left: 41rpx;
color: #fff; color: #fff;
} }
.teamLeader-c-box{
.teamLeader-c-box {
padding: 30rpx 0; padding: 30rpx 0;
} }
.triangle { .triangle {
width: 0; width: 0;
height: 0; height: 0;
...@@ -56,47 +67,57 @@ ...@@ -56,47 +67,57 @@
border-right: 8rpx solid transparent; border-right: 8rpx solid transparent;
border-top: 8rpx solid #fff; border-top: 8rpx solid #fff;
} }
.teamLeader-currency{
.teamLeader-currency {
font-size: 24rpx; font-size: 24rpx;
border-radius: 30rpx; border-radius: 30rpx;
border: 1px solid #fff; border: 1px solid #fff;
padding: 8rpx 20rpx; padding: 8rpx 20rpx;
} }
.teamLeader-currency text{
.teamLeader-currency text {
margin-right: 15rpx; margin-right: 15rpx;
} }
.teamLeader-title{
.teamLeader-title {
font-weight: 400; font-weight: 400;
font-size: 28rpx; font-size: 28rpx;
color: #FFFFFF; color: #FFFFFF;
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
.teamLeader-text{
.teamLeader-text {
font-weight: 100; font-weight: 100;
font-size: 28rpx; font-size: 28rpx;
color: #FFFFFF; color: #FFFFFF;
} }
.teamLeader-text .stip{
.teamLeader-text .stip {
position: relative; position: relative;
top: -10rpx; top: -10rpx;
left: -10rpx; left: -10rpx;
} }
.teamLeader-text .num{
.teamLeader-text .num {
font-size: 54rpx; font-size: 54rpx;
font-weight: 400; font-weight: 400;
} }
.teamLeaderLine{
.teamLeaderLine {
margin: 0 40rpx; margin: 0 40rpx;
} }
.teamLeaderLine view{
.teamLeaderLine view {
height: 50rpx; height: 50rpx;
width: 1px; width: 1px;
background: #fff; background: #fff;
} }
.teamLeaderMakeNote{
.teamLeaderMakeNote {
margin-bottom: 84rpx; margin-bottom: 84rpx;
} }
.teamLeaderMakeNote view{
.teamLeaderMakeNote view {
width: 413rpx; width: 413rpx;
height: 80rpx; height: 80rpx;
line-height: 80rpx; line-height: 80rpx;
...@@ -106,14 +127,14 @@ ...@@ -106,14 +127,14 @@
font-size: 36rpx; font-size: 36rpx;
color: #FFFFFF; color: #FFFFFF;
} }
.teamLeaderMakeNote view.active{
background: rgba(211, 207, 207,.9); .teamLeaderMakeNote view.active {
background: rgba(211, 207, 207, .9);
color: #333; 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>
...@@ -121,7 +142,10 @@ ...@@ -121,7 +142,10 @@
<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">
<text>{{ dataList[currentIndex].CurrencyStr }}</text>
<view class="triangle"></view>
</view>
</view> </view>
<view class="teamLeader-c-box row"> <view class="teamLeader-c-box row">
<view class="col"></view> <view class="col"></view>
...@@ -181,7 +205,8 @@ ...@@ -181,7 +205,8 @@
<view class="row items-flex-end"> <view class="row items-flex-end">
<text class="stip">¥</text> <text class="stip">¥</text>
</view> </view>
<text class="num">{{ dataList&&dataList[currentIndex]?dataList[currentIndex].CommissionIncome.toFixed(2):0.00 }}</text> <text
class="num">{{ dataList&&dataList[currentIndex]?dataList[currentIndex].CommissionIncome.toFixed(2):0.00 }}</text>
</view> </view>
</view> </view>
</view> </view>
...@@ -189,8 +214,8 @@ ...@@ -189,8 +214,8 @@
<view class="teamLeaderMakeNote row PX50" <view class="teamLeaderMakeNote row PX50"
:class="[params.IsOperation==0?'justify-between':'justify-center']"> :class="[params.IsOperation==0?'justify-between':'justify-center']">
<view class="text-center" @click="goUrl('/pages/teamLeader/reimbursementInfor')">记一笔</view> <view class="text-center" @click="goUrl('/pages/teamLeader/reimbursementInfor')">记一笔</view>
<view v-if="params.IsOperation==0" class="text-center ML50" <view v-if="params.IsOperation==0" class="text-center ML50" :class="[loading?'active':'']"
:class="[loading?'active':'']" @click="saveData">提交</view> @click="saveData">提交</view>
</view> </view>
</view> </view>
...@@ -198,8 +223,7 @@ ...@@ -198,8 +223,7 @@
<view class="teamLeaderPath column"> <view class="teamLeaderPath column">
<view class="teamLeaderListBox row"> <view class="teamLeaderListBox row">
<template v-for="(item,index) in pathList"> <template v-for="(item,index) in pathList">
<view v-if="index<3" class="teamLeaderList column justify-center" <view v-if="index<3" class="teamLeaderList column justify-center" @click="goUrl(item.path)">
@click="goUrl(item.path)">
<view class="teamLeaderList-top"> <view class="teamLeaderList-top">
<img :src="item.src"> <img :src="item.src">
</view> </view>
...@@ -209,8 +233,7 @@ ...@@ -209,8 +233,7 @@
</view> </view>
<view class="teamLeaderListBox row"> <view class="teamLeaderListBox row">
<template v-for="(item,index) in pathList"> <template v-for="(item,index) in pathList">
<view v-if="index>=3" class="teamLeaderList column justify-center" <view v-if="index>=3" class="teamLeaderList column justify-center" @click="goUrl(item.path)">
@click="goUrl(item.path)">
<view class="teamLeaderList-top"> <view class="teamLeaderList-top">
<img :src="item.src"> <img :src="item.src">
</view> </view>
...@@ -219,18 +242,16 @@ ...@@ -219,18 +242,16 @@
</template> </template>
</view> </view>
</view> </view>
<currencyBottom v-if="currencyVisible" <currencyBottom v-if="currencyVisible" :current="currentId" :currencyList="currencyList" @close="close"
:current="currentId" @change="popupCurrency"></currencyBottom>
:currencyList="currencyList"
@close="close" @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,
...@@ -239,8 +260,7 @@ export default { ...@@ -239,8 +260,7 @@ export default {
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",
...@@ -279,8 +299,8 @@ export default { ...@@ -279,8 +299,8 @@ export default {
], ],
dataList: {}, dataList: {},
loading: false, loading: false,
msg:{ msg: {
TCIDs: '',// 领队id TCIDs: '', // 领队id
}, },
b2b_user_info: {}, b2b_user_info: {},
currencyVisible: false, currencyVisible: false,
...@@ -291,9 +311,9 @@ export default { ...@@ -291,9 +311,9 @@ export default {
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})`
} }
...@@ -309,27 +329,27 @@ export default { ...@@ -309,27 +329,27 @@ export default {
}, },
methods: { methods: {
goUrl(url){ goUrl(url) {
if(url!=''){ if (url != '') {
uni.navigateTo({ uni.navigateTo({
url: `${url}?TCIDs=${this.msg.TCIDs}`, url: `${url}?TCIDs=${this.msg.TCIDs}`,
}) })
}else{ } else {
this.showQRCode = true this.showQRCode = true
} }
}, },
close(){ close() {
this.currencyVisible = false this.currencyVisible = false
this.showQRCode = false this.showQRCode = false
}, },
popupCurrency(value){ popupCurrency(value) {
this.currencyVisible = false this.currencyVisible = false
this.currentId = value this.currentId = value
this.currentIndex = this.dataList.findIndex(item=>item.CurrencyId==value) this.currentIndex = this.dataList.findIndex(item => item.CurrencyId == value)
}, },
saveData(){ saveData() {
if(this.loading) return if (this.loading) return
this.loading = true this.loading = true
uni.showLoading() uni.showLoading()
this.apipost("dmcstatistics_post_SetNewLeaderApplyList_V2", { this.apipost("dmcstatistics_post_SetNewLeaderApplyList_V2", {
...@@ -340,7 +360,7 @@ export default { ...@@ -340,7 +360,7 @@ export default {
TCIDs: this.msg.TCIDs, TCIDs: this.msg.TCIDs,
} }
}, (res) => { }, (res) => {
if(res.resultCode == 1) { if (res.resultCode == 1) {
this.loading = false this.loading = false
uni.hideLoading() uni.hideLoading()
this.getParams() this.getParams()
...@@ -356,7 +376,7 @@ export default { ...@@ -356,7 +376,7 @@ export default {
this.loading = false this.loading = false
}) })
}, },
getParams(){ getParams() {
this.apipost("dmcstatistics_post_GetNewLeaderPayMoneyStatics", this.msg, (res) => { this.apipost("dmcstatistics_post_GetNewLeaderPayMoneyStatics", this.msg, (res) => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.params = res.data; this.params = res.data;
...@@ -378,7 +398,7 @@ export default { ...@@ -378,7 +398,7 @@ export default {
this.dataList = res.data; this.dataList = res.data;
this.currentId = res.data[0].CurrencyId this.currentId = res.data[0].CurrencyId
this.currentIndex = 0 this.currentIndex = 0
for(let i=0;i<res.data.length;i++){ for (let i = 0; i < res.data.length; i++) {
this.currencyList.push({ this.currencyList.push({
name: res.data[i].CurrencyStr, name: res.data[i].CurrencyStr,
id: res.data[i].CurrencyId, id: res.data[i].CurrencyId,
...@@ -396,5 +416,5 @@ export default { ...@@ -396,5 +416,5 @@ export default {
}) })
}, },
} }
} }
</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