my_task.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  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. this.taskInfo[i].department = this.taskInfo[i].messageContent.split(' ')[0]
  356. if (this.taskInfo[i].businessType == 'WAREHOUSE') {
  357. if (this.taskInfo[i].businessCode == 'INOUTTASK-TASK-APPROVE') {
  358. this.taskInfo[i].messageTitle = '出入库任务'
  359. }
  360. } else if (this.taskInfo[i].businessType == 'acquisition') {
  361. if (this.taskInfo[i].businessCode == 'PAYMENT-MANAGEMENT-APPROVE') {
  362. this.taskInfo[i].messageTitle = '付款管理'
  363. }
  364. } else if (this.taskInfo[i].businessType == 'REPORT') {
  365. if (this.taskInfo[i].businessCode == 'PROCUREMENT-CLOSE-REPORT') {
  366. this.taskInfo[i].messageTitle = '采购平仓统计'
  367. }
  368. if (this.taskInfo[i].businessCode == 'PROCUREMENT-RECEIPT-REPORT') {
  369. this.taskInfo[i].messageTitle = '采购入库统计'
  370. }
  371. if (this.taskInfo[i].businessCode == 'SALE-CLOSE-REPORT') {
  372. this.taskInfo[i].messageTitle = '销售平仓统计'
  373. }
  374. if (this.taskInfo[i].businessCode == 'SALE-RECEIPT-REPORT') {
  375. this.taskInfo[i].messageTitle = '销售入库统计'
  376. }
  377. if (this.taskInfo[i].businessCode == 'TRANSPORTATION-SETTLEMENT-REPORT') {
  378. this.taskInfo[i].messageTitle = '运输结算统计'
  379. }
  380. } else if (this.taskInfo[i].businessType == 'PROCUREMENT') {
  381. if (this.taskInfo[i].businessCode == 'PROCUREMENT-ORDER-APPROVE') {
  382. this.taskInfo[i].messageTitle = '采购订单'
  383. }
  384. } else if (this.taskInfo[i].businessType == 'SALE') {
  385. if (this.taskInfo[i].businessCode == 'SALE-ORDER-APPROVE') {
  386. this.taskInfo[i].messageTitle = '销售订单'
  387. }
  388. } else if (this.taskInfo[i].businessType == 'PROCUREMENT') {
  389. if (this.taskInfo[i].businessCode == 'PROCUREMENT-PRICE-APPROVE') {
  390. this.taskInfo[i].messageTitle = '仓库设置'
  391. }
  392. } else if (this.taskInfo[i].businessType == 'Tran') {
  393. if (this.taskInfo[i].businessCode == 'TRAN-TASK-APPROVE') {
  394. this.taskInfo[i].messageTitle = '运费设置'
  395. }
  396. }else if (this.taskInfo[i].businessType == 'ACQ') {
  397. if (this.taskInfo[i].businessCode == 'ACQUISITION-SETTLEMENT-APPRPVE') {
  398. this.taskInfo[i].messageTitle = '收购信息审核'
  399. }
  400. }
  401. }
  402. if (res.data.data.records.length == 0) {
  403. that.isSole = true
  404. } else {
  405. that.isSole = false
  406. }
  407. if (res.data.data.records.length == 0 && this.data.currentPage == 1 && this.statusFlag ==
  408. 3 ||
  409. res.data.data.records.length == 0 && this.warehouseInOutInfo.currentPage == 1 && this
  410. .statusFlag == 1) {
  411. console.log()
  412. this.taskInfo = []
  413. }
  414. uni.hideLoading()
  415. } else {
  416. uni.hideLoading()
  417. uni.showToast({
  418. title: "系统异常,请联系管理员",
  419. icon: 'none',
  420. duration: 2000
  421. })
  422. }
  423. }).catch(res => {
  424. uni.hideLoading()
  425. uni.showToast({
  426. title: "Session失效,请重新登录",
  427. icon: 'none',
  428. duration: 2000
  429. })
  430. })
  431. },
  432. tabcarchange(statusFlag) {
  433. this.statusFlag = statusFlag
  434. this.pageSize = 1
  435. this.getIndexBuyData(statusFlag)
  436. },
  437. navToDetailPage(item) {
  438. if (item.businessCode == 'PROCUREMENT-ORDER-APPROVE') {
  439. uni.navigateTo({
  440. url: '/pages/task/procurement_details?id=' + item.businessId + "&isShowbtn=true"
  441. })
  442. } else if (item.businessCode == 'SALE-ORDER-APPROVE') {
  443. uni.navigateTo({
  444. url: '/pages/task/sale_details?id=' + item.businessId + "&isShowbtn=true"
  445. })
  446. } else if (item.businessCode == 'SALE-CONTRACT-APPROVE') {
  447. uni.navigateTo({
  448. url: '/pages/task/audit/salecontract?id=' + item.businessId + "&isShowbtn=true"
  449. })
  450. } else if (item.businessCode == 'BUY-CONTRACT-APPROVE') {
  451. uni.navigateTo({
  452. url: '/pages/task/audit/purchasecontract?id=' + item.businessId + "&isShowbtn=true"
  453. })
  454. } else if (item.businessCode == 'PROCUREMENT-RECEIPT-REPORT') {
  455. uni.navigateTo({
  456. url: '/pages/task/procurement_report_details?id=' + item.businessId + "&isShowbtn=true"
  457. })
  458. } else if (item.businessCode == 'PROCUREMENT-CLOSE-REPORT') {
  459. uni.navigateTo({
  460. url: '/pages/task/procurement_close_details?id=' + item.businessId + "&isShowbtn=true"
  461. })
  462. } else if (item.businessCode == 'SALE-RECEIPT-REPORT') {
  463. uni.navigateTo({
  464. url: '/pages/task/sale_report_details?id=' + item.businessId + "&isShowbtn=true"
  465. })
  466. } else if (item.businessCode == 'SALE-CLOSE-REPORT') {
  467. uni.navigateTo({
  468. url: '/pages/task/sale_close_details?id=' + item.businessId + "&isShowbtn=true"
  469. })
  470. } else if (item.businessCode == 'PROCUREMENT-PRICE-APPROVE') {
  471. if (this.statusFlag == 1) {
  472. uni.navigateTo({
  473. url: `/pages/task/audit/warehouse_approval?id=${item.businessId}&isShowbtn=true`
  474. })
  475. } else {
  476. uni.navigateTo({
  477. url: '/pages/task/audit/warehouse_details/?id=' + item.businessId + "&isShowbtn=true"
  478. })
  479. }
  480. } else if (item.businessCode == 'PAYMENT-MANAGEMENT-APPROVE') {
  481. if (this.statusFlag == 1) {
  482. uni.navigateTo({
  483. url: `/pages/task/audit/acquisition_settlement_approval?id=${item.businessId}&isShowbtn=true`
  484. })
  485. } else {
  486. uni.navigateTo({
  487. url: '/pages/task/audit/acquisition_settlement_details/?id=' + item.businessId +
  488. "&isShowbtn=true"
  489. })
  490. }
  491. } else if (item.businessCode == 'INOUTTASK-TASK-APPROVE') {
  492. if (this.statusFlag == 1) {
  493. uni.navigateTo({
  494. url: `/pages/task/audit/Issueandreceipt_task_approval?id=` + item.businessId +
  495. "&isShowbtn=true"
  496. })
  497. } else {
  498. uni.navigateTo({
  499. url: `/pages/task/audit/Issueandreceipt_task_details?id=` + item.businessId +
  500. "&isShowbtn=true"
  501. })
  502. }
  503. } else if (item.businessCode == 'STOCK-PROCUREMENT-RECEIPT-REPORT') {
  504. if (this.statusFlag == 1) {
  505. uni.navigateTo({
  506. url: `/pages/task/audit/purchase_settlement_approval?id=` + item.businessId +
  507. "&isShowbtn=true"
  508. })
  509. } else {
  510. uni.navigateTo({
  511. url: `/pages/task/audit/purchase_settlement_details?id=` + item.businessId +
  512. "&isShowbtn=true"
  513. })
  514. }
  515. } else if (item.businessCode == 'TRANSPORTATION-SETTLEMENT-REPORT') {
  516. if (this.statusFlag == 1) {
  517. uni.navigateTo({
  518. url: `/pages/task/audit/freight_settlement_approval?id=` + item.businessId +
  519. "&isShowbtn=true"
  520. })
  521. } else {
  522. uni.navigateTo({
  523. url: `/pages/task/audit/freight_settlement_details?id=` + item.businessId +
  524. '&compId=' + this
  525. .pcUserInfo.compId + "&isShowbtn=true"
  526. })
  527. }
  528. } else if (item.businessCode == 'TRAN-TASK-APPROVE') {
  529. if (this.statusFlag == 1) {
  530. uni.navigateTo({
  531. url: `/pages/task/audit/freight_setting_approval?id=` + item.businessId +
  532. "&isShowbtn=true"
  533. })
  534. } else {
  535. uni.navigateTo({
  536. url: `/pages/task/audit/freight_setting_details?id=` + item.businessId +
  537. "&isShowbtn=true"
  538. })
  539. }
  540. }else if (item.businessCode == 'ACQUISITION-SETTLEMENT-APPRPVE') {
  541. if (this.statusFlag == 1) {
  542. uni.navigateTo({
  543. url: `/pages/task/audit/acquisition_information_approval?id=` + item.businessId + "&isShowbtn=true"
  544. })
  545. } else {
  546. uni.navigateTo({
  547. url: `/pages/task/audit/acquisition_information_details?id=` + item.businessId + "&isShowbtn=true"
  548. })
  549. }
  550. }
  551. if (item.taskType == "入库任务") {
  552. if (item.statusFlag == 3) {
  553. uni.navigateTo({
  554. url: `/pageD/warehousings/warehousingDetails?id=${item.id}&isShowbtn=true`
  555. })
  556. } else {
  557. uni.navigateTo({
  558. 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`
  559. })
  560. }
  561. } else if (item.taskType == "出库任务") {
  562. if (item.statusFlag == 3) {
  563. uni.navigateTo({
  564. url: `/pageD/warehousings/ex_warehouse_detail?id=${item.id}&isShowbtn=true`
  565. })
  566. } else {
  567. uni.navigateTo({
  568. 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`
  569. })
  570. }
  571. }
  572. }
  573. }
  574. }
  575. </script>
  576. <style lang="scss" scoped>
  577. .tag {
  578. background: #F5F6F9;
  579. padding: 5px;
  580. color: #333333;
  581. display: inline-flex;
  582. font-size: 22rpx;
  583. border-radius: 3px;
  584. margin: 3px;
  585. }
  586. .introduce-section {
  587. // background: red;
  588. }
  589. .introduce-section .title_b .title-tip {
  590. font-size: 13px;
  591. height: 40px;
  592. line-height: 40px;
  593. flex: 2.5;
  594. }
  595. .introduce-section .title_b .title {
  596. font-size: 13px;
  597. height: 40px;
  598. flex: 2.5;
  599. }
  600. .introduce-section .title_b .title-tip-b {
  601. flex: 1;
  602. font-size: 13px;
  603. color: #878C9C;
  604. height: 40px;
  605. line-height: 40px;
  606. }
  607. .introduce-section .title {
  608. justify-content: space-between;
  609. align-items: flex-start;
  610. }
  611. .introduce-section .title text {
  612. font-size: 28rpx;
  613. }
  614. .introduce-section .title .title-tip {
  615. flex: 1;
  616. font-size: 28rpx;
  617. color: #FE6430;
  618. font-weight: 500;
  619. height: 50px;
  620. line-height: 50px;
  621. border-bottom: 1px solid #EEEEEE;
  622. }
  623. .introduce-section .title .title-tip-a {
  624. flex: 1;
  625. font-size: 15px;
  626. color: #AFB3BF;
  627. font-weight: 500;
  628. height: 50px;
  629. line-height: 50px;
  630. border-bottom: 1px solid #EEEEEE;
  631. }
  632. .introduce-section .guess-item {
  633. border-radius: 10rpx;
  634. background: #fff;
  635. padding: 32rpx;
  636. margin: 20rpx;
  637. }
  638. .line {
  639. display: inline-block;
  640. padding: 5px;
  641. position: relative;
  642. font-size: 17px;
  643. }
  644. .line.active {
  645. font-size: 19px;
  646. font-weight: 900;
  647. }
  648. .line.active:after {
  649. content: '';
  650. display: block;
  651. position: absolute;
  652. width: 18px;
  653. left: 50%;
  654. transform: translateX(-50%);
  655. bottom: 0;
  656. border-bottom: 3px solid #22C572;
  657. }
  658. /deep/.u-action-active {
  659. margin-right: 6px;
  660. }
  661. .content1-top {
  662. background: white;
  663. padding: 20rpx 20rpx 0 20rpx;
  664. border-radius: 0 0 30rpx 30rpx;
  665. }
  666. .search-form {
  667. margin-bottom: 20rpx;
  668. }
  669. .title-row1 {
  670. font-size: 34rpx;
  671. font-weight:600;
  672. }
  673. .row2 {
  674. margin-top: 55rpx;
  675. }
  676. .top2 {
  677. display: flex;
  678. align-items: center;
  679. justify-content: space-between;
  680. .right {
  681. display: flex;
  682. align-items: center;
  683. .right-contrent1 {
  684. margin: 20rpx;
  685. }
  686. }
  687. }
  688. </style>