Issueandreceipt_task_details.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826
  1. <template>
  2. <view class="warp">
  3. <view class="topInfo" v-if='retreatList.inOutType!="退库"'>
  4. <view class="topInfo-item">
  5. <view class="flex info">
  6. <view class="logo">
  7. <image src="../../../static/img/reject.png" mode=""
  8. v-if="OutList.taskStatus == '已驳回'||EnterList.taskStatus == '已驳回'" style="height: 40rpx;">
  9. </image><!-- 驳回 -->
  10. <image src="../../../static/img/tongguo.png" mode=""
  11. v-else-if="OutList.taskStatus == '已通过'||EnterList.taskStatus == '已通过'||OutList.taskStatus == '执行中'"
  12. style="height: 40rpx;"></image><!-- 通过 -->
  13. <image src="../../../static/img/daishenhe.png" mode=""
  14. v-else-if="OutList.taskStatus == '审核中'||OutList.taskStatus == '待审核'||EnterList.taskStatus == '待审核'"
  15. style="height: 40rpx;"></image><!-- 待审核 -->
  16. </view>
  17. <view class="infoText" v-if="OutList.taskStatus">{{OutList.approveStatus?OutList.approveStatus:OutList.taskStatus}}</view>
  18. <view class="infoText" v-else>{{EnterList.approveStatus?EnterList.approveStatus:EnterList.taskStatus}}</view>
  19. </view>
  20. <view class="infoData" v-if="OutList.updateDate">{{OutList.updateDate}}</view>
  21. <view class="infoData" v-else>{{EnterList.updateDate}}</view>
  22. </view>
  23. </view>
  24. <view class="content1">
  25. <u-form :model="OutList" ref="uForm">
  26. <u-form-item label="任务类型" prop="inOutType" label-width="140" class="uForm_item">
  27. <u-input v-model="OutList.inOutType" input-align="right" disabled v-if="OutList.inOutType" />
  28. <u-input v-model="retreatList.inOutType" input-align="right" disabled v-else-if="retreatList.inOutType" />
  29. <u-input v-model="EnterList.inOutType" input-align="right" disabled v-else />
  30. </u-form-item>
  31. <view v-if="retreatList.judge == 3 && retreatList">
  32. <!-- 退库 -->
  33. <view class="uForm_item">
  34. <view class="title part2">{{retreatList.inOutType}}</view>
  35. <view class='row'>
  36. <view class="left">编号</view>
  37. <text selectable="true" class="right">退库({{retreatList.inOutTaskNo}})</text>
  38. </view>
  39. <view class='row'>
  40. <view class="left">仓库</view>
  41. <view class="right">{{retreatList.warehouseName}}</view>
  42. </view>
  43. <view class='row'>
  44. <view class="left">出库类型</view>
  45. <view class="right">{{retreatList.inOutType}}</view>
  46. </view>
  47. <view class='row' v-if="retreatList.inOutType == '移库出库'">
  48. <view class="left" style="width: 180rpx;">移库任务编号</view>
  49. <text selectable="true" class="right">{{retreatList.moveTaskNo}}</text>
  50. </view>
  51. <view class='row' v-if="retreatList.inOutType != '移库出库'">
  52. <view class="left">合同编号</view>
  53. <text selectable="true" class="right">退库({{retreatList.contractNo}}}</text>
  54. </view>
  55. <view class='row'>
  56. <view class="left">货名</view>
  57. <view class="right">{{retreatList.goodsName}}</view>
  58. </view>
  59. <view class='row'>
  60. <view class="left">重量(吨)</view>
  61. <view class="right">{{retreatList.weight}}</view>
  62. </view>
  63. <view class='row'>
  64. <view class="left">预计出库日期</view>
  65. <view class="right">{{retreatList.predictDate}}</view>
  66. </view>
  67. <!-- <view class='row'>
  68. <view class="left">预估运费(元/吨)</view>
  69. <view class="right">{{retreatList.estimatedFreight}}</view>
  70. </view> -->
  71. <view class='row'>
  72. <view class="left">收货人</view>
  73. <view class="right">{{retreatList.agent}}</view>
  74. </view>
  75. </view>
  76. <view class="uForm_item">
  77. <u-form-item label="品级" prop="grade" label-width="150" disabled>
  78. <u-input v-model="retreatList.grade" input-align="right" placeholder="" @click='show=true'
  79. disabled />
  80. </u-picker>
  81. </u-form-item>
  82. <u-form-item label="容重(克/升)>=" prop="bulkDensity" label-width="190">
  83. <u-input v-model="retreatList.bulkDensity" input-align="right" placeholder="" disabled />
  84. </u-form-item>
  85. <u-form-item label="水分(%)<=" prop="waterContent" label-width="160">
  86. <u-input v-model="retreatList.waterContent" input-align="right" placeholder="" disabled />
  87. </u-form-item>
  88. <u-form-item label="业务描述" prop="businessDescribe" label-width="160" label-position="top">
  89. <u-input v-model="retreatList.businessDescribe" input-align="left" placeholder="请输入业务描述"
  90. type="textarea" class="textarea" maxlength="150" disabled />
  91. </u-form-item>
  92. <u-form-item label="单价(元/吨)" prop="unitPrice" label-width="160">
  93. <u-input v-model="retreatList.unitPrice" input-align="right" placeholder="" disabled />
  94. </u-form-item>
  95. </view>
  96. </view>
  97. <view v-if="OutList.judge == 1">
  98. <view class="uForm_item">
  99. <!-- 出库 -->
  100. <view class="title part2">{{OutList.inOutType}}</view>
  101. <view class='row'>
  102. <view class="left">编号</view>
  103. <text selectable="true" class="right">出库({{OutList.inOutTaskNo}})</text>
  104. </view>
  105. <view class='row'>
  106. <view class="left">仓库</view>
  107. <view class="right">{{OutList.warehouseName}}</view>
  108. </view>
  109. <view class='row'>
  110. <view class="left">出库类型</view>
  111. <view class="right">{{OutList.inOutType}}</view>
  112. </view>
  113. <view class='row' v-if="OutList.inOutType == '移库出库'">
  114. <view class="left" style="width: 180rpx;">移库任务编号</view>
  115. <text selectable="true" class="right">{{OutList.moveTaskNo}}</text>
  116. </view>
  117. <view class='row' v-if="OutList.inOutType != '移库出库'">
  118. <view class="left">合同编号</view>
  119. <text selectable="true" class="right">{{OutList.contractNo}}</text>
  120. </view>
  121. <view class='row'>
  122. <view class="left">货名</view>
  123. <view class="right">{{OutList.goodsName}}</view>
  124. </view>
  125. <view class='row'>
  126. <view class="left">重量(吨)</view>
  127. <view class="right">{{OutList.weight}}</view>
  128. </view>
  129. <view class='row'>
  130. <view class="left">预计出库日期</view>
  131. <view class="right">{{OutList.predictDate}}</view>
  132. </view>
  133. <!-- <view class='row'>
  134. <view class="left">预估运费(元/吨)</view>
  135. <view class="right">{{OutList.estimatedFreight}}</view>
  136. </view> -->
  137. <view class='row'>
  138. <view class="left">发货人</view>
  139. <view class="right">{{OutList.agent}}</view>
  140. </view>
  141. </view>
  142. <view class="uForm_item">
  143. <u-form-item label="品级" prop="grade" label-width="150" v-if="retreatList.inOutType != '退库'">
  144. <u-input v-model="OutList.grade" input-align="right" placeholder="" disabled />
  145. </u-form-item>
  146. <u-form-item label="容重(克/升)>=" prop="bulkDensity" label-width="190"
  147. v-if="retreatList.inOutType != '退库'">
  148. <u-input v-model="OutList.bulkDensity" input-align="right" placeholder="" disabled />
  149. </u-form-item>
  150. <u-form-item label="水分(%)<=" prop="waterContent" label-width="160"
  151. v-if="retreatList.inOutType != '退库'">
  152. <u-input v-model="OutList.waterContent" input-align="right" placeholder="" disabled />
  153. </u-form-item>
  154. <u-form-item label="单价(元/吨)" prop="unitPrice" label-width="160"
  155. v-if="retreatList.inOutType != '退库'">
  156. <u-input v-model="OutList.unitPrice" input-align="right" placeholder="" disabled />
  157. </u-form-item>
  158. <u-form-item label="业务描述" prop="businessDescribe" label-width="160" label-position="top"
  159. v-if="OutList.inOutType != '移库出库'">
  160. <u-input v-model="OutList.businessDescribe" input-align="left" placeholder="请输入业务描述"
  161. type="textarea" class="textarea" maxlength="150" disabled />
  162. </u-form-item>
  163. <u-form-item v-if="retreatList.inOutType!='退库'" label="仓位号(选填)" prop="binNumber"
  164. label-width="170">
  165. <u-input v-model="OutList.binNumber" input-align="right" placeholder="未指定" disabled />
  166. </u-form-item>
  167. </view>
  168. </view>
  169. <view v-if="EnterList.judge == 2 && EnterList">
  170. <view class="uForm_item">
  171. <!-- 入库 -->
  172. <view class="title part2">{{EnterList.inOutType}}</view>
  173. <view class='row'>
  174. <view class="left">编号</view>
  175. <text selectable="true" class="right">入库({{EnterList.inOutTaskNo}})</text>
  176. </view>
  177. <view class='row'>
  178. <view class="left">仓库</view>
  179. <view class="right">{{EnterList.warehouseName}}</view>
  180. </view>
  181. <view class='row'>
  182. <view class="left">入库类型</view>
  183. <view class="right">{{EnterList.inOutType}}</view>
  184. </view>
  185. <view class='row' v-if="EnterList.inOutType == '移库入库'">
  186. <view class="left" style="width: 180rpx;">移库任务编号</view>
  187. <text selectable="true" class="right">{{EnterList.moveTaskNo}}</text>
  188. </view>
  189. <view class='row' v-if="EnterList.inOutType != '移库入库'">
  190. <view class="left">合同编号</view>
  191. <text selectable="true" class="right">{{EnterList.contractNo}}</text>
  192. </view>
  193. <view class='row'>
  194. <view class="left">货名</view>
  195. <view class="right">{{EnterList.goodsName}}</view>
  196. </view>
  197. <view class='row'>
  198. <view class="left">重量(吨)</view>
  199. <view class="right">{{EnterList.weight}}</view>
  200. </view>
  201. <view class='row'>
  202. <view class="left">预计入库日期</view>
  203. <view class="right">{{EnterList.predictDate}}</view>
  204. </view>
  205. <!-- <view class='row'>
  206. <view class="left">预估运费(元/吨)</view>
  207. <view class="right">{{EnterList.estimatedFreight}}</view>
  208. </view> -->
  209. <view class='row'>
  210. <view class="left">收货人</view>
  211. <view class="right">{{EnterList.agent}}</view>
  212. </view>
  213. </view>
  214. <view class="uForm_item">
  215. <u-form-item label="品级" prop="grade" label-width="150" v-if="EnterList.inOutType != '移库入库' ">
  216. <u-input v-model="EnterList.grade" input-align="right" placeholder="请选择品级"
  217. @click='show=true' disabled />
  218. </u-picker>
  219. </u-form-item>
  220. <u-form-item label="容重(克/升)>=" prop="bulkDensity" label-width="190"
  221. v-if="EnterList.inOutType != '移库入库'">
  222. <u-input v-model="EnterList.bulkDensity" input-align="right" placeholder="请输入容重占比"
  223. disabled />
  224. </u-form-item>
  225. <u-form-item label="水分(%)<=" prop="waterContent" label-width="160"
  226. v-if="EnterList.inOutType != '移库入库'">
  227. <u-input v-model="EnterList.waterContent" input-align="right" placeholder="请输入水分占比"
  228. disabled />
  229. </u-form-item>
  230. <u-form-item label="单价(元/吨)" prop="unitPrice" label-width="160"
  231. v-if="EnterList.inOutType != '移库入库'">
  232. <u-input v-model="EnterList.unitPrice" input-align="right" placeholder="请输入单价" disabled />
  233. </u-form-item>
  234. <u-form-item label="业务描述" prop="businessDescribe" label-width="160" label-position="top">
  235. <u-input v-model="EnterList.businessDescribe" input-align="left" placeholder="请输入业务描述"
  236. type="textarea" class="textarea" maxlength="150" disabled />
  237. </u-form-item>
  238. <u-form-item v-if="OutList.inOutType!='退库'" label="仓位号(选填)" prop="binNumber" label-width="170">
  239. <u-input v-model="EnterList.binNumber" input-align="right" placeholder="未指定" disabled />
  240. </u-form-item>
  241. </view>
  242. </view>
  243. <view class="uForm_item" v-if="OutList.taskTypeKey == 3 && !EnterList.judge">
  244. <view class="deleteText">移库入库(已删除)</view>
  245. </view>
  246. <view class="content2">
  247. <view class="title row">
  248. 流程
  249. </view>
  250. <view v-for="(item,index) in auditList" :key='index' class="audit">
  251. <view class="row" v-if='item.desc!="_PLACEHOLDER_"'>
  252. <view class="left">
  253. <view class="item1">
  254. <view class="item-content">{{item.operatorTitle}}</view>
  255. <view v-if="item.status=='success'" class='status success'>
  256. <u-icon name="checkmark" color="#2979ff" size="24"></u-icon>
  257. </view>
  258. <view v-if="item.status=='error'" class='status error'>
  259. <u-icon name="close" color="rgb(245, 108, 108)" size="24"></u-icon>
  260. </view>
  261. <view v-if="item.status=='question'" class='status question'>
  262. <u-icon name="question" color="#f9ae3d" size="24"></u-icon>
  263. </view>
  264. </view>
  265. </view>
  266. <view class="right">
  267. <view class="right-item">
  268. <view class="item2">
  269. <view class="name">{{item.desc}}
  270. </view>
  271. <!-- <view class='time'>{{item.updateDate}}</view> -->
  272. <view v-if="item.status=='success'" class="status success">{{item.commonStaffs1?item.staffscontent:item.operatorName}}<text v-if='!item.commonStaffs1&&index!=0'>已审核</text></view>
  273. <view v-if="item.status=='error'" class="status error">{{item.commonStaffs1?item.staffscontent:item.operatorName}}<text v-if='!item.commonStaffs1'>{{item.workflowHistoricTasks ? "已驳回":''}}</text></view>
  274. <view v-if="item.status=='question'" class="status question">{{item.commonStaffs1?item.staffscontent:''}}<text v-if='!item.commonStaffs1'>未审核</text></view>
  275. <!-- <view class="status success">吕波(已审核)</view> -->
  276. </view>
  277. <view v-if='index==0||item.workflowHistoricTasks&&item.workflowHistoricTasks.length>0' class='time'>
  278. {{item.updateDate}}
  279. </view>
  280. </view>
  281. <view v-if='item.auditMind' class="right-content">
  282. {{item.auditMind}}
  283. </view>
  284. <view v-if='item.fileUrl' class="flex audit_img">
  285. <view v-for="(items,indexs) in item.fileUrl" class="url_css">
  286. <image :src="items" mode="aspectFill" class="url_img" @click="openDocument(items)">
  287. </image>
  288. </view>
  289. </view>
  290. </view>
  291. <view v-if='item.commonStaffs1' class="right">
  292. <u-icon @click='showcontent(item)' :name="item.showflow?'arrow-up':'arrow-down'" size="28"></u-icon>
  293. </view>
  294. </view>
  295. <view v-if='item.showflow' style='padding:10px 0 0 50px;'>
  296. <view class='row2'>
  297. <view v-for='item1 in item.commonStaffs1' style='margin:5px;text-align:center;'>
  298. <view class="item-content">
  299. <u-icon v-if='item1.status' name="checkmark" color="#fff" size="14"></u-icon>
  300. <u-icon v-if='!item1.status' name="question" color="#f9ae3d" size="14"></u-icon>
  301. </view>
  302. <view class="name">{{item1.staffName}}</view>
  303. </view>
  304. </view>
  305. </view>
  306. <view class="row-line" v-if="index!= auditList.length - 1&&item.desc!='_PLACEHOLDER_'"></view>
  307. </view>
  308. </view>
  309. </u-form>
  310. </view>
  311. <view style='padding:10px;' class='flex bottom-btn'>
  312. <u-button @click='fanHui' type="success" class="btn1" hover-class='none'>返回</u-button>
  313. </view>
  314. </view>
  315. </template>
  316. <script>
  317. import {
  318. mapState
  319. } from 'vuex';
  320. export default {
  321. data() {
  322. return {
  323. id: "",
  324. OutList: {}, //出
  325. EnterList: {}, //入
  326. retreatList: {}, //退
  327. type: '移库',
  328. show: false,
  329. show1: false,
  330. border: false,
  331. auditList:[],
  332. list:{},
  333. rejectInfo: "", //驳回原因
  334. pjList: [{
  335. type: '一等品'
  336. },
  337. {
  338. type: '二等品'
  339. },
  340. {
  341. type: '三等品'
  342. },
  343. {
  344. type: '等外'
  345. }
  346. ],
  347. }
  348. },
  349. // onReady() {
  350. // this.$refs.uForm.setRules(this.rules);
  351. // },
  352. onLoad(options) {
  353. this.id = options.id
  354. this.getList()
  355. },
  356. computed: {
  357. ...mapState(['hasLogin', 'userInfo']),
  358. },
  359. methods: {
  360. openDocument(src) {
  361. uni.downloadFile({
  362. url: src,
  363. success: function(res) {
  364. var filePath = res.tempFilePath;
  365. uni.openDocument({
  366. filePath: filePath,
  367. showMenu: true,
  368. success: function(res) {
  369. console.log('打开文档成功');
  370. }
  371. });
  372. }
  373. });
  374. },
  375. showcontent(item){
  376. item.showflow=!item.showflow
  377. },
  378. getList() {
  379. var that = this
  380. uni.showLoading({
  381. title:'加载中',
  382. mask:true
  383. })
  384. this.$api.doRequest('get', '/inOutWarehouseTask/getTask', {
  385. id: this.id
  386. }).then(res => {
  387. if (res.data.code == 200) {
  388. this.list=res.data.data
  389. this.$api.doRequest('get', '/inOutWarehouseTask/getInOutWarehouseTask', {
  390. relevanceId: res.data.data.relevanceId
  391. }).then(res => {
  392. if (res.data.code == 200) {
  393. for (let i = 0; i < res.data.data.length; i++) {
  394. if (res.data.data[i].inOutType == "移库出库" || res.data.data[i]
  395. .inOutType == "贸易服务出库" || res.data.data[i].inOutType == "销售出库" ||
  396. res.data.data[i].inOutType == "暂存出库") {
  397. this.OutList = res.data.data[i]
  398. this.OutList.judge = 1
  399. } else if (res.data.data[i].inOutType == "移库入库" || res.data.data[i]
  400. .inOutType == "暂存入库" || res
  401. .data.data[i].inOutType == "采购入库" || res.data.data[i].inOutType ==
  402. "贸易服务入库"|| res.data.data[i].inOutType ==
  403. "收购入库") {
  404. this.EnterList = res.data.data[i]
  405. this.EnterList.judge = 2
  406. } else if (res.data.data[i].inOutType == "退库") {
  407. this.retreatList = res.data.data[i]
  408. this.retreatList.judge = 3
  409. }
  410. }
  411. }
  412. //审核流程
  413. this.$api.doRequest('get', '/workflow/query/workflowDefinitions', {
  414. businessCode: 'INOUTTASK-TASK-APPROVE',
  415. tmpCompId: uni.getStorageSync('pcUserInfo').compId
  416. }).then(res1 => {
  417. this.$api.doRequest('get', '/commonUser/getHis', {
  418. workflowId: res1.data.data[0].id,
  419. businessKey: this.id,
  420. branch:that.list.jointVentureParties?that.list.jointVentureParties:'zt'
  421. }).then(response => {
  422. uni.hideLoading()
  423. for (let i = 0; i < response.data.data.length; i++) {
  424. this.$set(response.data.data[i],'status','question')
  425. console.log(response.data.data[i].workflowHistoricTasks,i)
  426. if(response.data.data[i].commonStaffs){
  427. response.data.data[i].showflow=false
  428. response.data.data[i].operatorTitle=response.data.data[i].desc.substring(0,2)
  429. response.data.data[i].operatorName=response.data.data[i].desc
  430. response.data.data[i].staffscontent='共'+response.data.data[i].commonStaffs.length+'人,当前审核'+response.data.data[i].workflowHistoricTasks.length+'人'
  431. if(response.data.data[i].workflowHistoricTasks&&response.data.data[i].workflowHistoricTasks.length>0){
  432. if(response.data.data[i].workflowHistoricTasks.length!=response.data.data[i].commonStaffs.length){
  433. // response.data.data[i].status='question'
  434. this.$set(response.data.data[i],'status','question')
  435. }else{
  436. this.$set(response.data.data[i],'status','success')
  437. // response.data.data[i].status='success'
  438. }
  439. response.data.data[i].workflowlen=response.data.data[i].workflowHistoricTasks.length
  440. var workflowdata=response.data.data[i].workflowHistoricTasks
  441. var staffsdata=response.data.data[i].commonStaffs
  442. for (let q = 0; q < staffsdata.length; q++) {
  443. staffsdata[q].status=false
  444. staffsdata[q].staffTitle=staffsdata[q].staffName
  445. for (let k = 0; k < workflowdata.length; k++) {
  446. if(staffsdata[q].staffId==workflowdata[k].operatorId){
  447. staffsdata[q].status=true
  448. }
  449. }
  450. }
  451. }
  452. response.data.data[i].commonStaffs1=response.data.data[i].commonStaffs
  453. }else{
  454. if(response.data.data[i].workflowHistoricTasks&&response.data.data[i].workflowHistoricTasks.length>0){
  455. var len =response.data.data[i].workflowHistoricTasks.length-1
  456. if(response.data.data[i].workflowHistoricTasks[len].approved){
  457. this.$set(response.data.data[i],'status','success')
  458. }else{
  459. this.$set(response.data.data[i],'status','error')
  460. }
  461. response.data.data[i].operatorTitle=response.data.data[i].workflowHistoricTasks[len].operatorName.substring(response.data.data[i].workflowHistoricTasks[0].operatorName.length - 2)
  462. response.data.data[i].operatorName=response.data.data[i].workflowHistoricTasks[len].operatorName
  463. var time=new Date(response.data.data[i].workflowHistoricTasks[len].claimTime).getTime()
  464. response.data.data[i].updateDate=this.$u.timeFormat(time, 'mm.dd hh:MM')
  465. if (response.data.data[i]
  466. .workflowHistoricTasks[len].auditMind
  467. &&response.data.data[i].workflowHistoricTasks[len].auditMind.indexOf("##")!=-1) {
  468. response.data.data[i].auditMind =
  469. response.data.data[i]
  470. .workflowHistoricTasks[len]
  471. .auditMind.split("##")[0]
  472. response.data.data[i].fileUrl =
  473. response.data.data[i]
  474. .workflowHistoricTasks[len]
  475. .auditMind.split("##")[1].split(
  476. ",")
  477. }
  478. // response.data.data[i].auditMind=response.data.data[i].workflowHistoricTasks[len].auditMind
  479. }else{
  480. this.$set(response.data.data[i],'status','question')
  481. // response.data.data[i].status='question'
  482. if(response.data.data[i].desc=='总经理助理审核'){
  483. response.data.data[i].operatorTitle='总助'
  484. }else if(response.data.data[i].desc=='杜大光审核'){
  485. response.data.data[i].operatorTitle='大光'
  486. }else{
  487. response.data.data[i].operatorTitle=response.data.data[i].desc.substring(0,2)
  488. }
  489. response.data.data[i].operatorName=response.data.data[i].desc
  490. var time1=new Date(response.data.data[i].updateDate).getTime()
  491. response.data.data[i].updateDate=this.$u.timeFormat(time1, 'mm.dd hh:MM')
  492. response.data.data[i].auditMind=''
  493. }
  494. }
  495. }
  496. console.log(response.data.data)
  497. this.auditList = response.data.data
  498. var time2=new Date(this.list.createDate).getTime()
  499. var time3=this.$u.timeFormat(time2, 'mm.dd hh:MM')
  500. this.auditList.unshift({
  501. operatorTitle:this.list.creater.substring(0,2),
  502. operatorName:this.list.creater,
  503. updateDate:time3,
  504. auditMind:'',
  505. desc:'发起申请',
  506. showflow:false,
  507. commonStaffs1:null,
  508. commonStaffs:null,
  509. workflowHistoricTasks:[],
  510. status:'success'
  511. })
  512. })
  513. })
  514. })
  515. }
  516. })
  517. },
  518. // pjPicker(e) {
  519. // this.OutList.grade = this.pjList[e[0]].type
  520. // this.OutList.gradeKey = e[0] + 1
  521. // },
  522. // pjPicker1(e) {
  523. // this.EnterList.grade = this.pjList[e[0]].type
  524. // this.EnterList.gradeKey = e[0] + 1
  525. // },
  526. fanHui() {
  527. uni.navigateBack()
  528. }
  529. }
  530. }
  531. </script>
  532. <style scoped lang="scss">
  533. .content1 {
  534. margin: 10rpx;
  535. padding-bottom: 120rpx;
  536. .title {
  537. height: 70rpx;
  538. line-height: 60rpx;
  539. font-size: 32rpx;
  540. font-weight: 600;
  541. color: #333333;
  542. border-bottom: 2rpx solid #EEEEEE;
  543. }
  544. }
  545. .uForm {
  546. padding: 0 40rpx;
  547. }
  548. .u-form-item {
  549. padding: 0;
  550. }
  551. .bottom-btn {
  552. width: 100%;
  553. position: fixed;
  554. bottom: 0;
  555. display: flex;
  556. z-index: 2;
  557. left: 0;
  558. background-color: #f8f8f8;
  559. flex-direction: column;
  560. .btn1,
  561. .btn2 {
  562. width: 100%;
  563. margin-bottom: 26rpx;
  564. border-radius: 90rpx;
  565. }
  566. .btn1 {
  567. background: white;
  568. color: #00C265;
  569. }
  570. }
  571. .submit {
  572. width: 50%;
  573. background: #22C572;
  574. border-radius: 10rpx;
  575. }
  576. .part2 {
  577. margin-top: 20rpx;
  578. }
  579. .textarea {
  580. border: 1px solid #ccc;
  581. border-radius: 10rpx;
  582. background-color: #F9F9FA;
  583. height: 100px;
  584. }
  585. .row {
  586. display: flex;
  587. justify-content: space-between;
  588. // border-bottom: 1px solid #EEEEEE;
  589. padding: 21rpx 0;
  590. .right,
  591. input {
  592. font-size: 28rpx;
  593. color: #333333;
  594. }
  595. }
  596. //弹出框
  597. // .popup {
  598. // padding: 30rpx;
  599. // border-radius: 20rpx;
  600. // }
  601. .rejectInfoCss {
  602. border: 1px solid #ccc;
  603. border-radius: 10rpx;
  604. background-color: #F9F9FA;
  605. height: 100px;
  606. margin: 30rpx;
  607. }
  608. .uForm_item {
  609. padding: 20rpx;
  610. background-color: #FFFFFF;
  611. margin: 20rpx;
  612. border-radius: 20rpx;
  613. }
  614. .rejectText {
  615. text-align: center;
  616. }
  617. .topInfo {
  618. height: 210rpx;
  619. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  620. padding: 30rpx;
  621. .topInfo-item {
  622. height: 150rpx;
  623. background-color: #FFFFFF;
  624. border-radius: 20rpx;
  625. padding: 40rpx;
  626. .logo {
  627. width: 40rpx;
  628. height: 40rpx;
  629. margin-top: 8rpx;
  630. }
  631. .infoText {
  632. font-size: 36rpx;
  633. font-weight: 600;
  634. margin-left: 20rpx;
  635. }
  636. .infoData {
  637. color: #878C9C;
  638. font-size: 26rpx;
  639. margin-top: 10rpx;
  640. }
  641. }
  642. }
  643. .deleteText {
  644. text-align: center;
  645. color: #AFB3BF;
  646. }
  647. .content2 {
  648. background: white;
  649. margin: 20rpx 0;
  650. border-radius: 20rpx;
  651. padding: 20rpx;
  652. .row {
  653. display: flex;
  654. .left {
  655. display: flex;
  656. align-items: center;
  657. .item1 {
  658. position: relative;
  659. .item-content {
  660. background: #617AE0;
  661. width: 44px;
  662. height: 44px;
  663. border-radius: 22px;
  664. line-height: 44px;
  665. text-align: center;
  666. font-size: 15px;
  667. color: #fff;
  668. }
  669. .status {
  670. position: absolute;
  671. border-radius: 50%;
  672. padding: 0px 2px;
  673. right: -3px;
  674. bottom: -3px;
  675. background: #fff;
  676. }
  677. .status.success {
  678. border: 1px solid rgb(60, 156, 255);
  679. }
  680. .status.error {
  681. border: 1px solid rgb(245, 108, 108);
  682. }
  683. .status.question {
  684. border: 1px solid #f9ae3d;
  685. }
  686. }
  687. }
  688. .right {
  689. width: 80%;
  690. // color: #B0B1B5;
  691. margin-top: 10px;
  692. .right-content {
  693. background: #F2F3F7;
  694. margin-left: 10px;
  695. margin-top: 10px;
  696. padding: 10px;
  697. border-radius: 5px;
  698. color: #B0B1B5;
  699. }
  700. .right-item {
  701. display: flex;
  702. justify-content: space-between;
  703. .time {
  704. color: #999;
  705. }
  706. .item2 {
  707. margin-left: 20rpx;
  708. margin-top: -7px;
  709. .name {
  710. font-size: 28rpx;
  711. font-weight: 800;
  712. margin-bottom: 4px;
  713. }
  714. .status.success {
  715. color: #6CC48C;
  716. }
  717. .status.error {
  718. color: rgb(245, 108, 108);
  719. }
  720. .status.question {
  721. color: #f9ae3d;
  722. }
  723. }
  724. }
  725. .audit_img {
  726. flex-wrap: wrap;
  727. .url_css {
  728. // border: 1px solid #999999;
  729. border-radius: 10px;
  730. margin-top: 10px;
  731. margin-right: 10px;
  732. .url_img {
  733. width: 66px;
  734. height: 66px;
  735. border-radius: 10px;
  736. }
  737. }
  738. }
  739. }
  740. }
  741. .row2 {
  742. display: flex;
  743. .item-content {
  744. background: #22C572;
  745. width: 30px;
  746. height: 30px;
  747. border-radius: 50%;
  748. line-height: 30px;
  749. text-align: center;
  750. font-size: 12px;
  751. color: #fff;
  752. padding: 0 2px;
  753. margin: 0 auto;
  754. }
  755. .status {
  756. position: absolute;
  757. top: 0;
  758. right: 0;
  759. }
  760. }
  761. .row-line {
  762. width: 1px;
  763. height: 30px;
  764. background: #F2F2F2;
  765. margin: 10rpx 50rpx;
  766. }
  767. .audit {
  768. margin-top: 20rpx;
  769. }
  770. }
  771. </style>