feat(wms): update input components to disable controls and enhance user selection
parent
09c19526bb
commit
9c57ae07a6
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -518,7 +518,6 @@ const [Modal, modalApi] = useVbenModal({
|
|||
{
|
||||
label: '作废',
|
||||
type: 'danger',
|
||||
link: true,
|
||||
auth: ['wms:shipment-order:cancel'],
|
||||
onClick: handleFormCancel,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue