Browse Source

获取上报批次

duy 2 năm trước cách đây
mục cha
commit
6741d911f4
1 tập tin đã thay đổi với 9 bổ sung3 xóa
  1. 9 3
      src/views/ledger/components/internal.vue

+ 9 - 3
src/views/ledger/components/internal.vue

@@ -74,6 +74,7 @@
 import {ref, nextTick, watch} from "vue";
 import {getArrValue} from "vue-utils-plus"
 import internalApi from '~api/ledger/internal';
+import queryApi from '~api/data-fill/query';
 
 //参数
 const props = defineProps({
@@ -107,6 +108,7 @@ watch(() => [
 //渲染完成
 nextTick(() => {
     setQueryData(props.treeData)
+     queryBatchList()
 })
 
 //获取相关数据
@@ -145,8 +147,12 @@ const InternalReportBatch = ref([
 const queryBatchList = async () => {
   
     if (contractId.value) {
-        const { error, code, data } = await internalApi.queryBatchList({
-            projectId: projectId.value,
+        // const { error, code, data } = await internalApi.queryBatchList({
+        //     projectId: projectId.value,
+        //     contractId: contractId.value || ''
+        // })
+       const { error, code, data } = await queryApi.getReportNumber({
+           
             contractId: contractId.value || ''
         })
         if (!error && code === 200) {
@@ -182,7 +188,7 @@ const searchInternalClick = () => {
     if (searchInternalForm.value?.wbsIds) {
         searchInternalForm.value.current = 1;
         getTableInternalData()
-        queryBatchList()
+       
     } else {
         window?.$message?.warning('请先选择一个树节点')
     }