|
|
@@ -137,8 +137,9 @@
|
|
|
|
|
|
<script setup>
|
|
|
import {ref, reactive} from 'vue'
|
|
|
-import {gdzl_MachineList, PrintDetailList, WastageList,getDepartName, capacityList,ProcessDetailAdd,
|
|
|
-} from "@/api/yunyin/yunying";
|
|
|
+import {
|
|
|
+ gdzl_MachineList, PrintDetailList, WastageList, getDepartName, capacityList, ProcessDetailAdd, workOrderListDetail,
|
|
|
+} from '@/api/yunyin/yunying'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
|
|
|
const form = reactive({})
|
|
|
@@ -221,6 +222,7 @@ const open = async (gdbh, gxlist) => {
|
|
|
initChejian(chejian.data['标准工艺'])
|
|
|
yjList.value = res.data
|
|
|
gxList.value = gxlist
|
|
|
+ console.log("打开了弹窗")
|
|
|
visible.value = true
|
|
|
}
|
|
|
|
|
|
@@ -375,8 +377,10 @@ const add_gdgyenterDialog = async () => {
|
|
|
const ProcessDetailAdd_add = await ProcessDetailAdd(formattedData);
|
|
|
console.log(ProcessDetailAdd_add)
|
|
|
if (ProcessDetailAdd_add.code === 0) {
|
|
|
+ const workOrderListDetail_data = await workOrderListDetail({Gd_gdbh:id.value});
|
|
|
+ gytableData.value = workOrderListDetail_data.data.processList;
|
|
|
ElMessage({type: 'success', message: '新增成功'})
|
|
|
- add_gdgydialogFormVisible.value = false
|
|
|
+ visible.value = false
|
|
|
} else {
|
|
|
ElMessage({type: 'error',message: '新增失败'})
|
|
|
}
|