charge_against_revenue_detail.vue 30 KB

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