| | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="开始日期" prop="startDate"> |
| | | <el-form-item label="年月" prop="yearMonth"> |
| | | <el-date-picker v-model="form.yearMonth" value-format="yyyy-MM" format="yyyy 年 MM 月" :disabled="crud.status.add == 0" clearable type="month" placeholder="请选择年月" style="width: 340px;" /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="开始日期" prop="startDate"> |
| | | <el-date-picker v-model="form.startDate" type="date" :picker-options="startDatePickerOptions" :disabled="crud.status.edit == crudStatusPrepared" style="width: 340px;" /> |
| | | </el-form-item> |
| | | <el-form-item label="结束日期"> |
| | | <el-date-picker v-model="form.endDate" type="date" :picker-options="endDatePickerOptions" style="width: 340px;" /> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | <el-form-item label="个人业绩比例" prop="personalPerformanceProportion"> |
| | | <el-input v-model="form.personalPerformanceProportion" style="width: 340px;"> |
| | | <template slot="append">%</template> |
| | |
| | | <el-tag>{{ scope.row.levelName }}</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column :show-overflow-tooltip="true" prop="startDate" label="开始日期"> |
| | | <!-- <el-table-column :show-overflow-tooltip="true" prop="startDate" label="开始日期"> |
| | | <template slot-scope="scope"> |
| | | {{ crud.toDate(scope.row.startDate) }} |
| | | </template> |
| | |
| | | <template slot-scope="scope"> |
| | | {{ crud.toDate(scope.row.endDate) }} |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | <el-table-column prop="yearMonth" label="年月" /> |
| | | <el-table-column :show-overflow-tooltip="true" prop="personalPerformanceProportion" label="个人业绩比例"> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.personalPerformanceProportion }}% |
| | |
| | | import crudUser from '@/api/system/user' |
| | | import crudLevel from '@/api/system/level' |
| | | |
| | | const defaultForm = { id: null, userId: null, levelId: null, startDate: null, endDate: null, personalPerformanceProportion: null, annualLeaveDays: null, remarks: null, createBy: null, createTime: null, updateBy: null, updateTime: null } |
| | | const defaultForm = { id: null, userId: null, levelId: null, yearMonth: null, startDate: null, endDate: null, personalPerformanceProportion: null, annualLeaveDays: null, remarks: null, createBy: null, createTime: null, updateBy: null, updateTime: null } |
| | | export default { |
| | | name: 'SysUserLevelOther', |
| | | components: { pagination, crudOperation, rrOperation, udOperation }, |
| | |
| | | levelId: [ |
| | | { required: true, message: '所属级别不能为空', trigger: 'change' } |
| | | ], |
| | | startDate: [ |
| | | { required: true, message: '开始日期不能为空', trigger: 'change' } |
| | | yearMonth: [ |
| | | { required: true, message: '日期不能为空', trigger: 'change' } |
| | | ], |
| | | // startDate: [ |
| | | // { required: true, message: '开始日期不能为空', trigger: 'change' } |
| | | // ], |
| | | personalPerformanceProportion: [ |
| | | { required: true, message: '个人业绩比例不能为空', trigger: 'blur' }, |
| | | { validator: proportionValidate, trigger: 'blur' } |