fix SalesOrderPayment.vue style
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="page-layout navbar">
|
||||
<div v-can="permissionCodes.fundReceive.create" class="page-layout navbar sales-order-payment">
|
||||
<t-navbar
|
||||
fixed
|
||||
:z-index="20"
|
||||
@@ -19,75 +19,72 @@
|
||||
</template>
|
||||
</t-navbar>
|
||||
<main class="page-content scroll column">
|
||||
<div v-can="permissionCodes.fundReceive.create" class="sales-order-operation">
|
||||
<t-cell-group
|
||||
v-if="order"
|
||||
title="销售订单"
|
||||
theme="card"
|
||||
v-entrance-transition
|
||||
>
|
||||
<t-cell title="订单号" :note="order.orderNo || order.id" />
|
||||
<t-cell
|
||||
title="剩余待收款"
|
||||
:note="formatPackageAmount(order.unpaidAmount)"
|
||||
/>
|
||||
</t-cell-group>
|
||||
<t-form
|
||||
v-if="order"
|
||||
class="form card"
|
||||
label-width="7rem"
|
||||
v-entrance-transition
|
||||
>
|
||||
<t-form-item label="收款金额" required-mark>
|
||||
<t-input
|
||||
v-model.trim="amountText"
|
||||
type="number"
|
||||
align="right"
|
||||
borderless
|
||||
placeholder="输入收款金额"
|
||||
>
|
||||
<template #suffix-icon>
|
||||
<t-button
|
||||
size="extra-small"
|
||||
theme="primary"
|
||||
variant="outline"
|
||||
content="全额收款"
|
||||
@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>
|
||||
<t-cell-group
|
||||
v-if="order"
|
||||
title="销售订单"
|
||||
theme="card"
|
||||
v-entrance-transition
|
||||
>
|
||||
<t-cell title="订单号" :note="order.orderNo || order.id" />
|
||||
<t-cell
|
||||
title="剩余待收款"
|
||||
:note="formatPackageAmount(order.unpaidAmount)"
|
||||
/>
|
||||
</t-cell-group>
|
||||
<t-form
|
||||
v-if="order"
|
||||
class="form card"
|
||||
label-width="7rem"
|
||||
v-entrance-transition
|
||||
>
|
||||
<t-form-item label="收款金额" required-mark>
|
||||
<t-input
|
||||
v-model.trim="amountText"
|
||||
type="number"
|
||||
align="right"
|
||||
borderless
|
||||
placeholder="输入收款金额"
|
||||
>
|
||||
<template #suffix-icon>
|
||||
<t-button
|
||||
size="extra-small"
|
||||
theme="primary"
|
||||
variant="outline"
|
||||
content="全额收款"
|
||||
@click="fillUnpaidAmount"
|
||||
/>
|
||||
</template>
|
||||
</t-form-item>
|
||||
<t-form-item label="备注">
|
||||
<t-textarea
|
||||
v-model="remark"
|
||||
borderless
|
||||
autosize
|
||||
maxlength="500"
|
||||
placeholder="请输入备注"
|
||||
/>
|
||||
</t-form-item>
|
||||
<t-form-item label-width="0">
|
||||
<attachment-selector
|
||||
v-if="order"
|
||||
v-model:items="photoItems"
|
||||
class="photo-field"
|
||||
:upload="uploadPhotoList"
|
||||
required
|
||||
title="收款凭证照片"
|
||||
/>
|
||||
</t-form-item>
|
||||
</t-form>
|
||||
<t-empty v-if="!order" :description="loading ? '正在加载订单' : '订单不存在'" />
|
||||
</div>
|
||||
</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>
|
||||
</t-form-item>
|
||||
<t-form-item label="备注">
|
||||
<t-textarea
|
||||
v-model="remark"
|
||||
borderless
|
||||
autosize
|
||||
maxlength="500"
|
||||
placeholder="请输入备注"
|
||||
/>
|
||||
</t-form-item>
|
||||
<t-form-item label-width="0">
|
||||
<attachment-selector
|
||||
v-if="order"
|
||||
v-model:items="photoItems"
|
||||
:upload="uploadPhotoList"
|
||||
required
|
||||
title="收款凭证照片"
|
||||
/>
|
||||
</t-form-item>
|
||||
</t-form>
|
||||
<t-empty v-if="!order" :description="loading ? '正在加载订单' : '订单不存在'" />
|
||||
</main>
|
||||
</div>
|
||||
</template>
|
||||
@@ -205,22 +202,3 @@ onMounted(async () => {
|
||||
await loadData();
|
||||
});
|
||||
</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>
|
||||
|
||||
Reference in New Issue
Block a user