|
|
@@ -134,7 +134,15 @@
|
|
|
<FormItem label="商品名称" prop="goodsName">
|
|
|
<Input type="text" v-model="baseInfoForm.goodsName" placeholder="商品名称" clearable style="width: 260px"/>
|
|
|
</FormItem>
|
|
|
-
|
|
|
+ <FormItem label="生产企业" prop="productEnterprise">
|
|
|
+ <Input type="text" v-model="baseInfoForm.productEnterprise" placeholder="生产企业" clearable style="width: 260px"/>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem label="生产批号" prop="productBitchNo">
|
|
|
+ <Input type="text" v-model="baseInfoForm.productBitchNo" placeholder="生产批号" clearable style="width: 260px"/>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem label="过期时间" prop="expireDate">
|
|
|
+ <Date-picker type="date" v-model="baseInfoForm.expireDate" format="yyyy年MM月dd日" placeholder="选择日期" @on-change="handleExpireDate" style="width: 260px"></Date-picker>
|
|
|
+ </FormItem>
|
|
|
<FormItem label="商品卖点" prop="sellingPoint">
|
|
|
<Input v-model="baseInfoForm.sellingPoint" type="textarea" :rows="4" style="width: 260px"/>
|
|
|
</FormItem>
|
|
|
@@ -669,6 +677,12 @@ export default {
|
|
|
brandId: 0,
|
|
|
/** 计量单位 **/
|
|
|
goodsUnit: "",
|
|
|
+ /** 生产批号 **/
|
|
|
+ productBitchNo: "",
|
|
|
+ /** 生产企业 **/
|
|
|
+ productEnterprise: "",
|
|
|
+ /** 过期时间 **/
|
|
|
+ expireDate: "",
|
|
|
/** 商品类型 **/
|
|
|
goodsType: "",
|
|
|
/** 分类路径 **/
|
|
|
@@ -730,6 +744,15 @@ export default {
|
|
|
message: "长度在 3 到 60 个字符",
|
|
|
},
|
|
|
],
|
|
|
+ productEnterprise: [
|
|
|
+ {required: true, message: "请输入生产企业"},
|
|
|
+ ],
|
|
|
+ productBitchNo: [
|
|
|
+ {required: true, message: "请输入生产批号"},
|
|
|
+ ],
|
|
|
+ expireDate: [
|
|
|
+ {required: true, message: "请输入过期时间"},
|
|
|
+ ],
|
|
|
sn: [
|
|
|
{required: true, message: "请输入商品编号"},
|
|
|
{validator: checkSn},
|
|
|
@@ -1585,6 +1608,9 @@ export default {
|
|
|
ids = ids.substring(0, ids.length - 1);
|
|
|
this.baseInfoForm.storeCategoryPath = ids;
|
|
|
},
|
|
|
+ handleExpireDate(value){
|
|
|
+ this.baseInfoForm.expireDate = value;
|
|
|
+ },
|
|
|
/** 添加商品 **/
|
|
|
save() {
|
|
|
this.submitLoading = true;
|