Browse Source

基础数据管理修改计步器设置及查询弹窗字段校验

master
陈薪名 1 year ago
parent
commit
07c17efbe8
  1. 3
      src/views/wms/basicDataManage/customerManage/customer/customer.data.ts
  2. 15
      src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts
  3. 4
      src/views/wms/basicDataManage/customerManage/saleprice/saleprice.data.ts
  4. 6
      src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts
  5. 1
      src/views/wms/basicDataManage/documentSetting/businesstype/index.vue
  6. 3
      src/views/wms/basicDataManage/documentSetting/jobsetting/jobsetting.data.ts
  7. 2
      src/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data.ts
  8. 4
      src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts
  9. 30
      src/views/wms/basicDataManage/factoryModeling/location/location.data.ts
  10. 4
      src/views/wms/basicDataManage/factoryModeling/locationgroup/locationgroup.data.ts
  11. 4
      src/views/wms/basicDataManage/factoryModeling/process/process.data.ts
  12. 2
      src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts
  13. 4
      src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts
  14. 8
      src/views/wms/basicDataManage/itemManage/bom/bom.data.ts
  15. 3
      src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts
  16. 24
      src/views/wms/basicDataManage/itemManage/itempackaging/itempackaging.data.ts
  17. 1
      src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue
  18. 15
      src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts
  19. 4
      src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts
  20. 18
      src/views/wms/basicDataManage/labelManage/barcode/barcode.data.ts
  21. 14
      src/views/wms/basicDataManage/labelManage/barcode/index.vue
  22. 3
      src/views/wms/basicDataManage/labelManage/package/package.data.ts
  23. 3
      src/views/wms/basicDataManage/orderManage/carrier/carrier.data.ts
  24. 3
      src/views/wms/basicDataManage/orderManage/owner/owner.data.ts
  25. 3
      src/views/wms/basicDataManage/strategySetting/rule/rule.data.ts
  26. 8
      src/views/wms/basicDataManage/supplierManage/purchaseprice/purchaseprice.data.ts
  27. 3
      src/views/wms/basicDataManage/supplierManage/supplier/supplier.data.ts
  28. 19
      src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts
  29. 3
      src/views/wms/basicDataManage/systemSetting/currencyexchange/currencyexchange.data.ts

3
src/views/wms/basicDataManage/customerManage/customer/customer.data.ts

