salecontract.vue 26 KB

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