| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px" |
| | | @submit.native.prevent> |
| | | <el-form-item label="单位名称" prop="cnName"> |
| | | <el-input ref="inputName" v-model="queryParams.cnName" placeholder="请输入单位名称" clearable |
| | | @keyup.enter.native="handleQuery" /> |
| | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="7" :xs="24"> |
| | | <div style="padding: 0 20px"> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px" :inline="true"> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px" :inline="true" @submit.native.prevent> |
| | | <el-form-item label="套餐名称" prop="dwDeptName"> |
| | | <el-input v-model="form.dwDeptName" placeholder="请输入套餐名称" /> |
| | | </el-form-item> |
| | |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="17" :xs="24"> |
| | | <el-form ref="form" :model="forms" :rules="rules" label-width="78px" :inline="true"> |
| | | <el-form ref="form" :model="forms" :rules="rules" label-width="78px" :inline="true" @submit.native.prevent> |
| | | <el-form-item label="分组名称" prop="groupingName"> |
| | | <el-input v-model="forms.groupingName" placeholder="请输入分组名称" style="width: 130px" |
| | | @focus="changegroupingName" /> |
| | |
| | | |
| | | <!-- 套餐 --> |
| | | <div> |
| | | <el-dialog :title="title" :visible.sync="openss" width="1400px" append-to-body :close-on-click-modal="false"> |
| | | <el-dialog :title="title" :visible.sync="openss" width="1400px" :style="{ height: 1400 + 'px' }" append-to-body |
| | | :close-on-click-modal="false"> |
| | | <el-row :gutter="24"> |
| | | <el-col :span="8" :xs="24"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px" |
| | | @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" /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearch">搜索</el-button> |
| | | <!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> --> |
| | | |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table ref="tbone" border v-loading="loading" :data="newpacName" @selection-change="handleChangeOne" |
| | | height="478"> |
| | | <el-table-column type="selection" width="40px" align="center" /> |
| | | <el-table-column label="序号" align="center" prop="newID" width="50px" /> |
| | | <el-table-column label="序号" align="center" prop="pacId" width="50px" /> |
| | | <el-table-column label="套餐名称/价格/元" align="center" prop="pacName"> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.pacName + "/" + scope.row.price }} |
| | |
| | | </el-col> |
| | | <el-col :span="6" :xs="24"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="46px" |
| | | style="height: 35px"> |
| | | @submit.native.prevent> |
| | | <el-form-item label="合计" prop="price"> |
| | | <el-input ref="inputName" v-model="queryParams.price" placeholder="合计" clearable style="width: 140px" /> |
| | | </el-form-item> |
| | |
| | | </div> --> |
| | | <!-- @row-dblclick="dbclick" --> |
| | | <el-table border v-loading="loading" :data="OnenewpacName" :row-class-name="tableRowClassName" height="478"> |
| | | <el-table-column label="项目名称/价格/元" align="center" prop="proName"> |
| | | <el-table-column label="项目名称" align="center" prop="proName"> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.proName + "/" + scope.row.proPrice }} |
| | | {{ scope.row.proName }} |
| | | </template> |
| | | </el-table-column> |
| | | |
| | |
| | | </el-col> |
| | | <el-col :span="8" :xs="24"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" |
| | | label-width="68px"> |
| | | label-width="68px" @submit.native.prevent> |
| | | <el-form-item label="项目名称" prop="proName"> |
| | | <el-input ref="inputName" v-model="queryParams.proName" placeholder="请输入项目名称" clearable |
| | | @keyup.enter.native="handleSearchFor" style="width: 140px" /> |
| | |
| | | <el-dialog :title="title" :visible.sync="openOne" width="1400px" append-to-body :close-on-click-modal="false"> |
| | | <el-row :gutter="24" v-if="!isTableVisible"> |
| | | |
| | | <el-col :span="11" :xs="24"> |
| | | <el-col :span="15" :xs="24"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="46px" |
| | | style="height: 35px"> |
| | | style="height: 35px" @submit.native.prevent> |
| | | <el-form-item label="原价"> |
| | | <el-input ref="inputName" v-model="queryParams.price" placeholder="合计" clearable style="width: 140px" /> |
| | | </el-form-item> |
| | | <el-form-item label="优惠"> |
| | | <el-input-number ref="inputNumber" style="width: 150px" v-model="youhui" :precision="2" :step="0.1" |
| | | @change="numberChange"></el-input-number> |
| | | :min="0" @change="numberChange"></el-input-number> |
| | | </el-form-item> |
| | | <el-form-item label="现价"> |
| | | <el-input ref="inputName" v-model="queryParams.xianprice" placeholder="合计" clearable |
| | | style="width: 140px" @input="changeXianjia" @blur="numberChange(youhui, youhui)" /> |
| | | style="width: 140px" @input="changeXianjia" @blur="numberChangeXianPrice(youhui, youhui)" /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuerys">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table border v-loading="loading" :data="OnenewpacName" :row-class-name="tableRowClassName" height="478"> |
| | | <el-table-column label="项目名称/价格/元" align="center" prop="proName"> |
| | | <el-table-column label="项目名称" align="center" prop="proName" width="486"> |
| | | |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.proName + "/" + scope.row.proPrice }} |
| | | {{ scope.row.proName }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="原价" align="center" prop="proPrice"></el-table-column> |
| | | <el-table-column label="折扣"> |
| | | <el-table-column label="原价" align="center" prop="proPrice" width="85"></el-table-column> |
| | | <el-table-column label="折扣" width="85"> |
| | | <template slot-scope="scope"> |
| | | <!-- 只输入纯数字折扣 --> |
| | | <el-input v-model.number="scope.row.limits" @input="validateDiscount(scope.row)" placeholder="输入折扣" |
| | |
| | | </el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="现价" align="center" prop="ysPrice"></el-table-column> |
| | | <el-table-column label="现价" align="center" prop="ysPrice" width="85"></el-table-column> |
| | | <el-table-column label="操作" align="center" width="85"> |
| | | <template slot-scope="scope"> |
| | | <el-button size="mini" type="text" icon="el-icon-delete" |
| | | @click="handledbelete(scope.row)">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-col> |
| | | <el-col :span="2" :xs="24"> |
| | | <div style="margin: 240% 16%"> |
| | | <el-button type="primary" size="medium " icon="el-icon-back" |
| | | style="writing-mode: vertical-rl; text-align: center;letter-spacing: 10px;" @click="resetright">确 |
| | | 认</el-button> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="7" :xs="24"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" |
| | | label-width="68px" @submit.native.prevent> |
| | | <el-form-item label="项目名称" prop="proName"> |
| | | <el-input ref="inputName" v-model="queryParams.proName" placeholder="请输入项目名称" clearable |
| | | @keyup.enter.native="handleSearchFor" style="width: 140px" /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearchFor">搜索</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table border v-loading="loading" ref="tre" :data="Treedata" @selection-change="handleChangesingle" |
| | | height="478" style="width: 100%"> |
| | | <el-table-column type="selection" width="40px" align="center" /> |
| | | <el-table-column label="项目名称" align="center" prop="proName" /> |
| | | <el-table-column label="项目价格/元" align="center" prop="proPrice" /> |
| | | </el-table> |
| | | </el-col> |
| | | </el-row> |
| | | <!-- -=----------------------------------------------------- --> |
| | | <el-row :gutter="24" v-else> |
| | | <el-col :span="6" :xs="24"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px" |
| | | @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" /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearch">搜索</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table ref="tbone" border v-loading="loading" :data="newpacName" @selection-change="handleChangeOne" |
| | | height="483"> |
| | | <!-- <el-table-column type="selection" width="40px" align="center" /> --> |
| | | |
| | | <el-table-column label="序号" align="center" prop="newID" width="50px"> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.newID }} |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="套餐名称/价格/元" align="center" prop="pacName"> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.pacName + "/" + scope.row.price }} |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div style="font-size: 16px;margin-top: 10px;">项目总条数:<span style="font-weight: 700;margin-right: 5px;">{{ |
| | | newpacName.length }}</span>条</div> |
| | | </el-col> |
| | | <el-col :span="8" :xs="24"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="46px" |
| | | style="height: 51px" @submit.native.prevent> |
| | | <el-form-item label="合计" prop="price"> |
| | | <el-input ref="inputName" v-model="queryParams.price" placeholder="合计" clearable style="width: 140px" /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuerys">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table border v-loading="loading" :data="OnenewpacName" :row-class-name="tableRowClassName" height="478"> |
| | | <el-table-column label="项目名称" align="center" prop="proName" width="170"> |
| | | |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.proName }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="原价" align="center" prop="proPrice"></el-table-column> |
| | | <el-table-column label="操作" align="center" width="68"> |
| | | <template slot-scope="scope"> |
| | | <el-button size="mini" type="text" icon="el-icon-delete" |
| | |
| | | 认</el-button> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="11" :xs="24"> |
| | | <el-col :span="8" :xs="24"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" |
| | | label-width="68px"> |
| | | label-width="68px" @submit.native.prevent> |
| | | <el-form-item label="项目名称" prop="proName"> |
| | | <el-input ref="inputName" v-model="queryParams.proName" placeholder="请输入项目名称" clearable |
| | | @keyup.enter.native="handleSearchFor" style="width: 140px" /> |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table border v-loading="loading" ref="tre" :data="Treedata" @selection-change="handleChangesingle" |
| | | height="478" style="width: 70%"> |
| | | <el-table-column type="selection" width="40px" align="center" /> |
| | | <el-table-column label="项目名称" align="center" prop="proName" /> |
| | | <el-table-column label="项目价格/元" align="center" prop="proPrice" /> |
| | | </el-table> |
| | | </el-col> |
| | | </el-row> |
| | | <!-- -=----------------------------------------------------- --> |
| | | <el-row :gutter="24" v-else> |
| | | <el-col :span="8" :xs="24"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px"> |
| | | <el-form-item label="套餐名称" prop="pacName"> |
| | | <el-input ref="inputName" v-model="queryParams.pacName" placeholder="请输入套餐名称" clearable |
| | | @keyup.enter.native="handleSearch" style="width: 140px" /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearch">搜索</el-button> |
| | | <!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> --> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table ref="tbone" border v-loading="loading" :data="newpacName" @selection-change="handleChangeOne" |
| | | height="478"> |
| | | <el-table-column type="selection" width="40px" align="center" /> |
| | | <el-table-column label="序号" align="center" prop="newID" width="50px" /> |
| | | <el-table-column label="套餐名称/价格/元" align="center" prop="pacName"> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.pacName + "/" + scope.row.price }} |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-col> |
| | | <el-col :span="6" :xs="24"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="46px" |
| | | style="height: 35px"> |
| | | <el-form-item label="合计" prop="price"> |
| | | <el-input ref="inputName" v-model="queryParams.price" placeholder="合计" clearable style="width: 140px" /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuerys">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table border v-loading="loading" :data="OnenewpacName" :row-class-name="tableRowClassName" height="478"> |
| | | <el-table-column label="项目名称/价格/元" align="center" prop="proName"> |
| | | |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.proName + "/" + scope.row.proPrice }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="原价" align="center" prop="proPrice"></el-table-column> |
| | | <el-table-column label="操作" align="center" width="68"> |
| | | <template slot-scope="scope"> |
| | | <el-button size="mini" type="text" icon="el-icon-delete" |
| | | @click="handledbelete(scope.row)">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-col> |
| | | <el-col :span="2" :xs="24"> |
| | | <div style="margin: 240% 16%"> |
| | | <el-button type="primary" size="medium " icon="el-icon-back" |
| | | style="writing-mode: vertical-rl; text-align: center;letter-spacing: 10px;" |
| | | @click="resetright">确认</el-button> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="8" :xs="24"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" |
| | | label-width="68px"> |
| | | <el-form-item label="项目名称" prop="proName"> |
| | | <el-input ref="inputName" v-model="queryParams.proName" placeholder="请输入项目名称" clearable |
| | | @keyup.enter.native="handleSearchFor" style="width: 140px" /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearchFor">搜索</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table border v-loading="loading" ref="tre" :data="Treedata" @selection-change="handleChangesingle" |
| | | height="478" style="width: 70%"> |
| | | <el-table-column type="selection" width="40px" align="center" /> |
| | | <el-table-column label="项目名称" align="center" prop="proName" width="130" /> |
| | | <el-table-column label="项目名称" align="center" prop="proName" width="288" /> |
| | | <el-table-column label="项目价格/元" align="center" prop="proPrice" width="100" /> |
| | | </el-table> |
| | | </el-col> |
| | |
| | | <!-- 添加或修改体检单位信息维护对话框 --> |
| | | <div class="dia"> |
| | | <el-dialog :title="title" :visible.sync="open" width="1340px" append-to-body> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="106px" :inline="true"> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="106px" :inline="true" @submit.native.prevent> |
| | | <el-form-item label="单位名称" prop="cnName"> |
| | | <el-input v-model="form.cnName" placeholder="请输入中文名称" style="width: 520px" /> |
| | | </el-form-item> |
| | |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> --> |
| | |
| | | }, |
| | | sfzs: '', |
| | | youhui: '', |
| | | a: '', |
| | | // 表单校验 |
| | | rules: { |
| | | cnName: [{ required: true, validator: checkPhoneNum, trigger: "blur" }], |
| | |
| | | this.handleQuery(); |
| | | }, |
| | | resetQuerys() { |
| | | (this.OnenewpacName = []), |
| | | (this.queryParams.price = 0), |
| | | this.$refs.tbone.toggleRowSelection(this.pacList[0], false); |
| | | this.OnenewpacName = [], |
| | | this.queryParams.price = 0, |
| | | this.queryParams.xianprice = 0, |
| | | this.youhui = 0 |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | |
| | | // this.$modal.msgError(`该人员最高优惠权限为${this.getInfodis}折`); |
| | | } |
| | | this.OnenewpacName.forEach((item) => { |
| | | const proPrice = new Big(item.proPrice) |
| | | const limits = new Big(this.youhui) |
| | | const result = proPrice.times(limits.div(10)) |
| | | item.limits = this.youhui |
| | | const proPrice = new Big(item.proPrice); |
| | | const limits = new Big(item.limits); |
| | | const result = proPrice.times(limits.div(10)); // ordPrice * (discount / 10) |
| | | item.ysPrice = result.toNumber(); |
| | | this.a = this.OnenewpacName.reduce((sum, item) => { |
| | | this.queryParams.xianprice = this.OnenewpacName.reduce((sum, item) => { |
| | | return sum.plus(new Big(item.ysPrice || '0')); |
| | | }, new Big(0)); |
| | | |
| | | }) |
| | | if (this.a == this.queryParams.xianprice) { |
| | | // ---------------------------------------------------------- |
| | | |
| | | } else { |
| | | if (this.OnenewpacName.length > 0) { |
| | | this.OnenewpacName[OnenewpacName.length - 1].ysPrice += this.queryParams.xianprice - this.a; |
| | | } |
| | | } |
| | | }) |
| | | .catch(() => { |
| | | this.youhui = oldValue; |
| | | }); |
| | | |
| | | }, |
| | | numberChangeXianPrice(currentValue, oldValue) { |
| | | this.$confirm("确定修改所有子项的折扣吗?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | this.youhui = currentValue; |
| | | if (this.youhui < this.getInfodis) { |
| | | this.youhui = this.getInfodis; |
| | | } |
| | | |
| | | let totalYsprice = new Big(0); // 初始化总 ysprice |
| | | |
| | | this.OnenewpacName.forEach((item) => { |
| | | item.limits = this.youhui; |
| | | const proPrice = new Big(item.proPrice); |
| | | const limits = new Big(item.limits); |
| | | const result = proPrice.times(limits.div(10)); // ordPrice * (discount / 10) |
| | | item.ysPrice = result.toNumber(); |
| | | totalYsprice = totalYsprice.plus(new Big(item.ysPrice)); |
| | | }); |
| | | |
| | | // 计算完所有 ysPrice 后进行调整 |
| | | if (totalYsprice.toNumber() !== this.queryParams.xianprice) { |
| | | const diff = this.queryParams.xianprice - totalYsprice.toNumber(); |
| | | if (this.OnenewpacName.length > 0) { |
| | | const lastItem = this.OnenewpacName[this.OnenewpacName.length - 1]; |
| | | lastItem.ysPrice += diff; |
| | | // 调整后更新 queryParams.xianprice |
| | | this.queryParams.xianprice = totalYsprice.plus(diff).toNumber(); |
| | | } |
| | | } |
| | | }) |
| | | .catch(() => { |
| | | this.youhui = oldValue; |
| | | }); |
| | | }, |
| | | changegroupingName() { |
| | | if (this.selectionList.length <= 0) { |
| | | this.$modal.msgError("请先选中部门或添加新的部门"); |
| | |
| | | this.loading = true; |
| | | if (this.forms.sex) { |
| | | deptTreeSelect(this.forms.sex).then((response) => { |
| | | console.log('111', response.rows); |
| | | |
| | | this.newpacName = response.rows; |
| | | this.loading = false; |
| | | response.rows.forEach((item, index) => { |
| | |
| | | }); |
| | | } else { |
| | | deptTreeSelect().then((response) => { |
| | | console.log('222', response.rows); |
| | | this.newpacName = response.rows; |
| | | this.loading = false; |
| | | response.rows.forEach((item, index) => { |
| | |
| | | } |
| | | getProjectList().then((response) => { |
| | | this.Treedata = response.data; |
| | | |
| | | }); |
| | | }, |
| | | |
| | | getpro() { |
| | | getProjectList().then((response) => { |
| | | this.Treedata = response.data; |
| | | }); |
| | | }, |
| | | handleSearch() { |
| | | if (this.queryParams.pacName) { |
| | | getPackageList(this.queryParams.pacName).then((response) => { |
| | | console.log('333', response.data); |
| | | this.newpacName = response.data; |
| | | response.data.forEach((item, index) => { |
| | | item.newID = |
| | |
| | | }); |
| | | } else { |
| | | deptTreeSelect().then((response) => { |
| | | console.log('44', response.rows); |
| | | this.newpacName = response.rows; |
| | | response.rows.forEach((item, index) => { |
| | | item.newID = |
| | |
| | | }, |
| | | handleSearchFor() { |
| | | getProjectList(this.queryParams.proName).then((response) => { |
| | | this.Treedata = response.data; |
| | | |
| | | response.data.forEach((item, index) => { |
| | | item.newID = |
| | | (this.queryParams.pageNum - 1) * this.queryParams.pageSize + |
| | | index + |
| | | 1; |
| | | }); |
| | | this.Treedata = response.data; |
| | | }); |
| | | }, |
| | | // 单项数据获取 |
| | |
| | | |
| | | |
| | | if (this.forms.sex) { |
| | | console.log('进来了if'); |
| | | |
| | | deptTreeSelect(this.forms.sex).then((response) => { |
| | | // 套餐名称 |
| | | this.newpacName = response.rows; |
| | | |
| | | console.log('5', response.rows); |
| | | this.loading = false; |
| | | response.rows.forEach((item, index) => { |
| | | item.newID = |
| | |
| | | }); |
| | | }); |
| | | } else { |
| | | console.log('进来了else'); |
| | | |
| | | deptTreeSelect().then((response) => { |
| | | this.newpacName = response.rows; |
| | | console.log('6', response.rows); |
| | | this.loading = false; |
| | | response.rows.forEach((item, index) => { |
| | | item.newID = |
| | |
| | | width: 50px; |
| | | height: 100px; |
| | | } |
| | | |
| | | ::v-deep .el-dialog__body { |
| | | padding: 5px 30px; |
| | | } |
| | | |
| | | ::v-deep .el-dialog { |
| | | height: 750px; |
| | | overflow-y: auto; |
| | | } |
| | | </style> |