123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- <template>
- <view class="wrap">
- <view class="dropdown content1">
- <view class="right" @click='show1=true'>
- <view>{{status}}</view>
- <u-icon name="arrow-right"></u-icon>
- <u-picker @confirm="statuschange" range-key='name' mode="selector" v-model="show1"
- :range="statusList"></u-picker>
- </view>
- </view>
- <view class="content2">
- <view class="content2-item" v-for="(item,index) in dataList" @click="goDetail(item)">
- <view style='padding:20px 5px 13px;border-bottom:1px solid #EEEEEE;' class="row">
- <view style='font-size:14px;' class="left" v-if="item.tranType != '他运'">{{item.processNo}}</view>
- <view style='font-size:14px;' class="left" v-else>{{item.contractNo}}</view>
- <view style='color:#22C572;'>{{item.tranType}}</view>
- </view>
- <view style='font-size:13px;' class="row">
- <view style='color:#9698A2;' class="left">{{item.goodsName}}</view>
- <view>{{item.weight}}</view>
- </view>
- <view style='font-size:14px;' class="row">
- <view style='flex:1;color:#9698A2;' class="left">发货</view>
- <view style='flex:2;text-align:right;'>{{item.send}}</view>
- </view>
- <view style='font-size:14px;' class="row">
- <view style='flex:1;color:#9698A2;' class="left">收货</view>
- <view style='flex:2;text-align:right;'>{{item.receive}}</view>
- </view>
- <view style='font-size:14px;' class="row" v-if="item.tranType != '他运'">
- <view style='flex:1;color:#9698A2;' class="left" >运输周期</view>
- <view style='flex:2;text-align:right;'>{{item.deliveryDateStart}} ~ {{item.deliveryDateEnd}}</view>
- </view>
- <view style='font-size:14px;' class="row">
- <view style='flex:1;color:#9698A2;' class="left" v-if="item.tranType != '他运'">{{item.feedbackStatus}}</view>
- <view style='flex:1;color:#9698A2;' class="left" v-else>{{item.receivingStatus}}</view>
- <view style='flex:2;text-align:right;'>{{item.createDate}}</view>
- </view>
- </view>
- </view>
- <!-- <view v-show="isContent">
- <uni-load-more :status="loadStatus"></uni-load-more>
- </view> -->
- </view>
- </template>
- <script>
- import helper from '@/common/helper.js';
- export default {
- data() {
- return {
- show1: false,
- show2: false,
- currentPage: 1,
- pageSize: 10,
- isContent:false,
- positionId: "",
- binNumber: "",
- status: '执行中',
- flag:'',
- positionName: '',
- statusList: [
- {name:'执行中',value:4},
- {name:'已完货',value:5},
- {name:'全部任务',value:6},
- ],
- feedbackFlag:4,
- dataList: [],
- allWarehouse: [],
- showTime: ''
- }
- },
- onLoad() {
- this.positionId = helper.erpWarehouse.positionId
- this.warehouseId = helper.erpWarehouse.warehouseId
- },
- onShow() {
- let _data = helper.erpWarehouse
- this.warehouseList = _data.allWarehouse
- this.warehouseCWList = _data.warehouseCWList
- this.binNumber = _data.binNumber
- this.positionId = _data.positionId
- this.warehouseId = _data.warehouseId
- this.getList()
- },
- onReachBottom() {
- this.currentPage+=1
- this.flag='1'
- this.getList(false)
- // this.getMoreNews()
- },
- methods: {
- getList() {
- this.$api.doRequest('get', '/tranProcessInfo/selectTranProcessInfo', {
- feedbackFlag: this.feedbackFlag,
- currentPage: this.currentPage,
- pageSize: this.pageSize
- }).then(res => {
- if (res.data.code == 200) {
- if(this.flag=='1'){
- var data=res.data.data.records
- this.dataList = this.dataList.concat(data)
- }
- else{
- this.dataList =res.data.data.records
- }
- if(res.data.data.records.length==0){
- this.isContent=true
- }
- }
- })
- },
- statuschange(e) {
- this.status = this.statusList[e[0]].name
- this.feedbackFlag=this.statusList[e[0]].value
- this.currentPage = 1,
- this.flag='0'
- this.getList()
- },
- goDetail(val) {
- if(val.tranType == "他运"){
- uni.navigateTo({
- url: `/pages/erp/receivingfeedback/otherfeedback?id=${val.id}&status=${val.receivingStatus}` ,
- })
- }else{
- uni.navigateTo({
- url: '/pages/erp/receivingfeedback/details?id=' + val.id,
- })
- }
- }
- }
- }
- </script>
- <style scoped lang="scss">
- .dropdown {
- display: flex;
- margin: 20rpx 0;
- justify-content: space-between;
- .left,
- .right {
- display: flex;
- align-items: center;
- }
- }
- .content1 {
- padding: 40rpx 20rpx;
- margin: 20rpx;
- border-radius: 10rpx;
- background: #FFFFFF;
- }
- .content2 {
- // background: white;
- margin:10px 0;
- border-radius:10px;
- .row {
- display: flex;
- justify-content: space-between;
- // border-bottom: 1px solid #EEEEEE;
- padding: 18rpx 10rpx;
- .right,
- input {
- font-size: 28rpx;
- color: #333333;
- }
- }
- .row-bottom {
- .right-bottom {
- width: 300rpx;
- text-align: right;
- }
- }
- }
- .content2-item {
- // margin: 0 20rpx 20rpx 20rpx;
- margin:10px;
- background:#fff;
- padding:0 20rpx;
- border-radius:10px;
- border-bottom: 1px solid #EEEEEE;
- }
- .content2-item:last-child{
- border-bottom: 1px solid transparent;
- }
- .no-boder {
- border-bottom: none !important;
- }
- .bold{
- font-size:18px;
- font-weight:600;
- }
- </style>
|