sales_shift.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968
  1. <template>
  2. <view class="warp">
  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="list.status == '已驳回'"
  8. style="height: 40rpx;"></image><!-- 驳回 -->
  9. <image src="../../../static/img/tongguo.png" mode="" v-if="list.status == '已通过'"
  10. style="height: 40rpx;"></image><!-- 通过 -->
  11. <image src="../../../static/img/daishenhe.png" mode="" v-if="list.approveStatus "
  12. style="height: 40rpx;"></image><!-- 待审核 -->
  13. </view>
  14. <view class="infoText">{{list.approveStatus?list.approveStatus:list.status}}</view>
  15. </view>
  16. <view class="infoData">{{list.updateDate}}</view>
  17. </view>
  18. </view>
  19. <view class="transaction">
  20. <u-form :model="list" ref="list" class="uForm">
  21. <u-form-item label="任务类型" prop="contractNo" label-width="140">
  22. <view style='text-align:right;width: 100%;color:#000;min-height: 70rpx;line-height: 70rpx;'> 销售转移</view>
  23. </u-form-item>
  24. </u-form>
  25. <view style='margin-left:20rpx;font-weight:600;'>基本信息</view>
  26. <u-form :model="list" ref="list" class="uForm">
  27. <u-form-item :border-bottom='false' label="原合同编号" prop="contractNo" label-width="140">
  28. <u-input v-model="list.contractNo" input-align="right" placeholder="" disabled />
  29. </u-form-item>
  30. <u-form-item :border-bottom='false' label="原合同提示" prop="pointOut" label-width="140">
  31. <u-input v-model="list.pointOut" input-align="right" placeholder="空" disabled />
  32. </u-form-item>
  33. <u-form-item class='taskNo' :border-bottom='false' label="原出库任务" prop="processNo" label-width="140">
  34. <view style='text-align:right;width: 100%;color:#000;min-height: 70rpx;line-height: 70rpx;' v-for='item in list.taskNoList'> {{item}}</view>
  35. </u-form-item>
  36. <u-form-item :border-bottom='false' label="新合同/移库编号" prop="goodsName" label-width="220">
  37. <u-input v-model="list.contractNoNew" input-align="right" placeholder="" disabled />
  38. </u-form-item>
  39. <u-form-item :border-bottom='false' label="新合同提示" prop="sendDetailedAddress" label-width="140">
  40. <u-input v-model="list.pointOutNew" input-align="right" placeholder="空" disabled />
  41. </u-form-item>
  42. <u-form-item :border-bottom='false' label="新出库任务" prop="sendDetailedAddress" label-width="140">
  43. <u-input v-model="list.taskNoNew" input-align="right" placeholder="" disabled />
  44. </u-form-item>
  45. <u-form-item :border-bottom='false' label="新运输任务" prop="sendDetailedAddress" label-width="140">
  46. <u-input v-if='list.tranTaskNew' v-model="list.tranTaskNew" input-align="right" placeholder="" disabled />
  47. <view v-else style='text-align:right;width: 100%;color:#000;min-height: 70rpx;line-height: 70rpx;'> 他运无运输任务</view>
  48. </u-form-item>
  49. </u-form>
  50. <view v-if='list.tranCarInfoList' style='margin-left:20rpx;font-weight:600;'>车辆信息</view>
  51. <view v-for='(item,index) in list.tranCarInfoList'>
  52. <view style='justify-content: space-between;margin:10rpx 20rpx;align-items: center;' class='flex'>
  53. <view>{{item.carNo}} <text v-if='item.tranCarNo'>({{item.tranCarNo}})</text> </view>
  54. <view class="">{{item.tranTaskOld?item.tranTaskOld:'他运无运输任务'}}</view>
  55. </view>
  56. <view style='align-items: center;justify-content: space-between;margin:10rpx 20rpx;' class='flex '>
  57. <view v-if='item.tranTaskOld'>原运费{{item.tranPriceOld}}{{item.billingMethod==1?'元/吨':'元/车'}}</view>
  58. <view v-else>&nbsp;</view>
  59. <view style='align-items: center;' class='flex ' v-if='list.tranTaskNew'>
  60. 新运费
  61. <u-input :style='!editstatus?"":"border-bottom:1px solid #ccc;"' style='width:200rpx;margin:0 4rpx;padding-right:10rpx;' v-model="item.tranPrice" input-align="right" placeholder="" :disabled='!editstatus' />
  62. <text>{{item.billingMethod==1?'元/吨':'元/车'}}</text> <u-icon @click='downchange(index)' name="arrow-down-fill" color="#000" size="24"></u-icon>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. <u-form ref="uForm">
  68. <view class="form_top">流程</view>
  69. <view class="content2">
  70. <view v-for="(item,index) in auditList" :key='index' class="audit">
  71. <view class="row" v-if='item.desc!="_PLACEHOLDER_"'>
  72. <view class="row-left">
  73. <view class="item1">
  74. <view class="item-content">{{item.operatorTitle}}</view>
  75. <view v-if="item.status=='success'" class='status success'>
  76. <u-icon name="checkmark" color="#2979ff" size="24"></u-icon>
  77. </view>
  78. <view v-if="item.status=='error'" class='status error'>
  79. <u-icon name="close" color="rgb(245, 108, 108)" size="24"></u-icon>
  80. </view>
  81. <view v-if="item.status=='question'" class='status question'>
  82. <u-icon name="question" color="#f9ae3d" size="24"></u-icon>
  83. </view>
  84. </view>
  85. </view>
  86. <view class="row-right">
  87. <view class="right-item">
  88. <view class="item2">
  89. <view class="name">{{item.desc}}
  90. </view>
  91. <!-- <view class='time'>{{item.updateDate}}</view> -->
  92. <view v-if="item.status=='success'" class="status success">
  93. {{item.commonStaffs1?item.staffscontent:item.operatorName}}<text
  94. v-if='!item.commonStaffs1&&index!=0'>已审核</text></view>
  95. <view v-if="item.status=='error'" class="status error">
  96. {{item.commonStaffs1?item.staffscontent:item.operatorName}}<text
  97. v-if='!item.commonStaffs1'>{{item.workflowHistoricTasks ? "已驳回":''}}</text>
  98. </view>
  99. <view v-if="item.status=='question'" class="status question">
  100. {{item.commonStaffs1?item.staffscontent:''}}<text
  101. v-if='!item.commonStaffs1'>未审核</text></view>
  102. <!-- <view class="status success">吕波(已审核)</view> -->
  103. </view>
  104. <view v-if='index==0||item.workflowHistoricTasks&&item.workflowHistoricTasks.length>0'
  105. class='time'>
  106. {{item.updateDate}}
  107. </view>
  108. </view>
  109. <view v-if='item.auditMind' class="right-content">
  110. {{item.auditMind}}
  111. </view>
  112. <view class="flex audit_img">
  113. <view v-for="(items,indexs) in item.fileUrl" class="url_css">
  114. <image :src="items" imageMode='aspectFill' class="url_img" @click="auditFile(items)"></image>
  115. </view>
  116. </view>
  117. </view>
  118. <view v-if='item.commonStaffs1' class="right">
  119. <u-icon @click='showcontent(item)' :name="item.showflow?'arrow-up':'arrow-down'" size="28">
  120. </u-icon>
  121. </view>
  122. </view>
  123. <view v-if='item.showflow' style='padding:10px 0 0 50px;'>
  124. <view class='row2'>
  125. <view v-for='item1 in item.commonStaffs1' style='margin:5px;text-align:center;'>
  126. <view class="item-content">
  127. <u-icon v-if='item1.status' name="checkmark" color="#fff" size="14"></u-icon>
  128. <u-icon v-if='!item1.status' name="question" color="#f9ae3d" size="14"></u-icon>
  129. </view>
  130. <view class="name">{{item1.staffName}}</view>
  131. </view>
  132. </view>
  133. </view>
  134. <view class="row-line" v-if="index!= auditList.length - 1 &&item.desc!='_PLACEHOLDER_'"></view>
  135. </view>
  136. </view>
  137. </u-form>
  138. <view v-if='show' class="shade">
  139. <view class="wrap">
  140. <view class="alert-top">
  141. <view class="title">
  142. {{title}}
  143. </view>
  144. <u-icon name="close" class="close" color="#8890B1" @click="close()"></u-icon>
  145. </view>
  146. <view style='overflow-y: scroll;height: 740rpx;padding-bottom:102rpx;'>
  147. <view class="u-textarea-style">
  148. <view class="right-bottom">
  149. {{auditMind.length}}/1000个字
  150. </view>
  151. <textarea maxlength="1000" v-model='auditMind' placeholder="请在此输入审核意见" name="" id="" cols="30"
  152. rows="11"></textarea>
  153. </view>
  154. <u-upload class="upload" ref="upload" name='fileName' :form-data="{companyId: pcUserInfo.compId,
  155. modelId: '',
  156. vesselId: ''}" :action="action1" :show-tips="false" :max-size="maxSize" :max-count="9"
  157. :size-type="['compressed']" @on-success="getImgUrl($event)" @on-error="onError"
  158. @on-remove="onRemove" @on-uploaded="isAdd = true" :limitType ="['png', 'jpg', 'jpeg', 'webp', 'gif']"
  159. @on-progress="onProgress"></u-upload>
  160. </view>
  161. <view @click='close()' class="cancel">取消</view>
  162. <view @click='passSubmit()' class="confirm">确定</view>
  163. </view>
  164. </view>
  165. <u-modal :show-cancel-button='true' confirm-color='#19be6b' title='选择单位' v-model="show1" >
  166. <view style='text-align:center;padding:30rpx 20rpx;' class="slot-content">
  167. <u-radio-group active-color="#19be6b" @change='radiochange' v-model="value">
  168. <u-radio name='1' shape="circle">元/吨</u-radio>
  169. <u-radio name='2' shape="circle">元/车</u-radio>
  170. </u-radio-group>
  171. </view>
  172. </u-modal>
  173. <view v-if='list.taskId' style='padding:10px;z-index: 12;' class='flex bottom-btn'>
  174. <u-button v-if='list.approveStatus||isSHowBtn' @click='reject' type="error" class="btn1" hover-class='none'>
  175. 驳回
  176. </u-button>
  177. <u-button v-if='list.approveStatus||isSHowBtn' @click='pass' type="success" class="btn2">通过
  178. </u-button>
  179. </view>
  180. </view>
  181. </template>
  182. <script>
  183. import * as config from '../../../config'
  184. import helper from '@/common/helper.js';
  185. import {
  186. mapState
  187. } from 'vuex';
  188. export default {
  189. data() {
  190. return {
  191. isSHowBtn: true,
  192. everyCheck: '',
  193. list: {
  194. status: "",
  195. },
  196. id: "",
  197. pcUserInfo :uni.getStorageSync('pcUserInfo'),
  198. action1: config.def().baseUrlNew+ 'appendix/api/uploadFiles',
  199. show: false,
  200. editstatus:false,
  201. rejectInfo: "", //审核意见
  202. title: '',
  203. value:'1',
  204. show1:false,
  205. index:0,
  206. auditMind: '',
  207. auditList:[],
  208. fileUrl:[],
  209. maxSize: 50 * 1024 * 1024,
  210. content: '是否通过该设置?'
  211. }
  212. },
  213. onBackPress(e) {
  214. if (this.everyCheck) {
  215. uni.navigateTo({
  216. url: "/pages/task/my_task"
  217. })
  218. return true;
  219. }
  220. },
  221. onLoad(options) {
  222. this.id = options.id
  223. this.everyCheck = uni.getStorageSync("everyTask")
  224. this.isSHowBtn = options.isShowbtn
  225. this.getList()
  226. },
  227. computed: {
  228. ...mapState(['hasLogin', 'userInfo']),
  229. },
  230. methods: {
  231. auditFile(src) {
  232. uni.downloadFile({
  233. url: src,
  234. success: function(res) {
  235. var filePath = res.tempFilePath;
  236. uni.openDocument({
  237. filePath: filePath,
  238. showMenu: true,
  239. success: function(res) {
  240. console.log('打开文档成功');
  241. }
  242. });
  243. }
  244. });
  245. },
  246. downchange(index){
  247. if(this.editstatus){
  248. this.index=index
  249. this.value=this.list.tranCarInfoList[this.index].billingMethod
  250. this.show1=true
  251. }
  252. },
  253. radiochange(e){
  254. this.list.tranCarInfoList[this.index].billingMethod=e
  255. console.log(e)
  256. },
  257. getImgUrl(res) {
  258. this.fileUrl.push(res.data.appendixPath)
  259. },
  260. onError(error) {
  261. alert(error)
  262. console.log('------------error-----------')
  263. console.log(error)
  264. },
  265. onProgress(e) {
  266. console.log(e)
  267. },
  268. onRemove(index) {
  269. console.log(index)
  270. this.fileUrl.splice(index, 1)
  271. },
  272. close() {
  273. this.show = false
  274. },
  275. //驳回
  276. rejectSubmit() {
  277. var that = this
  278. var info = that.auditMind
  279. if (that.fileUrl.length > 0) {
  280. info = that.auditMind + "##" + that.fileUrl.toString()
  281. }
  282. that.$api.doRequest('post', '/newWorkflow/api/handle', {
  283. taskId: that.list.taskId,
  284. approved: false,
  285. auditMind: info?info:"",
  286. needReapply: true,
  287. }).then(res => {
  288. that.$api.msg('驳回成功')
  289. that.show = false
  290. setTimeout(function() {
  291. if (that.everyCheck) {
  292. helper.setAudit(that.list)
  293. } else {
  294. uni.navigateBack()
  295. }
  296. uni.hideLoading()
  297. }, 1000);
  298. })
  299. },
  300. //通过
  301. async passSubmit() {
  302. var that = this
  303. uni.showLoading({
  304. title: '加载中',
  305. mask: true
  306. });
  307. if(this.list.tranCarInfoList){
  308. for (var i = 0; i < this.list.tranCarInfoList.length; i++) {
  309. this.list.tranCarInfoList[i].tranPrice=Number(this.list.tranCarInfoList[i].tranPrice)
  310. }
  311. }
  312. if(this.editstatus){
  313. await that.$api.doRequest('post', '/salesTransferInfo/api/editInfo', {
  314. id:this.list.id,
  315. tranCarInfoList:this.list.tranCarInfoList
  316. }).then(res => {})
  317. }
  318. if (this.title == '驳回原因(驳回)') {
  319. this.rejectSubmit()
  320. } else {
  321. var info = that.auditMind
  322. if (that.fileUrl.length > 0) {
  323. info = that.auditMind + "##" + that.fileUrl.toString()
  324. }
  325. await that.$api.doRequest('post', '/newWorkflow/api/handle', {
  326. taskId: that.list.taskId,
  327. approved: true,
  328. auditMind: info?info:"",
  329. needReapply: true,
  330. }).then(res => {
  331. that.$api.msg('通过成功')
  332. that.show = false
  333. setTimeout(function() {
  334. if (that.everyCheck) {
  335. helper.setAudit(that.list)
  336. } else {
  337. uni.navigateBack()
  338. }
  339. uni.hideLoading()
  340. }, 1000);
  341. })
  342. }
  343. },
  344. pass() {
  345. if(this.list.tranCarInfoList){
  346. for (var i = 0; i < this.list.tranCarInfoList.length; i++) {
  347. if(!this.list.tranCarInfoList[i].tranPrice){
  348. this.$api.msg('运费不能为空')
  349. return
  350. }
  351. if(this.list.tranCarInfoList[i].tranPrice<0){
  352. this.$api.msg('运费输入错误')
  353. return
  354. }
  355. if(String(this.list.tranCarInfoList[i].tranPrice).indexOf('.')!=-1&&String(this.list.tranCarInfoList[i].tranPrice).split('.')[1].length>2){
  356. this.$api.msg('运费输入错误')
  357. return
  358. }
  359. }
  360. }
  361. this.show = true
  362. this.title = '审核意见(通过)'
  363. },
  364. reject() {
  365. if(this.list.tranCarInfoList){
  366. for (var i = 0; i < this.list.tranCarInfoList.length; i++) {
  367. if(!this.list.tranCarInfoList[i].tranPrice){
  368. this.$api.msg('运费不能为空')
  369. return
  370. }
  371. if(this.list.tranCarInfoList[i].tranPrice<0){
  372. this.$api.msg('运费输入错误')
  373. return
  374. }
  375. if(String(this.list.tranCarInfoList[i].tranPrice).indexOf('.')!=-1&&String(this.list.tranCarInfoList[i].tranPrice).split('.')[1].length>2){
  376. this.$api.msg('运费输入错误')
  377. return
  378. }
  379. }
  380. }
  381. this.show = true
  382. this.title = '驳回原因(驳回)'
  383. },
  384. getList() {
  385. var that = this
  386. this.$api.doRequest('get', '/salesTransferInfo/getInfo', {
  387. id: this.id
  388. }).then(res => {
  389. res.data.data.taskNoList=res.data.data.taskNo.split(',')
  390. this.list = res.data.data
  391. // 查流程
  392. this.$api.doRequest('get', '/workflow/query/workflowDefinitions', {
  393. businessCode: 'WAREHOUSING-XSZY-APPROVE',
  394. tmpCompId: uni.getStorageSync('pcUserInfo').compId
  395. }).then(res1 => {
  396. this.$api.doRequest('get', '/commonUser/getHis', {
  397. workflowId: res1.data.data[0].id,
  398. businessKey: this.id,
  399. // branch:'zt'
  400. }).then(response => {
  401. uni.hideLoading()
  402. if(response.data.data[0].workflowHistoricTasks.length>0){
  403. this.editstatus=false
  404. }else{
  405. this.editstatus=true
  406. }
  407. for (let i = 0; i < response.data.data.length; i++) {
  408. this.$set(response.data.data[i], 'status', 'question')
  409. console.log(response.data.data[i].workflowHistoricTasks, i)
  410. if (response.data.data[i].commonStaffs) {
  411. response.data.data[i].showflow = false
  412. response.data.data[i].operatorTitle = response.data.data[i]
  413. .desc.substring(0, 2)
  414. response.data.data[i].operatorName = response.data.data[i]
  415. .desc
  416. response.data.data[i].staffscontent = '共' + response.data
  417. .data[i].commonStaffs.length + '人,当前审核' + response.data
  418. .data[i].workflowHistoricTasks.length + '人'
  419. if (response.data.data[i].workflowHistoricTasks && response
  420. .data.data[i].workflowHistoricTasks.length > 0) {
  421. if (response.data.data[i].workflowHistoricTasks
  422. .length != response.data.data[i].commonStaffs
  423. .length) {
  424. // response.data.data[i].status='question'
  425. this.$set(response.data.data[i], 'status',
  426. 'question')
  427. } else {
  428. this.$set(response.data.data[i], 'status',
  429. 'success')
  430. // response.data.data[i].status='success'
  431. }
  432. response.data.data[i].workflowlen = response.data.data[
  433. i].workflowHistoricTasks.length
  434. var workflowdata = response.data.data[i]
  435. .workflowHistoricTasks
  436. var staffsdata = response.data.data[i].commonStaffs
  437. for (let q = 0; q < staffsdata.length; q++) {
  438. staffsdata[q].status = false
  439. staffsdata[q].staffTitle = staffsdata[q].staffName
  440. for (let k = 0; k < workflowdata.length; k++) {
  441. if (staffsdata[q].staffId == workflowdata[k]
  442. .operatorId) {
  443. staffsdata[q].status = true
  444. }
  445. }
  446. }
  447. }
  448. response.data.data[i].commonStaffs1 = response.data.data[i]
  449. .commonStaffs
  450. } else {
  451. if (response.data.data[i].workflowHistoricTasks && response
  452. .data.data[i].workflowHistoricTasks.length > 0) {
  453. var len = response.data.data[i].workflowHistoricTasks
  454. .length - 1
  455. if (response.data.data[i].workflowHistoricTasks[len]
  456. .approved) {
  457. this.$set(response.data.data[i], 'status',
  458. 'success')
  459. } else {
  460. this.$set(response.data.data[i], 'status', 'error')
  461. }
  462. response.data.data[i].operatorTitle = response.data
  463. .data[i].workflowHistoricTasks[len].operatorName
  464. .substring(response.data.data[i]
  465. .workflowHistoricTasks[0].operatorName.length -
  466. 2)
  467. response.data.data[i].operatorName = response.data
  468. .data[i].workflowHistoricTasks[len].operatorName
  469. var time = new Date(response.data.data[i]
  470. .workflowHistoricTasks[len].claimTime)
  471. .getTime()
  472. response.data.data[i].updateDate = this.$u.timeFormat(
  473. time, 'mm.dd hh:MM')
  474. if (response.data.data[i].workflowHistoricTasks[len].auditMind && response.data.data[i].workflowHistoricTasks[len].auditMind.indexOf("##") !=-1) {
  475. response.data.data[i].auditMind = response.data.data[i].workflowHistoricTasks[len].auditMind.split("##")[0]
  476. response.data.data[i].fileUrl = response.data.data[i].workflowHistoricTasks[len].auditMind.split("##")[1].split(",")
  477. }else{
  478. response.data.data[i].auditMind = response.data.data[i].workflowHistoricTasks[len].auditMind
  479. }
  480. } else {
  481. this.$set(response.data.data[i], 'status', 'question')
  482. // response.data.data[i].status='question'
  483. if (response.data.data[i].desc == '总经理助理审核') {
  484. response.data.data[i].operatorTitle = '总助'
  485. } else if (response.data.data[i].desc == '杜大光审核') {
  486. response.data.data[i].operatorTitle = '大光'
  487. } else {
  488. response.data.data[i].operatorTitle = response.data
  489. .data[i].desc.substring(0, 2)
  490. }
  491. response.data.data[i].operatorName = response.data
  492. .data[i].desc
  493. var time1 = new Date(response.data.data[i].updateDate)
  494. .getTime()
  495. response.data.data[i].updateDate = this.$u.timeFormat(
  496. time1, 'mm.dd hh:MM')
  497. response.data.data[i].auditMind = ''
  498. }
  499. }
  500. }
  501. console.log(response.data.data)
  502. for(let i = 0 ;i<response.data.data.length;i++){
  503. if(response.data.data[i].status == "error"){
  504. this.auditCheck = "error"
  505. break;
  506. }else if(response.data.data[i].status == "question"){
  507. this.auditCheck = "question"
  508. break;
  509. }else{
  510. this.auditCheck = "success"
  511. }
  512. }
  513. this.auditList = response.data.data
  514. var time2 = new Date(this.list.createDate).getTime()
  515. var time3 = this.$u.timeFormat(time2, 'mm.dd hh:MM')
  516. this.auditList.unshift({
  517. operatorTitle: this.list.creater.substring(0, 2),
  518. operatorName: this.list.creater,
  519. updateDate: time3,
  520. auditMind: '',
  521. desc: '发起申请',
  522. showflow: false,
  523. commonStaffs1: null,
  524. commonStaffs: null,
  525. workflowHistoricTasks: [],
  526. status: 'success'
  527. })
  528. for (var i = 0; i < this.list.tranCarInfoList.length; i++) {
  529. if(!this.list.tranCarInfoList[i].billingMethod){
  530. this.list.tranCarInfoList[i].billingMethod=1
  531. }
  532. if(this.editstatus){
  533. if(this.list.tranCarInfoList[i].tranPriceOld&&this.list.tranCarInfoList[i].tranPriceOld!=0){
  534. this.list.tranCarInfoList[i].tranPrice=this.list.tranCarInfoList[i].tranPriceOld
  535. }
  536. }else{
  537. this.list.tranCarInfoList[i].tranPrice= Number(this.list.tranCarInfoList[i].tranPrice).toFixed(2)
  538. }
  539. }
  540. })
  541. })
  542. })
  543. },
  544. }
  545. }
  546. </script>
  547. <style scoped lang="scss">
  548. .transaction {
  549. background-color: #FFFFFF;
  550. margin: 10rpx;
  551. padding-bottom: 10rpx;
  552. border-radius: 20rpx;
  553. }
  554. .uForm {
  555. padding: 0 40rpx;
  556. }
  557. .u-form-item {
  558. padding: 0;
  559. }
  560. .bottom-btn {
  561. width: 100%;
  562. position: fixed;
  563. bottom: 0rpx;
  564. display: flex;
  565. z-index: 2;
  566. background:#fff;
  567. }
  568. .topInfo {
  569. height: 210rpx;
  570. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  571. padding: 30rpx;
  572. .topInfo-item {
  573. height: 150rpx;
  574. background-color: #FFFFFF;
  575. border-radius: 20rpx;
  576. padding: 40rpx;
  577. .logo {
  578. width: 40rpx;
  579. height: 40rpx;
  580. margin-top: 8rpx;
  581. }
  582. .infoText {
  583. font-size: 36rpx;
  584. font-weight: 600;
  585. margin-left: 20rpx;
  586. }
  587. .infoData {
  588. color: #878C9C;
  589. font-size: 26rpx;
  590. margin-top: 10rpx;
  591. }
  592. }
  593. }
  594. .submit {
  595. width: 98%;
  596. background: #22C572;
  597. border-radius: 40rpx;
  598. margin-top: 40rpx;
  599. }
  600. .rejectInfoCss {
  601. border: 1px solid #ccc;
  602. border-radius: 10rpx;
  603. background-color: #F9F9FA;
  604. // height: 100px;
  605. overflow-y: auto;
  606. margin: 30rpx;
  607. }
  608. .rejectText {
  609. text-align: center;
  610. }
  611. /deep/.u-input__textarea {
  612. height: 300rpx !important;
  613. }
  614. .text_info {
  615. display: flex;
  616. width: 100%;
  617. justify-content: flex-end;
  618. }
  619. .u-form {
  620. margin-bottom: 20rpx;
  621. background: #fff;
  622. border-radius: 10px;
  623. padding: 30rpx 10px;
  624. .u-form-item {
  625. line-height: 30px;
  626. padding: 0px 0;
  627. font-size: 26rpx;
  628. color: #878C9C;
  629. }
  630. }
  631. .content2 {
  632. background: white;
  633. margin: 20rpx 0;
  634. border-radius: 20rpx;
  635. padding: 20rpx;
  636. .row {
  637. display: flex;
  638. .row-left {
  639. display: flex;
  640. align-items: center;
  641. .item1 {
  642. position: relative;
  643. .item-content {
  644. background: #617AE0;
  645. width: 44px;
  646. height: 44px;
  647. border-radius: 22px;
  648. line-height: 44px;
  649. text-align: center;
  650. font-size: 15px;
  651. color: #fff;
  652. }
  653. .status {
  654. position: absolute;
  655. border-radius: 50%;
  656. padding: 0px 2px;
  657. right: -3px;
  658. bottom: -3px;
  659. background: #fff;
  660. }
  661. .status.success {
  662. border: 1px solid rgb(60, 156, 255);
  663. }
  664. .status.error {
  665. border: 1px solid rgb(245, 108, 108);
  666. }
  667. .status.question {
  668. border: 1px solid #f9ae3d;
  669. }
  670. }
  671. }
  672. .row-right {
  673. width: 80%;
  674. // color: #B0B1B5;
  675. margin-top: 10px;
  676. .right-content {
  677. background: #F2F3F7;
  678. margin-left: 10px;
  679. margin-top: 10px;
  680. padding: 10px;
  681. border-radius: 5px;
  682. color: #B0B1B5;
  683. }
  684. .right-item {
  685. display: flex;
  686. justify-content: space-between;
  687. .time {
  688. color: #999;
  689. }
  690. .item2 {
  691. margin-left: 20rpx;
  692. margin-top: -7px;
  693. .name {
  694. font-size: 28rpx;
  695. font-weight: 800;
  696. margin-bottom: 4px;
  697. }
  698. .status.success {
  699. color: #6CC48C;
  700. }
  701. .status.error {
  702. color: rgb(245, 108, 108);
  703. }
  704. .status.question {
  705. color: #f9ae3d;
  706. }
  707. }
  708. }
  709. .audit_img {
  710. flex-wrap: wrap;
  711. // margin: 0 10rpx;
  712. margin-left: 20rpx;
  713. .url_css {
  714. border: 1px solid #999999;
  715. border-radius: 10px;
  716. margin-top: 10px;
  717. margin-right: 4px;
  718. overflow: hidden;
  719. width: 73px;
  720. height: 73px;
  721. .url_img {
  722. width: 73px;
  723. height: 73px;
  724. // border-radius: 10px;
  725. }
  726. }
  727. }
  728. }
  729. }
  730. .row2 {
  731. display: flex;
  732. .item-content {
  733. background: #22C572;
  734. width: 30px;
  735. height: 30px;
  736. border-radius: 50%;
  737. line-height: 30px;
  738. text-align: center;
  739. font-size: 12px;
  740. color: #fff;
  741. padding: 0 2px;
  742. margin: 0 auto;
  743. }
  744. .status {
  745. position: absolute;
  746. top: 0;
  747. right: 0;
  748. }
  749. }
  750. .row-line {
  751. width: 1px;
  752. height: 30px;
  753. background: #F2F2F2;
  754. margin: 10rpx 50rpx;
  755. }
  756. .audit {
  757. margin-top: 20rpx;
  758. }
  759. }
  760. .warp{
  761. padding-bottom:252rpx;
  762. }
  763. .shade {
  764. position: fixed;
  765. top: 0;
  766. left: 0;
  767. height: 100%;
  768. width: 100%;
  769. background: rgba(0, 0, 0, 0.4);
  770. z-index: 13;
  771. .wrap {
  772. position: absolute;
  773. left: 0;
  774. top: 0;
  775. right: 0;
  776. bottom: 0;
  777. margin: auto;
  778. background: #fff;
  779. width: calc(100% - 198rpx);
  780. height: 948rpx;
  781. border-radius: 20rpx;
  782. // overflow-y: scroll;
  783. .alert-top {
  784. padding: 33rpx;
  785. display: flex;
  786. justify-content: center;
  787. align-items: center;
  788. position: relative;
  789. }
  790. .title {
  791. font-size: 32rpx;
  792. font-weight: 600;
  793. color: #333333;
  794. }
  795. .close {
  796. position: absolute;
  797. right: 33rpx;
  798. }
  799. }
  800. }
  801. .cancel,
  802. .confirm {
  803. position: absolute;
  804. display: inline-block;
  805. width: 50%;
  806. text-align: center;
  807. bottom: 0;
  808. padding: 10px;
  809. border-top: 1px solid #eee;
  810. font-size: 34rpx;
  811. z-index:10;
  812. background:#fff;
  813. }
  814. .cancel {
  815. left: 0;
  816. border-right: 1px solid #eee;
  817. color: #AFB3BF;
  818. }
  819. .confirm {
  820. right: 0;
  821. color: #22C572;
  822. }
  823. .textarea {
  824. margin: 18rpx auto;
  825. width: 100%;
  826. background: #F9F9FA;
  827. border-radius: 10px;
  828. border: 1px solid #EEEEEE;
  829. font-size: 28rpx;
  830. padding: 10px;
  831. }
  832. .textCss {
  833. display: flex;
  834. justify-content: flex-end;
  835. width: 100%;
  836. text-align: right;
  837. color: #333333;
  838. }
  839. .u-textarea-style {
  840. margin: 20rpx;
  841. background: #F9F9FA;
  842. border-radius: 10px;
  843. border: 1px solid #EEEEEE;
  844. padding: 10rpx 20rpx;
  845. position: relative;
  846. height: 240px;
  847. /deep/.uni-textarea-textarea {
  848. width: 80%;
  849. }
  850. .right-bottom {
  851. position: absolute;
  852. right: 20rpx;
  853. bottom: 20rpx;
  854. color: #AFB3BF;
  855. }
  856. }
  857. /deep/.u-input__textarea {
  858. height: 300rpx !important;
  859. }
  860. /deep/.taskNo .u-form-item--right__content__slot {
  861. flex-direction: column;
  862. }
  863. .bottom-btn {
  864. width: 100%;
  865. position: fixed;
  866. bottom: 0;
  867. display: flex;
  868. z-index: 2;
  869. left: 0;
  870. background-color: #f8f8f8;
  871. flex-direction: column;
  872. .btn1,
  873. .btn2 {
  874. width: 100%;
  875. margin-bottom: 26rpx;
  876. border-radius: 90rpx;
  877. }
  878. .btn1 {
  879. background: white;
  880. color: #00C265;
  881. }
  882. }
  883. /deep/.u-radio-group{
  884. display: flex;
  885. justify-content: space-around;
  886. width:90%;
  887. margin:0 auto;
  888. }
  889. /deep/.u-radio:first-child{
  890. margin-left:60rpx;
  891. }
  892. /deep/.u-radio:last-child{
  893. text-align: right;
  894. // margin-left:auto;
  895. .u-radio__label{
  896. margin-right:0;
  897. }
  898. }
  899. </style>