@ -117,6 +117,9 @@ export const Customer = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0
}
}, },
}, },
{ {

15
src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts

@ -54,6 +54,9 @@ export const Customeritem = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0
}
}, },
}, },
{ {
@ -76,6 +79,10 @@ export const Customeritem = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
}, },
}, },
{ {
@ -98,6 +105,10 @@ export const Customeritem = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0,
precision: 6
}
}, },
}, },
{ {
@ -109,6 +120,10 @@ export const Customeritem = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
}, },
}, },
{ {

4
src/views/wms/basicDataManage/customerManage/saleprice/saleprice.data.ts

@ -46,6 +46,10 @@ export const Saleprice = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
}, },
}, },
{ {

6
src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts

@ -57,6 +57,12 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
form: {
component: 'SelectV2',
componentProps: {
multiple: true
}
}
}, },
{ {
label: '出库库位类型范围', label: '出库库位类型范围',

1
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 ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
//
defineOptions({ name: 'Businesstype' }) defineOptions({ name: 'Businesstype' })
const message = useMessage() // const message = useMessage() //

3
src/views/wms/basicDataManage/documentSetting/jobsetting/jobsetting.data.ts

@ -25,6 +25,9 @@ export const Jobsetting = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0
}
}, },
}, },
{ {

2
src/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data.ts

@ -199,7 +199,7 @@ export const AreaRules = reactive({
{ required: true, message: '请输入代码', trigger: 'blur' } { required: true, message: '请输入代码', trigger: 'blur' }
], ],
warehouseCode: [ warehouseCode: [
{ required: true, message: '请输入仓库代码', trigger: 'blur' } { required: true, message: '请输入仓库代码', trigger: 'change' }
], ],
isFunctional: [ isFunctional: [
{ required: true, message: '请选择是否是功能区', trigger: 'change' } { required: true, message: '请选择是否是功能区', trigger: 'change' }

4
src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts

@ -237,10 +237,10 @@ export const DockRules = reactive({
{ required: true, message: '请输入类型', trigger: 'change' } { required: true, message: '请输入类型', trigger: 'change' }
], ],
warehouseCode: [ warehouseCode: [
{ required: true, message: '请输入仓库代码', trigger: 'blur' } { required: true, message: '请输入仓库代码', trigger: 'change' }
], ],
defaultLocationCode: [ defaultLocationCode: [
{ required: true, message: '请输入默认库位代码', trigger: 'blur' } { required: true, message: '请输入默认库位代码', trigger: 'change' }
], ],
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }

30
src/views/wms/basicDataManage/factoryModeling/location/location.data.ts

@ -139,6 +139,10 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
}, },
}, },
{ {
@ -150,6 +154,10 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
}, },
}, },
{ {
@ -161,6 +169,10 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
}, },
}, },
{ {
@ -172,6 +184,10 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
}, },
}, },
{ {
@ -183,6 +199,10 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
}, },
}, },
{ {
@ -194,6 +214,10 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
}, },
}, },
{ {
@ -324,13 +348,13 @@ export const LocationRules = reactive({
{ required: true, message: '请输入代码', trigger: 'blur' } { required: true, message: '请输入代码', trigger: 'blur' }
], ],
warehouseCode: [ warehouseCode: [
{ required: true, message: '请输入仓库代码', trigger: 'blur' } { required: true, message: '请输入仓库代码', trigger: 'change' }
], ],
areaCode: [ areaCode: [
{ required: true, message: '请输入库区代码', trigger: 'blur' } { required: true, message: '请输入库区代码', trigger: 'change' }
], ],
locationGroupCode: [ locationGroupCode: [
{ required: true, message: '请输入库位组代码', trigger: 'blur' } { required: true, message: '请输入库位组代码', trigger: 'change' }
], ],
erpLocationCode: [ erpLocationCode: [
{ required: true, message: '请选择ERP库位代码', trigger: 'change' } { required: true, message: '请选择ERP库位代码', trigger: 'change' }

4
src/views/wms/basicDataManage/factoryModeling/locationgroup/locationgroup.data.ts

@ -191,10 +191,10 @@ export const LocationgroupRules = reactive({
{ required: true, message: '请输入代码', trigger: 'blur' } { required: true, message: '请输入代码', trigger: 'blur' }
], ],
warehouseCode: [ warehouseCode: [
{ required: true, message: '请输入仓库代码', trigger: 'blur' } { required: true, message: '请输入仓库代码', trigger: 'change' }
], ],
areaCode: [ areaCode: [
{ required: true, message: '请输入库区代码', trigger: 'blur' } { required: true, message: '请输入库区代码', trigger: 'change' }
], ],
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }

4
src/views/wms/basicDataManage/factoryModeling/process/process.data.ts

@ -202,10 +202,10 @@ export const ProcessRules = reactive({
{ required: true, message: '请输入代码', trigger: 'blur' } { required: true, message: '请输入代码', trigger: 'blur' }
], ],
workshopCode: [ workshopCode: [
{ required: true, message: '请输入车间代码', trigger: 'blur' } { required: true, message: '请输入车间代码', trigger: 'change' }
], ],
productionLineCode: [ productionLineCode: [
{ required: true, message: '请输入生产线代码', trigger: 'blur' } { required: true, message: '请输入生产线代码', trigger: 'change' }
], ],
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }

2
src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts

@ -221,7 +221,7 @@ export const ProductionlineRules = reactive({
{ required: true, message: '请输入代码', trigger: 'blur' } { required: true, message: '请输入代码', trigger: 'blur' }
], ],
workshopCode: [ workshopCode: [
{ required: true, message: '请输入车间代码', trigger: 'blur' } { required: true, message: '请输入车间代码', trigger: 'change' }
], ],
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }

4
src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts

@ -243,10 +243,10 @@ export const WorkstationRules = reactive({
{ required: true, message: '请输入代码', trigger: 'blur' } { required: true, message: '请输入代码', trigger: 'blur' }
], ],
workshopCode: [ workshopCode: [
{ required: true, message: '请输入车间代码', trigger: 'blur' } { required: true, message: '请输入车间代码', trigger: 'change' }
], ],
productionLineCode: [ productionLineCode: [
{ required: true, message: '请输入生产线代码', trigger: 'blur' } { required: true, message: '请输入生产线代码', trigger: 'change' }
], ],
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }

8
src/views/wms/basicDataManage/itemManage/bom/bom.data.ts

