mirror of
https://gitee.com/krxd/shuyuan.git
synced 2026-04-08 13:25:54 +08:00
refactor(食材管理): 将产品类型 ID 的数据类型从字符串改为数字
- 将 rules 中 product_type_id 的类型从 'string' 改为 'number' - 将 product 数据中 product_type_id 的初始值从空字符串改为 0
This commit is contained in:
@@ -129,7 +129,7 @@
|
||||
const rules = computed(() => {
|
||||
return {
|
||||
'product_type_id': {
|
||||
type: 'string',
|
||||
type: 'number',
|
||||
required: true,
|
||||
message: t('productTypeIdPlaceholder'),
|
||||
trigger: ['change'],
|
||||
@@ -159,7 +159,7 @@
|
||||
id: "",
|
||||
code:generatedCode("P"),
|
||||
name: "",
|
||||
product_type_id: "",
|
||||
product_type_id: 0,
|
||||
product_type_name: "",
|
||||
spec: "",
|
||||
inventory: "",
|
||||
|
||||
Reference in New Issue
Block a user