|
|
@ -173,7 +173,7 @@ export const ItemOrderDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isInpuFocusShow: true, |
|
|
|
searchListPlaceholder: '请选择备件编号', |
|
|
|
searchField: 'number', |
|
|
|
searchTitle: '库区信息', |
|
|
|
searchTitle: '备件信息', |
|
|
|
searchAllSchemas: Item.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: ItemApi.getItemPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
@ -185,8 +185,33 @@ export const ItemOrderDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '库存数量', |
|
|
|
field: 'qty', |
|
|
|
label: '备件名称', |
|
|
|
field: 'itemName', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
table: { |
|
|
|
width: 110, |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单位', |
|
|
|
field: 'uom', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单价', |
|
|
|
field: 'singlePrice', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
@ -236,6 +261,26 @@ export const ItemOrderDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '库存数量', |
|
|
|
field: 'qty', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
@ -259,53 +304,7 @@ export const ItemOrderDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
|
|
|
|
//表单校验
|
|
|
|
export const ItemOrderDetailRules = reactive({ |
|
|
|
lineNumber: [ |
|
|
|
{ required: true, message: '请输入行号', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
stdPackQty: [ |
|
|
|
{ required: true, message: '请输入标包数量', trigger: 'blur' } |
|
|
|
], |
|
|
|
stdPackUnit: [ |
|
|
|
{ required: true, message: '请选择标包单位', trigger: 'change' } |
|
|
|
], |
|
|
|
convertRate: [ |
|
|
|
{ required: true, message: '请输入转换率', trigger: 'blur' } |
|
|
|
], |
|
|
|
taxRate: [ |
|
|
|
{ required: true, message: '请输入税率', trigger: 'blur' } |
|
|
|
], |
|
|
|
shippedQty: [ |
|
|
|
{ required: true, message: '请输入已发货数量', trigger: 'blur' } |
|
|
|
], |
|
|
|
receivedQty: [ |
|
|
|
{ required: true, message: '请输入已收货数量', trigger: 'blur' } |
|
|
|
], |
|
|
|
returnedQty: [ |
|
|
|
{ required: true, message: '请输入已退货数量', trigger: 'blur' } |
|
|
|
], |
|
|
|
putawayQty: [ |
|
|
|
{ required: true, message: '请输入已上架数量', trigger: 'blur' } |
|
|
|
], |
|
|
|
overReceivingPercent: [ |
|
|
|
{ required: true, message: '请输入超收百分比', trigger: 'blur' } |
|
|
|
], |
|
|
|
orderQty: [ |
|
|
|
{ required: true, message: '请输入订单数量', trigger: 'blur' } |
|
|
|
], |
|
|
|
uom: [ |
|
|
|
{ required: true, message: '请选择计量单位', trigger: 'change' } |
|
|
|
], |
|
|
|
available: [ |
|
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' } |
|
|
|
], |
|
|
|
nuumber: [ |
|
|
|
{ required: true, message: '请输入单据号', trigger: 'blur' } |
|
|
|
], |
|
|
|
itemCode: [ |
|
|
|
{ required: true, message: '请选择物品代码', trigger: 'change' } |
|
|
|
], |
|
|
|
remark: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
singlePrice: [ |
|
|
|
{ required: true, message: '请输入备件单价', trigger: 'blur' }, |
|
|
|
], |
|
|
|
}) |
|
|
|