|
@@ -356,11 +356,13 @@ function getDayworks() {
|
|
|
/** 生产计划明细 current-change 事件 */
|
|
|
function handleDayworkCurrentChange(row) {
|
|
|
if (row) {
|
|
|
+ queryItemParams.value.processId = null
|
|
|
currentDaywork.value = row;
|
|
|
queryItemParams.value.dayworkId = currentDaywork.value.id;
|
|
|
queryItemParams.value.technologicalProcessDetailId = null;
|
|
|
queryItemParams.value.technologicalProcessId = row.technologicalProcessId;
|
|
|
getDayworkItems();
|
|
|
+ getProcess()
|
|
|
} else {
|
|
|
dayworkItemList.value = [];
|
|
|
itemTotal.value = 0
|
|
@@ -509,15 +511,19 @@ function getDayworkItems() {
|
|
|
}
|
|
|
}
|
|
|
dayworkItemList.value = res.rows;
|
|
|
- //工序下拉框
|
|
|
- getProcessList({
|
|
|
+ getProcess()
|
|
|
+ itemTotal.value = res.total;
|
|
|
+ dayworkItemLoading.value = false;
|
|
|
+ });
|
|
|
+}
|
|
|
+//工序信息
|
|
|
+function getProcess() {
|
|
|
+ //工序下拉框
|
|
|
+ getProcessList({
|
|
|
technologicalProcessId: queryItemParams.value.technologicalProcessId,
|
|
|
}).then((res) => {
|
|
|
processList.value = res.data;
|
|
|
});
|
|
|
- itemTotal.value = res.total;
|
|
|
- dayworkItemLoading.value = false;
|
|
|
- });
|
|
|
}
|
|
|
|
|
|
/** 搜索按钮操作 */
|