|
@@ -410,22 +410,18 @@ const getSearchNodeTables = async (newaddId) => {
|
|
|
isAdd: isid.length > 0 ? '' : 1,
|
|
|
})
|
|
|
//处理数据
|
|
|
-
|
|
|
if (!error && code === 200) {
|
|
|
listItemData.value = getArrValue(data)
|
|
|
listItemData.value.forEach((item) => {
|
|
|
- if (item.pKeyId === singSaveId.value) {
|
|
|
- item.isCancopy = true
|
|
|
- }
|
|
|
- },
|
|
|
- )
|
|
|
-
|
|
|
- // console.log( listItemData.value,' listItemData.value');
|
|
|
- // defaultCheckarrIds.value= listItemData.value.projectPosition.join(',')
|
|
|
+ if (item.pKeyId === singSaveId.value) {
|
|
|
+ item.isCancopy = true
|
|
|
+ }
|
|
|
+ })
|
|
|
} else {
|
|
|
listItemData.value = []
|
|
|
}
|
|
|
isLoadList.value = false
|
|
|
+ setEntrustId()
|
|
|
} else {
|
|
|
queryNodeStatus()//查询按钮状态
|
|
|
const { error, code, data } = await dataApi.searchNodeTables({
|
|
@@ -438,7 +434,6 @@ const getSearchNodeTables = async (newaddId) => {
|
|
|
|
|
|
})
|
|
|
//处理数据
|
|
|
-
|
|
|
if (!error && code === 200) {
|
|
|
listItemData.value = getArrValue(data)
|
|
|
listItemData.value.forEach((item) => {
|
|
@@ -451,9 +446,8 @@ const getSearchNodeTables = async (newaddId) => {
|
|
|
listItemData.value = []
|
|
|
}
|
|
|
isLoadList.value = false
|
|
|
+ setEntrustId()
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
const getSearchNodeTablesall = async (newaddId) => {
|
|
|
const type = tabTypeKey.value
|
|
@@ -510,6 +504,19 @@ const getSearchNodeTablesall = async (newaddId) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+//获取关联委托单
|
|
|
+const setEntrustId = () => {
|
|
|
+ const arr = getArrValue(listItemData.value)
|
|
|
+ const { commissionId } = getObjValue(listItemBaseData.value)
|
|
|
+ for (let i = 0; i < arr.length; i++) {
|
|
|
+ const { entrustId } = getObjValue(arr[i])
|
|
|
+ if (isNullES(commissionId) && !isNullES(entrustId)) {
|
|
|
+ listItemBaseData.value.entrustId = entrustId
|
|
|
+ listItemBaseData.value.commissionId = entrustId
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
//改变原始数据复制隐藏本表的状态
|
|
|
const newId = ref('')
|
|
|
//获取数据
|