my_task.vue 28 KB

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