daishou_details.vue 28 KB

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