taskDetail.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119
  1. <template>
  2. <view class="container">
  3. <view class="status-bar" :style="{ height: statusBarHeight + 'px' }"></view>
  4. <view class="top">
  5. <image class="return" @click="goBack" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/back_white.png"></image>
  6. <text>任务详情</text>
  7. </view>
  8. <scroll-view class="content" scroll-y>
  9. <!-- 任务卡片 -->
  10. <view class="task-card">
  11. <view class="card-header">
  12. <view class="card-title">{{ detail.taskName||'-' }}</view>
  13. </view>
  14. <view class="card-meta">
  15. <view class="meta-tag">{{ detail.taskTypeName||'-' }}</view>
  16. <view class="meta-id">ID:{{ detail.taskNo||'-' }}</view>
  17. </view>
  18. </view>
  19. <!-- 任务信息 -->
  20. <view class="info-section">
  21. <view class="section-header">
  22. <view class="section-indicator"></view>
  23. <text class="section-title">任务信息</text>
  24. </view>
  25. <view class="info-list">
  26. <view class="info-item">
  27. <text class="info-label">费用分摊:</text>
  28. <text class="info-value">{{ detail.costShareName||'-' }}</text>
  29. </view>
  30. <view class="info-item">
  31. <text class="info-label">归属项目:</text>
  32. <text class="info-value">{{ detail.projectName ||'-' }}</text>
  33. </view>
  34. <view class="info-item">
  35. <text class="info-label">归属部门:</text>
  36. <text class="info-value">{{ detail.deptName ||'-' }}</text>
  37. </view>
  38. <view class="info-item">
  39. <text class="info-label">归属产品:</text>
  40. <text class="info-value">{{ detail.productName ||'-' }}</text>
  41. </view>
  42. <!-- <view class="info-item">
  43. <text class="info-label">申请补充直播任务:</text>
  44. <text class="info-value">{{ detail.applySupplementLive ||'-' }}</text>
  45. </view>
  46. <view class="info-item">
  47. <text class="info-label">补充任务直播间ID:</text>
  48. <text class="info-value">{{ detail.supplementRoomId ||'-' }}</text>
  49. </view>
  50. <view class="info-item">
  51. <text class="info-label">申请补充任务原因:</text>
  52. <text class="info-value">{{ detail.supplementReason ||'-' }}</text>
  53. </view> -->
  54. </view>
  55. </view>
  56. <!-- 内容信息 -->
  57. <view class="info-section">
  58. <view class="section-header">
  59. <view class="section-indicator"></view>
  60. <text class="section-title">内容信息</text>
  61. </view>
  62. <view class="info-list">
  63. <view class="info-item">
  64. <text class="info-label">交付物名称:</text>
  65. <text class="info-value">{{ detail.deliverableName ||'-' }}</text>
  66. </view>
  67. <view class="info-item">
  68. <text class="info-label">交付物ID:</text>
  69. <text class="info-value">{{ detail.deliverableId||'-' }}</text>
  70. </view>
  71. <!-- <view class="info-item">
  72. <text class="info-label">直播间地址:</text>
  73. <text class="info-value">{{ detail.liveRoomUrl ||'-' }}</text>
  74. <text class="copy-btn" @click="copyToClipboard(contentInfo.liveRoomUrl)">复制</text>
  75. </view>
  76. <view class="info-item">
  77. <text class="info-label">推流地址:</text>
  78. <text class="info-value">{{ detail.pushUrl ||'-' }}</text>
  79. <text class="copy-btn" @click="copyToClipboard(contentInfo.pushUrl)">复制</text>
  80. </view>
  81. <view class="info-item">
  82. <text class="info-label">开播地址:</text>
  83. <text class="info-value">{{ detail.startUrl||'-' }}</text>
  84. <text class="copy-btn" @click="copyToClipboard(contentInfo.startUrl)">复制</text>
  85. </view>
  86. <view class="info-item">
  87. <text class="info-label">直播回放:</text>
  88. <text class="info-value">{{ detail.liveReplay ||'-' }}</text>
  89. </view>
  90. <view class="info-item">
  91. <text class="info-label">播放视频:</text>
  92. <text class="info-value">{{ detail.playVideo||'-' }}</text>
  93. </view>
  94. <view class="info-item">
  95. <text class="info-label">下载视频:</text>
  96. <text class="info-value">{{ detail.downloadVideo||'-' }}</text>
  97. </view>
  98. <view class="info-item">
  99. <text class="info-label">观众人数:</text>
  100. <text class="info-value">{{ detail.viewerCount||'0' }}</text>
  101. </view>
  102. <view class="info-item">
  103. <text class="info-label">有效观看:</text>
  104. <text class="info-value">{{ detail.validView||'-' }}</text>
  105. </view>
  106. <view class="info-item">
  107. <text class="info-label">情况说明:</text>
  108. <text class="info-value">{{ detail.description||'-' }}</text>
  109. </view> -->
  110. </view>
  111. </view>
  112. <!-- 客户信息 -->
  113. <view class="info-section">
  114. <view class="section-header">
  115. <view class="section-indicator"></view>
  116. <text class="section-title">客户信息</text>
  117. </view>
  118. <view class="client-list">
  119. <view class="client-item" >
  120. <view class="client-info">
  121. <image class="avatar" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/my_heads_icon.png"></image>
  122. <view class="client-txt">
  123. <view class="client-name">
  124. {{ detail.doctorVO.doctorName||'-' }}
  125. <text class="client-level" v-if="detail.doctorVO.jobTitle">{{ detail.doctorVO.jobTitle }}</text>
  126. </view>
  127. <view class="client-hospital">
  128. <text>{{ detail.doctorVO.institution ||'-'}} </text>
  129. <view class="line"></view>
  130. <text>{{ detail.doctorVO.department ||'-'}}</text>
  131. </view>
  132. </view>
  133. </view>
  134. <view class="client-stats">
  135. <view class="stat-item"><text class="num">{{detail.doctorVO.taskNum ||'0'}} </text>任务</view>
  136. <view class="stat-item"><text class="num">{{ detail.doctorVO.balance||'0' }} </text>积分</view>
  137. </view>
  138. </view>
  139. </view>
  140. </view>
  141. <!-- 补充材料 -->
  142. <view class="info-section">
  143. <view class="section-header">
  144. <view class="section-indicator"></view>
  145. <text class="section-title">补充材料</text>
  146. </view>
  147. <view class="info-list">
  148. <template v-if="detail.materialInfoList && detail.materialInfoList.length > 0">
  149. <view v-for="(material, index) in detail.materialInfoList" :key="index" class="material-item">
  150. <view class="material-header">
  151. <text class="material-title" v-if="detail.materialInfoList.length > 1">材料 {{ index + 1 }}</text>
  152. </view>
  153. <view class="info-item">
  154. <text class="info-label">交付物名称:</text>
  155. <text class="info-value">{{ material.materialName || '-' }}</text>
  156. </view>
  157. <view class="info-item">
  158. <text class="info-label">情况说明:</text>
  159. <text class="info-value">{{ material.materialDesc || '-' }}</text>
  160. </view>
  161. <view class="info-item column">
  162. <text class="info-label">附件:</text>
  163. <view class="attachment-item" v-if="material.materialLink">
  164. <view class="left">
  165. <image class="img" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_attachment.png"></image>
  166. <view class="txt-item">
  167. <view class="attachment-name">{{ material.materialLink || '-' }}</view>
  168. <view class="attachment-size">{{ formatFileSize(material.fileSize || 0) }}</view>
  169. </view>
  170. </view>
  171. <image class="download-btn" @click="downloadAttachment(material.materialLink)"
  172. src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_downlad.png"></image>
  173. </view>
  174. </view>
  175. </view>
  176. </template>
  177. <view v-else class="empty-material">
  178. <text>暂无补充材料</text>
  179. </view>
  180. </view>
  181. </view>
  182. <!-- 审批信息 -->
  183. <view class="info-section">
  184. <view class="section-header">
  185. <view class="section-indicator"></view>
  186. <text class="section-title">审批信息</text>
  187. </view>
  188. <view class="audit-tabs">
  189. <view class="audit-tab" :class="{ active: activeTab === 'create' }" @click="switchTab('create')">创建任务审批</view>
  190. <view class="audit-tab" :class="{ active: activeTab === 'complete' }" @click="switchTab('complete')">完成任务审批</view>
  191. </view>
  192. <view class="approval-list">
  193. <view class="approval-item" v-for="(item, index) in currentApprovalInfo" :key="index">
  194. <view class="left">
  195. <view class="avatar-box">
  196. <image class="avatar" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/my_heads_icon.png"></image>
  197. <image class="icon" v-if="item.status=='待审核'" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_wait.png"></image>
  198. <image class="icon" v-if="item.status=='已通过'" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_pass.png"></image>
  199. <image class="icon" v-if="item.status=='已驳回'" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_refuse.png"></image>
  200. </view>
  201. <view class="approval-user">
  202. <view class="user-name">{{ item.name }}</view>
  203. <view class="user-status" :style="{ color: item.statusColor }">{{ item.status }}</view>
  204. </view>
  205. </view>
  206. <text class="approval-time">{{ item.time }}</text>
  207. <view class="approval-line" v-if="index < currentApprovalInfo.length - 1"></view>
  208. </view>
  209. <view v-if="currentApprovalInfo.length === 0" class="empty-approval">
  210. <text>暂无审批信息</text>
  211. </view>
  212. </view>
  213. </view>
  214. </scroll-view>
  215. <view class="bottom-bar" v-if="auditStatus==1">
  216. <view class="action-buttons">
  217. <view class="btn btn-cancel" @click="openRejectPopup">
  218. <image class="icon" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_approval_no.png"></image>
  219. <text>驳回</text>
  220. </view>
  221. <view class="btn btn-submit" @click="handleNext">
  222. <image class="icon" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_approval_yes.png"></image>
  223. <text>通过</text>
  224. </view>
  225. </view>
  226. </view>
  227. <!-- 驳回弹窗 -->
  228. <u-popup :show="showRejectPopup" mode="bottom" round="24" z-index="9999999">
  229. <view class="reject-popup-content">
  230. <view class="popup-header">
  231. <text class="popup-title">驳回</text>
  232. <image @click="showRejectPopup = false;" class="close" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_close.png"></image>
  233. </view>
  234. <view class="input-area">
  235. <textarea v-model="rejectReason" placeholder="请输入驳回意见" class="reason-input" :auto-height="true"
  236. maxlength="200" />
  237. </view>
  238. <view class="btn-group">
  239. <view class="button reject" @click="showRejectPopup = false">取消</view>
  240. <view class="button confirm" @click="handleConfirmReject ">确认驳回</view>
  241. </view>
  242. </view>
  243. </u-popup>
  244. </view>
  245. </template>
  246. <script>
  247. import { doAudit} from '@/api/audit.js'
  248. import { info } from '@/api/task.js';
  249. // import { getTaskFinishAuditInfo,detail} from '@/api/task.js';
  250. import { detail} from '@/api/audit.js';
  251. export default {
  252. data() {
  253. return {
  254. // 仅获取微信小程序状态栏高度,无多余逻辑
  255. statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
  256. taskId: '',
  257. // 任务基础信息
  258. taskData: {
  259. },
  260. // 任务信息
  261. taskInfo: {
  262. },
  263. // 内容信息
  264. contentInfo: {
  265. },
  266. // 客户信息列表
  267. clientList: [
  268. ],
  269. // 补充材料
  270. supplementMaterial: {
  271. deliverableName: '-',
  272. description: '-',
  273. attachment: {
  274. }
  275. },
  276. // 审批信息
  277. createApprovalInfo: [],
  278. completeApprovalInfo: [],
  279. activeTab: 'create',
  280. taskId:'',
  281. taskId2:'',
  282. detail:{},
  283. createStatus:'',
  284. completeStatus:'',
  285. auditStatus:'',
  286. userInfo:{},
  287. showRejectPopup:false,//是否展示驳回弹窗
  288. rejectReason:'',//驳回原因
  289. }
  290. },
  291. computed: {
  292. currentApprovalInfo() {
  293. return this.activeTab === 'create' ? this.createApprovalInfo : this.completeApprovalInfo
  294. }
  295. },
  296. onLoad(options) {
  297. console.log("任务详情数据",options)
  298. if (options.taskId) {
  299. this.taskId = options.taskId
  300. this.loadData(this.taskId,'create')
  301. }
  302. if (options.taskId2) {
  303. this.taskId2 = options.taskId2
  304. this.loadData(this.taskId2,'complete')
  305. }
  306. if (options.id) {
  307. const id = options.id
  308. this.info(id);
  309. }
  310. // 初始化 auditStatus
  311. this.auditStatus = this.createStatus;
  312. this.userInfo = uni.getStorageSync('userInfo')
  313. },
  314. methods: { // 打开驳回弹窗
  315. openRejectPopup() {
  316. // 直接打开驳回弹窗
  317. this.showRejectPopup = true
  318. },
  319. // 确认驳回
  320. async handleConfirmReject() {
  321. if (!this.rejectReason.trim()) {
  322. uni.showToast({
  323. title: '请输入驳回意见',
  324. icon: 'none'
  325. })
  326. return
  327. }
  328. try {
  329. uni.showLoading({
  330. title: '提交中...'
  331. })
  332. console.log("this.userInfo",this.userInfo)
  333. // 调用审核接口,传递action=2表示驳回
  334. const res = await doAudit({
  335. auditId: this.activeTab === 'create' ? this.taskId : this.taskId2,
  336. userId: this.userInfo.userId,
  337. userType: 0,
  338. action: 2,
  339. comment: this.rejectReason,
  340. companyId: this.userInfo.companyId
  341. })
  342. uni.hideLoading()
  343. if (res.code === 200) {
  344. uni.showToast({
  345. title: res.data.message,
  346. icon: 'none'
  347. })
  348. // 关闭弹窗
  349. this.showRejectPopup = false
  350. // 重置输入
  351. this.rejectReason = ''
  352. // 重新加载数据
  353. this.loadData()
  354. } else {
  355. uni.showToast({
  356. title: res.msg || '驳回失败',
  357. icon: 'none'
  358. })
  359. }
  360. } catch (e) {
  361. uni.hideLoading()
  362. console.error('驳回失败', e)
  363. uni.showToast({
  364. title: '驳回失败,请稍后重试',
  365. icon: 'none'
  366. })
  367. }
  368. },
  369. // 审批通过
  370. async handleNext() {
  371. try {
  372. uni.showLoading({
  373. title: '提交中...'
  374. })
  375. console.log("this.userInfo",this.userInfo)
  376. // 调用审核接口,传递action=1表示通过
  377. const res = await doAudit({
  378. auditId: this.activeTab === 'create' ? this.taskId : this.taskId2,
  379. userId: this.userInfo.userId,
  380. userType: 0,
  381. action: 1,
  382. comment: "",
  383. companyId: this.userInfo.companyId
  384. })
  385. uni.hideLoading()
  386. if (res.code === 200) {
  387. uni.showToast({
  388. title: res.data.message,
  389. icon: 'none'
  390. })
  391. // 重新加载数据
  392. // this.loadData()
  393. } else {
  394. uni.showToast({
  395. title: res.msg || '审批通过失败',
  396. icon: 'none'
  397. })
  398. }
  399. } catch (e) {
  400. uni.hideLoading()
  401. console.error('审批通过失败', e)
  402. uni.showToast({
  403. title: '审批通过失败,请稍后重试',
  404. icon: 'none'
  405. })
  406. }
  407. },
  408. goBack() {
  409. uni.navigateBack()
  410. },
  411. switchTab(tab) {
  412. this.activeTab = tab
  413. // 根据切换的标签更新 auditStatus
  414. this.auditStatus = tab === 'create' ? this.createStatus : this.completeStatus
  415. },
  416. info(id){
  417. info(id).then(res=>{
  418. if(res.code===200){
  419. this.detail = res.data
  420. console.log("任务详情",this.detail)
  421. }
  422. })},
  423. async loadData(taskId,type) {
  424. // 如果没有传递参数,根据当前选中的标签加载对应的数据
  425. if (!taskId || !type) {
  426. if (this.activeTab === 'create' && this.taskId) {
  427. await this.loadData(this.taskId, 'create');
  428. }
  429. if (this.activeTab === 'complete' && this.taskId2) {
  430. await this.loadData(this.taskId2, 'complete');
  431. }
  432. return;
  433. }
  434. try {
  435. uni.showLoading({
  436. title: '加载中...'
  437. })
  438. // 调用接口获取任务详情
  439. const res = await detail({ auditId:taskId})
  440. uni.hideLoading()
  441. if (res.code === 200) {
  442. // 处理返回的数据
  443. const data = res.data.auditFlows
  444. if(type==='create'){
  445. this.createApprovalInfo = data?.map(item => ({
  446. name: item.auditUserName || '审批人',
  447. status: item.statusName || '-',
  448. statusColor: this.getAuditStatusColor(item.status),
  449. time: item.auditTime || ''
  450. })) || []
  451. this.createStatus = res.data.audit.status
  452. // 如果当前选中的是创建审批标签,更新 auditStatus
  453. if (this.activeTab === 'create') {
  454. this.auditStatus = this.createStatus;
  455. }
  456. }
  457. if(type==='complete'){
  458. this.completeApprovalInfo = data?.map(item => ({
  459. name: item.auditUserName || '审批人',
  460. status: item.statusName || '-',
  461. statusColor: this.getAuditStatusColor(item.status),
  462. time: item.auditTime || ''
  463. })) || []
  464. this.completeStatus = res.data.audit.status
  465. // 如果当前选中的是完成审批标签,更新 auditStatus
  466. if (this.activeTab === 'complete') {
  467. this.auditStatus = this.completeStatus;
  468. }
  469. }
  470. } else {
  471. uni.showToast({
  472. title: '获取任务详情失败',
  473. icon: 'none'
  474. })
  475. }
  476. } catch (e) {
  477. uni.hideLoading()
  478. console.error('加载数据失败', e)
  479. uni.showToast({
  480. title: '网络错误',
  481. icon: 'none'
  482. })
  483. }
  484. },
  485. getAuditStatusText(status) {
  486. // 根据审核状态获取状态文本
  487. const statusMap = {
  488. 0: '待审核',
  489. 1: '已通过',
  490. 2: '已驳回'
  491. }
  492. return statusMap[status] || '-'
  493. },
  494. getAuditStatusColor(status) {
  495. // 根据审核状态获取状态颜色
  496. const colorMap = {
  497. 1: '#FF9800',
  498. 2: '#4CAF50',
  499. 3: '#F44336'
  500. }
  501. return colorMap[status] || '#999'
  502. },
  503. // 复制到剪贴板
  504. copyToClipboard(text) {
  505. uni.setClipboardData({
  506. data: text,
  507. success() {
  508. uni.showToast({
  509. title: '复制成功',
  510. icon: 'success'
  511. })
  512. }
  513. })
  514. },
  515. // 下载附件
  516. downloadAttachment(materialLink) {
  517. if (!materialLink) {
  518. uni.showToast({
  519. title: '附件链接不存在',
  520. icon: 'none'
  521. })
  522. return
  523. }
  524. uni.showLoading({
  525. title: '下载中...'
  526. })
  527. uni.downloadFile({
  528. url: materialLink,
  529. success: (res) => {
  530. if (res.statusCode === 200) {
  531. uni.saveFile({
  532. tempFilePath: res.tempFilePath,
  533. success: (saveRes) => {
  534. uni.hideLoading()
  535. uni.showToast({
  536. title: '下载成功',
  537. icon: 'success'
  538. })
  539. },
  540. fail: (err) => {
  541. uni.hideLoading()
  542. uni.showToast({
  543. title: '保存失败',
  544. icon: 'none'
  545. })
  546. }
  547. })
  548. } else {
  549. uni.hideLoading()
  550. uni.showToast({
  551. title: '下载失败',
  552. icon: 'none'
  553. })
  554. }
  555. },
  556. fail: (err) => {
  557. uni.hideLoading()
  558. uni.showToast({
  559. title: '下载失败',
  560. icon: 'none'
  561. })
  562. }
  563. })
  564. },
  565. // 格式化文件大小
  566. formatFileSize(bytes) {
  567. if (bytes === 0) return '0 B';
  568. const k = 1024;
  569. const sizes = ['B', 'KB', 'MB', 'GB', 'TB'];
  570. const i = Math.floor(Math.log(bytes) / Math.log(k));
  571. return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i];
  572. }
  573. }
  574. }
  575. </script>
  576. <style lang="scss" scoped>
  577. .material-item {
  578. margin-bottom: 20px;
  579. padding: 15px;
  580. background: #fff;
  581. border-radius: 8px;
  582. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  583. }
  584. .material-header {
  585. margin-bottom: 15px;
  586. padding-bottom: 10px;
  587. border-bottom: 1px solid #f0f0f0;
  588. }
  589. .material-title {
  590. font-size: 16px;
  591. font-weight: 600;
  592. color: #333;
  593. }
  594. .empty-material {
  595. padding: 40px 0;
  596. text-align: center;
  597. color: #999;
  598. font-size: 14px;
  599. }
  600. .container {
  601. min-height: 100vh;
  602. background: #f5f5f5;
  603. display: flex;
  604. flex-direction: column;
  605. height: auto;
  606. &::before {
  607. content: '';
  608. position: absolute;
  609. top: 0;
  610. left: 0;
  611. right: 0;
  612. width: 100%;
  613. height: 532rpx;
  614. background: linear-gradient(180deg, rgba(56, 139, 255, 0.79) 0%, rgba(56, 139, 255, 0) 100%);
  615. }
  616. }
  617. .top {
  618. display: flex;
  619. justify-content: center;
  620. align-items: center;
  621. height: 88rpx;
  622. position: relative;
  623. font-weight: 600;
  624. font-size: 36rpx;
  625. color: #FFFFFF;
  626. .return {
  627. position: absolute;
  628. left: 32rpx;
  629. width: 40rpx;
  630. height: 40rpx;
  631. }
  632. }
  633. .content {
  634. flex: 1;
  635. padding: 24rpx 24rpx 120rpx;
  636. box-sizing: border-box;
  637. }
  638. /* 任务卡片样式 */
  639. .task-card {
  640. background: #fff;
  641. border-radius: 16rpx;
  642. padding: 24rpx;
  643. margin-bottom: 24rpx;
  644. .card-header {
  645. .card-title {
  646. font-weight: 500;
  647. font-size: 36rpx;
  648. color: #333333;
  649. margin-bottom: 24rpx;
  650. }
  651. }
  652. .card-meta {
  653. display: flex;
  654. align-items: center;
  655. gap: 16rpx;
  656. font-size: 24rpx;
  657. color: #666;
  658. .meta-tag {
  659. border-radius: 8rpx 8rpx 8rpx 8rpx;
  660. border: 2rpx solid rgba(56, 139, 255, 0.4);
  661. padding: 4rpx 8rpx;
  662. color: #388BFF;
  663. }
  664. }
  665. }
  666. /* 通用信息区块样式 */
  667. .info-section {
  668. background: #fff;
  669. border-radius: 16rpx;
  670. padding: 24rpx;
  671. margin-bottom: 24rpx;
  672. .section-header {
  673. display: flex;
  674. align-items: center;
  675. margin-bottom: 24rpx;
  676. .section-indicator {
  677. width: 6rpx;
  678. height: 32rpx;
  679. background: #388BFF;
  680. border-radius: 3rpx;
  681. margin-right: 16rpx;
  682. }
  683. .section-title {
  684. font-weight: 600;
  685. font-size: 32rpx;
  686. color: #333333;
  687. }
  688. }
  689. .info-list {
  690. .info-item {
  691. display: flex;
  692. margin-bottom: 24rpx;
  693. &:last-child {
  694. margin-bottom: 0;
  695. }
  696. .info-label {
  697. width: 50%;
  698. font-size: 28rpx;
  699. color: #666;
  700. flex-shrink: 0;
  701. }
  702. .info-value {
  703. flex: 1;
  704. text-align: end;
  705. font-size: 28rpx;
  706. color: #333;
  707. }
  708. .copy-btn {
  709. margin-left: 16rpx;
  710. color: #2196F3;
  711. font-size: 24rpx;
  712. cursor: pointer;
  713. }
  714. .column {
  715. flex-direction: column;
  716. }
  717. .attachment-item {
  718. margin-top: 24rpx;
  719. display: flex;
  720. justify-content: space-between;
  721. align-items: center;
  722. gap: 16rpx;
  723. background: #F7F8FA;
  724. border-radius: 16rpx 16rpx 16rpx 16rpx;
  725. .left {
  726. display: flex;
  727. align-items: center;
  728. .img {
  729. width: 72rpx;
  730. height: 72rpx;
  731. margin-right: 24rpx;
  732. }
  733. .txt-item {
  734. .attachment-name {
  735. font-size: 28rpx;
  736. color: #333;
  737. }
  738. .attachment-size {
  739. font-size: 24rpx;
  740. color: #999;
  741. }
  742. }
  743. }
  744. .download-btn {
  745. width: 32rpx;
  746. height: 32rpx;
  747. }
  748. }
  749. }
  750. }
  751. }
  752. /* 客户信息样式 */
  753. .client-list {
  754. .client-item {
  755. display: flex;
  756. justify-content: space-between;
  757. align-items: center;
  758. padding: 16rpx 0;
  759. &:last-child {
  760. border-bottom: none;
  761. }
  762. .client-info {
  763. display: flex;
  764. align-items: center;
  765. .avatar {
  766. width: 88rpx;
  767. height: 88rpx;
  768. margin-right: 24rpx;
  769. }
  770. .client-txt {
  771. .client-name {
  772. font-size: 28rpx;
  773. font-weight: 500;
  774. color: #333;
  775. .client-level {
  776. margin-left: 8rpx;
  777. padding: 2rpx 8rpx;
  778. background: #FFF6E5;
  779. color: #C89743;
  780. font-size: 22rpx;
  781. border-radius: 8rpx;
  782. }
  783. }
  784. }
  785. .client-hospital {
  786. font-size: 24rpx;
  787. color: #666;
  788. margin-top: 4rpx;
  789. display: flex;
  790. align-items: center;
  791. .line {
  792. width: 2rpx;
  793. height: 28rpx;
  794. background: #EAEBEE;
  795. margin: 0 24rpx;
  796. }
  797. }
  798. }
  799. .client-stats {
  800. display: flex;
  801. gap: 24rpx;
  802. font-size: 24rpx;
  803. color: #999999;
  804. .stat-item {
  805. display: flex;
  806. flex-direction: column;
  807. align-items: center;
  808. .num {
  809. font-weight: 500;
  810. font-size: 28rpx;
  811. color: #333333;
  812. }
  813. }
  814. }
  815. }
  816. }
  817. /* 审批信息样式 */
  818. .approval-list {
  819. .approval-item {
  820. position: relative;
  821. padding-left: 24rpx;
  822. margin-bottom: 68rpx;
  823. display: flex;
  824. align-items: center;
  825. justify-content: space-between;
  826. &:last-child {
  827. margin-bottom: 0;
  828. }
  829. .left {
  830. display: flex;
  831. align-items: center;
  832. .avatar-box {
  833. width: 80rpx;
  834. height: 80rpx;
  835. margin-right: 32rpx;
  836. position: relative;
  837. .avatar {
  838. width: 100%;
  839. height: 100%;
  840. }
  841. .icon {
  842. position: absolute;
  843. bottom: 0;
  844. right: 0;
  845. width: 32rpx;
  846. height: 32rpx;
  847. }
  848. }
  849. .approval-user {
  850. gap: 12rpx;
  851. .user-name {
  852. font-weight: 500;
  853. font-size: 28rpx;
  854. color: #333;
  855. }
  856. .user-status {
  857. font-size: 24rpx;
  858. }
  859. }
  860. }
  861. .approval-time {
  862. font-size: 24rpx;
  863. color: #999;
  864. margin-top: 4rpx;
  865. }
  866. }
  867. .approval-line {
  868. position: absolute;
  869. left: 64rpx;
  870. bottom: -64rpx;
  871. width: 1rpx;
  872. height: 56rpx;
  873. background: #BFD8FF;
  874. }
  875. }
  876. .reason {
  877. font-size: 28rpx;
  878. color: #666666;
  879. line-height: 40rpx;
  880. margin-left: 136rpx;
  881. }
  882. /* 审批标签样式 */
  883. .audit-tabs {
  884. display: flex;
  885. margin: 24rpx 0;
  886. border-radius: 8rpx;
  887. background-color: #F7F8FA;
  888. overflow: hidden;
  889. }
  890. .audit-tab {
  891. flex: 1;
  892. text-align: center;
  893. padding: 16rpx 0;
  894. font-size: 28rpx;
  895. color: #666666;
  896. transition: all 0.3s ease;
  897. cursor: pointer;
  898. }
  899. .audit-tab.active {
  900. background-color: #4080FF;
  901. color: #FFFFFF;
  902. font-weight: 500;
  903. }
  904. .bottom-bar {
  905. position: fixed;
  906. bottom: 0;
  907. left: 0;
  908. right: 0;
  909. background: #fff;
  910. padding: 24rpx 32rpx;
  911. border-top: 1rpx solid #F2F3F5;
  912. z-index: 100;
  913. display: flex;
  914. align-items: center;
  915. .action-buttons {
  916. display: flex;
  917. flex: 1;
  918. justify-content: space-between;
  919. .btn {
  920. width: 292rpx;
  921. height: 88rpx;
  922. display: flex;
  923. align-items: center;
  924. justify-content: center;
  925. font-size: 32rpx;
  926. font-weight: 500;
  927. border-radius: 200rpx 200rpx 200rpx 200rpx;
  928. cursor: pointer;
  929. display: flex;
  930. align-items: center;
  931. &.btn-cancel {
  932. background: #fff;
  933. border: 2rpx solid #CF3546;
  934. color: #CF3546;
  935. }
  936. &.btn-submit {
  937. background: #388BFF;
  938. color: #fff;
  939. }
  940. .icon {
  941. width: 32rpx;
  942. height: 32rpx;
  943. margin-right: 16rpx;
  944. }
  945. }
  946. }
  947. }// 弹窗样式
  948. .reject-popup-content {
  949. padding: 32rpx;
  950. box-sizing: border-box;
  951. overflow: hidden;
  952. border-radius: 24rpx 24rpx 0 0;
  953. .popup-header {
  954. display: flex;
  955. justify-content: center;
  956. align-items: center;
  957. margin-bottom: 32rpx;
  958. position: relative;
  959. .popup-title {
  960. font-size: 32rpx;
  961. font-weight: bold;
  962. color: #333;
  963. }
  964. .close {
  965. position: absolute;
  966. right: 0;
  967. width: 44rpx;
  968. height: 44rpx;
  969. }
  970. }
  971. .input-area {
  972. margin-bottom: 40rpx;
  973. .reason-input {
  974. min-height: 120rpx;
  975. padding: 20rpx;
  976. background: #F7F8FA;
  977. border-radius: 12rpx;
  978. font-size: 28rpx;
  979. color: #333;
  980. width: 100%; // 新增:确保输入框宽度100%
  981. box-sizing: border-box;
  982. }
  983. }
  984. .btn-group {
  985. display: flex;
  986. gap: 24rpx;
  987. .button {
  988. width: 332rpx;
  989. height: 80rpx;
  990. flex: 1;
  991. border-radius: 200rpx;
  992. font-size: 28rpx;
  993. text-align: center;
  994. line-height: 80rpx;
  995. }
  996. .reject {
  997. color: #388BFF;
  998. background: #FFFFFF;
  999. border-radius: 200rpx 200rpx 200rpx 200rpx;
  1000. border: 2rpx solid #388BFF;
  1001. }
  1002. .confirm {
  1003. background: #388BFF;
  1004. color: #FFFFFF;
  1005. }
  1006. }
  1007. }
  1008. </style>