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

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

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