Browse Source

修改前端包装号的验证

syhx
liuchen864 2 months ago
parent
commit
d89dcd2ed6
  1. 5
      src/api/wms/rule/index.ts
  2. 6
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts
  3. 11
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts
  4. 11
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/inventorymoveRequestMain.data.ts
  5. 6
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts

5
src/api/wms/rule/index.ts

@ -56,3 +56,8 @@ export const exportRule = async (params) => {
export const importTemplate = () => {
return request.download({ url: '/wms/rule/get-import-template' })
}
// 管理精度策略
export const getManagementPrecision = async (data) => {
return await request.post({ url: `/wms/rule/getPrecisionStrategyByItemCodes`, data })
}

6
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts

@ -1292,9 +1292,9 @@ export const ScrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验
export const ScrapRequestDetailRules = reactive({
packingNumber: [
{ required: true, message: '请选择包装号', trigger: 'change' }
],
// packingNumber: [
// { required: true, message: '请选择包装号', trigger: 'change' }
// ],
batch: [
{ required: true, message: '请输入批次', trigger: 'blur' }
],

11
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

@ -926,15 +926,18 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
//表单校验
export const InventorymoveRequestDetailRules = reactive({
// itemCode: [
// { required: true, message: '请点击从包装号选择物料代码', trigger: 'change' }
// ],
itemCode: [
{ required: true, message: '请点击从包装号选择物料代码', trigger: 'change' }
{ required: true, message: '请选择物料代码', trigger: 'change' }
],
fromLocationCode: [
{ required: true, message: '请选择从库位代码', trigger: 'change' }
],
fromPackingNumber: [
{ required: true, message: '请选择从包装号', trigger: 'change' }
],
// fromPackingNumber: [
// { required: true, message: '请选择从包装号', trigger: 'change' }
// ],
fromInventoryStatus: [
{ required: true, message: '请选择从库存状态', trigger: 'change' }
],

11
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/inventorymoveRequestMain.data.ts

@ -927,15 +927,18 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
//表单校验
export const InventorymoveRequestDetailRules = reactive({
// itemCode: [
// { required: true, message: '请点击从包装号选择物料代码', trigger: 'change' }
// ],
itemCode: [
{ required: true, message: '请点击从包装号选择物料代码', trigger: 'change' }
{ required: true, message: '请选择物料代码', trigger: 'change' }
],
fromLocationCode: [
{ required: true, message: '请选择从库位代码', trigger: 'change' }
],
fromPackingNumber: [
{ required: true, message: '请选择从包装号', trigger: 'change' }
],
// fromPackingNumber: [
// { required: true, message: '请选择从包装号', trigger: 'change' }
// ],
fromInventoryStatus: [
{ required: true, message: '请选择从库存状态', trigger: 'change' }
],

6
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts

@ -1483,9 +1483,9 @@ export const InventorymoveRequestDetailRules = reactive({
fromLocationCode: [
{ required: true, message: '请选择从库位代码', trigger: 'change' }
],
fromPackingNumber: [
{ required: true, message: '请选择从包装号', trigger: 'change' }
],
// fromPackingNumber: [
// { required: true, message: '请选择从包装号', trigger: 'change' }
// ],
fromInventoryStatus: [
{ required: true, message: '请选择从库存状态', trigger: 'change' }
],

Loading…
Cancel
Save