my_task.vue 21 KB

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