approvalTaskDetail.vue 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336
  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"
  6. src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/back_white.png"></image>
  7. <text>任务详情</text>
  8. </view>
  9. <scroll-view class="content" scroll-y>
  10. <!-- 任务卡片 -->
  11. <view class="task-card" v-if="auditData">
  12. <view class="card-header">
  13. <view class="card-title">{{ auditData.audit.auditName||'-' }}</view>
  14. <view class="card-lable" :class="'pending'">待审核</view>
  15. </view>
  16. <view class="card-meta">
  17. <view class="item">
  18. <image src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_user.png"></image>
  19. {{ auditData.audit.initiatorId||'-' }}
  20. </view>
  21. <view class="item">
  22. <image src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_time.png"></image>
  23. {{ auditData.audit.createTime||'-' }}
  24. </view>
  25. </view>
  26. </view>
  27. <!-- 讲者审核详情 -->
  28. <view class="info-section" v-if="auditData.audit.auditType=='ADUIT_JZSH'">
  29. <view class="section-header">
  30. <view class="section-indicator"></view>
  31. <text class="section-title">基础信息</text>
  32. </view>
  33. <view class="info-list">
  34. <view class="info-item">
  35. <text class="info-label">账户身份(医生/药剂师)</text>
  36. <text class="info-value">{{ auditData.businessData.doctorName||'-' }}</text>
  37. </view>
  38. <view class="info-item">
  39. <text class="info-label">账户身份</text>
  40. <text class="info-value">{{ auditData.businessData.accountType=='0'?'医生':'药剂师' }}</text>
  41. </view>
  42. <view class="info-item">
  43. <text class="info-label">手机号码</text>
  44. <text class="info-value">{{ auditData.businessData.mobile||'-' }}</text>
  45. </view>
  46. <view class="info-item">
  47. <text class="info-label">身份证号</text>
  48. <text class="info-value">{{ auditData.businessData.idCard||'-'}}</text>
  49. </view>
  50. <view class="info-item">
  51. <text class="info-label">机构名称</text>
  52. <text class="info-value">{{ auditData.businessData.institution||'-'}}</text>
  53. </view>
  54. <view class="info-item">
  55. <text class="info-label">注册时间</text>
  56. <text class="info-value">{{ auditData.businessData. registerTime||'-'}}</text>
  57. </view>
  58. </view>
  59. </view>
  60. <view class="info-section" v-if="auditData.audit.auditType=='ADUIT_JZSH'">
  61. <view class="section-header">
  62. <view class="section-indicator"></view>
  63. <text class="section-title">执业信息</text>
  64. </view>
  65. <view class="info-list">
  66. <view class="info-item">
  67. <text class="info-label">地址(省市区)</text>
  68. <text
  69. class="info-value">{{ auditData.businessData.province||'-' }} {{ auditData.businessData.city||'-' }} {{ auditData.businessData.district||'-' }}</text>
  70. </view>
  71. <view class="info-item">
  72. <view class="info-item">
  73. <text class="info-label">公司名称</text>
  74. <text class="info-value">{{ auditData.businessData.companyName||'-'}}</text>
  75. </view>
  76. <text class="info-label">科室</text>
  77. <text class="info-value">{{ auditData.businessData.department||'-'}}</text>
  78. </view>
  79. <view class="info-item">
  80. <text class="info-label">职称</text>
  81. <text class="info-value">{{ auditData.businessData.jobTitle||'-'}}</text>
  82. </view>
  83. <view class="info-item">
  84. <text class="info-label">第三方业务编码</text>
  85. <text class="info-value">{{ auditData.businessData.thirdPartyCode||'-'}}</text>
  86. </view>
  87. <view class="info-item">
  88. <text class="info-label">签约协议状态</text>
  89. <text class="info-value">{{ auditData.businessData.contractStatus=='0'?'未签约':'已签约'}}</text>
  90. </view>
  91. </view>
  92. </view>
  93. <view class="info-section" v-if="auditData.audit.auditType=='ADUIT_JZSH'">
  94. <view class="section-header">
  95. <view class="section-indicator"></view>
  96. <text class="section-title">资质信息</text>
  97. </view>
  98. <view class="qualification-list">
  99. <view class="qualification-item" v-if="auditData.businessData.licenseImage||''">
  100. <text class="qualification-label">执业证图片</text>
  101. <view class="image-grid">
  102. <image class="qualification-image" :src=" auditData.businessData.licenseImage"
  103. @click="showImagePreview(auditData.businessData.licenseImage)"></image>
  104. </view>
  105. </view>
  106. <view class="qualification-item" v-if="auditData.businessData.titleCertImage||''">
  107. <text class="qualification-label">职称证/工牌图片</text>
  108. <view class="image-grid">
  109. <image class="qualification-image" :src="auditData.businessData.titleCertImage||''"
  110. @click="showImagePreview(auditData.businessData.titleCertImage||'')"></image>
  111. </view>
  112. </view>
  113. </view>
  114. </view>
  115. <!-- 提现审核详情 -->
  116. <view class="info-section" v-if="auditData.audit.auditType=='ADUIT_TXSH'">
  117. <view class="section-header">
  118. <view class="section-indicator"></view>
  119. <text class="section-title">基础信息</text>
  120. </view>
  121. <view class="info-list">
  122. <view class="info-item">
  123. <text class="info-label">公司名称</text>
  124. <text class="info-value">{{ auditData.businessData.companyName ||'-'}}</text>
  125. </view>
  126. <view class="info-item">
  127. <text class="info-label">医生姓名</text>
  128. <text class="info-value">{{auditData.businessData.doctorName||'-'}}</text>
  129. </view>
  130. </view>
  131. </view>
  132. <view class="info-section" v-if="auditData.audit.auditType=='ADUIT_TXSH'">
  133. <view class="section-header">
  134. <view class="section-indicator"></view>
  135. <text class="section-title">提现信息</text>
  136. </view>
  137. <view class="info-list">
  138. <view class="info-item">
  139. <text class="info-label">提现积分数量</text>
  140. <text class="info-value">{{ auditData.businessData.pointsAmount||'-'}}</text>
  141. </view>
  142. <view class="info-item">
  143. <text class="info-label">提现金额(积分折算)</text>
  144. <text class="info-value">{{ auditData.businessData.readConverterExp||'-'}}</text>
  145. </view>
  146. <view class="info-item">
  147. <text class="info-label">提现申请时间</text>
  148. <text class="info-value">{{ auditData.businessData.applyTime||'-'}}</text>
  149. </view>
  150. <view class="info-item">
  151. <text class="info-label">审核状态</text>
  152. <text class="info-value">
  153. {{auditData.businessData.auditStatus == '0' ? '待审核' :
  154. auditData.businessData.auditStatus == '1' ? '审核通过' :
  155. auditData.businessData.auditStatus == '2' ? '审核驳回' : ''
  156. }}
  157. </text>
  158. </view>
  159. <view class="info-item">
  160. <text class="info-label"> 审核时间</text>
  161. <text class="info-value">{{ auditData.businessData.auditTime||'-'}}</text>
  162. </view>
  163. <view class="info-item">
  164. <text class="info-label"> 审核备注(驳回原因等)</text>
  165. <text class="info-value">{{ auditData.businessData.auditRemark||'-'}}</text>
  166. </view>
  167. <view class="info-item">
  168. <text class="info-label"> 打款状态</text>
  169. <text class="info-value">{{ auditData.businessData.paymentStatus=='0'?'待打款':'已打款'}}</text>
  170. </view>
  171. <view class="info-item">
  172. <text class="info-label"> 打款时间</text>
  173. <text class="info-value">{{ auditData.businessData.paymentTime||'-'}}</text>
  174. </view>
  175. <view class="info-item">
  176. <text class="info-label"> 银行回执编号</text>
  177. <text class="info-value">{{ auditData.businessData.bankReceiptNo||'-'}}</text>
  178. </view>
  179. <view class="qualification-list">
  180. <view class="qualification-item">
  181. <text class="qualification-label">银行回执图片URL</text>
  182. <view class="image-grid" v-if="auditData.businessData.bankReceiptUrl||''">
  183. <image class="qualification-image" :src=" auditData.businessData.bankReceiptUrl||''"
  184. @click="showImagePreview(auditData.businessData.bankReceiptUrl||'')"></image>
  185. </view>
  186. </view>
  187. </view>
  188. </view>
  189. </view>
  190. <!-- 创建任务审核详情和完成任务审核-->
  191. <view class="info-section" v-if="auditData.audit.auditType=='ADUIT_WCRWS'||auditData.audit.auditType=='ADUIT_CJRW'">
  192. <view class="section-header">
  193. <view class="section-indicator"></view>
  194. <text class="section-title">基础信息</text>
  195. </view>
  196. <view class="info-list">
  197. <view class="info-item">
  198. <text class="info-label">公司名称</text>
  199. <text class="info-value">{{ auditData.businessData.auditTaskInfoVO.taskNo ||'-'}}</text>
  200. </view>
  201. <view class="info-item">
  202. <text class="info-label">任务名称</text>
  203. <text class="info-value">{{auditData.businessData.auditTaskInfoVO.taskName||'-'}}</text>
  204. </view>
  205. </view>
  206. </view>
  207. <view class="info-section" v-if="auditData.audit.auditType=='ADUIT_WCRWS'||auditData.audit.auditType=='ADUIT_CJRW'">
  208. <view class="section-header">
  209. <view class="section-indicator"></view>
  210. <text class="section-title">任务信息</text>
  211. </view>
  212. <view class="info-list">
  213. <view class="info-item">
  214. <text class="info-label">费用分摊ID</text>
  215. <text class="info-value">{{ auditData.businessData.auditTaskInfoVO.costShareId||'-'}}</text>
  216. </view>
  217. <view class="info-item">
  218. <text class="info-label">费用分摊名字</text>
  219. <text class="info-value">{{ auditData.businessData.auditTaskInfoVO.costShareName||'-'}}</text>
  220. </view>
  221. <view class="info-item">
  222. <text class="info-label">任务积分</text>
  223. <text class="info-value">{{ auditData.businessData.auditTaskInfoVO.taskIntegral||'-'}}</text>
  224. </view>
  225. <view class="info-item">
  226. <text class="info-label">任务数量</text>
  227. <text class="info-value">{{ auditData.businessData.auditTaskInfoVO.taskCount||'-'}}</text>
  228. </view>
  229. <view class="info-item">
  230. <text class="info-label">任务单位(字典ID)</text>
  231. <text class="info-value">{{ auditData.businessData.auditTaskInfoVO.taskUnit||'-'}}</text>
  232. </view>
  233. <view class="info-item">
  234. <text class="info-label">任务单位名称</text>
  235. <text class="info-value">{{ auditData.businessData.auditTaskInfoVO.taskUnitName||'-'}}</text>
  236. </view>
  237. <view class="info-item">
  238. <text class="info-label">归属类型(字典ID)</text>
  239. <text class="info-value">{{ auditData.businessData.auditTaskInfoVO.belongType||'-'}}</text>
  240. </view>
  241. <view class="info-item">
  242. <text class="info-label">归属名字</text>
  243. <text class="info-value">{{ auditData.businessData.auditTaskInfoVO.belongTypeName||'-'}}</text>
  244. </view>
  245. <view class="info-item">
  246. <text class="info-label">计划开始时间</text>
  247. <text class="info-value">{{ auditData.businessData.auditTaskInfoVO.planStartTime||'-'}}</text>
  248. </view>
  249. <view class="info-item">
  250. <text class="info-label">计划结束时间</text>
  251. <text class="info-value">{{ auditData.businessData.auditTaskInfoVO.planEndTime||'-'}}</text>
  252. </view>
  253. <view class="info-item">
  254. <text class="info-label">归属项目ID</text>
  255. <text class="info-value">{{ auditData.businessData.auditTaskInfoVO.projectId||'-'}}</text>
  256. </view>
  257. <view class="info-item">
  258. <text class="info-label">项目名称</text>
  259. <text class="info-value">{{ auditData.businessData.auditTaskInfoVO.projectName||'-'}}</text>
  260. </view>
  261. <view class="info-item">
  262. <text class="info-label">医生id</text>
  263. <text class="info-value">{{ auditData.businessData.auditTaskInfoVO.doctorId||'-'}}</text>
  264. </view>
  265. <view class="info-item">
  266. <text class="info-label">归属部门ID</text>
  267. <text class="info-value">{{ auditData.businessData.auditTaskInfoVO.deptId||'-'}}</text>
  268. </view>
  269. <view class="info-item">
  270. <text class="info-label">部门名称</text>
  271. <text class="info-value">{{ auditData.businessData.auditTaskInfoVO.deptName||'-'}}</text>
  272. </view>
  273. <view class="info-item">
  274. <text class="info-label">交付物审核时间</text>
  275. <text class="info-value">{{ auditData.businessData.auditTaskInfoVO.deliveryAuditTime||'-'}}</text>
  276. </view>
  277. </view>
  278. </view>
  279. <!-- 长视频信息 -->
  280. <view class="info-section" v-if="auditData.audit.auditType=='ADUIT_WCRWS'||auditData.audit.auditType=='ADUIT_CJRW'">
  281. <view class="section-header">
  282. <view class="section-indicator"></view>
  283. <text class="section-title">长视频信息</text>
  284. </view>
  285. <view class="info-list">
  286. <view class="info-item">
  287. <text class="info-label">项目名称/视频标题</text>
  288. <text class="info-value">{{ auditData.businessData.projectVO.title ||'-'}}</text>
  289. </view>
  290. <view class="info-item">
  291. <text class="info-label">是否原创</text>
  292. <text class="info-value">{{auditData.businessData.projectVO.isOriginal==0?'否':'是'||'-'}}</text>
  293. </view>
  294. <view class="qualification-list">
  295. <view class="qualification-item">
  296. <text class="qualification-label">封面图URL</text>
  297. <view class="image-grid" v-if="auditData.businessData.projectVO.coverUrl||''">
  298. <image class="qualification-image" :src=" auditData.businessData.projectVO.coverUrl||''"
  299. @click="showImagePreview(auditData.businessData.projectVO.coverUrl||'')"></image>
  300. </view>
  301. </view>
  302. </view>
  303. <view class="info-item">
  304. <text class="info-label">摘要</text>
  305. <text class="info-value">{{auditData.businessData.projectVO.summary||'-'}}</text>
  306. </view>
  307. <view class="qualification-list">
  308. <view class="qualification-item">
  309. <text class="qualification-label">视频附件URL</text>
  310. <view class="image-grid" v-if="auditData.businessData.projectVO.videoUrl||''">
  311. <image class="qualification-image" :src=" auditData.businessData.projectVO.videoUrl||''"
  312. @click="showImagePreview(auditData.businessData.projectVO.videoUrl||'')"></image>
  313. </view>
  314. </view>
  315. </view>
  316. </view>
  317. </view>
  318. <!-- 短视频 -->
  319. <view class="info-section" v-if="auditData.audit.auditType=='ADUIT_WCRWS'||auditData.audit.auditType=='ADUIT_CJRW'">
  320. <view class="section-header">
  321. <view class="section-indicator"></view>
  322. <text class="section-title">短视频信息</text>
  323. </view>
  324. <view class="info-list">
  325. <view class="info-item">
  326. <text class="info-label">项目名称/视频标题</text>
  327. <text class="info-value">{{ auditData.businessData.projectVO.title ||'-'}}</text>
  328. </view>
  329. <view class="info-item">
  330. <text class="info-label">是否原创</text>
  331. <text class="info-value">{{auditData.businessData.projectVO.isOriginal==0?'否':'是'||'-'}}</text>
  332. </view>
  333. <view class="qualification-list">
  334. <view class="qualification-item">
  335. <text class="qualification-label">封面图URL</text>
  336. <view class="image-grid" v-if="auditData.businessData.projectVO.coverUrl||''">
  337. <image class="qualification-image" :src=" auditData.businessData.projectVO.coverUrl||''"
  338. @click="showImagePreview(auditData.businessData.projectVO.coverUrl||'')"></image>
  339. </view>
  340. </view>
  341. </view>
  342. <view class="info-item">
  343. <text class="info-label">摘要</text>
  344. <text class="info-value">{{auditData.businessData.projectVO.summary||'-'}}</text>
  345. </view>
  346. <view class="qualification-list">
  347. <view class="qualification-item">
  348. <text class="qualification-label">视频附件URL</text>
  349. <view class="image-grid" v-if="auditData.businessData.projectVO.videoUrl||''">
  350. <image class="qualification-image" :src=" auditData.businessData.projectVO.videoUrl||''"
  351. @click="showImagePreview(auditData.businessData.projectVO.videoUrl||'')"></image>
  352. </view>
  353. </view>
  354. </view>
  355. <view class="info-item">
  356. <text class="info-label">上下架状态</text>
  357. <text class="info-value">{{auditData.businessData.projectVO.status==0?'上架':'下架'||'-'}}</text>
  358. </view>
  359. </view>
  360. </view>
  361. <!-- 任务信息 -->
  362. <!-- <view class="info-section" v-if="auditData">
  363. <view class="section-header">
  364. <view class="section-indicator"></view>
  365. <text class="section-title">任务信息</text>
  366. </view>
  367. <view class="info-list">
  368. <view class="info-item">
  369. <text class="info-label">任务名称</text>
  370. <text class="info-value">{{ auditData.audit.auditName }}</text>
  371. </view>
  372. <view class="info-item">
  373. <text class="info-label">任务类型</text>
  374. <text class="info-value">{{ auditData.audit.auditType }}</text>
  375. </view>
  376. <view class="info-item">
  377. <text class="info-label">归属部门</text>
  378. <text class="info-value">{{ auditData.audit.deptName }}</text>
  379. </view>
  380. </view>
  381. </view> -->
  382. <!-- 项目信息 -->
  383. <view class="info-section" v-if="auditData.projectVO">
  384. <view class="section-header">
  385. <view class="section-indicator"></view>
  386. <text class="section-title">项目信息</text>
  387. </view>
  388. <view class="info-list">
  389. <view class="info-item">
  390. <text class="info-label">项目名称</text>
  391. <text class="info-value">{{ auditData.projectVO.projectName }}</text>
  392. </view>
  393. <view class="info-item">
  394. <text class="info-label">项目活动ID</text>
  395. <text class="info-value">{{ auditData.projectVO.projectTypeId }}</text>
  396. </view>
  397. </view>
  398. </view>
  399. <!-- 客户信息 -->
  400. <view class="info-section" v-if="auditData.docterVO">
  401. <view class="section-header">
  402. <view class="section-indicator"></view>
  403. <text class="section-title">客户信息</text>
  404. </view>
  405. <view class="client-list">
  406. <view class="client-item">
  407. <view class="client-info">
  408. <image class="avatar"
  409. src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/my_heads_icon.png">
  410. </image>
  411. <view class="client-txt">
  412. <view class="client-name">
  413. {{ auditData.docterVO.doctorName }}
  414. <text class="client-level">一级</text>
  415. </view>
  416. <view class="client-hospital">
  417. <text>{{ auditData.docterVO.institution }} </text>
  418. <view class="line"></view>
  419. <text>{{ auditData.docterVO.department || '-' }}</text>
  420. </view>
  421. </view>
  422. </view>
  423. <view class="client-stats">
  424. <view class="stat-item"><text class="num">{{ auditData.auditTaskInfoVO.taskCount }}
  425. </text>任务</view>
  426. <view class="stat-item"><text class="num">{{ auditData.auditTaskInfoVO.taskIntegral }}
  427. </text>积分</view>
  428. </view>
  429. </view>
  430. </view>
  431. </view>
  432. <!-- 审批信息 -->
  433. <view class="info-section" v-if="auditData">
  434. <view class="section-header">
  435. <view class="section-indicator"></view>
  436. <text class="section-title">审批流程</text>
  437. </view>
  438. <view class="approval-list">
  439. <view class="approval-item" v-for="(item, index) in auditData.auditFlows" :key="index">
  440. <view class="left">
  441. <view class="avatar-box">
  442. <image class="avatar"
  443. src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/my_heads_icon.png">
  444. </image>
  445. <image class="icon" v-if="item.status==1"
  446. src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_wait.png">
  447. </image>
  448. <image class="icon" v-if="item.status==2|| item.status ===0"
  449. src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_pass.png">
  450. </image>
  451. <image class="icon" v-if="item.status==3"
  452. src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_refuse.png">
  453. </image>
  454. </view>
  455. <view class="approval-user">
  456. <view class="user-name">{{ item.auditUserName }}</view>
  457. <view class="user-status"
  458. :style="{ color: item.status ===2|| item.status ===0 ? '#4CAF50' : item.status === 1 ? '#FF9800' : '#F44336' }">
  459. {{ item.statusName }}</view>
  460. </view>
  461. </view>
  462. <text class="approval-time">{{ item.auditTime || '' }}</text>
  463. <view class="approval-line" v-if="index < auditData.auditFlows.length - 1"></view>
  464. </view>
  465. </view>
  466. </view>
  467. </scroll-view>
  468. <!-- 自定义图片预览模态框 -->
  469. <view class="image-preview-modal" v-if="imagePreview.show" @click="closeImagePreview">
  470. <view class="image-preview-content" @click.stop>
  471. <image class="preview-image" :src="imagePreview.urls[imagePreview.current]" mode="widthFix"></image>
  472. </view>
  473. </view>
  474. <view class="bottom-bar" v-if="auditData.audit.status != 2">
  475. <view class="action-buttons">
  476. <view class="btn btn-cancel" @click="openRejectPopup">
  477. <image class="icon"
  478. src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_approval_no.png"></image>
  479. <text>驳回</text>
  480. </view>
  481. <view class="btn btn-submit" @click="handleNext">
  482. <image class="icon"
  483. src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_approval_yes.png"></image>
  484. <text>通过</text>
  485. </view>
  486. </view>
  487. </view>
  488. <!-- 驳回弹窗 -->
  489. <u-popup :show="showRejectPopup" mode="bottom" round="24" z-index="9999999">
  490. <view class="reject-popup-content">
  491. <view class="popup-header">
  492. <text class="popup-title">驳回</text>
  493. <image @click="showRejectPopup = false;" class="close"
  494. src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_close.png"></image>
  495. </view>
  496. <view class="input-area">
  497. <textarea v-model="rejectReason" placeholder="请输入驳回意见" class="reason-input" :auto-height="true"
  498. maxlength="200" />
  499. </view>
  500. <view class="btn-group">
  501. <view class="button reject" @click="showRejectPopup = false">取消</view>
  502. <view class="button confirm" @click="handleConfirmReject ">确认驳回</view>
  503. </view>
  504. </view>
  505. </u-popup>
  506. </view>
  507. </template>
  508. <script>
  509. import {
  510. doAudit,
  511. getAuditFlows,
  512. getTaskFinishAuditInfo,
  513. detail
  514. } from '@/api/audit.js'
  515. import image from 'uview-ui/libs/config/props/image';
  516. export default {
  517. data() {
  518. return {
  519. userInfo: uni.getStorageSync('userInfo'),
  520. // 弹窗默认隐藏
  521. showRejectPopup: false,
  522. // 驳回意见
  523. rejectReason: '',
  524. // 状态栏高度
  525. statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
  526. // 任务ID
  527. taskId: '',
  528. // 接口返回的原始数据
  529. auditData: null,
  530. // 审批信息
  531. approvalInfo: [],
  532. // 图片预览
  533. imagePreview: {
  534. show: false,
  535. urls: [],
  536. current: 0
  537. }
  538. }
  539. },
  540. onLoad(options) {
  541. if (options.taskId) {
  542. this.taskId = options.taskId
  543. this.taskId = 358
  544. this.loadData()
  545. }
  546. },
  547. methods: {
  548. // 打开驳回弹窗
  549. openRejectPopup() {
  550. // 直接打开驳回弹窗
  551. this.showRejectPopup = true
  552. },
  553. // 确认驳回
  554. async handleConfirmReject() {
  555. if (!this.rejectReason.trim()) {
  556. uni.showToast({
  557. title: '请输入驳回意见',
  558. icon: 'none'
  559. })
  560. return
  561. }
  562. try {
  563. uni.showLoading({
  564. title: '提交中...'
  565. })
  566. // 调用审核接口,传递action=2表示驳回
  567. const res = await doAudit({
  568. auditId: this.taskId,
  569. userId: this.userInfo.userId,
  570. userType: 0,
  571. action: 2,
  572. comment: this.rejectReason,
  573. companyId: this.userInfo.companyId
  574. })
  575. uni.hideLoading()
  576. if (res.code === 200) {
  577. uni.showToast({
  578. title: res.data.message,
  579. icon: none
  580. })
  581. // 关闭弹窗
  582. this.showRejectPopup = false
  583. // 重置输入
  584. this.rejectReason = ''
  585. // 重新加载数据
  586. this.loadData()
  587. } else {
  588. uni.showToast({
  589. title: res.msg || '驳回失败',
  590. icon: 'none'
  591. })
  592. }
  593. } catch (e) {
  594. uni.hideLoading()
  595. console.error('驳回失败', e)
  596. uni.showToast({
  597. title: '驳回失败,请稍后重试',
  598. icon: 'none'
  599. })
  600. }
  601. },
  602. // 返回上一页
  603. goBack() {
  604. uni.navigateBack()
  605. },
  606. // 加载数据
  607. async loadData() {
  608. try {
  609. uni.showLoading({
  610. title: '加载中...'
  611. })
  612. // 获取审批流程信息
  613. // const auditFlowsRes = await getAuditFlows({
  614. // auditId: this.taskId,
  615. // userId: this.userInfo.userId,
  616. // userType: this.userInfo.userType,
  617. // action: 0,
  618. // comment: "comment_3498cb3111a7",
  619. // companyId: this.userInfo.companyId
  620. // })
  621. // if (auditFlowsRes.code === 200) {
  622. // console.log('审批流程信息:', auditFlowsRes.data)
  623. // this.approvalInfo = auditFlowsRes.data || []
  624. // }
  625. // 获取任务完成审核信息
  626. const taskFinishAuditRes = await detail({
  627. auditId: this.taskId
  628. })
  629. if (taskFinishAuditRes.code === 200) {
  630. // 直接保存接口返回的原始数据
  631. console.log('任务完成审核信息:', taskFinishAuditRes.data)
  632. this.auditData = taskFinishAuditRes.data
  633. }
  634. // 实际项目中替换为接口请求:const res = await getTaskDetail({ id: this.taskId })
  635. // 这里模拟接口赋值
  636. uni.hideLoading()
  637. } catch (e) {
  638. uni.hideLoading()
  639. console.error('加载数据失败', e)
  640. }
  641. },
  642. // 复制到剪贴板
  643. copyToClipboard(text) {
  644. uni.setClipboardData({
  645. data: text,
  646. success() {
  647. uni.showToast({
  648. title: '复制成功',
  649. icon: 'success'
  650. })
  651. }
  652. })
  653. },
  654. // 下载附件
  655. downloadAttachment() {
  656. uni.showToast({
  657. title: '开始下载附件',
  658. icon: 'none'
  659. })
  660. // 实际项目中添加下载逻辑:uni.downloadFile + uni.saveFile
  661. },
  662. // 备用方法(实际用openRejectPopup)
  663. handlePrev() {
  664. this.openRejectPopup()
  665. },
  666. // 审批通过
  667. async handleNext() {
  668. try {
  669. uni.showLoading({
  670. title: '提交中...'
  671. })
  672. // 调用审核接口,传递action=1表示通过
  673. const res = await doAudit({
  674. auditId: this.taskId,
  675. userId: this.userInfo.userId,
  676. userType: 0,
  677. action: 1,
  678. comment: "",
  679. companyId: this.userInfo.companyId
  680. })
  681. uni.hideLoading()
  682. if (res.code === 200) {
  683. uni.showToast({
  684. title: res.data.message,
  685. icon: none
  686. })
  687. // 重新加载数据
  688. this.loadData()
  689. } else {
  690. uni.showToast({
  691. title: res.msg || '审批通过失败',
  692. icon: 'none'
  693. })
  694. }
  695. } catch (e) {
  696. uni.hideLoading()
  697. console.error('审批通过失败', e)
  698. uni.showToast({
  699. title: '审批通过失败,请稍后重试',
  700. icon: 'none'
  701. })
  702. }
  703. },
  704. // 自定义图片预览
  705. showImagePreview(url) {
  706. if (url) {
  707. this.imagePreview.show = true;
  708. this.imagePreview.urls = [url];
  709. this.imagePreview.current = 0;
  710. }
  711. },
  712. // 关闭图片预览
  713. closeImagePreview() {
  714. this.imagePreview.show = false;
  715. }
  716. }
  717. }
  718. </script>
  719. <style lang="scss" scoped>
  720. // 弹窗样式
  721. .reject-popup-content {
  722. padding: 32rpx;
  723. box-sizing: border-box;
  724. overflow: hidden;
  725. border-radius: 24rpx 24rpx 0 0;
  726. .popup-header {
  727. display: flex;
  728. justify-content: center;
  729. align-items: center;
  730. margin-bottom: 32rpx;
  731. position: relative;
  732. .popup-title {
  733. font-size: 32rpx;
  734. font-weight: bold;
  735. color: #333;
  736. }
  737. .close {
  738. position: absolute;
  739. right: 0;
  740. width: 44rpx;
  741. height: 44rpx;
  742. }
  743. }
  744. .input-area {
  745. margin-bottom: 40rpx;
  746. .reason-input {
  747. min-height: 120rpx;
  748. padding: 20rpx;
  749. background: #F7F8FA;
  750. border-radius: 12rpx;
  751. font-size: 28rpx;
  752. color: #333;
  753. width: 100%; // 新增:确保输入框宽度100%
  754. box-sizing: border-box;
  755. }
  756. }
  757. .btn-group {
  758. display: flex;
  759. gap: 24rpx;
  760. .button {
  761. width: 332rpx;
  762. height: 80rpx;
  763. flex: 1;
  764. border-radius: 200rpx;
  765. font-size: 28rpx;
  766. text-align: center;
  767. line-height: 80rpx;
  768. }
  769. .reject {
  770. color: #388BFF;
  771. background: #FFFFFF;
  772. border-radius: 200rpx 200rpx 200rpx 200rpx;
  773. border: 2rpx solid #388BFF;
  774. }
  775. .confirm {
  776. background: #388BFF;
  777. color: #FFFFFF;
  778. }
  779. }
  780. }
  781. // 原有样式
  782. .container {
  783. min-height: 100vh;
  784. background: #f5f5f5;
  785. display: flex;
  786. flex-direction: column;
  787. height: auto;
  788. &::before {
  789. content: '';
  790. position: absolute;
  791. top: 0;
  792. left: 0;
  793. right: 0;
  794. width: 100%;
  795. height: 532rpx;
  796. background: linear-gradient(180deg, rgba(56, 139, 255, 0.79) 0%, rgba(56, 139, 255, 0) 100%);
  797. }
  798. }
  799. .top {
  800. display: flex;
  801. justify-content: center;
  802. align-items: center;
  803. height: 88rpx;
  804. position: relative;
  805. font-weight: 600;
  806. font-size: 36rpx;
  807. color: #FFFFFF;
  808. .return {
  809. position: absolute;
  810. left: 32rpx;
  811. width: 40rpx;
  812. height: 40rpx;
  813. }
  814. }
  815. .content {
  816. flex: 1;
  817. padding: 24rpx;
  818. box-sizing: border-box;
  819. padding-bottom: 200rpx;
  820. }
  821. /* 任务卡片样式 */
  822. .task-card {
  823. background: #fff;
  824. border-radius: 16rpx;
  825. padding: 24rpx;
  826. margin-bottom: 24rpx;
  827. .card-header {
  828. display: flex;
  829. justify-content: space-between;
  830. .card-title {
  831. font-weight: 500;
  832. font-size: 36rpx;
  833. color: #333333;
  834. margin-bottom: 24rpx;
  835. }
  836. .card-lable {
  837. height: 40rpx;
  838. box-sizing: border-box;
  839. padding: 4rpx 12rpx;
  840. font-size: 24rpx;
  841. border-radius: 8rpx;
  842. &.pending {
  843. background: #FEF8E3;
  844. color: #DE9B14;
  845. }
  846. &.reject {
  847. background: #FFF4F5;
  848. color: #CF3546;
  849. }
  850. &.pass {
  851. color: #07C160;
  852. background: #E6FAEF;
  853. }
  854. }
  855. }
  856. .card-meta {
  857. display: flex;
  858. align-items: center;
  859. gap: 16rpx;
  860. font-size: 24rpx;
  861. color: #666;
  862. .item {
  863. display: flex;
  864. align-items: center;
  865. image {
  866. width: 32rpx;
  867. height: 32rpx;
  868. margin-right: 16rpx;
  869. }
  870. }
  871. }
  872. }
  873. /* 通用信息区块样式 */
  874. .info-section {
  875. background: #fff;
  876. border-radius: 16rpx;
  877. padding: 24rpx;
  878. margin-bottom: 24rpx;
  879. .section-header {
  880. display: flex;
  881. align-items: center;
  882. margin-bottom: 24rpx;
  883. .section-indicator {
  884. width: 6rpx;
  885. height: 32rpx;
  886. background: #388BFF;
  887. border-radius: 3rpx;
  888. margin-right: 16rpx;
  889. }
  890. .section-title {
  891. font-weight: 600;
  892. font-size: 32rpx;
  893. color: #333333;
  894. }
  895. }
  896. .info-list {
  897. .info-item {
  898. display: flex;
  899. margin-bottom: 24rpx;
  900. &:last-child {
  901. margin-bottom: 0;
  902. }
  903. .info-label {
  904. width: 50%;
  905. font-size: 28rpx;
  906. color: #666;
  907. flex-shrink: 0;
  908. }
  909. .info-value {
  910. flex: 1;
  911. text-align: end;
  912. font-size: 28rpx;
  913. color: #333;
  914. }
  915. .copy-btn {
  916. margin-left: 16rpx;
  917. color: #2196F3;
  918. font-size: 24rpx;
  919. cursor: pointer;
  920. }
  921. .column {
  922. flex-direction: column;
  923. }
  924. .attachment-item {
  925. margin-top: 24rpx;
  926. display: flex;
  927. justify-content: space-between;
  928. align-items: center;
  929. gap: 16rpx;
  930. background: #F7F8FA;
  931. border-radius: 16rpx 16rpx 16rpx 16rpx;
  932. .left {
  933. display: flex;
  934. align-items: center;
  935. .img {
  936. width: 72rpx;
  937. height: 72rpx;
  938. margin-right: 24rpx;
  939. }
  940. .txt-item {
  941. .attachment-name {
  942. font-size: 28rpx;
  943. color: #333;
  944. }
  945. .attachment-size {
  946. font-size: 24rpx;
  947. color: #999;
  948. }
  949. }
  950. }
  951. .download-btn {
  952. width: 32rpx;
  953. height: 32rpx;
  954. }
  955. }
  956. }
  957. }
  958. }
  959. /* 客户信息样式 */
  960. .client-list {
  961. .client-item {
  962. display: flex;
  963. justify-content: space-between;
  964. align-items: center;
  965. padding: 16rpx 0;
  966. &:last-child {
  967. border-bottom: none;
  968. }
  969. .client-info {
  970. display: flex;
  971. align-items: center;
  972. .avatar {
  973. width: 88rpx;
  974. height: 88rpx;
  975. margin-right: 24rpx;
  976. }
  977. .client-txt {
  978. .client-name {
  979. font-size: 28rpx;
  980. font-weight: 500;
  981. color: #333;
  982. .client-level {
  983. margin-left: 8rpx;
  984. padding: 2rpx 8rpx;
  985. background: #FFF6E5;
  986. color: #C89743;
  987. font-size: 22rpx;
  988. border-radius: 8rpx;
  989. }
  990. }
  991. }
  992. .client-hospital {
  993. font-size: 24rpx;
  994. color: #666;
  995. margin-top: 4rpx;
  996. display: flex;
  997. align-items: center;
  998. .line {
  999. width: 2rpx;
  1000. height: 28rpx;
  1001. background: #EAEBEE;
  1002. margin: 0 24rpx;
  1003. }
  1004. }
  1005. }
  1006. .client-stats {
  1007. display: flex;
  1008. gap: 24rpx;
  1009. font-size: 24rpx;
  1010. color: #999999;
  1011. .stat-item {
  1012. display: flex;
  1013. flex-direction: column;
  1014. align-items: center;
  1015. .num {
  1016. font-weight: 500;
  1017. font-size: 28rpx;
  1018. color: #333333;
  1019. }
  1020. }
  1021. }
  1022. }
  1023. }
  1024. /* 资质信息样式 */
  1025. .qualification-list {
  1026. .qualification-item {
  1027. margin-bottom: 32rpx;
  1028. &:last-child {
  1029. margin-bottom: 0;
  1030. }
  1031. .qualification-label {
  1032. display: block;
  1033. font-size: 28rpx;
  1034. color: #666666;
  1035. margin-bottom: 16rpx;
  1036. }
  1037. .image-grid {
  1038. display: flex;
  1039. flex-wrap: wrap;
  1040. gap: 16rpx;
  1041. .qualification-image {
  1042. width: calc((100% - 32rpx) / 2);
  1043. height: 240rpx;
  1044. border-radius: 8rpx;
  1045. object-fit: cover;
  1046. }
  1047. }
  1048. }
  1049. }
  1050. /* 审批信息样式 */
  1051. .approval-list {
  1052. .approval-item {
  1053. position: relative;
  1054. padding-left: 24rpx;
  1055. margin-bottom: 68rpx;
  1056. display: flex;
  1057. align-items: center;
  1058. justify-content: space-between;
  1059. &:last-child {
  1060. margin-bottom: 0;
  1061. }
  1062. .left {
  1063. display: flex;
  1064. align-items: center;
  1065. .avatar-box {
  1066. width: 80rpx;
  1067. height: 80rpx;
  1068. margin-right: 32rpx;
  1069. position: relative;
  1070. .avatar {
  1071. width: 100%;
  1072. height: 100%;
  1073. }
  1074. .icon {
  1075. position: absolute;
  1076. bottom: 0;
  1077. right: 0;
  1078. width: 32rpx;
  1079. height: 32rpx;
  1080. }
  1081. }
  1082. .approval-user {
  1083. gap: 12rpx;
  1084. .user-name {
  1085. font-weight: 500;
  1086. font-size: 28rpx;
  1087. color: #333;
  1088. }
  1089. .user-status {
  1090. font-size: 24rpx;
  1091. }
  1092. }
  1093. }
  1094. .approval-time {
  1095. font-size: 24rpx;
  1096. color: #999;
  1097. margin-top: 4rpx;
  1098. }
  1099. }
  1100. .approval-line {
  1101. position: absolute;
  1102. left: 64rpx;
  1103. bottom: -64rpx;
  1104. width: 1rpx;
  1105. height: 56rpx;
  1106. background: #BFD8FF;
  1107. }
  1108. }
  1109. .reason {
  1110. font-size: 28rpx;
  1111. color: #666666;
  1112. line-height: 40rpx;
  1113. margin-left: 136rpx;
  1114. background: #F7F8FA;
  1115. border-radius: 16rpx;
  1116. line-height: 40rpx;
  1117. padding: 20rpx;
  1118. }
  1119. .bottom-bar {
  1120. position: fixed;
  1121. bottom: 0;
  1122. left: 0;
  1123. right: 0;
  1124. background: #fff;
  1125. padding: 24rpx 32rpx;
  1126. border-top: 1rpx solid #F2F3F5;
  1127. z-index: 100;
  1128. display: flex;
  1129. align-items: center;
  1130. .action-buttons {
  1131. display: flex;
  1132. flex: 1;
  1133. justify-content: space-between;
  1134. .btn {
  1135. width: 292rpx;
  1136. height: 88rpx;
  1137. display: flex;
  1138. align-items: center;
  1139. justify-content: center;
  1140. font-size: 32rpx;
  1141. font-weight: 500;
  1142. border-radius: 200rpx 200rpx 200rpx 200rpx;
  1143. cursor: pointer;
  1144. display: flex;
  1145. align-items: center;
  1146. &.btn-cancel {
  1147. background: #fff;
  1148. border: 2rpx solid #CF3546;
  1149. color: #CF3546;
  1150. }
  1151. &.btn-submit {
  1152. background: #388BFF;
  1153. color: #fff;
  1154. }
  1155. .icon {
  1156. width: 32rpx;
  1157. height: 32rpx;
  1158. margin-right: 16rpx;
  1159. }
  1160. }
  1161. }
  1162. }
  1163. /* 自定义图片预览样式 */
  1164. .image-preview-modal {
  1165. position: fixed;
  1166. top: 0;
  1167. left: 0;
  1168. right: 0;
  1169. bottom: 0;
  1170. background-color: rgba(0, 0, 0, 0.8);
  1171. display: flex;
  1172. justify-content: center;
  1173. align-items: center;
  1174. z-index: 9999;
  1175. }
  1176. .image-preview-content {
  1177. position: relative;
  1178. width: 100%;
  1179. max-height: 90vh;
  1180. display: flex;
  1181. flex-direction: column;
  1182. align-items: center;
  1183. }
  1184. .preview-image {
  1185. width: 100%;
  1186. max-height: 80vh;
  1187. object-fit: contain;
  1188. }
  1189. .close-button {
  1190. position: absolute;
  1191. top: -60rpx;
  1192. right: 0;
  1193. width: 60rpx;
  1194. height: 60rpx;
  1195. background-color: rgba(0, 0, 0, 0.5);
  1196. color: #ffffff;
  1197. border-radius: 50%;
  1198. display: flex;
  1199. justify-content: center;
  1200. align-items: center;
  1201. font-size: 40rpx;
  1202. font-weight: bold;
  1203. cursor: pointer;
  1204. }
  1205. </style>