universalityAudit.vue 26 KB

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