Commit ae99d146 authored by lanbaoming's avatar lanbaoming

lanbm 2024-04-12添加单价模式校验

parent 3d3d1771
...@@ -317,11 +317,7 @@ export default { ...@@ -317,11 +317,7 @@ export default {
specialProducts: [], specialProducts: [],
// priceStepList: [{},{}], // 阶梯价格 // priceStepList: [{},{}], // 阶梯价格
// specialList:[], // 特殊需求,默认四个 // specialList:[], // 特殊需求,默认四个
rules() { rules() {},
return {
priceType: [{ required: true, message: this.$t("请选择单价模式") }],
};
},
product: null, product: null,
/* productType: null, */ /* productType: null, */
currencyList: [], currencyList: [],
...@@ -335,6 +331,11 @@ export default { ...@@ -335,6 +331,11 @@ export default {
}; };
}, },
computed: { computed: {
rules() {
return {
priceType: [{ required: true, message: this.$t("请选择单价模式") }],
};
},
// 类型,默认海运sea,air表示空运 // 类型,默认海运sea,air表示空运
type() { type() {
let type = this.$route.path.split(/[-_]/).pop(); let type = this.$route.path.split(/[-_]/).pop();
...@@ -673,6 +674,14 @@ export default { ...@@ -673,6 +674,14 @@ export default {
if (!valid) { if (!valid) {
return; return;
} }
//lanbm 2024-04-12 添加单价模式校验
if (this.form.priceType == 0 || this.form.priceType == 1) {
} else {
this.$message.error(this.$t("请选择单价模式"));
return;
}
//end lanbm 2024-04-12 添加单价模式校验
// 只有新增的时候做判断 // 只有新增的时候做判断
if ( if (
......
...@@ -232,11 +232,7 @@ export default { ...@@ -232,11 +232,7 @@ export default {
isAllProduct: false, // 是否全部商品 isAllProduct: false, // 是否全部商品
isAllFilteredProduct: false, // 是否勾選全部搜索結果 isAllFilteredProduct: false, // 是否勾選全部搜索結果
specialProducts: [], specialProducts: [],
rules() { rules() {},
return {
priceType: [{ required: true, message: this.$t("请选择单价模式") }],
};
},
product: null, product: null,
currencyList: [], currencyList: [],
unitList: [], unitList: [],
...@@ -445,6 +441,14 @@ export default { ...@@ -445,6 +441,14 @@ export default {
return; return;
} }
//lanbm 2024-04-12 添加单价模式校验
if (this.form.priceType == 0 || this.form.priceType == 1) {
} else {
this.$message.error(this.$t("请选择单价模式"));
return;
}
//end lanbm 2024-04-12 添加单价模式校验
// 只有新增的时候做判断 // 只有新增的时候做判断
if ( if (
!this.$route.query.ids && !this.$route.query.ids &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment