diff --git a/package.json b/package.json index 44d027e7..5bdc0f6e 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "author": "OpenPlatform", "license": "MIT", "scripts": { - "###": "高版本node请使用如下配置启动 SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve", + "###": "高版本node请使用如下配置启动 SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve", "dev": "vue-cli-service serve", "build:prod": "vue-cli-service build", "build:stage": "vue-cli-service build --mode staging", diff --git a/src/views/mes/pro/order/index.vue b/src/views/mes/pro/order/index.vue index f272cde2..c5aeec9b 100644 --- a/src/views/mes/pro/order/index.vue +++ b/src/views/mes/pro/order/index.vue @@ -154,8 +154,8 @@ - - + + @@ -224,7 +224,7 @@ :tree-props="{children: 'children', hasChildren: 'hasChildren'}" > - + @@ -378,7 +378,10 @@ shiftId: null, formFields: [], } - this.formFields = [], + this.formFields = [{ + batchCode: '', + batchQuantity: '' + }], // 获取该订单下最新订单列表 getOrderList(id).then(response => { if(response.code == 500){ @@ -403,7 +406,14 @@ }; // 设置最新数据 this.splitData = response.data; - + // 在获取到新的数据后执行以下代码 + this.workerLoading = true; // 设置加载状态为true,表示正在加载 + this.refreshWorkerTable = false; // 先将refreshProTable设置为false,隐藏表格 + this.$nextTick(() => { + // 使用$nextTick来等待DOM更新完成 + this.refreshWorkerTable = true; // 立即将refreshProTable设置为true,显示表格 + this.workerLoading = false; // 设置加载状态为false,表示加载完成 + }); }) @@ -644,7 +654,7 @@ }); //初始化日期为默认今天 this.form.productDate = new Date(); - //获取线体和班次 + //获取成型机和班次 getprodLineShift().then(response => { this.proline = response.data.lines; this.workShift = response.data.shifts;