ZaiZai vor 1 Jahr
Ursprung
Commit
6bda6776ff
2 geänderte Dateien mit 15 neuen und 3 gelöschten Zeilen
  1. 1 0
      src/views/data-fill/query.vue
  2. 14 3
      src/views/tasks/sign-admin.vue

+ 1 - 0
src/views/data-fill/query.vue

@@ -790,6 +790,7 @@ const batchOnline = async () => {
     onlineLoading.value = true
     const { error, code, msg, data } = await queryApi.onlineVerify({
         ids: ids,
+        classifyType: contractTypeTabKey.value,
     })
     //处理数据
     onlineLoading.value = false

+ 14 - 3
src/views/tasks/sign-admin.vue

@@ -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