|
@@ -4,13 +4,10 @@
|
|
|
<view class='wrap' v-for="(item, index) in tableData" :key="index">
|
|
|
<view class="" style="display: flex;">
|
|
|
<view class="c-row top_type_left">
|
|
|
- <!-- {{index}} -------- -->
|
|
|
- <view class="title">{{item.purpose}}--
|
|
|
- <view @click="requestFunds(1)" style="margin-left: 65px;margin-top: -19px;"
|
|
|
- v-if="item.expensesType == '1'">收款</view>
|
|
|
- <view @click="requestFunds(2)" style="margin-left: 65px;margin-top: -19px;"
|
|
|
- v-else-if="item.expensesType == '2'">请款
|
|
|
- </view>
|
|
|
+ <view class="title">{{item.purpose}}—{{item.expensesType=='1'?'收款':'请款'}}
|
|
|
+ <!-- <view @click="requestFunds(1)" v-if="item.expensesType == '1'">收款</view>
|
|
|
+ <view @click="requestFunds(2)" v-else-if="item.expensesType == '2'">请款
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="top_type_right">
|
|
@@ -53,8 +50,8 @@
|
|
|
|
|
|
<u-toast ref="uToast" />
|
|
|
<view class="bottom-btn">
|
|
|
- <u-button type="primary" class="submit" hover-class="none" @click="requestFunds(1)">收款</u-button>
|
|
|
- <u-button type="primary" class="submit" hover-class="none" @click="requestFunds(2)">请款</u-button>
|
|
|
+ <view class="btn" @click="requestFunds(1)">收款</view>
|
|
|
+ <view class="btn" @click="requestFunds(2)">请款</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -94,12 +91,17 @@
|
|
|
},
|
|
|
methods: {
|
|
|
getList() {
|
|
|
+ uni.showLoading({
|
|
|
+ title: '加载中',
|
|
|
+ mask: true
|
|
|
+ })
|
|
|
this.$api.doRequest('get', '/expenseInfo/selectInfo', {
|
|
|
pageSize: this.pageSize,
|
|
|
currentPage: this.currentPage,
|
|
|
compId: uni.getStorageSync('pcUserInfo').compId,
|
|
|
}).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
+ uni.hideLoading()
|
|
|
if (res.data.data.records.length > 0) {
|
|
|
this.isLoadMore = false
|
|
|
this.loadStatus = 'loading'
|
|
@@ -214,13 +216,17 @@
|
|
|
|
|
|
.wenzi1 {
|
|
|
margin-right: 40rpx;
|
|
|
- margin-top: 10rpx;
|
|
|
- height: 50rpx;
|
|
|
- width: 100rpx;
|
|
|
- border-radius: 30rpx;
|
|
|
+ /* margin-top: 10rpx; */
|
|
|
+ /* height: 50rpx;
|
|
|
+ width: 100rpx; */
|
|
|
+ border-radius: 50rpx;
|
|
|
background-color: #ffffff;
|
|
|
- text-align: center;
|
|
|
+ /* text-align: center; */
|
|
|
border: 2rpx solid #AFB3BF;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-content: center;
|
|
|
+ padding: 10rpx 20rpx;
|
|
|
}
|
|
|
|
|
|
.audit {
|
|
@@ -268,4 +274,18 @@
|
|
|
.top_type_left {
|
|
|
width: 50%;
|
|
|
}
|
|
|
+
|
|
|
+ .bottom-btn {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+
|
|
|
+ .btn {
|
|
|
+ border-radius: 50rpx;
|
|
|
+ padding: 20rpx 120rpx;
|
|
|
+ background: #22C572;
|
|
|
+ color: #fff;
|
|
|
+ font-size: 32rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|