fix:供应商账单测试
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<el-card shadow="never">
|
||||
<el-alert title="当前列表仅作为数据记录,不产生任何实际交易。" type="warning" show-icon :closable="false"
|
||||
style="margin-bottom: 15px;" />
|
||||
<el-text tag="b" size="large" style="margin-left: 15px;">供应商:供应商名称</el-text>
|
||||
<el-text tag="b" size="large" style="margin-left: 15px;">供应商:{{ state.supplierName }}</el-text>
|
||||
</el-card>
|
||||
</div>
|
||||
<div class="head-container">
|
||||
@@ -13,20 +13,20 @@
|
||||
<el-table-column prop="id" label="ID" width="80" />
|
||||
<el-table-column label="耗材信息">
|
||||
<template v-slot="scope">
|
||||
<div>{{ scope.row.shopName }}({{ scope.row.shopName }})</div>
|
||||
<div>账号:{{ scope.row.shopName }}</div>
|
||||
<div>联系电话:{{ scope.row.phone }}</div>
|
||||
<div>{{ scope.row.conName }}</div>
|
||||
<div>单价:{{ scope.row.purchasePrice }}</div>
|
||||
<div>入库数量:{{ scope.row.inOutNumber }}</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="status" label="付款金额" width="120" />
|
||||
<el-table-column prop="status" label="付款方式" width="120" />
|
||||
<el-table-column prop="createdAt" label="备注" />
|
||||
<el-table-column prop="status" label="创建时间" />
|
||||
<el-table-column prop="amount" label="付款金额" width="120" />
|
||||
<el-table-column prop="type" label="付款方式" width="120" />
|
||||
<el-table-column prop="remark" label="备注" />
|
||||
<el-table-column prop="createTime" label="创建时间" />
|
||||
<el-table-column label="操作人" width="200">
|
||||
<template v-slot="scope">
|
||||
<div>员工名称:{{ scope.row.shopName }}</div>
|
||||
<div>员工编号:{{ scope.row.shopName }}</div>
|
||||
<div>员工账号:{{ scope.row.phone }}</div>
|
||||
<div>员工名称:{{ scope.row.nickname }}</div>
|
||||
<div>员工编号:{{ scope.row.code }}</div>
|
||||
<div>员工账号:{{ scope.row.account }}</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -43,12 +43,15 @@
|
||||
|
||||
<script setup>
|
||||
import ShopApi from "@/api/account/shop";
|
||||
import AuthAPI from "@/api/supplier/index";
|
||||
|
||||
import { ElMessageBox } from "element-plus";
|
||||
const route = useRoute();
|
||||
|
||||
const state = reactive({
|
||||
query: {
|
||||
name: "",
|
||||
flowId: null,
|
||||
},
|
||||
tableData: {
|
||||
list: [],
|
||||
@@ -57,23 +60,26 @@ const state = reactive({
|
||||
loading: false,
|
||||
total: 0,
|
||||
},
|
||||
supplierName: '',
|
||||
});
|
||||
onMounted(() => {
|
||||
console.log(route.query);
|
||||
if (route.query.id) {
|
||||
state.query.flowId = route.query.id
|
||||
}
|
||||
if (route.query.supplierName) {
|
||||
state.supplierName = route.query.supplierName
|
||||
}
|
||||
getTableData();
|
||||
});
|
||||
// 获取商家列表
|
||||
// 获取账单付款列表
|
||||
async function getTableData() {
|
||||
state.tableData.loading = true;
|
||||
try {
|
||||
const res = await ShopApi.getList({
|
||||
const res = await AuthAPI.getPayRecordList({
|
||||
page: state.tableData.page,
|
||||
size: state.tableData.size,
|
||||
shopName: state.query.name,
|
||||
account: state.query.account,
|
||||
status: state.query.status,
|
||||
flowId: state.query.flowId,
|
||||
});
|
||||
state.tableData.loading = false;
|
||||
state.tableData.list = res.records;
|
||||
|
||||
Reference in New Issue
Block a user