my_task.vue 25 KB

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