@ -70,6 +70,10 @@ export const Bom = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
}, },
table: { table: {
width: 120 width: 120
@ -196,10 +200,10 @@ export const Bom = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验 //表单校验
export const BomRules = reactive({ export const BomRules = reactive({
productItemCode: [ productItemCode: [
{ required: true, message: '请输入父物料代码', trigger: 'blur' } { required: true, message: '请输入父物料代码', trigger: 'change' }
], ],
componentItemCode: [ componentItemCode: [
{ required: true, message: '请输入子物料代码', trigger: 'blur' } { required: true, message: '请输入子物料代码', trigger: 'change' }
], ],
componentUom: [ componentUom: [
{ required: true, message: '请选择子物料计量单位', trigger: 'change' } { required: true, message: '请选择子物料计量单位', trigger: 'change' }

3
src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts

@ -303,6 +303,9 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0
}
}, },
}, },
{ {

24
src/views/wms/basicDataManage/itemManage/itempackaging/itempackaging.data.ts

@ -64,6 +64,10 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
} }
}, },
{ {
@ -86,6 +90,10 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0,
precision: 6
}
} }
}, },
{ {
@ -97,6 +105,10 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0,
precision: 6
}
} }
}, },
{ {
@ -119,6 +131,10 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0,
precision: 6
}
} }
}, },
{ {
@ -140,6 +156,10 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0,
precision: 6
}
} }
}, },
{ {
@ -236,9 +256,9 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
// 表单校验 // 表单校验
export const ItempackagingRules = reactive({ export const ItempackagingRules = reactive({
itemCode: [{ required: true, message: '物品代码不能为空', trigger: 'blur' }], itemCode: [{ required: true, message: '物品代码不能为空', trigger: 'change' }],
uom: [{ required: true, message: '计量单位不能为空', trigger: 'change' }], uom: [{ required: true, message: '计量单位不能为空', trigger: 'change' }],
stdPackUnit: [{ 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' }] available: [{ required: true, message: '是否可用不能为空', trigger: 'change' }]
}) })

1
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 ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
//线
defineOptions({ name: 'Productionlineitem' }) defineOptions({ name: 'Productionlineitem' })
const message = useMessage() // const message = useMessage() //

15
src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts

@ -141,14 +141,7 @@ export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label:'备注', label:'备注',
field: 'remark', field: 'remark',
isTable: false, isTable: false
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true,
searchListPlaceholder: '备注22222222'
}
}
}, },
{ {
label: '创建时间', label: '创建时间',
@ -180,13 +173,13 @@ export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验 //表单校验
export const ProductionlineitemRules = reactive({ export const ProductionlineitemRules = reactive({
fgLocationCode: [ fgLocationCode: [
{ required: true, message: '请输入完工收货库位', trigger: 'blur' } { required: true, message: '请输入完工收货库位', trigger: 'change' }
], ],
productionLineCode: [ productionLineCode: [
{ required: true, message: '请输入产线代码', trigger: 'blur' } { required: true, message: '请输入产线代码', trigger: 'change' }
], ],
itemCode: [ itemCode: [
{ required: true, message: '请输入物品代码', trigger: 'blur' } { required: true, message: '请输入物品代码', trigger: 'change' }
], ],
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }

4
src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts

@ -166,10 +166,10 @@ export const Stdcostprice = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验 //表单校验
export const StdcostpriceRules = reactive({ export const StdcostpriceRules = reactive({
supplierCode: [ supplierCode: [
{ required: true, message: '请输入供应商代码', trigger: 'blur' } { required: true, message: '请输入供应商代码', trigger: 'change' }
], ],
itemCode: [ itemCode: [
{ required: true, message: '请输入物料代码', trigger: 'blur' } { required: true, message: '请输入物料代码', trigger: 'change' }
], ],
currency: [ currency: [
{ required: true, message: '请选择货币', trigger: 'change' } { required: true, message: '请选择货币', trigger: 'change' }

18
src/views/wms/basicDataManage/labelManage/barcode/barcode.data.ts

@ -42,6 +42,9 @@ export const Barcode = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0
},
value: 0 value: 0
}, },
}, },
@ -51,6 +54,9 @@ export const Barcode = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0
},
value: 0 value: 0
}, },
}, },
@ -60,6 +66,9 @@ export const Barcode = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0
},
value: 0 value: 0
}, },
}, },
@ -78,15 +87,6 @@ export const Barcode = useCrudSchemas(reactive<CrudSchema[]>([
field: 'encyptMethod', field: 'encyptMethod',
sort: 'custom', sort: 'custom',
}, },
{
label: '主表ID',
field: 'masterId',
sort: 'custom',
form: {
component: 'InputNumber',
value: 0
},
},
{ {
label: '截断尾部空格', label: '截断尾部空格',
field: 'trimEnd', field: 'trimEnd',

14
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) => { const butttondata = (row) => {
return [ return [
@ -169,10 +160,9 @@ const buttonTableClick = async (val, row) => {
} }
/** 添加/修改操作 */ /** 添加/修改操作 */
const formRef = ref() const basicFormRef = ref()
const openForm =async (type: string, row?: number) => { const openForm =async (type: string, row?: number) => {
tableData.value = [] // basicFormRef.value.open(type, row)
formRef.value.open(type, row)
} }
/** 详情操作 */ /** 详情操作 */

3
src/views/wms/basicDataManage/labelManage/package/package.data.ts

@ -74,6 +74,9 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0
},
value: 0 value: 0
}, },
}, },

