|
@@ -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)
|