| | |
| | | import Pagination from "@/components/Pagination"; |
| | | // 分页组件 |
| | | |
| | | import { monitorZoom } from "@/utils/devicePixelRatio.js"; |
| | | const m = monitorZoom(); |
| | | if (window.screen.width * window.devicePixelRatio >= 3840) { |
| | | document.body.style.zoom = 100 / (Number(m) / 2); // 屏幕为 4k 时 |
| | | } else { |
| | | document.body.style.zoom = 100 / Number(m); |
| | | } |
| | | // import { monitorZoom } from "@/utils/devicePixelRatio.js"; |
| | | // const m = monitorZoom(); |
| | | // if (window.screen.width * window.devicePixelRatio >= 3840) { |
| | | // document.body.style.zoom = 100 / (Number(m) / 2); // 屏幕为 4k 时 |
| | | // } else { |
| | | // document.body.style.zoom = 100 / Number(m); |
| | | // } |
| | | |
| | | // 自定义表格工具组件 |
| | | import RightToolbar from "@/components/RightToolbar"; |
| | |
| | | this.upload.isUploading = true; |
| | | }, |
| | | // 文件上传成功处理 |
| | | // 文件上传成功处理 |
| | | handleFileSuccess(response, file, fileList) { |
| | | console.log(response, 666666); |
| | | if (response.code == 500) { |
| | | console.log(22222222222); |
| | | this.isdisabled = true; |
| | | // Message.warning(response.msg); |
| | | // this.$modal.msgError(response.msg); |
| | | // this.$modal.msgError("人员"+ response.data.list + "信息错误"); |
| | | const errorList = response.data.list.join(", "); |
| | | this.$confirm(`${errorList}`,`${response.msg}`, { |
| | | |
| | | this.$confirm(`${errorList}`, `${response.msg}`, { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "error", |
| | | center: true, |
| | | dangerouslyUseHTMLString: true, |
| | | }); |
| | | } |
| | | this.ListObj = response.data; |
| | | }else{ |
| | | this.isdisabled = false; |
| | | this.ListObj = response.data; |
| | | this.userList = response.data.list; |
| | | |
| | | |
| | | this.userList.forEach((item) => { |
| | | this.CompanyList.forEach((item1) => { |
| | | if (item1.drugManufacturerId == this.objs.drugManufacturerId) { |
| | |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | |
| | | this.upload.open = false; |
| | | this.upload.isUploading = false; |
| | | this.$refs.upload.clearFiles(); |
| | | this.leftList = response.msg; |
| | | console.log(response.code); |
| | | |
| | | if (this.leftList == "操作失败") { |
| | | this.isdisabled = true; |
| | |
| | | "导入结果", |
| | | { dangerouslyUseHTMLString: true } |
| | | ); |
| | | } else { |
| | | this.isdisabled = false; |
| | | this.$alert( |
| | | "<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + |
| | | response.msg, |
| | | { dangerouslyUseHTMLString: true } |
| | | ); |
| | | this.rightList = response; |
| | | } |
| | | } |
| | | // else { |
| | | // console.log(11111) |
| | | // this.isdisabled = false; |
| | | // this.$alert( |
| | | // "<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + |
| | | // response.msg, |
| | | // { dangerouslyUseHTMLString: true } |
| | | // ); |
| | | // this.rightList = response; |
| | | // } |
| | | for (let i = 0; i < fileList.length; i++) { |
| | | if (file.name != fileList[i].name) { |
| | | this.fileList.push({ |
| | |
| | | :limit.sync="queryParams.pageSize" @pagination="getList" /> |
| | | </div> --> |
| | | |
| | | <div style="margin-right: 70%"> |
| | | <div style="margin-right: 63%"> |
| | | <!-- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :pager-count="5" :current-page.sync="currentPage1" :current-page="page" |
| | | :page-sizes="pageSize" :page-size="size" layout="total, sizes, prev, pager, next, jumper" :total="total"> |
| | | </el-pagination> --> |
| | |
| | | }, |
| | | forms: {}, |
| | | youhui: 10, |
| | | initializing: true, // 初始化标志 |
| | | debounceTimer: null, |
| | | rules: { |
| | | |
| | |
| | | this.getKeyword(); |
| | | this.getCategory(); |
| | | }, |
| | | |
| | | methods: { |
| | | debounceNumberChange(currentValue, oldValue) { |
| | | clearTimeout(this.debounceTimer); |
| | |
| | | counterPrice: null, |
| | | limits: 10, |
| | | }; |
| | | this.initializing = true; |
| | | this.resetForm("form"); |
| | | }, |
| | | handleQuery() { |
| | |
| | | this.checkedListkey = []; |
| | | this.checkedNodes = []; |
| | | this.getDataList(); |
| | | this.youhui = 10 |
| | | }, |
| | | handleStatusChange(row) { |
| | | let data = { |
| | |
| | | }); |
| | | }, |
| | | handleUp() { |
| | | this.reset(); |
| | | this.title = "体检套餐信息维护"; |
| | | this.open = true; |
| | | getPacInFo(this.forms.pacId).then((response) => { |
| | |
| | | getPacInFo(row.pacId).then((response) => { |
| | | const data = response.data || {}; |
| | | Object.keys(data).forEach((key) => { |
| | | this.$set(this.form, key, data[key]); |
| | | this.$set(this.form, key, response.data[key]); |
| | | }); |
| | | this.youhui = data.limits || 10; |
| | | this.pics = data.price || 0; |
| | |
| | | this.checkedkey = this.DataList.map(item => item.proId || ''); |
| | | this.checkedListkey = [...this.checkedkey]; |
| | | this.checkedNodes = [...this.checkedkey]; |
| | | |
| | | return this.getDataList(); |
| | | |
| | | }).then(() => { |
| | | this.loading = false; |
| | | this.$nextTick(() => { |
| | |
| | | }).catch((error) => { |
| | | this.loading = false; |
| | | this.$message.error("加载数据失败"); |
| | | console.error(error); |
| | | }); |
| | | }, |
| | | addmembers() { |
| | |
| | | this.pics = this.DataList.reduce((total, item) => total + item.priceOrd, 0); |
| | | this.$nextTick(() => { |
| | | this.$refs.tree.setCheckedKeys(this.checkedNodes); |
| | | this.initializing = false; |
| | | }); |
| | | |
| | | }); |
| | | this.loading = false; |
| | | }, |
| | |
| | | }); |
| | | }, |
| | | handleCurrentChecked(data, checked, indeterminate) { |
| | | if (this.initializing) { |
| | | return; // 初始化时不处理 |
| | | } |
| | | if (checked) { |
| | | if (!this.DataList.some((item) => item.proId === data.proId)) { |
| | | this.DataList.push({ |
| | |
| | | if (!this.checkedNodes.includes(data.proId)) { |
| | | this.checkedNodes.push(data.proId); |
| | | } |
| | | this.updateTotalPrice(); |
| | | } else { |
| | | this.DataList = this.DataList.filter((item) => item.proId !== data.proId); |
| | | const index = this.checkedNodes.indexOf(data.proId); |
| | | if (index > -1) { |
| | | this.checkedNodes.splice(index, 1); |
| | | } |
| | | this.updateTotalPrice(); |
| | | } |
| | | this.updateTotalPrice(); |
| | | |
| | | }, |
| | | updateTotalPrice() { |
| | | this.form.xianprice = this.DataList.reduce((sum, item) => { |