my_task.vue 28 KB

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