universalityAudit.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976
  1. <template>
  2. <view style='padding-bottom:280rpx;'>
  3. <view class="topInfo">
  4. <view class="topInfo-item">
  5. <view class="flex info">
  6. <view class="logo">
  7. <image src="../../../static/img/reject.png" mode="" v-if="dataobj.status == '已驳回'"
  8. style="height: 40rpx;"></image><!-- 驳回 -->
  9. <image src="../../../static/img/tongguo.png" mode="" v-if="dataobj.status == '已通过'"
  10. style="height: 40rpx;"></image><!-- 通过 -->
  11. <!-- v-if="status == '审核中' || status == '待决策人审核'" -->
  12. <image v-if='dataobj.approveStatus' src="../../../static/img/daishenhe.png" mode=""
  13. style="height: 40rpx;"></image>
  14. <!-- 待审核 -->
  15. </view>
  16. <!-- {{auditList.length > 0 ?auditList[auditList.length - 1].operatorMajorRoleName:""}} -->
  17. <view class="infoText">{{dataobj.approveStatus?dataobj.approveStatus:dataobj.status}}</view>
  18. </view>
  19. <view class="infoData">{{dataobj.updateDate}}</view>
  20. </view>
  21. </view>
  22. <view>
  23. <u-form :model="dataobj" ref="uForm">
  24. <u-form-item label="类型">
  25. <view style='text-align:right;width:100%;color:#AFB3BF;'>{{dataobj.businessType}}</view>
  26. </u-form-item>
  27. <u-form-item :border-bottom='false' :label-position='"top"' label="备注">
  28. <view class="u-textarea-style">
  29. <view class="right-bottom">
  30. {{dataobj.remark?dataobj.remark.length:0}}/2000个字
  31. </view>
  32. <textarea style='font-size:12px;' disabled maxlength="2000" v-model='dataobj.remark'
  33. placeholder="请输入备注信息" name="" id="" cols="30" rows="11"></textarea>
  34. </view>
  35. </u-form-item>
  36. </u-form>
  37. <u-form :label-position='"top"' ref="uForm">
  38. <u-form-item :border-bottom='false' :label="'共'+imglist.length+'个附件'">
  39. <view style='width:100%;border-top:1px solid #EEEEEE;' v-if='imglist.length>0'>
  40. <view style="justify-content: space-between;" class='flex' v-for='item in imglist'>
  41. <view class="img_item">
  42. <view class="" style="width: 16%;">
  43. <image v-if="item.type == 'pdf'" mode="aspectFill" class="imgsign"
  44. src="../../../static/img/oa_office/pdf3.png"></image>
  45. <image v-else-if="item.type == 'xls'||item.type == 'xlsx'" mode="aspectFill"
  46. class="imgsign" src="../../../static/img/oa_office/excle3.png"></image>
  47. <image v-else-if="item.type == 'doc'||item.type == 'docx'" mode="aspectFill"
  48. class="imgsign" src="../../../static/img/oa_office/word3.png"></image>
  49. <image v-else class="imgsign" :src="item.appendixPath" mode="" mode="aspectFill">
  50. </image>
  51. </view>
  52. <view class="" style="width: 70%;">
  53. <view class="char_css">{{item.appendixName}}</view>
  54. <u-line-progress v-if='item.progressstatus' :striped="true" :percent="item.progress" :striped-active="true"></u-line-progress>
  55. <view class="img_size">{{item.appendixSize}}</view>
  56. </view>
  57. <view style="color: #22C572;" class="img_dowload" @click="openDownload(item)">
  58. 下载
  59. </view>
  60. </view>
  61. <!-- <u-icon name="attach" ></u-icon> -->
  62. <!-- <image style='width: 200rpx;height: 200rpx;' :src="item" mode=""></image> -->
  63. </view>
  64. </view>
  65. </u-form-item>
  66. </u-form>
  67. <u-form style='padding-bottom: 80rpx;' ref="uForm">
  68. <view class="form_top">审批流</view>
  69. <view class="content2">
  70. <view v-for="(item,index) in auditList" :key='index' class="audit">
  71. <view class="row" v-if='item.desc!="_PLACEHOLDER_"'>
  72. <view class="left">
  73. <view class="item1">
  74. <view class="item-content">{{item.operatorTitle}}</view>
  75. <view v-if="item.status=='success'" class='status success'>
  76. <u-icon name="checkmark" color="#2979ff" size="24"></u-icon>
  77. </view>
  78. <view v-if="item.status=='error'" class='status error'>
  79. <u-icon name="close" color="rgb(245, 108, 108)" size="24"></u-icon>
  80. </view>
  81. <view v-if="item.status=='question'" class='status question'>
  82. <u-icon name="question" color="#f9ae3d" size="24"></u-icon>
  83. </view>
  84. </view>
  85. </view>
  86. <view class="right">
  87. <view class="right-item">
  88. <view class="item2">
  89. <view class="name">{{item.desc}}
  90. </view>
  91. <!-- <view class='time'>{{item.updateDate}}</view> -->
  92. <view v-if="item.status=='success'" class="status success">
  93. {{item.commonStaffs1?item.staffscontent:item.operatorName}}<text
  94. v-if='!item.commonStaffs1&&index!=0'>已审核</text>
  95. </view>
  96. <view v-if="item.status=='error'" class="status error">
  97. {{item.commonStaffs1?item.staffscontent:item.operatorName}}<text
  98. v-if='!item.commonStaffs1'>{{item.workflowHistoricTasks ? "已驳回":''}}</text>
  99. </view>
  100. <view v-if="item.status=='question'" class="status question">
  101. {{item.commonStaffs1?item.staffscontent:''}}<text
  102. v-if='!item.commonStaffs1'>未审核</text>
  103. </view>
  104. <!-- <view class="status success">吕波(已审核)</view> -->
  105. </view>
  106. <view
  107. v-if='index==0||item.workflowHistoricTasks&&item.workflowHistoricTasks.length>0'
  108. class='time'>
  109. {{item.updateDate}}
  110. </view>
  111. </view>
  112. <view v-if='item.auditMind' class="right-content">
  113. {{item.auditMind}}
  114. </view>
  115. <view class="flex audit_img">
  116. <view v-for="(items,indexs) in item.fileUrl" class="url_css">
  117. <image :src="items" mode="aspectFill" class="url_img" @click="auditFile(items)">
  118. </image>
  119. </view>
  120. </view>
  121. </view>
  122. <view v-if='item.commonStaffs1' class="right">
  123. <u-icon @click='showcontent(item)' :name="item.showflow?'arrow-up':'arrow-down'"
  124. size="28">
  125. </u-icon>
  126. </view>
  127. </view>
  128. <view v-if='item.showflow' style='padding:10px 0 0 50px;'>
  129. <view class='row2'>
  130. <view v-for='item1 in item.commonStaffs1' style='margin:5px;text-align:center;'>
  131. <view class="item-content">
  132. <u-icon v-if='item1.status' name="checkmark" color="#fff" size="14"></u-icon>
  133. <u-icon v-if='!item1.status' name="question" color="#f9ae3d" size="14"></u-icon>
  134. </view>
  135. <view class="name">{{item1.staffName}}</view>
  136. </view>
  137. </view>
  138. </view>
  139. <view class="row-line" v-if="index!= auditList.length - 1&&item.desc!='_PLACEHOLDER_'"></view>
  140. </view>
  141. </view>
  142. </u-form>
  143. </view>
  144. <view v-if='show' class="shade">
  145. <view class="wrap">
  146. <view class="alert-top">
  147. <view class="title">
  148. {{title}}
  149. </view>
  150. <u-icon name="close" class="close" color="#8890B1" @click="close()"></u-icon>
  151. </view>
  152. <view class="content">
  153. <view class="u-textarea-style">
  154. <view class="right-bottom">
  155. {{auditMind.length}}/1000个字
  156. </view>
  157. <!-- <u-input class="" v-model='auditMind' placeholder="请在此输入审核意见" type="textarea" height="414"
  158. maxlength="1000" /> -->
  159. <textarea maxlength="1000" v-model='auditMind' placeholder="请在此输入审核意见" name="" id="" cols="30"
  160. rows="11"></textarea>
  161. </view>
  162. <view class="upload_css">
  163. 上传附件
  164. <u-upload :custom-btn='true' class="upload" ref="upload" name='fileName' :form-data="{companyId: pcUserInfo.compId,
  165. modelId: '',
  166. vesselId: ''}" :action="action" :show-tips="false" :max-size="maxSize" :max-count="9"
  167. :size-type="['compressed']" @on-success="getImgUrl($event)" @on-error="onError"
  168. @on-remove="onRemove" @on-uploaded="isAdd = true" :limitType ="['png', 'jpg', 'jpeg', 'webp', 'gif']"
  169. @on-progress="onProgress">
  170. <view slot="addBtn" class="slot-btn u-list-item" hover-class="slot-btn__hover" hover-stay-time="150">
  171. <image style="width:23px;height:23px;" src="../../../static/img/liangmai/xiangji-2.png" mode=""></image>
  172. <view>选择图片</view>
  173. </view>
  174. </u-upload>
  175. <!-- <upload class="upload" :form-data="{companyId: pcUserInfo.compId,
  176. modelId: '',
  177. vesselId: ''}" :width="140" ref="upload" :action="action" :max-size="maxSize"
  178. :max-count="99" :size-type="['compressed']" @on-success="getImgUrl" @on-error="onError"
  179. @on-remove="onRemove" @on-uploaded="isAdd = true" :before-upload="filterFileType"
  180. @on-progress="onProgress"></upload> -->
  181. </view>
  182. </view>
  183. <view class="audit_btn">
  184. <view @click='close()' class="cancel">取消</view>
  185. <view @click='passSubmit()' class="confirm">确定</view>
  186. </view>
  187. </view>
  188. </view>
  189. <view style='padding:10px;' class='flex bottom-btn'>
  190. <u-button v-if='dataobj.taskId' @click='reject' type="error" class="btn1" hover-class='none'>驳回</u-button>
  191. <u-button v-if='dataobj.taskId' @click='pass' type="success" class="btn2">通过</u-button>
  192. <u-button v-if='!dataobj.taskId' @click="fanHui" type="success" class="btn1" hover-class='none'>返回
  193. </u-button>
  194. </view>
  195. </view>
  196. </template>
  197. <script>
  198. import upload from '@/components/upload.vue';
  199. export default {
  200. components: {
  201. upload
  202. },
  203. data() {
  204. return {
  205. id: '',
  206. dataobj: {},
  207. show: false,
  208. auditMind: '',
  209. title: '',
  210. imglist: [],
  211. auditList: [],
  212. action: this.$uploadUrl,
  213. pcUserInfo :uni.getStorageSync('pcUserInfo'),
  214. maxSize: 50 * 1024 * 1024, //限制文件大小 50M,
  215. fileUrl: []
  216. }
  217. },
  218. onLoad(options) {
  219. this.id = options.id
  220. console.log(options.id)
  221. },
  222. onShow() {
  223. // this.$nextTick(()=>{
  224. this.getList()
  225. // })
  226. },
  227. methods: {
  228. openDownload(item) {
  229. this.$set(item,'progressstatus',true)
  230. this.$forceUpdate()
  231. const downloadTask =uni.downloadFile({
  232. url: item.appendixPath,
  233. success: function(res) {
  234. var filePath = res.tempFilePath;
  235. if(item.type=='pdf'||item.type == 'xls'||item.type == 'xlsx'||item.type == 'doc'||item.type == 'docx'){
  236. uni.openDocument({
  237. filePath: filePath,
  238. showMenu: true,
  239. success: function(res) {
  240. console.log('打开文档成功');
  241. }
  242. });
  243. }else{
  244. uni.previewImage({
  245. current: 0, //预览图片的下标
  246. urls: [item.appendixPath]
  247. })
  248. }
  249. }
  250. });
  251. downloadTask.onProgressUpdate((res) => {
  252. this.$set(item,'progress',res.progress)
  253. this.$forceUpdate()
  254. console.log('下载进度' + res.progress);
  255. console.log('已经下载的数据长度' + res.totalBytesWritten);
  256. console.log('预期需要下载的数据总长度' + res.totalBytesExpectedToWrite);
  257. // 满足测试条件,取消下载任务。
  258. // if (res.progress > 50) {
  259. // downloadTask.abort();
  260. // }
  261. });
  262. },
  263. filterFileType(index, lists) {
  264. if (lists[index].fileType != 'jpg' && lists[index].fileType != 'png' && lists[index].fileType != 'gif') {
  265. lists.splice(index, 1);
  266. // 当前文件不支持
  267. uni.showModal({
  268. title: '暂不支持当前图片类型',
  269. showCancel: false
  270. });
  271. } else {
  272. this.isAdd = false;
  273. }
  274. },
  275. auditFile(src) {
  276. uni.downloadFile({
  277. url: src,
  278. success: function(res) {
  279. var filePath = res.tempFilePath;
  280. uni.openDocument({
  281. filePath: filePath,
  282. showMenu: true,
  283. success: function(res) {
  284. console.log('打开文档成功');
  285. }
  286. });
  287. },
  288. fail: function(res) {
  289. },
  290. });
  291. },
  292. getImgUrl(res) {
  293. this.fileUrl.push(res.data.appendixPath)
  294. },
  295. onError(error) {
  296. alert(error)
  297. console.log('------------error-----------')
  298. console.log(error)
  299. },
  300. onProgress(e) {
  301. console.log(e)
  302. },
  303. onRemove(index) {
  304. this.fileUrl.splice(index, 1)
  305. },
  306. pass() {
  307. this.show = true
  308. this.title = '审核意见(通过)'
  309. },
  310. reject() {
  311. this.show = true
  312. this.title = '驳回原因(驳回)'
  313. },
  314. // 驳回
  315. rejectSubmit() {
  316. var that = this
  317. if (!this.auditMind) {
  318. this.$api.msg('驳回原因不能为空!')
  319. } else {
  320. this.show = false
  321. uni.showModal({
  322. content: "是否确定驳回?",
  323. showCancel: true,
  324. confirmText: '确定',
  325. success: function(res) {
  326. if (res.confirm) {
  327. that.audit(that.dataobj, 0, false, true, that.auditMind)
  328. }
  329. }
  330. })
  331. }
  332. },
  333. //通过
  334. passSubmit() {
  335. var that = this
  336. if (this.title == '驳回原因(驳回)') {
  337. this.rejectSubmit()
  338. } else {
  339. this.show = false
  340. uni.showModal({
  341. content: "是否确定通过?",
  342. showCancel: true,
  343. confirmText: '确定',
  344. success: function(res) {
  345. if (res.confirm) {
  346. that.audit(that.dataobj, 0, true, 2, that.auditMind)
  347. }
  348. }
  349. })
  350. }
  351. },
  352. //审核方法
  353. audit(list, index, status, status2, reason) {
  354. uni.showLoading({
  355. title: "审核中",
  356. mask: true
  357. })
  358. let that = this
  359. var info = that.auditMind
  360. if (that.fileUrl.length > 0) {
  361. info = that.auditMind + "##" + that.fileUrl.toString()
  362. }
  363. this.$api.doRequest('post', '/newWorkflow/api/handle', {
  364. taskId: list.taskId,
  365. approved: status,
  366. auditMind: info ? info : "",
  367. needReapply: status2 != undefined ? true : false,
  368. }).then(res => {
  369. if (status == true) {
  370. this.$api.msg('通过成功')
  371. } else if (status == false) {
  372. this.$api.msg('驳回成功')
  373. }
  374. setTimeout(function() {
  375. uni.navigateBack()
  376. }, 1000);
  377. })
  378. },
  379. fanHui() {
  380. uni.navigateBack()
  381. },
  382. close() {
  383. this.show = false
  384. },
  385. getList() {
  386. var that = this
  387. this.$api.doRequest('get', '/generalAuditInfo/getGeneralAuditInfo', {
  388. id: this.id
  389. }).then(res => {
  390. this.dataobj = res.data.data
  391. this.$api.doRequest('get', '/appendix/query/getFileList', {
  392. appendixIds: that.dataobj.addressUrl
  393. }).then(res1 => {
  394. that.imglist = res1.data.data
  395. for (let i = 0; i < that.imglist.length; i++) { //获取后缀
  396. that.imglist[i].progressstatus=false
  397. that.imglist[i].progress=0
  398. if (that.imglist[i].appendixName) {
  399. let index = that.imglist[i].appendixName.lastIndexOf(".")
  400. that.imglist[i].type = that.imglist[i].appendixName.substring(index + 1)
  401. }
  402. }
  403. })
  404. // 查流程
  405. this.$api.doRequest('get', '/workflow/query/workflowDefinitions', {
  406. businessCode: 'GENERAL-AUDIT-APPROVE',
  407. tmpCompId: uni.getStorageSync('pcUserInfo').compId
  408. }).then(res1 => {
  409. this.$api.doRequest('get', '/commonUser/getHis', {
  410. workflowId: res1.data.data[0].id,
  411. businessKey: this.id,
  412. branch: that.dataobj.businessType ? that.dataobj.businessType : 'zt'
  413. }).then(response => {
  414. uni.hideLoading()
  415. for (let i = 0; i < response.data.data.length; i++) {
  416. this.$set(response.data.data[i], 'status', 'question')
  417. console.log(response.data.data[i].workflowHistoricTasks, i)
  418. if (response.data.data[i].commonStaffs) {
  419. response.data.data[i].showflow = false
  420. response.data.data[i].operatorTitle = response.data.data[i]
  421. .desc.substring(0, 2)
  422. response.data.data[i].operatorName = response.data.data[i]
  423. .desc
  424. response.data.data[i].staffscontent = '共' + response.data
  425. .data[i].commonStaffs.length + '人,当前审核' + response.data
  426. .data[i].workflowHistoricTasks.length + '人'
  427. if (response.data.data[i].workflowHistoricTasks && response
  428. .data.data[i].workflowHistoricTasks.length > 0) {
  429. if (response.data.data[i].workflowHistoricTasks
  430. .length != response.data.data[i].commonStaffs
  431. .length) {
  432. // response.data.data[i].status='question'
  433. this.$set(response.data.data[i], 'status',
  434. 'question')
  435. } else {
  436. this.$set(response.data.data[i], 'status',
  437. 'success')
  438. // response.data.data[i].status='success'
  439. }
  440. response.data.data[i].workflowlen = response.data.data[
  441. i].workflowHistoricTasks.length
  442. var workflowdata = response.data.data[i]
  443. .workflowHistoricTasks
  444. var staffsdata = response.data.data[i].commonStaffs
  445. for (let q = 0; q < staffsdata.length; q++) {
  446. staffsdata[q].status = false
  447. staffsdata[q].staffTitle = staffsdata[q].staffName
  448. for (let k = 0; k < workflowdata.length; k++) {
  449. if (staffsdata[q].staffId == workflowdata[k]
  450. .operatorId) {
  451. staffsdata[q].status = true
  452. }
  453. }
  454. }
  455. }
  456. response.data.data[i].commonStaffs1 = response.data.data[i]
  457. .commonStaffs
  458. } else {
  459. if (response.data.data[i].workflowHistoricTasks && response
  460. .data.data[i].workflowHistoricTasks.length > 0) {
  461. var len = response.data.data[i].workflowHistoricTasks
  462. .length - 1
  463. if (response.data.data[i].workflowHistoricTasks[len]
  464. .approved) {
  465. this.$set(response.data.data[i], 'status',
  466. 'success')
  467. } else {
  468. this.$set(response.data.data[i], 'status', 'error')
  469. }
  470. response.data.data[i].operatorTitle = response.data
  471. .data[i].workflowHistoricTasks[len].operatorName
  472. .substring(response.data.data[i]
  473. .workflowHistoricTasks[0].operatorName.length -
  474. 2)
  475. response.data.data[i].operatorName = response.data
  476. .data[i].workflowHistoricTasks[len].operatorName
  477. var time = new Date(response.data.data[i]
  478. .workflowHistoricTasks[len].claimTime)
  479. .getTime()
  480. response.data.data[i].updateDate = this.$u.timeFormat(
  481. time, 'mm.dd hh:MM')
  482. // response.data.data[i].auditMind = response.data.data[i]
  483. // .workflowHistoricTasks[len].auditMind
  484. if (response.data.data[i].workflowHistoricTasks[len]
  485. .auditMind && response.data.data[i]
  486. .workflowHistoricTasks[len].auditMind.indexOf("##") !=
  487. -1) {
  488. response.data.data[i].auditMind = response.data.data[i]
  489. .workflowHistoricTasks[len].auditMind.split("##")[
  490. 0]
  491. response.data.data[i].fileUrl = response.data.data[i]
  492. .workflowHistoricTasks[len].auditMind.split("##")[
  493. 1].split(",")
  494. } else {
  495. response.data.data[i].auditMind = response.data.data[i]
  496. .workflowHistoricTasks[len].auditMind
  497. }
  498. } else {
  499. this.$set(response.data.data[i], 'status', 'question')
  500. // response.data.data[i].status='question'
  501. if (response.data.data[i].desc == '总经理助理审核') {
  502. response.data.data[i].operatorTitle = '总助'
  503. } else if (response.data.data[i].desc == '杜大光审核') {
  504. response.data.data[i].operatorTitle = '大光'
  505. } else {
  506. response.data.data[i].operatorTitle = response.data
  507. .data[i].desc.substring(0, 2)
  508. }
  509. response.data.data[i].operatorName = response.data
  510. .data[i].desc
  511. var time1 = new Date(response.data.data[i].updateDate)
  512. .getTime()
  513. response.data.data[i].updateDate = this.$u.timeFormat(
  514. time1, 'mm.dd hh:MM')
  515. response.data.data[i].auditMind = ''
  516. }
  517. }
  518. }
  519. console.log(response.data.data)
  520. for (let i = 0; i < response.data.data.length; i++) {
  521. if (response.data.data[i].status == "error") {
  522. this.auditCheck = "error"
  523. break;
  524. } else if (response.data.data[i].status == "question") {
  525. this.auditCheck = "question"
  526. break;
  527. } else {
  528. this.auditCheck = "success"
  529. }
  530. }
  531. this.auditList = response.data.data
  532. var time2 = new Date(this.dataobj.createDate).getTime()
  533. var time3 = this.$u.timeFormat(time2, 'mm.dd hh:MM')
  534. this.auditList.unshift({
  535. operatorTitle: this.dataobj.creater.substring(0, 2),
  536. operatorName: this.dataobj.creater,
  537. updateDate: time3,
  538. auditMind: '',
  539. desc: '发起申请',
  540. showflow: false,
  541. commonStaffs1: null,
  542. commonStaffs: null,
  543. workflowHistoricTasks: [],
  544. status: 'success'
  545. })
  546. })
  547. })
  548. })
  549. }
  550. }
  551. }
  552. </script>
  553. <style lang="scss" scoped>
  554. .bottom-btn {
  555. width: 100%;
  556. position: fixed;
  557. bottom: 0;
  558. display: flex;
  559. z-index: 2;
  560. left: 0;
  561. background-color: #f8f8f8;
  562. flex-direction: column;
  563. .btn1,
  564. .btn2 {
  565. width: 100%;
  566. margin-bottom: 26rpx;
  567. border-radius: 90rpx;
  568. }
  569. .btn1 {
  570. background: white;
  571. color: #00C265;
  572. }
  573. }
  574. .content2 {
  575. background: white;
  576. margin: 20rpx 0;
  577. border-radius: 20rpx;
  578. padding: 20rpx;
  579. .row {
  580. display: flex;
  581. .left {
  582. display: flex;
  583. // align-items: center;
  584. .item1 {
  585. position: relative;
  586. .item-content {
  587. background: #617AE0;
  588. width: 44px;
  589. height: 44px;
  590. border-radius: 22px;
  591. line-height: 44px;
  592. text-align: center;
  593. font-size: 15px;
  594. color: #fff;
  595. }
  596. .status {
  597. text-align: center;
  598. position: relative;
  599. width: 18px;
  600. height: 18px;
  601. border-radius: 50%;
  602. padding: 0px 2px;
  603. margin: auto;
  604. margin-right: -5px;
  605. top: -16px;
  606. background: #fff;
  607. }
  608. .status.success {
  609. border: 1px solid rgb(60, 156, 255);
  610. }
  611. .status.error {
  612. border: 1px solid rgb(245, 108, 108);
  613. }
  614. .status.question {
  615. border: 1px solid #f9ae3d;
  616. }
  617. }
  618. }
  619. .right {
  620. width: 80%;
  621. // color: #B0B1B5;
  622. margin-top: 10px;
  623. .right-content {
  624. background: #F2F3F7;
  625. margin-left: 10px;
  626. margin-top: 10px;
  627. padding: 10px;
  628. border-radius: 5px;
  629. color: #B0B1B5;
  630. }
  631. .right-item {
  632. display: flex;
  633. justify-content: space-between;
  634. .time {
  635. color: #999;
  636. }
  637. .item2 {
  638. margin-left: 20rpx;
  639. margin-top: -7px;
  640. .name {
  641. font-size: 28rpx;
  642. font-weight: 800;
  643. margin-bottom: 4px;
  644. }
  645. .status.success {
  646. color: #6CC48C;
  647. }
  648. .status.error {
  649. color: rgb(245, 108, 108);
  650. }
  651. .status.question {
  652. color: #f9ae3d;
  653. }
  654. }
  655. }
  656. .audit_img {
  657. flex-wrap: wrap;
  658. // margin: 0 10rpx;
  659. margin-left: 20rpx;
  660. .url_css {
  661. border: 1px solid #999999;
  662. border-radius: 10px;
  663. margin-top: 10px;
  664. margin-right: 4px;
  665. overflow: hidden;
  666. width: 73px;
  667. height: 73px;
  668. .url_img {
  669. width: 73px;
  670. height: 73px;
  671. // border-radius: 10px;
  672. }
  673. }
  674. }
  675. }
  676. }
  677. .row2 {
  678. display: flex;
  679. .item-content {
  680. background: #22C572;
  681. width: 30px;
  682. height: 30px;
  683. border-radius: 50%;
  684. line-height: 30px;
  685. text-align: center;
  686. font-size: 12px;
  687. color: #fff;
  688. padding: 0 2px;
  689. margin: 0 auto;
  690. }
  691. .status {
  692. position: absolute;
  693. top: 0;
  694. right: 0;
  695. }
  696. }
  697. .row-line {
  698. width: 1px;
  699. height: 30px;
  700. background: #F2F2F2;
  701. margin: 10rpx 50rpx;
  702. }
  703. .audit {
  704. margin-top: 20rpx;
  705. }
  706. }
  707. .u-form {
  708. margin: 20rpx;
  709. background: #fff;
  710. border-radius: 10px;
  711. padding: 30rpx 10px;
  712. .u-form-item {
  713. line-height: 30px;
  714. padding: 0px 0;
  715. font-size: 26rpx;
  716. }
  717. }
  718. .u-textarea-style {
  719. margin: 20rpx;
  720. background: #F9F9FA;
  721. border-radius: 10px;
  722. border: 1px solid #EEEEEE;
  723. padding: 10rpx 20rpx;
  724. position: relative;
  725. height: 165px;
  726. /deep/.uni-textarea-textarea {
  727. width: 80%;
  728. }
  729. .right-bottom {
  730. position: absolute;
  731. right: 20rpx;
  732. bottom: 20rpx;
  733. color: #AFB3BF;
  734. }
  735. }
  736. .form_top {
  737. border-bottom: 1px solid #F5F6FA;
  738. padding-bottom: 10px;
  739. margin-bottom: 18rpx;
  740. font-size: 30rpx;
  741. font-weight: 600;
  742. }
  743. .form_view {
  744. margin: 20rpx 0;
  745. border-radius: 20rpx;
  746. background: #F9F9FA;
  747. padding: 30rpx 20rpx;
  748. margin-top: 30rpx;
  749. }
  750. .label_css {
  751. font-size: 26rpx;
  752. color: #878C9C;
  753. }
  754. .input_css {
  755. font-size: 20rpx;
  756. }
  757. .img_item {
  758. display: flex;
  759. width: 100%;
  760. margin: 10px 0;
  761. padding: 0 10rpx;
  762. .imgsign {
  763. width: 25px;
  764. height: 25px;
  765. margin-top: 10px;
  766. }
  767. .char_css {
  768. font-size: 28rpx;
  769. font-weight: 600;
  770. display: -webkit-box;
  771. overflow: hidden;
  772. /*! autoprefixer: off; */
  773. -webkit-box-orient: vertical;
  774. -webkit-line-clamp: 1;
  775. -webkit-box-orient: vertical;
  776. text-overflow: ellipsis;
  777. word-break: break-all;
  778. }
  779. .img_size {
  780. color: #B0B3BF;
  781. font-size: 12px;
  782. margin-top: 5px;
  783. }
  784. .img_dowload {
  785. width: 14%;
  786. color: #22C572;
  787. text-align: right;
  788. }
  789. }
  790. .shade {
  791. position: fixed;
  792. top: 0;
  793. left: 0;
  794. height: 100%;
  795. width: 100%;
  796. background: rgba(0, 0, 0, 0.4);
  797. z-index: 3;
  798. overflow-y: scroll;
  799. .wrap {
  800. position: absolute;
  801. left: 0;
  802. top: 0;
  803. right: 0;
  804. bottom: 0;
  805. margin: auto;
  806. background: #fff;
  807. width: calc(100% - 198rpx);
  808. height: 770rpx;
  809. // overflow: hidden;
  810. border-radius: 20rpx;
  811. .content{
  812. height:600rpx;
  813. overflow-y: scroll;
  814. }
  815. .alert-top {
  816. padding: 33rpx;
  817. display: flex;
  818. justify-content: center;
  819. align-items: center;
  820. position: relative;
  821. }
  822. .title {
  823. font-size: 32rpx;
  824. font-weight: 600;
  825. color: #333333;
  826. }
  827. .close {
  828. position: absolute;
  829. right: 33rpx;
  830. }
  831. .upload_css {
  832. margin-left: 20rpx;
  833. .upload {
  834. // width: 80px;
  835. // height: 80px;
  836. }
  837. }
  838. }
  839. }
  840. .audit_btn {
  841. display: flex;
  842. top: 0px;
  843. }
  844. .cancel,
  845. .confirm {
  846. // position: absolute;
  847. // display: inline-block;
  848. width: 50%;
  849. text-align: center;
  850. // bottom: 0;
  851. padding: 10px;
  852. border-top: 1px solid #eee;
  853. font-size: 34rpx;
  854. margin: auto;
  855. }
  856. .cancel {
  857. left: 0;
  858. border-right: 1px solid #eee;
  859. color: #AFB3BF;
  860. }
  861. .confirm {
  862. right: 0;
  863. color: #22C572;
  864. }
  865. .topInfo {
  866. height: 210rpx;
  867. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  868. padding: 30rpx;
  869. .topInfo-item {
  870. height: 150rpx;
  871. background-color: #FFFFFF;
  872. border-radius: 20rpx;
  873. padding: 40rpx;
  874. .logo {
  875. width: 40rpx;
  876. height: 40rpx;
  877. margin-top: 8rpx;
  878. }
  879. .infoText {
  880. font-size: 36rpx;
  881. font-weight: 600;
  882. margin-left: 20rpx;
  883. }
  884. .infoData {
  885. color: #878C9C;
  886. font-size: 26rpx;
  887. margin-top: 10rpx;
  888. }
  889. }
  890. }
  891. /deep/.u-upload .u-list-item{
  892. background:#fff;
  893. border:1px dashed #ccc;
  894. border-radius:10rpx;
  895. height:190rpx;
  896. width:190rpx;
  897. margin:10rpx;
  898. text-align:center;
  899. display: flex;
  900. align-items: center;
  901. justify-content: center;
  902. flex-direction: column;
  903. }
  904. </style>