my_task.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807
  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. 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. if (item.businessCode == 'PROCUREMENT-ORDER-APPROVE') {
  469. uni.navigateTo({
  470. url: '/pages/task/procurement_details?id=' + item.businessId + "&isShowbtn=true"
  471. })
  472. } else if (item.businessCode == 'SALE-ORDER-APPROVE') {
  473. uni.navigateTo({
  474. url: '/pages/task/sale_details?id=' + item.businessId + "&isShowbtn=true"
  475. })
  476. } else if (item.businessCode == 'SALE-CONTRACT-APPROVE') {
  477. uni.navigateTo({
  478. url: '/pages/task/audit/salecontract?id=' + item.businessId + "&isShowbtn=true"
  479. })
  480. } else if (item.businessCode == 'DAISHOU-CONTRACT-APPROVE') {
  481. uni.navigateTo({
  482. url: '/pages/task/audit/daishou_details?id=' + item.businessId + "&isShowbtn=true"
  483. })
  484. } else if (item.businessCode == 'DAICHU-CONTRACT-APPROVE') {
  485. uni.navigateTo({
  486. url: '/pages/task/audit/daichu_details?id=' + item.businessId + "&isShowbtn=true"
  487. })
  488. } else if (item.businessCode == 'BUY-CONTRACT-APPROVE') {
  489. uni.navigateTo({
  490. url: '/pages/task/audit/purchasecontract?id=' + item.businessId + "&isShowbtn=true"
  491. })
  492. } else if (item.businessCode == 'PROCUREMENT-RECEIPT-REPORT') {
  493. uni.navigateTo({
  494. url: '/pages/task/procurement_report_details?id=' + item.businessId + "&isShowbtn=true"
  495. })
  496. } else if (item.businessCode == 'PROCUREMENT-CLOSE-REPORT') {
  497. uni.navigateTo({
  498. url: '/pages/task/procurement_close_details?id=' + item.businessId + "&isShowbtn=true"
  499. })
  500. } else if (item.businessCode == 'SALE-RECEIPT-REPORT') {
  501. uni.navigateTo({
  502. url: '/pages/task/sale_report_details?id=' + item.businessId + "&isShowbtn=true"
  503. })
  504. } else if (item.businessCode == 'SALE-CLOSE-REPORT') {
  505. uni.navigateTo({
  506. url: '/pages/task/sale_close_details?id=' + item.businessId + "&isShowbtn=true"
  507. })
  508. } else if (item.businessCode == 'PROCUREMENT-PRICE-APPROVE') {
  509. if (this.statusFlag == 1) {
  510. uni.navigateTo({
  511. url: `/pages/task/audit/warehouse_approval?id=${item.businessId}&isShowbtn=true`
  512. })
  513. } else {
  514. uni.navigateTo({
  515. url: '/pages/task/audit/warehouse_details?id=' + item.businessId + "&isShowbtn=true"
  516. })
  517. }
  518. } else if (item.businessCode == 'PAYMENT-MANAGEMENT-APPROVE') {
  519. if (this.statusFlag == 1) {
  520. uni.navigateTo({
  521. url: `/pages/task/audit/acquisition_settlement_approval?vesselId=${item.vesselId}&id=${item.businessId}`
  522. })
  523. } else {
  524. uni.navigateTo({
  525. url: '/pages/task/audit/acquisition_settlement_details?id=' + item.businessId +
  526. '&isShowbtn=true'
  527. })
  528. }
  529. } else if (item.businessCode == 'INOUTTASK-TASK-APPROVE') {
  530. if (this.statusFlag == 1) {
  531. uni.navigateTo({
  532. url: `/pages/task/audit/Issueandreceipt_task_approval?id=` + item.businessId +
  533. "&isShowbtn=true"
  534. })
  535. } else {
  536. uni.navigateTo({
  537. url: `/pages/task/audit/Issueandreceipt_task_details?id=` + item.businessId +
  538. "&isShowbtn=true"
  539. })
  540. }
  541. } else if (item.businessCode == 'STOCK-PROCUREMENT-RECEIPT-REPORT') {
  542. if (this.statusFlag == 1) {
  543. uni.navigateTo({
  544. url: `/pages/task/audit/purchase_settlement_approval?id=` + item.businessId +
  545. "&isShowbtn=true"
  546. })
  547. } else {
  548. uni.navigateTo({
  549. url: `/pages/task/audit/purchase_settlement_details?id=` + item.businessId +
  550. "&isShowbtn=true"
  551. })
  552. }
  553. } else if (item.businessCode == 'TRANSPORTATION-SETTLEMENT-REPORT') {
  554. if (this.statusFlag == 1) {
  555. uni.navigateTo({
  556. url: `/pages/task/audit/freight_settlement_approval?id=` + item.businessId +
  557. "&isShowbtn=true"
  558. })
  559. } else {
  560. uni.navigateTo({
  561. url: `/pages/task/audit/freight_settlement_details?id=` + item.businessId +
  562. '&compId=' + this
  563. .pcUserInfo.compId + "&isShowbtn=true"
  564. })
  565. }
  566. } else if (item.businessCode == 'TRAN-TASK-APPROVE') {
  567. if (this.statusFlag == 1) {
  568. uni.navigateTo({
  569. url: `/pages/task/audit/freight_setting_approval?id=` + item.businessId +
  570. "&isShowbtn=true"
  571. })
  572. } else {
  573. uni.navigateTo({
  574. url: `/pages/task/audit/freight_setting_details?id=` + item.businessId +
  575. "&isShowbtn=true"
  576. })
  577. }
  578. } else if (item.businessCode == 'TRAN-TEAM-APPROVE') {
  579. if (this.statusFlag == 1) {
  580. uni.navigateTo({
  581. url: `/pages/task/audit/freight_setting_approval?id=` + item.businessId +
  582. "&isShowbtn=true"
  583. })
  584. } else {
  585. uni.navigateTo({
  586. url: `/pages/task/audit/freight_setting_details?id=` + item.businessId +
  587. "&isShowbtn=true"
  588. })
  589. }
  590. } else if (item.businessCode == 'ACQUISITION-SETTLEMENT-APPRPVE') {
  591. if (this.statusFlag == 1) {
  592. uni.navigateTo({
  593. url: `/pages/task/audit/acquisition_information_approval?id=` + item.businessId +
  594. "&isShowbtn=true"
  595. })
  596. } else {
  597. uni.navigateTo({
  598. url: `/pages/task/audit/acquisition_information_details?id=` + item.businessId +
  599. "&isShowbtn=true"
  600. })
  601. }
  602. } else if (item.businessCode == 'TRADE-WAREHOUSE-REPORT') {
  603. if (this.statusFlag == 1) {
  604. uni.navigateTo({
  605. url: `/pages/task/audit/tradeServices_audit?id=` + item.businessId
  606. })
  607. } else {
  608. uni.navigateTo({
  609. url: `/pages/task/audit/tradeServices_audit_approval?id=` + item.businessId
  610. })
  611. }
  612. } else if (item.businessCode == 'COLLECTION-WAREHOUSING-RECORD') {
  613. if (this.statusFlag == 1) {
  614. uni.navigateTo({
  615. url: `/pages/task/audit/collection_business_approval?id=` + item.businessId +
  616. "&isShowbtn=true"
  617. })
  618. } else {
  619. uni.navigateTo({
  620. url: `/pages/task/audit/collection_business_details?id=` + item.businessId +
  621. "&isShowbtn=true"
  622. })
  623. }
  624. }
  625. if (item.taskType == "入库任务") {
  626. if (item.statusFlag == 3) {
  627. uni.navigateTo({
  628. url: `/pageD/warehousings/warehousingDetails?id=${item.id}&isShowbtn=true`
  629. })
  630. } else {
  631. uni.navigateTo({
  632. 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`
  633. })
  634. }
  635. } else if (item.taskType == "出库任务") {
  636. if (item.statusFlag == 3) {
  637. uni.navigateTo({
  638. url: `/pageD/warehousings/ex_warehouse_detail?id=${item.id}&isShowbtn=true`
  639. })
  640. } else {
  641. uni.navigateTo({
  642. 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`
  643. })
  644. }
  645. }
  646. }
  647. }
  648. }
  649. </script>
  650. <style lang="scss" scoped>
  651. .content {
  652. padding-bottom: 50rpx;
  653. }
  654. .tag {
  655. background: #F5F6F9;
  656. padding: 5px;
  657. color: #333333;
  658. display: inline-flex;
  659. font-size: 22rpx;
  660. border-radius: 3px;
  661. margin: 3px;
  662. }
  663. .introduce-section {
  664. // background: red;
  665. }
  666. .introduce-section .title_b .title-tip {
  667. font-size: 13px;
  668. height: 40px;
  669. line-height: 40px;
  670. flex: 2.5;
  671. }
  672. .introduce-section .title_b .title {
  673. font-size: 13px;
  674. height: 40px;
  675. flex: 2.5;
  676. }
  677. .introduce-section .title_b .title-tip-b {
  678. flex: 1;
  679. font-size: 13px;
  680. color: #878C9C;
  681. height: 40px;
  682. line-height: 40px;
  683. }
  684. .introduce-section .title {
  685. justify-content: space-between;
  686. align-items: flex-start;
  687. }
  688. .introduce-section .title text {
  689. font-size: 28rpx;
  690. }
  691. .introduce-section .title .title-tip {
  692. flex: 1;
  693. font-size: 28rpx;
  694. color: #FE6430;
  695. font-weight: 500;
  696. height: 50px;
  697. line-height: 50px;
  698. border-bottom: 1px solid #EEEEEE;
  699. }
  700. .introduce-section .title .title-tip-a {
  701. flex: 1;
  702. font-size: 15px;
  703. color: #AFB3BF;
  704. font-weight: 500;
  705. height: 50px;
  706. line-height: 50px;
  707. border-bottom: 1px solid #EEEEEE;
  708. }
  709. .introduce-section .guess-item {
  710. border-radius: 10rpx;
  711. background: #fff;
  712. padding: 32rpx;
  713. margin: 20rpx;
  714. }
  715. .line {
  716. display: inline-block;
  717. padding: 5px;
  718. position: relative;
  719. font-size: 17px;
  720. }
  721. .line.active {
  722. font-size: 19px;
  723. font-weight: 900;
  724. }
  725. .line.active:after {
  726. content: '';
  727. display: block;
  728. position: absolute;
  729. width: 18px;
  730. left: 50%;
  731. transform: translateX(-50%);
  732. bottom: 0;
  733. border-bottom: 3px solid #22C572;
  734. }
  735. /deep/.u-action-active {
  736. margin-right: 6px;
  737. }
  738. .content1-top {
  739. background: white;
  740. padding: 20rpx 20rpx 0 20rpx;
  741. border-radius: 0 0 30rpx 30rpx;
  742. }
  743. .search-form {
  744. margin-bottom: 20rpx;
  745. }
  746. .title-row1 {
  747. font-size: 34rpx;
  748. font-weight: 600;
  749. }
  750. .row2 {
  751. margin-top: 55rpx;
  752. }
  753. .top2 {
  754. display: flex;
  755. align-items: center;
  756. justify-content: space-between;
  757. .right {
  758. display: flex;
  759. align-items: center;
  760. .right-contrent1 {
  761. margin: 20rpx;
  762. }
  763. }
  764. }
  765. </style>