my_task.vue 23 KB

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