| | |
| | | </el-form-item> |
| | | </el-form> --> |
| | | |
| | | <el-radio-group v-model="tjStatus" @input="radioChange" style="margin-left: 10px;margin-bottom: 20px;"> |
| | | <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="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> |
| | |
| | | getPackageList, |
| | | delegrouping, |
| | | getDetails, |
| | | huoqutuantitaocanxiangmuList |
| | | } from "@/api/system/comp"; |
| | | import { |
| | | deptTreeSelect, |
| | |
| | | return { |
| | | // 遮罩层 |
| | | loading: true, |
| | | taocanStatus: 0, |
| | | Treedata: [], |
| | | id: "", |
| | | // 选中数组 |
| | |
| | | proName: null, |
| | | pym: null, |
| | | }, |
| | | formdanwen: {}, |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | |
| | | this.form.dwlx = val |
| | | }, |
| | | |
| | | radioChangetaocan(val) { |
| | | if (val == 0) { |
| | | this.getList() |
| | | } else { |
| | | this.handleQuerydanwen() |
| | | } |
| | | }, |
| | | |
| | | handleQuerydanwen() { |
| | | let dwId = this.formdanwen.drugManufacturerId |
| | | huoqutuantitaocanxiangmuList(dwId).then(res => { |
| | | this.newpacName1 = res.data |
| | | }) |
| | | }, |
| | | |
| | | /** 提交按钮 */ |
| | | submitForm() { |
| | | this.$refs["form"].validate((valid) => { |
| | |
| | | |
| | | // 获取选中的套餐项目列表 |
| | | const newProjects = this.selectedPackage.tjProjectList || []; |
| | | |
| | | console.log(newProjects,22222) |
| | | // 将选中的套餐项目添加到左侧表格 |
| | | this.loading = true; |
| | | newProjects.forEach((project) => { |
| | |
| | | }, |
| | | |
| | | handleSelectionChange1(selection) { |
| | | console.log(selection,11111) |
| | | // 实现单选逻辑 |
| | | if (selection.length > 1) { |
| | | const lastSelected = selection[selection.length - 1]; |