This commit is contained in:
qsh
2024-06-19 00:31:40 +08:00
parent e3c85cbaae
commit 5aab5c0f82
8 changed files with 467 additions and 87 deletions

View File

@@ -15,13 +15,22 @@
</el-table>
</el-tab-pane>
<el-tab-pane label="回款记录" name="returnRecord">
<el-table :data="returnRecord" border stripe>
<el-table :data="returnRecordList" border stripe>
<el-table-column type="index" width="50" />
<el-table-column prop="money" label="回款金额" />
<el-table-column prop="" label="回款日期" />
<el-table-column prop="" label="是否结清" />
<el-table-column prop="remark" label="备注" />
<el-table-column prop="" label="审核状态" />
<el-table-column prop="applyTime" label="申请日期" />
<el-table-column prop="isPayoff" label="是否结清" />
<el-table-column prop="stateName" label="审核状态" />
</el-table>
</el-tab-pane>
<el-tab-pane label="售后记录" name="afterSale">
<el-table :data="aftersaleList" border stripe>
<el-table-column type="index" width="50" />
<el-table-column prop="reason" label="售后原因" />
<el-table-column prop="refundAmount" label="退款金额" />
<el-table-column prop="isReturns" label="是否退货" />
<el-table-column prop="applyTime" label="申请日期" width="180px" />
<el-table-column prop="stateName" label="审核状态" />
</el-table>
</el-tab-pane>
</el-tabs>
@@ -34,7 +43,8 @@ import * as ClueApi from '@/api/clue'
import * as OrderApi from '@/api/clue/sign'
import { getSimpleFieldList as getClueFieldList } from '@/api/clue/clueField'
import { getSimpleFieldList as getOrderFieldList } from '@/api/clue/orderField'
import { getPaymentList } from '@/api/clue/payment'
import { getPaymentPage } from '@/api/clue/payment'
import { getAfterSalePage } from '@/api/clue/afterSale'
import { formatDate } from '@/utils/formatTime'
@@ -42,7 +52,8 @@ const tabName = ref('clueInfo')
const show = ref(false)
const clueInfo = ref({})
const orderInfo = ref({})
const returnRecord = ref([])
const returnRecordList = ref([])
const aftersaleList = ref([])
function open(clueId, orderId) {
try {
@@ -56,8 +67,11 @@ function open(clueId, orderId) {
orderInfo.value = { ...data, ...data.diyParams }
orderInfo.value.dealDate = formatDate(orderInfo.value.dealDate, 'YYYY-MM-DD HH:mm')
})
getPaymentList({ signId: orderId }).then((data) => {
returnRecord.value = data
getPaymentPage({ signId: orderId, pageNo: 1, pageSize: 100 }).then((data) => {
returnRecordList.value = data.list
})
getAfterSalePage({ signId: orderId, pageNo: 1, pageSize: 100 }).then((data) => {
aftersaleList.value = data.list
})
} catch (error) {
console.log(error)