charge_against_revenue_detail.vue 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141
  1. <template>
  2. <view class="warp">
  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="status == '已驳回'"
  8. style="height: 40rpx;"></image><!-- 驳回 -->
  9. <image src="../../../static/img/tongguo.png" mode="" v-if="status == '已通过'"
  10. style="height: 40rpx;"></image><!-- 通过 -->
  11. <!-- v-if="status == '审核中' || status == '待决策人审核'" -->
  12. <image src="../../../static/img/daishenhe.png" mode="" style="height: 40rpx;"></image>
  13. <!-- 待审核 -->
  14. </view>
  15. <!-- {{auditList.length > 0 ?auditList[auditList.length - 1].operatorMajorRoleName:""}} -->
  16. <view class="infoText">{{auditInfo.approveStatus?auditInfo.approveStatus:auditInfo.status}}</view>
  17. </view>
  18. <view class="infoData">{{auditInfo.updateDate}}</view>
  19. </view>
  20. </view>
  21. <!-- <view class='content1'>
  22. <view class='row content-item'>
  23. <view class="left" style="color: #878C9C ;">仓库</view>
  24. <view class="right">{{warehouseName}}</view>
  25. </view>
  26. <view class="content-item">
  27. <view v-for="(item,index) in List">
  28. <view class='row row1'>
  29. <view class="left title">{{item.paymentNo}}</view>
  30. <view class="right title">{{item.carNo}}</view>
  31. </view>
  32. <view class='row'>
  33. <view class="left goodsInfoCss">{{item.goodsName}}({{item.netWeight}}kg -
  34. ¥{{item.tidalGrainPrice}})</view>
  35. <view class="right priceCss">¥{{item.amountIngPayable}}</view>
  36. </view>
  37. </view>
  38. </view>
  39. </view> -->
  40. <view class="content1">
  41. <!-- <view class="title">
  42. 销售外勤 张三
  43. </view> -->
  44. <view class="row">
  45. <view class="left">用途</view>
  46. <view class="right" v-if='auditInfo.expensesPurpose==1'>合同费用</view>
  47. <view class="right" v-if='auditInfo.expensesPurpose==3'>库点费用</view>
  48. <view class="right" v-if='auditInfo.expensesPurpose==5'>经营性费用</view>
  49. </view>
  50. <view v-if='auditInfo.expensesPurpose==1' class="row">
  51. <view class="left">类型</view>
  52. <view class="right" v-if='auditInfo.costType==1'>粮款</view>
  53. <view class="right" v-if='auditInfo.costType==3'>非粮款</view>
  54. <view class="right" v-if='auditInfo.costType==5'>保证金</view>
  55. <view class="right" v-if='auditInfo.costType==7'>利息</view>
  56. </view>
  57. <view v-if='auditInfo.expensesPurpose==1' class="row">
  58. <view class="left">合同编号</view>
  59. <view class="right">{{auditInfo.contractNo}}</view>
  60. </view>
  61. <view v-if='auditInfo.expensesPurpose==3||auditInfo.expensesPurpose==1' class="row">
  62. <view class="left">仓库名称</view>
  63. <view class="right">{{auditInfo.warehouseName}}</view>
  64. </view>
  65. <view class="row">
  66. <view class="left">费用名称</view>
  67. <view class="right">{{auditInfo.expenseName}}</view>
  68. </view>
  69. <view class="row" v-if='auditInfo.expensesType==2'>
  70. <view class="left">付款方名头</view>
  71. <view class="right">{{auditInfo.payerHeader}}</view>
  72. </view>
  73. <view class="row" v-if='auditInfo.expensesPurpose==5 && auditInfo.expensesType==2'>
  74. <view class="left">所属名头</view>
  75. <view class="right">{{auditInfo.belongName}}</view>
  76. </view>
  77. <view class="row">
  78. <view class="left">金额(元)</view>
  79. <view class="right">{{auditInfo.amountMoney}}</view>
  80. <view style="color: blue;" v-if="auditInfo.paymentIdentifi==1">备用金支付</view>
  81. <view style="color: blue;" v-if="auditInfo.noPaymentFlag==1">无需付款</view>
  82. </view>
  83. <view style='border-bottom: 0;' class="row">
  84. <view class="left">备注</view>
  85. <!-- <view class="right">{{auditInfo.remark}}</view> -->
  86. </view>
  87. <textarea class='textarea' autoHeight v-model="auditInfo.remark" input-align="right" placeholder="暂无备注信息"
  88. disabled />
  89. <!-- <view class="row">
  90. <view class="left">附件</view>
  91. <view class="right">{{auditInfo.amountMoney}}</view>
  92. </view> -->
  93. <!-- <view class="row row-bottom">
  94. <view class="left">水分(%)</view>
  95. <input type="digit" v-model='detailData.warehouseInOutDetail.waterContent' class="right-bottom"
  96. placeholder="输入水分占比"></input>
  97. </view>
  98. <view class="row row-bottom">
  99. <view class="left">容重(克/升)</view>
  100. <input type="digit" v-model='detailData.warehouseInOutDetail.bulkDensity' class="right-bottom"
  101. placeholder="输入容重"></input>
  102. </view>
  103. <view class="row row-bottom">
  104. <view class="left">热损伤(%)</view>
  105. <input type="digit" v-model='detailData.warehouseInOutDetail.jiaorenli' class="right-bottom"
  106. placeholder="输入热损伤占比"></input>
  107. </view>
  108. <view class="row row-bottom">
  109. <view class="left">杂质(%)</view>
  110. <input type="digit" v-model='detailData.warehouseInOutDetail.impurity' class="right-bottom"
  111. placeholder="输入杂质占比"></input>
  112. </view>
  113. <view class="row row-bottom">
  114. <view class="left">霉变粒(%)</view>
  115. <input type="digit" v-model='detailData.warehouseInOutDetail.mildewGrain' class="right-bottom"
  116. placeholder="输入霉变粒占比"></input>
  117. </view>
  118. <view class="row row-bottom">
  119. <view class="left">不完善粒(%)</view>
  120. <input type="digit" v-model='detailData.warehouseInOutDetail.imperfectGrain' class="right-bottom"
  121. placeholder="输入不完善粒占比"></input>
  122. </view> -->
  123. </view>
  124. <view class="content1">
  125. <view class="title ">
  126. 收款账户信息
  127. </view>
  128. <view v-if='auditInfo.expensesType==2' class="row">
  129. <view class="left">收款方</view>
  130. <view class="right">{{auditInfo.payee}}</view>
  131. </view>
  132. <view v-if='auditInfo.expensesType==2' class="row">
  133. <view class="left">账户</view>
  134. <view class="right">{{auditInfo.accountNumber}}</view>
  135. </view>
  136. <view v-if='auditInfo.expensesType==2' class="row">
  137. <view class="left">开户行</view>
  138. <view class="right">{{auditInfo.bank}}</view>
  139. </view>
  140. <view v-if='auditInfo.expensesType==2' class="row">
  141. <view class="left">开户支行</view>
  142. <view class="right">{{auditInfo.bankBranch}}</view>
  143. </view>
  144. </view>
  145. <view class="content1" v-if="url && url != 'ng'">
  146. <view class="title ">
  147. 附件
  148. </view>
  149. <view v-if='auditInfo.srcList.length>0' class="">
  150. <view style='flex-wrap: wrap;' class="file">
  151. <view class="" v-for='(item,index) in imglist2'>
  152. <view class="img_item">
  153. <view class="" style="width: 16%;">
  154. <image v-if="item.type == 'pdf'" class="imgsign"
  155. src="../../../static/img/oa_office/pdf3.png" mode=""></image>
  156. <image v-else-if="item.type == 'xls'||item.type == 'xlsx'" class="imgsign"
  157. src="../../../static/img/oa_office/excle3.png" mode=""></image>
  158. <image v-else-if="item.type == 'doc'||item.type == 'docx'" class="imgsign"
  159. src="../../../static/img/oa_office/word3.png" mode=""></image>
  160. <image v-else class="imgsign" src="../../../static/img/oa_office/img.png" mode="">
  161. </image>
  162. </view>
  163. <view style='justify-content: space-between;width: 81%;' class="flex">
  164. <view>
  165. <view class="char_css">{{item.appendixName}}</view>
  166. <u-line-progress v-if='item.progressstatus' :striped="true" :percent="item.progress"
  167. :striped-active="true"></u-line-progress>
  168. <view class="img_size">{{item.appendixSize}}</view>
  169. </view>
  170. <view class="img_dowload" @click="openDocument(item)">下载</view>
  171. </view>
  172. </view>
  173. </view>
  174. </view>
  175. </view>
  176. <view v-else class="">
  177. 暂无附件
  178. </view>
  179. </view>
  180. <view class="content1" v-if="url && url != 'ng'&&auditInfo.expenseAllocationInfoList">
  181. <view class="title ">
  182. 费用分配附件
  183. </view>
  184. <view class="file" @click="openXls">
  185. <image src="../../../static/img/excle.png" mode="" class="img_css"></image>
  186. <text class="text_css">明细.xls</text>
  187. </view>
  188. </view>
  189. <flow :auditList="auditList" @status='getStatus'></flow>
  190. <u-toast ref="uToast" />
  191. <view style='padding:10px;' class='flex bottom-btn'>
  192. <u-button @click='fanhui' type="success" class="btn2">返回</u-button>
  193. </view>
  194. </view>
  195. </template>
  196. <script>
  197. import flow from '@/components/flow.vue';
  198. import helper from '@/common/helper.js';
  199. import {
  200. mapState
  201. } from 'vuex';
  202. export default {
  203. components: {
  204. flow
  205. },
  206. data() {
  207. return {
  208. src: '../../../static/img/myimg/LiangShang@2x.png',
  209. isSHowBtn: true,
  210. height: 200,
  211. autoHeight: true,
  212. border: false,
  213. title: '',
  214. show: false,
  215. auditMind: '',
  216. id: "",
  217. currentPage: 1,
  218. pageSize: 100,
  219. List: [],
  220. status: "",
  221. updateDate: "",
  222. warehouseName: "",
  223. everyCheck: '',
  224. auditInfo: {
  225. srcList: []
  226. },
  227. id: "",
  228. auditList: [],
  229. url: "11",
  230. imglist: [],
  231. imglist2: []
  232. }
  233. },
  234. onBackPress(e) {
  235. if (this.everyCheck) {
  236. uni.navigateTo({
  237. url: "/pages/task/my_task"
  238. })
  239. return true;
  240. }
  241. },
  242. onLoad(options) {
  243. this.id = options.id
  244. this.vesselId = options.vesselId
  245. this.everyCheck = uni.getStorageSync("everyTask")
  246. this.isSHowBtn = options.isShowbtn
  247. },
  248. onShow(options) {
  249. this.getList()
  250. },
  251. computed: {
  252. ...mapState(['hasLogin', 'userInfo']),
  253. },
  254. watch: {
  255. imglist: {
  256. handler: function() {
  257. this.$api.doRequest('get', 'appendix/query/getFileList', {
  258. appendixIds: this.imglist.toString()
  259. }).then(res => {
  260. this.imglist2 = res.data.data
  261. for (let i = 0; i < this.imglist2.length; i++) {
  262. that.imglist2[i].progressstatus = false
  263. that.imglist2[i].progress = 0
  264. if (this.imglist2[i].appendixName) {
  265. let index = this.imglist2[i].appendixName.lastIndexOf(".") //获取最后出现.的下标
  266. this.imglist2[i].type = this.imglist2[i].appendixName.substring(index + 1)
  267. // this.imglist2[i].type = this.imglist2[i].appendixName.split(".")[1]
  268. }
  269. }
  270. })
  271. },
  272. deep: true
  273. }
  274. },
  275. methods: {
  276. getStatus(val) {
  277. if (val == 200) this.getList()
  278. },
  279. auditFile(src) {
  280. uni.downloadFile({
  281. url: src,
  282. success: function(res) {
  283. var filePath = res.tempFilePath;
  284. uni.openDocument({
  285. filePath: filePath,
  286. showMenu: true,
  287. success: function(res) {
  288. console.log('打开文档成功');
  289. }
  290. });
  291. }
  292. });
  293. },
  294. previewImageFn(index) {
  295. /* 预览图片 */
  296. uni.previewImage({
  297. current: index,
  298. /* 需要是数组 */
  299. urls: this.auditInfo.srcList,
  300. /* 默认底部圆点 number顶部数字1234 */
  301. // indicator:'default',
  302. indicator: 'number',
  303. loop: false,
  304. /* 长按图片底部显示选项 */
  305. longPressActions: {
  306. itemList: ['保存图片'],
  307. itemColor: '#d60000',
  308. success: data => {
  309. console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
  310. /* 保存图片到系统相册 */
  311. plus.nativeUI.closePreviewImage();
  312. if (data.tapIndex == 0) {
  313. uni.saveImageToPhotosAlbum({
  314. filePath: this.auditInfo.srcList[data.index],
  315. success: res => {
  316. // console.log(this.userImgList[data.index])
  317. // console.log(res.path,"res")
  318. // plus.nativeUI.closePreviewImage();
  319. plus.nativeUI.closePreviewImage();
  320. // uni.closePreviewImage()
  321. plus.nativeUI.toast("保存成功", {
  322. background: "#c3002f"
  323. });
  324. // this.$http.showTK({title:"保存成功",duration:500,position:"bottom"})
  325. },
  326. fail: err => {
  327. console.log(err, "err")
  328. }
  329. })
  330. } else if (data.tapIndex == 1) {
  331. this.uniShare()
  332. }
  333. },
  334. fail: err => {
  335. console.log(err.errMsg);
  336. }
  337. }
  338. });
  339. },
  340. openDocument(item) {
  341. this.$set(item, 'progressstatus', true)
  342. this.$forceUpdate()
  343. const downloadTask = uni.downloadFile({
  344. url: item.appendixPath,
  345. success: function(res) {
  346. var filePath = res.tempFilePath;
  347. if (item.type == 'pdf' || item.type == 'xls' || item.type == 'xlsx' || item.type ==
  348. 'doc' || item.type == 'docx') {
  349. uni.openDocument({
  350. filePath: filePath,
  351. showMenu: true,
  352. success: function(res) {
  353. console.log('打开文档成功');
  354. }
  355. });
  356. } else {
  357. uni.previewImage({
  358. current: 0, //预览图片的下标
  359. urls: [item.appendixPath]
  360. })
  361. }
  362. }
  363. });
  364. downloadTask.onProgressUpdate((res) => {
  365. this.$set(item, 'progress', res.progress)
  366. this.$forceUpdate()
  367. console.log('下载进度' + res.progress);
  368. console.log('已经下载的数据长度' + res.totalBytesWritten);
  369. console.log('预期需要下载的数据总长度' + res.totalBytesExpectedToWrite);
  370. });
  371. },
  372. openXls() {
  373. if (this.url && this.url != "ng") {
  374. uni.downloadFile({
  375. url: this.url,
  376. success: function(res) {
  377. var filePath = res.tempFilePath;
  378. uni.openDocument({
  379. filePath: filePath,
  380. showMenu: true,
  381. success: function(res) {
  382. console.log('打开文档成功');
  383. }
  384. });
  385. }
  386. });
  387. }
  388. },
  389. getList() {
  390. var that = this
  391. uni.showLoading({
  392. title: "加载中...",
  393. mask: true
  394. })
  395. this.$api.doRequest('get', '/paymentManagement/selectPaymentManagement', {
  396. currentPage: 1,
  397. pageSize: 100,
  398. searchType: '1', //searchType:1待审核
  399. warehouseName: this.vesselId,
  400. managementType: 1
  401. }).then(res1 => {
  402. uni.hideLoading()
  403. if (res1.data.code == 200) {
  404. this.List = res1.data.data.records
  405. }
  406. })
  407. // this.$api.doRequest('get', '/paymentManagement/getInfo', {
  408. // id: this.id
  409. // }).then(res => {
  410. // if (res.data.code == 200) {
  411. // uni.showLoading({
  412. // title: "加载中...",
  413. // mask: true
  414. // })
  415. // }
  416. // })
  417. this.$api.doRequest('post', '/expenseInfo/exportPhone', {
  418. id: this.id
  419. }).then(res1 => {
  420. if (res1.data.code == 200) {
  421. this.url = res1.data.data
  422. }
  423. })
  424. this.$api.doRequest('get', '/expenseInfo/ExpenseInfo', {
  425. id: this.id
  426. }).then(res1 => {
  427. if (res1.data.code == 200) {
  428. this.auditInfo = res1.data.data
  429. if (this.auditInfo.addressUrl) {
  430. this.imglist = this.auditInfo.addressUrl.split(',')
  431. }
  432. if (this.auditInfo.addressUrl && this.auditInfo.addressUrl != '') {
  433. this.auditInfo.srcList = this.auditInfo.addressUrl.split(',')
  434. } else {
  435. this.auditInfo.srcList = []
  436. }
  437. this.auditInfo.amountIngPayableTotal1 = helper.convertCurrency(this.auditInfo
  438. .amountIngPayableTotal)
  439. this.$api.doRequest('get', '/workflow/query/workflowDefinitions', {
  440. businessCode: 'FEIYONGGUANLI-APPROVE',
  441. tmpCompId: uni.getStorageSync('pcUserInfo').compId
  442. }).then(res1 => {
  443. this.$api.doRequest('get', '/commonUser/getHis', {
  444. workflowId: res1.data.data[0].id,
  445. businessKey: this.id,
  446. branch: that.auditInfo.jointVentureParties ? that.auditInfo
  447. .jointVentureParties : 'zt'
  448. }).then(response => {
  449. uni.hideLoading()
  450. for (let i = 0; i < response.data.data.length; i++) {
  451. this.$set(response.data.data[i], 'status', 'question')
  452. console.log(response.data.data[i].workflowHistoricTasks, i)
  453. if (response.data.data[i].commonStaffs) {
  454. response.data.data[i].showflow = false
  455. response.data.data[i].operatorTitle = response.data.data[i]
  456. .desc.substring(0, 2)
  457. response.data.data[i].operatorName = response.data.data[i]
  458. .desc
  459. response.data.data[i].staffscontent = '共' + response.data
  460. .data[i].commonStaffs.length + '人,当前审核' + response.data
  461. .data[i].workflowHistoricTasks.length + '人'
  462. if (response.data.data[i].workflowHistoricTasks && response
  463. .data.data[i].workflowHistoricTasks.length > 0) {
  464. if (response.data.data[i].workflowHistoricTasks
  465. .length != response.data.data[i].commonStaffs
  466. .length) {
  467. // response.data.data[i].status='question'
  468. this.$set(response.data.data[i], 'status',
  469. 'question')
  470. } else {
  471. this.$set(response.data.data[i], 'status',
  472. 'success')
  473. // response.data.data[i].status='success'
  474. }
  475. response.data.data[i].workflowlen = response.data.data[
  476. i].workflowHistoricTasks.length
  477. var workflowdata = response.data.data[i]
  478. .workflowHistoricTasks
  479. var staffsdata = response.data.data[i].commonStaffs
  480. for (let q = 0; q < staffsdata.length; q++) {
  481. staffsdata[q].status = false
  482. staffsdata[q].staffTitle = staffsdata[q].staffName
  483. for (let k = 0; k < workflowdata.length; k++) {
  484. if (staffsdata[q].staffId == workflowdata[k]
  485. .operatorId) {
  486. staffsdata[q].status = true
  487. }
  488. }
  489. }
  490. }
  491. response.data.data[i].commonStaffs1 = response.data.data[i]
  492. .commonStaffs
  493. } else {
  494. if (response.data.data[i].workflowHistoricTasks && response
  495. .data.data[i].workflowHistoricTasks.length > 0) {
  496. var len = response.data.data[i].workflowHistoricTasks
  497. .length - 1
  498. if (response.data.data[i].workflowHistoricTasks[len]
  499. .approved) {
  500. this.$set(response.data.data[i], 'status',
  501. 'success')
  502. } else {
  503. this.$set(response.data.data[i], 'status', 'error')
  504. }
  505. response.data.data[i].operatorTitle = response.data
  506. .data[i].workflowHistoricTasks[len].operatorName
  507. .substring(response.data.data[i]
  508. .workflowHistoricTasks[0].operatorName.length -
  509. 2)
  510. response.data.data[i].operatorName = response.data
  511. .data[i].workflowHistoricTasks[len].operatorName
  512. var time = new Date(response.data.data[i]
  513. .workflowHistoricTasks[len].claimTime)
  514. .getTime()
  515. response.data.data[i].updateDate = this.$u.timeFormat(
  516. time, 'mm.dd hh:MM')
  517. // response.data.data[i].auditMind=response.data.data[i].workflowHistoricTasks[len].auditMind
  518. // 显示附件和审核意见
  519. if (response.data.data[i].workflowHistoricTasks[len]
  520. .auditMind && response.data.data[i]
  521. .workflowHistoricTasks[len].auditMind.indexOf(
  522. "##") != -1) {
  523. response.data.data[i].auditMind = response.data
  524. .data[i].workflowHistoricTasks[len].auditMind
  525. .split("##")[0]
  526. response.data.data[i].fileUrl = response.data.data[
  527. i].workflowHistoricTasks[len].auditMind
  528. .split("##")[1].split(",")
  529. } else {
  530. response.data.data[i].auditMind = response.data
  531. .data[i].workflowHistoricTasks[len].auditMind
  532. }
  533. } else {
  534. this.$set(response.data.data[i], 'status', 'question')
  535. // response.data.data[i].status='question'
  536. if (response.data.data[i].desc == '总经理助理审核') {
  537. response.data.data[i].operatorTitle = '总助'
  538. } else if (response.data.data[i].desc == '杜大光审核') {
  539. response.data.data[i].operatorTitle = '大光'
  540. } else {
  541. response.data.data[i].operatorTitle = response.data
  542. .data[i].desc.substring(0, 2)
  543. }
  544. response.data.data[i].operatorName = response.data
  545. .data[i].desc
  546. var time1 = new Date(response.data.data[i].updateDate)
  547. .getTime()
  548. response.data.data[i].updateDate = this.$u.timeFormat(
  549. time1, 'mm.dd hh:MM')
  550. response.data.data[i].auditMind = ''
  551. }
  552. }
  553. }
  554. console.log(response.data.data)
  555. this.auditList = response.data.data
  556. var time2 = new Date(this.auditInfo.createDate).getTime()
  557. var time3 = this.$u.timeFormat(time2, 'mm.dd hh:MM')
  558. this.auditList.unshift({
  559. operatorTitle: this.auditInfo.creater.substring(0, 2),
  560. operatorName: this.auditInfo.creater,
  561. updateDate: time3,
  562. auditMind: '',
  563. desc: '发起申请',
  564. showflow: false,
  565. commonStaffs1: null,
  566. commonStaffs: null,
  567. workflowHistoricTasks: [],
  568. status: 'success'
  569. })
  570. })
  571. })
  572. }
  573. })
  574. // this.$api.doRequest('get', '/workflow/query/workflowDefinitions', {
  575. // businessCode: 'FEIYONGGUANLI-APPROVE',
  576. // tmpCompId: uni.getStorageSync('pcUserInfo').compId
  577. // }).then(res1 => {
  578. // this.updateDate = res1.data.data[0].updateDate
  579. // this.$api.doRequest('get', '/commonUser/getHis', {
  580. // workflowId: res1.data.data[0].id,
  581. // businessKey: this.id
  582. // }).then(response => {
  583. // // uni.hideLoading()
  584. // this.auditList = response.data.data
  585. // })
  586. // })
  587. },
  588. close() {
  589. this.show = false
  590. },
  591. pass() {
  592. this.show = true
  593. this.title = '审核意见(通过)'
  594. },
  595. reject() {
  596. this.show = true
  597. this.title = '驳回原因(驳回)'
  598. },
  599. //驳回
  600. // rejectSubmit() {
  601. // if (!this.auditMind) {
  602. // this.$api.msg('驳回原因不能为空!')
  603. // } else {
  604. // var that = this
  605. // that.show = false
  606. // if (this.List.length > 0) {
  607. // uni.showModal({
  608. // content: "确定驳回付款申请?",
  609. // showCancel: true,
  610. // confirmText: '确定',
  611. // success: function(res) {
  612. // if (res.confirm) {
  613. // that.audit(that.List[0], 0, false, '', '')
  614. // }
  615. // }
  616. // })
  617. // }
  618. // }
  619. // },
  620. fanhui() {
  621. uni.navigateBack({
  622. delta: 1
  623. })
  624. },
  625. // audit(list, index, status, status2, reason) {
  626. // uni.showLoading({
  627. // title: "审核中"
  628. // })
  629. // if (this.List.length > 0) {
  630. // if (status == true && list.status == "已驳回") {
  631. // this.$api.doRequest('get', '/paymentManagement/api/openAuditFlow', {
  632. // compId: "2710b21efc1e4393930c5dc800010dc4",
  633. // id: list.id
  634. // }).then(res => {
  635. // if (res.data.code == 200) {
  636. // this.audit(this.List[index + 1], index + 1, status, status2, reason)
  637. // }
  638. // })
  639. // } else {
  640. // for (var i = 0; i < this.List.length; i++) {
  641. // this.$api.doRequest('post', '/newWorkflow/api/handle', {
  642. // taskId: this.List[i].taskId,
  643. // approved: status,
  644. // auditMind: this.auditMind ? this.auditMind : "",
  645. // needReapply: status2 ? true : false
  646. // }).then(res => {
  647. // if (res.data.code == 200) {
  648. // uni.hideLoading()
  649. // // this.audit(this.List[index + 1], index + 1, status, status2, reason)
  650. // this.$api.msg('通过成功')
  651. // }else{
  652. // uni.hideLoading()
  653. // this.$api.msg('审核失败')
  654. // }
  655. // })
  656. // }
  657. // }
  658. // } else {
  659. // if (status == true) {
  660. // this.$api.msg('通过成功')
  661. // } else if (status == false) {
  662. // this.$api.msg('驳回成功')
  663. // }
  664. // let that = this
  665. // setTimeout(function() {
  666. // if (that.everyCheck) {
  667. // helper.setAudit(that.list)
  668. // } else {
  669. // uni.navigateBack()
  670. // }
  671. // uni.hideLoading()
  672. // }, 1000);
  673. // }
  674. // },
  675. }
  676. }
  677. </script>
  678. <style scoped lang="scss">
  679. .warp {
  680. margin: 10rpx;
  681. padding: 20rpx 20rpx 240rpx 20rpx;
  682. }
  683. .content1 {
  684. font-size: 28rpx;
  685. color: #333333;
  686. margin-top: 30rpx;
  687. padding: 20rpx;
  688. // .content-item {
  689. border-radius: 20rpx;
  690. background: white;
  691. // padding: 40rpx 20rpx;
  692. // margin-bottom: 30rpx;
  693. // }
  694. // .title {
  695. // font-size: 32rpx;
  696. // font-weight: 600;
  697. // color: #333333;
  698. // margin: 30rpx 0;
  699. // }
  700. // .goodsInfoCss {
  701. // font-size: 28rpx;
  702. // font-weight: 600;
  703. // color: #878C9C;
  704. // margin: 26rpx 10rpx;
  705. // }
  706. // .priceCss {
  707. // font-size: 40rpx;
  708. // margin: 26rpx 10rpx;
  709. // color: #22C572;
  710. // font-weight: 600;
  711. // }
  712. .row {
  713. display: flex;
  714. justify-content: space-between;
  715. border-bottom: 1px solid #EEEEEE;
  716. padding: 20rpx 0;
  717. .right,
  718. input {
  719. font-size: 28rpx;
  720. // color: #333333;
  721. }
  722. }
  723. .img_css {
  724. width: 50rpx;
  725. height: 50rpx;
  726. }
  727. .file {
  728. display: flex;
  729. align-items: center;
  730. margin: 30rpx 0 0 20rpx;
  731. .text_css {
  732. font-size: 30rpx;
  733. margin-left: 20rpx;
  734. }
  735. }
  736. }
  737. .title {
  738. font-size: 34rpx;
  739. font-weight: 700;
  740. // margin-bottom: 20rpx;
  741. height: 70rpx;
  742. border-bottom: 2rpx solid #EEEEEE;
  743. }
  744. .titlerow {
  745. font-size: 34rpx;
  746. font-weight: 700;
  747. // margin-bottom: 20rpx;
  748. // height: 70rpx;
  749. // border-bottom: 2rpx solid #EEEEEE;
  750. }
  751. .content2 {
  752. background: white;
  753. margin: 20rpx 0;
  754. border-radius: 20rpx;
  755. padding: 20rpx;
  756. .row {
  757. display: flex;
  758. .left {
  759. display: flex;
  760. align-items: center;
  761. .item1 {
  762. position: relative;
  763. .item-content {
  764. background: #617AE0;
  765. width: 44px;
  766. height: 44px;
  767. border-radius: 22px;
  768. line-height: 44px;
  769. text-align: center;
  770. font-size: 15px;
  771. color: #fff;
  772. }
  773. .status {
  774. position: absolute;
  775. border-radius: 50%;
  776. padding: 0px 2px;
  777. right: -3px;
  778. bottom: -3px;
  779. background: #fff;
  780. }
  781. .status.success {
  782. border: 1px solid rgb(60, 156, 255);
  783. }
  784. .status.error {
  785. border: 1px solid rgb(245, 108, 108);
  786. }
  787. .status.question {
  788. border: 1px solid #f9ae3d;
  789. }
  790. }
  791. }
  792. .right {
  793. width: 80%;
  794. // color: #B0B1B5;
  795. margin-top: 10px;
  796. .right-content {
  797. background: #F2F3F7;
  798. margin-left: 10px;
  799. margin-top: 10px;
  800. padding: 10px;
  801. border-radius: 5px;
  802. color: #B0B1B5;
  803. }
  804. .right-item {
  805. display: flex;
  806. justify-content: space-between;
  807. .time {
  808. color: #999;
  809. }
  810. .item2 {
  811. margin-left: 20rpx;
  812. margin-top: -7px;
  813. .name {
  814. font-size: 28rpx;
  815. font-weight: 800;
  816. margin-bottom: 4px;
  817. }
  818. .status.success {
  819. color: #6CC48C;
  820. }
  821. .status.error {
  822. color: rgb(245, 108, 108);
  823. }
  824. .status.question {
  825. color: #f9ae3d;
  826. }
  827. }
  828. }
  829. .audit_img {
  830. flex-wrap: wrap;
  831. // margin: 0 10rpx;
  832. margin-left: 20rpx;
  833. .url_css {
  834. border: 1px solid #999999;
  835. border-radius: 10px;
  836. margin-top: 10px;
  837. margin-right: 4px;
  838. overflow: hidden;
  839. width: 73px;
  840. height: 73px;
  841. .url_img {
  842. width: 73px;
  843. height: 73px;
  844. // border-radius: 10px;
  845. }
  846. }
  847. }
  848. }
  849. }
  850. .row2 {
  851. display: flex;
  852. .item-content {
  853. background: #22C572;
  854. width: 30px;
  855. height: 30px;
  856. border-radius: 50%;
  857. line-height: 30px;
  858. text-align: center;
  859. font-size: 12px;
  860. color: #fff;
  861. padding: 0 2px;
  862. margin: 0 auto;
  863. }
  864. .status {
  865. position: absolute;
  866. top: 0;
  867. right: 0;
  868. }
  869. }
  870. .row-line {
  871. width: 1px;
  872. height: 30px;
  873. background: #F2F2F2;
  874. margin: 10rpx 50rpx;
  875. }
  876. .audit {
  877. margin-top: 20rpx;
  878. }
  879. }
  880. .bottom-btn {
  881. width: 100%;
  882. position: fixed;
  883. bottom: 0;
  884. display: flex;
  885. z-index: 2;
  886. left: 0;
  887. background-color: #f8f8f8;
  888. flex-direction: column;
  889. .btn1,
  890. .btn2 {
  891. width: 100%;
  892. margin-bottom: 26rpx;
  893. border-radius: 90rpx;
  894. }
  895. .btn1 {
  896. background: white;
  897. color: #00C265;
  898. }
  899. }
  900. .row1 {
  901. border-bottom: 0 !important;
  902. }
  903. .topInfo {
  904. height: 210rpx;
  905. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  906. padding: 30rpx;
  907. .topInfo-item {
  908. height: 150rpx;
  909. background-color: #FFFFFF;
  910. border-radius: 20rpx;
  911. padding: 40rpx;
  912. .logo {
  913. width: 40rpx;
  914. height: 40rpx;
  915. margin-top: 8rpx;
  916. }
  917. .infoText {
  918. font-size: 36rpx;
  919. font-weight: 600;
  920. margin-left: 20rpx;
  921. }
  922. .infoData {
  923. color: #878C9C;
  924. font-size: 26rpx;
  925. margin-top: 10rpx;
  926. }
  927. }
  928. }
  929. .shade {
  930. position: fixed;
  931. top: 0;
  932. left: 0;
  933. height: 100%;
  934. width: 100%;
  935. background: rgba(0, 0, 0, 0.4);
  936. z-index: 3;
  937. .wrap {
  938. position: absolute;
  939. left: 0;
  940. top: 0;
  941. right: 0;
  942. bottom: 0;
  943. margin: auto;
  944. background: #fff;
  945. width: calc(100% - 198rpx);
  946. height: 700rpx;
  947. border-radius: 20rpx;
  948. .alert-top {
  949. padding: 33rpx;
  950. display: flex;
  951. justify-content: center;
  952. align-items: center;
  953. position: relative;
  954. }
  955. .title {
  956. font-size: 32rpx;
  957. font-weight: 600;
  958. color: #333333;
  959. }
  960. .close {
  961. position: absolute;
  962. right: 33rpx;
  963. }
  964. }
  965. }
  966. .cancel,
  967. .confirm {
  968. position: absolute;
  969. display: inline-block;
  970. width: 50%;
  971. text-align: center;
  972. bottom: 0;
  973. padding: 10px;
  974. border-top: 1px solid #eee;
  975. font-size: 34rpx;
  976. }
  977. .cancel {
  978. left: 0;
  979. border-right: 1px solid #eee;
  980. color: #AFB3BF;
  981. }
  982. .confirm {
  983. right: 0;
  984. color: #22C572;
  985. }
  986. .u-textarea-style {
  987. margin: 20rpx;
  988. background: #F9F9FA;
  989. border-radius: 10px;
  990. border: 1px solid #EEEEEE;
  991. padding: 10rpx 20rpx;
  992. position: relative;
  993. .right-bottom {
  994. position: absolute;
  995. right: 20rpx;
  996. bottom: 20rpx;
  997. color: #AFB3BF;
  998. }
  999. }
  1000. /deep/.u-input__textarea {
  1001. height: 300rpx !important;
  1002. }
  1003. .fujianImg {
  1004. width: 30%;
  1005. height: 80px;
  1006. border-radius: 3px;
  1007. border: 1px solid #ccc;
  1008. margin: 5px;
  1009. }
  1010. // .char_css {
  1011. // // text-align: center;
  1012. // // width: 90px;
  1013. // font-size: 30rpx;
  1014. // font-weight: 600;
  1015. // display: -webkit-box;
  1016. // overflow: hidden;
  1017. // /*! autoprefixer: off; */
  1018. // -webkit-box-orient: vertical;
  1019. // -webkit-line-clamp: 1;
  1020. // -webkit-box-orient: vertical;
  1021. // text-overflow: ellipsis;
  1022. // word-break: break-all;
  1023. // }
  1024. .textarea {
  1025. margin: 18rpx auto;
  1026. width: 100%;
  1027. background: #F9F9FA;
  1028. border-radius: 10px;
  1029. border: 1px solid #EEEEEE;
  1030. font-size: 28rpx;
  1031. padding: 10px;
  1032. }
  1033. .img_item {
  1034. display: flex;
  1035. width: 85vw;
  1036. margin: 10px 0;
  1037. padding: 0 10rpx;
  1038. .imgsign {
  1039. width: 25px;
  1040. height: 25px;
  1041. margin-top: 6px;
  1042. }
  1043. .char_css {
  1044. font-size: 28rpx;
  1045. font-weight: 600;
  1046. display: -webkit-box;
  1047. overflow: hidden;
  1048. /*! autoprefixer: off; */
  1049. -webkit-box-orient: vertical;
  1050. -webkit-line-clamp: 1;
  1051. -webkit-box-orient: vertical;
  1052. text-overflow: ellipsis;
  1053. word-break: break-all;
  1054. }
  1055. .img_size {
  1056. color: #B0B3BF;
  1057. font-size: 12px;
  1058. margin-top: 5px;
  1059. }
  1060. .img_dowload {
  1061. width: 14%;
  1062. color: #22C572;
  1063. text-align: right;
  1064. }
  1065. }
  1066. </style>