diff --git a/泰额版/Food Labeling Management Code/Yi.Vben5.Vue3/apps/web-antd/src/locales/langs/en-US/foodLabeling.json b/泰额版/Food Labeling Management Code/Yi.Vben5.Vue3/apps/web-antd/src/locales/langs/en-US/foodLabeling.json index e0c8392..c221a5f 100644 --- a/泰额版/Food Labeling Management Code/Yi.Vben5.Vue3/apps/web-antd/src/locales/langs/en-US/foodLabeling.json +++ b/泰额版/Food Labeling Management Code/Yi.Vben5.Vue3/apps/web-antd/src/locales/langs/en-US/foodLabeling.json @@ -47,6 +47,7 @@ "selectLocation": "Select location", "selectCategory": "Select label category", "selectType": "Select label type", + "selectTypeOptional": "Optional — select label type", "selectTemplate": "Select template", "action": "Actions", "labelCodeOptional": "Leave empty to auto-generate", diff --git a/泰额版/Food Labeling Management Code/Yi.Vben5.Vue3/apps/web-antd/src/locales/langs/zh-CN/foodLabeling.json b/泰额版/Food Labeling Management Code/Yi.Vben5.Vue3/apps/web-antd/src/locales/langs/zh-CN/foodLabeling.json index 59aebcb..1d62726 100644 --- a/泰额版/Food Labeling Management Code/Yi.Vben5.Vue3/apps/web-antd/src/locales/langs/zh-CN/foodLabeling.json +++ b/泰额版/Food Labeling Management Code/Yi.Vben5.Vue3/apps/web-antd/src/locales/langs/zh-CN/foodLabeling.json @@ -47,6 +47,7 @@ "selectLocation": "选择门店", "selectCategory": "选择标签分类", "selectType": "选择标签类型", + "selectTypeOptional": "可选,选择标签类型", "selectTemplate": "选择模板", "action": "操作", "labelCodeOptional": "留空则由后端生成", diff --git a/泰额版/Food Labeling Management Code/Yi.Vben5.Vue3/apps/web-antd/src/views/food-labeling/labeling/labels/data.ts b/泰额版/Food Labeling Management Code/Yi.Vben5.Vue3/apps/web-antd/src/views/food-labeling/labeling/labels/data.ts index c87fb8e..8a26490 100644 --- a/泰额版/Food Labeling Management Code/Yi.Vben5.Vue3/apps/web-antd/src/views/food-labeling/labeling/labels/data.ts +++ b/泰额版/Food Labeling Management Code/Yi.Vben5.Vue3/apps/web-antd/src/views/food-labeling/labeling/labels/data.ts @@ -198,12 +198,15 @@ export function modalSchema(options: { component: 'Select', fieldName: 'labelTypeId', label: $t('foodLabeling.labels.labelType'), - rules: 'required', + ...(options.isUpdate ? { rules: 'required' as const } : {}), componentProps: { options: options.typeOptions, showSearch: true, optionFilterProp: 'label', - placeholder: $t('foodLabeling.labels.selectType'), + allowClear: !options.isUpdate, + placeholder: options.isUpdate + ? $t('foodLabeling.labels.selectType') + : $t('foodLabeling.labels.selectTypeOptional'), onChange: (v: string) => options.onLabelTypeIdChange?.(v), }, }, diff --git a/泰额版/Food Labeling Management Code/Yi.Vben5.Vue3/apps/web-antd/src/views/food-labeling/labeling/labels/label-modal.vue b/泰额版/Food Labeling Management Code/Yi.Vben5.Vue3/apps/web-antd/src/views/food-labeling/labeling/labels/label-modal.vue index a2850ad..51779bb 100644 --- a/泰额版/Food Labeling Management Code/Yi.Vben5.Vue3/apps/web-antd/src/views/food-labeling/labeling/labels/label-modal.vue +++ b/泰额版/Food Labeling Management Code/Yi.Vben5.Vue3/apps/web-antd/src/views/food-labeling/labeling/labels/label-modal.vue @@ -274,7 +274,7 @@ function formToPayload(values: Record) { templateCode: String(values.templateCode ?? '').trim(), locationId: String(values.locationId ?? '').trim(), labelCategoryId: String(values.labelCategoryId ?? '').trim(), - labelTypeId: String(values.labelTypeId ?? '').trim(), + labelTypeId: String(values.labelTypeId ?? '').trim() || null, productIds: productId ? [productId] : [], labelInfoJson: null, state: values.state !== false, diff --git a/美国版/Food Labeling Management App UniApp/.env.development b/美国版/Food Labeling Management App UniApp/.env.development index 03e1a64..f179b1d 100644 --- a/美国版/Food Labeling Management App UniApp/.env.development +++ b/美国版/Food Labeling Management App UniApp/.env.development @@ -1,2 +1,2 @@ # H5 / App 开发:直连本地后端(按本机 IP 与端口修改) -VITE_US_API_BASE=http://192.168.31.89:19001 +VITE_US_API_BASE=http://192.168.31.88:19001 diff --git a/美国版/Food Labeling Management App UniApp/.env.example b/美国版/Food Labeling Management App UniApp/.env.example index 4324ae4..ed624c9 100644 --- a/美国版/Food Labeling Management App UniApp/.env.example +++ b/美国版/Food Labeling Management App UniApp/.env.example @@ -1,2 +1,2 @@ # 复制为 .env.development(开发)或 .env.production(打包),按环境填写后端根地址(不含末尾 /) -VITE_US_API_BASE=http://192.168.31.89:19001 +VITE_US_API_BASE=http://192.168.31.88:19001 diff --git a/美国版/Food Labeling Management App UniApp/src/pages/labels/bluetooth.vue b/美国版/Food Labeling Management App UniApp/src/pages/labels/bluetooth.vue index f25d003..22f5eab 100644 --- a/美国版/Food Labeling Management App UniApp/src/pages/labels/bluetooth.vue +++ b/美国版/Food Labeling Management App UniApp/src/pages/labels/bluetooth.vue @@ -28,7 +28,7 @@ Bluetooth - - + + Print Route (Debug) @@ -92,7 +92,7 @@ -