purchasecontract.vue 26 KB

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