my_task.vue 25 KB

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