|
|
|
@ -91,34 +91,34 @@
|
|
|
|
|
<div v-if="tabName == 6" class="el_box"> |
|
|
|
|
<div class="el_radio"> |
|
|
|
|
<span class="title">是否专车:</span> |
|
|
|
|
<el-radio-group v-model="radio"> |
|
|
|
|
<el-radio :value="0">是</el-radio> |
|
|
|
|
<el-radio :value="1">否</el-radio> |
|
|
|
|
<el-radio-group v-model="form.Specialcar"> |
|
|
|
|
<el-radio :label="0">否</el-radio> |
|
|
|
|
<el-radio :label="1">是</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
</div> |
|
|
|
|
<div class="el_radio el_money"> |
|
|
|
|
<div v-if="form.Specialcar" class="el_radio el_money"> |
|
|
|
|
<span class="title">专车费用:</span> |
|
|
|
|
<el-input-number |
|
|
|
|
v-model="form.num" |
|
|
|
|
v-model="form.numcost" |
|
|
|
|
:min="0" |
|
|
|
|
:max="10" |
|
|
|
|
@change="handleChange" |
|
|
|
|
:controls="false" |
|
|
|
|
:value-on-clear="0" |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
<el-button type="primary" class="el_butn" @click="preservation">保存</el-button> |
|
|
|
|
<el-button v-if="form.Specialcar" type="primary" class="el_butn" @click="preservation" |
|
|
|
|
>保存</el-button |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div v-if="tabName == 2" class="el_box"> |
|
|
|
|
<div class="el_radio"> |
|
|
|
|
<span class="title">是否超区:</span> |
|
|
|
|
<el-radio-group v-model="radio"> |
|
|
|
|
<el-radio :value="0">是</el-radio> |
|
|
|
|
<el-radio :value="1">否</el-radio> |
|
|
|
|
<el-radio-group v-model="form.SuperZone"> |
|
|
|
|
<el-radio :label="0">否</el-radio> |
|
|
|
|
<el-radio :label="1">是</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
</div> |
|
|
|
|
<div class="el_radio el_money"> |
|
|
|
|
<div class="el_radio el_money" v-if="form.SuperZone"> |
|
|
|
|
<span class="title">超区公里数:</span> |
|
|
|
|
<el-input-number |
|
|
|
|
v-model="form.num" |
|
|
|
@ -128,7 +128,7 @@
|
|
|
|
|
:value-on-clear="0" |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
<div class="el_radio el_money"> |
|
|
|
|
<div class="el_radio el_money" v-if="form.SuperZone"> |
|
|
|
|
<span class="title">超区费用:</span> |
|
|
|
|
<el-input-number |
|
|
|
|
v-model="form.num" |
|
|
|
@ -139,7 +139,7 @@
|
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<el-button type="primary" class="el_butn" @click="preservation">保存</el-button> |
|
|
|
|
<el-button type="primary" class="el_butn" @click="preservation" v-if="form.SuperZone">保存</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -270,7 +270,9 @@ const packdialog = ref(false);
|
|
|
|
|
const Tipstitle = ref('上楼费'); // |
|
|
|
|
const TcZcInput = ref({}); |
|
|
|
|
const form = ref({ |
|
|
|
|
num: 0, |
|
|
|
|
numcost: 0, |
|
|
|
|
Specialcar: 0, |
|
|
|
|
SuperZone: 0, |
|
|
|
|
}); |
|
|
|
|
const details = reactive({ |
|
|
|
|
/** 是否开启搜索 */ |
|
|
|
@ -481,6 +483,9 @@ const onLoad = (value = 1) => {
|
|
|
|
|
addvalueDetailId.value = res.data.data.addvalueDetailId; |
|
|
|
|
} |
|
|
|
|
details.data = res.data.data.packageEntityList; |
|
|
|
|
if (res.data.data.addvalueId == 6) { |
|
|
|
|
res.data.data.packageEntityList[0]; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch(error => { |
|
|
|
@ -564,11 +569,12 @@ const preservation = () => {
|
|
|
|
|
reservationId: $route.query.reservationId, |
|
|
|
|
}; |
|
|
|
|
console.log(data, '准备提交的数据'); |
|
|
|
|
//超区 |
|
|
|
|
if (tabName.value == 2) { |
|
|
|
|
|
|
|
|
|
if (tabName.value == 2) { |
|
|
|
|
//超区 |
|
|
|
|
} else if (tabName.value == 6) { |
|
|
|
|
//专车 |
|
|
|
|
data.fee = form.value.numcost; //费用 |
|
|
|
|
} |
|
|
|
|
// 表格下面有数据走新增接口 |
|
|
|
|
$_saveSignAddValuePackage(data).then(res => { |
|
|
|
|