salecontract.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900
  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}}/500个字
  229. </view>
  230. <textarea maxlength="500" v-model='auditMind' placeholder="请在此输入审核意见" name="" id="" cols="30" rows="11"></textarea>
  231. </view>
  232. <view @click='close()' class="cancel">取消</view>
  233. <view @click='passSubmit()' class="confirm">确定</view>
  234. </view>
  235. </view>
  236. <view @click='imgShow=false' v-if="imgShow" class="shade">
  237. <image style='position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;' :src="url" mode=""></image>
  238. </view>
  239. </view>
  240. </template>
  241. <script>
  242. import upload from '@/components/upload.vue';
  243. import helper from '@/common/helper.js';
  244. export default {
  245. components: {
  246. upload
  247. },
  248. data() {
  249. return {
  250. everyCheck: '',
  251. id: "",
  252. currentPage: 1,
  253. pageSize: 10,
  254. list: {
  255. status: "",
  256. contractGoodsInfo: {},
  257. contractProcessInfo: {}
  258. },
  259. imglist: [],
  260. title: '',
  261. auditMind: '',
  262. auditList:[],
  263. show: false,
  264. contractNo: "",
  265. action: this.$uploadUrl,
  266. maxSize: 50 * 1024 * 1024, //限制文件大小 50M
  267. isAdd: true,
  268. url: "",
  269. imgShow: false,
  270. height: 200,
  271. autoHeight: true,
  272. border: false,
  273. rejectInfo: "",
  274. rejectInfo1: "",
  275. isSHowBtn: true,
  276. }
  277. },
  278. onBackPress(e) {
  279. if(this.everyCheck){
  280. uni.navigateTo({
  281. url: "/pages/task/my_task"
  282. })
  283. return true;
  284. }
  285. },
  286. onLoad(options) {
  287. this.id = options.id
  288. this.everyCheck = uni.getStorageSync("everyTask")
  289. this.isSHowBtn = options.isShowbtn
  290. this.getList()
  291. },
  292. methods: {
  293. openDocument(src){
  294. uni.downloadFile({
  295. url: src.appendixPath,
  296. success: function (res) {
  297. var filePath = res.tempFilePath;
  298. uni.openDocument({
  299. filePath: filePath,
  300. showMenu: true,
  301. success: function (res) {
  302. console.log('打开文档成功');
  303. }
  304. });
  305. }
  306. });
  307. },
  308. shadeshow(url) {
  309. this.imgShow = true
  310. this.url = url
  311. },
  312. showcontent(item){
  313. item.showflow=!item.showflow
  314. },
  315. getList(id) {
  316. var that = this
  317. uni.showLoading({
  318. title:'加载中',
  319. mask:true
  320. })
  321. this.$api.doRequest('get', '/contractManagementInfo/getInfo', {
  322. id: this.id
  323. }).then(res => {
  324. if (res.data.code == 200) {
  325. this.list = res.data.data
  326. if (this.list.deliverType == 1) {
  327. this.list.deliverType1 = '我方送货'
  328. } else if (this.list.deliverType == 2) {
  329. this.list.deliverType1 = '对方自提'
  330. }
  331. this.$api.doRequest('get', '/appendix/query/getFileList', {
  332. appendixIds: that.list.addressUrl
  333. }).then(res1 => {
  334. that.imglist=res1.data.data
  335. })
  336. this.$api.doRequest('get', '/workflow/query/workflowDefinitions', {
  337. businessCode: 'SALE-CONTRACT-APPROVE',
  338. tmpCompId: uni.getStorageSync('pcUserInfo').compId
  339. }).then(res1 => {
  340. this.$api.doRequest('get', '/commonUser/getHis', {
  341. workflowId: res1.data.data[0].id,
  342. businessKey: this.id
  343. }).then(response => {
  344. uni.hideLoading()
  345. for (let i = 0; i < response.data.data.length; i++) {
  346. this.$set(response.data.data[i],'status','question')
  347. // console.log(response.data.data[i].workflowHistoricTasks,i)
  348. if(response.data.data[i].commonStaffs){
  349. response.data.data[i].showflow=false
  350. response.data.data[i].operatorTitle=response.data.data[i].desc.substring(0,2)
  351. response.data.data[i].operatorName=response.data.data[i].desc
  352. response.data.data[i].staffscontent='共'+response.data.data[i].commonStaffs.length+'人,当前审核'+response.data.data[i].workflowHistoricTasks.length+'人'
  353. if(response.data.data[i].workflowHistoricTasks&&response.data.data[i].workflowHistoricTasks.length>0){
  354. if(response.data.data[i].workflowHistoricTasks.length!=response.data.data[i].commonStaffs.length){
  355. // response.data.data[i].status='question'
  356. this.$set(response.data.data[i],'status','question')
  357. }else{
  358. this.$set(response.data.data[i],'status','success')
  359. // response.data.data[i].status='success'
  360. }
  361. response.data.data[i].workflowlen=response.data.data[i].workflowHistoricTasks.length
  362. var workflowdata=response.data.data[i].workflowHistoricTasks
  363. var staffsdata=response.data.data[i].commonStaffs
  364. for (let q = 0; q < staffsdata.length; q++) {
  365. staffsdata[q].status=false
  366. staffsdata[q].staffTitle=staffsdata[q].staffName
  367. for (let k = 0; k < workflowdata.length; k++) {
  368. if(staffsdata[q].staffId==workflowdata[k].operatorId){
  369. staffsdata[q].status=true
  370. }
  371. }
  372. }
  373. }
  374. response.data.data[i].commonStaffs1=response.data.data[i].commonStaffs
  375. }else{
  376. if(response.data.data[i].workflowHistoricTasks&&response.data.data[i].workflowHistoricTasks.length>0){
  377. var len =response.data.data[i].workflowHistoricTasks.length-1
  378. if(response.data.data[i].workflowHistoricTasks[len].approved){
  379. this.$set(response.data.data[i],'status','success')
  380. }else{
  381. this.$set(response.data.data[i],'status','error')
  382. }
  383. response.data.data[i].operatorTitle=response.data.data[i].workflowHistoricTasks[len].operatorName.substring(response.data.data[i].workflowHistoricTasks[0].operatorName.length - 2)
  384. response.data.data[i].operatorName=response.data.data[i].workflowHistoricTasks[len].operatorName
  385. var time=new Date(response.data.data[i].workflowHistoricTasks[len].claimTime).getTime()
  386. response.data.data[i].updateDate=this.$u.timeFormat(time, 'mm.dd hh:MM')
  387. response.data.data[i].auditMind=response.data.data[i].workflowHistoricTasks[len].auditMind
  388. }else{
  389. this.$set(response.data.data[i],'status','question')
  390. // response.data.data[i].status='question'
  391. if(response.data.data[i].desc=='总经理助理审核'){
  392. response.data.data[i].operatorTitle='总助'
  393. }else if(response.data.data[i].desc=='杜大光审核'){
  394. response.data.data[i].operatorTitle='大光'
  395. }else{
  396. response.data.data[i].operatorTitle=response.data.data[i].desc.substring(0,2)
  397. }
  398. response.data.data[i].operatorName=response.data.data[i].desc
  399. var time1=new Date(response.data.data[i].updateDate).getTime()
  400. response.data.data[i].updateDate=this.$u.timeFormat(time1, 'mm.dd hh:MM')
  401. response.data.data[i].auditMind=''
  402. }
  403. }
  404. }
  405. console.log(response.data.data)
  406. this.auditList = response.data.data
  407. var time2=new Date(this.list.createDate).getTime()
  408. var time3=this.$u.timeFormat(time2, 'mm.dd hh:MM')
  409. this.auditList.unshift({
  410. operatorTitle:this.list.creater.substring(0,2),
  411. operatorName:this.list.creater,
  412. updateDate:time3,
  413. auditMind:'',
  414. desc:'发起申请',
  415. showflow:false,
  416. commonStaffs1:null,
  417. commonStaffs:null,
  418. workflowHistoricTasks:[],
  419. status:'success'
  420. })
  421. })
  422. })
  423. }
  424. })
  425. },
  426. onRemove() {
  427. return
  428. },
  429. filterFileType(index, lists) {
  430. if (lists[index].fileType != 'jpg' && lists[index].fileType != 'png' && lists[index].fileType != 'gif') {
  431. lists.splice(index, 1);
  432. // 当前文件不支持
  433. uni.showModal({
  434. title: '暂不支持当前图片类型',
  435. showCancel: false
  436. });
  437. } else {
  438. this.isAdd = false;
  439. }
  440. },
  441. close() {
  442. this.show = false
  443. },
  444. pass() {
  445. this.show = true
  446. this.title = '审核意见(通过)'
  447. },
  448. reject() {
  449. this.show = true
  450. this.title = '驳回原因(驳回)'
  451. },
  452. //驳回
  453. rejectSubmit() {
  454. var that = this
  455. uni.showLoading({
  456. title: '加载中',
  457. mask: true
  458. });
  459. that.$api.doRequest('post', '/workflow/api/handle', {
  460. taskId: that.list.taskId,
  461. approved: false,
  462. auditMind: this.auditMind,
  463. needReapply: true,
  464. }).then(res => {
  465. that.$api.msg('驳回成功')
  466. that.show = false
  467. setTimeout(function() {
  468. if (that.everyCheck) {
  469. helper.setAudit(that.list)
  470. } else {
  471. uni.navigateBack()
  472. }
  473. uni.hideLoading()
  474. }, 1000);
  475. })
  476. },
  477. pass() {
  478. this.show = true
  479. this.title = '审核意见'
  480. },
  481. reject() {
  482. this.show = true
  483. this.title = '驳回原因(驳回)'
  484. },
  485. //通过
  486. passSubmit() {
  487. var that = this
  488. if (this.title == '驳回原因(驳回)') {
  489. this.rejectSubmit()
  490. } else {
  491. uni.showLoading({
  492. title: '加载中',
  493. mask: true
  494. });
  495. that.$api.doRequest('post', '/workflow/api/handle', {
  496. taskId: that.list.taskId,
  497. approved: true,
  498. auditMind: this.auditMind,
  499. needReapply: true,
  500. }).then(res => {
  501. that.$api.msg('通过成功')
  502. that.show = false
  503. setTimeout(function() {
  504. if (that.everyCheck) {
  505. helper.setAudit(that.list)
  506. } else {
  507. uni.navigateBack()
  508. }
  509. uni.hideLoading()
  510. }, 1000);
  511. })
  512. }
  513. },
  514. //审核方法
  515. audit(item, index, status, status2, reason) {
  516. if (index < this.list.length) {
  517. this.$api.doRequest('post', '/workflow/api/handle', {
  518. taskId: item.taskId,
  519. approved: status,
  520. auditMind: reason != undefined ? '已驳回' : '34',
  521. needReapply: status2 != undefined ? true : false,
  522. }).then(res => {
  523. this.audit(this.list[index + 1], index + 1, status)
  524. })
  525. } else {
  526. if (status == true) {
  527. that.$api.msg('通过成功')
  528. this.getList()
  529. } else if (status == false) {
  530. that.$api.msg('驳回成功')
  531. this.getList()
  532. }
  533. }
  534. },
  535. }
  536. }
  537. </script>
  538. <style scoped lang="scss">
  539. .container {
  540. padding: 20rpx 20rpx 250rpx 20rpx;
  541. }
  542. .u-form {
  543. background: #fff;
  544. border-radius: 10px;
  545. padding: 0 10px;
  546. .u-form-item {
  547. line-height: 30px;
  548. padding: 5px 0;
  549. }
  550. }
  551. .content {
  552. margin-top: 30rpx;
  553. .top {
  554. display: flex;
  555. justify-content: space-between;
  556. }
  557. .content-item {
  558. border-radius: 20rpx;
  559. background: white;
  560. padding: 40rpx 20rpx;
  561. margin-bottom: 30rpx;
  562. }
  563. .title {
  564. font-size: 32rpx;
  565. font-weight: 600;
  566. color: #333333;
  567. text-align: left;
  568. margin: 20rpx 0;
  569. }
  570. .car-container {
  571. border-bottom: 2rpx solid #EEEEEE;
  572. }
  573. .car-type-item {
  574. font-size: 28rpx;
  575. margin: 20rpx 0;
  576. color: #878C9C;
  577. }
  578. .weightInfoCss {
  579. font-size: 28rpx;
  580. color: #333333;
  581. font-weight: 500;
  582. }
  583. .row {
  584. display: flex;
  585. justify-content: space-between;
  586. // .right,
  587. // input {
  588. // font-size: 28rpx;
  589. // // color: #333333;
  590. // }
  591. }
  592. .money {
  593. font-size: 32rpx;
  594. font-weight: 500;
  595. margin-bottom: 30rpx;
  596. }
  597. .moneyInfo {
  598. color: #22C572;
  599. font-size: 32rpx;
  600. }
  601. }
  602. .bottom-btn {
  603. width: 100%;
  604. position: fixed;
  605. bottom: 0;
  606. display: flex;
  607. z-index: 2;
  608. left: 0;
  609. background-color: #f8f8f8;
  610. flex-direction: column;
  611. .btn1,
  612. .btn2 {
  613. width: 100%;
  614. margin-bottom: 26rpx;
  615. border-radius: 90rpx;
  616. }
  617. .btn1 {
  618. background: white;
  619. color: #00C265;
  620. }
  621. }
  622. .topInfo {
  623. height: 210rpx;
  624. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  625. padding: 30rpx;
  626. .topInfo-item {
  627. height: 150rpx;
  628. background-color: #FFFFFF;
  629. border-radius: 20rpx;
  630. padding: 40rpx;
  631. .logo {
  632. width: 40rpx;
  633. height: 40rpx;
  634. margin-top: 8rpx;
  635. }
  636. .infoText {
  637. font-size: 36rpx;
  638. font-weight: 600;
  639. margin-left: 20rpx;
  640. }
  641. .infoData {
  642. color: #878C9C;
  643. font-size: 26rpx;
  644. margin-top: 10rpx;
  645. }
  646. }
  647. }
  648. .shade {
  649. position: fixed;
  650. top: 0;
  651. left: 0;
  652. height: 100%;
  653. width: 100%;
  654. background: rgba(0, 0, 0, 0.4);
  655. z-index: 3;
  656. .wrap {
  657. position: absolute;
  658. left: 0;
  659. top: 0;
  660. right: 0;
  661. bottom: 0;
  662. margin: auto;
  663. background: #fff;
  664. width: calc(100% - 198rpx);
  665. height: 700rpx;
  666. border-radius: 20rpx;
  667. .alert-top {
  668. padding: 33rpx;
  669. display: flex;
  670. justify-content: center;
  671. align-items: center;
  672. position: relative;
  673. }
  674. .title {
  675. font-size: 32rpx;
  676. font-weight: 600;
  677. color: #333333;
  678. }
  679. .close {
  680. position: absolute;
  681. right: 33rpx;
  682. }
  683. }
  684. }
  685. .cancel,
  686. .confirm {
  687. position: absolute;
  688. display: inline-block;
  689. width: 50%;
  690. text-align: center;
  691. bottom: 0;
  692. padding: 10px;
  693. border-top: 1px solid #eee;
  694. font-size: 34rpx;
  695. }
  696. .cancel {
  697. left: 0;
  698. border-right: 1px solid #eee;
  699. color: #AFB3BF;
  700. }
  701. .confirm {
  702. right: 0;
  703. color: #22C572;
  704. }
  705. .textarea {
  706. margin: 20px auto;
  707. width: 100%;
  708. background: #F9F9FA;
  709. border-radius: 10px;
  710. border: 1px solid #EEEEEE;
  711. font-size: 28rpx;
  712. padding: 10px;
  713. }
  714. .textCss {
  715. display: flex;
  716. justify-content: flex-end;
  717. width: 100%;
  718. text-align: right;
  719. }
  720. .u-textarea-style {
  721. margin: 20rpx;
  722. background: #F9F9FA;
  723. border-radius: 10px;
  724. border: 1px solid #EEEEEE;
  725. padding: 10rpx 20rpx;
  726. position: relative;
  727. height:240px;
  728. /deep/.uni-textarea-textarea{
  729. width: 80%;
  730. }
  731. .right-bottom {
  732. position: absolute;
  733. right: 20rpx;
  734. bottom: 20rpx;
  735. color: #AFB3BF;
  736. }
  737. }
  738. /deep/.u-input__textarea {
  739. height: 300rpx !important;
  740. }
  741. .content2 {
  742. background: white;
  743. margin: 20rpx 0;
  744. border-radius: 20rpx;
  745. padding: 20rpx;
  746. .row {
  747. display: flex;
  748. .left {
  749. display: flex;
  750. align-items: center;
  751. .item1{
  752. position:relative;
  753. .item-content{
  754. background:#22C572;
  755. width: 50px;
  756. height: 50px;
  757. border-radius: 10px;
  758. line-height: 50px;
  759. text-align: center;
  760. font-size: 18px;
  761. color: #fff;
  762. }
  763. .status{
  764. position:absolute;
  765. border-radius: 50%;
  766. padding: 0px 2px;
  767. right: -3px;
  768. bottom: -3px;
  769. background:#fff;
  770. }
  771. .status.success{
  772. border:1px solid rgb(60, 156, 255);
  773. }
  774. .status.error{
  775. border:1px solid rgb(245, 108, 108);
  776. }
  777. .status.question{
  778. border:1px solid #f9ae3d;
  779. }
  780. }
  781. }
  782. .right {
  783. width:80%;
  784. // color: #B0B1B5;
  785. margin-top: 10px;
  786. .right-content{
  787. background:#F2F3F7;
  788. margin-left:10px;
  789. margin-top:10px;
  790. padding:10px;
  791. border-radius:5px;
  792. color: #B0B1B5;
  793. }
  794. .right-item{
  795. display: flex;
  796. justify-content: space-between;
  797. .time{
  798. color:#999;
  799. }
  800. .item2 {
  801. margin-left: 20rpx;
  802. .name {
  803. font-size: 28rpx;
  804. font-weight: 800;
  805. }
  806. .status.success {
  807. color: #6CC48C;
  808. }
  809. .status.error {
  810. color: rgb(245, 108, 108);
  811. }
  812. .status.question {
  813. color: #f9ae3d;
  814. }
  815. }
  816. }
  817. }
  818. }
  819. .row2{
  820. display:flex;
  821. .item-content{
  822. background:#22C572;
  823. width: 30px;
  824. height: 30px;
  825. border-radius: 50%;
  826. line-height: 30px;
  827. text-align: center;
  828. font-size: 12px;
  829. color: #fff;
  830. padding:0 2px;
  831. margin:0 auto;
  832. }
  833. .status{
  834. position:absolute;
  835. top:0;right:0;
  836. }
  837. }
  838. .row-line {
  839. width: 1px;
  840. height: 30px;
  841. background: #F2F2F2;
  842. margin: 10rpx 50rpx;
  843. }
  844. .audit {
  845. margin-top: 20rpx;
  846. }
  847. }
  848. /deep/.uni-textarea-wrapper{
  849. height:200px;
  850. }
  851. </style>