diff --git a/src/views/contract/contractDetil.vue b/src/views/contract/contractDetil.vue index dbea9b6..8677155 100644 --- a/src/views/contract/contractDetil.vue +++ b/src/views/contract/contractDetil.vue @@ -366,9 +366,9 @@ --> - - - + + + - 上传 + {{ + formData.file ? "重新上传" : "上传" + }} + 合同已上传,点击查看 - - 确定 + 确定 + + + 查看合同 @@ -418,6 +432,7 @@ const formData = reactive({ contract_no: "", file: "", status: "", + check_status: "", party_a: "", party_a_name: "", party_b: "", @@ -445,6 +460,9 @@ const userStore = useUserStore(); async function render() { // 传值赋值 const res = await apiContractDetail({ id: query.id }); + Object.keys(formData).forEach((key: any) => { + if (res[key] != null && res[key] != undefined) formData[key] = res[key]; + }); compeny.value = res.party_a_info; basicdata.value = res; if (basicdata.value.status == 1) { @@ -461,7 +479,6 @@ async function render() { compenyBimg.value = res.party_b_info.qualification; } catch (error) {} compenyimg.value = res.party_a_info.qualification; - console.log(compenyimg.value); if (res.type == 2) { show.value = false; res.party_b_info.sex == 1 diff --git a/src/views/task/calendar.vue b/src/views/task/calendar.vue index 60652f2..4e655c4 100644 --- a/src/views/task/calendar.vue +++ b/src/views/task/calendar.vue @@ -8,6 +8,7 @@ :item-content-height="themeOptions.height" :item-border-height="themeOptions.border" @click-item="clickItems" + @click-date="clickDate" :items="taskList" :current-period-label="'今日'" > @@ -63,6 +64,10 @@ const clickItems = (e) => { emits("clickItem", e.id); }; +const clickDate = (e) => { + console.log(e); +}; + const themeOptions = computed((): any => { return { top: "2.6em", @@ -105,6 +110,11 @@ const themeOptions = computed((): any => { color: #fff; cursor: pointer; } +/* #example-simple .cv-day { + &:hover { + background-color: rgba($color: #000000, $alpha: 0.1); + } +} */ #example-simple .cv-item.custom-date-class-red { background-color: #f66; diff --git a/src/views/task/editTow.vue b/src/views/task/editTow.vue index c8309b5..6f761ae 100644 --- a/src/views/task/editTow.vue +++ b/src/views/task/editTow.vue @@ -1,204 +1,213 @@ diff --git a/src/views/task/taskCalendar.vue b/src/views/task/taskCalendar.vue index ee01cb1..4753bf5 100644 --- a/src/views/task/taskCalendar.vue +++ b/src/views/task/taskCalendar.vue @@ -84,7 +84,7 @@ const popupType = ref("add"); const clickTask = (e: any) => { popupType.value = "show"; // task.value = e; - task.value = taskList.value.find((item: any) => item.id == e); + task.value = taskList.value.find((item: any) => item.id == e) || null; handleSelect(); }; @@ -170,7 +170,7 @@ const handleSelect = async () => { showEditTow.value = true; await nextTick(); editTowRef.value?.open("show"); - editTowRef.value?.updatedForm(); + editTowRef.value?.updatedForm(task.value); }; // 当前选择类型