Commit 9aab4118 authored by 刘文虎's avatar 刘文虎

成员列表

parent 221d7a38
Pipeline #3534 canceled with stages
...@@ -487,6 +487,34 @@ ...@@ -487,6 +487,34 @@
"disableScroll": true "disableScroll": true
} }
} }
,{
"path" : "project-bill/project-bill",
"style" :
{
"navigationBarTitleText": "项目账单",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
}
,{
"path" : "project-bill/export",
"style" :
{
"navigationBarTitleText": "账单导出",
"enablePullDownRefresh": false
}
}
,{
"path" : "member/member",
"style" :
{
"navigationBarTitleText": "成员列表",
"enablePullDownRefresh": false
}
}
] ]
} }
], ],
......
<template>
<view class="update-log-item" :class="{active:checked}">
<view class="left">
<view class="left-icon">
<text>{{resetName(detail.title)}}</text>
</view>
<view class="left-content">
<text class="left-content-name">{{resetName(detail.title)}}</text>
<text class="left-content-money">¥{{detail.createTime}}</text>
</view>
</view>
<view class="right">
<u-icon name="edit-pen"></u-icon>
</view>
</view>
</template>
<script>
export default {
props:{
detail:{
type:Object,
default:()=>{}
},
checked:{
type:Boolean,
default:false
}
},
data() {
return {};
},
methods:{
resetName(name) {
return name.slice(-2);
},
}
};
</script>
<style lang="scss" scoped>
.update-log-item {
padding: 24rpx;
background-color: #ffffff;
margin-bottom: 24rpx;
border-radius: 16rpx;
color: #8d8d8d;
display: flex;
.left {
}
.right {
padding: 32rpx 0;
line-height: 40rpx;
font-size: 28rpx;
}
}
.active{
color: #333333;
}
</style>
<template>
<view class="update-log">
<view class="content-view">
<scroll-view
scroll-y
style="height: 100%;width: 100%;"
@scrolltolower="reachBottom"
scroll-anchoring
refresher-enabled="true"
:refresher-triggered="triggered"
:refresher-threshold="100"
refresher-background="#F6F7FA"
@refresherrefresh="onRefresh"
@refresherrestore="onRestore"
enable-back-to-top
>
<view class="scroll-view">
<NoData v-if="noData" :text="noDataText" customStyle="margin-top: 0rpx;" :imageName="noDataImage" />
<view v-else>
<view class="bill-list"><member-item v-for="(item, index) in list" :key="index" :detail="item" :checked="index === 0"></member-item></view>
<view class="load-more-view" v-show="(current == 1 && loaded) || current > 1"><u-loadmore :status="loadStatus" bgColor="#F6F7FA"></u-loadmore></view>
</view>
<view class="loading-view" v-if="!loaded && !freshing"><u-loading mode="flower"></u-loading></view>
</view>
</scroll-view>
</view>
<view class="submit-button-box">
<bottom-buttons
showCancel
cancelText="添加过往合作"
:customCancel="customCancel"
confirmText="+ 创建新成员"
@cancel="handleClickPartner"
@confirm="handleClickSure"
></bottom-buttons>
</view>
</view>
</template>
<script>
import NoData from '@/components/no-data';
import BottomButtons from '@/components/common/bottom-buttons.vue';
import MemberItem from './components/member-item.vue';
import { getList, markLog } from '@/api/mine/update-log.js';
export default {
components: {
NoData,
MemberItem,
BottomButtons
},
data() {
return {
list: [],
loaded: false,
current: 1,
size: 10,
loadStatus: 'loading',
triggered: true,
freshing: false,
noDataText: '当前暂无消息内容',
noDataImage: 'bill/wuzhangdanneirong@3x.png',
customCancel: {
color: '#02A074',
background: '#ffffff',
height: '104rpx',
width: '332rpx'
},
};
},
computed: {
noData() {
return (this.list || []).length == 0 && this.loaded;
}
},
mounted() {
this.reloadList();
this.freshing = false;
},
methods: {
reloadList() {
this.current = 1;
this.loadStatus = 'loading';
this.getList();
},
async getList() {
if (this.current == 1) {
this.list = [];
this.loaded = false;
}
try {
let params = {
current: this.current,
size: this.size,
};
let res = await getList(params);
let { records, total } = res.data;
if (records) {
this.list.push(...records);
// 更新底部加载状态
this.loadStatus = total > this.list.length ? 'loadmore' : 'nomore';
}
setTimeout(()=> {
this.$nextTick(() => {
if (this.freshing) {
this.triggered = false;
this.freshing = false;
}
});
}, 500)
this.mark()
} catch (e) {
//TODO handle the exception
this.loadStatus='loadmore'
console.log('error', e);
this.$nextTick(() => {
if (this.freshing) {
this.triggered = false;
this.freshing = false;
}
});
}
this.loaded = true;
},
onRefresh() {
if (this.freshing) return;
this.freshing = true;
this.reloadList();
},
onRestore() {
this.triggered = 'restore'; // 需要重置
},
// 滚动底部
reachBottom(e) {
this.current += 1;
if (this.loadStatus != 'loadmore') return;
this.loadStatus == 'loading';
this.getList();
},
async mark(){
try{
await markLog()
}catch(e){
console.log(e)
//TODO handle the exception
}
},
handleClickPartner(){
},
handleClickSure(){
},
}
};
</script>
<style lang="scss" scoped>
.update-log {
padding: 32rpx 24rpx;
width: 100%;
height: 100%;
padding-bottom: 144rpx;
.submit-button-box {
width: 100%;
position: fixed;
z-index: 10;
bottom: 0;
left: 0;
padding: 0 24rpx;
background-color: #f6f7fa;
}
.content-view {
width: 100%;
height: 100%;
overflow: hidden;
.scroll-view {
width: 100%;
height: 100%;
}
.load-more-view {
margin-top: 24rpx;
padding-bottom: 44rpx;
}
.loading-view {
width: 100%;
background-color: transparent;
display: flex;
align-items: center;
justify-content: center;
top: 50%;
left: 0;
position: fixed;
}
}
}
</style>
<template>
<view class="debit-detail" @click="toBill">
<view class="content">
<view class="content-item">
<text class="content-item-label">客户名称:</text>
<text class="content-item-value">{{detail.customerName}}</text>
</view>
<view class="content-item">
<text class="content-item-label">联系电话:</text>
<text class="content-item-value">{{detail.customerPhone}}</text>
</view>
<view class="line">
</view>
</view>
<view class="debit-detail-right">
<view class="debt" v-if="current===0||showDebtAmount">
<view class="content-item debt-status">{{showDebtAmount?'欠款':'未结清'}}</view>
<view class="content-item debt-money">
<text>¥</text>
<text>{{ detail.debtAmount }}</text>
</view>
</view>
<view class="finish" v-else>账单已结清</view>
</view>
</view>
</template>
<script>
export default {
props: {
detail: {
type: Object,
default: () => {}
},
current: {
type: Number,
default: 0
},
},
computed:{
showDebtAmount(){
let debtAmount=this.detail.debtAmount
if(!debtAmount){
return false
}
return parseFloat(debtAmount)>0
}
},
data() {
return {};
},
methods:{
toBill(){
this.$u.route({
url: '/pages/maintain-bill/index',
type: 'navigateTo',
params: {
customerId:this.detail.customerId,
onlyDebt:1,
}
});
// this.$Router.push({
// path:"/pages/maintain-bill/index",
// query:{
// customerId:this.detail.customerId,
// onlyDebt:1,
// }
// })
}
}
};
</script>
<style lang="scss" scoped>
.debit-detail {
height: 152upx;
background: #FFFFFF;
border-radius: 16upx;
padding: 24upx;
display: flex;
align-items: center;
margin-bottom: 24upx;
.content {
width: 420upx;
position: relative;
overflow: hidden;
&-item {
font-size: 28upx;
line-height: 28upx;
&:first-child{
margin-bottom: 32upx;
}
&-label {
color: #8D8D8D;
}
&-value {
font-weight: bold;
}
}
.line{
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
width: 2upx;
height: 80upx;
background: #F6F7FA;
}
}
&-right {
flex: 1;
.finish {
display: flex;
align-items: center;
justify-content: center;
color: $default-color;
}
.debt {
text-align: center;
&-status {
color: #8D8D8D;
}
&-money {
color: #FC524D;
}
}
}
}
</style>
<template>
<view class="export">
<view class="pop-export-bill">
<view class="content-view">
<view class="content-view-time">
<view class="label-view">账单时间</view>
<view class="tabs-view" v-if="showAll">
<view
v-for="(item, index) in tabs"
:key="index"
:class="['item-view', { select: currentIndex == index }]"
hover-class="u-hover-class"
@click="handleChange(index)"
>
{{ item }}
</view>
</view>
</view>
<view :class="['date-view', { show: currentIndex == 1 }]">
<view class="label-view">选择时间</view>
<view class="value-view">
<DateRangePicker ref="date-range-picker" v-model="daterange" type="daterange" @change="handleClickChange">
<view class="select-view" hover-class="u-hover-class">
<text>{{ dateString }}</text>
<u-icon name="calendar" class="select-view-icon"></u-icon>
</view>
</DateRangePicker>
</view>
</view>
<view class="user-view">
<view class="">
成员
</view>
<view class="placeholder" @click="openSelect">
<text class="value-text" v-if="form.userName">{{ form.userName }}</text>
<text v-else>选择项目</text>
<u-icon name="arrow-right" class="arrow"></u-icon>
</view>
</view>
</view>
<view class="buttons-view">
<view class="right-view">
<u-button :custom-style="customConFirm" @click="handleClickConfirm" :loading="loading">
<view class="confirm-view">{{ confirmText }}</view>
</u-button>
</view>
</view>
</view>
<file-list ref="file-list" fileName="账单"></file-list>
</view>
</template>
<script>
import DateRangePicker from '@/components/date-range-picker/uni-datetime-picker.vue';
import FileList from '@/pages/mine/import-export/components/file-list.vue';
import { exportBill } from '@/api/bill/index.js';
import { repairExport } from '@/api/maintain/index.js';
import { downLoad, downLoadFile, saveFile } from '@/utils/download.js';
import { mapGetters } from 'vuex';
export default {
components: {
DateRangePicker,
FileList
},
data() {
return {
type: 'bill',
confirmText: '导出',
showAll: true,
daterange: [],
currentIndex: 1,
loading: false
};
},
computed: {
...mapGetters(['platform']),
tabs() {
return ['全部', '自定义'];
},
customConFirm() {
return {
color: 'transparent',
'background-color': this.isError ? '#FC524D' : '#02A074',
height: '96rpx'
};
},
dateString() {
return this.daterange.length > 0 && this.daterange[0] && this.daterange[1] ? `${this.daterange[0]} 至 ${this.daterange[1]}` : '';
}
},
onLoad(options) {
if (options && options.type) {
if (options.type === 'maintain') {
uni.setNavigationBarTitle({
title: '服务帐单导出'
});
}
this.type = options.type;
}
},
onReady() {
this.initDate();
},
methods: {
openSelect(){
},
initDate() {
var endDay = this.$u.timeFormat(new Date().getTime(), 'yyyy-mm-dd');
var date = this.$u.timeFormat(new Date().getTime(), 'yyyy/mm');
var newDay = this.$u.timeFormat(new Date(date + '/01').getTime(), 'yyyy-mm-dd');
this.daterange = [newDay, endDay];
},
beforeDownload(range) {
console.log(range);
let startTime = '';
let endTime = '';
if (range) {
startTime = range[0] + ' 00:00:00';
endTime = range[1] + ' 23:59:59';
}
this.downloadExcel({ startTime, endTime });
// 导出
},
async downloadExcel(date) {
console.log('downloadExcel');
uni.showLoading({
mask: true,
title: '下载中'
});
try {
let { startTime, endTime } = date;
let params = {
start: startTime,
end: endTime
};
console.log(params);
let res = null;
const globalUrl = process.uniEnv || {};
let apiUrl = globalUrl.apiUrl;
let url = '';
if (this.platform === '4') {
if (this.type === 'maintain') {
// 维修账单
url = apiUrl + '/rest/repair/export';
} else {
// 日常账单
url = apiUrl + '/rest/bookRecord/export';
}
res = await downLoadFile(url);
console.log(res);
} else {
if (this.type === 'maintain') {
// 维修账单
res = await repairExport(params);
} else {
// 日常账单
res = await exportBill(params);
}
}
this.saveFile(res);
} catch (e) {
this.showToast('下载错误');
this.stopLoading();
console.log('downloadExcel_error', e);
//TODO handle the exception
}
uni.hideLoading();
},
async saveFile(file) {
console.log('saveFile');
try {
let res = null;
if (this.platform === '4') {
await saveFile(file.tempFilePath);
this.refreshList();
} else {
await downLoad(file);
}
this.stopLoading();
} catch (e) {
uni.hideLoading();
this.stopLoading();
console.log('saveFile_error', e);
//TODO handle the exception
}
},
refreshList() {
this.$refs['file-list'].getList();
},
handleChange(index) {
this.currentIndex = index;
},
handleClickChange(range) {
this.daterange = range;
},
changeVisibleValue(val) {
this.show = val;
},
handleClickConfirm() {
// this.changeVisibleValue(false)
this.loading = true;
// this.$emit('confirm', this.currentIndex == 0 ? null : this.daterange);
this.beforeDownload(this.currentIndex == 0 ? null : this.daterange);
},
handleClose() {
this.changeVisibleValue(false);
},
stopLoading() {
this.loading = false;
}
}
};
</script>
<style lang="scss" scoped>
.export {
padding: 32rpx 24rpx;
.pop-export-bill {
text-align: center;
.title-view {
color: #333333;
font-weight: bold;
font-size: 40rpx;
margin: 32rpx 0 24rpx 0;
}
.user-view {
border-top: 1px solid #f6f7fa;
padding: 32rpx 0;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
.placeholder {
color: #cccccc;
}
.value-text{
color: #333333;
}
}
.content-view {
background-color: #ffffff;
padding: 0 24rpx;
color: #333333;
font-size: 32rpx;
// min-height: 320rpx;
line-height: 54rpx;
font-size: 28rpx;
border-radius: 16rpx;
margin-bottom: 104rpx;
.content-view-time {
display: flex;
justify-content: space-between;
align-items: center;
padding: 40rpx 0;
}
.label-view {
text-align: left;
}
.tabs-view {
display: flex;
align-items: center;
.item-view {
height: 80rpx;
width: 202rpx;
line-height: 80rpx;
font-weight: bold;
color: #8d8d8d;
text-align: center;
background-color: #f6f7fa;
border-radius: 16rpx;
margin-right: 24rpx;
&:last-child {
margin-right: 0;
}
&.select {
color: #ffffff;
text-align: center;
background-color: #02a074;
}
}
}
.date-view {
display: flex;
justify-content: space-between;
align-items: center;
overflow: hidden;
height: 0;
&.show {
border-top: 1px solid #f6f7fa;
// height: 54rpx;
height: 110rpx;
padding: 28rpx 0;
}
.label-view {
flex-shrink: 0;
width: 120rpx;
}
.value-view {
.select-view {
display: flex;
justify-content: flex-end;
align-items: center;
font-weight: bold;
&-icon {
margin-bottom: 4rpx;
margin-left: 16upx;
font-size: 32upx;
font-weight: normal;
color: $default-color;
}
}
}
}
}
.buttons-view {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 32rpx;
.right-view {
width: 100%;
.confirm-view {
color: #ffffff;
height: 96rpx;
line-height: 96rpx;
font-weight: bold;
font-size: 32rpx;
}
}
}
}
}
</style>
<template>
<!-- 查欠账 -->
<view class="debit-note">
<NavbarRight backTextBold backText="项目账单" text="导出账单" :image="rightImage" @click="handlClickRight" />
<view class="search-wrap">
<view class="outside-view">
<view class="select-view" hover-class="u-hover-class" @click="$u.throttle(handleSelectFilter, 500)">
<view class="date-view">{{ form.user || '全部成员' }}</view>
<u-icon name="arrow-down-fill" color="#8D8D8D" size="24"></u-icon>
</view>
</view>
<view class="outside-view">
<DateRangePicker ref="date-range-picker" v-model="daterange" :canReset="true" type="daterange" @change="handleClickChange">
<view class="select-view" hover-class="u-hover-class">
<view class="date-view">{{ dateString || '全部时段' }}</view>
<u-icon name="arrow-down-fill" color="#8D8D8D" size="24"></u-icon>
</view>
</DateRangePicker>
</view>
</view>
<view class="tabs-box">
<u-tabs-swiper
ref="uTabs"
bg-color="#f6f7fa"
font-size="28"
bar-width="32"
bar-height="4"
height="60"
inactive-color="#8D8D8D"
active-color="#02A074"
name="title"
:list="tabs"
:current="current"
@change="tabsChange"
:is-scroll="false"
swiperWidth="750"
></u-tabs-swiper>
</view>
<view class="swiper-box">
<swiper :current="swiperCurrent" @transition="transition" @animationfinish="animationfinish" style="height:100%">
<swiper-item class="swiper-item" v-for="(listData, index) in list" :key="index">
<scroll-view
scroll-y
scroll-anchoring
style="height: 100%;width: 100%;"
@scrolltolower="onreachBottom"
@refresherrefresh="onRefresh"
@refresherrestore="onRestore"
enable-back-to-top
refresher-enabled
:refresher-triggered="getCurrentPage(index).triggered"
:refresher-threshold="100"
>
<view class="scroll-view">
<NoData v-if="noData(index)" :text="noDataText" customStyle="margin-top: 0rpx;" :imageName="noDataImage" />
<template v-else>
<view class="container"><bill-detail v-for="item in listData" :key="item.customerId" :detail="item" :current="current"></bill-detail></view>
<view class="loading-view" v-if="!getCurrentPage(index).loaded && !getCurrentPage(index).freshing"><u-loading mode="flower"></u-loading></view>
<view v-show="(getCurrentPage(index).pageNumber === 1 && getCurrentPage(index).loaded) || getCurrentPage(index).pageNumber > 1">
<u-loadmore :status="getCurrentPage(index).loadStatus" />
</view>
</template>
</view>
</scroll-view>
</swiper-item>
</swiper>
</view>
</view>
</template>
<script>
import NavbarRight from '@/components/navbar-right';
import DateRangePicker from '@/components/date-range-picker/uni-datetime-picker.vue';
import NoData from '@/components/no-data';
import BillDetail from './components/bill-detail.vue';
import { baseUrl, billBaseUrl } from '@/utils/config.js';
import { projectBillPages, projectBillTabs } from '@/utils/options/workpoint/index.js';
import { getList } from '@/api/bill/debit-note.js';
export default {
components: {
NavbarRight,
DateRangePicker,
NoData,
BillDetail
},
data() {
return {
rightImage: baseUrl + 'daochuzhangdan@3x.png',
daterange: [],
form: {
start: '',
end: '',
user: ''
},
list: [[], [], [], []],
current: 0, // tabs组件的current值,表示当前活动的tab选项
swiperCurrent: 0, // swiper组件的current值,表示当前那个swiper-item是活动的
tabs: projectBillTabs,
pages: projectBillPages,
activeItemStyle: {
color: '#ff286d'
},
noDataText: '当前暂无欠款信息',
noDataImage: 'bill/wuqiankuanxinxi@3x.png'
};
},
computed: {
currentTab() {
return this.tabs[this.current];
},
currentPage() {
return this.pages[this.current];
},
dateString() {
return this.daterange.length > 0 && this.daterange[0] && this.daterange[1] ? `${this.daterange[0]} - ${this.daterange[1]}` : '';
}
},
onLoad(options) {
this.init();
},
methods: {
handleSelectFilter() {
},
handleClickChange(){
this.daterange = range;
this.onRefresh();
},
handlClickRight() {
uni.navigateTo({
url:'/pages/workpoint/project-bill/export'
})
},
changeSearch() {
this.onRefresh();
},
noData(index) {
return this.list[index].length == 0 && this.getCurrentPage(index).loaded;
},
getCurrentPage(index) {
return this.pages[index];
},
init() {
this.onRefresh();
},
async getData() {
if (this.currentPage.pageNumber === 1) {
this.currentPage.loaded = false;
}
var postData = {
keyword: this.form.keyword,
debt: this.currentTab.name,
size: this.currentPage.size,
current: this.currentPage.pageNumber
};
try {
let res = await getList(postData);
let { records, total } = res.data;
if (this.currentPage.pageNumber === 1) {
// 下拉刷新或切换到新tab,清空对应数组
this.list[this.current] = [];
}
if (records && records.length) {
// records.forEach(item => {
// item.stature = RandomNumBoth(145, 180);
// item.cityName = RandomCity();
// });
this.list[this.current].push(...records);
// 更新底部加载状态
}
// 更新底部加载状态
this.currentPage.loadStatus = total > this.list[this.current].length ? 'loadmore' : 'nomore';
} catch (e) {
console.log('error', e);
}
this.currentPage.loaded = true;
this.$nextTick(() => {
this.currentPage.triggered = false;
this.currentPage.freshing = false;
});
},
// tabs通知swiper切换
tabsChange(index) {
this.swiperCurrent = index;
console.log('-------tabsChange------');
// this.getWalletRecord(); // 与swiper change重复,tab变化无需再次请求数据
},
// swiper-item左右移动,通知tabs的滑块跟随移动
transition(e) {
let dx = e.detail.dx;
this.$refs.uTabs.setDx(dx);
},
// 由于swiper的内部机制问题,快速切换swiper不会触发dx的连续变化,需要在结束时重置状态
// swiper滑动结束,分别设置tabs和swiper的状态
animationfinish(e) {
let current = e.detail.current;
this.$refs.uTabs.setFinishCurrent(current);
this.swiperCurrent = current;
this.current = current;
console.log('-------animationfinish------');
if (this.currentPage.loaded === false) {
this.getData();
}
},
onRefresh() {
if (this.currentPage.freshing) return;
this.currentPage.triggered = true;
this.currentPage.freshing = true;
this.currentPage.pageNumber = 1;
this.getData();
},
onRestore() {
// this.currentPage.triggered = 'restore'; // 需要重置
},
onreachBottom(e) {
//上拉触底函数
if (this.currentPage.loadStatus === 'loadmore') {
//此处判断,上锁,防止重复请求
this.currentPage.loadStatus == 'loading';
this.currentPage.pageNumber += 1;
this.getData();
}
}
}
};
</script>
<style lang="scss" scoped>
.debit-note {
padding: 24upx;
height: 100vh;
display: flex;
flex-direction: column;
.search-wrap {
width: 100%;
display: flex;
align-items: center;
.outside-view{
display: flex;
padding: 20rpx 24rpx;
border-radius: 12rpx;
background: #ffffff;
margin-right: 24rpx;
}
.select-view {
display: flex;
align-items: center;
font-size: 24rpx;
font-weight: bold;
.date-view {
margin-right: 16rpx;
}
}
}
.tabs-box {
margin: 32upx 0;
}
.swiper-box {
flex: 1;
width: 100%;
}
.swiper-item {
height: 100%;
}
.container {
padding: 20upx 0;
}
.loading-view {
width: 100%;
background-color: transparent;
display: flex;
align-items: center;
justify-content: center;
top: 50%;
left: 0;
position: fixed;
}
.scroll-view {
width: 100%;
height: 100%;
}
}
</style>
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<view class="right-view"> <view class="right-view">
<view class="placeholder" @click="openSelect"> <view class="placeholder" @click="openSelect">
<text class="value-text" v-if="form.templateName">{{ form.templateName }}</text> <text class="value-text" v-if="form.templateName">{{ form.templateName }}</text>
<text v-else>{{ form.templateName }}</text> <text v-else>选择项目</text>
<u-icon name="arrow-right" class="arrow"></u-icon> <u-icon name="arrow-right" class="arrow"></u-icon>
</view> </view>
</view> </view>
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
:loading="buttonLoading" :loading="buttonLoading"
cancelText="保存并再记一笔" cancelText="保存并再记一笔"
:customCancel="customCancel" :customCancel="customCancel"
@cancel="handleClickDelete" @cancel="handleClickAgain"
@confirm="handleClickSure" @confirm="handleClickSure"
></bottom-buttons> ></bottom-buttons>
</view> </view>
...@@ -311,7 +311,6 @@ export default { ...@@ -311,7 +311,6 @@ export default {
'font-size': '32rpx' 'font-size': '32rpx'
}, },
customCancel: { customCancel: {
border: 'none',
color: '#02A074', color: '#02A074',
background: '#ffffff', background: '#ffffff',
height: '104rpx', height: '104rpx',
...@@ -428,7 +427,7 @@ export default { ...@@ -428,7 +427,7 @@ export default {
}, },
toSetting() { toSetting() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/mine/payments-setting/payments-setting' url: '/pages/workpoint/member/member'
}); });
uni.$on(this.notification, res => { uni.$on(this.notification, res => {
this.getBillTypeOptions(); this.getBillTypeOptions();
...@@ -512,7 +511,7 @@ export default { ...@@ -512,7 +511,7 @@ export default {
handleListChange(lists) { handleListChange(lists) {
this.form.attach = lists; this.form.attach = lists;
}, },
handleClickSure() { handleClickSure() {
if (this.uploading) { if (this.uploading) {
this.$refs.uToast.show({ this.$refs.uToast.show({
...@@ -579,6 +578,9 @@ export default { ...@@ -579,6 +578,9 @@ export default {
billId: this.billId billId: this.billId
} }
}); });
},
handleClickAgain(){
}, },
handleClickFocus() { handleClickFocus() {
if (Number(this.form.actualAmount) == 0) { if (Number(this.form.actualAmount) == 0) {
......
...@@ -8,6 +8,15 @@ export const tabOptions = [{ ...@@ -8,6 +8,15 @@ export const tabOptions = [{
}, },
] ]
export const loanTabOptions = [{
value: 1,
label: "借支"
},
{
value: 2,
label: "结算"
},
]
export const workTypeOptions = [{ export const workTypeOptions = [{
value: "100", value: "100",
...@@ -31,4 +40,54 @@ export const overtimeTypeOptions = [{ ...@@ -31,4 +40,54 @@ export const overtimeTypeOptions = [{
value: "custom", value: "custom",
label: "自定义" label: "自定义"
}, },
]
export const projectBillPages = [{
pageNumber: 0,
size: 10,
loaded: false,
loadStatus: 'loadmore',
freshing: false,
triggered: false,
},{
pageNumber: 0,
size: 10,
loaded: false,
loadStatus: 'loadmore',
freshing: false,
triggered: false,
},
{
pageNumber: 0,
size: 10,
loaded: false,
loadStatus: 'loadmore',
freshing: false,
triggered: false,
},
{
pageNumber: 0,
size: 10,
loaded: false,
loadStatus: 'loadmore',
freshing: false,
triggered: false,
},
]
export const projectBillTabs = [{
title: '全部',
name: ''
},{
title: '记工',
name: true
},
{
title: '借支',
name: false
},
{
title: '结算',
name: false
},
] ]
\ 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