| | |
| | | <el-form-item label="体检类别" prop="tjCategory"> |
| | | <el-select v-model="queryParams.tjCategory" placeholder="请选择状态" style="width: 200px" filterable clearable> |
| | | <el-option v-for="dict in dict.type.dict_tjtype" :key="dict.id" :label="dict.label" |
| | | :value="dict.value"></el-option> |
| | | :value="dict.value"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | |
| | | style="width: 150px" |
| | | @change="shangpin" |
| | | filterable |
| | | clearable |
| | | clearablez |
| | | > |
| | | <el-option |
| | | v-for="item in categoryList" |
| | |
| | | }); |
| | | }, |
| | | |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | this.title = "体检套餐信息维护"; |
| | | this.open = true; |
| | | getPacInFo(row.pacId).then((response) => { |
| | | // this.form = response.data; |
| | | Object.keys(response.data).forEach((key) => { |
| | | this.$set(this.form, key, response.data[key]); |
| | | }); |
| | | this.youhui= this.form.limits |
| | | this.pics = this.form.price |
| | | this.form.xianprice = this.form.newPrice |
| | | this.lastXianPrice = this.form.xianprice |
| | | this.form.keywords = this.form.keywords.slice(0, -1); |
| | | this.form.keywords = this.form.keywords.split(","); |
| | | this.DataList = []; |
| | | this.checkedkey = []; |
| | | this.checkedListkey = []; |
| | | this.DataList = response.data.packageProjects; |
| | | this.DataList.forEach((item) => { |
| | | this.checkedkey.push(item.proId); |
| | | this.checkedListkey.push(item.proId); |
| | | }); |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | this.reset(); // 重置表单 |
| | | this.title = "体检套餐信息维护"; |
| | | this.open = true; |
| | | this.loading = true; |
| | | |
| | | // 获取新的数据列表(如果需要) |
| | | this.getDataList(); |
| | | }); |
| | | }, |
| | | getPacInFo(row.pacId).then((response) => { |
| | | const data = response.data || {}; |
| | | Object.keys(data).forEach((key) => { |
| | | this.$set(this.form, key, data[key]); |
| | | }); |
| | | this.youhui = data.limits || 10; |
| | | this.pics = data.price || 0; |
| | | this.form.xianprice = data.newPrice || 0; |
| | | this.lastXianPrice = this.form.xianprice; |
| | | this.form.keywords = data.keywords && data.keywords.length > 0 |
| | | ? data.keywords.slice(0, -1).split(",") |
| | | : []; |
| | | this.DataList = data.packageProjects || []; |
| | | this.checkedkey = this.DataList.map(item => item.proId || ''); |
| | | this.checkedListkey = [...this.checkedkey]; |
| | | this.checkedNodes = [...this.checkedkey]; // 同步 checkedNodes |
| | | |
| | | return this.getDataList(); |
| | | }).then(() => { |
| | | this.loading = false; |
| | | this.$nextTick(() => { |
| | | this.$refs.form.validate(); // 触发校验 |
| | | }); |
| | | }).catch((error) => { |
| | | this.loading = false; |
| | | this.$message.error("加载数据失败"); |
| | | console.error(error); |
| | | }); |
| | | }, |
| | | // 新增行 |
| | | addmembers() { |
| | | if (this.form.pacName) { |