|
|
@@ -273,7 +273,7 @@
|
|
|
<!-- 公式 -->
|
|
|
<template v-else-if="row[index].paramType == 9">
|
|
|
<div style="display: flex">
|
|
|
- <el-input-number
|
|
|
+ <el-input
|
|
|
v-model="row[index].value"
|
|
|
:placeholder="
|
|
|
row[index].formula
|
|
|
@@ -282,7 +282,7 @@
|
|
|
"
|
|
|
disabled
|
|
|
@input="handleDataChange(row)"
|
|
|
- ></el-input-number>
|
|
|
+ ></el-input>
|
|
|
<div style="width: 80px; height: 100%; flex-shrink: 0">
|
|
|
<DictSelection
|
|
|
v-model="row[index].unit"
|
|
|
@@ -316,10 +316,10 @@
|
|
|
|
|
|
<script>
|
|
|
import {
|
|
|
- getAllRoutingTaskList,
|
|
|
- getPickAndFeed
|
|
|
+ listProduceTaskAndFormNum,
|
|
|
+ getPickAndFeed,
|
|
|
+ inStoreageRecord
|
|
|
} from '@/api/producetaskrecordrulesrecord/index';
|
|
|
- import fix from 'highlight.js/lib/languages/fix';
|
|
|
|
|
|
export default {
|
|
|
props: {
|
|
|
@@ -623,15 +623,20 @@
|
|
|
|
|
|
if (this.workOrderId) {
|
|
|
// 并发获取工序任务列表和物料数据
|
|
|
- let [routingTaskObj, pickAndFeedList] = await Promise.all([
|
|
|
- getAllRoutingTaskList({ routingId: this.routingId }),
|
|
|
- getPickAndFeed({
|
|
|
- workOrderId: this.workOrderId,
|
|
|
- bomCategoryId: this.bomCategoryId
|
|
|
- })
|
|
|
- ]);
|
|
|
+ let [routingTaskObj, pickAndFeedList, inStoreageRecordList] =
|
|
|
+ await Promise.all([
|
|
|
+ listProduceTaskAndFormNum({ workOrderId: this.workOrderId }),
|
|
|
+ getPickAndFeed({
|
|
|
+ workOrderId: this.workOrderId,
|
|
|
+ bomCategoryId: this.bomCategoryId
|
|
|
+ }),
|
|
|
+ inStoreageRecord({
|
|
|
+ workOrderId: this.workOrderId
|
|
|
+ })
|
|
|
+ ]);
|
|
|
pickAndFeed = pickAndFeedList || [];
|
|
|
routingTaskList = routingTaskObj?.list || [];
|
|
|
+ console.log('inStoreageRecordList', inStoreageRecordList);
|
|
|
}
|
|
|
|
|
|
console.log('routingTaskList 工序数据', routingTaskList);
|
|
|
@@ -719,7 +724,7 @@
|
|
|
|
|
|
data.unshift({
|
|
|
title: '工序名称',
|
|
|
- value: task.taskInstanceName,
|
|
|
+ value: task.name || task.taskInstanceName,
|
|
|
formula: '',
|
|
|
unit: '',
|
|
|
// 仅展示不计算和输入
|