|
@@ -55,8 +55,8 @@ var releaseContainer = new Vue({
|
|
|
threeClassifyName:'',
|
|
|
brandName:'',
|
|
|
commodityType:1,
|
|
|
- trainingMethod:1,// 线上培训方式
|
|
|
- trainingType:1,// 售价包含培训费用
|
|
|
+ trainingMethod:0,// 线上培训方式
|
|
|
+ trainingType:0,// 售价包含培训费用
|
|
|
trainingFee:''
|
|
|
},
|
|
|
params:{
|
|
@@ -134,6 +134,8 @@ var releaseContainer = new Vue({
|
|
|
vShow_detailInfoEditor:true,
|
|
|
vShow_orderInfoEditor:true,
|
|
|
vShow_attribute:false,
|
|
|
+ vShow_trainingMethod:false,
|
|
|
+ vShow_trainingType:false,
|
|
|
},
|
|
|
computed: {
|
|
|
|
|
@@ -149,6 +151,9 @@ var releaseContainer = new Vue({
|
|
|
_this.releaseParams.name = data.name;
|
|
|
_this.releaseParams.aliasName = data.aliasName;
|
|
|
_this.releaseParams.productType = data.productType;
|
|
|
+ _this.releaseParams.trainingMethod = data.trainingMethod;
|
|
|
+ _this.releaseParams.trainingType = data.trainingType;
|
|
|
+ _this.releaseParams.trainingFee = data.trainingFee;
|
|
|
_this.releaseParams.machineType = data.machineType;
|
|
|
_this.releaseParams.qualificationImg = data.qualificationImg;
|
|
|
_this.releaseParams.unit = data.unit;
|
|
@@ -694,6 +699,37 @@ var releaseContainer = new Vue({
|
|
|
},2000);
|
|
|
return;
|
|
|
}
|
|
|
+ if(_this.releaseParams.commodityType == 2){
|
|
|
+ if(_this.releaseParams.trainingMethod == 0){
|
|
|
+ _this.vShow_trainingMethod=true;
|
|
|
+ _this.fromMessage = '请选择培训方式';
|
|
|
+ _this.scrollIntoView();
|
|
|
+ setTimeout(function(){
|
|
|
+ _this.vShow_trainingMethod = false;
|
|
|
+ },2000);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(_this.releaseParams.trainingType == 0){
|
|
|
+ _this.vShow_trainingType=true;
|
|
|
+ _this.fromMessage = '请选择培训费用';
|
|
|
+ _this.scrollIntoView();
|
|
|
+ setTimeout(function(){
|
|
|
+ _this.vShow_trainingType = false;
|
|
|
+ },2000);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(_this.releaseParams.trainingType == 1){
|
|
|
+ if(_this.releaseParams.trainingFee == ''){
|
|
|
+ _this.vShow_trainingType=true;
|
|
|
+ _this.fromMessage = '请填写包含食宿,交通等各项费用的培训总金额';
|
|
|
+ _this.scrollIntoView();
|
|
|
+ setTimeout(function(){
|
|
|
+ _this.vShow_trainingType = false;
|
|
|
+ },2000);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
if(_this.releaseParams.bigTypeId == ''){
|
|
|
_this.vShow_TinyTypeID = true;
|
|
|
_this.fromMessage = '请选择商品分类';
|