Forráskód Böngészése

首件工程,获取上报批次接口调整

iZaiZaiA 2 éve
szülő
commit
1d49c41c8e
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      src/views/other/first-item.vue

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

@@ -215,6 +215,7 @@ const tabTypeTab = ref([
     {key:'mark',  name: '已标记为首件'},
     {key:'query', name: '首件查询'}
 ]);
+
 const tabTypeChange = (item) => {
     tableFormId.value = ''
     tabTypeKey.value = item?.key
@@ -263,7 +264,8 @@ const reportBatch = ref([])
 const getReportNumberByContractId = async (cid) => {
     const { data } = await getReportNumber({
         contractId: contractId.value,
-        contractIdRelation: cid ?? ''
+        contractIdRelation: cid ?? '',
+        firstTitle: tabTypeKey.value === 'query' ? 1: null
     })
     //处理数据
     reportBatch.value = getArrValue(data)