2025-08-20 13:59:17 +08:00
|
|
|
<template>
|
2026-02-05 15:13:59 +08:00
|
|
|
<view class="container">
|
2026-02-05 17:28:43 +08:00
|
|
|
<MBCard>
|
|
|
|
|
<uni-forms ref="baseForm" :modelValue="queryParams">
|
2026-02-05 15:13:59 +08:00
|
|
|
<uni-forms-item label="支付方式">
|
2026-02-05 17:28:43 +08:00
|
|
|
<DictSelect v-model="queryParams.isPayNow" dict="dazhong_paytype" @change="handleQuery"/>
|
2026-02-05 15:13:59 +08:00
|
|
|
</uni-forms-item>
|
|
|
|
|
<uni-forms-item label="生产单位">
|
2026-02-05 17:28:43 +08:00
|
|
|
<ProductionUnit v-model="queryParams.companyId" @change="handleQuery"/>
|
2026-02-05 15:13:59 +08:00
|
|
|
</uni-forms-item>
|
|
|
|
|
</uni-forms>
|
2026-02-05 17:28:43 +08:00
|
|
|
</MBCard>
|
2026-02-05 15:13:59 +08:00
|
|
|
|
2026-02-05 17:28:43 +08:00
|
|
|
<MBLoading v-if="loading"/>
|
2026-02-05 15:13:59 +08:00
|
|
|
<view v-else>
|
2026-02-09 19:14:48 +08:00
|
|
|
<ListItem v-if="tableData.length > 0" :items="tableData"/>
|
|
|
|
|
<uni-load-more
|
|
|
|
|
v-else
|
|
|
|
|
:contentText="{
|
|
|
|
|
contentnomore: '- 暂无商务审批数据 -'
|
|
|
|
|
}"
|
|
|
|
|
:status="'no-more'"
|
|
|
|
|
/>
|
2026-02-05 17:28:43 +08:00
|
|
|
<MBPagination
|
|
|
|
|
v-if="total > 0"
|
|
|
|
|
v-model:limit="paging.pageSize"
|
|
|
|
|
v-model:page="paging.pageNum"
|
|
|
|
|
:total="total"
|
|
|
|
|
@pagination="handleQuery"
|
|
|
|
|
/>
|
2026-02-05 15:13:59 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
2025-08-20 13:59:17 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2026-02-05 15:13:59 +08:00
|
|
|
|
2026-02-07 15:12:39 +08:00
|
|
|
import {getCurrentInstance, onMounted, ref} from "vue"
|
2026-02-05 17:28:43 +08:00
|
|
|
import UniForms from "../../../uni_modules/uni-forms/components/uni-forms/uni-forms.vue";
|
|
|
|
|
import UniFormsItem from "../../../uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue";
|
|
|
|
|
import DictSelect from "../../../components/DictSelect/DictSelect.vue";
|
|
|
|
|
import ProductionUnit from "../../../components/ProductionUnit/ProductionUnit.vue";
|
|
|
|
|
import MBCard from "../../../components/MB/MBCard.vue";
|
|
|
|
|
import {mangerList} from "../../../api/BusinessApproval";
|
|
|
|
|
import MBPagination from "../../../components/MB/MBPagination.vue";
|
|
|
|
|
import MBLoading from "../../../components/MB/MBLoading.vue";
|
|
|
|
|
import ListItem from "./ListItem.vue";
|
|
|
|
|
|
2026-02-05 15:13:59 +08:00
|
|
|
const {proxy} = getCurrentInstance()
|
2026-02-05 17:28:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
const queryParams = ref({
|
|
|
|
|
state: '1',
|
|
|
|
|
isPayNow: '',
|
|
|
|
|
companyId: ''
|
|
|
|
|
})
|
|
|
|
|
const loading = ref(true)
|
|
|
|
|
const total = ref(0)
|
|
|
|
|
const paging = ref({
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
isAsc: 'descending',
|
|
|
|
|
orderByColumn: 'adddate'
|
|
|
|
|
})
|
|
|
|
|
const tableData = ref([])
|
|
|
|
|
|
|
|
|
|
const handleQuery = async () => {
|
|
|
|
|
loading.value = true
|
|
|
|
|
const data = await mangerList(queryParams.value, paging.value)
|
|
|
|
|
total.value = data.total
|
|
|
|
|
tableData.value = data.rows
|
|
|
|
|
loading.value = false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onMounted(async () => {
|
|
|
|
|
await handleQuery()
|
|
|
|
|
})
|
|
|
|
|
|
2025-08-20 13:59:17 +08:00
|
|
|
</script>
|
|
|
|
|
|