diff --git a/src/views/wms/basicDataManage/customerManage/customer/customer.data.ts b/src/views/wms/basicDataManage/customerManage/customer/customer.data.ts index a14dc27ce..d1042dea6 100644 --- a/src/views/wms/basicDataManage/customerManage/customer/customer.data.ts +++ b/src/views/wms/basicDataManage/customerManage/customer/customer.data.ts @@ -117,6 +117,9 @@ export const Customer = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 0 + } }, }, { diff --git a/src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts b/src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts index 2065e70f9..3850f70db 100644 --- a/src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts +++ b/src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts @@ -54,6 +54,9 @@ export const Customeritem = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 0 + } }, }, { @@ -76,6 +79,10 @@ export const Customeritem = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 1, + precision: 6 + } }, }, { @@ -98,6 +105,10 @@ export const Customeritem = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 0, + precision: 6 + } }, }, { @@ -109,6 +120,10 @@ export const Customeritem = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 1, + precision: 6 + } }, }, { diff --git a/src/views/wms/basicDataManage/customerManage/saleprice/saleprice.data.ts b/src/views/wms/basicDataManage/customerManage/saleprice/saleprice.data.ts index b2f83cd73..875b30437 100644 --- a/src/views/wms/basicDataManage/customerManage/saleprice/saleprice.data.ts +++ b/src/views/wms/basicDataManage/customerManage/saleprice/saleprice.data.ts @@ -46,6 +46,10 @@ export const Saleprice = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 1, + precision: 6 + } }, }, { diff --git a/src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts b/src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts index d3f5f58bc..28ee008e9 100644 --- a/src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts +++ b/src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts @@ -57,6 +57,12 @@ export const Businesstype = useCrudSchemas(reactive([ table: { width: 180 }, + form: { + component: 'SelectV2', + componentProps: { + multiple: true + } + } }, { label: '出库库位类型范围', diff --git a/src/views/wms/basicDataManage/documentSetting/businesstype/index.vue b/src/views/wms/basicDataManage/documentSetting/businesstype/index.vue index 365a9c41e..e26a8d5cf 100644 --- a/src/views/wms/basicDataManage/documentSetting/businesstype/index.vue +++ b/src/views/wms/basicDataManage/documentSetting/businesstype/index.vue @@ -67,6 +67,7 @@ import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +// 业务类型 defineOptions({ name: 'Businesstype' }) const message = useMessage() // 消息弹窗 diff --git a/src/views/wms/basicDataManage/documentSetting/jobsetting/jobsetting.data.ts b/src/views/wms/basicDataManage/documentSetting/jobsetting/jobsetting.data.ts index 4a7030155..30496c6ef 100644 --- a/src/views/wms/basicDataManage/documentSetting/jobsetting/jobsetting.data.ts +++ b/src/views/wms/basicDataManage/documentSetting/jobsetting/jobsetting.data.ts @@ -25,6 +25,9 @@ export const Jobsetting = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 0 + } }, }, { diff --git a/src/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data.ts b/src/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data.ts index 34cf2e248..360ebf422 100644 --- a/src/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data.ts @@ -199,7 +199,7 @@ export const AreaRules = reactive({ { required: true, message: '请输入代码', trigger: 'blur' } ], warehouseCode: [ - { required: true, message: '请输入仓库代码', trigger: 'blur' } + { required: true, message: '请输入仓库代码', trigger: 'change' } ], isFunctional: [ { required: true, message: '请选择是否是功能区', trigger: 'change' } diff --git a/src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts b/src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts index 509baaf63..034e9abb9 100644 --- a/src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts @@ -237,10 +237,10 @@ export const DockRules = reactive({ { required: true, message: '请输入类型', trigger: 'change' } ], warehouseCode: [ - { required: true, message: '请输入仓库代码', trigger: 'blur' } + { required: true, message: '请输入仓库代码', trigger: 'change' } ], defaultLocationCode: [ - { required: true, message: '请输入默认库位代码', trigger: 'blur' } + { required: true, message: '请输入默认库位代码', trigger: 'change' } ], available: [ { required: true, message: '请选择是否可用', trigger: 'change' } diff --git a/src/views/wms/basicDataManage/factoryModeling/location/location.data.ts b/src/views/wms/basicDataManage/factoryModeling/location/location.data.ts index 0ef6ea81f..881b84548 100644 --- a/src/views/wms/basicDataManage/factoryModeling/location/location.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/location/location.data.ts @@ -139,6 +139,10 @@ export const Location = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 1, + precision: 6 + } }, }, { @@ -150,6 +154,10 @@ export const Location = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 1, + precision: 6 + } }, }, { @@ -161,6 +169,10 @@ export const Location = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 1, + precision: 6 + } }, }, { @@ -172,6 +184,10 @@ export const Location = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 1, + precision: 6 + } }, }, { @@ -183,6 +199,10 @@ export const Location = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 1, + precision: 6 + } }, }, { @@ -194,6 +214,10 @@ export const Location = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 1, + precision: 6 + } }, }, { @@ -324,13 +348,13 @@ export const LocationRules = reactive({ { required: true, message: '请输入代码', trigger: 'blur' } ], warehouseCode: [ - { required: true, message: '请输入仓库代码', trigger: 'blur' } + { required: true, message: '请输入仓库代码', trigger: 'change' } ], areaCode: [ - { required: true, message: '请输入库区代码', trigger: 'blur' } + { required: true, message: '请输入库区代码', trigger: 'change' } ], locationGroupCode: [ - { required: true, message: '请输入库位组代码', trigger: 'blur' } + { required: true, message: '请输入库位组代码', trigger: 'change' } ], erpLocationCode: [ { required: true, message: '请选择ERP库位代码', trigger: 'change' } diff --git a/src/views/wms/basicDataManage/factoryModeling/locationgroup/locationgroup.data.ts b/src/views/wms/basicDataManage/factoryModeling/locationgroup/locationgroup.data.ts index 9170416fd..3b3fd4c0b 100644 --- a/src/views/wms/basicDataManage/factoryModeling/locationgroup/locationgroup.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/locationgroup/locationgroup.data.ts @@ -191,10 +191,10 @@ export const LocationgroupRules = reactive({ { required: true, message: '请输入代码', trigger: 'blur' } ], warehouseCode: [ - { required: true, message: '请输入仓库代码', trigger: 'blur' } + { required: true, message: '请输入仓库代码', trigger: 'change' } ], areaCode: [ - { required: true, message: '请输入库区代码', trigger: 'blur' } + { required: true, message: '请输入库区代码', trigger: 'change' } ], available: [ { required: true, message: '请选择是否可用', trigger: 'change' } diff --git a/src/views/wms/basicDataManage/factoryModeling/process/process.data.ts b/src/views/wms/basicDataManage/factoryModeling/process/process.data.ts index 7260cabca..e39b2970f 100644 --- a/src/views/wms/basicDataManage/factoryModeling/process/process.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/process/process.data.ts @@ -202,10 +202,10 @@ export const ProcessRules = reactive({ { required: true, message: '请输入代码', trigger: 'blur' } ], workshopCode: [ - { required: true, message: '请输入车间代码', trigger: 'blur' } + { required: true, message: '请输入车间代码', trigger: 'change' } ], productionLineCode: [ - { required: true, message: '请输入生产线代码', trigger: 'blur' } + { required: true, message: '请输入生产线代码', trigger: 'change' } ], available: [ { required: true, message: '请选择是否可用', trigger: 'change' } diff --git a/src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts b/src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts index 7d969749d..79b713142 100644 --- a/src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts @@ -221,7 +221,7 @@ export const ProductionlineRules = reactive({ { required: true, message: '请输入代码', trigger: 'blur' } ], workshopCode: [ - { required: true, message: '请输入车间代码', trigger: 'blur' } + { required: true, message: '请输入车间代码', trigger: 'change' } ], available: [ { required: true, message: '请选择是否可用', trigger: 'change' } diff --git a/src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts b/src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts index b5a207467..b4cecce84 100644 --- a/src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts @@ -243,10 +243,10 @@ export const WorkstationRules = reactive({ { required: true, message: '请输入代码', trigger: 'blur' } ], workshopCode: [ - { required: true, message: '请输入车间代码', trigger: 'blur' } + { required: true, message: '请输入车间代码', trigger: 'change' } ], productionLineCode: [ - { required: true, message: '请输入生产线代码', trigger: 'blur' } + { required: true, message: '请输入生产线代码', trigger: 'change' } ], available: [ { required: true, message: '请选择是否可用', trigger: 'change' } diff --git a/src/views/wms/basicDataManage/itemManage/bom/bom.data.ts b/src/views/wms/basicDataManage/itemManage/bom/bom.data.ts index fc611287a..91c99c7cf 100644 --- a/src/views/wms/basicDataManage/itemManage/bom/bom.data.ts +++ b/src/views/wms/basicDataManage/itemManage/bom/bom.data.ts @@ -70,6 +70,10 @@ export const Bom = useCrudSchemas(reactive([ sort: 'custom', form: { component: 'InputNumber', + componentProps: { + min: 1, + precision: 6 + } }, table: { width: 120 @@ -196,10 +200,10 @@ export const Bom = useCrudSchemas(reactive([ //表单校验 export const BomRules = reactive({ productItemCode: [ - { required: true, message: '请输入父物料代码', trigger: 'blur' } + { required: true, message: '请输入父物料代码', trigger: 'change' } ], componentItemCode: [ - { required: true, message: '请输入子物料代码', trigger: 'blur' } + { required: true, message: '请输入子物料代码', trigger: 'change' } ], componentUom: [ { required: true, message: '请选择子物料计量单位', trigger: 'change' } diff --git a/src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts b/src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts index 625f45926..e7a3f8721 100644 --- a/src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts +++ b/src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts @@ -303,6 +303,9 @@ export const Itembasic = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 0 + } }, }, { diff --git a/src/views/wms/basicDataManage/itemManage/itempackaging/itempackaging.data.ts b/src/views/wms/basicDataManage/itemManage/itempackaging/itempackaging.data.ts index 46fe172cf..3ab854996 100644 --- a/src/views/wms/basicDataManage/itemManage/itempackaging/itempackaging.data.ts +++ b/src/views/wms/basicDataManage/itemManage/itempackaging/itempackaging.data.ts @@ -40,7 +40,7 @@ export const Itempackaging = useCrudSchemas(reactive([ isTable: true, table: { width: 120 - } + } }, { label: '包装单位', @@ -64,6 +64,10 @@ export const Itempackaging = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 1, + precision: 6 + } } }, { @@ -86,6 +90,10 @@ export const Itempackaging = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 0, + precision: 6 + } } }, { @@ -97,6 +105,10 @@ export const Itempackaging = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 0, + precision: 6 + } } }, { @@ -119,6 +131,10 @@ export const Itempackaging = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 0, + precision: 6 + } } }, { @@ -140,6 +156,10 @@ export const Itempackaging = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 0, + precision: 6 + } } }, { @@ -236,9 +256,9 @@ export const Itempackaging = useCrudSchemas(reactive([ // 表单校验 export const ItempackagingRules = reactive({ - itemCode: [{ required: true, message: '物品代码不能为空', trigger: 'blur' }], + itemCode: [{ required: true, message: '物品代码不能为空', trigger: 'change' }], uom: [{ required: true, message: '计量单位不能为空', trigger: 'change' }], stdPackUnit: [{ required: true, message: '包装单位不能为空', trigger: 'change' }], - stdPackQty: [{ required: true, message: '包装数量不能为空', trigger: 'blur' }], + stdPackQty: [{ required: true, message: '包装数量不能为空', trigger: 'change' }], available: [{ required: true, message: '是否可用不能为空', trigger: 'change' }] }) \ No newline at end of file diff --git a/src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue b/src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue index 0507214af..8ac08188e 100644 --- a/src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue +++ b/src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue @@ -67,6 +67,7 @@ import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +//生产线物料关系管理 defineOptions({ name: 'Productionlineitem' }) const message = useMessage() // 消息弹窗 diff --git a/src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts b/src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts index df5391ab1..ec55197da 100644 --- a/src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts +++ b/src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts @@ -141,14 +141,7 @@ export const Productionlineitem = useCrudSchemas(reactive([ { label:'备注', field: 'remark', - isTable: false, - form: { - // labelMessage: '信息提示说明!!!', - componentProps: { - isSearchList: true, - searchListPlaceholder: '备注22222222' - } - } + isTable: false }, { label: '创建时间', @@ -180,13 +173,13 @@ export const Productionlineitem = useCrudSchemas(reactive([ //表单校验 export const ProductionlineitemRules = reactive({ fgLocationCode: [ - { required: true, message: '请输入完工收货库位', trigger: 'blur' } + { required: true, message: '请输入完工收货库位', trigger: 'change' } ], productionLineCode: [ - { required: true, message: '请输入产线代码', trigger: 'blur' } + { required: true, message: '请输入产线代码', trigger: 'change' } ], itemCode: [ - { required: true, message: '请输入物品代码', trigger: 'blur' } + { required: true, message: '请输入物品代码', trigger: 'change' } ], available: [ { required: true, message: '请选择是否可用', trigger: 'change' } diff --git a/src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts b/src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts index 4a073c75f..7559548fd 100644 --- a/src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts +++ b/src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts @@ -166,10 +166,10 @@ export const Stdcostprice = useCrudSchemas(reactive([ //表单校验 export const StdcostpriceRules = reactive({ supplierCode: [ - { required: true, message: '请输入供应商代码', trigger: 'blur' } + { required: true, message: '请输入供应商代码', trigger: 'change' } ], itemCode: [ - { required: true, message: '请输入物料代码', trigger: 'blur' } + { required: true, message: '请输入物料代码', trigger: 'change' } ], currency: [ { required: true, message: '请选择货币', trigger: 'change' } diff --git a/src/views/wms/basicDataManage/labelManage/barcode/barcode.data.ts b/src/views/wms/basicDataManage/labelManage/barcode/barcode.data.ts index 0b0646fcd..38cf326f4 100644 --- a/src/views/wms/basicDataManage/labelManage/barcode/barcode.data.ts +++ b/src/views/wms/basicDataManage/labelManage/barcode/barcode.data.ts @@ -42,6 +42,9 @@ export const Barcode = useCrudSchemas(reactive([ sort: 'custom', form: { component: 'InputNumber', + componentProps: { + min: 0 + }, value: 0 }, }, @@ -51,6 +54,9 @@ export const Barcode = useCrudSchemas(reactive([ sort: 'custom', form: { component: 'InputNumber', + componentProps: { + min: 0 + }, value: 0 }, }, @@ -60,6 +66,9 @@ export const Barcode = useCrudSchemas(reactive([ sort: 'custom', form: { component: 'InputNumber', + componentProps: { + min: 0 + }, value: 0 }, }, @@ -78,15 +87,6 @@ export const Barcode = useCrudSchemas(reactive([ field: 'encyptMethod', sort: 'custom', }, - { - label: '主表ID', - field: 'masterId', - sort: 'custom', - form: { - component: 'InputNumber', - value: 0 - }, - }, { label: '截断尾部空格', field: 'trimEnd', diff --git a/src/views/wms/basicDataManage/labelManage/barcode/index.vue b/src/views/wms/basicDataManage/labelManage/barcode/index.vue index c121ac73f..c4ca27dfb 100644 --- a/src/views/wms/basicDataManage/labelManage/barcode/index.vue +++ b/src/views/wms/basicDataManage/labelManage/barcode/index.vue @@ -140,15 +140,6 @@ const buttonBaseClick = (val, item) => { } } -// 根据状态返回该按钮是否显示 -const isShowMainButton = (row,val) => { - if (val.indexOf(row.status) > -1) { - return false - } else { - return true - } -} - // 列表-操作按钮 const butttondata = (row) => { return [ @@ -169,10 +160,9 @@ const buttonTableClick = async (val, row) => { } /** 添加/修改操作 */ -const formRef = ref() +const basicFormRef = ref() const openForm =async (type: string, row?: number) => { - tableData.value = [] // 重置明细数据 - formRef.value.open(type, row) + basicFormRef.value.open(type, row) } /** 详情操作 */ diff --git a/src/views/wms/basicDataManage/labelManage/package/package.data.ts b/src/views/wms/basicDataManage/labelManage/package/package.data.ts index a020305bb..ee4fe85f7 100644 --- a/src/views/wms/basicDataManage/labelManage/package/package.data.ts +++ b/src/views/wms/basicDataManage/labelManage/package/package.data.ts @@ -74,6 +74,9 @@ export const Package = useCrudSchemas(reactive([ sort: 'custom', form: { component: 'InputNumber', + componentProps: { + min: 0 + }, value: 0 }, }, diff --git a/src/views/wms/basicDataManage/orderManage/carrier/carrier.data.ts b/src/views/wms/basicDataManage/orderManage/carrier/carrier.data.ts index b8ff6de91..af0eacf83 100644 --- a/src/views/wms/basicDataManage/orderManage/carrier/carrier.data.ts +++ b/src/views/wms/basicDataManage/orderManage/carrier/carrier.data.ts @@ -114,6 +114,9 @@ export const Carrier = useCrudSchemas(reactive([ field: 'taxRate', form: { component: 'InputNumber', + componentProps: { + min: 0 + } }, sort: 'custom', table: { diff --git a/src/views/wms/basicDataManage/orderManage/owner/owner.data.ts b/src/views/wms/basicDataManage/orderManage/owner/owner.data.ts index b12d27b5d..172172445 100644 --- a/src/views/wms/basicDataManage/orderManage/owner/owner.data.ts +++ b/src/views/wms/basicDataManage/orderManage/owner/owner.data.ts @@ -113,6 +113,9 @@ export const Owner = useCrudSchemas(reactive([ field: 'taxRate', form: { component: 'InputNumber', + componentProps: { + min: 0 + } }, sort: 'custom', table: { diff --git a/src/views/wms/basicDataManage/strategySetting/rule/rule.data.ts b/src/views/wms/basicDataManage/strategySetting/rule/rule.data.ts index 7fa21c823..010d268a4 100644 --- a/src/views/wms/basicDataManage/strategySetting/rule/rule.data.ts +++ b/src/views/wms/basicDataManage/strategySetting/rule/rule.data.ts @@ -24,6 +24,9 @@ export const Rule = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 0 + } }, }, { diff --git a/src/views/wms/basicDataManage/supplierManage/purchaseprice/purchaseprice.data.ts b/src/views/wms/basicDataManage/supplierManage/purchaseprice/purchaseprice.data.ts index f843938e1..8f2c5a1e0 100644 --- a/src/views/wms/basicDataManage/supplierManage/purchaseprice/purchaseprice.data.ts +++ b/src/views/wms/basicDataManage/supplierManage/purchaseprice/purchaseprice.data.ts @@ -75,6 +75,10 @@ export const Purchaseprice = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 0, + precision: 6 + } }, }, { @@ -194,10 +198,10 @@ export const Purchaseprice = useCrudSchemas(reactive([ //表单校验 export const PurchasepriceRules = reactive({ supplierCode: [ - { required: true, message: '请输入供应商代码', trigger: 'blur' } + { required: true, message: '请输入供应商代码', trigger: 'change' } ], itemCode: [ - { required: true, message: '请输入物品代码', trigger: 'blur' } + { required: true, message: '请输入物品代码', trigger: 'change' } ], currency: [ { required: true, message: '请选择货币', trigger: 'change' } diff --git a/src/views/wms/basicDataManage/supplierManage/supplier/supplier.data.ts b/src/views/wms/basicDataManage/supplierManage/supplier/supplier.data.ts index a8f50653c..ac6f51587 100644 --- a/src/views/wms/basicDataManage/supplierManage/supplier/supplier.data.ts +++ b/src/views/wms/basicDataManage/supplierManage/supplier/supplier.data.ts @@ -114,6 +114,9 @@ export const Supplier = useCrudSchemas(reactive([ sort: 'custom', form: { component: 'InputNumber', + componentProps: { + min: 0 + } }, table: { width: 150 diff --git a/src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts b/src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts index b2636459e..8be8202e2 100644 --- a/src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts +++ b/src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts @@ -88,6 +88,9 @@ export const Supplieritem = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 0 + } }, }, { @@ -110,6 +113,10 @@ export const Supplieritem = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 1, + precision: 6 + } }, }, { @@ -132,6 +139,10 @@ export const Supplieritem = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 0, + precision: 6 + } }, }, { @@ -143,6 +154,10 @@ export const Supplieritem = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 0, + precision: 6 + } }, }, { @@ -312,10 +327,10 @@ export const Supplieritem = useCrudSchemas(reactive([ //表单校验 export const SupplieritemRules = reactive({ supplierCode: [ - { required: true, message: '请输入供应商代码', trigger: 'blur' } + { required: true, message: '请输入供应商代码', trigger: 'change' } ], itemCode: [ - { required: true, message: '请输入物料代码', trigger: 'blur' } + { required: true, message: '请输入物料代码', trigger: 'change' } ], packUnit: [ { required: true, message: '请选择供应商包装单位', trigger: 'change' } diff --git a/src/views/wms/basicDataManage/systemSetting/currencyexchange/currencyexchange.data.ts b/src/views/wms/basicDataManage/systemSetting/currencyexchange/currencyexchange.data.ts index fb545ae4f..9ec556cd7 100644 --- a/src/views/wms/basicDataManage/systemSetting/currencyexchange/currencyexchange.data.ts +++ b/src/views/wms/basicDataManage/systemSetting/currencyexchange/currencyexchange.data.ts @@ -40,6 +40,9 @@ export const Currencyexchange = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', + componentProps: { + min: 0 + } }, }, {