|
@@ -54,7 +54,10 @@ var releaseContainer = new Vue({
|
|
|
twoClassifyName:'',
|
|
|
threeClassifyName:'',
|
|
|
brandName:'',
|
|
|
- commodityType:1
|
|
|
+ commodityType:1,
|
|
|
+ trainingMethod:0,// 线上培训方式
|
|
|
+ trainingType:0,// 售价包含培训费用
|
|
|
+ trainingFee:''
|
|
|
},
|
|
|
params:{
|
|
|
param:[],//相关参数
|
|
@@ -131,19 +134,13 @@ var releaseContainer = new Vue({
|
|
|
vShow_detailInfoEditor:true,
|
|
|
vShow_orderInfoEditor:true,
|
|
|
vShow_attribute:false,
|
|
|
+ vShow_trainingMethod:false,
|
|
|
+ vShow_trainingType:false,
|
|
|
},
|
|
|
computed: {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
- getclass:function(val){
|
|
|
- this.selectText.bigTypeID='请选择一级分类';
|
|
|
- this.selectText.smallTypeID = '请选择二级分类';
|
|
|
- this.releaseParams.bigTypeId ='';
|
|
|
- this.classificationTwoList=[];
|
|
|
- this.classificationThreeList =[];
|
|
|
- this.GetFistClassFn(val);
|
|
|
- },
|
|
|
GetEditReleaseProductInfo: function(productId){
|
|
|
var _this = this;
|
|
|
SupplierApi.EditReleaseProductInfo({productId:productId},function(response){
|
|
@@ -154,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;
|
|
@@ -223,6 +223,14 @@ var releaseContainer = new Vue({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ getclass:function(val){
|
|
|
+ this.selectText.bigTypeID='请选择一级分类';
|
|
|
+ this.selectText.smallTypeID = '请选择二级分类';
|
|
|
+ this.releaseParams.bigTypeId ='';
|
|
|
+ this.classificationTwoList=[];
|
|
|
+ this.classificationThreeList =[];
|
|
|
+ this.GetFistClassFn(val);
|
|
|
+ },
|
|
|
EchoProductFn : function(type) {
|
|
|
switch (type) {
|
|
|
case 0 && null:
|
|
@@ -249,6 +257,14 @@ var releaseContainer = new Vue({
|
|
|
break;
|
|
|
}
|
|
|
},
|
|
|
+ choiceTrain : function(val){
|
|
|
+ var _this = this;
|
|
|
+ _this.releaseParams.trainType = Number(val);
|
|
|
+ },
|
|
|
+ choiceTrainOutlay : function(val){
|
|
|
+ var _this = this;
|
|
|
+ _this.releaseParams.expensesType = Number(val);
|
|
|
+ },
|
|
|
EchoGoodsImagesListFn: function(arr){//处理商品主图回显
|
|
|
var newArray =[];
|
|
|
arr.forEach( function(el){ newArray.push(el.image) });
|
|
@@ -683,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 = '请选择商品分类';
|
|
@@ -1055,6 +1102,14 @@ var releaseContainer = new Vue({
|
|
|
input_price1: function(e){
|
|
|
this.vShow_Price1 = false;
|
|
|
},
|
|
|
+ input_trainingFee: function(event){
|
|
|
+ var E_Number = event.target.value;
|
|
|
+ if(E_Number!=''){
|
|
|
+ this.releaseParams.trainingFee = parseInt(E_Number.replace(/[^0-9]/g,''));
|
|
|
+ }else{
|
|
|
+ this.releaseParams.trainingFee = '';
|
|
|
+ }
|
|
|
+ },
|
|
|
input_minBuyNumber: function(event){
|
|
|
this.vShow_MinBuyNumber = false;
|
|
|
var E_Number = event.target.value;
|