| | |
| | | <div class="search_label">日期:</div> |
| | | <div class="search_input" style="display: flex;align-items: center;"> |
| | | <el-date-picker |
| | | v-model="componentData.entity.laboratory" |
| | | v-model="componentData.entity.month" |
| | | type="month" |
| | | format="yyyy-MM-dd HH:mm:ss" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | format="yyyy-MM" |
| | | value-format="yyyy" |
| | | placeholder="选择月" size="small" style="width: 100%;"> |
| | | </el-date-picker> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing"> |
| | | <div class="search_label">员工:</div> |
| | | <el-select v-model="componentData.entity.laboratory" placeholder="全部" size="small" @change="refreshTable()"> |
| | | <el-select v-model="componentData.entity.name" placeholder="全部" size="small" @change="refreshTable()"> |
| | | <el-option v-for="item in personList" :key="item.id" :label="item.name" :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | |
| | | </el-option> |
| | | </el-select> --> |
| | | <el-input size="small" placeholder="请输入" clearable |
| | | v-model="componentData.entity.department" @keyup.enter.native="refreshTable()"></el-input> |
| | | v-model="componentData.entity.departLims" @keyup.enter.native="refreshTable()"></el-input> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing" style="padding-left: 30px;width: 100px;"> |
| | |
| | | :url="$api.auxiliaryWorkingHours.selectAuxiliaryWorkingHours" |
| | | :componentData="componentData" :inputUrl="$api.auxiliaryWorkingHours.selectAuxiliaryWorkingHours" :downUrl="$api.auxiliaryWorkingHours.selectAuxiliaryWorkingHours" :key="upIndex" /> |
| | | <ValueTable ref="ValueTable1" |
| | | v-show="currentTable == 'value1'" |
| | | :url="$api.auxiliaryWorkingHours.selectAuxiliaryWorkingHours" |
| | | v-if="currentTable == 'value1'" |
| | | :url="$api.auxiliaryCorrectionHours.selectAuxiliaryCorrectionHours" |
| | | :componentData="componentData0" :key="upIndex" /> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | <script> |
| | | import ValueTable from '../../tool/value-table.vue' |
| | | import { |
| | | getYearAndMonthAndDays |
| | | } from '../../../util/date' |
| | | export default { |
| | | components: { |
| | | ValueTable |
| | |
| | | return{ |
| | | componentData: { |
| | | entity: { |
| | | number: null, |
| | | department: null, |
| | | laboratory: null, |
| | | month: null, |
| | | name: null, |
| | | departLims: null, |
| | | orderBy: { |
| | | field: 'id', |
| | | order: 'desc' |
| | |
| | | }, |
| | | componentData0: { |
| | | entity: { |
| | | number: null, |
| | | department: null, |
| | | laboratory: null, |
| | | month: getYearAndMonthAndDays().split('-')[0]+'-'+getYearAndMonthAndDays().split('-')[1], |
| | | name: null, |
| | | departLims: null, |
| | | orderBy: { |
| | | field: 'id', |
| | | order: 'desc' |
| | |
| | | requiredAdd: [], |
| | | requiredUp: [] |
| | | }, |
| | | entity:{}, |
| | | upIndex:0, |
| | | weekList:[], |
| | | personList:[], |
| | |
| | | this.getUsers() |
| | | }, |
| | | methods: { |
| | | getYearAndMonthAndDays(date){ |
| | | return getYearAndMonthAndDays(date) |
| | | }, |
| | | refresh(){}, |
| | | refreshTable(){}, |
| | | getUsers(){ |