Commit d46999b0 authored by jingnan's avatar jingnan 👀

工时分配批量签审流程

parent 303b3a6a
......@@ -72,6 +72,8 @@ export default {
flag() {
if (this.itemObj.isProcess) {
return !this.itemObj.readOnly
} else if (this.basicData.isWorkHourConfirm === 'workHourConfirm') { // 批量签审工时确认流程使用
return true
} else {
return this.basicData.joExecutePlan.state === 'Pending_Review' || this.form.state === 'Pending_Review'
}
......@@ -178,8 +180,9 @@ export default {
})
const maxSum = this.accSubtr(100, sum) < 0 ? 0 : this.accSubtr(100, sum)
if (Number(row.workHourOPercent) > maxSum) {
row.workHourOPercent = null
row.workHour = null
// row.workHourOPercent = null
// row.workHour = null
this.getTableData() // 超出时展示原来工时
this.$utils.showMessageWarning(`工时总和超出额定工时,工时占比最多${maxSum}`)
return
} else {
......
<!--
* @Author: gjn
* @Date: 2023-12-15 16:29:39
* @Description:批量签审_计划员确认
-->
<template>
<div class="plannerConfirm">
<dee-as-com
ref="applyTable"
class="list-table"
:basic-data=" { selectData,selectionRows }"
:lay-config="{ typeName: 'ProdTask', layKey: 'batchSign_hourOtherConfirm'}"
@selectionChange="selectionChange"
/>
</div>
</template>
<script>
export default {
name: 'PlannerConfirm',
components: {},
props: {
selectData: {
type: Object,
default: () => {}
}
},
data() {
return {
selectionRows: []
}
},
computed: {},
watch: {},
created() {},
mounted() {
},
// 组件方法
methods: {
selectionChange(val) {
this.selectionRows = val
}
}
}
</script>
<style lang='scss'>
.plannerConfirm{
width: 100%;
height: 100%;
box-sizing: border-box;
padding:0 4px;
}
</style>
<!--
* @Author: gjn
* @Date: 2023-12-15 16:29:39
* @Description:批量签审_站位长确认
-->
<template>
<div class="stationMasteConfirm">
<dee-as-com
ref="applyTable"
class="list-table"
:basic-data=" { selectData,selectionRows }"
:lay-config="{ typeName: 'ProdTask', layKey: 'batchSign_hourOtherConfirm'}"
@selectionChange="selectionChange"
/>
</div>
</template>
<script>
export default {
name: 'StationMasteConfirm',
components: {},
props: {
selectData: {
type: Object,
default: () => {}
}
},
data() {
return {
selectionRows: []
}
},
computed: {},
watch: {},
created() {},
mounted() {
},
// 组件方法
methods: {
selectionChange(val) {
this.selectionRows = val
}
}
}
</script>
<style lang='scss'>
.stationMasteConfirm{
width: 100%;
height: 100%;
box-sizing: border-box;
padding:0 4px;
}
</style>
......@@ -27,7 +27,12 @@ export default {
InStorageMatchBackConfirm: () => import('./inStorageMatchBackConfirm'), // 配套退库确认
InStorageUseOutBackApply: () => import('./inStorageUseOutBackApply'), // 领用/供外退库申请
InStorageUseOutBackExamine: () => import('./inStorageUseOutBackExamine'), // 领用/供外退库审核
InStorageUseOutBackConfirm: () => import('./inStorageUseOutBackConfirm') // 领用/供外退库确认
InStorageUseOutBackConfirm: () => import('./inStorageUseOutBackConfirm'), // 领用/供外退库确认
WorkerConfirm: () => import('./workerConfirm'), // 工人确认
WorkHourConfirm: () => import('./workHourConfirm'), // 工时确认
StationMasteConfirm: () => import('./stationMasteConfirm'), // 站位长确认
PlannerConfirm: () => import('./plannerConfirm'), // 计划员确认
WorkHourExamine: () => import('./workHourExamine') // 工时审核
},
props: {
selectData: {
......
<!--
* @Author: gjn
* @Date: 2023-12-15 16:29:39
* @Description:批量签审_工时确认
-->
<template>
<div class="workHourConfirm">
<dee-as-com
ref="applyTable"
class="list-table"
:basic-data=" { selectData,selectionRows }"
:lay-config="{ typeName: 'ProdTask', layKey: 'batchSign_workHourConfirm'}"
@selectionChange="selectionChange"
/>
</div>
</template>
<script>
export default {
name: 'WorkHourConfirm',
components: {},
props: {
selectData: {
type: Object,
default: () => {}
}
},
data() {
return {
selectionRows: []
}
},
computed: {},
watch: {},
created() {},
mounted() {
},
// 组件方法
methods: {
selectionChange(val) {
this.selectionRows = val
}
}
}
</script>
<style lang='scss'>
.workHourConfirm{
width: 100%;
height: 100%;
box-sizing: border-box;
padding:0 4px;
}
</style>
<!--
* @Author: gjn
* @Date: 2023-12-15 16:29:39
* @Description:批量签审_工时审核
-->
<template>
<div class="workHourExamine">
<dee-as-com
ref="applyTable"
class="list-table"
:basic-data=" { selectData,selectionRows }"
:lay-config="{ typeName: 'ProdTask', layKey: 'batchSign_hourOtherConfirm'}"
@selectionChange="selectionChange"
/>
</div>
</template>
<script>
export default {
name: 'WorkHourExamine',
components: {},
props: {
selectData: {
type: Object,
default: () => {}
}
},
data() {
return {
selectionRows: []
}
},
computed: {},
watch: {},
created() {},
mounted() {
},
// 组件方法
methods: {
selectionChange(val) {
this.selectionRows = val
}
}
}
</script>
<style lang='scss'>
.workHourExamine{
width: 100%;
height: 100%;
box-sizing: border-box;
padding:0 4px;
}
</style>
<!--
* @Author: gjn
* @Date: 2023-12-15 16:29:39
* @Description:批量签审_工人确认
-->
<template>
<div class="workerConfirm">
<dee-as-com
ref="applyTable"
class="list-table"
:basic-data=" { selectData,selectionRows }"
:lay-config="{ typeName: 'ProdTask', layKey: 'batchSign_workerConfirm'}"
@selectionChange="selectionChange"
/>
</div>
</template>
<script>
export default {
name: 'WorkerConfirm',
components: {},
props: {
selectData: {
type: Object,
default: () => {}
}
},
data() {
return {
selectionRows: []
}
},
computed: {},
watch: {},
created() {},
mounted() {
},
// 组件方法
methods: {
selectionChange(val) {
this.selectionRows = val
}
}
}
</script>
<style lang='scss'>
.workerConfirm{
width: 100%;
height: 100%;
box-sizing: border-box;
padding:0 4px;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment