| | |
| | | size="small" |
| | | type="daterange" |
| | | range-separator="至" |
| | | format="yyyy-MM-dd HH:mm:ss" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | format="yyyy-MM-dd" |
| | | value-format="yyyy-MM-dd" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期" @change="refreshTable()" clearable> |
| | | </el-date-picker> |
| | |
| | | </div> |
| | | <div class="table"> |
| | | <ValueTable ref="ValueTable0" |
| | | v-if="currentTable == 'ValueTable0'" |
| | | v-if="currentTable == 'ValueTable0'" :isColumnWidth="true" |
| | | :url="$api.auxiliaryWorkingHoursDay.selectAuxiliaryWorkingHoursDay" |
| | | :delUrl="$api.auxiliaryWorkingHoursDay.deleteAuxiliaryWorkingHoursDay" :componentData="componentData" :key="upIndex" |
| | | @delete="handleDelete" /> |
| | | <ValueTable ref="ValueTable1" |
| | | v-if="currentTable == 'ValueTable1'" |
| | | <ValueTable ref="ValueTable1" v-if="currentTable == 'ValueTable1'" :isColumnWidth="true" |
| | | :url="$api.auxiliaryOutputWorkingHours.selectAuxiliaryOutputWorkingHours" :componentData="componentData1" :key="upIndex1" /> |
| | | </div> |
| | | <el-dialog :title="formData.id?'编辑':'录入数据'" :visible.sync="addVisible" width="600px" :before-close="handleClose"> |
| | |
| | | let year = currentDate.getFullYear(); |
| | | let month = String(currentDate.getMonth() + 1).padStart(2, '0'); |
| | | let day = String(currentDate.getDate()).padStart(2, '0'); |
| | | let formattedDate1 = `${year}-${month}-${day} 00:00:00`; |
| | | let formattedDate2 = `${year}-${month}-${day} 23:59:59`; |
| | | let formattedDate1 = `${year}-${month}-${day}`; |
| | | let formattedDate2 = `${year}-${month}-${day}`; |
| | | this.entity.dateTime.push(formattedDate1); |
| | | this.entity.dateTime.push(formattedDate2); |
| | | this.componentData1.entity.dateTime.push(formattedDate1); |
| | |
| | | getYearAndMonthAndDays(date){ |
| | | return getYearAndMonthAndDays(date) |
| | | }, |
| | | refreshTable(){ |
| | | refreshTable(e){ |
| | | let entity = {} |
| | | if(this.entity.week1&&this.entity.week2){ |
| | | entity.week = JSON.stringify([this.entity.week1,this.entity.week2]) |
| | |
| | | if(this.currentTable=='ValueTable0'){ |
| | | entity.state = this.entity.state |
| | | this.componentData.entity = {...this.componentData.entity,...entity} |
| | | this.$refs['ValueTable0'].selectList() |
| | | this.$refs['ValueTable0'].selectList(e) |
| | | }else{ |
| | | this.componentData1.entity = {...this.componentData1.entity,...entity} |
| | | this.$refs['ValueTable1'].selectList() |
| | | this.$refs['ValueTable1'].selectList(e) |
| | | } |
| | | this.collectWorkingHours() |
| | | }, |
| | |
| | | this.formData.nonproductiveTime = '' |
| | | this.formData.auxiliaryProject = '' |
| | | // this.addVisible = false |
| | | this.refreshTable() |
| | | this.refreshTable('page') |
| | | this.collectWorkingHours() |
| | | }) |
| | | }else{ |
| | |
| | | this.formData.nonproductiveTime = '' |
| | | this.formData.auxiliaryProject = '' |
| | | // this.addVisible = false |
| | | this.refreshTable() |
| | | this.refreshTable('page') |
| | | this.collectWorkingHours() |
| | | }) |
| | | } |
| | |
| | | }, |
| | | submitBatchCheckDialog () { |
| | | this.batchCheckDialog = false |
| | | this.refreshTable() |
| | | this.refreshTable('page') |
| | | this.collectWorkingHours() |
| | | }, |
| | | submitCheck(e){ |
| | |
| | | if (res.code == 201) return |
| | | this.$message.success('操作成功') |
| | | this.checkVisible = false |
| | | this.refreshTable() |
| | | this.refreshTable('page') |
| | | this.collectWorkingHours() |
| | | }) |
| | | }else{ |
| | |
| | | if (res.code == 201) return |
| | | this.$message.success('操作成功') |
| | | this.checkVisible = false |
| | | this.refreshTable() |
| | | this.refreshTable('page') |
| | | this.collectWorkingHours() |
| | | }) |
| | | } |