daichu_details.vue 26 KB

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