Commit fedc4a63 authored by dragondean@qq.com's avatar dragondean@qq.com

批量改价单价模式必填校验

parent 0313d99f
...@@ -221,7 +221,6 @@ export default { ...@@ -221,7 +221,6 @@ export default {
specialProducts: [], specialProducts: [],
// priceStepList: [{},{}], // 阶梯价格 // priceStepList: [{},{}], // 阶梯价格
// specialList:[], // 特殊需求,默认四个 // specialList:[], // 特殊需求,默认四个
rules: {},
product: null, product: null,
/* productType: null, */ /* productType: null, */
currencyList: [], currencyList: [],
...@@ -235,6 +234,11 @@ export default { ...@@ -235,6 +234,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()
......
...@@ -155,7 +155,6 @@ export default { ...@@ -155,7 +155,6 @@ export default {
isAllProduct: false, // 是否全部商品 isAllProduct: false, // 是否全部商品
isAllFilteredProduct: false, // 是否勾選全部搜索結果 isAllFilteredProduct: false, // 是否勾選全部搜索結果
specialProducts: [], specialProducts: [],
rules: {},
product: null, product: null,
currencyList: [], currencyList: [],
unitList: [], unitList: [],
...@@ -166,6 +165,11 @@ export default { ...@@ -166,6 +165,11 @@ export default {
} }
}, },
computed: { computed: {
rules(){
return {
priceType:[{required: true, message: this.$t("请选择单价模式")}]
}
},
// 判断是否空值 // 判断是否空值
isEmpty() { isEmpty() {
return (content) => { return (content) => {
......
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