This commit is contained in:
2025-06-13 21:01:33 +08:00
parent 376d9d5cfe
commit 88a8d119cf
15 changed files with 429 additions and 49 deletions

View File

@@ -1,5 +1,5 @@
<script setup>
import {reactive, ref, watch} from "vue";
import {defineEmits, reactive, ref, watch} from "vue";
import XLink from "../../../components/XLink.vue";
import XUpload from "../../../components/XUpload.vue";
import XInput from "../../../components/XInput.vue";
@@ -8,7 +8,10 @@ import {showToast} from "../../../utils/uils.js";
import dayjs from "dayjs";
import XCountdown from "../../../components/XCountdown.vue";
import XImage from "../../../components/XImage.vue";
import Resubmit from "./Resubmit.vue";
import ReplyMessageModal from "./replyMessageModal.vue";
const emits = defineEmits(['success']);
const {data} = defineProps({
data: {
type: Object,
@@ -28,6 +31,7 @@ const success = async () => {
type: data.task_content[current.value].is_image,
});
showToast(msg);
emits('success');
}
watch(
@@ -69,7 +73,8 @@ watch(
回填时间:
</view>
<view class="block-info">
{{ data.task_content[current].start_time }} {{ data.task_content[current].end_time }}
{{ dayjs(data.task_content[current].start_time).format('YYYY-MM-DD HH:mm') }}
{{ dayjs(data.task_content[current].end_time).format('YYYY-MM-DD HH:mm') }}
</view>
</view>
@@ -78,26 +83,85 @@ watch(
倒计时:
</view>
<view class="block-info">
<x-countdown :time="dayjs(data.task_content[current].end_time)">
<view v-if="data.children.back[current]">/</view>
<x-countdown v-else :time="dayjs(data.task_content[current].end_time)">
</x-countdown>
</view>
</view>
<view class="block" v-for="(v, index) in data.fb_num">
<view class="block-title">
视频1的评论区截图:
回填{{ index + 1 }}截图:
</view>
<view class="block-info">
<x-upload
@success="(e) => content[index] = e"
:files="content[index] ? [content[index]] : []"
:del="data.children.back[current]"
:single="true"
v-model:files="content"
v-if="data.task_content[current].is_image === 1">
</x-upload>
<x-input v-else v-model:model-value="content[index]" height="64rpx" placeholder="请输入内容"></x-input>
</view>
</view>
<tui-button @click="success">提交</tui-button>
<template v-if="data.children.back[current]">
<view class="text-[#165DFF] test-24r py-[32rpx]" v-if="data.children.back[current].status === 1">
{{ dayjs(data.children.createtime * 1000).format('YYYY-MM-DD HH:mm') }}已提交审核通过
</view>
<template v-if="data.children.back[current].status === 2">
<view class="text-[#165DFF] test-24r py-[32rpx]" v-if="data.children.back[current].operate === 1">
<view>{{ dayjs(data.children.createtime * 1000).format('YYYY-MM-DD HH:mm') }}已提交审核拒绝</view>
<view>请请点击审核沟通查看修改建议</view>
<view>
并于{{ dayjs(data.children.back[current].end_time * 1000).format('YYYY-MM-DD HH:mm') }}前点击下方重新提交本次回填
</view>
</view>
<view class="text-[#165DFF] test-24r py-[32rpx]" v-if="data.children.back[current].operate === 2">
<view>{{ dayjs(data.children.createtime * 1000).format('YYYY-MM-DD HH:mm') }}已提交审核拒绝</view>
<view>请请点击审核沟通查看修改建议</view>
<view>
并于{{
dayjs(data.children.back[current].end_time * 1000).format('YYYY-MM-DD HH:mm')
}}前点击下方回复按照要求进行回复
</view>
</view>
</template>
<view class="text-[#165DFF] test-24r py-[32rpx]"
v-if="data.children.back[current].status === 0">
{{ dayjs(data.children.createtime * 1000).format('YYYY-MM-DD HH:mm') }}已提交审核中
</view>
<view class="text-[#165DFF] test-24r py-[32rpx]"
v-if="data.children.back[current].status === -1">
{{ dayjs(data.children.createtime * 1000).format('YYYY-MM-DD HH:mm') }}已提交审核失败
</view>
</template>
<template
v-if="data.children.back[current].status === 0 || data.children.back[current].status === -1">
<tui-button @click="success" :disabled="data.children.back[current]">
{{
data.children.back[current].status === 0 || data.children.back[current].status === -1 ? '已提交' : '提交'
}}
</tui-button>
</template>
<template v-else>
<view class="!flex !w-full gap-[30rpx]">
<view class="!w-[50%]">
<tui-button disabled>已提交</tui-button>
</view>
<view class="!w-[50%]" v-if="data.children.back[current].operate === 1">
<resubmit :data="data" :current="current" @success="emits('success')">
<tui-button>重新提交</tui-button>
</resubmit>
</view>
<view class="!w-[50%]" v-if="data.children.back[current].operate === 2">
<reply-message-modal :data="data" @success="emits('success')" :backId="data.children.back[current].id">
<tui-button>回复</tui-button>
</reply-message-modal>
</view>
</view>
</template>
</template>
<style scoped lang="scss">