| | |
| | | type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
| | | <el-button type="primary" icon="el-icon-search" size="small" @click="handleQuery">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="small" @click="resetQuery">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" |
| | | v-hasPermi="['platform:score:add']">新增</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" |
| | | v-hasPermi="['platform:score:edit']">修改</el-button> |
| | | v-hasPermi="['contract:score:add']">新增</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete" |
| | | v-hasPermi="['platform:score:remove']">删除</el-button> |
| | | v-hasPermi="['contract:score:remove']">删除</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" |
| | | v-hasPermi="['platform:score:export']">导出</el-button> |
| | | v-hasPermi="['contract:score:export']">导出</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="审核人" align="center" prop="auditingUser" /> |
| | | <el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width"> |
| | | <el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width" width="230px"> |
| | | <template slot-scope="scope"> |
| | | <el-button size="mini" type="text" icon="el-icon-view" @click="handleView(scope.row)">详情</el-button> |
| | | <el-button size="mini" type="text" icon="el-icon-s-check" @click="handleAuditing(scope.row)" |
| | | v-hasPermi="['default:audit']" v-if="scope.row.auditingStatus === '待审核'">审核</el-button> |
| | | v-hasPermi="['contract:score:audit']" v-if="scope.row.auditingStatus === '待审核'">审核</el-button> |
| | | <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" |
| | | v-if="scope.row.auditingStatus === '待审核'" v-hasPermi="['system:auditing:edit']">修改</el-button> |
| | | <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button> |
| | | v-if="scope.row.auditingStatus === '待审核'" v-hasPermi="['contract:score:edit']">修改</el-button> |
| | | <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['contract:score:remove']">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitAuditing">确 定</el-button> |
| | | <el-button @click="closeAuditing">取 消</el-button> |
| | | <el-button type="primary" @click="submitAuditing">确 定</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | |
| | | <template slot-scope="{ data }"> |
| | | <el-tooltip class="item" :disabled="data.label.length < 16 && !data.deductCategory" effect="dark" |
| | | :content=" |
| | | data.label.length < 16 ? |
| | | data.deductCategory ? |
| | | data.deductCategory == '分数乘以数量' ? '扣' + data.calcFraction + '分*数量 ' : data.deductCategory == '除以数量后乘以分数' ? '扣' + data.calcFraction + '分/' + data.calcUnit + '小时' : '扣' + data.calcFraction + '分' : |
| | | '' : |
| | | (data.deductCategory ? |
| | | data.label + ' ' + (data.deductCategory == '分数乘以数量' ? '扣' + data.calcFraction + '分*数量 ' : data.deductCategory == '除以数量后乘以分数' ? '扣' + data.calcFraction + '分/' + data.calcUnit + '小时' : '扣' + data.calcFraction + '分') : |
| | | data.label.length < 16 ? |
| | | data.deductCategory ? |
| | | data.deductCategory == '分数乘以数量' ? '扣' + data.calcFraction + '分*数量 ' : data.deductCategory == '除以数量后乘以分数' ? '扣' + data.calcFraction + '分/' + data.calcUnit + '小时' : '扣' + data.calcFraction + '分' : |
| | | '' : |
| | | (data.deductCategory ? |
| | | data.label + ' ' + (data.deductCategory == '分数乘以数量' ? '扣' + data.calcFraction + '分*数量 ' : data.deductCategory == '除以数量后乘以分数' ? '扣' + data.calcFraction + '分/' + data.calcUnit + '小时' : '扣' + data.calcFraction + '分') : |
| | | data.label)" |
| | | placement="left"> |
| | | <span>{{ data.label }}</span> |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitForm">确 定</el-button> |
| | | <el-button @click="cancel">取 消</el-button> |
| | | <el-button type="primary" @click="submitForm">确 定</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | |
| | | let item = this.$refs['cascader'].getCheckedNodes()[0].data; |
| | | this.calcObj = item; |
| | | this.form.contractId = item.contractId; |
| | | this.form.ruleName = item.ruleName + " / " + item.label; |
| | | this.form.deductCategory = item.deductCategory == '分数乘以数量' ? '扣' + item.calcFraction + '分*数量 ' : item.deductCategory == '除以数量后乘以分数' ? '扣' + item.calcFraction + '分/' + item.calcUnit + '小时' : '扣' + item.calcFraction + '分'; |
| | | if (item.deductCategory == "扣指定分数") { |
| | | this.needNum = false; |
| | |
| | | handleChangeUnit(value) { |
| | | getRuleListByUnitId(value).then((res) => { |
| | | this.options = this.getTreeData(res.data); |
| | | // 手动树形结构 |
| | | if (this.options) { |
| | | let groupedList = {}; |
| | | this.options.forEach(item => { |
| | | if (!groupedList[item.ruleName]) { |
| | | groupedList[item.ruleName] = { |
| | | value: 0, |
| | | children: [], |
| | | label: item.ruleName, |
| | | ruleName: item.ruleName, |
| | | contractId: item.contractId |
| | | }; |
| | | } |
| | | groupedList[item.ruleName].children.push(item); |
| | | }); |
| | | let result = Object.values(groupedList); |
| | | this.options = result; |
| | | } |
| | | }) |
| | | }, |
| | | getTreeData(data) { |
| | |
| | | if (null != this.daterangeAuditingTime && '' != this.daterangeAuditingTime) { |
| | | this.queryParams["auditingStartTime"] = this.daterangeAuditingTime[0]; |
| | | this.queryParams["auditingEndTime"] = this.daterangeAuditingTime[1]; |
| | | } else { |
| | | this.queryParams["auditingStartTime"] = null; |
| | | this.queryParams["auditingEndTime"] = null; |
| | | } |
| | | if (null != this.daterangeCreateTime && '' != this.daterangeCreateTime) { |
| | | this.queryParams["createStartTime"] = this.daterangeCreateTime[0]; |
| | | this.queryParams["createEndTime"] = this.daterangeCreateTime[1]; |
| | | } else { |
| | | this.queryParams["createStartTime"] = null; |
| | | this.queryParams["createEndTime"] = null; |
| | | } |
| | | console.log("this.queryParams", this.queryParams) |
| | | listAuditing(this.queryParams).then(response => { |
| | | this.auditingList = response.rows; |
| | | this.total = response.total; |
| | |
| | | .el-cascader-node { |
| | | max-width: 300px; |
| | | } |
| | | </style> |
| | | </style> |