freight_settlement_approvalcopy.vue 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423
  1. <template>
  2. <view class="container">
  3. <view class="topInfo">
  4. <view class="topInfo-item">
  5. <view class="flex info">
  6. <view class="logo">
  7. <image src="../../../static/img/reject.png" mode="" v-if="dataobj.approveStatus == '已驳回'"
  8. style="height: 40rpx;"></image><!-- 驳回 -->
  9. <image src="../../../static/img/tongguo.png" mode="" v-if="dataobj.approveStatus == '已通过'"
  10. style="height: 40rpx;"></image><!-- 通过 -->
  11. <image src="../../../static/img/daishenhe.png" mode=""
  12. v-if="dataobj.approveStatus == '待决策人审核'|| dataobj.approveStatus == '待财务审核'"
  13. style="height: 40rpx;"></image><!-- 待审核 -->
  14. </view>
  15. <view class="infoText">{{dataobj.approveStatus?dataobj.approveStatus:dataobj.status}}</view>
  16. </view>
  17. <view class="infoData">{{dataobj.updateDate}}</view>
  18. </view>
  19. </view>
  20. <view class="content">
  21. <view class="top">
  22. <view v-if='dataobj.contractFlag=="1"'>合同编号</view>
  23. <view v-if='dataobj.contractFlag=="0"'>移库编号</view>
  24. <view>{{dataobj.contractNo}}</view>
  25. </view>
  26. <view class="person-info">
  27. <view style='display:flex;align-items: center;' class="top1">
  28. <view>收款方</view>
  29. <view class="top_info">{{dataobj.payee}}</view>
  30. </view>
  31. <view style='display:flex;align-items: center;' class="top1">
  32. <view>账号</view>
  33. <view class="top_info">{{dataobj.accountNumber}}</view>
  34. </view>
  35. <view style='display:flex;align-items: center;' class="top1">
  36. <view>开户行</view>
  37. <view class="top_info">{{dataobj.bank}}</view>
  38. </view>
  39. <view style='display:flex;align-items: center;' class="top1">
  40. <view>开户支行</view>
  41. <view class="top_info">{{dataobj.bankBranch}}</view>
  42. </view>
  43. <view style='display:flex;align-items: center;' class="top1">
  44. <view>备注</view>
  45. <view class="top_info">{{dataobj.remark}}</view>
  46. </view>
  47. <view style='display:flex;align-items: center;' class="top1">
  48. <view>合计(元)</view>
  49. <view class="top_info">{{num}}</view>
  50. </view>
  51. <view style='display:flex;align-items: center;' class="top1">
  52. <view>附件</view>
  53. <view>
  54. <view v-if='imglist2.length>0'>
  55. <view style="margin-top: 20rpx;" v-for='item in imglist2'>
  56. <view class="img_item">
  57. <view class="" style="width: 16%;">
  58. <image
  59. v-if="item.type == 'pdf'"
  60. style="width: 40px; height: 40px;" src="../../../static/img/pdf3.png"
  61. mode=""></image>
  62. <image v-else-if="item.type == 'xls'||item.type == 'xlsx'"
  63. style="width: 40px; height: 40px;" src="../../../static/img/excle3.png"
  64. mode=""></image>
  65. <image v-else-if="item.type == 'doc'||item.type == 'docx'"
  66. style="width: 40px; height: 40px;" src="../../../static/img/word3.png"
  67. mode=""></image>
  68. <image v-else style="width: 40px; height: 40px;" :src="item.appendixPath" mode="">
  69. </image>
  70. </view>
  71. <view class="" style="width: 70%;">
  72. <view class="char_css">{{item.appendixName}}</view>
  73. <u-line-progress v-if='item.progressstatus' :striped="true" :percent="item.progress" :striped-active="true"></u-line-progress>
  74. <view class="">{{item.appendixSize}}</view>
  75. </view>
  76. <view class="img_dowload" @click="openDocument(item)">下载</view>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. <view class="car-container">
  84. <view v-for="item1 in list" class="car-container-item">
  85. <view style='display:flex;align-items: center;' class="top1">
  86. <view>运输编号</view>
  87. <view class="top_info">{{item1.taskNo}}</view>
  88. </view>
  89. <view style='display:flex;align-items: center;' class="top1">
  90. <view>发货地</view>
  91. <view class="top_info">
  92. {{item1.startPrivate}}{{item1.startCity}}{{item1.startArea}}{{item1.startDetailedAddress}}
  93. </view>
  94. </view>
  95. <view style='display:flex;align-items: center;' class="top1">
  96. <view>收货地</view>
  97. <view class="top_info">
  98. {{item1.endPrivate}}{{item1.endCity}}{{item1.endArea}}{{item1.endDetailedAddress}}</view>
  99. </view>
  100. <view v-for="item in item1.tranSettlementReportList" class="car-container-item">
  101. <view class="car-num title" v-if="item.tranTypeKey== '1'">{{item.carNo}} ({{item.tranCarNo}})
  102. </view>
  103. <view class="car-num title" v-if="item.tranTypeKey== '2'">车厢号{{item.boxNo}}</view>
  104. <view class="car-num title" v-if="item.tranTypeKey== '3'&&item.shipType== '散船'">
  105. 仓位号{{item.boxNo}}
  106. </view>
  107. <view class="car-num title" v-if="item.tranTypeKey== '3'&&item.shipType== '集装箱'">
  108. 箱号{{item.boxNo}}
  109. </view>
  110. <view class="car-type-item">
  111. <view class="left">装</view>
  112. <view class="textInfo">{{item.loadingWeight}}吨</view>
  113. </view>
  114. <view class="car-type-item">
  115. <view class="center">卸</view>
  116. <view class="textInfo">{{item.unloadingWeight}}吨</view>
  117. </view>
  118. <view class="car-type-item">
  119. <view class="right">结</view>
  120. <view class="textInfo">{{item.settlementWeight}}吨</view>
  121. </view>
  122. <view class="car-type-item">
  123. <view class="left">预</view>
  124. <view class="textInfo">{{item.transportPrice}}元/吨</view>
  125. </view>
  126. <view class="car-type-item">
  127. <view class="center">算</view>
  128. <view class="textInfo">{{item.settlementPrice}}元/吨</view>
  129. </view>
  130. <view class="car-type-item">
  131. <view v-if='item.deductionAmount>=0' class="right">扣</view>
  132. <view v-if='item.deductionAmount<0' class="right">加</view>
  133. <view v-if='item.deductionAmount<0' class="textInfo">
  134. {{item.deductionAmount?-item.deductionAmount:0}}元</view>
  135. <view v-if='item.deductionAmount>=0' class="textInfo">
  136. {{item.deductionAmount?-item.deductionAmount:0}}元</view>
  137. </view>
  138. <view class="car-type-item">
  139. <view class="left">服</view>
  140. <view class="textInfo">{{item.serviceCharge}}元</view>
  141. </view>
  142. <view class="car-type-item">
  143. <view class="center">税</view>
  144. <view class="textInfo">{{item.taxPoint}}元</view>
  145. </view>
  146. <view class="car-type-item">
  147. <view class="right">实</view>
  148. <view class="textInfo">{{item.amountActuallyPaid}}元</view>
  149. </view>
  150. <view class="car-type-item">
  151. <view class="left">合</view>
  152. <view class="textInfo">{{item.totalPayable}}元</view>
  153. </view>
  154. </view>
  155. </view>
  156. </view>
  157. </view>
  158. <u-form ref="uForm">
  159. <view class="form_top">流程</view>
  160. <view class="content2">
  161. <view v-for="(item,index) in auditList" :key='index' class="audit">
  162. <view class="row" v-if='item.desc!="_PLACEHOLDER_"'>
  163. <view class="row-left">
  164. <view class="item1">
  165. <view class="item-content">{{item.operatorTitle}}</view>
  166. <view v-if="item.status=='success'" class='status success'>
  167. <u-icon name="checkmark" color="#2979ff" size="24"></u-icon>
  168. </view>
  169. <view v-if="item.status=='error'" class='status error'>
  170. <u-icon name="close" color="rgb(245, 108, 108)" size="24"></u-icon>
  171. </view>
  172. <view v-if="item.status=='question'" class='status question'>
  173. <u-icon name="question" color="#f9ae3d" size="24"></u-icon>
  174. </view>
  175. </view>
  176. </view>
  177. <view class="row-right">
  178. <view class="right-item">
  179. <view class="item2">
  180. <view class="name">{{item.desc}}
  181. </view>
  182. <!-- <view class='time'>{{item.updateDate}}</view> -->
  183. <view v-if="item.status=='success'" class="status success">
  184. {{item.commonStaffs1?item.staffscontent:item.operatorName}}<text
  185. v-if='!item.commonStaffs1&&index!=0'>已审核</text>
  186. </view>
  187. <view v-if="item.status=='error'" class="status error">
  188. {{item.commonStaffs1?item.staffscontent:item.operatorName}}<text
  189. v-if='!item.commonStaffs1'>{{item.workflowHistoricTasks ? "已驳回":''}}</text>
  190. </view>
  191. <view v-if="item.status=='question'" class="status question">
  192. {{item.commonStaffs1?item.staffscontent:''}}<text
  193. v-if='!item.commonStaffs1'>未审核</text>
  194. </view>
  195. <!-- <view class="status success">吕波(已审核)</view> -->
  196. </view>
  197. <view v-if='index==0||item.workflowHistoricTasks&&item.workflowHistoricTasks.length>0'
  198. class='time'>
  199. {{item.updateDate}}
  200. </view>
  201. </view>
  202. <view v-if='item.auditMind' class="right-content">
  203. {{item.auditMind}}
  204. </view>
  205. </view>
  206. <view v-if='item.commonStaffs1' class="right">
  207. <u-icon @click='showcontent(item)' :name="item.showflow?'arrow-up':'arrow-down'" size="28">
  208. </u-icon>
  209. </view>
  210. </view>
  211. <view v-if='item.showflow' style='padding:10px 0 0 50px;'>
  212. <view class='row2'>
  213. <view v-for='item1 in item.commonStaffs1' style='margin:5px;text-align:center;'>
  214. <view class="item-content">
  215. <u-icon v-if='item1.status' name="checkmark" color="#fff" size="14"></u-icon>
  216. <u-icon v-if='!item1.status' name="question" color="#f9ae3d" size="14"></u-icon>
  217. </view>
  218. <view class="name">{{item1.staffName}}</view>
  219. </view>
  220. </view>
  221. </view>
  222. <view class="row-line" v-if="index!= auditList.length - 1 &&item.desc!='_PLACEHOLDER_'"></view>
  223. </view>
  224. </view>
  225. </u-form>
  226. <view v-if='show' class="shade">
  227. <view class="wrap">
  228. <view class="alert-top">
  229. <view class="title">
  230. {{title}}
  231. </view>
  232. <u-icon name="close" class="close" color="#8890B1" @click="close()"></u-icon>
  233. </view>
  234. <view class="u-textarea-style">
  235. <view class="right-bottom">
  236. {{auditMind.length}}/1000个字
  237. </view>
  238. <u-input class="" v-model='auditMind' placeholder="请在此输入审核意见" type="textarea" height="414"
  239. maxlength="1000" />
  240. </view>
  241. <view @click='close()' class="cancel">取消</view>
  242. <view @click='passSubmit()' class="confirm">确定</view>
  243. </view>
  244. </view>
  245. <u-toast ref="uToast" />
  246. <view style='padding:10px;' class='flex bottom-btn'>
  247. <u-button v-if='isSHowBtn' @click='reject' type="error" class="btn1" hover-class='none'>驳回</u-button>
  248. <u-button v-if='isSHowBtn' @click='pass' type="success" class="btn2">通过</u-button>
  249. </view>
  250. </view>
  251. </template>
  252. <script>
  253. import helper from '@/common/helper.js';
  254. export default {
  255. data() {
  256. return {
  257. isSHowBtn: true,
  258. currentPage: 1,
  259. pageSize: 10,
  260. list: {
  261. approveStatus: "",
  262. },
  263. dataobj: {},
  264. title: '',
  265. num: 0,
  266. show: false,
  267. height: 200,
  268. auditList: [],
  269. auditMind: '',
  270. autoHeight: true,
  271. border: false,
  272. everyCheck: '',
  273. customerName: "", //客户
  274. shippingAddress: "", //发货地址
  275. receivingAddress: "", //收货地址
  276. imglist: [], //存
  277. imglist2: [], //展示
  278. }
  279. },
  280. onBackPress(e) {
  281. if (this.everyCheck) {
  282. uni.navigateTo({
  283. url: "/pages/task/my_task"
  284. })
  285. return true;
  286. }
  287. },
  288. onLoad(options) {
  289. this.id = options.id
  290. this.everyCheck = uni.getStorageSync("everyTask")
  291. this.isSHowBtn = options.isShowbtn
  292. this.getList()
  293. },
  294. watch: {
  295. imglist: {
  296. handler: function() {
  297. this.$api.doRequest('get', 'appendix/query/getFileList', {
  298. appendixIds: this.imglist.toString()
  299. }).then(res => {
  300. this.imglist2 = res.data.data
  301. for (let i = 0; i < this.imglist2.length; i++) {
  302. this.imglist2[i].progressstatus=false
  303. this.imglist2[i].progress=0
  304. if (this.imglist2[i].appendixName) {
  305. this.imglist2[i].type = this.imglist2[i].appendixName.split(".")[1]
  306. }
  307. }
  308. })
  309. },
  310. deep: true
  311. }
  312. },
  313. methods: {
  314. openDocument(item) {
  315. this.$set(item,'progressstatus',true)
  316. this.$forceUpdate()
  317. const downloadTask =uni.downloadFile({
  318. url: item.appendixPath,
  319. success: function(res) {
  320. var filePath = res.tempFilePath;
  321. if(item.type=='pdf'||item.type == 'xls'||item.type == 'xlsx'||item.type == 'doc'||item.type == 'docx'){
  322. uni.openDocument({
  323. filePath: filePath,
  324. showMenu: true,
  325. success: function(res) {
  326. console.log('打开文档成功');
  327. }
  328. });
  329. }else{
  330. uni.previewImage({
  331. current: 0, //预览图片的下标
  332. urls: [item.appendixPath]
  333. })
  334. }
  335. }
  336. });
  337. downloadTask.onProgressUpdate((res) => {
  338. this.$set(item,'progress',res.progress)
  339. this.$forceUpdate()
  340. console.log('下载进度' + res.progress);
  341. console.log('已经下载的数据长度' + res.totalBytesWritten);
  342. console.log('预期需要下载的数据总长度' + res.totalBytesExpectedToWrite);
  343. // 满足测试条件,取消下载任务。
  344. // if (res.progress > 50) {
  345. // downloadTask.abort();
  346. // }
  347. });
  348. },
  349. getList() {
  350. var that = this
  351. this.$api.doRequest('get', '/expenseInfo/ExpenseInfo', {
  352. id: this.id
  353. }).then(res => {
  354. if (res.data.code == 200) {
  355. this.dataobj = res.data.data
  356. if(this.dataobj.freightAddressUrl){
  357. this.imglist = this.dataobj.freightAddressUrl.split(',')
  358. }
  359. if (res.data.data.tranTaskInfoList.length > 0) {
  360. this.num = 0
  361. for (var i = 0; i < res.data.data.tranTaskInfoList.length; i++) {
  362. if (res.data.data.tranTaskInfoList[i].tranSettlementReportList) {
  363. var data = res.data.data.tranTaskInfoList[i].tranSettlementReportList
  364. for (var q = 0; q < data.length; q++) {
  365. if (data[q].totalPayable) {
  366. this.num += data[q].totalPayable
  367. }
  368. }
  369. }
  370. }
  371. }
  372. this.num = this.num.toFixed(2)
  373. this.list = res.data.data.tranTaskInfoList
  374. // console.log(this.list, 124)
  375. // 查流程
  376. this.$api.doRequest('get', '/workflow/query/workflowDefinitions', {
  377. businessCode: 'FEIYONGYUNFEI-APPROVE',
  378. tmpCompId: uni.getStorageSync('pcUserInfo').compId
  379. }).then(res1 => {
  380. this.$api.doRequest('get', '/commonUser/getHis', {
  381. workflowId: res1.data.data[0].id,
  382. businessKey: this.id,
  383. // branch:that.list[0].jointVentureParties?that.list[0].jointVentureParties:'zt'
  384. }).then(response => {
  385. uni.hideLoading()
  386. for (let i = 0; i < response.data.data.length; i++) {
  387. this.$set(response.data.data[i], 'status', 'question')
  388. console.log(response.data.data[i].workflowHistoricTasks, i)
  389. if (response.data.data[i].commonStaffs) {
  390. response.data.data[i].showflow = false
  391. response.data.data[i].operatorTitle = response.data.data[i]
  392. .desc.substring(0, 2)
  393. response.data.data[i].operatorName = response.data.data[i]
  394. .desc
  395. response.data.data[i].staffscontent = '共' + response.data
  396. .data[i].commonStaffs.length + '人,当前审核' + response.data
  397. .data[i].workflowHistoricTasks.length + '人'
  398. if (response.data.data[i].workflowHistoricTasks && response
  399. .data.data[i].workflowHistoricTasks.length > 0) {
  400. if (response.data.data[i].workflowHistoricTasks
  401. .length != response.data.data[i].commonStaffs
  402. .length) {
  403. // response.data.data[i].status='question'
  404. this.$set(response.data.data[i], 'status',
  405. 'question')
  406. } else {
  407. this.$set(response.data.data[i], 'status',
  408. 'success')
  409. // response.data.data[i].status='success'
  410. }
  411. response.data.data[i].workflowlen = response.data.data[
  412. i].workflowHistoricTasks.length
  413. var workflowdata = response.data.data[i]
  414. .workflowHistoricTasks
  415. var staffsdata = response.data.data[i].commonStaffs
  416. for (let q = 0; q < staffsdata.length; q++) {
  417. staffsdata[q].status = false
  418. staffsdata[q].staffTitle = staffsdata[q].staffName
  419. for (let k = 0; k < workflowdata.length; k++) {
  420. if (staffsdata[q].staffId == workflowdata[k]
  421. .operatorId) {
  422. staffsdata[q].status = true
  423. }
  424. }
  425. }
  426. }
  427. response.data.data[i].commonStaffs1 = response.data.data[i]
  428. .commonStaffs
  429. } else {
  430. if (response.data.data[i].workflowHistoricTasks && response
  431. .data.data[i].workflowHistoricTasks.length > 0) {
  432. var len = response.data.data[i].workflowHistoricTasks
  433. .length - 1
  434. if (response.data.data[i].workflowHistoricTasks[len]
  435. .approved) {
  436. this.$set(response.data.data[i], 'status',
  437. 'success')
  438. } else {
  439. this.$set(response.data.data[i], 'status', 'error')
  440. }
  441. response.data.data[i].operatorTitle = response.data
  442. .data[i].workflowHistoricTasks[len].operatorName
  443. .substring(response.data.data[i]
  444. .workflowHistoricTasks[0].operatorName.length -
  445. 2)
  446. response.data.data[i].operatorName = response.data
  447. .data[i].workflowHistoricTasks[len].operatorName
  448. var time = new Date(response.data.data[i]
  449. .workflowHistoricTasks[len].claimTime)
  450. .getTime()
  451. response.data.data[i].updateDate = this.$u.timeFormat(
  452. time, 'mm.dd hh:MM')
  453. response.data.data[i].auditMind = response.data.data[i]
  454. .workflowHistoricTasks[len].auditMind
  455. } else {
  456. this.$set(response.data.data[i], 'status', 'question')
  457. // response.data.data[i].status='question'
  458. if (response.data.data[i].desc == '总经理助理审核') {
  459. response.data.data[i].operatorTitle = '总助'
  460. } else if (response.data.data[i].desc == '杜大光审核') {
  461. response.data.data[i].operatorTitle = '大光'
  462. } else {
  463. response.data.data[i].operatorTitle = response.data
  464. .data[i].desc.substring(0, 2)
  465. }
  466. response.data.data[i].operatorName = response.data
  467. .data[i].desc
  468. var time1 = new Date(response.data.data[i].updateDate)
  469. .getTime()
  470. response.data.data[i].updateDate = this.$u.timeFormat(
  471. time1, 'mm.dd hh:MM')
  472. response.data.data[i].auditMind = ''
  473. }
  474. }
  475. }
  476. console.log(response.data.data)
  477. for (let i = 0; i < response.data.data.length; i++) {
  478. if (response.data.data[i].status == "error") {
  479. this.auditCheck = "error"
  480. break;
  481. } else if (response.data.data[i].status == "question") {
  482. this.auditCheck = "question"
  483. break;
  484. } else {
  485. this.auditCheck = "success"
  486. }
  487. }
  488. this.auditList = response.data.data
  489. var time2 = new Date(this.dataobj.createDate).getTime()
  490. var time3 = this.$u.timeFormat(time2, 'mm.dd hh:MM')
  491. this.auditList.unshift({
  492. operatorTitle: this.dataobj.creater.substring(0, 2),
  493. operatorName: this.dataobj.creater,
  494. updateDate: time3,
  495. auditMind: '',
  496. desc: '发起申请',
  497. showflow: false,
  498. commonStaffs1: null,
  499. commonStaffs: null,
  500. workflowHistoricTasks: [],
  501. status: 'success'
  502. })
  503. })
  504. })
  505. }
  506. })
  507. // this.$api.doRequest('get', '/tranSettlementReport/getInfo', {
  508. // id: this.id
  509. // }).then(res => {
  510. // this.contractNo = res.data.data.contractNo
  511. // this.carId = res.data.data.carId
  512. // this.customerName = res.data.data.customer
  513. // this.shippingAddress = res.data.data.send
  514. // this.receivingAddress = res.data.data.receive
  515. // if (res.data.code == 200) {
  516. // this.$api.doRequest('get', '/tranSettlementReport/getTranSettlementReport', {
  517. // compId: "2710b21efc1e4393930c5dc800010dc4",
  518. // currentPage: this.currentPage,
  519. // pageSize: this.pageSize,
  520. // contractNo: this.contractNo,
  521. // carId: this.carId,
  522. // }).then(res => {
  523. // if (res.data.code == 200) {
  524. // this.list = res.data.data.records[0]
  525. // console.log(this.list, 124)
  526. // }
  527. // })
  528. // }
  529. // })
  530. },
  531. close() {
  532. this.show = false
  533. },
  534. pass() {
  535. this.show = true
  536. this.title = '审核意见(通过)'
  537. },
  538. reject() {
  539. this.show = true
  540. this.title = '驳回原因(驳回)'
  541. },
  542. // 驳回
  543. rejectSubmit() {
  544. var that = this
  545. if (!this.auditMind) {
  546. this.$api.msg('驳回原因不能为空!')
  547. } else {
  548. this.show = false
  549. uni.showModal({
  550. content: "是否确定驳回?",
  551. showCancel: true,
  552. confirmText: '确定',
  553. success: function(res) {
  554. if (res.confirm) {
  555. that.audit(that.dataobj, 0, false, true, that.auditMind)
  556. }
  557. }
  558. })
  559. }
  560. },
  561. //通过
  562. passSubmit() {
  563. var that = this
  564. if (this.title == '驳回原因(驳回)') {
  565. this.rejectSubmit()
  566. } else {
  567. this.show = false
  568. uni.showModal({
  569. content: "是否确定通过?",
  570. showCancel: true,
  571. confirmText: '确定',
  572. success: function(res) {
  573. if (res.confirm) {
  574. that.audit(that.dataobj, 0, true, 2, that.auditMind)
  575. }
  576. }
  577. })
  578. }
  579. },
  580. //审核方法
  581. audit(list, index, status, status2, reason) {
  582. uni.showLoading({
  583. title: "审核中"
  584. })
  585. let that = this
  586. if (this.list) {
  587. this.$api.doRequest('post', '/newWorkflow/api/handle', {
  588. taskId: list.taskId,
  589. approved: status,
  590. auditMind: this.auditMind,
  591. needReapply: status2 != undefined ? true : false,
  592. }).then(res => {
  593. if (status == true) {
  594. this.$api.msg('通过成功')
  595. } else if (status == false) {
  596. this.$api.msg('驳回成功')
  597. }
  598. setTimeout(function() {
  599. if (that.everyCheck) {
  600. helper.setAudit(that.list[0])
  601. } else {
  602. uni.navigateBack()
  603. }
  604. }, 1000);
  605. })
  606. }
  607. },
  608. }
  609. }
  610. </script>
  611. <style scoped lang="scss">
  612. .container {
  613. margin: 10rpx;
  614. padding: 20rpx 20rpx 230rpx 20rpx;
  615. }
  616. .u-form {
  617. margin-bottom: 20rpx;
  618. background: #fff;
  619. border-radius: 10px;
  620. padding: 30rpx 10px;
  621. .u-form-item {
  622. line-height: 30px;
  623. padding: 0px 0;
  624. font-size: 26rpx;
  625. color: #878C9C;
  626. }
  627. }
  628. .content {
  629. .top {
  630. display: flex;
  631. justify-content: space-between;
  632. border-radius: 20rpx;
  633. background: white;
  634. padding: 30rpx 20rpx;
  635. font-size: 36rpx;
  636. margin-top: 20rpx;
  637. }
  638. .top1 {
  639. // display: flex;
  640. justify-content: space-between;
  641. align-items: center;
  642. border-radius: 20rpx;
  643. background: white;
  644. padding: 10rpx 20rpx;
  645. font-size: 30rpx;
  646. margin-top: 20rpx;
  647. }
  648. .top_info {
  649. margin: 10rpx 0;
  650. width: 70%;
  651. text-align: right;
  652. }
  653. .title {
  654. font-size: 28rpx;
  655. font-weight: 600;
  656. color: #333333;
  657. text-align: left;
  658. margin-bottom: 30rpx;
  659. }
  660. .car-container {
  661. // border-bottom: 2rpx solid #EEEEEE;
  662. }
  663. .car-container-item {
  664. background: white;
  665. padding: 10rpx 20rpx;
  666. border-radius: 20rpx;
  667. margin: 20rpx 0;
  668. }
  669. .car-type-item {
  670. display: inline-flex;
  671. // justify-content: center;
  672. width: 33.33%;
  673. margin-bottom: 40rpx;
  674. }
  675. .title {
  676. font-size: 36rpx;
  677. }
  678. }
  679. .bottom-btn {
  680. width: 100%;
  681. position: fixed;
  682. bottom: 0;
  683. display: flex;
  684. z-index: 2;
  685. left: 0;
  686. background-color: #f8f8f8;
  687. flex-direction: column;
  688. .btn1,
  689. .btn2 {
  690. width: 100%;
  691. margin-bottom: 26rpx;
  692. border-radius: 90rpx;
  693. }
  694. .btn1 {
  695. background: white;
  696. color: #00C265;
  697. }
  698. }
  699. .submit {
  700. width: 40%;
  701. background: #22C572;
  702. border-radius: 10rpx;
  703. }
  704. .left {
  705. background: #FEECE6;
  706. color: #FE6430;
  707. }
  708. .center {
  709. background: #EBEEFA;
  710. color: #5C76DF;
  711. }
  712. .right {
  713. background: #E9F8F0;
  714. color: #22C572;
  715. }
  716. .left,
  717. .center,
  718. .right {
  719. width: 50rpx;
  720. height: 50rpx;
  721. text-align: center;
  722. line-height: 50rpx;
  723. border-radius: 10rpx;
  724. }
  725. .textInfo {
  726. margin: 6rpx 0 0 10rpx;
  727. }
  728. .topInfo {
  729. height: 210rpx;
  730. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  731. padding: 30rpx;
  732. .topInfo-item {
  733. height: 158rpx;
  734. background-color: #FFFFFF;
  735. border-radius: 20rpx;
  736. padding: 40rpx;
  737. .logo {
  738. width: 40rpx;
  739. height: 40rpx;
  740. margin-top: 8rpx;
  741. }
  742. .infoText {
  743. font-size: 36rpx;
  744. font-weight: 600;
  745. margin-left: 20rpx;
  746. }
  747. .infoData {
  748. color: #878C9C;
  749. font-size: 26rpx;
  750. margin-top: 10rpx;
  751. }
  752. }
  753. }
  754. .shade {
  755. position: fixed;
  756. top: 0;
  757. left: 0;
  758. height: 100%;
  759. width: 100%;
  760. background: rgba(0, 0, 0, 0.4);
  761. z-index: 3;
  762. .wrap {
  763. position: absolute;
  764. left: 0;
  765. top: 0;
  766. right: 0;
  767. bottom: 0;
  768. margin: auto;
  769. background: #fff;
  770. width: calc(100% - 198rpx);
  771. height: 700rpx;
  772. border-radius: 20rpx;
  773. .alert-top {
  774. padding: 33rpx;
  775. display: flex;
  776. justify-content: center;
  777. align-items: center;
  778. position: relative;
  779. }
  780. .title {
  781. font-size: 32rpx;
  782. font-weight: 600;
  783. color: #333333;
  784. }
  785. .close {
  786. position: absolute;
  787. right: 33rpx;
  788. }
  789. }
  790. }
  791. .cancel,
  792. .confirm {
  793. position: absolute;
  794. display: inline-block;
  795. width: 50%;
  796. text-align: center;
  797. bottom: 0;
  798. padding: 10px;
  799. border-top: 1px solid #eee;
  800. font-size: 34rpx;
  801. }
  802. .cancel {
  803. left: 0;
  804. border-right: 1px solid #eee;
  805. color: #AFB3BF;
  806. }
  807. .confirm {
  808. right: 0;
  809. color: #22C572;
  810. }
  811. .u-textarea-style {
  812. margin: 20rpx;
  813. background: #F9F9FA;
  814. border-radius: 10px;
  815. border: 1px solid #EEEEEE;
  816. padding: 10rpx 20rpx;
  817. position: relative;
  818. .right-bottom {
  819. position: absolute;
  820. right: 20rpx;
  821. bottom: 20rpx;
  822. color: #AFB3BF;
  823. }
  824. }
  825. /deep/.u-input__textarea {
  826. height: 300rpx !important;
  827. }
  828. .person-info {
  829. background: white;
  830. padding: 20rpx 0;
  831. border-radius: 20rpx;
  832. // margin-bottom: 50rpx;
  833. margin: 20rpx 0;
  834. .tit {
  835. font-size: 36rpx;
  836. }
  837. }
  838. .c-row {
  839. display: -webkit-box;
  840. display: -webkit-flex;
  841. display: flex;
  842. -webkit-box-align: center;
  843. -webkit-align-items: center;
  844. align-items: center;
  845. padding: 20rpx 30rpx;
  846. position: relative;
  847. }
  848. .c-row1 {
  849. // display: -webkit-box;
  850. // display: -webkit-flex;
  851. // display: flex;
  852. -webkit-box-align: center;
  853. -webkit-align-items: center;
  854. align-items: center;
  855. padding: 20rpx 30rpx;
  856. position: relative;
  857. }
  858. .container {
  859. padding: 20rpx 20rpx 250rpx 20rpx;
  860. }
  861. .u-form {
  862. margin-bottom: 20rpx;
  863. background: #fff;
  864. border-radius: 10px;
  865. padding: 30rpx 10px;
  866. .u-form-item {
  867. line-height: 30px;
  868. padding: 0px 0;
  869. font-size: 26rpx;
  870. color: #878C9C;
  871. }
  872. }
  873. .content {
  874. margin-top: 30rpx;
  875. .top {
  876. display: flex;
  877. justify-content: space-between;
  878. }
  879. .content-item {
  880. border-radius: 20rpx;
  881. background: white;
  882. padding: 40rpx 20rpx;
  883. margin-bottom: 30rpx;
  884. }
  885. .title {
  886. font-size: 32rpx;
  887. font-weight: 600;
  888. color: #333333;
  889. text-align: left;
  890. margin: 20rpx 0;
  891. }
  892. .car-container {
  893. border-bottom: 2rpx solid #EEEEEE;
  894. }
  895. .car-type-item {
  896. font-size: 28rpx;
  897. margin: 20rpx 0;
  898. color: #878C9C;
  899. }
  900. .weightInfoCss {
  901. font-size: 28rpx;
  902. color: #333333;
  903. font-weight: 500;
  904. }
  905. .row {
  906. display: flex;
  907. justify-content: space-between;
  908. // .right,
  909. // input {
  910. // font-size: 28rpx;
  911. // // color: #333333;
  912. // }
  913. }
  914. .money {
  915. font-size: 32rpx;
  916. font-weight: 500;
  917. margin-bottom: 30rpx;
  918. }
  919. .moneyInfo {
  920. color: #22C572;
  921. font-size: 32rpx;
  922. }
  923. }
  924. .bottom-btn {
  925. width: 100%;
  926. position: fixed;
  927. bottom: 0;
  928. display: flex;
  929. z-index: 2;
  930. left: 0;
  931. background-color: #f8f8f8;
  932. flex-direction: column;
  933. .btn1,
  934. .btn2 {
  935. width: 100%;
  936. margin-bottom: 26rpx;
  937. border-radius: 90rpx;
  938. }
  939. .btn1 {
  940. background: white;
  941. color: #00C265;
  942. }
  943. }
  944. .topInfo {
  945. height: 210rpx;
  946. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  947. padding: 30rpx;
  948. .topInfo-item {
  949. height: 150rpx;
  950. background-color: #FFFFFF;
  951. border-radius: 20rpx;
  952. padding: 40rpx;
  953. .logo {
  954. width: 40rpx;
  955. height: 40rpx;
  956. margin-top: 8rpx;
  957. }
  958. .infoText {
  959. font-size: 36rpx;
  960. font-weight: 600;
  961. margin-left: 20rpx;
  962. }
  963. .infoData {
  964. color: #878C9C;
  965. font-size: 26rpx;
  966. margin-top: 10rpx;
  967. }
  968. }
  969. }
  970. .shade {
  971. position: fixed;
  972. top: 0;
  973. left: 0;
  974. height: 100%;
  975. width: 100%;
  976. background: rgba(0, 0, 0, 0.4);
  977. z-index: 3;
  978. .wrap {
  979. position: absolute;
  980. left: 0;
  981. top: 0;
  982. right: 0;
  983. bottom: 0;
  984. margin: auto;
  985. background: #fff;
  986. width: calc(100% - 198rpx);
  987. height: 700rpx;
  988. border-radius: 20rpx;
  989. .alert-top {
  990. padding: 33rpx;
  991. display: flex;
  992. justify-content: center;
  993. align-items: center;
  994. position: relative;
  995. }
  996. .title {
  997. font-size: 32rpx;
  998. font-weight: 600;
  999. color: #333333;
  1000. }
  1001. .close {
  1002. position: absolute;
  1003. right: 33rpx;
  1004. }
  1005. }
  1006. }
  1007. .cancel,
  1008. .confirm {
  1009. position: absolute;
  1010. display: inline-block;
  1011. width: 50%;
  1012. text-align: center;
  1013. bottom: 0;
  1014. padding: 10px;
  1015. border-top: 1px solid #eee;
  1016. font-size: 34rpx;
  1017. }
  1018. .cancel {
  1019. left: 0;
  1020. border-right: 1px solid #eee;
  1021. color: #AFB3BF;
  1022. }
  1023. .confirm {
  1024. right: 0;
  1025. color: #22C572;
  1026. }
  1027. .textarea {
  1028. margin: 18rpx auto;
  1029. width: 100%;
  1030. background: #F9F9FA;
  1031. border-radius: 10px;
  1032. border: 1px solid #EEEEEE;
  1033. font-size: 28rpx;
  1034. padding: 10px;
  1035. }
  1036. .textCss {
  1037. display: flex;
  1038. justify-content: flex-end;
  1039. width: 100%;
  1040. text-align: right;
  1041. color: #333333;
  1042. }
  1043. .u-textarea-style {
  1044. margin: 20rpx;
  1045. background: #F9F9FA;
  1046. border-radius: 10px;
  1047. border: 1px solid #EEEEEE;
  1048. padding: 10rpx 20rpx;
  1049. position: relative;
  1050. height: 240px;
  1051. /deep/.uni-textarea-textarea {
  1052. width: 80%;
  1053. }
  1054. .right-bottom {
  1055. position: absolute;
  1056. right: 20rpx;
  1057. bottom: 20rpx;
  1058. color: #AFB3BF;
  1059. }
  1060. }
  1061. /deep/.u-input__textarea {
  1062. height: 300rpx !important;
  1063. }
  1064. .content2 {
  1065. background: white;
  1066. margin: 20rpx 0;
  1067. border-radius: 20rpx;
  1068. padding: 20rpx;
  1069. .row {
  1070. display: flex;
  1071. .row-left {
  1072. display: flex;
  1073. align-items: center;
  1074. .item1 {
  1075. position: relative;
  1076. .item-content {
  1077. background: #617AE0;
  1078. width: 44px;
  1079. height: 44px;
  1080. border-radius: 22px;
  1081. line-height: 44px;
  1082. text-align: center;
  1083. font-size: 15px;
  1084. color: #fff;
  1085. }
  1086. .status {
  1087. position: absolute;
  1088. border-radius: 50%;
  1089. padding: 0px 2px;
  1090. right: -3px;
  1091. bottom: -3px;
  1092. background: #fff;
  1093. }
  1094. .status.success {
  1095. border: 1px solid rgb(60, 156, 255);
  1096. }
  1097. .status.error {
  1098. border: 1px solid rgb(245, 108, 108);
  1099. }
  1100. .status.question {
  1101. border: 1px solid #f9ae3d;
  1102. }
  1103. }
  1104. }
  1105. .row-right {
  1106. width: 80%;
  1107. // color: #B0B1B5;
  1108. margin-top: 10px;
  1109. .right-content {
  1110. background: #F2F3F7;
  1111. margin-left: 10px;
  1112. margin-top: 10px;
  1113. padding: 10px;
  1114. border-radius: 5px;
  1115. color: #B0B1B5;
  1116. }
  1117. .right-item {
  1118. display: flex;
  1119. justify-content: space-between;
  1120. .time {
  1121. color: #999;
  1122. }
  1123. .item2 {
  1124. margin-left: 20rpx;
  1125. margin-top: -7px;
  1126. .name {
  1127. font-size: 28rpx;
  1128. font-weight: 800;
  1129. margin-bottom: 4px;
  1130. }
  1131. .status.success {
  1132. color: #6CC48C;
  1133. }
  1134. .status.error {
  1135. color: rgb(245, 108, 108);
  1136. }
  1137. .status.question {
  1138. color: #f9ae3d;
  1139. }
  1140. }
  1141. }
  1142. }
  1143. }
  1144. .row2 {
  1145. display: flex;
  1146. .item-content {
  1147. background: #22C572;
  1148. width: 30px;
  1149. height: 30px;
  1150. border-radius: 50%;
  1151. line-height: 30px;
  1152. text-align: center;
  1153. font-size: 12px;
  1154. color: #fff;
  1155. padding: 0 2px;
  1156. margin: 0 auto;
  1157. }
  1158. .status {
  1159. position: absolute;
  1160. top: 0;
  1161. right: 0;
  1162. }
  1163. }
  1164. .row-line {
  1165. width: 1px;
  1166. height: 30px;
  1167. background: #F2F2F2;
  1168. margin: 10rpx 50rpx;
  1169. }
  1170. .audit {
  1171. margin-top: 20rpx;
  1172. }
  1173. }
  1174. .form_top {
  1175. border-bottom: 1px solid #C7CAD6;
  1176. padding-bottom: 10px;
  1177. font-size: 30rpx;
  1178. font-weight: 600;
  1179. }
  1180. .form_view {
  1181. margin: 20rpx 0;
  1182. border-radius: 20rpx;
  1183. background: #F9F9FA;
  1184. padding: 30rpx 20rpx;
  1185. }
  1186. .label_css {
  1187. font-size: 26rpx;
  1188. color: #878C9C;
  1189. }
  1190. .input_css {
  1191. font-size: 20rpx;
  1192. }
  1193. /deep/.uni-textarea-wrapper {
  1194. height: 200px;
  1195. }
  1196. // .fujian_title{
  1197. // font-size: 34rpx;
  1198. // margin-top: 20px;
  1199. // font-weight: 600;
  1200. // // margin-left: 10px;
  1201. // }
  1202. .headInfo {
  1203. height: 100px;
  1204. background-color: #FFFFFF;
  1205. margin-bottom: 20rpx;
  1206. border-radius: 10px;
  1207. padding: 30rpx 10px;
  1208. display: flex;
  1209. .headInfo_left {
  1210. width: 10%;
  1211. line-height: 60px;
  1212. text-align: center;
  1213. }
  1214. .headInfo_middle {
  1215. width: 70%;
  1216. padding-left: 10px;
  1217. }
  1218. .headInfo_right {
  1219. width: 20%;
  1220. line-height: 60px;
  1221. .char_a {
  1222. color: #22C572;
  1223. }
  1224. .char_b {
  1225. color: #FE6430;
  1226. }
  1227. .char_c {
  1228. color: #FB2323;
  1229. }
  1230. .char_a,
  1231. .char_b,
  1232. .char_c {
  1233. font-size: 16px;
  1234. }
  1235. }
  1236. .adopt {
  1237. position: absolute;
  1238. right: 30px;
  1239. top: 60px;
  1240. .adopt_img {
  1241. width: 90px;
  1242. height: 90px;
  1243. }
  1244. }
  1245. .headInfo_title {
  1246. font-size: 19px;
  1247. color: #333333;
  1248. font-weight: 600;
  1249. }
  1250. .headInfo_No {
  1251. color: #878C9C;
  1252. font-size: 13px;
  1253. margin-top: 10px;
  1254. }
  1255. }
  1256. .img_item {
  1257. display: flex;
  1258. width: 100%;
  1259. margin: 10px 0;
  1260. padding: 0 10rpx;
  1261. .imgsign {
  1262. width: 25px;
  1263. height: 25px;
  1264. margin-top: 6px;
  1265. }
  1266. .char_css {
  1267. font-size: 28rpx;
  1268. font-weight: 600;
  1269. display: -webkit-box;
  1270. overflow: hidden;
  1271. /*! autoprefixer: off; */
  1272. -webkit-box-orient: vertical;
  1273. -webkit-line-clamp: 1;
  1274. -webkit-box-orient: vertical;
  1275. text-overflow: ellipsis;
  1276. word-break: break-all;
  1277. }
  1278. .img_size {
  1279. color: #B0B3BF;
  1280. font-size: 12px;
  1281. margin-top: 5px;
  1282. }
  1283. .img_dowload {
  1284. width: 14%;
  1285. color: #22C572;
  1286. text-align: right;
  1287. }
  1288. }
  1289. </style>