my_task.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800
  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. console.log()
  324. }).catch(res => {
  325. uni.showToast({
  326. title: res.data.message,
  327. icon: 'none',
  328. duration: 2000
  329. })
  330. uni.hideLoading()
  331. })
  332. },
  333. getIndexBuyData(status) {debugger
  334. const that = this
  335. var pages = that.pages
  336. var limit = that.limit
  337. var url = ''
  338. uni.showLoading({
  339. title: "正在加载"
  340. })
  341. var data = {}
  342. if (this.statusFlag == 1) {
  343. data = this.warehouseInOutInfo
  344. url = '/newNoticeTask/query/noticeTasks'
  345. } else {
  346. data = this.data
  347. url = '/commonUser/query/findHisPageNoticeTasks'
  348. }
  349. data.currentPage = pages
  350. data.pageSize = limit
  351. //this.warehouseInOutInfo.status = this.status
  352. this.$api.doRequest('get', url, data).then(res => {
  353. if (res.data.code == 200) {
  354. let data = res.data.data.records
  355. //采购信息
  356. if (data.length > 0) {
  357. if (status) {
  358. that.taskInfo = data
  359. } else {
  360. that.taskInfo = that.taskInfo.concat(data)
  361. }
  362. } else {
  363. if (that.pages > 1) {
  364. that.pages -= 1
  365. }
  366. that.isLoadMore = false
  367. that.loadStatus = 'nomore'
  368. }
  369. for (var i = 0; i < this.taskInfo.length; i++) {
  370. let _str = this.taskInfo[i]
  371. // let a = this.getRoles()
  372. if (_str.messageContent.indexOf("您发起") > -1) {
  373. _str.showRow = false
  374. } else {
  375. _str.showRow = true;
  376. }
  377. // if(_str.businessType=='TRADE'){
  378. // _str.showRow = false
  379. // }.split(' ')[0]
  380. this.taskInfo[i].department = this.taskInfo[i].messageTitle
  381. if(this.taskInfo[i].messageContent.split(' ').length > 1){
  382. this.taskInfo[i].messageContent = this.taskInfo[i].messageContent.split(' ')[1]
  383. }
  384. if (this.taskInfo[i].businessType == 'WAREHOUSE') {
  385. if (this.taskInfo[i].businessCode == 'INOUTTASK-TASK-APPROVE') {
  386. this.taskInfo[i].messageTitle = '出入库任务'
  387. }
  388. } else if (this.taskInfo[i].businessType == 'acquisition') {
  389. if (this.taskInfo[i].businessCode == 'PAYMENT-MANAGEMENT-APPROVE') {
  390. this.taskInfo[i].messageTitle = '付款管理'
  391. }
  392. } else if (this.taskInfo[i].businessType == 'REPORT') {
  393. if (this.taskInfo[i].businessCode == 'PROCUREMENT-CLOSE-REPORT') {
  394. this.taskInfo[i].messageTitle = '采购平仓统计'
  395. }
  396. if (this.taskInfo[i].businessCode == 'PROCUREMENT-RECEIPT-REPORT') {
  397. this.taskInfo[i].messageTitle = '采购入库统计'
  398. }
  399. if (this.taskInfo[i].businessCode == 'SALE-CLOSE-REPORT') {
  400. this.taskInfo[i].messageTitle = '销售平仓统计'
  401. }
  402. if (this.taskInfo[i].businessCode == 'SALE-RECEIPT-REPORT') {
  403. this.taskInfo[i].messageTitle = '销售入库统计'
  404. }
  405. if (this.taskInfo[i].businessCode == 'TRANSPORTATION-SETTLEMENT-REPORT') {
  406. this.taskInfo[i].messageTitle = '运输结算统计'
  407. }
  408. } else if (this.taskInfo[i].businessType == 'PROCUREMENT') {
  409. if (this.taskInfo[i].businessCode == 'PROCUREMENT-ORDER-APPROVE') {
  410. this.taskInfo[i].messageTitle = '采购订单'
  411. }
  412. } else if (this.taskInfo[i].businessType == 'SALE') {
  413. if (this.taskInfo[i].businessCode == 'SALE-ORDER-APPROVE') {
  414. this.taskInfo[i].messageTitle = '销售订单'
  415. }
  416. } else if (this.taskInfo[i].businessType == 'PROCUREMENT') {
  417. if (this.taskInfo[i].businessCode == 'PROCUREMENT-PRICE-APPROVE') {
  418. this.taskInfo[i].messageTitle = '仓库设置'
  419. }
  420. } else if (this.taskInfo[i].businessType == 'Tran') {
  421. if (this.taskInfo[i].businessCode == 'TRAN-TASK-APPROVE') {
  422. this.taskInfo[i].messageTitle = '运费设置'
  423. }
  424. }else if (this.taskInfo[i].businessType == 'ACQ') {
  425. if (this.taskInfo[i].businessCode == 'ACQUISITION-SETTLEMENT-APPRPVE') {
  426. this.taskInfo[i].messageTitle = '收购信息审核'
  427. }
  428. }else if (this.taskInfo[i].businessType == 'TRADE') {
  429. if (this.taskInfo[i].businessCode == 'TRADE-WAREHOUSE-REPORT') {
  430. this.taskInfo[i].messageTitle = '贸易服务审核'
  431. }
  432. }
  433. }
  434. if (res.data.data.records.length == 0) {
  435. that.isSole = true
  436. } else {
  437. that.isSole = false
  438. }
  439. if (res.data.data.records.length == 0 && this.data.currentPage == 1 && this.statusFlag ==
  440. 3 ||
  441. res.data.data.records.length == 0 && this.warehouseInOutInfo.currentPage == 1 && this
  442. .statusFlag == 1) {
  443. console.log()
  444. this.taskInfo = []
  445. }
  446. uni.hideLoading()
  447. } else {
  448. uni.hideLoading()
  449. uni.showToast({
  450. title: "系统异常,请联系管理员",
  451. icon: 'none',
  452. duration: 2000
  453. })
  454. }
  455. }).catch(res => {
  456. uni.hideLoading()
  457. uni.showToast({
  458. title: "Session失效,请重新登录",
  459. icon: 'none',
  460. duration: 2000
  461. })
  462. })
  463. },
  464. tabcarchange(statusFlag) {
  465. this.statusFlag = statusFlag
  466. this.pageSize = 1
  467. this.getIndexBuyData(statusFlag)
  468. },
  469. navToDetailPage(item) {
  470. if (item.businessCode == 'PROCUREMENT-ORDER-APPROVE') {
  471. uni.navigateTo({
  472. url: '/pages/task/procurement_details?id=' + item.businessId + "&isShowbtn=true"
  473. })
  474. } else if (item.businessCode == 'SALE-ORDER-APPROVE') {
  475. uni.navigateTo({
  476. url: '/pages/task/sale_details?id=' + item.businessId + "&isShowbtn=true"
  477. })
  478. } else if (item.businessCode == 'SALE-CONTRACT-APPROVE') {
  479. uni.navigateTo({
  480. url: '/pages/task/audit/salecontract?id=' + item.businessId + "&isShowbtn=true"
  481. })
  482. }
  483. else if (item.businessCode == 'DAISHOU-CONTRACT-APPROVE') {
  484. uni.navigateTo({
  485. url: '/pages/task/audit/daishou_details?id=' + item.businessId + "&isShowbtn=true"
  486. })
  487. }else if (item.businessCode == 'DAICHU-CONTRACT-APPROVE') {
  488. uni.navigateTo({
  489. url: '/pages/task/audit/daichu_details?id=' + item.businessId + "&isShowbtn=true"
  490. })
  491. }else if (item.businessCode == 'BUY-CONTRACT-APPROVE') {
  492. uni.navigateTo({
  493. url: '/pages/task/audit/purchasecontract?id=' + item.businessId + "&isShowbtn=true"
  494. })
  495. } else if (item.businessCode == 'PROCUREMENT-RECEIPT-REPORT') {
  496. uni.navigateTo({
  497. url: '/pages/task/procurement_report_details?id=' + item.businessId + "&isShowbtn=true"
  498. })
  499. } else if (item.businessCode == 'PROCUREMENT-CLOSE-REPORT') {
  500. uni.navigateTo({
  501. url: '/pages/task/procurement_close_details?id=' + item.businessId + "&isShowbtn=true"
  502. })
  503. } else if (item.businessCode == 'SALE-RECEIPT-REPORT') {
  504. uni.navigateTo({
  505. url: '/pages/task/sale_report_details?id=' + item.businessId + "&isShowbtn=true"
  506. })
  507. } else if (item.businessCode == 'SALE-CLOSE-REPORT') {
  508. uni.navigateTo({
  509. url: '/pages/task/sale_close_details?id=' + item.businessId + "&isShowbtn=true"
  510. })
  511. } else if (item.businessCode == 'PROCUREMENT-PRICE-APPROVE') {
  512. if (this.statusFlag == 1) {
  513. uni.navigateTo({
  514. url: `/pages/task/audit/warehouse_approval?id=${item.businessId}&isShowbtn=true`
  515. })
  516. } else {
  517. uni.navigateTo({
  518. url: '/pages/task/audit/warehouse_details?id=' + item.businessId + "&isShowbtn=true"
  519. })
  520. }
  521. } else if (item.businessCode == 'PAYMENT-MANAGEMENT-APPROVE') {
  522. if (this.statusFlag == 1) {
  523. uni.navigateTo({
  524. url: `/pages/task/audit/acquisition_settlement_approval?vesselId=${item.vesselId}`
  525. })
  526. } else {
  527. uni.navigateTo({
  528. url: '/pages/task/audit/acquisition_settlement_details?id=' + item.businessId +'&isShowbtn=true'
  529. })
  530. }
  531. } else if (item.businessCode == 'INOUTTASK-TASK-APPROVE') {
  532. if (this.statusFlag == 1) {
  533. uni.navigateTo({
  534. url: `/pages/task/audit/Issueandreceipt_task_approval?id=` + item.businessId +
  535. "&isShowbtn=true"
  536. })
  537. } else {
  538. uni.navigateTo({
  539. url: `/pages/task/audit/Issueandreceipt_task_details?id=` + item.businessId +
  540. "&isShowbtn=true"
  541. })
  542. }
  543. } else if (item.businessCode == 'STOCK-PROCUREMENT-RECEIPT-REPORT') {
  544. if (this.statusFlag == 1) {
  545. uni.navigateTo({
  546. url: `/pages/task/audit/purchase_settlement_approval?id=` + item.businessId +
  547. "&isShowbtn=true"
  548. })
  549. } else {
  550. uni.navigateTo({
  551. url: `/pages/task/audit/purchase_settlement_details?id=` + item.businessId +
  552. "&isShowbtn=true"
  553. })
  554. }
  555. } else if (item.businessCode == 'TRANSPORTATION-SETTLEMENT-REPORT') {
  556. if (this.statusFlag == 1) {
  557. uni.navigateTo({
  558. url: `/pages/task/audit/freight_settlement_approval?id=` + item.businessId +
  559. "&isShowbtn=true"
  560. })
  561. } else {
  562. uni.navigateTo({
  563. url: `/pages/task/audit/freight_settlement_details?id=` + item.businessId +
  564. '&compId=' + this
  565. .pcUserInfo.compId + "&isShowbtn=true"
  566. })
  567. }
  568. } else if (item.businessCode == 'TRAN-TASK-APPROVE') {
  569. if (this.statusFlag == 1) {
  570. uni.navigateTo({
  571. url: `/pages/task/audit/freight_setting_approval?id=` + item.businessId +
  572. "&isShowbtn=true"
  573. })
  574. } else {
  575. uni.navigateTo({
  576. url: `/pages/task/audit/freight_setting_details?id=` + item.businessId +
  577. "&isShowbtn=true"
  578. })
  579. }
  580. }else if (item.businessCode == 'TRAN-TEAM-APPROVE') {
  581. if (this.statusFlag == 1) {
  582. uni.navigateTo({
  583. url: `/pages/task/audit/freight_setting_approval?id=` + item.businessId +
  584. "&isShowbtn=true"
  585. })
  586. } else {
  587. uni.navigateTo({
  588. url: `/pages/task/audit/freight_setting_details?id=` + item.businessId +
  589. "&isShowbtn=true"
  590. })
  591. }
  592. }else if (item.businessCode == 'ACQUISITION-SETTLEMENT-APPRPVE') {
  593. if (this.statusFlag == 1) {
  594. uni.navigateTo({
  595. url: `/pages/task/audit/acquisition_information_approval?id=` + item.businessId + "&isShowbtn=true"
  596. })
  597. } else {
  598. uni.navigateTo({
  599. url: `/pages/task/audit/acquisition_information_details?id=` + item.businessId + "&isShowbtn=true"
  600. })
  601. }
  602. }else if (item.businessCode == 'TRADE-WAREHOUSE-REPORT') {
  603. if (this.statusFlag == 1) {
  604. uni.navigateTo({
  605. url: `/pages/task/audit/tradeServices_audit?id=` + item.businessId
  606. })
  607. } else {
  608. uni.navigateTo({
  609. url: `/pages/task/audit/tradeServices_audit_approval?id=` + item.businessId
  610. })
  611. }
  612. } else if (item.businessCode == 'COLLECTION-WAREHOUSING-RECORD') {
  613. if (this.statusFlag == 1) {
  614. uni.navigateTo({
  615. url: `/pages/task/audit/collection_business_approval?id=` + item.businessId + "&isShowbtn=true"
  616. })
  617. } else {
  618. uni.navigateTo({
  619. url: `/pages/task/audit/collection_business_details?id=` + item.businessId + "&isShowbtn=true"
  620. })
  621. }
  622. }
  623. if (item.taskType == "入库任务") {
  624. if (item.statusFlag == 3) {
  625. uni.navigateTo({
  626. url: `/pageD/warehousings/warehousingDetails?id=${item.id}&isShowbtn=true`
  627. })
  628. } else {
  629. uni.navigateTo({
  630. 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`
  631. })
  632. }
  633. } else if (item.taskType == "出库任务") {
  634. if (item.statusFlag == 3) {
  635. uni.navigateTo({
  636. url: `/pageD/warehousings/ex_warehouse_detail?id=${item.id}&isShowbtn=true`
  637. })
  638. } else {
  639. uni.navigateTo({
  640. 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`
  641. })
  642. }
  643. }
  644. }
  645. }
  646. }
  647. </script>
  648. <style lang="scss" scoped>
  649. .tag {
  650. background: #F5F6F9;
  651. padding: 5px;
  652. color: #333333;
  653. display: inline-flex;
  654. font-size: 22rpx;
  655. border-radius: 3px;
  656. margin: 3px;
  657. }
  658. .introduce-section {
  659. // background: red;
  660. }
  661. .introduce-section .title_b .title-tip {
  662. font-size: 13px;
  663. height: 40px;
  664. line-height: 40px;
  665. flex: 2.5;
  666. }
  667. .introduce-section .title_b .title {
  668. font-size: 13px;
  669. height: 40px;
  670. flex: 2.5;
  671. }
  672. .introduce-section .title_b .title-tip-b {
  673. flex: 1;
  674. font-size: 13px;
  675. color: #878C9C;
  676. height: 40px;
  677. line-height: 40px;
  678. }
  679. .introduce-section .title {
  680. justify-content: space-between;
  681. align-items: flex-start;
  682. }
  683. .introduce-section .title text {
  684. font-size: 28rpx;
  685. }
  686. .introduce-section .title .title-tip {
  687. flex: 1;
  688. font-size: 28rpx;
  689. color: #FE6430;
  690. font-weight: 500;
  691. height: 50px;
  692. line-height: 50px;
  693. border-bottom: 1px solid #EEEEEE;
  694. }
  695. .introduce-section .title .title-tip-a {
  696. flex: 1;
  697. font-size: 15px;
  698. color: #AFB3BF;
  699. font-weight: 500;
  700. height: 50px;
  701. line-height: 50px;
  702. border-bottom: 1px solid #EEEEEE;
  703. }
  704. .introduce-section .guess-item {
  705. border-radius: 10rpx;
  706. background: #fff;
  707. padding: 32rpx;
  708. margin: 20rpx;
  709. }
  710. .line {
  711. display: inline-block;
  712. padding: 5px;
  713. position: relative;
  714. font-size: 17px;
  715. }
  716. .line.active {
  717. font-size: 19px;
  718. font-weight: 900;
  719. }
  720. .line.active:after {
  721. content: '';
  722. display: block;
  723. position: absolute;
  724. width: 18px;
  725. left: 50%;
  726. transform: translateX(-50%);
  727. bottom: 0;
  728. border-bottom: 3px solid #22C572;
  729. }
  730. /deep/.u-action-active {
  731. margin-right: 6px;
  732. }
  733. .content1-top {
  734. background: white;
  735. padding: 20rpx 20rpx 0 20rpx;
  736. border-radius: 0 0 30rpx 30rpx;
  737. }
  738. .search-form {
  739. margin-bottom: 20rpx;
  740. }
  741. .title-row1 {
  742. font-size: 34rpx;
  743. font-weight:600;
  744. }
  745. .row2 {
  746. margin-top: 55rpx;
  747. }
  748. .top2 {
  749. display: flex;
  750. align-items: center;
  751. justify-content: space-between;
  752. .right {
  753. display: flex;
  754. align-items: center;
  755. .right-contrent1 {
  756. margin: 20rpx;
  757. }
  758. }
  759. }
  760. </style>