my_task.vue 21 KB

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