submitDetail.vue 22 KB

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