salecontract.vue 26 KB

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