🔥 移除应收毛利分析冗余展示和筛选
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="账单号"><el-input v-model="query.billNo" clearable @keyup.enter="search" /></el-form-item>
|
||||
<el-form-item label="订单号"><el-input v-model="query.orderNo" clearable @keyup.enter="search" /></el-form-item>
|
||||
<el-form-item label="状态">
|
||||
<el-select v-model="query.status" placeholder="全部状态" clearable style="width: 140px">
|
||||
<el-option label="已确认" value="CONFIRMED" /><el-option label="部分核销" value="PARTIAL_WRITTEN_OFF" /><el-option label="已核销" value="WRITTEN_OFF" />
|
||||
@@ -38,10 +37,8 @@
|
||||
<div>销售毛利 <b>{{ money(summary.salesGrossProfit) }}</b></div>
|
||||
<div>销售毛利率 <b>{{ rate(summary.salesGrossMarginRate) }}</b></div>
|
||||
<div>账单已核销 <b>{{ money(summary.writtenOffAmount) }}</b></div><div>账单未核销 <b>{{ money(summary.unwrittenAmount) }}</b></div>
|
||||
<div>毛利待核对账单 <b>{{ summary.invalidBillCount ?? '-' }}</b></div>
|
||||
</div>
|
||||
<div class="summary-note">广州产品价按红线价展示,深圳产品价按产品价展示;待核对账单不计入产品价、毛利及毛利率汇总。</div>
|
||||
<div v-if="query.orderNo" class="summary-note">订单号用于查找账单,金额按完整账单统计。</div>
|
||||
<div class="summary-note">广州产品价按红线价展示,深圳产品价按产品价展示。</div>
|
||||
</el-card>
|
||||
|
||||
<el-card shadow="never" class="data-card">
|
||||
@@ -58,7 +55,6 @@
|
||||
<el-table-column prop="customerCode" label="客户代码" width="110" />
|
||||
<el-table-column prop="customerName" label="客户名称" min-width="160" show-overflow-tooltip />
|
||||
<el-table-column prop="salesUserName" label="销售员" width="110" />
|
||||
<el-table-column label="归属来源" width="110"><template #default="{ row }">{{ row.snapshotSource === 'NEW' ? '生成时快照' : row.snapshotSource === 'BACKFILLED' ? '历史补录' : '-' }}</template></el-table-column>
|
||||
<el-table-column prop="currency" label="币种" width="80" />
|
||||
<el-table-column label="销售价" min-width="110" align="right"><template #default="{ row }">{{ money(row.salesAmount) }}</template></el-table-column>
|
||||
<el-table-column label="产品价" min-width="110" align="right"><template #default="{ row }">{{ money(row.productAmount) }}</template></el-table-column>
|
||||
@@ -161,7 +157,7 @@ import { parseTime } from '@/utils/bms'
|
||||
import { ElMessage } from 'element-plus'
|
||||
|
||||
const { proxy } = getCurrentInstance()
|
||||
const query = reactive({ customerId: null, salesUserId: null, billNo: '', orderNo: '', status: '' })
|
||||
const query = reactive({ customerId: null, salesUserId: null, billNo: '', status: '' })
|
||||
const salesOptions = ref([])
|
||||
const salesLoading = ref(false)
|
||||
let salesSearchVersion = 0
|
||||
@@ -188,7 +184,7 @@ const writeoffRatesVisible = ref(false), writeoffRatesLoading = ref(false), writ
|
||||
|
||||
function params() { return { ...query, beginBillDate: dateRange.value?.[0], endBillDate: dateRange.value?.[1] } }
|
||||
function search() { pageNum.value = 1; loadRows(); loadSummary() }
|
||||
function reset() { Object.assign(query, { customerId: null, salesUserId: null, billNo: '', orderNo: '', status: '' }); dateRange.value = []; search() }
|
||||
function reset() { Object.assign(query, { customerId: null, salesUserId: null, billNo: '', status: '' }); dateRange.value = []; search() }
|
||||
function handleSalesInput() {
|
||||
salesSearchVersion++
|
||||
salesOptions.value = []
|
||||
@@ -273,8 +269,8 @@ search()
|
||||
|
||||
<style scoped>
|
||||
.summary-card, .data-card { margin-top: 14px; }
|
||||
.metrics { display: flex; flex-wrap: wrap; gap: 14px; }
|
||||
.metrics > div { min-width: 150px; padding: 10px; background: var(--el-fill-color-lighter); color: var(--el-text-color-secondary); }
|
||||
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 14px; }
|
||||
.metrics > div { min-width: 0; padding: 10px; background: var(--el-fill-color-lighter); color: var(--el-text-color-secondary); }
|
||||
.metrics b { display: block; margin-top: 5px; color: var(--el-text-color-primary); }
|
||||
.summary-note { margin-top: 10px; color: var(--el-text-color-secondary); font-size: 12px; }
|
||||
.heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
|
||||
|
||||
Reference in New Issue
Block a user