my_task.vue 24 KB

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