提交 9d32f836 编写于 作者: tao.wu's avatar tao.wu

修改bug

上级 84ba7c43
此差异已折叠。
...@@ -24,12 +24,12 @@ const form2 = { ...@@ -24,12 +24,12 @@ const form2 = {
hospitalName: '', hospitalName: '',
hospitalType: '', hospitalType: '',
hospitalId: 0, hospitalId: 0,
goodsId: 0, // 新增时传0,更新时必需>0
medicalServiceId: 0, // 新增时传0,更新时必需>0 medicalServiceId: 0, // 新增时传0,更新时必需>0
goodsCheckImages: [], goodsCheckImages: [],
checkItem: '', checkItem: '',
checkStandard: '', checkStandard: '',
useCount: 0, useCount: 1,
checkType: '', checkType: '',
suitable: '', suitable: '',
suitableStr: '', suitableStr: '',
...@@ -43,9 +43,8 @@ const form = { ...@@ -43,9 +43,8 @@ const form = {
// categoryId:'', // categoryId:'',
// otc:false, // otc:false,
// discountPrice:'', // discountPrice:'',
// stock:0,
// goodsStock:0,
// specificationImages:[], // specificationImages:[],
// goodsId: 0, // 新增时传0,更新时必需>0
id: 0, id: 0,
goodsName:'', goodsName:'',
goodsDescription:'', goodsDescription:'',
...@@ -58,7 +57,8 @@ const form = { ...@@ -58,7 +57,8 @@ const form = {
storeId: '', storeId: '',
optPrice:'', optPrice:'',
goodsStock:0, goodsStock:0,
stock: 0 stock: 0,
externalGoodsCode: ''
}; };
......
...@@ -23,6 +23,10 @@ const checkProjectStr = (rule, value, callback) => { ...@@ -23,6 +23,10 @@ const checkProjectStr = (rule, value, callback) => {
}; };
const rules1 = { const rules1 = {
barCode: [
{ required: true, message: "请输入条形码", trigger: "submit" },
{ validator: checkBarcode, trigger: "submit" }
],
medicCommonName:[ medicCommonName:[
{ required: true, message: "请输入商品通用名称", trigger: "blur" } { required: true, message: "请输入商品通用名称", trigger: "blur" }
], ],
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册