|
@@ -35,9 +35,11 @@
|
|
|
<view class="c-row1">
|
|
|
<view class="title1"> {{item.amountMoney}} 元</view>
|
|
|
</view>
|
|
|
- <view style="display: flex;justify-content: flex-end;margin-top: 30rpx;">
|
|
|
+ <view style="display: flex;justify-content: flex-end;margin-top: 30rpx;flex-wrap: wrap;">
|
|
|
<!-- v-if="item.status == '已驳回'" -->
|
|
|
<!-- v-if="item.status == '已驳回'" -->
|
|
|
+ <!-- <view class="wenzi1 audit" v-if="!item.approveStatus && item.status =='已驳回' " @click="rejecttext(item)">驳回原因</view> -->
|
|
|
+ <view class="wenzi1 audit"v-if="item.approveStatus && item.approveStatus !='发起人撤回' " @click="withdraw(item)">撤回</view>
|
|
|
<view class="wenzi1 audit" @click="deleExpense(item)"
|
|
|
v-if="item.status=='已驳回'">删除</view>
|
|
|
<view class="wenzi1 audit" @click="requestFunds(3,item)"
|
|
@@ -50,7 +52,11 @@
|
|
|
<uni-load-more :status="loadStatus"></uni-load-more>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+ <u-modal v-model="show" title="驳回原因">
|
|
|
+ <view class="slot-content">
|
|
|
+ <rich-text :nodes="rejectcontent"></rich-text>
|
|
|
+ </view>
|
|
|
+ </u-modal>
|
|
|
<u-toast ref="uToast" />
|
|
|
<view class="bottom-btn">
|
|
|
<view class="btn" @click="requestFunds(1)">收款</view>
|
|
@@ -68,11 +74,14 @@
|
|
|
tableData: [],
|
|
|
reType: '',
|
|
|
flag: '',
|
|
|
+ rejectcontent:'',
|
|
|
+ show:false,
|
|
|
isLoadMore: false, //是否加载中
|
|
|
loadStatus: 'loading', //加载样式:more-加载前样式,loading-加载中样式,nomore-没有数据样式
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
|
+ this.tableData=[]
|
|
|
this.getList()
|
|
|
},
|
|
|
//下拉刷新
|
|
@@ -93,6 +102,42 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ rejecttext(val){
|
|
|
+ this.$api.doRequest('get', '/commonUser/getReason', {
|
|
|
+ id: val.id,
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ this.show=true
|
|
|
+ this.rejectcontent=res.data.data
|
|
|
+ that.getList()
|
|
|
+ } else {
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
+ withdraw(val){
|
|
|
+ var that = this
|
|
|
+ uni.showModal({
|
|
|
+ content: "撤回成功后,可再次提交,确定撤回吗?",
|
|
|
+ showCancel: true,
|
|
|
+ confirmText: '确定',
|
|
|
+ success: function(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ that.$api.doRequest('post', '/newWorkflow/api/stopInstance', {
|
|
|
+ businessKey: val.id,
|
|
|
+ workflowId: val.workflowId,
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ that.$api.msg('撤回成功')
|
|
|
+ that.getList()
|
|
|
+ } else {
|
|
|
+ that.$api.msg('撤回成功')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
gofujian(val){
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/reimbursement/addaccessory?id=' + val.id + "&expensesType=" + val
|
|
@@ -225,7 +270,7 @@
|
|
|
}
|
|
|
|
|
|
.wenzi1 {
|
|
|
- margin-right: 40rpx;
|
|
|
+ margin:10rpx 40rpx 10rpx 0;
|
|
|
/* margin-top: 10rpx; */
|
|
|
/* height: 50rpx;
|
|
|
width: 100rpx; */
|
|
@@ -298,4 +343,7 @@
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
}
|
|
|
+ .slot-content{
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
</style>
|