daishou_details.vue 27 KB

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