ソースを参照

首件查询上报批次修改

duy 2 年 前
コミット
68101d337d
1 ファイル変更5 行追加3 行削除
  1. 5 3
      src/views/other/first-item.vue

+ 5 - 3
src/views/other/first-item.vue

@@ -230,6 +230,7 @@ const tabTypeChange = (item) => {
     if (searchForm.value.wbsId) {
         searchForm.value.current = 1;
         getTableData()
+      
     }
     //路由跳转
     router.push({
@@ -253,7 +254,8 @@ const nodeWbsElTreeClick = ({data, keys}) => {
     TreeAutoExpandKeys.value = keys
     setStoreData('firstItemTreeKeys', keys)
     //获取相关数据
-    getReportNumberByContractId(data['contractIdRelation'])
+    let type=tabTypeKey.value==='mark'?2:3
+    getReportNumberByContractId(data['contractIdRelation'],type)
     searchClick()
 }
 
@@ -292,13 +294,13 @@ const queryNodeStatus = async () => {
 }
 //获取上报批次
 const reportBatch = ref([])
-const getReportNumberByContractId = async (cid) => {
+const getReportNumberByContractId = async (cid,type) => {
     const { data } = await getReportNumber({
          projectId:projectId.value,
         contractId: contractId.value,
         contractIdRelation: cid ?? '',
         firstTitle: tabTypeKey.value === 'query' ? 1: null,
-        type:2
+        type:type
     })
     //处理数据
     reportBatch.value = getArrValue(data)