my_task.vue 24 KB

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