feat(wms): update input components to disable controls and enhance user selection

pull/345/head
YunaiV 2026-05-19 16:16:28 +08:00
parent 09c19526bb
commit 9c57ae07a6
4 changed files with 15 additions and 16 deletions

View File

@ -215,26 +215,26 @@ defineExpose({
<div class="flex w-full gap-1">
<ElInputNumber
v-model="row.length"
:controls="false"
:min="0"
:precision="DIMENSION_PRECISION"
class="!w-1/3"
controls-position="right"
placeholder="长"
/>
<ElInputNumber
v-model="row.width"
:controls="false"
:min="0"
:precision="DIMENSION_PRECISION"
class="!w-1/3"
controls-position="right"
placeholder="宽"
/>
<ElInputNumber
v-model="row.height"
:controls="false"
:min="0"
:precision="DIMENSION_PRECISION"
class="!w-1/3"
controls-position="right"
placeholder="高"
/>
</div>
@ -243,18 +243,18 @@ defineExpose({
<div class="flex flex-col gap-2 py-1">
<ElInputNumber
v-model="row.netWeight"
:controls="false"
:min="0"
:precision="WEIGHT_PRECISION"
class="!w-full"
controls-position="right"
placeholder="净重"
/>
<ElInputNumber
v-model="row.grossWeight"
:controls="false"
:min="0"
:precision="WEIGHT_PRECISION"
class="!w-full"
controls-position="right"
placeholder="毛重"
/>
</div>
@ -263,18 +263,18 @@ defineExpose({
<div class="flex flex-col gap-2 py-1">
<ElInputNumber
v-model="row.costPrice"
:controls="false"
:min="0"
:precision="PRICE_PRECISION"
class="!w-full"
controls-position="right"
placeholder="成本价"
/>
<ElInputNumber
v-model="row.sellingPrice"
:controls="false"
:min="0"
:precision="PRICE_PRECISION"
class="!w-full"
controls-position="right"
placeholder="销售价"
/>
</div>

View File

@ -166,11 +166,11 @@ export function useGridFormSchema(): VbenFormSchema[] {
{
component: 'ApiSelect',
componentProps: {
clearable: true,
api: getSimpleUserList,
clearable: true,
filterable: true,
labelField: 'nickname',
placeholder: '请选择创建用户',
filterable: true,
valueField: 'id',
},
fieldName: 'creator',
@ -179,11 +179,11 @@ export function useGridFormSchema(): VbenFormSchema[] {
{
component: 'ApiSelect',
componentProps: {
clearable: true,
api: getSimpleUserList,
clearable: true,
filterable: true,
labelField: 'nickname',
placeholder: '请选择更新用户',
filterable: true,
valueField: 'id',
},
fieldName: 'updater',

View File

@ -82,11 +82,11 @@ export function useGridFormSchema(): VbenFormSchema[] {
{
component: 'ApiSelect',
componentProps: {
clearable: true,
api: getSimpleUserList,
clearable: true,
filterable: true,
labelField: 'nickname',
placeholder: '请选择创建用户',
filterable: true,
valueField: 'id',
},
fieldName: 'creator',
@ -95,11 +95,11 @@ export function useGridFormSchema(): VbenFormSchema[] {
{
component: 'ApiSelect',
componentProps: {
clearable: true,
api: getSimpleUserList,
clearable: true,
filterable: true,
labelField: 'nickname',
placeholder: '请选择更新用户',
filterable: true,
valueField: 'id',
},
fieldName: 'updater',

View File

@ -518,7 +518,6 @@ const [Modal, modalApi] = useVbenModal({
{
label: '作废',
type: 'danger',
link: true,
auth: ['wms:shipment-order:cancel'],
onClick: handleFormCancel,
},