my_task.vue 26 KB

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