Commit b26a7c08 authored by 黄媛媛's avatar 黄媛媛

app活动

parent 9724499f
......@@ -116,7 +116,7 @@
</el-select>
</el-form-item>
<el-form-item label="活动类型" prop="activityType">
<el-select filterable v-model="form.activityType" >
<el-select :disabled="edittrue" filterable v-model="form.activityType" >
<el-option label="满减" :value='1'></el-option>
<el-option label="立减" :value='2'></el-option>
<el-option label="秒杀" :value='3'></el-option>
......@@ -128,12 +128,12 @@
<el-input class="w220" v-model="form.activityUrl"></el-input>
</el-form-item>
<el-form-item label="公司" prop="branchId">
<el-select class="multiple_input" filterable v-model="form.branchId">
<el-select :disabled="edittrue" class="multiple_input" filterable v-model="form.branchId">
<el-option v-for="item in companyList" :label='item.BName' :value='item.Id' :key='item.Id'></el-option>
</el-select>
</el-form-item>
<el-form-item label="线路" prop="lineId">
<el-select class="multiple_input" filterable v-model="form.lineId">
<el-select :disabled="edittrue" class="multiple_input" filterable v-model="form.lineId">
<el-option v-for="item in LineList" :label='item.LineName' :value='item.LineID' :key='item.LineID'></el-option>
</el-select>
</el-form-item>
......@@ -161,7 +161,7 @@
<el-input class="w220" @keyup.native="checkInteger(form,'returnIntegral')" v-model="form.returnIntegral"></el-input>
</el-form-item>
<el-form-item label="团号">
<el-input class="w220" v-model="form.tcid"></el-input>
<el-input :disabled="edittrue" class="w220" v-model="form.tcid"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
......@@ -203,6 +203,7 @@ export default {
}
}
return{
edittrue:false,
allzb:100,
total:0,
obj:{
......@@ -321,10 +322,15 @@ export default {
},
addRule(){
this.ruleVisible=true;
this.edittrue=false;
this.InitForm();
},
SetRules(item){
this.ruleVisible=true;
this.ruleVisible=true;
this.edittrue=true;
this.form=Object.assign({},item);
this.form.endDate=moment(item.endDate).format("YYYY-MM-DD")
this.form.startDate=moment(item.startDate).format("YYYY-MM-DD")
......@@ -341,24 +347,7 @@ export default {
this.Success(res.data.message)
this.getList();
this.ruleVisible=false;
this.form={
activityName:"",
activityStatus:1,
activityType:"",
activityUrl:'',
branchId:'',
description:'',
discounts:'',
startDate:'',
endDate:'',
groupId:'',
id:'',
lineId:'',
meet:'',
remark:'',
returnIntegral:'',
tcid:'',
}
this.InitForm();
} else {
this.Error(res.data.message);
......@@ -374,6 +363,26 @@ export default {
});
},
InitForm(){
this.form={
activityName:"",
activityStatus:1,
activityType:"",
activityUrl:'',
branchId:'',
description:'',
discounts:'',
startDate:'',
endDate:'',
groupId:'',
id:'',
lineId:'',
meet:'',
remark:'',
returnIntegral:'',
tcid:0,
}
},
getEmployeeList () {
let userInfo = this.getLocalStorage()
let msg = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment