diff --git a/src/views/order/components/billOfLading.vue b/src/views/order/components/billOfLading.vue index fa0c4f0..4e64fed 100644 --- a/src/views/order/components/billOfLading.vue +++ b/src/views/order/components/billOfLading.vue @@ -110,7 +110,7 @@ - 元/吨 + diff --git a/src/views/product/components/create.vue b/src/views/product/components/create.vue index 7d8fda4..34d71e0 100644 --- a/src/views/product/components/create.vue +++ b/src/views/product/components/create.vue @@ -87,7 +87,7 @@ > 元/吨 - + { + if (!Boolean(Number(value))) { + callback(new Error('预约提货量不能为空或零')); + } else { + callback(); + } + }; return { customList: [], form: { @@ -191,6 +198,9 @@ export default { enableMark: [ { required: true, message: "请选择启用状态", trigger: "change" }, ], + preQuantity:[ + { required: true, validator:validatePass, trigger: "blur" } + ], productType: [ { required: true, message: "请选择产品类型", trigger: "change" }, ], diff --git a/src/views/product/index.vue b/src/views/product/index.vue index e58a29a..df58639 100644 --- a/src/views/product/index.vue +++ b/src/views/product/index.vue @@ -174,7 +174,7 @@ - + diff --git a/src/views/refineryCenter/components/billOfLading.vue b/src/views/refineryCenter/components/billOfLading.vue index 25a3ace..42247d7 100644 --- a/src/views/refineryCenter/components/billOfLading.vue +++ b/src/views/refineryCenter/components/billOfLading.vue @@ -110,7 +110,7 @@ - 元/吨 +