mrzcc
2020-03-06 ecdac8a738f254db2b2ea28cbe3248f7a6a7eb2b
WebService/src/main/resources/components/resourceStorePackage/edit-resourceStore/editResourceStore.js
@@ -4,11 +4,10 @@
        data:{
            editResourceStoreInfo:{
                resId:'',
resName:'',
resCode:'',
price:'',
stock:'',
description:'',
                resName:'',
                resCode:'',
                price:'',
                description:'',
            }
        },
@@ -41,15 +40,10 @@
                        },
                    ],
'editResourceStoreInfo.resCode':[
{
                            limit:"required",
                            param:"",
                            errInfo:"物品编码不能为空"
                        },
 {
                            limit:"maxin",
                            param:"2,50",
                            errInfo:"物品编码必须在2至50字符之间"
                            limit:"maxLength",
                            param:"50",
                            errInfo:"物品编码不能超过50位"
                        },
                    ],
'editResourceStoreInfo.price':[
@@ -64,24 +58,8 @@
                            errInfo:"物品价格格式错误"
                        },
                    ],
'editResourceStoreInfo.stock':[
{
                            limit:"required",
                            param:"",
                            errInfo:"物品库存不能为空"
                        },
 {
                            limit:"num",
                            param:"",
                            errInfo:"物品库存不是有效数字"
                        },
                    ],
'editResourceStoreInfo.description':[
{
                            limit:"required",
                            param:"",
                            errInfo:"描述不能为空"
                        },
 {
                            limit:"maxLength",
                            param:"200",
@@ -99,7 +77,7 @@
             },
            editResourceStore:function(){
                if(!vc.component.editResourceStoreValidate()){
                    vc.message(vc.validate.errInfo);
                    vc.toast(vc.validate.errInfo);
                    return ;
                }
@@ -129,11 +107,10 @@
            refreshEditResourceStoreInfo:function(){
                vc.component.editResourceStoreInfo= {
                  resId:'',
resName:'',
resCode:'',
price:'',
stock:'',
description:'',
                    resName:'',
                    resCode:'',
                    price:'',
                    description:'',
                }
            }