Commit aedb6fa6 authored by xiangzj's avatar xiangzj

销售订单

parent 26fe3218
This diff is collapsed.
<template> <template>
<view class="page-news"> <view class="">
<uni-list ref="list" class="listview" :enableBackToTop="true" :scroll-y="true" @scrolltolower="loadMore()"> <list ref="list" class="page-news" loadmoreoffset='100' @loadmore="scrolltolower"
<uni-refresh class="refresh" @refresh="onrefresh" @pullingdown="onpullingdown" :show-scrollbar='false'>
<!-- <uni-refresh class="refresh" @refresh="onrefresh" @pullingdown="onpullingdown"
:display="refreshing ? 'show' : 'hide'"> :display="refreshing ? 'show' : 'hide'">
<div class="refresh-view"> <div class="refresh-view">
<image class="refresh-icon" :src="refreshIcon" :style="{width: (refreshing || pulling) ? 0: '32px'}" <image class="refresh-icon" :src="refreshIcon" :style="{width: (refreshing || pulling) ? 0: '32px'}"
...@@ -10,16 +11,19 @@ ...@@ -10,16 +11,19 @@
:contentText="loadingMoreText"></uni-load-more> :contentText="loadingMoreText"></uni-load-more>
<text class="loading-text">{{refreshText}}</text> <text class="loading-text">{{refreshText}}</text>
</div> </div>
</uni-refresh> </uni-refresh> -->
<uni-cell v-for="(item, index) in dataList" :key="item.id"> <refresh @refresh="refresh" :display="refreshing ? 'show' : 'hide'">
<!-- <loading-indicator></loading-indicator> -->
</refresh>
<cell v-for="(item, index) in dataList" :key="item.id">
<order-item :newsItem="item" @click.native="goDetail(item)"></order-item> <order-item :newsItem="item" @click.native="goDetail(item)"></order-item>
</uni-cell> </cell>
<uni-cell v-if="isLoading || dataList.length > 4"> <cell v-if="isLoading || dataList.length > 4">
<view class="loading-more"> <view class="loading-more">
<text class="loading-more-text">{{loadingText}}</text> <text class="loading-more-text">{{loadingText}}</text>
</view> </view>
</uni-cell> </cell>
</uni-list> </list>
<no-data class="no-data" v-if="isNoData" @retry="loadMore"></no-data> <no-data class="no-data" v-if="isNoData" @retry="loadMore"></no-data>
</view> </view>
</template> </template>
...@@ -50,9 +54,9 @@ ...@@ -50,9 +54,9 @@
orderItem orderItem
}, },
props: { props: {
nid: { condition: {
type: String, type: Object,
default: '' default: () => {}
}, },
dateRange: { dateRange: {
type: Object, type: Object,
...@@ -83,22 +87,6 @@ ...@@ -83,22 +87,6 @@
contentnomore: '' contentnomore: ''
}, },
refreshIcon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAB5QTFRFcHBw3Nzct7e39vb2ycnJioqK7e3tpqam29vb////D8oK7wAAAAp0Uk5T////////////ALLMLM8AAABxSURBVHja7JVBDoAgDASrjqj//7CJBi90iyYeOHTPMwmFZrHjYyyFYYUy1bwUZqtJIYVxhf1a6u0R7iUvWsCcrEtwJHp8MwMdvh2amHduiZD3rpWId9+BgPd7Cc2LIkPyqvlQvKxKBJ//Qwq/CacAAwDUv0a0YuKhzgAAAABJRU5ErkJggg==", refreshIcon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAB5QTFRFcHBw3Nzct7e39vb2ycnJioqK7e3tpqam29vb////D8oK7wAAAAp0Uk5T////////////ALLMLM8AAABxSURBVHja7JVBDoAgDASrjqj//7CJBi90iyYeOHTPMwmFZrHjYyyFYYUy1bwUZqtJIYVxhf1a6u0R7iUvWsCcrEtwJHp8MwMdvh2amHduiZD3rpWId9+BgPd7Cc2LIkPyqvlQvKxKBJ//Qwq/CacAAwDUv0a0YuKhzgAAAABJRU5ErkJggg==",
condition: {
USER_BP: '50000215',
ROLE: 'WLY001',
PROCESS_TYPE: [{
"SIGN": "I",
"OPTION": "EQ",
LOW: '',
HIGH: ''
}],
POSTING_DATE: [{
"SIGN": "I",
"OPTION": "BT",
LOW: '',
HIGH: ''
}]
},
page: { page: {
"PAGE": "1", "PAGE": "1",
"PAGESIZE": "10", "PAGESIZE": "10",
...@@ -116,7 +104,6 @@ ...@@ -116,7 +104,6 @@
}, },
created() { created() {
this.pullTimer = null; this.pullTimer = null;
this.condition.USER_BP = this.userInfo.code
this._isWidescreen = false; this._isWidescreen = false;
// this.loadData(true) // this.loadData(true)
}, },
...@@ -128,89 +115,15 @@ ...@@ -128,89 +115,15 @@
this.isLoading = true; this.isLoading = true;
this.isNoData = false; this.isNoData = false;
this.condition.PROCESS_TYPE[0].LOW = this.nid
let POSTING_DATE = []
let PROCESS_TYPE = []
let dateParams = dateRange || this.dateRange
if (dateParams && dateParams.start) {
this.condition.POSTING_DATE[0].LOW = dateParams.start
this.condition.POSTING_DATE[0].HIGH = dateParams.end
POSTING_DATE = this.condition.POSTING_DATE
} else {
POSTING_DATE = []
}
// if (this.condition.POSTING_DATE[0].LOW === '') {
// POSTING_DATE = []
// } else {
// POSTING_DATE = this.condition.POSTING_DATE
// }
if (this.condition.PROCESS_TYPE[0].LOW === '') {
PROCESS_TYPE = [{
"SIGN": "I",
"OPTION": "EQ",
LOW: 'ZS01',
},
{
"SIGN": "I",
"OPTION": "EQ",
LOW: 'ZS02',
},
{
"SIGN": "I",
"OPTION": "EQ",
LOW: 'V013',
}
]
} else {
if (this.nid === 'V013') {
PROCESS_TYPE = [{
"SIGN": "I",
"OPTION": "EQ",
LOW: 'ZS02',
}]
} else {
PROCESS_TYPE = this.condition.PROCESS_TYPE
}
}
console.log('load---------', this.nid, PROCESS_TYPE)
const params = { const params = {
...this.condition, ...this.condition,
PROCESS_TYPE,
POSTING_DATE,
...this.page ...this.page
} }
if (this.nid === 'V013') { !params.object_id.low && delete params.object_id
params.ZZFLD00002J = [{ !params.posting_date.low && delete params.posting_date
"SIGN": "I", !params.process_type.low && delete params.process_type
"OPTION": "EQ", !params.status.low && delete params.status
LOW: 'V013',
}]
} else if (this.nid === 'ZS02'){
params.ZZFLD00002J = [
    {
        "SIGN": "E",
        "OPTION": "EQ",
        "LOW": "V013"
    },
    {
        "SIGN": "E",
        "OPTION": "EQ",
        "LOW": "V014"
    },
    {
        "SIGN": "E",
        "OPTION": "EQ",
        "LOW": "V015"
    }
]
} else {
delete params['ZZFLD00002J']
}
apiGetSalesOrder(params).then((res) => { apiGetSalesOrder(params).then((res) => {
console.log('loadData', res) console.log('loadData', res)
const { const {
...@@ -343,28 +256,28 @@ ...@@ -343,28 +256,28 @@
} }
.page-news { .page-news {
flex: 1; // flex: 1;
flex-direction: column; // flex-direction: column;
position: absolute; // position: absolute;
left: 0; // left: 0;
top: 0; // top: 0;
right: 0; // right: 0;
bottom: 0; // bottom: 0;
} }
.listview { .listview {
position: absolute; // position: absolute;
left: 0; // left: 0;
top: 0; // top: 0;
right: 0; // right: 0;
bottom: 0; // bottom: 0;
/* #ifndef APP-NVUE */ // /* #ifndef APP-NVUE */
display: flex; // display: flex;
flex-direction: column; // flex-direction: column;
/* #endif */ // /* #endif */
/* #ifndef MP-ALIPAY */ // /* #ifndef MP-ALIPAY */
flex-direction: column; // flex-direction: column;
/* #endif */ // /* #endif */
} }
.refresh { .refresh {
......
This diff is collapsed.
...@@ -371,6 +371,8 @@ ...@@ -371,6 +371,8 @@
} }
.uni-input { .uni-input {
line-height: 100%;
height: 100%;
font-size: 14px; font-size: 14px;
color: $text-base-color; color: $text-base-color;
} }
......
...@@ -567,6 +567,8 @@ ...@@ -567,6 +567,8 @@
} }
.uni-input-text { .uni-input-text {
height: 96rpx;
line-height: 96rpx;
font-size: 14px; font-size: 14px;
color: #888; color: #888;
text-overflow: ellipsis; text-overflow: ellipsis;
......
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
logOut() { logOut() {
apiLogOut().then((res) => { apiLogOut().then((res) => {
uni.setStorageSync('lifeData', {}); uni.setStorageSync('lifeData', {});
uni.redirectTo({ uni.reLaunch({
url: "/pages/login/login" url: "/pages/login/login"
}) })
}).catch(() => { }).catch(() => {
......
...@@ -100,7 +100,7 @@ class Request { ...@@ -100,7 +100,7 @@ class Request {
duration: 2000, duration: 2000,
icon: 'none' icon: 'none'
}) })
uni.navigateTo({ uni.reLaunch({
url: "/pages/login/login" url: "/pages/login/login"
}) })
}else{ }else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment