商品信息
parent
e7dda3a38a
commit
d6b727d47b
|
@ -320,13 +320,10 @@ import ImageUpload from "@/components/ImageUpload"
|
||||||
import {listBrand} from "@/api/product/brand"
|
import {listBrand} from "@/api/product/brand"
|
||||||
import { listRule } from "@/api/product/rule"
|
import { listRule } from "@/api/product/rule"
|
||||||
import {listAll7 } from "@/api/product/type"
|
import {listAll7 } from "@/api/product/type"
|
||||||
import data from "@/views/system/dict/data.vue";
|
|
||||||
import item from "@/layout/components/Sidebar/Item.vue";
|
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components:{ImageUpload},
|
components:{ImageUpload},
|
||||||
name: "Info",
|
name: "info",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
options: [{
|
options: [{
|
||||||
|
@ -402,9 +399,12 @@ export default {
|
||||||
form: {},
|
form: {},
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
// brandId: [
|
name: [
|
||||||
// { required: true, message: "商品品牌不能为空", trigger: "blur" }
|
{ required: true, message: "商品名称不能为空", trigger: "blur" }
|
||||||
// ]
|
],
|
||||||
|
unit: [
|
||||||
|
{ required: true, message: "单位不能为空", trigger: "blur" }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue