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