my_task.vue 27 KB

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