daichu_details.vue 28 KB

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