12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040 |
- <template name="task">
- <view class="content">
- <view class="content1-top">
- <view class="search-form round">
- <u-search placeholder-color='#AFB3BF' search-icon-color='#AFB3BF' bg-color='#F5F6F9'
- placeholder="请输入任务日期或任务标题" v-model="keyword" @search="searchKeyWord()"
- @custom="searchKeyWord()"></u-search>
- </view>
- <view style='justify-content: space-between;' class='flex'>
- <view class='changewarehouse'>
- <view @click='show=true'>{{businessCodetext?businessCodetext:'选择类型'}}<text class='cuIcon-unfold'></text></view>
- <u-picker @confirm="businessCodechange" range-key='receiptName' mode="selector" v-model="show"
- :range="typeList"></u-picker>
- </view>
- <view class="company">
- <image class='icon' style='width:19px;height:19px;' src="../../static/img/icon_qiye@3x.png"
- mode=""></image> {{compName}}
- </view>
- </view>
- <view class="top2">
- <view class="left">
- <view @click='tabcarchange(1)' class='line' :class='statusFlag==1?"active":""'>未完成</view>
- <view @click='tabcarchange(3)' class='line' :class='statusFlag==3?"active":""'>已完成</view>
- <view @click='tabcarchange(5)' class='line' :class='statusFlag==5?"active":""'>已发起</view>
- <view @click='tabcarchange(7)' class='line' :class='statusFlag==7?"active":""'>抄送</view>
- </view>
- <view class="right">
- <!-- <view class="right-contrent1">逐条审核</view>
- <u-switch v-model="checked" active-color="#22C572" inactive-color="#eee" size='40'></u-switch> -->
- </view>
- </view>
- </view>
- <view class="introduce-section">
- <view v-for="(item, index) in taskInfo" :key="index" @click="navToDetailPage(item)">
- <view class="guess-item">
- <view class="title flex align-item-center">
- <view>
- <view v-if='statusFlag==1' class="title-row1">待审批
- <text v-if='item.vesselId'>({{item.vesselId}})</text>
- </view>
- <view v-if='statusFlag==3' class="title-row1">已审批
- <text v-if='item.vesselId'>({{item.vesselId}})</text>
- </view>
- <view v-if='statusFlag==5' class="title-row1">{{item.messageTitleEn}}
- </view>
- <view style='font-size:12px;color:#878C9C;'>{{item.createDate}}</view>
- </view>
- <text v-if='statusFlag==1' style='color:#FE6430;'>{{item.messageTitle}}</text>
- <text v-if='statusFlag==3' style='color:#AFB3BF;'>{{item.messageTitle}}</text>
- <text v-if='statusFlag==5' style='color:#AFB3BF;'>{{item.messageTitle}}</text>
- </view>
- <view class="flex title_b">
- <view style='color:#878C9C;' class="title row2">
- {{item.messageContent}}
- </view>
- </view>
- <u-tag :text="item.taskType" type="success" v-if="item.taskType == '出库任务'" />
- <u-tag :text="item.taskType" type="primary" v-if="item.taskType == '入库任务'" />
- </view>
- </view>
- <view v-show="isSole">
- <uni-load-more :status="loadStatus"></uni-load-more>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {
- mapState
- } from 'vuex';
- export default {
- name: "task",
- data() {
- return {
- PageCur: "task",
- taskInfo: [],
- checked: false,
- pages: 1, //页数
- limit: 10, //每次取条目数
- loadStatus: 'loading', //加载样式:more-加载前样式,loading-加载中样式,nomore-没有数据样式
- isLoadMore: false, //是否加载中
- isSole: false,
- showTran: true,
- show:false,
- scrollTop: 0,
- isContent: true,
- statusFlag: 1,
- current: 1,
- typeList:[],
- businessCodetext:'',
- businessCode:'',
- pcUserInfo: {},
- warehouseInOutInfo: {
- pageSize: 10,
- currentPage: 1
- },
- data: {},
- keyword: "",
- copyTaskInfo: [],
- pcUserInfo:{},
- compName:''
- };
- },
- onBackPress(e) {
- if (uni.getStorageSync("everyTask")) {
- uni.switchTab({
- url: '/pages/user/user'
- });
- return true
- }
- },
- onPullDownRefresh() {
- this.getIndexBuyData(1,this.keyword)
- setTimeout(function () {
- uni.stopPullDownRefresh();
- }, 1000);
- },
- watch: {
- checked(val) {
- uni.setStorageSync("everyTask", this.checked)
- },
- taskInfo: function(val) {
- this.copyTaskInfo = this.$u.deepClone(this.taskInfo);
- //添加跳转链接
- for (let i = 0; i < this.copyTaskInfo.length; i++) {
- let item = this.copyTaskInfo[i]
- if (item.businessCode == 'PROCUREMENT-ORDER-APPROVE') {
- item.itemUrl = '/pages/task/procurement_details?id=' + item.businessId
- } else if (item.businessCode == 'SALE-ORDER-APPROVE') {
- item.itemUrl = '/pages/task/sale_details?id=' + item.businessId
- } else if (item.businessCode == 'DAISHOU-CONTRACT-APPROVE') {
- item.itemUrl = '/pages/task/audit/daishou_details?id=' + item.businessId
- } else if (item.businessCode == 'SALE-CONTRACT-APPROVE') {
- item.itemUrl = '/pages/task/audit/salecontract?id=' + item.businessId
- } else if (item.businessCode == 'BUY-CONTRACT-APPROVE') {
- item.itemUrl = '/pages/task/audit/purchasecontract?id=' + item.businessId
- } else if (item.businessCode == 'PROCUREMENT-RECEIPT-REPORT') {
- item.itemUrl = '/pages/task/procurement_report_details?id=' + item.businessId
- } else if (item.businessCode == 'PROCUREMENT-CLOSE-REPORT') {
- item.itemUrl = '/pages/task/procurement_close_details?id=' + item.businessId
- } else if (item.businessCode == 'SALE-RECEIPT-REPORT') {
- item.itemUrl = '/pages/task/sale_report_details?id=' + item.businessId
- } else if (item.businessCode == 'SALE-CLOSE-REPORT') {
- item.itemUrl = '/pages/task/sale_close_details?id=' + item.businessId
- } else if (item.businessCode == 'PROCUREMENT-PRICE-APPROVE') {
- if (this.statusFlag == 1) {
- item.itemUrl = `/pages/task/audit/warehouse_approval?id=${item.businessId}`
- } else {
- item.itemUrl = '/pages/task/audit/warehouse_details/?id=' + item.businessId
- }
- } else if (item.businessCode == 'PAYMENT-MANAGEMENT-APPROVE') {
- if (this.statusFlag == 1) {
- item.itemUrl = `/pages/task/audit/acquisition_settlement_approval?id=${item.businessId}`
- } else {
- item.itemUrl = '/pages/task/audit/acquisition_settlement_details/?id=' + item.businessId
- }
- } else if (item.businessCode == 'INOUTTASK-TASK-APPROVE') {
- if (this.statusFlag == 1) {
- item.itemUrl = `/pages/task/audit/Issueandreceipt_task_approval?id=` + item.businessId
- } else {
- item.itemUrl = `/pages/task/audit/Issueandreceipt_task_details?id=` + item.businessId
- }
- } else if (item.businessCode == 'STOCK-PROCUREMENT-RECEIPT-REPORT') {
- if (this.statusFlag == 1) {
- item.itemUrl = `/pages/task/audit/purchase_settlement_approval?id=` + item.businessId
- } else {
- item.itemUrl = `/pages/task/audit/purchase_settlement_details?id=` + item.businessId
- }
- } else if (item.businessCode == 'TRANSPORTATION-SETTLEMENT-REPORT') {
- if (this.statusFlag == 1) {
- item.itemUrl = `/pages/task/audit/freight_settlement_approval?id=` + item.businessId
- } else {
- item.itemUrl = `/pages/task/audit/freight_settlement_details?id=` + item.businessId +
- '&compId=' + this
- .pcUserInfo.compId
- }
- } else if (item.businessCode == 'YUNJIA-TRAN-APPROVE') {
- if (this.statusFlag == 1) {
- item.itemUrl = `/pages/task/audit/freight_setting_approval?id=` + item.businessId
- } else {
- item.itemUrl = `/pages/task/audit/freight_setting_details?id=` + item.businessId
- }
- } else if (item.businessCode == 'ACQUISITION-SETTLEMENT-APPRPVE') { //库点收购
- if (this.statusFlag == 1) {
- item.itemUrl = `/pages/task/audit/acquisition_information_approval?id=` + item.businessId
- } else {
- item.itemUrl = `/pages/task/audit/acquisition_information_details?id=` + item.businessId
- }
- } else if (item.businessCode == 'TRADE-WAREHOUSE-REPORT') { //贸易服务
- if (this.statusFlag == 1) {
- item.itemUrl = `/pages/task/audit/tradeServices_audit?id=` + item.businessId
- } else {
- item.itemUrl = `/pages/task/audit/tradeServices_audit_approval?id=` + item.businessId
- }
- } else if (item.businessCode == 'COLLECTION-WAREHOUSING-RECORD') {
- if (this.statusFlag == 1) {
- item.itemUrl = `/pages/task/audit/collection_business_approval?id=` + item.businessId
- } else {
- item.itemUrl = `/pages/task/audit/collection_business_details?id=` + item.businessId
- }
- }
- if (item.taskType == "入库任务") {
- if (item.statusFlag == 3) {
- item.itemUrl = `/pageD/warehousings/warehousingDetails?id=${item.id}`
- } else {
- item.itemUrl =
- `/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}`
- }
- } else if (item.taskType == "出库任务") {
- if (item.statusFlag == 3) {
- item.itemUrl = `/pageD/warehousings/ex_warehouse_detail?id=${item.id}`
- } else {
- item.itemUrl =
- `/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}`
- }
- }
- }
- uni.setStorageSync("copyTaskInfo", this.copyTaskInfo)
- }
- },
- computed: {
- ...mapState(['hasLogin', 'userInfo'])
- },
- onShow() {
- var that =this
- // setTimeout(()=>{
- uni.getStorage({
- key: 'compName1',
- success: function (res) {
- that.compName=res.data.company
- console.log(res.data);
- }
- });
- // = uni.getStorageSync('compName1').company
- // },1000)
- this.$api.doRequest('get', '//noticeCopyInfo/typeDropDown').then(res => {
- if (res.data.code == 200) {
- this.typeList=res.data.data
- this.typeList.unshift({receiptName:'全部类型'})
- } else {
- uni.showToast({
- title: "系统异常,请联系管理员",
- icon: 'none',
- duration: 2000
- })
- }
- })
- if(this.statusFlag==1){
- this.taskInfo=[]
- this.pages=1
- this.getIndexBuyData(1,this.keyword)
- }
- // this.warehouseInOutInfo.phone = this.userInfo.phone
- },
- onLoad() {
- this.pcUserInfo = uni.getStorageSync("pcUserInfo")
- if (uni.getStorageSync("everyTask") == true) {
- this.checked = true
- } else {
- this.checked = false
- }
- this.pages = 1
- this.warehouseInOutInfo.currentPage = 1
- this.data.currentPage = 1
- this.taskInfo = []
- this.pcUserInfo = uni.getStorageSync("pcUserInfo")
- this.$api.doRequest('get', '/commonUser/api/checkSession').then(res => {
- if (res.data.data == "INVALID") {
- uni.showModal({
- title: '提示',
- content: '当前登入信息验证失败,是否重新登录?',
- showCancel: true,
- confirmText: '登录',
- success: (e) => {
- if (e.confirm) {
- uni.navigateTo({
- url: '/pages/public/login'
- })
- }
- },
- fail: () => {},
- complete: () => {}
- })
- } else {
- // this.getIndexBuyData()
- }
- })
- },
- onReachBottom() { //上拉触底函数
- // if (this.statusFlag == 3) {
- if (!this.isLoadMore) { //此处判断,上锁,防止重复请求
- this.pages += 1
- if (this.statusFlag == 1) {
- this.warehouseInOutInfo.currentPage += 1
- } else {
- this.data.currentPage += 1
- }
- this.getIndexBuyData(1,this.keyword)
- }
- // }
- },
- // onLoad(options) {
- // this.getIndexBuyData()
- // },
- filters: {
- formatDate(date) {
- var date = new Date(date)
- var time = new Date()
- var newdate = ''
- if (time.getMonth() + 1 >= 10) {
- newdate = time.getFullYear() + '-' + (time.getMonth() + 1) + '-' + time.getDate()
- } else {
- newdate = time.getFullYear() + '-0' + (time.getMonth() + 1) + '-' + time.getDate()
- }
- //把时间戳改为yyyy-MM-dd格式
- //判断是否今天
- var datatime = ''
- if (date.getMonth() + 1 >= 10) {
- datatime = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()
- } else {
- datatime = date.getFullYear() + '-0' + (date.getMonth() + 1) + '-' + date.getDate()
- }
- if (datatime == newdate) {
- var h = date.getHours();
- h = h < 10 ? '0' + h : h;
- var m = date.getMinutes();
- m = m < 10 ? '0' + m : m;
- var s = date.getSeconds();
- s = s < 10 ? '0' + s : s;
- return h + ':' + m + ':' + s;
- } else {
- if (date.getMonth() + 1 >= 10) {
- return date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()
- } else {
- return date.getFullYear() + '-0' + (date.getMonth() + 1) + '-' + date.getDate()
- }
- }
- let o = {
- 'Y': date.getFullYear(),
- 'M+': date.getMonth() + 1,
- 'd+': date.getDate(),
- }
- },
- },
- methods: {
- // getRoles(){
- // let _rolesList = uni.getStorageSync('rolesList')
- // let _list = ['','']
- // for(let i = 0;i<_list.length;i++){
- // for(let k = 0;k<_rolesList.length;k++){
- // if(_list[i]==_rolesList[k]){
- // return true
- // }
- // }
- // }
- // return false
- // },
- businessCodechange(e){
- if(e[0]==0){
- this.businessCode=''
- }else{
- this.businessCode=this.typeList[e[0]].businessCode
- }
- this.businessCodetext=this.typeList[e[0]].receiptName
- this.pages = 1
- this.taskInfo=[]
- this.getIndexBuyData(1,this.keyword)
- },
- change(status) {
- console.log(status);
- },
- searchKeyWord() {
- this.pages=1
- if (!this.keyword) {
- this.$api.msg('关键字不能为空')
- }
- this.getIndexBuyData(1,this.keyword)
- // uni.showLoading({
- // title: "正在加载"
- // })
- // this.$api.doRequest('get', '/warehouseInOutInfo/selectInfoByKeyWord', this.warehouseInOutInfo).then(
- // res => {
- // if (res.data.code == 200) {
- // this.taskInfo = res.data.data
- // uni.hideLoading()
- // } else {
- // uni.showToast({
- // title: res.data.message,
- // icon: 'none',
- // duration: 2000
- // })
- // uni.hideLoading(this.taskInfo, "信息")
- // }
- // }).catch(res => {
- // uni.showToast({
- // title: res.data.message,
- // icon: 'none',
- // duration: 2000
- // })
- // uni.hideLoading()
- // })
- },
- getIndexBuyData(status,searchKeyword) {
- const that = this
- var pages = that.pages
- var limit = that.limit
- var url = ''
- uni.showLoading({
- title: "正在加载"
- })
- var data = {}
- data.businessCode=that.businessCode
- if (this.statusFlag == 1) {
- data.searchKeyword = searchKeyword
- data.currentPage = pages
- data.pageSize = limit
- data.compId = this.pcUserInfo.compId
- url = '/newNoticeTask/query/noticeTasks'
- } else if (this.statusFlag == 3) {
- data.currentPage = pages
- data.pageSize = limit
- data.roleId = this.userInfo.roleIds
- data.userId = this.userInfo.id
- data.searchKeyword = searchKeyword
- data.compId = this.pcUserInfo.compId
- url = '/commonUser/query/findHisPageNoticeTasks'
- }
- else if (this.statusFlag == 5) {
- data.currentPage = pages
- data.pageSize = limit
- data.roleId = this.userInfo.roleIds
- data.createUserId = this.userInfo.id
- data.searchKeyword = searchKeyword
- data.compId = this.pcUserInfo.compId
- url = '/commonUser/query/findHisPageNoticeTasksMy'
- }
- else if (this.statusFlag == 7) {
- data.currentPage = pages
- data.pageSize = limit
- data.acceptId = this.userInfo.phone
- data.compId = this.pcUserInfo.compId
- data.searchKeyword = searchKeyword
- url = '/noticeCopyInfo/getNotice'
- }
- //this.warehouseInOutInfo.status = this.status
- this.$api.doRequest('get', url, data).then(res => {
- if (res.data.code == 200) {
- let data = res.data.data.records
- console.log(data)
- console.log(that.taskInfo)
- if (res.data.data.records.length == 0 && this.pages == 1 && this.statusFlag ==
- 3 ||
- res.data.data.records.length == 0 && this.pages == 1 && this
- .statusFlag == 1 ||
- res.data.data.records.length == 0 && this.pages == 1 && this
- .statusFlag == 5||
- res.data.data.records.length == 0 && this.pages == 1 && this
- .statusFlag == 7) {
- console.log()
- this.taskInfo = []
- }
- //采购信息
- if (data.length > 0) {
- if (pages==1) {
- that.taskInfo = data
- } else {
- that.taskInfo = that.taskInfo.concat(data)
- }
- } else {
- if (that.pages > 1) {
- that.pages -= 1
- }
- that.isLoadMore = false
- that.loadStatus = 'nomore'
- }
-
- console.log(that.taskInfo)
- for (var i = 0; i < this.taskInfo.length; i++) {
- // if(this.statusFlag==5){
- // if(this.taskInfo[i].messageTitleEn.indexOf('已')==-1){
- // var textarr=this.taskInfo[i].messageTitleEn.split('审')
- // this.taskInfo[i].messageTitleEn=textarr[0]+'已审核'
- // }
- // }
- let _str = this.taskInfo[i]
- // let a = this.getRoles()
- // if (_str.messageContent.indexOf("您发起") > -1) {
- // _str.showRow = false
- // } else {
- // _str.showRow = true;
- // }
- // if(_str.businessType=='TRADE'){
- // _str.showRow = false
- // }.split(' ')[0]
- this.taskInfo[i].department = this.taskInfo[i].messageTitle
- if (this.taskInfo[i].messageContent.includes('##')) {
- this.taskInfo[i].messageContent = this.taskInfo[i].messageContent.substring(0,this.taskInfo[i].messageContent.lastIndexOf("##"))
- }
- if (this.taskInfo[i].businessType == 'WAREHOUSE') {
- if (this.taskInfo[i].businessCode == 'INOUTTASK-TASK-APPROVE') {
- this.taskInfo[i].messageTitle = '出入库任务'
- }
- } else if (this.taskInfo[i].businessType == 'acquisition') {
- if (this.taskInfo[i].businessCode == 'PAYMENT-MANAGEMENT-APPROVE') {
- this.taskInfo[i].messageTitle = '付款管理'
- }
- } else if (this.taskInfo[i].businessType == 'REPORT') {
- if (this.taskInfo[i].businessCode == 'PROCUREMENT-CLOSE-REPORT') {
- this.taskInfo[i].messageTitle = '采购平仓统计'
- }
- if (this.taskInfo[i].businessCode == 'PROCUREMENT-RECEIPT-REPORT') {
- this.taskInfo[i].messageTitle = '采购入库统计'
- }
- if (this.taskInfo[i].businessCode == 'SALE-CLOSE-REPORT') {
- this.taskInfo[i].messageTitle = '销售平仓统计'
- }
- if (this.taskInfo[i].businessCode == 'SALE-RECEIPT-REPORT') {
- this.taskInfo[i].messageTitle = '销售入库统计'
- }
- if (this.taskInfo[i].businessCode == 'TRANSPORTATION-SETTLEMENT-REPORT') {
- this.taskInfo[i].messageTitle = '运输结算统计'
- }
- } else if (this.taskInfo[i].businessType == 'PROCUREMENT') {
- if (this.taskInfo[i].businessCode == 'PROCUREMENT-ORDER-APPROVE') {
- this.taskInfo[i].messageTitle = '采购订单'
- }
- } else if (this.taskInfo[i].businessType == 'SALE') {
- if (this.taskInfo[i].businessCode == 'SALE-ORDER-APPROVE') {
- this.taskInfo[i].messageTitle = '销售订单'
- }
- } else if (this.taskInfo[i].businessType == 'PROCUREMENT') {
- if (this.taskInfo[i].businessCode == 'PROCUREMENT-PRICE-APPROVE') {
- this.taskInfo[i].messageTitle = '仓库设置'
- }
- } else if (this.taskInfo[i].businessType == 'Tran') {
- if (this.taskInfo[i].businessCode == 'YUNJIA-TRAN-APPROVE') {
- this.taskInfo[i].messageTitle = '运费设置'
- }
- } else if (this.taskInfo[i].businessType == 'ACQ') {
- if (this.taskInfo[i].businessCode == 'ACQUISITION-SETTLEMENT-APPRPVE') {
- this.taskInfo[i].messageTitle = '收购信息审核'
- }
- } else if (this.taskInfo[i].businessType == 'TRADE') {
- if (this.taskInfo[i].businessCode == 'TRADE-WAREHOUSE-REPORT') {
- this.taskInfo[i].messageTitle = '贸易服务审核'
- }
- }
- }
- if (res.data.data.records.length == 0) {
- that.isSole = true
- } else {
- that.isSole = false
- }
-
- uni.hideLoading()
- } else {
- uni.hideLoading()
- uni.showToast({
- title: "系统异常,请联系管理员",
- icon: 'none',
- duration: 2000
- })
- }
- }).catch(res => {
- uni.hideLoading()
- uni.showToast({
- title: "Session失效,请重新登录",
- icon: 'none',
- duration: 2000
- })
- })
- },
- tabcarchange(statusFlag) {
- this.statusFlag = statusFlag
- this.pages = 1
- this.taskInfo=[]
- this.getIndexBuyData(statusFlag)
- },
- navToDetailPage(item) {
- uni.setStorageSync('taskContent',item.messageContent)
- if(item.vesselId == "点击切换任务状态")
- {
- let data = {}
- data.id = item.id
- this.$api.doRequest('get', '/newNoticeTask/confirmFee',data).then(res => {
- console.log(res)
- if (res.data.code == 200) {
- this.getIndexBuyData(1,this.keyword)
- uni.showToast({
- title: "确认成功",
- icon: 'none',
- duration: 2000
- })
- } else {
- uni.showToast({
- title: "系统异常,请联系管理员",
- icon: 'none',
- duration: 2000
- })
- }
- })
- }
- else if (item.businessCode == 'PROCUREMENT-ORDER-APPROVE') {
- uni.navigateTo({
- url: '/pages/task/procurement_details?id=' + item.businessId + "&isShowbtn=true"
- })
- } else if (item.businessCode == 'SALE-ORDER-APPROVE') {
- uni.navigateTo({
- url: '/pages/task/sale_details?id=' + item.businessId + "&isShowbtn=true"
- })
- } else if (item.businessCode == 'SALE-CONTRACT-APPROVE') {
- uni.navigateTo({
- url: '/pages/task/audit/salecontract?id=' + item.businessId + "&isShowbtn=true"
- })
- }
- else if (item.businessCode == 'JIAYOU-SHENHE-APPROVE') {
- uni.navigateTo({
- url: '/pages/task/audit/refuel?id=' + item.businessId + "&isShowbtn=true"
- })
- }else if (item.businessCode == 'DAISHOU-CONTRACT-APPROVE') {
- uni.navigateTo({
- url: '/pages/task/audit/daishou_details?id=' + item.businessId + "&isShowbtn=true"
- })
- } else if (item.businessCode == 'DAICHU-CONTRACT-APPROVE') {
- uni.navigateTo({
- url: '/pages/task/audit/daichu_details?id=' + item.businessId + "&isShowbtn=true"
- })
- } else if (item.businessCode == 'BUY-CONTRACT-APPROVE') {
- uni.navigateTo({
- url: '/pages/task/audit/purchasecontract?id=' + item.businessId + "&isShowbtn=true"
- })
- }else if (item.businessCode == 'SHOU-CONTRACT-APPROVE') {
- uni.navigateTo({
- url: '/pages/task/audit/acquisitioncontract?id=' + item.businessId + "&isShowbtn=true"
- })
- } else if (item.businessCode == 'PROCUREMENT-RECEIPT-REPORT') {
- uni.navigateTo({
- url: '/pages/task/procurement_report_details?id=' + item.businessId + "&isShowbtn=true"
- })
- } else if (item.businessCode == 'PROCUREMENT-CLOSE-REPORT') {
- uni.navigateTo({
- url: '/pages/task/procurement_close_details?id=' + item.businessId + "&isShowbtn=true"
- })
- } else if (item.businessCode == 'SALE-RECEIPT-REPORT') {
- uni.navigateTo({
- url: '/pages/task/sale_report_details?id=' + item.businessId + "&isShowbtn=true"
- })
- } else if (item.businessCode == 'SALE-CLOSE-REPORT') {
- uni.navigateTo({
- url: '/pages/task/sale_close_details?id=' + item.businessId + "&isShowbtn=true"
- })
- } else if (item.businessCode == 'PROCUREMENT-PRICE-APPROVE') {
- if (this.statusFlag == 1) {
- uni.navigateTo({
- url: `/pages/task/audit/warehouse_approval?id=${item.businessId}&isShowbtn=true`
- })
- } else {
- uni.navigateTo({
- url: '/pages/task/audit/warehouse_details?id=' + item.businessId + "&isShowbtn=true"
- })
- }
- } else if (item.businessCode == 'PAYMENT-MANAGEMENT-APPROVE') {
- if (this.statusFlag == 1) {
- uni.navigateTo({
- url: `/pages/task/audit/acquisition_settlement_approval?vesselId=${item.vesselId}&id=${item.businessId}`
- })
- } else {
- uni.navigateTo({
- url: '/pages/task/audit/acquisition_settlement_details?id=' + item.businessId +
- '&isShowbtn=true'
- })
- }
- } else if (item.businessCode == 'INOUTTASK-TASK-APPROVE') {
- if (this.statusFlag == 1) {
- uni.navigateTo({
- url: `/pages/task/audit/Issueandreceipt_task_approval?id=` + item.businessId +
- "&isShowbtn=true"
- })
- } else {
- uni.navigateTo({
- url: `/pages/task/audit/Issueandreceipt_task_details?id=` + item.businessId +
- "&isShowbtn=true"
- })
- }
- } else if (item.businessCode == 'STOCK-PROCUREMENT-RECEIPT-REPORT') {
- if (this.statusFlag == 1) {
- uni.navigateTo({
- url: `/pages/task/audit/purchase_settlement_approval?id=` + item.businessId +
- "&isShowbtn=true"
- })
- } else {
- uni.navigateTo({
- url: `/pages/task/audit/purchase_settlement_details?id=` + item.businessId +
- "&isShowbtn=true"
- })
- }
- } else if (item.businessCode == 'TRANSPORTATION-SETTLEMENT-REPORT') {
- if (this.statusFlag == 1) {
- uni.navigateTo({
- url: `/pages/task/audit/freight_settlement_approval?id=` + item.businessId +
- "&isShowbtn=true"
- })
- } else {
- uni.navigateTo({
- url: `/pages/task/audit/freight_settlement_details?id=` + item.businessId +
- '&compId=' + this
- .pcUserInfo.compId + "&isShowbtn=true"
- })
- }
- }
- else if (item.businessCode == 'GENERAL-AUDIT-APPROVE') {
- uni.navigateTo({
- url: `/pages/task/audit/universalityAudit?id=` + item.businessId
- })
- }
- else if (item.businessCode == 'FEIYONGYUNFEI-APPROVE') {
- if (this.statusFlag == 1) {
- uni.navigateTo({
- url: `/pages/task/audit/freight_settlement_approvalcopy?id=` + item.businessId +
- "&isShowbtn=true"
- })
- } else {
- uni.navigateTo({
- url: `/pages/task/audit/freight_settlement_detailscopy?id=` + item.businessId +
- '&compId=' + this
- .pcUserInfo.compId + "&isShowbtn=true"
- })
- }
- }else if (item.businessCode == 'YUNJIA-TRAN-APPROVE') {
- if (this.statusFlag == 1) {
- uni.navigateTo({
- url: `/pages/task/audit/freight_setting_approval?id=` + item.businessId +
- "&isShowbtn=true"
- })
- } else {
- uni.navigateTo({
- url: `/pages/task/audit/freight_setting_details?id=` + item.businessId +
- "&isShowbtn=true"
- })
- }
- } else if (item.businessCode == 'TRAN-TEAM-APPROVE') {
- if (this.statusFlag == 1) {
- uni.navigateTo({
- url: `/pages/task/audit/freight_setting_approval?id=` + item.businessId +
- "&isShowbtn=true"
- })
- } else {
- uni.navigateTo({
- url: `/pages/task/audit/freight_setting_details?id=` + item.businessId +
- "&isShowbtn=true"
- })
- }
- } else if (item.businessCode == 'ACQUISITION-SETTLEMENT-APPRPVE') {
- if (this.statusFlag == 1) {
- uni.navigateTo({
- url: `/pages/task/audit/acquisition_information_approval?id=` + item.businessId +
- "&isShowbtn=true"
- })
- } else {
- uni.navigateTo({
- url: `/pages/task/audit/acquisition_information_details?id=` + item.businessId +
- "&isShowbtn=true"
- })
- }
- } else if (item.businessCode == 'BUKA-APPROVE') {
- if (this.statusFlag == 1) {
- uni.navigateTo({
- url: `/pages/task/audit/supp_clock_approve?id=` + item.businessId +
- "&isShowbtn=true"
- })
- } else {
- uni.navigateTo({
- url: `/pages/task/audit/supp_clock_details?id=` + item.businessId +
- "&isShowbtn=true"
- })
- }
- } else if (item.businessCode == 'QINGJIA-APPROVE') {
- if (this.statusFlag == 1) {
- uni.navigateTo({
- url: `/pages/task/audit/leave_approve?id=` + item.businessId +
- "&isShowbtn=true"
- })
- } else {
- uni.navigateTo({
- url: `/pages/task/audit/leave_details?id=` + item.businessId +
- "&isShowbtn=true"
- })
- }
- } else if (item.businessCode == 'TRADE-WAREHOUSE-REPORT') {
- if (this.statusFlag == 1) {
- uni.navigateTo({
- url: `/pages/task/audit/tradeServices_audit?id=` + item.businessId
- })
- } else {
- uni.navigateTo({
- url: `/pages/task/audit/tradeServices_audit_approval?id=` + item.businessId
- })
- }
- } else if (item.businessCode == 'WAREHOUSING-ORDER-APPROVE') {
- if (this.statusFlag == 1) {
- uni.navigateTo({
- url: `/pages/task/audit/warehouse_warrant?id=` + item.businessId
- })
- } else {
- uni.navigateTo({
- url: `/pages/task/audit/warehouse_warrant_detail?id=` + item.businessId
- })
- }
- } else if (item.businessCode == 'FEIYONGGUANLI-APPROVE') {
- if (this.statusFlag == 1) {
- uni.navigateTo({
- url: `/pages/task/audit/charge_against_revenue?id=` + item.businessId + '&vesselId=' + item.vesselId
- })
- } else {
- uni.navigateTo({
- url: `/pages/task/audit/charge_against_revenue_detail?id=` + item.businessId
- })
- }
- } else if (item.businessCode == 'COLLECTION-WAREHOUSING-RECORD') {
- if (this.statusFlag == 1) {
- uni.navigateTo({
- url: `/pages/task/audit/collection_business_approval?id=` + item.businessId +
- "&isShowbtn=true"
- })
- } else {
- uni.navigateTo({
- url: `/pages/task/audit/collection_business_details?id=` + item.businessId +
- "&isShowbtn=true"
- })
- }
- }
- else if (item.businessCode == 'WAREHOUSING-XSZY-APPROVE') {
- if (this.statusFlag == 1) {
- uni.navigateTo({
- url: `/pages/task/audit/sales_shift?id=` + item.businessId
- })
- } else {
- uni.navigateTo({
- url: `/pages/task/audit/sales_shift?id=` + item.businessId
- })
- }
- }
- if (item.taskType == "入库任务") {
- if (item.statusFlag == 3) {
- uni.navigateTo({
- url: `/pageD/warehousings/warehousingDetails?id=${item.id}&isShowbtn=true`
- })
- } else {
- uni.navigateTo({
- 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`
- })
- }
- } else if (item.taskType == "出库任务") {
- if (item.statusFlag == 3) {
- uni.navigateTo({
- url: `/pageD/warehousings/ex_warehouse_detail?id=${item.id}&isShowbtn=true`
- })
- } else {
- uni.navigateTo({
- 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`
- })
- }
- }
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .content {
- padding-bottom: 50rpx;
- }
- .tag {
- background: #F5F6F9;
- padding: 5px;
- color: #333333;
- display: inline-flex;
- font-size: 22rpx;
- border-radius: 3px;
- margin: 3px;
- }
- .introduce-section {
- // background: red;
- }
- .introduce-section .title_b .title-tip {
- font-size: 13px;
- height: 40px;
- line-height: 40px;
- flex: 2.5;
- }
- .introduce-section .title_b .title {
- font-size: 13px;
- height: 40px;
- flex: 2.5;
- }
- .introduce-section .title_b .title-tip-b {
- flex: 1;
- font-size: 13px;
- color: #878C9C;
- height: 40px;
- line-height: 40px;
- }
- .introduce-section .title {
- justify-content: space-between;
- align-items: flex-start;
- }
- .introduce-section .title text {
- font-size: 28rpx;
- }
- .introduce-section .title .title-tip {
- flex: 1;
- font-size: 28rpx;
- color: #FE6430;
- font-weight: 500;
- height: 50px;
- line-height: 50px;
- border-bottom: 1px solid #EEEEEE;
- }
- .introduce-section .title .title-tip-a {
- flex: 1;
- font-size: 15px;
- color: #AFB3BF;
- font-weight: 500;
- height: 50px;
- line-height: 50px;
- border-bottom: 1px solid #EEEEEE;
- }
- .introduce-section .guess-item {
- border-radius: 10rpx;
- background: #fff;
- padding: 32rpx;
- margin: 20rpx;
- }
- .line {
- display: inline-block;
- padding: 5px;
- position: relative;
- font-size: 17px;
- }
- .line.active {
- font-size: 19px;
- font-weight: 900;
- }
- .line.active:after {
- content: '';
- display: block;
- position: absolute;
- width: 18px;
- left: 50%;
- transform: translateX(-50%);
- bottom: 0;
- border-bottom: 3px solid #22C572;
- }
- /deep/.u-action-active {
- margin-right: 6px;
- }
- .content1-top {
- background: white;
- padding: 20rpx 20rpx 0 20rpx;
- border-radius: 0 0 30rpx 30rpx;
- }
- .search-form {
- margin-bottom: 20rpx;
- }
- .title-row1 {
- font-size: 34rpx;
- font-weight: 600;
- }
- .row2 {
- margin-top: 55rpx;
- }
- .top2 {
- display: flex;
- align-items: center;
- justify-content: space-between;
- .right {
- display: flex;
- align-items: center;
- .right-contrent1 {
- margin: 20rpx;
- }
- }
- }
- .company {
- // position: fixed;
- // right: 0;
- // top: 18%;
- background: url('../../static/img/qiyebeijing.png');
- background-size: 100% 100%;
- text-align:right;
- font-size: 11px;
- padding-bottom: 5px;
- padding-right: 10px;
- width:60%;
- margin-right:-10px;
- border-radius: 40rpx 0 0 40rpx;
- }
-
- .company .icon {
- position: relative;
- top: 4px;
- }
- </style>
|