|
|
@@ -6,66 +6,77 @@
|
|
|
</uni-search-bar>
|
|
|
</view>
|
|
|
<z-paging ref="paging" v-model="dataList" @query="getList" :fixed="false" :auto-show-back-to-top="true"
|
|
|
- :empty-view-text="'暂无数据'" :hide-empty-view="false" :auto-show-system-loading="true" class="z-paging-container">
|
|
|
- <view class="list">
|
|
|
- <view class="tab-bar-item" v-for="(item, index) in dataList" :key="index" @click="inEdit(item)">
|
|
|
- <view class="list-item">
|
|
|
- <view style="font-weight: 800;">
|
|
|
- {{item.claimNo}}
|
|
|
+ :empty-view-text="'暂无数据'" :hide-empty-view="false" :auto-show-system-loading="true"
|
|
|
+ class="z-paging-container">
|
|
|
+ <view class="list" v-for="(item, index) in dataList" :key="index">
|
|
|
+ <uni-swipe-action style="margin-top: 30rpx;">
|
|
|
+ <uni-swipe-action-item>
|
|
|
+ <view class="tab-bar-item" @click="inEdit(item)">
|
|
|
+ <view class="list-item">
|
|
|
+ <view style="font-weight: 800;">
|
|
|
+ {{item.claimNo}}
|
|
|
+ </view>
|
|
|
+ <view style="color: #B5B4B4;">
|
|
|
+ {{item.submitTime}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list-item">
|
|
|
+ <view style="font-weight: 800;color: #03803B;">
|
|
|
+ {{item.vehicleNumber||'暂无车牌'}}
|
|
|
+ </view>
|
|
|
+ <view class="">
|
|
|
+ 轮胎规格: {{item.tyreSpecs||'-'}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list-item-end">
|
|
|
+ <view class="">
|
|
|
+ 轮胎:{{item.tireQuantity||0}}条
|
|
|
+ </view>
|
|
|
+ <view style="display: flex;align-items: center;color: #03803B;">
|
|
|
+ <image style="width: 32rpx;height: 32rpx;margin-right: 18rpx;"
|
|
|
+ src="@/static/images/home/insurance/ap.png" />
|
|
|
+ <text v-if="item.auditStatus==0" style="color:#e6a23c">
|
|
|
+ 待审核
|
|
|
+ </text>
|
|
|
+ <text v-if="item.auditStatus==1" style="color:#409EFF">
|
|
|
+ 审核中
|
|
|
+ </text>
|
|
|
+ <text v-if="item.auditStatus==2" style="color:#67c23a">
|
|
|
+ 已通过
|
|
|
+ </text>
|
|
|
+ <text v-if="item.auditStatus==3" style="color:#f56c6c">
|
|
|
+ 已拒绝
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view style="color: #B5B4B4;">
|
|
|
- {{item.submitTime}}
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="list-item">
|
|
|
- <view style="font-weight: 800;color: #03803B;">
|
|
|
- {{item.vehicleNumber||'暂无车牌'}}
|
|
|
- </view>
|
|
|
- <view class="">
|
|
|
- 轮胎规格: {{item.tyreSpecs||'-'}}
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="list-item-end">
|
|
|
- <view class="">
|
|
|
- 轮胎:{{item.tireQuantity||0}}条
|
|
|
- </view>
|
|
|
- <view style="display: flex;align-items: center;color: #03803B;">
|
|
|
- <image style="width: 32rpx;height: 32rpx;margin-right: 18rpx;"
|
|
|
- src="@/static/images/home/insurance/ap.png" />
|
|
|
- <text v-if="item.auditStatus==0" style="color:#e6a23c">
|
|
|
- 待审核
|
|
|
- </text>
|
|
|
- <text v-if="item.auditStatus==1" style="color:#409EFF">
|
|
|
- 审核中
|
|
|
- </text>
|
|
|
- <text v-if="item.auditStatus==2" style="color:#67c23a">
|
|
|
- 已通过
|
|
|
- </text>
|
|
|
- <text v-if="item.auditStatus==3" style="color:#f56c6c">
|
|
|
- 已拒绝
|
|
|
- </text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+
|
|
|
+ <template v-slot:right>
|
|
|
+ <view @click.stop="onClick(item)"
|
|
|
+ style="width: 120rpx;background-color:#e43d33;display: flex;justify-content: center;align-items: center;color: #fff;">
|
|
|
+ <text>删除</text>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ </uni-swipe-action-item>
|
|
|
+ </uni-swipe-action>
|
|
|
</view>
|
|
|
</z-paging>
|
|
|
-
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import {
|
|
|
- getList
|
|
|
+ getList,
|
|
|
+ revokeApproval
|
|
|
} from '@/api/home/claim.js'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- searchValue:"",
|
|
|
+ searchValue: "",
|
|
|
dataList: [],
|
|
|
}
|
|
|
},
|
|
|
- onLoad() {
|
|
|
- },
|
|
|
+ onLoad() {},
|
|
|
onShow() {
|
|
|
if (uni.getStorageSync('isUpdate')) {
|
|
|
this.$nextTick(() => {
|
|
|
@@ -83,6 +94,43 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ onClick(row) {
|
|
|
+ if(row.auditStatus!=0){
|
|
|
+ uni.showToast({
|
|
|
+ title: '非待审核状态不允许删除',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let _this = this
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '是否确认删除?',
|
|
|
+ success: function(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ let obj = {
|
|
|
+ id: row.id
|
|
|
+ }
|
|
|
+ uni.showLoading({
|
|
|
+ title: '加载中',
|
|
|
+ mask: true
|
|
|
+ });
|
|
|
+ revokeApproval(obj).then(res => {
|
|
|
+ uni.showToast({
|
|
|
+ title: '操作成功',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ _this.$refs.paging.reload();
|
|
|
+ })
|
|
|
+ .finally(() => {
|
|
|
+ uni.hideLoading()
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
addDetails() {
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/home/claim/details'
|
|
|
@@ -101,8 +149,8 @@
|
|
|
const obj = {
|
|
|
current: pageNo,
|
|
|
size: pageSize,
|
|
|
- claimType:2,
|
|
|
- searchCriteria:this.searchValue
|
|
|
+ claimType: 2,
|
|
|
+ searchCriteria: this.searchValue
|
|
|
}
|
|
|
const res = await getList(obj)
|
|
|
this.$refs.paging.complete(res.data.records)
|
|
|
@@ -129,6 +177,7 @@
|
|
|
height: 100vh;
|
|
|
background: transparent;
|
|
|
}
|
|
|
+
|
|
|
.scroll-view {
|
|
|
flex: 1;
|
|
|
height: 100%;
|