3
src/views/wms/basicDataManage/orderManage/carrier/carrier.data.ts

@ -114,6 +114,9 @@ export const Carrier = useCrudSchemas(reactive<CrudSchema[]>([
field: 'taxRate', field: 'taxRate',
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0
}
}, },
sort: 'custom', sort: 'custom',
table: { table: {

3
src/views/wms/basicDataManage/orderManage/owner/owner.data.ts

@ -113,6 +113,9 @@ export const Owner = useCrudSchemas(reactive<CrudSchema[]>([
field: 'taxRate', field: 'taxRate',
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0
}
}, },
sort: 'custom', sort: 'custom',
table: { table: {

3
src/views/wms/basicDataManage/strategySetting/rule/rule.data.ts

@ -24,6 +24,9 @@ export const Rule = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0
}
}, },
}, },
{ {

8
src/views/wms/basicDataManage/supplierManage/purchaseprice/purchaseprice.data.ts

@ -75,6 +75,10 @@ export const Purchaseprice = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0,
precision: 6
}
}, },
}, },
{ {
@ -194,10 +198,10 @@ export const Purchaseprice = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验 //表单校验
export const PurchasepriceRules = reactive({ export const PurchasepriceRules = reactive({
supplierCode: [ supplierCode: [
{ required: true, message: '请输入供应商代码', trigger: 'blur' } { required: true, message: '请输入供应商代码', trigger: 'change' }
], ],
itemCode: [ itemCode: [
{ required: true, message: '请输入物品代码', trigger: 'blur' } { required: true, message: '请输入物品代码', trigger: 'change' }
], ],
currency: [ currency: [
{ required: true, message: '请选择货币', trigger: 'change' } { required: true, message: '请选择货币', trigger: 'change' }

3
src/views/wms/basicDataManage/supplierManage/supplier/supplier.data.ts

@ -114,6 +114,9 @@ export const Supplier = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0
}
}, },
table: { table: {
width: 150 width: 150

19
src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts

@ -88,6 +88,9 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0
}
}, },
}, },
{ {
@ -110,6 +113,10 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
}, },
}, },
{ {
@ -132,6 +139,10 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0,
precision: 6
}
}, },
}, },
{ {
@ -143,6 +154,10 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0,
precision: 6
}
}, },
}, },
{ {
@ -312,10 +327,10 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验 //表单校验
export const SupplieritemRules = reactive({ export const SupplieritemRules = reactive({
supplierCode: [ supplierCode: [
{ required: true, message: '请输入供应商代码', trigger: 'blur' } { required: true, message: '请输入供应商代码', trigger: 'change' }
], ],
itemCode: [ itemCode: [
{ required: true, message: '请输入物料代码', trigger: 'blur' } { required: true, message: '请输入物料代码', trigger: 'change' }
], ],
packUnit: [ packUnit: [
{ required: true, message: '请选择供应商包装单位', trigger: 'change' } { required: true, message: '请选择供应商包装单位', trigger: 'change' }

3
src/views/wms/basicDataManage/systemSetting/currencyexchange/currencyexchange.data.ts

@ -40,6 +40,9 @@ export const Currencyexchange = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: {
min: 0
}
}, },
}, },
{ {

Loading…
Cancel
Save