|
@@ -3,10 +3,10 @@
|
|
|
<div class="silent-expire-alarm">
|
|
|
<!-- 搜索条件区 -->
|
|
|
<div class="search-section">
|
|
|
- <Search/>
|
|
|
+ <Search />
|
|
|
</div>
|
|
|
<div class="audit-btn" v-if="userType == 2">
|
|
|
- <a-button @click="showAudit=true" type="text">
|
|
|
+ <a-button @click="showAudit = true" type="text">
|
|
|
<template #icon>
|
|
|
<icon-plus-circle />
|
|
|
</template>
|
|
@@ -36,14 +36,13 @@
|
|
|
</template>
|
|
|
<template #operate="{ record }">
|
|
|
<div v-if="userType == 1">
|
|
|
- <a-button type="text" v-if="record.moderationStatus == 1" @click="statusOrder(record)">审核</a-button>
|
|
|
+ <a-button type="text" v-if="record.moderationStatus == 1 && record.status == 1"
|
|
|
+ @click="statusOrder(record)">审核</a-button>
|
|
|
<a-button @click="uploadModal(record)" type="text">{{ record.contractImg == '' ? '上传合同' : '查看合同' }}</a-button>
|
|
|
</div>
|
|
|
<div v-if="userType == 2">
|
|
|
- <a-popconfirm :content="`是否确认退订?`" type="warning" @ok="adminCancel(record)"
|
|
|
- v-if="record.moderationStatus != 3">
|
|
|
- <a-button type="text">退订</a-button>
|
|
|
- </a-popconfirm>
|
|
|
+ <a-button type="text" @click="adminCancel(record)"
|
|
|
+ v-if="record.moderationStatus == 2 && userType !== 1">退订</a-button>
|
|
|
<a-button @click="openDetail(record)" type="text">查看</a-button>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -65,9 +64,10 @@
|
|
|
</a-form>
|
|
|
</a-modal>
|
|
|
|
|
|
- <Card v-model:modelValue="showAudit" @submit="intData()"/>
|
|
|
- <Status v-model:modelValue="showStatus" @submit="intData()" :FormDataList="FormDataList"/>
|
|
|
- <Detaile v-model:modelValue="showDetail" @submit="intData()" :FormDataList="FormDataList"/>
|
|
|
+ <Card v-model:modelValue="showAudit" @submit="intData()" />
|
|
|
+ <Status v-model:modelValue="showStatus" @submit="intData()" :FormDataList="FormDataList" />
|
|
|
+ <Detaile v-model:modelValue="showDetail" @submit="intData()" :FormDataList="FormDataList" />
|
|
|
+ <returnCard v-model:modelValue="showReturn" :ReturnData="ReturnData" :id="id" @submit="intData()"></returnCard>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -75,13 +75,14 @@
|
|
|
import { ref, onMounted, toRefs } from 'vue';
|
|
|
import { Message } from '@arco-design/web-vue';
|
|
|
import { purchaseOrderList, platformUpdate, adminUpdate } from '@/api/path/purchase';
|
|
|
-import { UploadOrderCardContract } from '@/api/path/order'
|
|
|
+import { UploadOrderCardContract,TariffOrderCard } from '@/api/path/order'
|
|
|
import { Getdictionary } from '@/mixins/index.js'
|
|
|
import Upload from "@/components/upload/index.vue";
|
|
|
import Card from './Card.vue'
|
|
|
import Status from './status.vue'
|
|
|
import Detaile from './detaile.vue'
|
|
|
import Search from '@/components/Search/index.vue'
|
|
|
+import returnCard from './returnCard.vue'
|
|
|
// 数据层
|
|
|
const state = ref({
|
|
|
userName: localStorage.getItem('remember_user_name'),
|
|
@@ -102,6 +103,9 @@ const state = ref({
|
|
|
}, // 文件上传列表
|
|
|
showDetail: false,
|
|
|
uploadContract: false,
|
|
|
+ showReturn: false,
|
|
|
+ ReturnData:[],
|
|
|
+ id:null
|
|
|
});
|
|
|
|
|
|
const {
|
|
@@ -114,6 +118,9 @@ const {
|
|
|
formContract,
|
|
|
showDetail,
|
|
|
uploadContract,
|
|
|
+ showReturn,
|
|
|
+ ReturnData,
|
|
|
+ id
|
|
|
} = toRefs(state.value);
|
|
|
|
|
|
const columns = [
|
|
@@ -158,13 +165,11 @@ const intData = async () => {
|
|
|
}
|
|
|
// 用户退订
|
|
|
const adminCancel = (data) => {
|
|
|
- const param = {
|
|
|
- id: data.id,
|
|
|
- status: data.status
|
|
|
- }
|
|
|
- adminUpdate(param).then(res => {
|
|
|
- intData();
|
|
|
+ TariffOrderCard({id:data.trafficId}).then(res => {
|
|
|
+ ReturnData.value = res.data || []
|
|
|
})
|
|
|
+ id.value = data.id
|
|
|
+ showReturn.value = true
|
|
|
}
|
|
|
// 分页
|
|
|
const evChangePage = (page) => {
|