submitDetail.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818
  1. <template>
  2. <view class="page_body">
  3. <!-- 头部 -->
  4. <nav-bar height="96" title="提交材料" :onlyTitle="true" :showHeaderborder="true" @GoBack="GoBack"></nav-bar>
  5. <view class="page_content_height">
  6. <view class="page_content padding_btm">
  7. <view class="task_title">{{state?.details?.taskName}}</view>
  8. <view class="task_class_collect">
  9. <text class="class_item">{{state?.details?.departmentName}}</text>
  10. <text class="class_item">{{state?.details?.materialCategoryName}}</text>
  11. <text class="class_item">{{state?.details?.createdBy}}</text>
  12. </view>
  13. <view class="task_time">
  14. <view class="time_day">
  15. <text class="time_item">{{state?.details?.startTime}}</text>
  16. <text class="time_item">至</text>
  17. <text class="time_item">{{state?.details?.endTime}}</text>
  18. <text class="time_item" v-if="state?.details?.taskStatus === 1 && remainingDays(state?.details?.endTime) > 0">剩余{{remainingDays(state?.details?.endTime)}}天</text>
  19. </view>
  20. <view :class="['task_status', statusClassMap[state?.details?.taskStatus]]">
  21. {{taskStatusMap[state?.details?.taskStatus]}}
  22. </view>
  23. </view>
  24. <view :class="['task_desc',{'over':!state.isExpand}]">
  25. 采集要求:{{state?.details?.collectionRequire}}
  26. </view>
  27. <view class="task_desc_all">
  28. 采集要求:{{state?.details?.collectionRequire}}
  29. </view>
  30. <view class="expand_btn" v-if="state.showExpandBtn" @click="toggleExpand"><text
  31. class="expand_text">{{!state.isExpand?'展开':'收起'}}</text><uni-icons class="expand_icon"
  32. :type="!state.isExpand?'down':'up'"></uni-icons></view>
  33. </view>
  34. <!-- 间隔 -->
  35. <view class="row_gap"></view>
  36. <view class="page_content">
  37. <view class="target_status">
  38. <view class="target_tag">
  39. <template v-for="text in ['departmentName','departmentGroupName','subjectName','gradeName','classTypeName','className']">
  40. <text class="info_text" v-if="state?.targetFileList?.[text]" :key="text">{{state?.targetFileList?.[text]}}</text>
  41. </template>
  42. </view>
  43. <template v-if="state?.details?.auditMechanism === 1">
  44. <view v-if="state?.targetFileList?.targetStatus=== 1" class="status_tag notSubmitList">
  45. <text>待提交</text>
  46. </view>
  47. <view v-if="state?.targetFileList?.targetStatus=== 3" class="status_tag reviewReasonList">
  48. <text>已驳回</text>
  49. </view>
  50. <view v-if="state?.targetFileList?.targetStatus=== 2" class="status_tag notReviewList">
  51. <text>审核中</text>
  52. </view>
  53. <view v-if="state?.targetFileList?.targetStatus=== 4" class="status_tag reviewList">
  54. <text>已提交</text>
  55. </view>
  56. </template>
  57. <template v-if="state?.details?.auditMechanism === 0">
  58. <view v-if="state?.targetFileList?.targetStatus=== 1" class="status_tag notSubmitList">
  59. <text>待提交</text>
  60. </view>
  61. <view v-else class="status_tag reviewList">
  62. <text>已提交</text>
  63. </view>
  64. </template>
  65. </view>
  66. <!-- 上传按钮 提交状态 1待提交 2审核中 3已驳回 4已提交 -->
  67. <!-- maxSize:单文件上限 MB;0 表示不限制 maxCount:列表最多文件数 -->
  68. <kex-file-uploader
  69. ref="fileUploader"
  70. v-model="files"
  71. mode="headless"
  72. :multiple="true"
  73. :auto-upload="true"
  74. :upload-url="`${apiBaseUrl}/api/v1/teach/oss/file/oss/upload_file_list`"
  75. :upload-options="{
  76. name: 'files',
  77. header: {
  78. Authorization: token
  79. },
  80. formData: {
  81. taskId:state.taskId,
  82. targetId:state.targetId
  83. },
  84. }"
  85. :max-count="20"
  86. :maxSize="100"
  87. formats="doc,docx,xls,xlsx,ppt,pptx,png,jpg,jpeg,gif,bmp"
  88. @uploadSuccess="onUploadSuccess">
  89. </kex-file-uploader>
  90. <view class="upload_box" @click="FileChooseUploader" v-if="state?.targetFileList?.targetStatus === 1 && state?.details?.taskStatus !== 2">
  91. <image class="upload_icon" src="@/static/image/icon/upload_icon.png"></image>
  92. <view class="upload_text">
  93. <view class="upload_title">点击上传文件</view>
  94. <view class="upload_desc">支持Word、Excel、PPT、图片(最大100MB)</view>
  95. </view>
  96. </view>
  97. <view class="upload_box" v-if="(state?.targetFileList?.targetStatus === 2 || state?.targetFileList?.targetStatus === 4) && state?.details?.taskStatus !== 2">
  98. <image class="upload_icon" src="@/static/image/icon/upload_locked.png"></image>
  99. <view class="upload_text">
  100. <view class="upload_title">点击重新编辑可再提交</view>
  101. <view class="upload_desc">支持Word、Excel、PPT、图片(最大100MB)</view>
  102. </view>
  103. </view>
  104. <view class="upload_box" v-if="state?.targetFileList?.targetStatus === 3 && state?.details?.taskStatus !== 2">
  105. <image class="upload_icon" src="@/static/image/icon/upload_locked.png"></image>
  106. <view class="upload_text">
  107. <view class="upload_title">请先删除全部文件,再提交调整后的合规材料</view>
  108. <view class="upload_desc">支持Word、Excel、PPT、图片(最大100MB)</view>
  109. </view>
  110. </view>
  111. <view class="upload_box" v-if="state?.details?.taskStatus == 2">
  112. <image class="upload_icon" src="@/static/image/icon/upload_locked.png"></image>
  113. <view class="upload_text">
  114. <view class="upload_title">已结束不可再提交</view>
  115. <view class="upload_desc">支持Word、Excel、PPT、图片(最大100MB)</view>
  116. </view>
  117. </view>
  118. <view class="list_item" @click="OpenPreviewFile(item)" v-for="item in (state?.targetFileList?.taskTargetFileVos || [])" :Key="item.id">
  119. <image class="file_icon" src="@/static/image/icon/file.png"></image>
  120. <view class="file_info">
  121. <view class="file_name">{{item.fileName}}</view>
  122. <view class="file_size">
  123. <text>{{getFileSize(item.fileSize)}}</text>
  124. <text>{{ item.createTime }}</text>
  125. </view>
  126. </view>
  127. <view class="file_btn">
  128. <text @click.stop="HandleDeleteFileList(item)" :class="['del',{'disabled':state?.targetFileList?.targetStatus === 2 || state?.targetFileList?.targetStatus === 4}]">删除</text>
  129. <text class="download" @click.stop="ToDownloadFile(item)">下载</text>
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. <view class="page_foot" v-if="state?.details?.taskStatus!=2">
  135. <!-- 提交状态 1待提交 2审核中 3已驳回 4已提交 -->
  136. <template v-if="(state?.targetFileList?.targetStatus === 1 || state?.targetFileList?.targetStatus === 3)">
  137. <view @click="DeleteAllFiles" :class="['del',{'disabled':!state?.targetFileList?.taskTargetFileVos?.length}]">删除全部</view>
  138. <view :class="['submit',{'disabled':state?.targetFileList?.targetStatus === 3}]" @click="UpdateTaskTarget">提交</view>
  139. </template>
  140. <template v-else>
  141. <view class="del disabled">删除全部</view>
  142. <view class="submit" @click="UpdateTaskTargetReset">重新编辑</view>
  143. </template>
  144. </view>
  145. <!-- 删除确认框 -->
  146. <popupDialog ref="popupConfirmDialogRef" :showFootBorder="true" :content="state.confirmDialog.content" @DialogConfirm="DialogConfirm" />
  147. <!-- 文件预览 -->
  148. <popupPreviewFile ref="popupDialogPreview" :fileType="state.previewPopup.fileType" :fileName="state.previewPopup.fileName" :filePath="state.previewPopup.filePath" @ToDownloadFile="ToDownloadFile"></popupPreviewFile>
  149. <!-- 文件、图片下载 -->
  150. <ss-download ref="ssdownload"></ss-download>
  151. </view>
  152. </template>
  153. <script setup>
  154. import uniIcons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue';
  155. import ssDownload from '@/uni_modules/ss-download/components/ss-download/ss-download.vue';
  156. import popupDialog from '@/components/popupDialog.vue';
  157. import popupPreviewFile from '@/components/popupPreviewFile.vue';
  158. import navBar from '@/components/navBar.vue';
  159. import { remainingDays,getFileSize,getFileTypeBySuffix } from '@/common/common.js';
  160. import {getTaskTargetFileList,DeleteFileList,DelTaskTargetFileList,updateTaskTarget,uploadTaskTargetFileList} from '@/reqApi/notification.js';
  161. import {onLoad} from '@dcloudio/uni-app';
  162. import config from '@/config.js'; // 引入配置文件
  163. import {
  164. reactive,
  165. ref,
  166. nextTick,
  167. getCurrentInstance,
  168. computed,
  169. onMounted
  170. } from 'vue';
  171. const state = reactive({
  172. taskId: '', //任务id
  173. targetId:'',//
  174. auditStatus:'',//审核状态
  175. showExpandBtn: false, //是否显示展开按钮
  176. isExpand: false, //是否展开
  177. details: {}, //详情信息
  178. targetFileList:{},
  179. confirmDialog:{
  180. type:'',
  181. content:'',
  182. fileUrls:[],
  183. targetFileIds:[]
  184. },
  185. previewPopup:{
  186. fileType:'',
  187. filePath:'',
  188. fileName:''
  189. }
  190. });
  191. const popupConfirmDialogRef = ref(null);
  192. const popupDialogPreview = ref(null);
  193. const fileUploader = ref(null);
  194. const ssdownload = ref(null);
  195. const files = ref([]);
  196. const token = ref(uni.getStorageSync('token'));
  197. const apiBaseUrl = ref('');
  198. const statusClassMap = {
  199. 1: 'status_published',
  200. 2: 'status_closed'
  201. };
  202. const taskStatusMap = {
  203. 1: '进行中',
  204. 2: '已结束'
  205. };
  206. onLoad((option) => {
  207. state.taskId = option.taskId;
  208. state.targetId = option.targetId;
  209. state.auditStatus = Number(option.auditStatus);
  210. })
  211. onMounted(() => {
  212. state.details = uni.getStorageSync('submitMaterialDetailInfo') || {};
  213. uni.removeStorageSync('isLoadSubmitMaterialTaskDetail');//返回是否重新更新任务详情数据
  214. uni.removeStorageSync('isLoadSubmitMaterialIndex');//返回是否重新更新提交材料首页
  215. getApiBaseUrl();//上传接口地址
  216. GetTaskTargetFileList(true);
  217. });
  218. //上传接口地址
  219. const getApiBaseUrl = () => {
  220. if (process.env.NODE_ENV === 'development') {//本地开发环境
  221. const SYSTEM_INFO = uni.getSystemInfoSync();//获取系统信息的同步接口
  222. apiBaseUrl.value = SYSTEM_INFO.uniPlatform === 'web' ? config.proxyBaseUrl:config.apiBaseUrl;//读取配置文件的apiBaseUrl变量
  223. } else {//生产/测试环境
  224. apiBaseUrl.value = config.apiBaseUrl
  225. }
  226. }
  227. //选择文件上传
  228. const FileChooseUploader = () => {
  229. fileUploader.value && fileUploader.value.choose();
  230. }
  231. const onUploadSuccess = ({
  232. index,
  233. file, // 当前文件
  234. url, // 优先为解析出的远程地址
  235. statusCode,
  236. data, // 解析后的服务端 JSON(失败则为原始字符串)
  237. res, // 原始回调
  238. fileList // 当前全部
  239. }) => {
  240. console.log(res)
  241. const result = JSON.parse(res.data || res.result);
  242. const list = result?.data || [];
  243. const fileInfoList = list.map(item => ({
  244. ...item,
  245. filePath: item.fileUrl
  246. }))
  247. UploadTargetFileList(fileInfoList);
  248. }
  249. //具体采集任务保存上传的文件地址
  250. const UploadTargetFileList = (fileInfoList) => {
  251. uploadTaskTargetFileList({
  252. fileInfoList,
  253. taskId:state.taskId,
  254. targetId:state.targetId
  255. }).then(res=>{
  256. if (res.code === 200) {
  257. uni.showToast({
  258. title: '上传成功!',
  259. icon: 'none'
  260. });
  261. GetTaskTargetFileList(false,'upload');
  262. }
  263. })
  264. }
  265. //预览
  266. const OpenPreviewFile = (item) => {
  267. state.previewPopup.fileType = item.fileType;
  268. state.previewPopup.filePath = item.filePath;
  269. state.previewPopup.fileName = item.fileName;
  270. popupDialogPreview.value.OpenDialog();
  271. // const fileType = item.fileType;
  272. // if(IsImageExts(fileType)){//图片预览
  273. // state.previewPopup.filePath = item.filePath;
  274. // popupDialogPreview.value.OpenDialog();
  275. // }else{//文件预览
  276. // // 1. 先下载文件到本地临时目录
  277. // uni.downloadFile({
  278. // url: item.filePath,
  279. // success: (downloadRes) => {
  280. // if (downloadRes.statusCode === 200) {
  281. // // 2. 下载成功后,得到临时文件路径 tempFilePath
  282. // const localPath = downloadRes.tempFilePath;
  283. // // 3. 构造 file 对象(必须有 path)
  284. // const fileObj = {
  285. // name: item.fileName,
  286. // path: localPath, // 关键字段
  287. // size: item.fileSize // 可选
  288. // };
  289. // // 4. 调用 kex-file-uploader 的 openDocument 方法预览
  290. // fileUploader.value?.openDocument({
  291. // file: fileObj,
  292. // success: () => console.log('预览成功'),
  293. // fail: (err) => console.error('预览失败', err)
  294. // });
  295. // }
  296. // },
  297. // fail: (err) => {
  298. // uni.showToast({ title: '文件下载失败', icon: 'none' });
  299. // }
  300. // });
  301. // }
  302. }
  303. //下载
  304. const ToDownloadFile = (item) => {
  305. const fileType = getFileTypeBySuffix(item.fileType);//文件类型
  306. let type = '';
  307. if(fileType == 'image'){
  308. type = '1';//1:图片 2 文档
  309. }else if(fileType == 'document'){
  310. type = '2';
  311. }else{
  312. type = '';
  313. }
  314. ssdownload?.value?.toDownload({
  315. type:type,
  316. src:item.filePath,
  317. fileName:item.fileName
  318. });
  319. }
  320. // 展开收起切换
  321. const toggleExpand = () => {
  322. state.isExpand = !state.isExpand;
  323. }
  324. //获取当前教师提交的文件列表
  325. const GetTaskTargetFileList = (init,type) => {
  326. getTaskTargetFileList(state.targetId).then(res=>{
  327. if(res.code == 200){
  328. state.targetFileList = res.data || {};
  329. //对比审核状态是否发生变化同时更新缓存数据
  330. if(!init){
  331. uni.setStorageSync('isLoadSubmitMaterialIndex',true);//返回是否重新更新提交材料首页
  332. updateCacheData(type);
  333. }
  334. }
  335. })
  336. }
  337. //单个删除
  338. const HandleDeleteFileList = (item) => {
  339. if(state?.targetFileList?.targetStatus === 2 || state?.targetFileList?.targetStatus === 4){
  340. return false
  341. }
  342. const { filePath, id } = item;
  343. state.confirmDialog = {
  344. type:'del',
  345. content:'是否删除当前文件?',
  346. fileUrls:[filePath],
  347. targetFileIds:[id]
  348. };
  349. popupConfirmDialogRef.value.OpenDialog();
  350. }
  351. //删除全部
  352. const DeleteAllFiles = () => {
  353. let fileUrls = [],targetFileIds = [];
  354. const taskTargetFileVos = state?.targetFileList?.taskTargetFileVos || [];
  355. if(taskTargetFileVos.length > 0){
  356. taskTargetFileVos.forEach(item => {
  357. fileUrls.push(item.filePath);
  358. targetFileIds.push(item.id)
  359. })
  360. state.confirmDialog = {
  361. type:'del',
  362. content:'是否删除全部当前文件?',
  363. fileUrls:fileUrls,
  364. targetFileIds:targetFileIds
  365. };
  366. popupConfirmDialogRef.value.OpenDialog();
  367. }
  368. }
  369. //提交
  370. const UpdateTaskTarget = () => {
  371. const taskTargetFileVos = state?.targetFileList?.taskTargetFileVos || [];
  372. if(taskTargetFileVos.length == 0){
  373. uni.showToast({
  374. title: '请上传提交文件!',
  375. icon: 'none'
  376. });
  377. return false
  378. }
  379. state.confirmDialog = {
  380. type:'submit',
  381. content:'是否提交当前任务?',
  382. fileUrls:[],
  383. targetFileIds:[]
  384. };
  385. popupConfirmDialogRef.value.OpenDialog();
  386. }
  387. //重新提交
  388. const UpdateTaskTargetReset = () => {
  389. state.confirmDialog = {
  390. type:'submit',
  391. content:'是否重新编辑当前任务?',
  392. fileUrls:[],
  393. targetFileIds:[]
  394. };
  395. popupConfirmDialogRef.value.OpenDialog();
  396. }
  397. //确定删除 确定提交
  398. const DialogConfirm = () => {
  399. if(state.confirmDialog.type == 'del'){//单个删除 批量删除
  400. DelFileList();
  401. }else if(state.confirmDialog.type == 'submit') {//提交
  402. submitTaskTarget();
  403. }
  404. }
  405. const DelFileList = async() => {
  406. const res = await DeleteFileList({ fileUrls: state.confirmDialog.fileUrls })
  407. if (res.code !== 200) {
  408. uni.showToast({
  409. title: res.msg,
  410. icon: 'none'
  411. });
  412. return false
  413. }
  414. const resData = await DelTaskTargetFileList({
  415. targetId: state.targetId,
  416. targetFileIds: state.confirmDialog.targetFileIds
  417. })
  418. if (resData.code === 200) {
  419. uni.showToast({
  420. title: '删除成功!',
  421. icon: 'none'
  422. });
  423. GetTaskTargetFileList(false,'del');
  424. }
  425. }
  426. //提交
  427. const submitTaskTarget = () => {
  428. updateTaskTarget(state.targetId).then(res => {
  429. if (res.code === 200) {
  430. uni.showToast({
  431. title: '提交成功!',
  432. icon: 'none'
  433. });
  434. GetTaskTargetFileList(false,'submit');
  435. }
  436. })
  437. }
  438. //对比审核状态是否发生变化同时更新缓存数据
  439. const updateCacheData = (type) => {
  440. const targetStatus = state?.targetFileList?.targetStatus;
  441. let taskTargetList = state?.details?.taskTargetVos || [];
  442. if (state.auditStatus !== targetStatus) {
  443. // 状态变化,删除目标项
  444. taskTargetList.forEach(item=>{
  445. if(item.id == state.targetId){
  446. item.isShow = 1;//删除状态
  447. }
  448. })
  449. } else {
  450. // 状态未变且非提交(上传或删除)操作,更新文件列表
  451. if (type !== 'submit'){
  452. const targetItem = taskTargetList.find(item => item.id === state.targetId);
  453. if (targetItem) {
  454. targetItem.taskTargetFileVos = state?.targetFileList?.taskTargetFileVos || [];
  455. targetItem.fileNum = targetItem.taskTargetFileVos.length;
  456. }
  457. }else{
  458. taskTargetList.forEach(item=>{
  459. if(item.id == state.targetId){
  460. item.isShow = 0;//显示
  461. }
  462. })
  463. }
  464. }
  465. // 关键:将结果写回 state
  466. if (state?.details) {
  467. state.details.taskTargetVos = taskTargetList;
  468. uni.setStorageSync('submitMaterialDetailInfo',state.details);
  469. uni.setStorageSync('isLoadSubmitMaterialTaskDetail',true);//返回是否重新更新任务详情数据
  470. }
  471. }
  472. //返回
  473. const GoBack = () => {
  474. uni.navigateBack({
  475. delta: 1
  476. });
  477. }
  478. </script>
  479. <style scoped lang="scss">
  480. .page_body{
  481. height: 100%;
  482. }
  483. .page_content_height{
  484. display: flex;
  485. flex-direction: column;
  486. width: 100%;
  487. height: calc(100% - 240rpx);
  488. overflow: auto;
  489. }
  490. .page_content {
  491. &.padding_btm {
  492. padding-bottom: 24rpx;
  493. .task_title {
  494. font-weight: 500;
  495. font-size: 32rpx;
  496. color: #333333;
  497. margin-top: 24rpx;
  498. }
  499. .task_class_collect {
  500. display: inline-flex;
  501. align-items: center;
  502. flex-wrap: wrap;
  503. width: 100%;
  504. margin-top: 16rpx;
  505. gap: 16rpx;
  506. .class_item {
  507. font-weight: 400;
  508. font-size: 24rpx;
  509. color: #999999;
  510. }
  511. }
  512. .task_time {
  513. display: flex;
  514. align-items: flex-start;
  515. width: 100%;
  516. margin-top: 16rpx;
  517. .time_day {
  518. display: inline-flex;
  519. align-items: center;
  520. flex-wrap: wrap;
  521. flex: 1;
  522. .time_item {
  523. font-weight: 400;
  524. font-size: 24rpx;
  525. line-height: 48rpx;
  526. color: #999999;
  527. &:nth-child(2) {
  528. margin: 0 8rpx;
  529. }
  530. &:nth-child(4) {
  531. color: #2E64FA;
  532. margin-left: 16rpx;
  533. }
  534. }
  535. }
  536. .task_status {
  537. display: inline-flex;
  538. align-items: center;
  539. height: 48rpx;
  540. padding: 0 12rpx;
  541. border-radius: 8rpx;
  542. font-weight: 400;
  543. font-size: 24rpx;
  544. &.status_pending {
  545. background: rgba(46, 100, 250, 0.1);
  546. color: #2E64FA;
  547. }
  548. &.status_published {
  549. background: rgba(82, 196, 26, 0.1);
  550. color: #2BC644;
  551. }
  552. &.status_closed {
  553. background: #6666661a;
  554. color: #666666;
  555. }
  556. }
  557. }
  558. .task_desc {
  559. margin-top: 24rpx;
  560. display: flex;
  561. width: 100%;
  562. padding-top: 24rpx;
  563. border-top: 2rpx solid #F3F3F3;
  564. font-weight: 400;
  565. font-size: 28rpx;
  566. color: #999999;
  567. line-height: 44rpx;
  568. box-sizing: border-box;
  569. position: relative;
  570. &.over {
  571. max-height: 168rpx;
  572. overflow: hidden;
  573. transition: all 0.25s;
  574. display: -webkit-box;
  575. -webkit-line-clamp: 3;
  576. -webkit-box-orient: vertical;
  577. }
  578. }
  579. .task_desc_all {
  580. display: flex;
  581. width: 100%;
  582. padding-top: 24rpx;
  583. border-top: 2rpx solid #F3F3F3;
  584. font-weight: 400;
  585. font-size: 28rpx;
  586. color: #999999;
  587. line-height: 44rpx;
  588. box-sizing: border-box;
  589. position: absolute;
  590. left: -9999px;
  591. top: 0;
  592. visibility: hidden; // 不可见但占据空间(不影响布局,因为absolute)
  593. pointer-events: none;
  594. }
  595. .expand_btn {
  596. width: 100%;
  597. height: 40rpx;
  598. background-color: #FFFFFF;
  599. display: flex;
  600. justify-content: flex-end;
  601. align-items: center;
  602. .expand_text {
  603. font-weight: 400;
  604. font-size: 28rpx;
  605. color: #2E64FA;
  606. margin-right: 8rpx;
  607. }
  608. .expand_icon {
  609. font-size: 32rpx !important;
  610. color: #2E64FA !important;
  611. }
  612. }
  613. }
  614. }
  615. .row_gap {
  616. background-color: #F8F9FD;
  617. width: 100%;
  618. height: 24rpx;
  619. }
  620. .target_status {
  621. width: 100%;
  622. display: flex;
  623. align-items: center;
  624. padding: 24rpx 0;
  625. border-bottom: 2rpx solid #F3F3F3;
  626. .target_tag{
  627. flex: 1;
  628. font-weight: 500;
  629. font-size: 32rpx;
  630. color: #333333;
  631. .info_text{
  632. flex-shrink: 0;
  633. margin-right: 12rpx;
  634. }
  635. }
  636. .status_tag{
  637. font-size: 24rpx;
  638. text-align: center;
  639. padding: 8rpx 12rpx;
  640. font-weight: 400;
  641. border-radius: 8rpx;
  642. flex-shrink: 0;
  643. &.notSubmitList {
  644. background: rgba(46,100,250,0.1);
  645. color: #2E64FA;
  646. }
  647. &.notReviewList {
  648. background: rgba(251,159,52,0.1);
  649. color: #FB9F34;
  650. }
  651. &.reviewReasonList {
  652. background: rgba(245,108,108,0.1);
  653. color: #F56C6C;
  654. }
  655. &.reviewList {
  656. background: rgba(43,198,68,0.1);
  657. color: #2BC644;
  658. }
  659. }
  660. }
  661. .upload_box{
  662. margin-top: 24rpx;
  663. width: 100%;
  664. background-color: #FAFBFF;
  665. border-radius: 20rpx;
  666. border: 2rpx dashed #CCCED4;
  667. display: flex;
  668. box-sizing: border-box;
  669. align-items: center;
  670. padding: 22rpx 0 22rpx 40rpx;
  671. .upload_icon{
  672. width: 64rpx;
  673. height: 64rpx;
  674. margin-right: 24rpx;
  675. flex-shrink: 0;
  676. }
  677. .upload_text{
  678. flex:1;
  679. display: flex;
  680. flex-direction: column;
  681. .upload_title{
  682. font-weight: 400;
  683. font-size: 28rpx;
  684. color: #666666;
  685. }
  686. .upload_desc{
  687. margin-top: 8rpx;
  688. font-weight: 400;
  689. font-size: 20rpx;
  690. color: #CCCED4;
  691. }
  692. }
  693. }
  694. .list_item {
  695. display: flex;
  696. align-items: center;
  697. width: 100%;
  698. padding: 20rpx 24rpx;
  699. background: #FFFFFF;
  700. border-radius: 20rpx;
  701. border: 2rpx solid #EBEEF5;
  702. box-sizing: border-box;
  703. margin-top: 24rpx;
  704. gap:20rpx;
  705. .file_icon{
  706. flex-shrink: 0;
  707. width: 80rpx;
  708. height: 80rpx;
  709. }
  710. .file_info{
  711. flex:1;
  712. display: flex;
  713. flex-direction: column;
  714. overflow: hidden;
  715. .file_name{
  716. width: 100%;
  717. font-weight: 500;
  718. font-size: 28rpx;
  719. color: #333333;
  720. overflow: hidden;
  721. white-space: nowrap;
  722. text-overflow: ellipsis;
  723. }
  724. .file_size{
  725. display: flex;
  726. width: 100%;
  727. gap: 20rpx;
  728. font-weight: 400;
  729. font-size: 24rpx;
  730. color: #999999;
  731. margin-top: 8rpx;
  732. }
  733. }
  734. .file_btn{
  735. flex-shrink: 0;
  736. display: flex;
  737. gap:24rpx;
  738. font-weight: 400;
  739. font-size: 28rpx;
  740. .del{
  741. color: #F56C6C;
  742. &.disabled{
  743. color: #C0C4CC;
  744. }
  745. }
  746. .download{
  747. color: #2E64FA;
  748. }
  749. }
  750. }
  751. .page_foot{
  752. position: fixed;
  753. display: flex;
  754. align-items: center;
  755. left: 0;
  756. right: 0;
  757. bottom: 0;
  758. padding: 0 24rpx;
  759. height: 130rpx;
  760. background-color: #FFFFFF;
  761. gap: 32rpx;
  762. .del{
  763. display: flex;
  764. align-items: center;
  765. justify-content: center;
  766. width: 240rpx;
  767. height: 90rpx;
  768. box-sizing: border-box;
  769. border-radius: 8rpx;
  770. border: 2rpx solid #F56C6C;
  771. font-weight: 400;
  772. font-size: 28rpx;
  773. color: #F56C6C;
  774. &.disabled{
  775. color: #C0C4CC;
  776. border: 2rpx solid #C0C4CC;
  777. }
  778. }
  779. .submit {
  780. flex:1;
  781. height: 90rpx;
  782. background-color: #2E64FA;
  783. border-radius: 8rpx;
  784. display: flex;
  785. justify-content: center;
  786. align-items: center;
  787. font-weight: 500;
  788. font-size: 28rpx;
  789. color: #FFFFFF;
  790. &.disabled{
  791. background-color: #C0C4CC;
  792. }
  793. }
  794. }
  795. </style>