|
|
|
@ -309,7 +309,6 @@ router.afterEach((to, from) => {
|
|
|
|
|
refshTotalStat();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const levelreLoading = ref(false)
|
|
|
|
|
const levelLoading = ref(false)
|
|
|
|
|
const levelTop = ref([]) as any //顶层tab
|
|
|
|
@ -331,9 +330,11 @@ function getCurrentTotalStat() {
|
|
|
|
|
levelNext.value = []
|
|
|
|
|
levelTreeAll.value = []
|
|
|
|
|
levelTree.value = []
|
|
|
|
|
GetCurrentTotalStat({
|
|
|
|
|
isReCalc: false
|
|
|
|
|
})
|
|
|
|
|
const data = {
|
|
|
|
|
isReCalc: false,
|
|
|
|
|
queryCondition:formatParams(getForm().getFieldsValue()).queryCondition
|
|
|
|
|
}
|
|
|
|
|
GetCurrentTotalStat(data)
|
|
|
|
|
.then(res => {
|
|
|
|
|
levelLoading.value = false
|
|
|
|
|
levelreLoading.value = false
|
|
|
|
@ -344,6 +345,7 @@ function getCurrentTotalStat() {
|
|
|
|
|
activeTopKey.value = levelTop.value[0].key
|
|
|
|
|
levelNext.value = selectNextLevel(levelNextAll.value, activeTopKey.value)
|
|
|
|
|
if (levelNext.value.length > 0) {
|
|
|
|
|
console.log(levelNext.value,activeNextKey.value)
|
|
|
|
|
if (!activeNextKey.value) {
|
|
|
|
|
activeNextKey.value = levelNext.value[0].key
|
|
|
|
|
getForm().setFieldsValue({ status: activeNextKey.value })
|
|
|
|
@ -366,7 +368,8 @@ function refshTotalStat() {
|
|
|
|
|
levelreLoading.value = true
|
|
|
|
|
levelLoading.value = true
|
|
|
|
|
GetCurrentTotalStat({
|
|
|
|
|
isReCalc: false
|
|
|
|
|
isReCalc: false,
|
|
|
|
|
...getForm().getFieldsValue()
|
|
|
|
|
})
|
|
|
|
|
.then(res => {
|
|
|
|
|
levelLoading.value = false
|
|
|
|
@ -518,7 +521,7 @@ const columns = [
|
|
|
|
|
{ dataIndex: 'statuS_NAME', width: 100, title: '任务状态' },
|
|
|
|
|
{ dataIndex: 'tasK_USER_STATUS_NAME', width: 120, title: '任务个人状态' },
|
|
|
|
|
{ dataIndex: 'vesseL_VOYNO', width: 180, title: '船名/航次' },
|
|
|
|
|
{ dataIndex: 'carrieR_ID', width: 100, title: '船公司' },
|
|
|
|
|
{ dataIndex: 'carrieR_CODE', width: 100, title: '船公司' },
|
|
|
|
|
{ dataIndex: 'tasK_NO', width: 150, title: '任务流水号' },
|
|
|
|
|
{ dataIndex: 'tasK_SOURCE_NAME', width: 100, title: '任务来源' },
|
|
|
|
|
{ dataIndex: 'createUserName', width: 100, title: '接收人' },
|
|
|
|
@ -569,6 +572,8 @@ const [registerTable, { reload, setLoading, getForm, getSelectRows, setProps }]
|
|
|
|
|
formConfig: {
|
|
|
|
|
labelWidth: 120,
|
|
|
|
|
schemas: searchFormSchema,
|
|
|
|
|
submitFunc:handleNext,
|
|
|
|
|
resetFunc:handleResetFunc
|
|
|
|
|
},
|
|
|
|
|
isTreeTable: false,
|
|
|
|
|
pagination: true,
|
|
|
|
@ -590,11 +595,16 @@ const [registerTable, { reload, setLoading, getForm, getSelectRows, setProps }]
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function handleNext(){
|
|
|
|
|
activeNextKey.value = ''
|
|
|
|
|
getCurrentTotalStat()
|
|
|
|
|
}
|
|
|
|
|
function handledbclick(row) {
|
|
|
|
|
handleEdit(row)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function handleResetFunc(){
|
|
|
|
|
console.log('handleResetFunc')
|
|
|
|
|
}
|
|
|
|
|
function handleEdit(data) {
|
|
|
|
|
switch (data.tasK_TYPE) {
|
|
|
|
|
case 'VGM_COMPARE':
|
|
|
|
|