| | |
| | | :value="dict.value" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="是否替检" prop="tj"> |
| | | <el-select v-model="forms.tj" placeholder="请选择是否替检" style="width: 120px" clearable> |
| | | <el-option v-for="dict in dict.type.sys_yes_no" :key="dict.value" :label="dict.label" |
| | | :value="dict.value" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="年龄段"> |
| | | <el-col :span="7"> |
| | | <el-input v-model="forms.ltAge" style="width: 53px" /> |
| | |
| | | <el-input v-model="forms.gtAge" style="width: 54px" /> |
| | | </el-col> |
| | | </el-form-item> |
| | | |
| | | </el-form> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | |
| | | @submit.native.prevent> |
| | | <el-form-item label="套餐名称" prop="pacName"> |
| | | <el-input ref="inputName" v-model="queryParams.pacName" placeholder="请输入套餐名称" clearable |
| | | @keyup.enter.native="handleSearch" style="width: 140px" /> |
| | | @keyup.enter.native="handleSearch" @clear="handleClearSearch" style="width: 140px" /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearch">搜索</el-button> |
| | |
| | | label-width="68px" @submit.native.prevent> |
| | | <el-form-item label="项目名称" prop="proName"> |
| | | <el-input ref="inputName" v-model="queryParams1.proName" placeholder="请输入项目名称" clearable |
| | | @keyup.enter.native="handleSearchFor" style="width: 140px" /> |
| | | @keyup.enter.native="handleSearchFor" @clear="handleClearSearch" style="width: 140px" /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearchFor">搜索</el-button> |
| | |
| | | label-width="68px" @submit.native.prevent> |
| | | <el-form-item label="项目名称" prop="proName"> |
| | | <el-input ref="inputName" v-model="queryParams1.proName" placeholder="请输入项目名称" clearable |
| | | @keyup.enter.native="handleSearchFor" style="width: 140px" /> |
| | | @keyup.enter.native="handleSearchFor" @clear="handleClearSearch" style="width: 140px" /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearchFor">搜索</el-button> |
| | |
| | | "dict_data_status", |
| | | "sys_user_sex", |
| | | "reservation_pay_type", |
| | | "sys_yes_no", |
| | | "sys_yes_no", "sys_normal_disable" |
| | | ], |
| | | data() { |
| | | let checkPhoneNum = (rule, value, callback) => { |
| | |
| | | }); |
| | | } |
| | | }, |
| | | handleSearchFor() { |
| | | /* handleSearchFor() { |
| | | // 判断是否为汉字 |
| | | const isChineseChar = (char) => /[\u4E00-\u9FA5]/.test(char); |
| | | if (isChineseChar(this.queryParams1.proName)) { |
| | |
| | | this.Treedata = response.data; |
| | | }); |
| | | } |
| | | }, */ |
| | | handleSearchFor() { |
| | | // 判断是否为汉字 |
| | | const keyword = this.queryParams1.proName?.trim() || ''; |
| | | const isChineseChar = /[\u4E00-\u9FA5]/.test(keyword); |
| | | const query = { |
| | | ...this.queryParams1, |
| | | proName: isChineseChar ? keyword : null, |
| | | pym: isChineseChar ? null : keyword |
| | | }; |
| | | getProjectList(query).then((response) => { |
| | | this.Treedata = response.data; |
| | | }); |
| | | }, |
| | | handleClearSearch() { |
| | | this.queryParams1.proName = ''; |
| | | this.queryParams1.pym = null; |
| | | // 重新加载表格数据 |
| | | getProjectList({}).then((response) => { |
| | | this.Treedata = response.data; |
| | | }); |
| | | }, |
| | | // 单项数据获取 |
| | | handleChangesingle(selection) { |
| | |
| | | }); |
| | | }, |
| | | xiangmuWh() { |
| | | if (!this.forms.groupingName || !this.forms.sex || !this.forms.payType) { |
| | | if (!this.forms.groupingName || |
| | | !this.forms.sex || |
| | | !this.forms.payType) { |
| | | this.$modal.msgError("请先填写所有必填项!"); |
| | | return; // Stop execution if any required field is empty |
| | | } |
| | |
| | | this.title = "分组项目维护"; |
| | | this.OnenewpacName = []; |
| | | this.queryParams.price = 0; |
| | | // 清空项目名称搜索框 |
| | | this.queryParams1.proName = ''; |
| | | this.queryParams1.pym = null; |
| | | this.loading = true; |
| | | if (this.groupList[0]) { |
| | | let id = this.groupList[0].id || ""; |
| | |
| | | handleGroup() { |
| | | // 如果没有选中任何部门(即没有 selectionList),可以直接从 OnenewpacName 获取数据 |
| | | let mapList = []; |
| | | this.OnenewpacName.forEach((item) => { |
| | | mapList.push({ |
| | | proName: item.proName, |
| | | proId: item.proId, |
| | | proPrice: item.proPrice, |
| | | }); |
| | | }); |
| | | |
| | | // this.OnenewpacName.forEach((item) => { |
| | | // mapList.push({ |
| | | // proName: item.proName, |
| | | // proId: item.proId, |
| | | // proPrice: item.proPrice, |
| | | // }); |
| | | // }); |
| | | console.log(this.groupList) |
| | | let data = { |
| | | groupingName: this.forms.groupingName, |
| | | gtAge: this.forms.gtAge, |
| | |
| | | if (val == 0) { |
| | | this.getList() |
| | | } else { |
| | | this.handleQuerydanwen() |
| | | this.handleQuerydanwen() |
| | | } |
| | | }, |
| | | |
| | |
| | | |
| | | // 获取选中的套餐项目列表 |
| | | const newProjects = this.selectedPackage.tjProjectList || []; |
| | | console.log(newProjects,22222) |
| | | console.log(newProjects, 22222) |
| | | // 将选中的套餐项目添加到左侧表格 |
| | | this.loading = true; |
| | | newProjects.forEach((project) => { |
| | |
| | | }, |
| | | |
| | | handleSelectionChange1(selection) { |
| | | console.log(selection,11111) |
| | | console.log(selection, 11111) |
| | | // 实现单选逻辑 |
| | | if (selection.length > 1) { |
| | | const lastSelected = selection[selection.length - 1]; |