feat(生产时间): 添加生产开始时间自动填充功能
在卷材操作的各个页面中,自动将待操作任务的创建时间设置为生产开始时间。同时在生产面板中新增生产时间相关字段的显示列
This commit is contained in:
@@ -327,6 +327,7 @@ export default {
|
||||
warehouseId: [{ required: true, message: '请选择所在库位', trigger: 'change' }],
|
||||
},
|
||||
buttonLoading: false,
|
||||
currentAction: {}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -404,6 +405,8 @@ export default {
|
||||
return
|
||||
}
|
||||
const action = await getPendingAction(this.actionId)
|
||||
this.currentAction = action.data || {}
|
||||
// this.$set(this.splitForm, 'productionStartTime', action.data.createTime)
|
||||
const coilIds = action.data.remark;
|
||||
console.log('coilIds', coilIds)
|
||||
if (!coilIds) {
|
||||
@@ -461,7 +464,7 @@ export default {
|
||||
temperGrade: '',
|
||||
coatingType: '',
|
||||
remark: '',
|
||||
productionStartTime: '',
|
||||
productionStartTime: this.currentAction.createTime,
|
||||
productionEndTime: '',
|
||||
productionDuration: '',
|
||||
formattedDuration: '',
|
||||
|
||||
Reference in New Issue
Block a user