|
|
|
|
@ -14,9 +14,11 @@
|
|
|
|
|
<el-button type="primary" @click="GetList()" style="margin-left: 10px;">查 询</el-button>
|
|
|
|
|
<el-button type="warning" @click="Edit()" style="margin-left: 10px;">修 改</el-button>
|
|
|
|
|
<el-button type="danger" @click="Del()" style="margin-left: 10px;">删 除</el-button>
|
|
|
|
|
<el-button @click="BatchUpdate(1)" class="status_zhengchang" style="margin-left: 80px;">设为正常号</el-button>
|
|
|
|
|
<el-button @click="BatchUpdate(0)" style="margin-left: 10px;">设为预留号</el-button>
|
|
|
|
|
<!-- <el-button @click="BatchUpdate(1)" class="status_zhengchang" style="margin-left: 80px;">设为正常号</el-button> -->
|
|
|
|
|
<el-button @click="PiLiangOpen()" type="warning" style="margin-left: 40px;">批量勾选</el-button>
|
|
|
|
|
<el-button @click="BatchUpdate(0)" style="margin-left: 10px;">设为预留号</el-button>
|
|
|
|
|
|
|
|
|
|
<el-button @click="PlanTypeZhuanButtonClick()" type="danger" style="margin-left: 40px;">类型转换</el-button>
|
|
|
|
|
</el-row>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@ -59,13 +61,13 @@
|
|
|
|
|
<el-form :model="Info" label-width="150" style="max-width: 600px">
|
|
|
|
|
|
|
|
|
|
<el-form-item label="是否 VIP">
|
|
|
|
|
<el-radio-group v-model="Info.is_vip">
|
|
|
|
|
<el-radio-group v-model="Info.is_vip" disabled>
|
|
|
|
|
<el-radio :label="1">是</el-radio>
|
|
|
|
|
<el-radio :label="0">否</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="个检/团检">
|
|
|
|
|
<el-select :filterable="true" clearable v-model="Info.use_type"
|
|
|
|
|
<el-select :filterable="true" clearable v-model="Info.use_type" disabled
|
|
|
|
|
placeholder="选择个检/团检" >
|
|
|
|
|
<el-option label="不限" :value="0" />
|
|
|
|
|
<el-option label="个检" :value="1" />
|
|
|
|
|
@ -73,7 +75,7 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="性别">
|
|
|
|
|
<el-select :filterable="true" clearable v-model="Info.sex" placeholder="选择性别"
|
|
|
|
|
<el-select :filterable="true" clearable v-model="Info.sex" placeholder="选择性别" disabled
|
|
|
|
|
>
|
|
|
|
|
<el-option label="不限" :value="0" />
|
|
|
|
|
<el-option label="男" :value="1" />
|
|
|
|
|
@ -81,18 +83,18 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="体检类型">
|
|
|
|
|
<el-checkbox-group v-model="Info.checkup_type_id">
|
|
|
|
|
<el-checkbox-group v-model="Info.checkup_type_id" disabled>
|
|
|
|
|
<el-checkbox v-for="(item,index) in CheckUpTypeEnableList" :label="item.id">
|
|
|
|
|
{{item.name}}
|
|
|
|
|
</el-checkbox>
|
|
|
|
|
</el-checkbox-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="体检金额限制" v-if="Info.use_type===0 || Info.use_type===1 ||Info.use_type===2">
|
|
|
|
|
<el-form-item v-if="Info.use_type===0 || Info.use_type===1" label="个检限额 0为不限">
|
|
|
|
|
<el-input v-model="Info.amount_limit1" placeholder="0" />
|
|
|
|
|
<el-form-item v-if="Info.use_type===0 || Info.use_type===1" label="个检限额 0为不限" >
|
|
|
|
|
<el-input v-model="Info.amount_limit1" placeholder="0" disabled/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="Info.use_type===0 || Info.use_type===2" label="团检限额 0为不限" placeholder="0">
|
|
|
|
|
<el-input v-model="Info.amount_limit2" placeholder="0" />
|
|
|
|
|
<el-form-item v-if="Info.use_type===0 || Info.use_type===2" label="团检限额 0为不限" placeholder="0" >
|
|
|
|
|
<el-input v-model="Info.amount_limit2" placeholder="0" disabled/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="状态">
|
|
|
|
|
@ -159,6 +161,20 @@
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<el-dialog v-model="PlanTypeDialogShow" width="200px" >
|
|
|
|
|
<div style="margin-top: -30px;font-size: 16px;margin-bottom: 10px;font-weight: 700;">选择要转换的类型</div>
|
|
|
|
|
<div style="margin-bottom: 10px;" v-for="(item,index) in PlanTypeList" :key="index">
|
|
|
|
|
<div class="button2" @click="PlanTypeZhuanFunc(item)" :style="'background-color:'+ item.color" >{{item.name}}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<template #footer>
|
|
|
|
|
<span class="dialog-footer">
|
|
|
|
|
<!-- <el-button @click="CreatTiShiDialogVisible = false">取消</el-button> -->
|
|
|
|
|
<el-button type="primary" @click="PiLiangSelectFunc()">
|
|
|
|
|
确 定
|
|
|
|
|
</el-button>
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
@ -177,6 +193,7 @@
|
|
|
|
|
CheckUpTypeGetEnableList,
|
|
|
|
|
PlanSave,
|
|
|
|
|
PlanBatchUpdatePlanType,
|
|
|
|
|
BatchUpdatePlanTypeByPlanTypeId,
|
|
|
|
|
PlanDel,
|
|
|
|
|
PlanTypeGetEnableList,
|
|
|
|
|
GetPlanTypeTJ,
|
|
|
|
|
@ -471,6 +488,31 @@
|
|
|
|
|
ElMessage.error("请设置全部参数")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let PlanTypeDialogShow=ref(false);
|
|
|
|
|
const PlanTypeZhuanButtonClick=()=>{
|
|
|
|
|
PlanTypeDialogShow.value=true
|
|
|
|
|
}
|
|
|
|
|
const PlanTypeZhuanFunc=(type)=>{
|
|
|
|
|
loading.value = true
|
|
|
|
|
let selected_list=[]
|
|
|
|
|
list.value.forEach((v,i)=>{
|
|
|
|
|
if(v.selected!=undefined && v.selected==true){
|
|
|
|
|
selected_list.push(v.id)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
BatchUpdatePlanTypeByPlanTypeId({
|
|
|
|
|
ids: selected_list,
|
|
|
|
|
plan_type_id:type.id,
|
|
|
|
|
}).then(res => {
|
|
|
|
|
loading.value = false
|
|
|
|
|
if (res.status) {
|
|
|
|
|
PlanTypeDialogShow.value=false
|
|
|
|
|
GetList()
|
|
|
|
|
} else {
|
|
|
|
|
ElMessage.error(res.msg)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
searchInfo.value.date=route.query.date
|
|
|
|
|
GetPlanTypeList()
|
|
|
|
|
@ -519,4 +561,13 @@
|
|
|
|
|
border: 1px solid #857467;
|
|
|
|
|
color:#fff
|
|
|
|
|
}
|
|
|
|
|
.button2{
|
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
|
width: 160px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: 4px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
background-color: #f4f4f4;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
</style>
|