|
@@ -51,7 +51,7 @@ var checkeMixins = function () {
|
|
|
var _this = this;
|
|
|
var KeyString = '',TagString='';
|
|
|
console.log(_this.releaseParams);
|
|
|
- if(_this.releaseParams.name == ''){
|
|
|
+ if(_this.releaseParams.name === ''){
|
|
|
_this.vShow_Name = true;
|
|
|
_this.fromMessage = '请输入商品显示名';
|
|
|
_this.scrollIntoView();
|
|
@@ -60,7 +60,7 @@ var checkeMixins = function () {
|
|
|
},2000);
|
|
|
return
|
|
|
}
|
|
|
- if(_this.releaseParams.aliasName == ''){
|
|
|
+ if(_this.releaseParams.aliasName === ''){
|
|
|
_this.vShow_AliasName = true;
|
|
|
_this.fromMessage = '请输入内部商品名';
|
|
|
_this.scrollIntoView();
|
|
@@ -69,7 +69,7 @@ var checkeMixins = function () {
|
|
|
},2000);
|
|
|
return;
|
|
|
}
|
|
|
- if(_this.releaseParams.commodityType == ''){
|
|
|
+ if(_this.releaseParams.commodityType === ''){
|
|
|
_this.vShow_attribute=true;
|
|
|
_this.fromMessage = '请选择商品属性';
|
|
|
_this.scrollIntoView();
|
|
@@ -78,8 +78,8 @@ var checkeMixins = function () {
|
|
|
},2000);
|
|
|
return;
|
|
|
}
|
|
|
- if(_this.releaseParams.commodityType == 2){
|
|
|
- if(_this.releaseParams.trainingMethod == 0){
|
|
|
+ if(_this.releaseParams.commodityType === 2){
|
|
|
+ if(_this.releaseParams.trainingMethod === 0){
|
|
|
_this.vShow_trainingMethod=true;
|
|
|
_this.fromMessage = '请选择培训方式';
|
|
|
_this.scrollIntoView();
|
|
@@ -88,7 +88,7 @@ var checkeMixins = function () {
|
|
|
},2000);
|
|
|
return;
|
|
|
}
|
|
|
- if(_this.releaseParams.trainingType == 0){
|
|
|
+ if(_this.releaseParams.trainingType === 0){
|
|
|
_this.vShow_trainingType=true;
|
|
|
_this.fromMessage = '请选择培训费用';
|
|
|
_this.scrollIntoView();
|
|
@@ -97,8 +97,8 @@ var checkeMixins = function () {
|
|
|
},2000);
|
|
|
return;
|
|
|
}
|
|
|
- if(_this.releaseParams.trainingType == 1){
|
|
|
- if(_this.releaseParams.trainingFee == ''){
|
|
|
+ if(_this.releaseParams.trainingType === 1){
|
|
|
+ if(_this.releaseParams.trainingFee === ''){
|
|
|
_this.vShow_trainingType=true;
|
|
|
_this.fromMessage = '请填写包含食宿,交通等各项费用的培训总金额';
|
|
|
_this.scrollIntoView();
|
|
@@ -109,7 +109,7 @@ var checkeMixins = function () {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if(_this.releaseParams.bigTypeId == ''){
|
|
|
+ if(_this.releaseParams.bigTypeId === ''){
|
|
|
_this.vShow_TinyTypeID = true;
|
|
|
_this.fromMessage = '请选择商品分类';
|
|
|
_this.scrollIntoView();
|
|
@@ -118,8 +118,8 @@ var checkeMixins = function () {
|
|
|
},2000);
|
|
|
return;
|
|
|
}
|
|
|
- if(_this.classificationTwoList!=''&& _this.classificationTwoList!=null){
|
|
|
- if(_this.releaseParams.smallTypeId == ''){
|
|
|
+ if(_this.classificationTwoList!==''&& _this.classificationTwoList!=null){
|
|
|
+ if(_this.releaseParams.smallTypeId === ''){
|
|
|
_this.vShow_TinyTypeID = true;
|
|
|
_this.fromMessage = '请选择二级分类';
|
|
|
_this.scrollIntoView();
|
|
@@ -129,8 +129,8 @@ var checkeMixins = function () {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
- if(_this.classificationThreeList!='' && _this.classificationThreeList!=null){
|
|
|
- if(_this.releaseParams.tinyTypeId == ''){
|
|
|
+ if(_this.classificationThreeList!=='' && _this.classificationThreeList!=null){
|
|
|
+ if(_this.releaseParams.tinyTypeId === ''){
|
|
|
_this.vShow_TinyTypeID = true;
|
|
|
_this.fromMessage = '请选择三级分类';
|
|
|
_this.scrollIntoView();
|
|
@@ -140,7 +140,7 @@ var checkeMixins = function () {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
- if(_this.releaseParams.brandId == ''){
|
|
|
+ if(_this.releaseParams.brandId === ''){
|
|
|
_this.vShow_BrandID = true;
|
|
|
_this.fromMessage = '请选择商品品牌';
|
|
|
_this.scrollIntoView();
|
|
@@ -158,8 +158,8 @@ var checkeMixins = function () {
|
|
|
},2000);
|
|
|
return;
|
|
|
}
|
|
|
- if(_this.releaseParams.productType == 2){
|
|
|
- if(_this.releaseParams.machineType == ''){
|
|
|
+ if(_this.releaseParams.productType === 2){
|
|
|
+ if(_this.releaseParams.machineType === ''){
|
|
|
_this.vShow_GoodsType = true;
|
|
|
_this.fromMessage = '请选择器械类型';
|
|
|
_this.scrollIntoView();
|
|
@@ -168,7 +168,7 @@ var checkeMixins = function () {
|
|
|
},3000);
|
|
|
return;
|
|
|
}
|
|
|
- if(_this.releaseParams.qualificationImg == ''){
|
|
|
+ if(_this.releaseParams.qualificationImg === ''){
|
|
|
_this.vShow_QualificationImg = true;
|
|
|
_this.fromMessage = '请上传资质图片';
|
|
|
_this.scrollIntoView();
|
|
@@ -177,7 +177,7 @@ var checkeMixins = function () {
|
|
|
},3000);
|
|
|
return;
|
|
|
}
|
|
|
- if(_this.releaseParams.qualificationNo == ''){
|
|
|
+ if(_this.releaseParams.qualificationNo === ''){
|
|
|
_this.vShow_QualificationNo = true;
|
|
|
_this.fromMessage = '请输入证书编号';
|
|
|
_this.scrollIntoView();
|
|
@@ -186,7 +186,7 @@ var checkeMixins = function () {
|
|
|
},3000);
|
|
|
return;
|
|
|
}
|
|
|
- if(_this.releaseParams.productName == ''){
|
|
|
+ if(_this.releaseParams.productName === ''){
|
|
|
_this.vShow_ProductName = true;
|
|
|
_this.fromMessage = '请输入产品名称';
|
|
|
_this.scrollIntoView();
|
|
@@ -195,7 +195,7 @@ var checkeMixins = function () {
|
|
|
},3000);
|
|
|
return;
|
|
|
}
|
|
|
- if(_this.releaseParams.qualificationTime == ''){
|
|
|
+ if(_this.releaseParams.qualificationTime === ''){
|
|
|
_this.vShow_QualificationTime = true;
|
|
|
_this.fromMessage = '请选择证书有效期';
|
|
|
_this.scrollIntoView();
|
|
@@ -206,7 +206,7 @@ var checkeMixins = function () {
|
|
|
}
|
|
|
}
|
|
|
//商品标签
|
|
|
- if(_this.tagsList =='') {
|
|
|
+ if(_this.tagsList ==='') {
|
|
|
_this.vShow_Tags = true;
|
|
|
_this.fromMessage = '请添加商品标签';
|
|
|
_this.scrollIntoView();
|
|
@@ -327,7 +327,7 @@ var checkeMixins = function () {
|
|
|
blur_name: function(e){//商品名失去焦点
|
|
|
var _this = this;
|
|
|
_this.vShow_Name = false;
|
|
|
- if(e.target.value == ''){
|
|
|
+ if(e.target.value === ''){
|
|
|
_this.vShow_Name = true;
|
|
|
_this.fromMessage = '请输入商品显示名';
|
|
|
setTimeout(function(){
|
|
@@ -340,7 +340,7 @@ var checkeMixins = function () {
|
|
|
blur_aliasName: function(e){//内部商品名失去焦点
|
|
|
var _this = this;
|
|
|
_this.vShow_AliasName = false;
|
|
|
- if(e.target.value == ''){
|
|
|
+ if(e.target.value === ''){
|
|
|
_this.vShow_AliasName = true;
|
|
|
_this.fromMessage = '请输入内部商品名';
|
|
|
setTimeout(function(){
|
|
@@ -352,7 +352,7 @@ var checkeMixins = function () {
|
|
|
},
|
|
|
blur_taxPoint: function(event){
|
|
|
var E_TaxPoint = event.target.value;
|
|
|
- if(E_TaxPoint!=''){
|
|
|
+ if(E_TaxPoint!==''){
|
|
|
this.releaseParams.taxPoint = parseFloat(E_TaxPoint);
|
|
|
}else{
|
|
|
this.releaseParams.taxPoint = '';
|
|
@@ -379,7 +379,7 @@ var checkeMixins = function () {
|
|
|
},
|
|
|
input_trainingFee: function(event){
|
|
|
var E_Number = event.target.value;
|
|
|
- if(E_Number!=''){
|
|
|
+ if(E_Number!==''){
|
|
|
this.releaseParams.trainingFee = parseInt(E_Number.replace(/[^0-9]/g,''));
|
|
|
}else{
|
|
|
this.releaseParams.trainingFee = '';
|
|
@@ -388,7 +388,7 @@ var checkeMixins = function () {
|
|
|
input_minBuyNumber: function(event){
|
|
|
this.vShow_MinBuyNumber = false;
|
|
|
var E_Number = event.target.value;
|
|
|
- if(E_Number!=''){
|
|
|
+ if(E_Number!==''){
|
|
|
this.releaseParams.minBuyNumber = parseInt(E_Number.replace(/[^0-9]/g,''));
|
|
|
}else{
|
|
|
this.releaseParams.minBuyNumber = '';
|
|
@@ -397,7 +397,7 @@ var checkeMixins = function () {
|
|
|
input_stock: function(event){
|
|
|
this.vShow_Stock = false;
|
|
|
var E_stock = event.target.value;
|
|
|
- if(E_stock!=''){
|
|
|
+ if(E_stock!==''){
|
|
|
this.releaseParams.stock = parseInt(E_stock.replace(/[^0-9]/g,''));
|
|
|
}else{
|
|
|
this.releaseParams.stock = '';
|