|
@@ -84,23 +84,33 @@ const useAppState = useAppStore()
|
|
|
const projectId = ref(useAppState.getProjectId)
|
|
|
const contractId = ref(useAppState.getContractId)
|
|
|
const projectInfo = ref(useAppState.getProjectInfo)
|
|
|
+const contractInfo = ref(useAppState.getContractInfo)
|
|
|
|
|
|
//渲染完成
|
|
|
onMounted(() => {
|
|
|
const project = getObjValue(projectInfo.value)
|
|
|
contractList.value = getArrValue(project['contractInfoList'])
|
|
|
+ const { contractType } = contractInfo.value
|
|
|
searchForm.value.contractId = contractId.value
|
|
|
-
|
|
|
-
|
|
|
+ contractTypeTabKey.value = contractType === 2 ? '2' : '1'
|
|
|
getTableData()
|
|
|
})
|
|
|
|
|
|
const tasksData = ref([])
|
|
|
const statusData = ref([])
|
|
|
+const contractTypeTabKey = ref('1')
|
|
|
|
|
|
//合同段
|
|
|
const contractList = ref([])
|
|
|
-const ContractIdChange = () => {
|
|
|
+const ContractIdChange = (id) => {
|
|
|
+ const list = contractList.value
|
|
|
+ for (let i = 0; i < list.length; i++) {
|
|
|
+ if (list[i].id === id) {
|
|
|
+ contractTypeTabKey.value = list[i].contractType === 2 ? '2' : '1'
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ console.log(contractTypeTabKey.value)
|
|
|
getTableData()
|
|
|
}
|
|
|
const visaStatusChange = () => {
|
|
@@ -190,6 +200,7 @@ const resignClick = async ()=>{
|
|
|
contractId:searchForm.value.contractId,
|
|
|
projectId:projectId.value,
|
|
|
taskIds:taskIds,
|
|
|
+ classifyType: contractTypeTabKey.value,
|
|
|
})
|
|
|
//判断状态
|
|
|
resignLoading.value = false
|