Commit ae99d146 authored by lanbaoming's avatar lanbaoming

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

parent 3d3d1771
......@@ -317,11 +317,7 @@ export default {
specialProducts: [],
// priceStepList: [{},{}], // 阶梯价格
// specialList:[], // 特殊需求,默认四个
rules() {
return {
priceType: [{ required: true, message: this.$t("请选择单价模式") }],
};
},
rules() {},
product: null,
/* productType: null, */
currencyList: [],
......@@ -335,6 +331,11 @@ export default {
};
},
computed: {
rules() {
return {
priceType: [{ required: true, message: this.$t("请选择单价模式") }],
};
},
// 类型,默认海运sea,air表示空运
type() {
let type = this.$route.path.split(/[-_]/).pop();
......@@ -673,6 +674,14 @@ export default {
if (!valid) {
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 (
......
......@@ -232,11 +232,7 @@ export default {
isAllProduct: false, // 是否全部商品
isAllFilteredProduct: false, // 是否勾選全部搜索結果
specialProducts: [],
rules() {
return {
priceType: [{ required: true, message: this.$t("请选择单价模式") }],
};
},
rules() {},
product: null,
currencyList: [],
unitList: [],
......@@ -445,6 +441,14 @@ export default {
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 (
!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