my_task.vue 22 KB

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