校验规则

dev2.0.1
anthonywj 1 year ago
parent 653903b46b
commit 9b0735300f

@ -32,91 +32,91 @@
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="12" class="el-col">
<el-form-item label="产品名称:">
<el-form-item label="产品名称:" prop="name">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.name"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="规格型号:">
<el-form-item label="规格型号:" prop="spec">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.spec"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="计量单位:">
<el-form-item label="计量单位:" prop="measname">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.measname"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="生产企业:">
<el-form-item label="生产企业:" prop="manufactory">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.manufactory"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="注册证号:">
<el-form-item label="注册证号:" prop="registerNo">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.registerNo"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="医疗器械注册人:">
<el-form-item label="医疗器械注册人:" prop="ylqxzcrbarmc">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.ylqxzcrbarmc"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="注册人英文名称:">
<el-form-item label="注册人英文名称:" prop="ylqxzcrbarywmc">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.ylqxzcrbarywmc"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="产品类别:">
<el-form-item label="产品类别:" prop="cplb">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.cplb"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="分类编码:">
<el-form-item label="分类编码:" prop="flbm">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.flbm"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="商品条码:">
<el-form-item label="商品条码:" prop="sptm">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.sptm"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="医保编码:">
<el-form-item label="医保编码:" prop="ybbm">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.ybbm"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="统一社会信用号:">
<el-form-item label="统一社会信用号:" prop="tyshxydm">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.tyshxydm"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="器械类别:">
<el-form-item label="器械类别:" prop="qxlb">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.qxlb"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="el-col">
<el-form-item label="产品价格:">
<el-form-item label="产品价格:" prop="price">
<el-input style="width: 90%" size="small" placeholder="请输入内容"
v-model.trim="newProductData.price"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="采购类型">
<el-form-item label="采购类型" prop="purType">
<el-select
v-model="newProductData.purType"
placeholder="请选择"
@ -130,7 +130,7 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="产品属性">
<el-form-item label="产品属性" prop="attributeType">
<el-select
v-model="newProductData.attributeType"
placeholder="请选择"
@ -144,7 +144,7 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="耗材类别">
<el-form-item label="耗材类别" prop="hcType">
<el-select
v-model="newProductData.hcType"
placeholder="请选择"
@ -158,7 +158,7 @@
</el-col>
<el-col :span="12" v-if="productRemarkSet.remarkEnable1">
<el-form-item :label="productRemarkSet.remarkTitle1+':'">
<el-form-item :label="productRemarkSet.remarkTitle1+':'" prop="basicPrductRemak1">
<el-input
style="width: 90%"
size="small"
@ -168,7 +168,7 @@
</el-form-item>
</el-col>
<el-col :span="12" v-if="productRemarkSet.remarkEnable2">
<el-form-item :label="productRemarkSet.remarkTitle2+':'">
<el-form-item :label="productRemarkSet.remarkTitle2+':'" prop="basicPrductRemak2">
<el-input
style="width: 90%"
size="small"
@ -178,7 +178,7 @@
</el-form-item>
</el-col>
<el-col :span="12" v-if="productRemarkSet.remarkEnable3">
<el-form-item :label="productRemarkSet.remarkTitle3+':'">
<el-form-item :label="productRemarkSet.remarkTitle3+':'" prop="basicPrductRemak3">
<el-input
style="width: 90%"
size="small"
@ -188,7 +188,7 @@
</el-form-item>
</el-col>
<el-col :span="12" v-if="productRemarkSet.remarkEnable4">
<el-form-item :label="productRemarkSet.remarkTitle4+':'">
<el-form-item :label="productRemarkSet.remarkTitle4+':'" prop="basicPrductRemak4">
<el-input
style="width: 90%"
size="small"
@ -198,7 +198,7 @@
</el-form-item>
</el-col>
<el-col :span="12" v-if="productRemarkSet.remarkEnable5">
<el-form-item :label="productRemarkSet.remarkTitle5+':'">
<el-form-item :label="productRemarkSet.remarkTitle5+':'" prop="basicPrductRemak5">
<el-input
style="width: 90%"
size="small"
@ -208,7 +208,7 @@
</el-form-item>
</el-col>
<el-col :span="12" v-if="productRemarkSet.remarkEnable6">
<el-form-item :label="productRemarkSet.remarkTitle6+':'">
<el-form-item :label="productRemarkSet.remarkTitle6+':'" prop="basicPrductRemak6">
<el-select
v-model="newProductData.basicPrductRemak6"
placeholder="请选择"
@ -221,7 +221,7 @@
</el-form-item>
</el-col>
<el-col :span="12" v-if="productRemarkSet.remarkEnable7">
<el-form-item :label="productRemarkSet.remarkTitle7+':'">
<el-form-item :label="productRemarkSet.remarkTitle7+':'" prop="basicPrductRemak7">
<el-select
v-model="newProductData.basicPrductRemak7"
filterable
@ -245,7 +245,7 @@
</el-form-item>
</el-col>
<el-col :span="12" v-if="productRemarkSet.remarkEnable8">
<el-form-item :label="productRemarkSet.remarkTitle8+':'">
<el-form-item :label="productRemarkSet.remarkTitle8+':'" prop="basicPrductRemak8">
<el-select
v-model="newProductData.basicPrductRemak8"
filterable
@ -271,7 +271,7 @@
</el-row>
<el-row>
<el-col :span="23" class="el-col" style="margin-top: 12px">
<el-form-item label="产品描述:">
<el-form-item label="产品描述:" prop="cpms">
<el-input style="width: 100%" type="textarea" size="mini" rows="4" placeholder="请输入内容"
v-model.trim="newProductData.cpms"></el-input>
</el-form-item>
@ -327,7 +327,14 @@ export default {
cplx: null,
cpms: null,
thirdSysFk: null,
cpdls: null
purType: null,
attributeType: null,
basicPrductRemak6: null,
basicPrductRemak8: null,
basicPrductRemak7: null,
price: null,
},
thirdSys: [],
hsflOptions: [],
@ -343,13 +350,85 @@ export default {
remarkTitle8: "备注字段8",
},
rules: {
customerId: [
name: [{required: true, message: "请输入产品名称", trigger: 'blur'}],
spec: [
{
required: true,
message: "请输入规格型号",
trigger: "blur"
}
],
measname: [
{
required: true,
message: "请输入计量单位",
trigger: "blur"
}
],
manufactory: [
{
required: true,
message: "请输入生产企业",
trigger: "blur"
}
],
registerNo: [
{
required: true,
message: "请输入注册证号",
trigger: "blur"
}
],
ybbm: [
{
required: true,
message: "请输入医保编码",
trigger: "blur"
}
],
price: [
{
required: true,
message: "请选择供应商",
message: "请输入产品价格",
trigger: "blur"
}
],
purType: [
{
required: true,
message: "请选择采购类型",
trigger: "change"
}
],
attributeType: [
{
required: true,
message: "请选择产品属性",
trigger: "change"
}
],
basicPrductRemak6: [
{
required: true,
message: "请选择是否收费",
trigger: "change"
}
],
basicPrductRemak7: [
{
required: true,
message: "请选择物资类别",
trigger: "change"
}
],
// basicPrductRemak8: [
// {
// required: this.newProductData!=null && this.newProductData.basicPrductRemak6 != null,
// message: "",
// trigger: "change"
// }
// ]
}
}

Loading…
Cancel
Save