feat(生产时间): 添加生产开始时间自动填充功能
在卷材操作的各个页面中,自动将待操作任务的创建时间设置为生产开始时间。同时在生产面板中新增生产时间相关字段的显示列
This commit is contained in:
@@ -242,7 +242,7 @@
|
||||
<script>
|
||||
import { getMaterialCoil, splitMaterialCoil } from '@/api/wms/coil';
|
||||
import { listWarehouse } from '@/api/wms/warehouse';
|
||||
import { completeAction } from '@/api/wms/pendingAction';
|
||||
import { completeAction, getPendingAction } from '@/api/wms/pendingAction';
|
||||
import ActualWarehouseSelect from "@/components/KLPService/ActualWarehouseSelect";
|
||||
import RawMaterialSelect from "@/components/KLPService/RawMaterialSelect";
|
||||
import ProductSelect from "@/components/KLPService/ProductSelect";
|
||||
@@ -318,7 +318,8 @@ export default {
|
||||
// 只读模式
|
||||
readonly: false,
|
||||
// 待操作ID
|
||||
actionId: null
|
||||
actionId: null,
|
||||
currentAction: {}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -335,6 +336,13 @@ export default {
|
||||
const actionId = this.$route.query.actionId;
|
||||
const readonly = this.$route.query.readonly;
|
||||
|
||||
// 获取待操作详情
|
||||
getPendingAction(actionId).then(res => {
|
||||
// 填写生产开始时间
|
||||
this.currentAction = res.data
|
||||
this.$set(this.splitList[0], 'productionStartTime', res.data.createTime)
|
||||
})
|
||||
|
||||
if (coilId) {
|
||||
await this.loadMotherCoil(coilId);
|
||||
}
|
||||
@@ -490,7 +498,7 @@ export default {
|
||||
coatingType: '',
|
||||
actualLength: undefined,
|
||||
actualWidth: undefined,
|
||||
productionStartTime: '',
|
||||
productionStartTime: this.currentAction.createTime,
|
||||
productionEndTime: '',
|
||||
productionDuration: '',
|
||||
formattedDuration: '',
|
||||
|
||||
Reference in New Issue
Block a user