fix SalesOrderPayment.vue style

This commit is contained in:
Timi
2026-10-29 17:19:28 +08:00
parent ff1aa871cb
commit cecf898293
+66 -88
View File
@@ -1,5 +1,5 @@
<template> <template>
<div class="page-layout navbar"> <div v-can="permissionCodes.fundReceive.create" class="page-layout navbar sales-order-payment">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -19,75 +19,72 @@
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column"> <main class="page-content scroll column">
<div v-can="permissionCodes.fundReceive.create" class="sales-order-operation"> <t-cell-group
<t-cell-group v-if="order"
v-if="order" title="销售订单"
title="销售订单" theme="card"
theme="card" v-entrance-transition
v-entrance-transition >
> <t-cell title="订单号" :note="order.orderNo || order.id" />
<t-cell title="订单号" :note="order.orderNo || order.id" /> <t-cell
<t-cell title="剩余待收款"
title="剩余待收款" :note="formatPackageAmount(order.unpaidAmount)"
:note="formatPackageAmount(order.unpaidAmount)" />
/> </t-cell-group>
</t-cell-group> <t-form
<t-form v-if="order"
v-if="order" class="form card"
class="form card" label-width="7rem"
label-width="7rem" v-entrance-transition
v-entrance-transition >
> <t-form-item label="收款金额" required-mark>
<t-form-item label="收款金额" required-mark> <t-input
<t-input v-model.trim="amountText"
v-model.trim="amountText" type="number"
type="number" align="right"
align="right" borderless
borderless placeholder="输入收款金额"
placeholder="输入收款金额" >
> <template #suffix-icon>
<template #suffix-icon> <t-button
<t-button size="extra-small"
size="extra-small" theme="primary"
theme="primary" variant="outline"
variant="outline" content="全额收款"
content="全额收款" @click="fillUnpaidAmount"
@click="fillUnpaidAmount" />
/>
</template>
</t-input>
</t-form-item>
<t-form-item label="收款时间" content-align="right">
<date-time-now-picker v-model="occurredAtText" title="收款时间" />
</t-form-item>
<t-form-item v-if="canDirectVerify" label="直接核销收款" content-align="right">
<t-switch v-model="directVerify" size="small" />
<template #help v-if="directVerify">
<span class="red">直接核销后,收款会立即计入订单已收款,不再进入待核销队列。</span>
</template> </template>
</t-form-item> </t-input>
<t-form-item label="备注"> </t-form-item>
<t-textarea <t-form-item label="收款时间" content-align="right">
v-model="remark" <date-time-now-picker v-model="occurredAtText" title="收款时间" />
borderless </t-form-item>
autosize <t-form-item v-if="canDirectVerify" label="直接核销收款" content-align="right">
maxlength="500" <t-switch v-model="directVerify" size="small" />
placeholder="请输入备注" <template #help v-if="directVerify">
/> <span class="red">直接核销后,收款会立即计入订单已收款,不再进入待核销队列。</span>
</t-form-item> </template>
<t-form-item label-width="0"> </t-form-item>
<attachment-selector <t-form-item label="备注">
v-if="order" <t-textarea
v-model:items="photoItems" v-model="remark"
class="photo-field" borderless
:upload="uploadPhotoList" autosize
required maxlength="500"
title="收款凭证照片" placeholder="请输入备注"
/> />
</t-form-item> </t-form-item>
</t-form> <t-form-item label-width="0">
<t-empty v-if="!order" :description="loading ? '正在加载订单' : '订单不存在'" /> <attachment-selector
</div> v-if="order"
v-model:items="photoItems"
:upload="uploadPhotoList"
required
title="收款凭证照片"
/>
</t-form-item>
</t-form>
<t-empty v-if="!order" :description="loading ? '正在加载订单' : '订单不存在'" />
</main> </main>
</div> </div>
</template> </template>
@@ -205,22 +202,3 @@ onMounted(async () => {
await loadData(); await loadData();
}); });
</script> </script>
<style scoped lang="less">
.sales-order-operation {
gap: 1rem;
padding: 0 0 2rem;
display: flex;
flex-direction: column;
.picker-text {
width: 100%;
text-align: right;
}
.photo-field {
padding: 0 1rem;
}
}
</style>