diff --git a/src/pages/mes/workScheduling/addBasicItem/index.vue b/src/pages/mes/workScheduling/addBasicItem/index.vue
index f7c81ed..0e25a3d 100644
--- a/src/pages/mes/workScheduling/addBasicItem/index.vue
+++ b/src/pages/mes/workScheduling/addBasicItem/index.vue
@@ -51,9 +51,9 @@
提交
-
+
@@ -79,7 +79,7 @@
const paramData = ref()
const typeList = ref([])
const list = ref([])
- const listSize = ref(1)
+ const listSize = ref(0)
const productList = ref([{label:'产品1',value: '111',name:'产品'},{label:'产品2',value: '222',name:'产品'}])
const queryForm = ref({
@@ -110,7 +110,6 @@
if (index !== -1) {
list.value.splice(index, 1);
listSize.value -= 1
- console.log(listSize.value)
}
}
@@ -189,6 +188,7 @@
list.value = list.value.concat(res.data);
listSize.value = res.data.length
} else {
+ listSize.value = 0
}
}).catch(() => {
proxy.$modal.closeLoading()
diff --git a/src/pages/mes/workScheduling/callMaterial.vue b/src/pages/mes/workScheduling/callMaterial.vue
index 44ba349..4c341d8 100644
--- a/src/pages/mes/workScheduling/callMaterial.vue
+++ b/src/pages/mes/workScheduling/callMaterial.vue
@@ -29,7 +29,7 @@
-->
-
+
提交
@@ -52,7 +52,7 @@ import {
getCurrentInstance
} from 'vue'
import * as workSchedulingListApi from '@/api/mes/workScheduling/index.ts'
-
+const listSize = ref(0)
const {proxy} = getCurrentInstance()
const loading = ref(false)
const status = ref('loadmore') //是否显示没有更多了
@@ -95,6 +95,7 @@ function getBomInspectList() {
} else {
status.value = 'nomore'
}
+ listSize.value = list.value.length
}).catch(() => {
proxy.$modal.closeLoading()
})