Merge remote-tracking branch 'origin/master'
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="复核说明:"> |
| | | <el-input v-model="formData0.reviewerRemark" type="textarea" :rows="3" size="small" :disabled="title=='批准'"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | |
| | | <el-input v-model="formData0.number" size="small" :disabled="title=='批准'"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="数量:" required> |
| | | <el-input v-model="formData0.amount" size="small" :disabled="title=='批准'"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="复核数量:" required> |
| | | <el-input v-model="formData0.reviewerNumber" size="small" :disabled="title=='批准'"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="核准工时:"> |
| | |
| | | </el-form> |
| | | </el-col> |
| | | </el-row> |
| | | <el-form :model="formData0" label-width="90px"> |
| | | <el-form-item label="复核说明:"> |
| | | <el-input v-model="formData0.reviewerRemark" type="textarea" |
| | | :rows="3" size="small" :disabled="title=='批准'"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-row> |
| | | <el-button @click="submitCheck(0)" :loading="checkLoadN">{{title=='审核'?'不通过':'不批准'}}</el-button> |
| | |
| | | entity: { |
| | | week: null, |
| | | weekDay: null, |
| | | dateTime: null, |
| | | dateTime: [], |
| | | name:null, |
| | | orderBy: { |
| | | field: 'id', |
| | |
| | | reviewerNonproductiveTime:'', |
| | | auxiliaryProject:'', |
| | | reviewerRemark:'', |
| | | nameUser: '' |
| | | }, |
| | | checkVisible:false, |
| | | checkLoadN:false, |
| | |
| | | let formattedDate2 = `${year}-${month}-${day} 23:59:59`; |
| | | this.entity.dateTime.push(formattedDate1); |
| | | this.entity.dateTime.push(formattedDate2); |
| | | this.componentData1.entity.dateTime.push(formattedDate1); |
| | | this.componentData1.entity.dateTime.push(formattedDate2); |
| | | this.refreshTable() |
| | | }, |
| | | getPower(){ |
| | |
| | | batchCheck(e) { |
| | | if (this.multipleSelection && this.multipleSelection.length > 0) { |
| | | const list = JSON.parse(JSON.stringify(this.multipleSelection)) |
| | | const url = e === 0 ? this.$api.auxiliaryWorkingHoursDay.check : this.$api.auxiliaryWorkingHoursDay.approve |
| | | const state = e === 0 ? '已审核' : '已批准' |
| | | list.forEach(item => { |
| | | if (e == 0) { |
| | | item.state = '已审核' |
| | | this.$axios.post(this.$api.auxiliaryWorkingHoursDay.check, { |
| | | ...item |
| | | },{ |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | | } |
| | | this.$axios.post(url, {id: item.id, state: state |
| | | },{ |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | | } |
| | | ).then(res => { |
| | | if (res.code === 201) { |
| | | return |
| | | } |
| | | this.$parent.submitBatchCheckDialog() |
| | | this.$message.success('操作成功') |
| | | }) |
| | | } else { |
| | | item.state = '已批准' |
| | | this.$axios.post(this.$api.auxiliaryWorkingHoursDay.approve, { |
| | | id: item.id, |
| | | state: item.state |
| | | },{ |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | | } |
| | | } |
| | | ).then(res => { |
| | | if (res.code === 201) { |
| | | return |
| | | } |
| | | this.$parent.submitBatchCheckDialog() |
| | | this.$message.success('操作成功') |
| | | }) |
| | | } |
| | | } |
| | | ).then(res => { |
| | | if (res.code === 201) { |
| | | return |
| | | } |
| | | this.$parent.submitBatchCheckDialog() |
| | | this.$message.success('操作成功') |
| | | }) |
| | | }) |
| | | } else { |
| | | this.$message.error('请选择至少一条数据') |