|
|
|
@ -52,15 +52,23 @@
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { defineProps, ref, watch, defineExpose } from 'vue'
|
|
|
|
|
import { defineProps, ref, watch, defineExpose, defineAsyncComponent } from 'vue'
|
|
|
|
|
// 主单信息组件
|
|
|
|
|
import MainInfo from './mainInfo.vue'
|
|
|
|
|
// 应收表格组件
|
|
|
|
|
import FeeTable from './feeTable.vue'
|
|
|
|
|
// 审批组件
|
|
|
|
|
const ApproveBtns = defineAsyncComponent(() => import("/@/components/ApproveBtns/index.vue"))
|
|
|
|
|
import { useMultipleTabStore } from '/@/store/modules/multipleTab'
|
|
|
|
|
import { SetTaskStatus } from '/@/views/operation/seaexport/api/BookingLedger.js'
|
|
|
|
|
// 表格统计组件
|
|
|
|
|
import FeeStatistic from './feeStatistic.vue'
|
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
const router = useRouter()
|
|
|
|
|
const { createMessage } = useMessage()
|
|
|
|
|
const tabStore = useMultipleTabStore()
|
|
|
|
|
import { ApplyBusinessAudit } from './api'
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
details: { type: [Object, Array] },
|
|
|
|
@ -106,9 +114,27 @@
|
|
|
|
|
ApplyBusinessAudit({ businessId: props.details.id, businessType: 1, taskTypeName: 'BILL_RECV_AUDIT' }).then(res => {
|
|
|
|
|
createMessage.success(res.message)
|
|
|
|
|
refresh()
|
|
|
|
|
// 整票审核驳回的时候触发完成任务
|
|
|
|
|
if (route.query.status) {
|
|
|
|
|
completeTask()
|
|
|
|
|
}
|
|
|
|
|
}, 1000)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 完成任务
|
|
|
|
|
const completeTask = () => {
|
|
|
|
|
const postData = {
|
|
|
|
|
businessId: route.query.id,
|
|
|
|
|
businessType: 1,
|
|
|
|
|
taskTypeName: route.query.status,
|
|
|
|
|
taskStatus: 2,
|
|
|
|
|
autoCreateNext: true
|
|
|
|
|
}
|
|
|
|
|
SetTaskStatus(postData).then(res => {
|
|
|
|
|
const { fullPath } = route //获取当前路径
|
|
|
|
|
tabStore.closeTabByKey(fullPath, router)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
const getUnitList = () => {
|
|
|
|
|
rtb.value.getUnitList()
|
|
|
|
|
ptb.value.getUnitList()
|
|
|
|
|