| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-dialog title="选择套餐" :visible.sync="taocan" width="70%" height="700px" :close-on-click-modal="false"> |
| | | <el-dialog :visible.sync="taocan" width="70%" height="700px" :close-on-click-modal="false"> |
| | | <!-- <el-form :model="queryParam" ref="queryForm" size="small" :inline="true" label-width="auto"> |
| | | <el-form-item label="套餐名称" prop="pacName"> |
| | | <el-input v-model="queryParam.pacName" placeholder="请输入套餐名称" clearable @keyup.enter.native="handle" |
| | |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handle">搜索</el-button> |
| | | </el-form-item> |
| | | </el-form> --> |
| | | <el-table v-loading="loading" element-loading-text="正在加载中..." element-loading-spinner="el-icon-loading" border |
| | | :data="newpacName1" @selection-change="handleSelectionChange1" height="450px" ref="tb"> |
| | | <el-table-column type="selection" width="40px" align="center" label="选择" /> |
| | | <el-table-column label="套餐名称" align="center" prop="pacName" width="120px" /> |
| | | <el-table-column label="套餐价格" align="center" prop="price" width="120px" /> |
| | | <el-table-column label="套餐明细" align="center" prop="allProName" :show-overflow-tooltip="true" /> |
| | | </el-table> |
| | | |
| | | <el-radio-group v-model="taocanStatus" @input="radioChangetaocan" style="margin-left: 10px;margin-bottom: 20px;"> |
| | | <el-radio-button label="0">基础套餐</el-radio-button> |
| | | <el-radio-button label="1">单位套餐</el-radio-button> |
| | | </el-radio-group> |
| | | <div> |
| | | <el-form :model="formdanwen" ref="queryForm" size="small" :inline="true" label-width="68px" |
| | | @submit.native.prevent v-if="taocanStatus == 1"> |
| | | <el-form-item label="单位名称" prop="drugManufacturerId"> |
| | | <el-select v-model="formdanwen.drugManufacturerId" remote filterable style="width: 200px" |
| | | placeholder="请选择单位名称" clearable> |
| | | <el-option v-for="dict in compList" :key="dict.cnName" :label="dict.cnName" |
| | | :value="dict.drugManufacturerId" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuerydanwen" |
| | | style="margin: 0 15px">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table v-loading="loading" element-loading-text="正在加载中..." element-loading-spinner="el-icon-loading" border |
| | | :data="newpacName1" @selection-change="handleSelectionChange1" height="450px" ref="tb"> |
| | | <el-table-column type="selection" width="40px" align="center" label="选择" /> |
| | | <el-table-column label="套餐名称" align="center" prop="pacName" width="120px" /> |
| | | <el-table-column label="套餐价格" align="center" prop="price" width="120px" /> |
| | | <el-table-column label="套餐明细" align="center" prop="allProName" :show-overflow-tooltip="true" /> |
| | | </el-table> |
| | | </div> |
| | | <!-- <div v-else> |
| | | |
| | | </div> --> |
| | | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="cancel1">取 消</el-button> |
| | | <el-button type="primary" @click="submit">确 定</el-button> |
| | |
| | | pym: null, |
| | | }, |
| | | id: "", |
| | | taocanStatus:0, |
| | | formdanwen:{}, |
| | | // 表单参数 |
| | | form: { |
| | | dwlx: 0, |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | radioChangetaocan(val) { |
| | | if (val == 0) { |
| | | this.getList() |
| | | } else { |
| | | this.handleQuerydanwen() |
| | | } |
| | | }, |
| | | |
| | | handleQuerydanwen() { |
| | | let dwId = this.formdanwen.drugManufacturerId |
| | | huoqutuantitaocanxiangmuList(dwId).then(res => { |
| | | this.newpacName1 = res.data |
| | | }) |
| | | }, |
| | | // 删除分组 |
| | | deleteGroup() { |
| | | delegrouping(this.groupIds).then((res) => { |