master
lion 5 months ago
parent 5ed1e991b0
commit 2f2ba4d97c

@ -17,7 +17,7 @@
<el-switch v-model="form['status']" :active-value="1" :inactive-value="0" active-text=""
inactive-text="禁用" />
</el-form-item>
<el-form-item label="站点产品价格" prop="accompany_product_site">
<div v-for="(item, index) in accompany_product_site" :key="index" style="display: flex; align-items: center;">
<vxe-tree-select v-model="item.site_id" placeholder="请选择站点" :options="siteType" clearable
@ -62,16 +62,16 @@
<el-form-item label="适用人群" prop="content">
<my-tinymce v-model="form['content']" clearable placeholder="请填写适用人群" style="width: 100%;" />
<my-tinymce :id="'content'" v-if="showContent" @input="(e)=> {saveContent(e,'content')}" :value="form['content']" clearable placeholder="请填写适用人群" style="width: 100%;" />
</el-form-item>
<el-form-item label="服务流程" prop="flow_content">
<my-tinymce v-model="form['flow_content']" clearable placeholder="请填写服务流程" style="width: 100%;" />
<my-tinymce :id="'flow_content'" v-if="showContent" @input="(e)=> {saveContent(e,'flow_content')}" :value="form['flow_content']" clearable placeholder="请填写服务流程" style="width: 100%;" />
</el-form-item>
<el-form-item label="费用说明" prop="price_content">
<my-tinymce v-model="form['price_content']" clearable placeholder="请填写费用说明" style="width: 100%;" />
<el-form-item label="注意事项" prop="price_content">
<my-tinymce :id="'price_content'" v-if="showContent" @input="(e)=> {saveContent(e,'price_content')}" :value="form['price_content']" clearable placeholder="请填写注意事项" style="width: 100%;" />
</el-form-item>
<el-form-item label="预约须知" prop="appoint_content">
<my-tinymce v-model="form['appoint_content']" clearable placeholder="请填写预约须知" style="width: 100%;" />
<el-form-item label="预约须知4" prop="appoint_content">
<my-tinymce :id="'appoint_content'" v-if="showContent" @input="(e)=> {saveContent(e,'appoint_content')}" :value="form['appoint_content']" clearable placeholder="请填写预约须知" style="width: 100%;" />
</el-form-item>
</div>
@ -125,6 +125,10 @@
coverList:[],
imageList:[],
accompany_product_site:[],
showContent:false,
// showflowContent:false,
// showpriceContent:false,
// showappointContent:false,
form: {
id:'',
type: 1,
@ -163,12 +167,19 @@
this.imageList = []
this.accompany_product_site = []
}
this.showContent = true
// this.showflowContent = true
// this.showpriceContent = true
// this.showappointContent = true
},
visible(newVal) {
this.$emit('update:isShow', newVal)
}
},
methods: {
saveContent(e,type){
this.form[type] = e
},
setType(e){
console.log("type",e)
this.form.type=e?e:1
@ -271,6 +282,14 @@
}
this.accompany_product_site = detail['accompany_product_site'] || [];
this.form.site_id = this.form.site_id?this.form.site_id.split(",") : [];
this.form.content = detail.content? detail.content:''
this.form.appoint_content = detail.appoint_content? detail.appoint_content:''
this.form.price_content = detail.price_content? detail.price_content:''
this.showContent = true
// this.showflowContent = true
// this.showpriceContent = true
// this.showappointContent = true
} catch (err) {
console.error(err);
}

Loading…
Cancel
Save