sales_shift.vue 28 KB

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