update:新增语音播报开关,减少秒到选项
This commit is contained in:
parent
090dfaeb2d
commit
d2d5bec659
@ -92,7 +92,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="营业状态"
|
label="营业状态"
|
||||||
label-width="150px"
|
label-width="150px"
|
||||||
prop="store_district_id"
|
prop="store_biz_state"
|
||||||
>
|
>
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="storeForm.store_biz_state"
|
v-model="storeForm.store_biz_state"
|
||||||
@ -102,8 +102,28 @@
|
|||||||
inactive-color="#ff4949"
|
inactive-color="#ff4949"
|
||||||
active-text="营业中"
|
active-text="营业中"
|
||||||
@change="handleStoreStatus"
|
@change="handleStoreStatus"
|
||||||
inactive-text="已打烊">
|
inactive-text="已打烊"
|
||||||
</el-switch>
|
></el-switch>
|
||||||
|
</el-form-item>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<el-col :span="12">
|
||||||
|
<div class="grid-content bg-purple">
|
||||||
|
<el-form-item
|
||||||
|
label="语音播报"
|
||||||
|
label-width="150px"
|
||||||
|
prop="ringtone_is_enable"
|
||||||
|
>
|
||||||
|
<el-switch
|
||||||
|
v-model="storeForm.ringtone_is_enable"
|
||||||
|
:active-value="1"
|
||||||
|
:inactive-value="2"
|
||||||
|
@change="handleRingStatus"
|
||||||
|
active-text="开启"
|
||||||
|
inactive-text="关闭"
|
||||||
|
></el-switch>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -126,7 +146,6 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
@ -525,7 +544,7 @@ export default {
|
|||||||
},
|
},
|
||||||
placeholder: '',
|
placeholder: '',
|
||||||
readOnly: false,
|
readOnly: false,
|
||||||
isRest:false
|
isRest: false,
|
||||||
},
|
},
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
label: 'category_name',
|
label: 'category_name',
|
||||||
@ -573,7 +592,7 @@ export default {
|
|||||||
store_notice: undefined,
|
store_notice: undefined,
|
||||||
store_o2o_tags: [],
|
store_o2o_tags: [],
|
||||||
store_district_id: '',
|
store_district_id: '',
|
||||||
packing_fee:0
|
packing_fee: 0,
|
||||||
},
|
},
|
||||||
queryArea: {
|
queryArea: {
|
||||||
province: { code: '', name: '' },
|
province: { code: '', name: '' },
|
||||||
@ -611,11 +630,12 @@ export default {
|
|||||||
store_longitude: form.store_longitude,
|
store_longitude: form.store_longitude,
|
||||||
store_latitude: form.store_latitude,
|
store_latitude: form.store_latitude,
|
||||||
store_tel: form.store_tel,
|
store_tel: form.store_tel,
|
||||||
|
ringtone_is_enable:form.ringtone_is_enable,
|
||||||
store_qq: form.store_qq,
|
store_qq: form.store_qq,
|
||||||
store_ww: form.store_ww,
|
store_ww: form.store_ww,
|
||||||
company_description: form.company_description,
|
company_description: form.company_description,
|
||||||
store_biz_state: form.store_biz_state,
|
store_biz_state: form.store_biz_state,
|
||||||
packing_fee:form.packing_fee
|
packing_fee: form.packing_fee,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.queryArea.province.name) {
|
if (this.queryArea.province.name) {
|
||||||
@ -641,7 +661,11 @@ export default {
|
|||||||
return params
|
return params
|
||||||
},
|
},
|
||||||
handleStoreStatus(e) {
|
handleStoreStatus(e) {
|
||||||
this.storeForm.store_biz_state = e;
|
this.storeForm.store_biz_state = e
|
||||||
|
},
|
||||||
|
handleRingStatus(e) {
|
||||||
|
this.storeForm.ringtone_is_enable = e
|
||||||
|
console.log('ringtone_is_enable:', this.storeForm.ringtone_is_enable)
|
||||||
},
|
},
|
||||||
getSlideShowForm() {
|
getSlideShowForm() {
|
||||||
const form = this.slideShowForm
|
const form = this.slideShowForm
|
||||||
@ -663,7 +687,11 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async handleEdit(params) {
|
async handleEdit(params) {
|
||||||
this.$baseConfirm(this.__('修改立马生效,是否继续?'), null, async () => {
|
console.log('handleEdit params:', params)
|
||||||
|
this.$baseConfirm(
|
||||||
|
this.__('修改立马生效,是否继续?'),
|
||||||
|
null,
|
||||||
|
async () => {
|
||||||
const { msg, status } = await storeSetUp(params)
|
const { msg, status } = await storeSetUp(params)
|
||||||
if (200 == status) {
|
if (200 == status) {
|
||||||
this.$baseMessage(msg, 'success')
|
this.$baseMessage(msg, 'success')
|
||||||
@ -671,7 +699,8 @@ export default {
|
|||||||
this.$baseMessage(msg, 'error')
|
this.$baseMessage(msg, 'error')
|
||||||
}
|
}
|
||||||
await this.fetchData()
|
await this.fetchData()
|
||||||
})
|
}
|
||||||
|
)
|
||||||
},
|
},
|
||||||
handleParams() {
|
handleParams() {
|
||||||
let params = Object.assign({}, this.form)
|
let params = Object.assign({}, this.form)
|
||||||
@ -685,7 +714,6 @@ export default {
|
|||||||
},
|
},
|
||||||
async getTree() {
|
async getTree() {
|
||||||
const { data } = await getTree()
|
const { data } = await getTree()
|
||||||
console.log(data)
|
|
||||||
if (data) {
|
if (data) {
|
||||||
this.treeData = data
|
this.treeData = data
|
||||||
} else {
|
} else {
|
||||||
@ -721,7 +749,8 @@ export default {
|
|||||||
company_description: data.company.company_description,
|
company_description: data.company.company_description,
|
||||||
wx_qrcode: data.wx_qrcode,
|
wx_qrcode: data.wx_qrcode,
|
||||||
store_biz_state: data.store_biz_state,
|
store_biz_state: data.store_biz_state,
|
||||||
packing_fee:data.packing_fee
|
packing_fee: data.packing_fee,
|
||||||
|
ringtone_is_enable: data.ringtone_is_enable,
|
||||||
}
|
}
|
||||||
|
|
||||||
this.srcList.push(data.wx_qrcode)
|
this.srcList.push(data.wx_qrcode)
|
||||||
|
|||||||
@ -263,7 +263,6 @@
|
|||||||
<div class="item-block" >
|
<div class="item-block" >
|
||||||
<div class="item-lable">
|
<div class="item-lable">
|
||||||
<label style="margin-right: 20px;">结算类型:</label>
|
<label style="margin-right: 20px;">结算类型:</label>
|
||||||
<el-radio v-model="form.settlement_method" :label="0" :disabled="isReadonly">秒到</el-radio>
|
|
||||||
<el-radio v-model="form.settlement_method" :label="1" :disabled="isReadonly">次日结算</el-radio>
|
<el-radio v-model="form.settlement_method" :label="1" :disabled="isReadonly">次日结算</el-radio>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user