服务价值

master
xy 2 years ago
parent 5895210e1c
commit 2036b4eac4

@ -76,6 +76,26 @@
</div> </div>
</template> </template>
<template #demand>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red; font-weight: 600; padding-right: 4px"
>*</span
>服务要求
</div>
<div class="xy-table-item-content">
<el-switch
v-model="form.demand"
active-text="服务价值"
inactive-text="服务次数"
:active-value="1"
:inactive-value="2"
style="width: 300px"
></el-switch>
</div>
</div>
</template>
<template v-slot:cycle> <template v-slot:cycle>
<div class="xy-table-item"> <div class="xy-table-item">
<div class="xy-table-item-label"> <div class="xy-table-item-label">
@ -309,6 +329,7 @@ export default {
name: "", name: "",
cycle: "", cycle: "",
frequency: 0, frequency: 0,
demand: 1,
service_rule: false, service_rule: false,
purchase_price: "", purchase_price: "",

@ -89,6 +89,15 @@ export default {
} }
} }
}, },
{
label: '服务要求',
prop: 'demand',
width: 100,
formatter:(cell, data, value) => {
if (value === 1) return '服务价值';
if (value === 2) return '服务次数';
}
},
{ {
prop:'service_rule', prop:'service_rule',
label:'服务时长规则', label:'服务时长规则',

@ -69,6 +69,11 @@ export default {
prop:'time_lenth', prop:'time_lenth',
width: 160 width: 160
}, },
{
prop: 'worth',
label: '服务价值',
width: 120
},
{ {
prop:'sortnumber', prop:'sortnumber',
label:'排序', label:'排序',

@ -67,6 +67,18 @@
</div> </div>
</div> </div>
</template> </template>
<template v-slot:worth>
<div class="xy-table-item">
<div class="xy-table-item-label">
服务价值
</div>
<div class="xy-table-item-content">
<el-input-number v-model="form.worth" :controls="false" :precision="2" clearable placeholder="请输入服务价值"
style="width: 300px;"></el-input-number>
</div>
</div>
</template>
</xy-dialog> </xy-dialog>
</div> </div>
</template> </template>
@ -92,7 +104,8 @@ export default {
name: '', name: '',
service: '', service: '',
time_lenth: '', time_lenth: '',
sortnumber: 0 sortnumber: 0,
worth: 0
}, },
rules: { rules: {
name: [ name: [

Loading…
Cancel
Save