| | |
| | | |
| | | <!-- 套餐 --> |
| | | <div> |
| | | <el-dialog :title="title" :visible.sync="openss" width="1400px" custom-class="custom-dialog" append-to-body |
| | | <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-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" |
| | |
| | | </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> |
| | | @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-form-item label="优惠"> |
| | | <el-input-number ref="inputNumber" style="width: 150px" v-model="youhui" :precision="2" :step="0.1" |
| | | :max="10" :min="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 |
| | |
| | | </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="528"> |
| | | <el-table-column label="项目名称" align="center" prop="proName" width="486"> |
| | | |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.proName }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="原价" align="center" prop="proPrice" width="74"></el-table-column> |
| | | <el-table-column label="折扣" width="81"> |
| | | <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" width="74"></el-table-column> |
| | | <el-table-column label="操作" align="center" width="70"> |
| | | <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> |
| | |
| | | </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"> |
| | | height="483"> |
| | | <!-- <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="newID" width="50px"> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.newID }} |
| | | </template> |
| | |
| | | </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: 35px" @submit.native.prevent> |
| | | 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> |
| | |
| | | <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> |
| | | @click="resetright">确 认</el-button> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="8" :xs="24"> |
| | |
| | | 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) { |
| | |
| | | padding: 5px 30px; |
| | | } |
| | | |
| | | .custom-dialog ::v-deep .el-dialog__wrapper { |
| | | height: 1400px; |
| | | /* 设置弹出框的高度 */ |
| | | ::v-deep .el-dialog { |
| | | height: 750px; |
| | | overflow-y: auto; |
| | | /* 超过最大高度时出现滚动条 */ |
| | | } |
| | | </style> |