charge_against_revenue_detail.vue 31 KB

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