my_task.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729
  1. <template name="task">
  2. <view class="content">
  3. <view class="content1-top">
  4. <view class="search-form round">
  5. <u-search placeholder-color='#AFB3BF' search-icon-color='#AFB3BF' bg-color='#F5F6F9' placeholder="请输入合同编号、车牌号或派车编号" v-model="keyword" @search="searchKeyWord()"
  6. @custom="searchKeyWord()"></u-search>
  7. </view>
  8. <view class="top2">
  9. <view class="left">
  10. <view @click='tabcarchange(1)' class='line' :class='statusFlag==1?"active":""'>未完成</view>
  11. <view @click='tabcarchange(3)' class='line' :class='statusFlag==3?"active":""'>已完成</view>
  12. </view>
  13. <view class="right">
  14. <view class="right-contrent1">逐条审核</view>
  15. <u-switch v-model="checked" active-color="#22C572" inactive-color="#eee" size='40'></u-switch>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="introduce-section">
  20. <view v-for="(item, index) in taskInfo" :key="index" @click="navToDetailPage(item)">
  21. <view v-if="item.showRow" class="guess-item">
  22. <view class="title flex align-item-center">
  23. <view>
  24. <view class="title-row1">{{item.department}}:</view>
  25. <view style='font-size:12px;color:#878C9C;'>{{item.createDate}}</view>
  26. </view>
  27. <text v-if='statusFlag==1' style='color:#FE6430;'>{{item.messageTitle}}</text>
  28. <text v-if='statusFlag==3' style='color:#AFB3BF;'>{{item.messageTitle}}</text>
  29. </view>
  30. <view class="flex title_b">
  31. <view style='color:#878C9C;' class="title row2">
  32. {{item.messageContent}}
  33. </view>
  34. </view>
  35. <u-tag :text="item.taskType" type="success" v-if="item.taskType == '出库任务'" />
  36. <u-tag :text="item.taskType" type="primary" v-if="item.taskType == '入库任务'" />
  37. </view>
  38. </view>
  39. <view v-show="isSole">
  40. <uni-load-more :status="loadStatus"></uni-load-more>
  41. </view>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. import {
  47. mapState
  48. } from 'vuex';
  49. export default {
  50. name: "task",
  51. data() {
  52. return {
  53. PageCur: "task",
  54. taskInfo: [],
  55. checked: false,
  56. pages: 1, //页数
  57. limit: 10, //每次取条目数
  58. loadStatus: 'loading', //加载样式:more-加载前样式,loading-加载中样式,nomore-没有数据样式
  59. isLoadMore: false, //是否加载中
  60. isSole: false,
  61. showTran: true,
  62. scrollTop: 0,
  63. isContent: true,
  64. statusFlag: 1,
  65. current: 1,
  66. pcUserInfo: {},
  67. warehouseInOutInfo: {
  68. pageSize: 10,
  69. currentPage: 1
  70. },
  71. data: {
  72. pageSize: 10,
  73. currentPage: 1
  74. },
  75. keyword: "",
  76. copyTaskInfo: []
  77. };
  78. },
  79. onBackPress(e) {
  80. if (uni.getStorageSync("everyTask")) {
  81. uni.switchTab({
  82. url: '/pages/user/user'
  83. });
  84. return true
  85. }
  86. },
  87. watch: {
  88. checked(val) {
  89. uni.setStorageSync("everyTask", this.checked)
  90. },
  91. taskInfo: function(val) {
  92. this.copyTaskInfo = this.$u.deepClone(this.taskInfo);
  93. //添加跳转链接
  94. for (let i = 0; i < this.copyTaskInfo.length; i++) {
  95. let item = this.copyTaskInfo[i]
  96. if (item.businessCode == 'PROCUREMENT-ORDER-APPROVE') {
  97. item.itemUrl = '/pages/task/procurement_details?id=' + item.businessId
  98. } else if (item.businessCode == 'SALE-ORDER-APPROVE') {
  99. item.itemUrl = '/pages/task/sale_details?id=' + item.businessId
  100. } else if (item.businessCode == 'SALE-CONTRACT-APPROVE') {
  101. item.itemUrl = '/pages/task/audit/salecontract?id=' + item.businessId
  102. } else if (item.businessCode == 'BUY-CONTRACT-APPROVE') {
  103. item.itemUrl = '/pages/task/audit/purchasecontract?id=' + item.businessId
  104. } else if (item.businessCode == 'PROCUREMENT-RECEIPT-REPORT') {
  105. item.itemUrl = '/pages/task/procurement_report_details?id=' + item.businessId
  106. } else if (item.businessCode == 'PROCUREMENT-CLOSE-REPORT') {
  107. item.itemUrl = '/pages/task/procurement_close_details?id=' + item.businessId
  108. } else if (item.businessCode == 'SALE-RECEIPT-REPORT') {
  109. item.itemUrl = '/pages/task/sale_report_details?id=' + item.businessId
  110. } else if (item.businessCode == 'SALE-CLOSE-REPORT') {
  111. item.itemUrl = '/pages/task/sale_close_details?id=' + item.businessId
  112. } else if (item.businessCode == 'PROCUREMENT-PRICE-APPROVE') {
  113. if (this.statusFlag == 1) {
  114. item.itemUrl = `/pages/task/audit/warehouse_approval?id=${item.businessId}`
  115. } else {
  116. item.itemUrl = '/pages/task/audit/warehouse_details/?id=' + item.businessId
  117. }
  118. } else if (item.businessCode == 'PAYMENT-MANAGEMENT-APPROVE') {
  119. if (this.statusFlag == 1) {
  120. item.itemUrl = `/pages/task/audit/acquisition_settlement_approval?id=${item.businessId}`
  121. } else {
  122. item.itemUrl = '/pages/task/audit/acquisition_settlement_details/?id=' + item.businessId
  123. }
  124. } else if (item.businessCode == 'INOUTTASK-TASK-APPROVE') {
  125. if (this.statusFlag == 1) {
  126. item.itemUrl = `/pages/task/audit/Issueandreceipt_task_approval?id=` + item.businessId
  127. } else {
  128. item.itemUrl = `/pages/task/audit/Issueandreceipt_task_details?id=` + item.businessId
  129. }
  130. } else if (item.businessCode == 'STOCK-PROCUREMENT-RECEIPT-REPORT') {
  131. if (this.statusFlag == 1) {
  132. item.itemUrl = `/pages/task/audit/purchase_settlement_approval?id=` + item.businessId
  133. } else {
  134. item.itemUrl = `/pages/task/audit/purchase_settlement_details?id=` + item.businessId
  135. }
  136. } else if (item.businessCode == 'TRANSPORTATION-SETTLEMENT-REPORT') {
  137. if (this.statusFlag == 1) {
  138. item.itemUrl = `/pages/task/audit/freight_settlement_approval?id=` + item.businessId
  139. } else {
  140. item.itemUrl = `/pages/task/audit/freight_settlement_details?id=` + item.businessId +
  141. '&compId=' + this
  142. .pcUserInfo.compId
  143. }
  144. } else if (item.businessCode == 'TRAN-TASK-APPROVE') {
  145. if (this.statusFlag == 1) {
  146. item.itemUrl = `/pages/task/audit/freight_setting_approval?id=` + item.businessId
  147. } else {
  148. item.itemUrl = `/pages/task/audit/freight_setting_details?id=` + item.businessId
  149. }
  150. }else if (item.businessCode == 'ACQUISITION-SETTLEMENT-APPRPVE') {//库点收购
  151. if (this.statusFlag == 1) {
  152. item.itemUrl = `/pages/task/audit/acquisition_information_approval?id=` + item.businessId
  153. } else {
  154. item.itemUrl = `/pages/task/audit/acquisition_information_details?id=` + item.businessId
  155. }
  156. }
  157. if (item.taskType == "入库任务") {
  158. if (item.statusFlag == 3) {
  159. item.itemUrl = `/pageD/warehousings/warehousingDetails?id=${item.id}`
  160. } else {
  161. item.itemUrl =
  162. `/pageD/warehousings/warehousings?id=${item.id}&goodsName=${item.goodsName}&contractNo=${item.contractNo}&startWeight=${item.startWeight}&carNo=${item.carNo}&tranCarNo=${item.tranCarNo}&warehouseName=${item.warehouseName}&addressUrl=${item.addressUrl}&inOutDate=${item.inOutDate}&binNumber=${item.binNumber}`
  163. }
  164. } else if (item.taskType == "出库任务") {
  165. if (item.statusFlag == 3) {
  166. item.itemUrl = `/pageD/warehousings/ex_warehouse_detail?id=${item.id}`
  167. } else {
  168. item.itemUrl =
  169. `/pageD/warehousings/ex_warehouse?id=${item.id}&goodsName=${item.goodsName}&contractNo=${item.contractNo}&consignee=${item.consignee}&carNo=${item.carNo}&tranCarNo=${item.tranCarNo}&boxNo=${item.boxNo}&titleNo=${item.titleNo}`
  170. }
  171. }
  172. }
  173. uni.setStorageSync("copyTaskInfo", this.copyTaskInfo)
  174. }
  175. },
  176. computed: {
  177. ...mapState(['hasLogin', 'userInfo'])
  178. },
  179. onShow() {
  180. if (uni.getStorageSync("everyTask") == true) {
  181. this.checked = true
  182. } else {
  183. this.checked = false
  184. }
  185. this.warehouseInOutInfo.currentPage = 1
  186. this.data.currentPage = 1
  187. this.taskInfo = []
  188. this.pcUserInfo = uni.getStorageSync("pcUserInfo")
  189. this.$api.doRequest('get', '/commonUser/api/checkSession').then(res => {
  190. if (res.data.data == "INVALID") {
  191. uni.showModal({
  192. title: '提示',
  193. content: '当前登入信息验证失败,是否重新登录?',
  194. showCancel: true,
  195. confirmText: '登录',
  196. success: (e) => {
  197. if (e.confirm) {
  198. uni.navigateTo({
  199. url: '/pages/public/login'
  200. })
  201. }
  202. },
  203. fail: () => {},
  204. complete: () => {}
  205. })
  206. } else {
  207. this.getIndexBuyData()
  208. }
  209. })
  210. // this.warehouseInOutInfo.phone = this.userInfo.phone
  211. },
  212. onReachBottom() { //上拉触底函数
  213. if (!this.isLoadMore) { //此处判断,上锁,防止重复请求
  214. this.pages += 1
  215. if (this.statusFlag == 1) {
  216. this.warehouseInOutInfo.currentPage += 1
  217. } else {
  218. this.data.currentPage += 1
  219. }
  220. this.getIndexBuyData()
  221. }
  222. },
  223. // onLoad(options) {
  224. // this.getIndexBuyData()
  225. // },
  226. filters: {
  227. formatDate(date) {
  228. var date = new Date(date)
  229. var time = new Date()
  230. var newdate = ''
  231. if (time.getMonth() + 1 >= 10) {
  232. newdate = time.getFullYear() + '-' + (time.getMonth() + 1) + '-' + time.getDate()
  233. } else {
  234. newdate = time.getFullYear() + '-0' + (time.getMonth() + 1) + '-' + time.getDate()
  235. }
  236. //把时间戳改为yyyy-MM-dd格式
  237. //判断是否今天
  238. var datatime = ''
  239. if (date.getMonth() + 1 >= 10) {
  240. datatime = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()
  241. } else {
  242. datatime = date.getFullYear() + '-0' + (date.getMonth() + 1) + '-' + date.getDate()
  243. }
  244. if (datatime == newdate) {
  245. var h = date.getHours();
  246. h = h < 10 ? '0' + h : h;
  247. var m = date.getMinutes();
  248. m = m < 10 ? '0' + m : m;
  249. var s = date.getSeconds();
  250. s = s < 10 ? '0' + s : s;
  251. return h + ':' + m + ':' + s;
  252. } else {
  253. if (date.getMonth() + 1 >= 10) {
  254. return date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()
  255. } else {
  256. return date.getFullYear() + '-0' + (date.getMonth() + 1) + '-' + date.getDate()
  257. }
  258. }
  259. let o = {
  260. 'Y': date.getFullYear(),
  261. 'M+': date.getMonth() + 1,
  262. 'd+': date.getDate(),
  263. }
  264. },
  265. },
  266. methods: {
  267. // getRoles(){
  268. // let _rolesList = uni.getStorageSync('rolesList')
  269. // let _list = ['','']
  270. // for(let i = 0;i<_list.length;i++){
  271. // for(let k = 0;k<_rolesList.length;k++){
  272. // if(_list[i]==_rolesList[k]){
  273. // return true
  274. // }
  275. // }
  276. // }
  277. // return false
  278. // },
  279. change(status) {
  280. console.log(status);
  281. },
  282. searchKeyWord() {
  283. if (!this.keyword) {
  284. this.$api.msg('关键字不能为空')
  285. }
  286. uni.showLoading({
  287. title: "正在加载"
  288. })
  289. this.$api.doRequest('get', '/warehouseInOutInfo/selectInfoByKeyWord', this.warehouseInOutInfo).then(
  290. res => {
  291. if (res.data.code == 200) {
  292. this.taskInfo = res.data.data
  293. uni.hideLoading()
  294. } else {
  295. uni.showToast({
  296. title: res.data.message,
  297. icon: 'none',
  298. duration: 2000
  299. })
  300. uni.hideLoading(this.taskInfo, "信息")
  301. }
  302. console.log()
  303. }).catch(res => {
  304. uni.showToast({
  305. title: res.data.message,
  306. icon: 'none',
  307. duration: 2000
  308. })
  309. uni.hideLoading()
  310. })
  311. },
  312. getIndexBuyData(status) {
  313. const that = this
  314. var pages = that.pages
  315. var limit = that.limit
  316. var url = ''
  317. uni.showLoading({
  318. title: "正在加载"
  319. })
  320. var data = {}
  321. if (this.statusFlag == 1) {
  322. data = this.warehouseInOutInfo
  323. url = '/noticeTask/query/noticeTasks'
  324. } else {
  325. data = this.data
  326. url = '/commonUser/query/findHisPageNoticeTasks'
  327. }
  328. data.currentPage = pages
  329. data.pageSize = limit
  330. //this.warehouseInOutInfo.status = this.status
  331. this.$api.doRequest('get', url, data).then(res => {
  332. if (res.data.code == 200) {
  333. let data = res.data.data.records
  334. //采购信息
  335. if (data.length > 0) {
  336. if (status) {
  337. that.taskInfo = data
  338. } else {
  339. that.taskInfo = that.taskInfo.concat(data)
  340. }
  341. } else {
  342. if (that.pages > 1) {
  343. that.pages -= 1
  344. }
  345. that.isLoadMore = false
  346. that.loadStatus = 'nomore'
  347. }
  348. for (var i = 0; i < this.taskInfo.length; i++) {
  349. let _str = this.taskInfo[i]
  350. // let a = this.getRoles()
  351. if (_str.messageContent.indexOf("您发起") > -1) {
  352. _str.showRow = false
  353. } else {
  354. _str.showRow = true;
  355. }
  356. if(_str.businessType=='TRADE'){
  357. _str.showRow = false
  358. }
  359. this.taskInfo[i].department = this.taskInfo[i].messageContent.split(' ')[0]
  360. if (this.taskInfo[i].businessType == 'WAREHOUSE') {
  361. if (this.taskInfo[i].businessCode == 'INOUTTASK-TASK-APPROVE') {
  362. this.taskInfo[i].messageTitle = '出入库任务'
  363. }
  364. } else if (this.taskInfo[i].businessType == 'acquisition') {
  365. if (this.taskInfo[i].businessCode == 'PAYMENT-MANAGEMENT-APPROVE') {
  366. this.taskInfo[i].messageTitle = '付款管理'
  367. }
  368. } else if (this.taskInfo[i].businessType == 'REPORT') {
  369. if (this.taskInfo[i].businessCode == 'PROCUREMENT-CLOSE-REPORT') {
  370. this.taskInfo[i].messageTitle = '采购平仓统计'
  371. }
  372. if (this.taskInfo[i].businessCode == 'PROCUREMENT-RECEIPT-REPORT') {
  373. this.taskInfo[i].messageTitle = '采购入库统计'
  374. }
  375. if (this.taskInfo[i].businessCode == 'SALE-CLOSE-REPORT') {
  376. this.taskInfo[i].messageTitle = '销售平仓统计'
  377. }
  378. if (this.taskInfo[i].businessCode == 'SALE-RECEIPT-REPORT') {
  379. this.taskInfo[i].messageTitle = '销售入库统计'
  380. }
  381. if (this.taskInfo[i].businessCode == 'TRANSPORTATION-SETTLEMENT-REPORT') {
  382. this.taskInfo[i].messageTitle = '运输结算统计'
  383. }
  384. } else if (this.taskInfo[i].businessType == 'PROCUREMENT') {
  385. if (this.taskInfo[i].businessCode == 'PROCUREMENT-ORDER-APPROVE') {
  386. this.taskInfo[i].messageTitle = '采购订单'
  387. }
  388. } else if (this.taskInfo[i].businessType == 'SALE') {
  389. if (this.taskInfo[i].businessCode == 'SALE-ORDER-APPROVE') {
  390. this.taskInfo[i].messageTitle = '销售订单'
  391. }
  392. } else if (this.taskInfo[i].businessType == 'PROCUREMENT') {
  393. if (this.taskInfo[i].businessCode == 'PROCUREMENT-PRICE-APPROVE') {
  394. this.taskInfo[i].messageTitle = '仓库设置'
  395. }
  396. } else if (this.taskInfo[i].businessType == 'Tran') {
  397. if (this.taskInfo[i].businessCode == 'TRAN-TASK-APPROVE') {
  398. this.taskInfo[i].messageTitle = '运费设置'
  399. }
  400. }else if (this.taskInfo[i].businessType == 'ACQ') {
  401. if (this.taskInfo[i].businessCode == 'ACQUISITION-SETTLEMENT-APPRPVE') {
  402. this.taskInfo[i].messageTitle = '收购信息审核'
  403. }
  404. }
  405. }
  406. if (res.data.data.records.length == 0) {
  407. that.isSole = true
  408. } else {
  409. that.isSole = false
  410. }
  411. if (res.data.data.records.length == 0 && this.data.currentPage == 1 && this.statusFlag ==
  412. 3 ||
  413. res.data.data.records.length == 0 && this.warehouseInOutInfo.currentPage == 1 && this
  414. .statusFlag == 1) {
  415. console.log()
  416. this.taskInfo = []
  417. }
  418. uni.hideLoading()
  419. } else {
  420. uni.hideLoading()
  421. uni.showToast({
  422. title: "系统异常,请联系管理员",
  423. icon: 'none',
  424. duration: 2000
  425. })
  426. }
  427. }).catch(res => {
  428. uni.hideLoading()
  429. uni.showToast({
  430. title: "Session失效,请重新登录",
  431. icon: 'none',
  432. duration: 2000
  433. })
  434. })
  435. },
  436. tabcarchange(statusFlag) {
  437. this.statusFlag = statusFlag
  438. this.pageSize = 1
  439. this.getIndexBuyData(statusFlag)
  440. },
  441. navToDetailPage(item) {
  442. if (item.businessCode == 'PROCUREMENT-ORDER-APPROVE') {
  443. uni.navigateTo({
  444. url: '/pages/task/procurement_details?id=' + item.businessId + "&isShowbtn=true"
  445. })
  446. } else if (item.businessCode == 'SALE-ORDER-APPROVE') {
  447. uni.navigateTo({
  448. url: '/pages/task/sale_details?id=' + item.businessId + "&isShowbtn=true"
  449. })
  450. } else if (item.businessCode == 'SALE-CONTRACT-APPROVE') {
  451. uni.navigateTo({
  452. url: '/pages/task/audit/salecontract?id=' + item.businessId + "&isShowbtn=true"
  453. })
  454. } else if (item.businessCode == 'BUY-CONTRACT-APPROVE') {
  455. uni.navigateTo({
  456. url: '/pages/task/audit/purchasecontract?id=' + item.businessId + "&isShowbtn=true"
  457. })
  458. } else if (item.businessCode == 'PROCUREMENT-RECEIPT-REPORT') {
  459. uni.navigateTo({
  460. url: '/pages/task/procurement_report_details?id=' + item.businessId + "&isShowbtn=true"
  461. })
  462. } else if (item.businessCode == 'PROCUREMENT-CLOSE-REPORT') {
  463. uni.navigateTo({
  464. url: '/pages/task/procurement_close_details?id=' + item.businessId + "&isShowbtn=true"
  465. })
  466. } else if (item.businessCode == 'SALE-RECEIPT-REPORT') {
  467. uni.navigateTo({
  468. url: '/pages/task/sale_report_details?id=' + item.businessId + "&isShowbtn=true"
  469. })
  470. } else if (item.businessCode == 'SALE-CLOSE-REPORT') {
  471. uni.navigateTo({
  472. url: '/pages/task/sale_close_details?id=' + item.businessId + "&isShowbtn=true"
  473. })
  474. } else if (item.businessCode == 'PROCUREMENT-PRICE-APPROVE') {
  475. if (this.statusFlag == 1) {
  476. uni.navigateTo({
  477. url: `/pages/task/audit/warehouse_approval?id=${item.businessId}&isShowbtn=true`
  478. })
  479. } else {
  480. uni.navigateTo({
  481. url: '/pages/task/audit/warehouse_details/?id=' + item.businessId + "&isShowbtn=true"
  482. })
  483. }
  484. } else if (item.businessCode == 'PAYMENT-MANAGEMENT-APPROVE') {
  485. if (this.statusFlag == 1) {
  486. uni.navigateTo({
  487. url: `/pages/task/audit/acquisition_settlement_approval?id=${item.businessId}&isShowbtn=true`
  488. })
  489. } else {
  490. uni.navigateTo({
  491. url: '/pages/task/audit/acquisition_settlement_details/?id=' + item.businessId +
  492. "&isShowbtn=true"
  493. })
  494. }
  495. } else if (item.businessCode == 'INOUTTASK-TASK-APPROVE') {
  496. if (this.statusFlag == 1) {
  497. uni.navigateTo({
  498. url: `/pages/task/audit/Issueandreceipt_task_approval?id=` + item.businessId +
  499. "&isShowbtn=true"
  500. })
  501. } else {
  502. uni.navigateTo({
  503. url: `/pages/task/audit/Issueandreceipt_task_details?id=` + item.businessId +
  504. "&isShowbtn=true"
  505. })
  506. }
  507. } else if (item.businessCode == 'STOCK-PROCUREMENT-RECEIPT-REPORT') {
  508. if (this.statusFlag == 1) {
  509. uni.navigateTo({
  510. url: `/pages/task/audit/purchase_settlement_approval?id=` + item.businessId +
  511. "&isShowbtn=true"
  512. })
  513. } else {
  514. uni.navigateTo({
  515. url: `/pages/task/audit/purchase_settlement_details?id=` + item.businessId +
  516. "&isShowbtn=true"
  517. })
  518. }
  519. } else if (item.businessCode == 'TRANSPORTATION-SETTLEMENT-REPORT') {
  520. if (this.statusFlag == 1) {
  521. uni.navigateTo({
  522. url: `/pages/task/audit/freight_settlement_approval?id=` + item.businessId +
  523. "&isShowbtn=true"
  524. })
  525. } else {
  526. uni.navigateTo({
  527. url: `/pages/task/audit/freight_settlement_details?id=` + item.businessId +
  528. '&compId=' + this
  529. .pcUserInfo.compId + "&isShowbtn=true"
  530. })
  531. }
  532. } else if (item.businessCode == 'TRAN-TASK-APPROVE') {
  533. if (this.statusFlag == 1) {
  534. uni.navigateTo({
  535. url: `/pages/task/audit/freight_setting_approval?id=` + item.businessId +
  536. "&isShowbtn=true"
  537. })
  538. } else {
  539. uni.navigateTo({
  540. url: `/pages/task/audit/freight_setting_details?id=` + item.businessId +
  541. "&isShowbtn=true"
  542. })
  543. }
  544. }else if (item.businessCode == 'ACQUISITION-SETTLEMENT-APPRPVE') {
  545. if (this.statusFlag == 1) {
  546. uni.navigateTo({
  547. url: `/pages/task/audit/acquisition_information_approval?id=` + item.businessId + "&isShowbtn=true"
  548. })
  549. } else {
  550. uni.navigateTo({
  551. url: `/pages/task/audit/acquisition_information_details?id=` + item.businessId + "&isShowbtn=true"
  552. })
  553. }
  554. }
  555. if (item.taskType == "入库任务") {
  556. if (item.statusFlag == 3) {
  557. uni.navigateTo({
  558. url: `/pageD/warehousings/warehousingDetails?id=${item.id}&isShowbtn=true`
  559. })
  560. } else {
  561. uni.navigateTo({
  562. url: `/pageD/warehousings/warehousings?id=${item.id}&goodsName=${item.goodsName}&contractNo=${item.contractNo}&startWeight=${item.startWeight}&carNo=${item.carNo}&tranCarNo=${item.tranCarNo}&warehouseName=${item.warehouseName}&addressUrl=${item.addressUrl}&inOutDate=${item.inOutDate}&binNumber=${item.binNumber}&isShowbtn=true`
  563. })
  564. }
  565. } else if (item.taskType == "出库任务") {
  566. if (item.statusFlag == 3) {
  567. uni.navigateTo({
  568. url: `/pageD/warehousings/ex_warehouse_detail?id=${item.id}&isShowbtn=true`
  569. })
  570. } else {
  571. uni.navigateTo({
  572. url: `/pageD/warehousings/ex_warehouse?id=${item.id}&goodsName=${item.goodsName}&contractNo=${item.contractNo}&consignee=${item.consignee}&carNo=${item.carNo}&tranCarNo=${item.tranCarNo}&boxNo=${item.boxNo}&titleNo=${item.titleNo}&isShowbtn=true`
  573. })
  574. }
  575. }
  576. }
  577. }
  578. }
  579. </script>
  580. <style lang="scss" scoped>
  581. .tag {
  582. background: #F5F6F9;
  583. padding: 5px;
  584. color: #333333;
  585. display: inline-flex;
  586. font-size: 22rpx;
  587. border-radius: 3px;
  588. margin: 3px;
  589. }
  590. .introduce-section {
  591. // background: red;
  592. }
  593. .introduce-section .title_b .title-tip {
  594. font-size: 13px;
  595. height: 40px;
  596. line-height: 40px;
  597. flex: 2.5;
  598. }
  599. .introduce-section .title_b .title {
  600. font-size: 13px;
  601. height: 40px;
  602. flex: 2.5;
  603. }
  604. .introduce-section .title_b .title-tip-b {
  605. flex: 1;
  606. font-size: 13px;
  607. color: #878C9C;
  608. height: 40px;
  609. line-height: 40px;
  610. }
  611. .introduce-section .title {
  612. justify-content: space-between;
  613. align-items: flex-start;
  614. }
  615. .introduce-section .title text {
  616. font-size: 28rpx;
  617. }
  618. .introduce-section .title .title-tip {
  619. flex: 1;
  620. font-size: 28rpx;
  621. color: #FE6430;
  622. font-weight: 500;
  623. height: 50px;
  624. line-height: 50px;
  625. border-bottom: 1px solid #EEEEEE;
  626. }
  627. .introduce-section .title .title-tip-a {
  628. flex: 1;
  629. font-size: 15px;
  630. color: #AFB3BF;
  631. font-weight: 500;
  632. height: 50px;
  633. line-height: 50px;
  634. border-bottom: 1px solid #EEEEEE;
  635. }
  636. .introduce-section .guess-item {
  637. border-radius: 10rpx;
  638. background: #fff;
  639. padding: 32rpx;
  640. margin: 20rpx;
  641. }
  642. .line {
  643. display: inline-block;
  644. padding: 5px;
  645. position: relative;
  646. font-size: 17px;
  647. }
  648. .line.active {
  649. font-size: 19px;
  650. font-weight: 900;
  651. }
  652. .line.active:after {
  653. content: '';
  654. display: block;
  655. position: absolute;
  656. width: 18px;
  657. left: 50%;
  658. transform: translateX(-50%);
  659. bottom: 0;
  660. border-bottom: 3px solid #22C572;
  661. }
  662. /deep/.u-action-active {
  663. margin-right: 6px;
  664. }
  665. .content1-top {
  666. background: white;
  667. padding: 20rpx 20rpx 0 20rpx;
  668. border-radius: 0 0 30rpx 30rpx;
  669. }
  670. .search-form {
  671. margin-bottom: 20rpx;
  672. }
  673. .title-row1 {
  674. font-size: 34rpx;
  675. font-weight:600;
  676. }
  677. .row2 {
  678. margin-top: 55rpx;
  679. }
  680. .top2 {
  681. display: flex;
  682. align-items: center;
  683. justify-content: space-between;
  684. .right {
  685. display: flex;
  686. align-items: center;
  687. .right-contrent1 {
  688. margin: 20rpx;
  689. }
  690. }
  691. }
  692. </style>