purchasecontract.vue 26 KB

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