my_task.vue 23 KB

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