|
|
|
@ -394,21 +394,52 @@ function getCurrentTotalStat() {
|
|
|
|
|
levelTreeAll.value = []
|
|
|
|
|
levelTree.value = []
|
|
|
|
|
let bussObj = ''
|
|
|
|
|
let str1 = ''
|
|
|
|
|
let str2 = ''
|
|
|
|
|
let queryData = formatParams(getForm().getFieldsValue()).queryCondition
|
|
|
|
|
if (queryData) {
|
|
|
|
|
queryData = JSON.parse(queryData)
|
|
|
|
|
for (let i = 0; i < queryData.length; i++) {
|
|
|
|
|
let i = queryData.length;
|
|
|
|
|
while (i--) {
|
|
|
|
|
if (queryData[i].FieldName === 'businessNo') {
|
|
|
|
|
bussObj = queryData[i].FieldValue
|
|
|
|
|
queryData.splice(i, 1)
|
|
|
|
|
queryData.splice(i, 1);
|
|
|
|
|
} else
|
|
|
|
|
if (queryData[i].FieldName === 'portloaD_CODE') {
|
|
|
|
|
str1 = queryData[i].FieldValue
|
|
|
|
|
queryData.splice(i, 1);
|
|
|
|
|
} else
|
|
|
|
|
if (queryData[i].FieldName === 'portdischargE_CODE') {
|
|
|
|
|
str2 = queryData[i].FieldValue
|
|
|
|
|
queryData.splice(i, 1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// for (let i = 0; i < queryData.length; i++) {
|
|
|
|
|
// if (queryData[i].FieldName === 'businessNo') {
|
|
|
|
|
// bussObj = queryData[i].FieldValue
|
|
|
|
|
// queryData.splice(i, 1)
|
|
|
|
|
// i--
|
|
|
|
|
// }
|
|
|
|
|
// if (queryData[i].FieldName === 'portloaD_CODE') {
|
|
|
|
|
// str1 = queryData[i].FieldValue
|
|
|
|
|
// queryData.splice(i, 1)
|
|
|
|
|
// i--
|
|
|
|
|
// }
|
|
|
|
|
// if (queryData[i].FieldName === 'portdischargE_CODE') {
|
|
|
|
|
// str2 = queryData[i].FieldValue
|
|
|
|
|
// queryData.splice(i, 1)
|
|
|
|
|
// i--
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
console.log(queryData, 123123);
|
|
|
|
|
}
|
|
|
|
|
const data = {
|
|
|
|
|
isReCalc: false,
|
|
|
|
|
queryCondition: JSON.stringify(queryData),
|
|
|
|
|
otherQueryCondition:{
|
|
|
|
|
businessNo:bussObj
|
|
|
|
|
otherQueryCondition: {
|
|
|
|
|
businessNo: bussObj,
|
|
|
|
|
portloaD_CODE: str1,
|
|
|
|
|
portdischargE_CODE: str2
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
GetCurrentTotalStat(data)
|
|
|
|
@ -648,6 +679,8 @@ const [registerTable, { reload, setProps, getForm, getSelectRows, setColumns }]
|
|
|
|
|
const queryData = JSON.parse(formatParams(p).queryCondition)
|
|
|
|
|
data.pageCondition = formatParams(p).pageCondition
|
|
|
|
|
let bussObj = '' as any
|
|
|
|
|
let str1 = '' as any
|
|
|
|
|
let str2 = '' as any
|
|
|
|
|
for (let i = 0; i < queryData.length; i++) {
|
|
|
|
|
if (queryData[i].FieldName === 'task_TYPE') {
|
|
|
|
|
queryData[i].ConditionalType = 0
|
|
|
|
@ -658,12 +691,43 @@ const [registerTable, { reload, setProps, getForm, getSelectRows, setColumns }]
|
|
|
|
|
if (queryData[i].FieldName === 'taskSource') {
|
|
|
|
|
queryData[i].ConditionalType = 0
|
|
|
|
|
}
|
|
|
|
|
// if (queryData[i].FieldName === 'businessNo') {
|
|
|
|
|
// bussObj = queryData[i].FieldValue
|
|
|
|
|
// queryData.splice(i, 1)
|
|
|
|
|
// }
|
|
|
|
|
// if (queryData[i].FieldName === 'portloaD_CODE') {
|
|
|
|
|
// str1 = queryData[i].FieldValue
|
|
|
|
|
// queryData.splice(i, 1)
|
|
|
|
|
// }
|
|
|
|
|
// if (queryData[i].FieldName === 'portdischargE_CODE') {
|
|
|
|
|
// str2 = queryData[i].FieldValue
|
|
|
|
|
// queryData.splice(i, 1)
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
let i = queryData.length;
|
|
|
|
|
while (i--) {
|
|
|
|
|
if (queryData[i].FieldName === 'businessNo') {
|
|
|
|
|
bussObj = queryData[i].FieldValue
|
|
|
|
|
queryData.splice(i, 1)
|
|
|
|
|
queryData.splice(i, 1);
|
|
|
|
|
} else
|
|
|
|
|
if (queryData[i].FieldName === 'portloaD_CODE') {
|
|
|
|
|
str1 = queryData[i].FieldValue
|
|
|
|
|
queryData.splice(i, 1);
|
|
|
|
|
} else
|
|
|
|
|
if (queryData[i].FieldName === 'portdischargE_CODE') {
|
|
|
|
|
str2 = queryData[i].FieldValue
|
|
|
|
|
queryData.splice(i, 1);
|
|
|
|
|
} else
|
|
|
|
|
if (queryData[i].FieldName === 'task_TYPE') {
|
|
|
|
|
queryData[i].ConditionalType = 0
|
|
|
|
|
} else
|
|
|
|
|
if (queryData[i].FieldName === 'taskRecvName') {
|
|
|
|
|
queryData[i].ConditionalType = 0
|
|
|
|
|
} else
|
|
|
|
|
if (queryData[i].FieldName === 'taskSource') {
|
|
|
|
|
queryData[i].ConditionalType = 0
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
console.log(bussObj)
|
|
|
|
|
data.queryCondition = JSON.stringify(queryData)
|
|
|
|
|
data.otherQueryCondition = {}
|
|
|
|
|
if (activeTopKey.value) {
|
|
|
|
@ -678,6 +742,12 @@ const [registerTable, { reload, setProps, getForm, getSelectRows, setColumns }]
|
|
|
|
|
if (bussObj) {
|
|
|
|
|
data.otherQueryCondition.businessNo = bussObj
|
|
|
|
|
}
|
|
|
|
|
if (str1) {
|
|
|
|
|
data.otherQueryCondition.portloaD_CODE = str1
|
|
|
|
|
}
|
|
|
|
|
if (str2) {
|
|
|
|
|
data.otherQueryCondition.portdischargE_CODE = str2
|
|
|
|
|
}
|
|
|
|
|
return data
|
|
|
|
|
},
|
|
|
|
|
immediate: false,
|
|
|
|
|