freight_settlement_approvalcopy.vue 31 KB

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