my_task.vue 23 KB

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