| | |
| | | <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-item label="部门名称" prop="dwDeptName"> |
| | | <el-input v-model="form.dwDeptName" placeholder="请输入部门名称" /> |
| | | <el-form-item label="套餐名称" prop="dwDeptName"> |
| | | <el-input v-model="form.dwDeptName" placeholder="请输入套餐名称" /> |
| | | </el-form-item> |
| | | <el-form-item label="签约金额" prop="signingPrice"> |
| | | <el-input v-model="form.signingPrice" placeholder="请输入签约金额" /> |
| | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAddDept" |
| | | v-hasPermi="['system:comp:add']">保存部门</el-button> |
| | | v-hasPermi="['system:comp:add']">保存套餐</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="singleg" @click="handledeleDept" |
| | |
| | | <el-table ref="tb" v-loading="loading" :data="deptList" @selection-change="handleSelection" border |
| | | style="width: 320px" height="350"> |
| | | <el-table-column type="selection" width="40px" align="center" /> |
| | | <el-table-column label="部门名称" align="center" prop="dwDeptName" /> |
| | | <el-table-column label="套餐名称" align="center" prop="dwDeptName" /> |
| | | </el-table> |
| | | </div> |
| | | </el-col> |
| | |
| | | if (this.form.drugManufacturerId) { |
| | | this.beCurrentDept(); |
| | | } |
| | | this.title = "部门分组维护" + "( " + this.form.cnName + ")"; |
| | | this.title = "套餐分组维护" + "( " + this.form.cnName + ")"; |
| | | getInfo().then((response) => { |
| | | this.getInfodis = response.user.discount; |
| | | if (this.getInfodis == null || this.getInfodis == 10) { |
| | |
| | | } |
| | | } |
| | | |
| | | // 计算总价和现价 |
| | | this.OnenewpacName.forEach((item) => { |
| | | this.queryParams.price += item.proPrice; |
| | | this.queryParams.xianprice += item.ysPrice || 0; // 确保ysPrice存在 |
| | | }); |
| | | |
| | | // 计算优惠 |
| | | if (this.queryParams.price > 0) { |
| | | this.youhui = (Math.floor((this.queryParams.xianprice / this.queryParams.price) * 100) / 100) * 10; |
| | | } else { |
| | | this.youhui = 0; |
| | | } |
| | | }) |
| | | }, |
| | | handledbelete(row) { |
| | | this.queryParams.price = 0; |