Commit 6779e8df authored by xiangzj's avatar xiangzj

优化

parent 4407f7f6
...@@ -314,6 +314,7 @@ ...@@ -314,6 +314,7 @@
} }
this.HEADINFO = HEAD this.HEADINFO = HEAD
if (this.isKeepData) { if (this.isKeepData) {
this.planinnerLists = [ ...this.groupOrder.ITEM ]
this.selectedGroupClient = { this.selectedGroupClient = {
'OBJNAME': this.groupOrder.INFO.GRPNAME, 'OBJNAME': this.groupOrder.INFO.GRPNAME,
'ID': this.groupOrder.INFO.GRPUTID 'ID': this.groupOrder.INFO.GRPUTID
......
...@@ -234,10 +234,11 @@ ...@@ -234,10 +234,11 @@
baseinfo baseinfo
} = this.groupOrder } = this.groupOrder
this.HEADINFO = INFO this.HEADINFO = INFO
this.planinnerLists[0] = { // this.planinnerLists[0] = {
...this.planinnerLists[0], // ...this.planinnerLists[0],
...ITEM[0] // ...ITEM[0]
} // }
this.planinnerLists = [ ...ITEM ]
this.productInitInfo = ITEM[0] this.productInitInfo = ITEM[0]
if(baseinfo && baseinfo.YXDY.length === 1){ if(baseinfo && baseinfo.YXDY.length === 1){
this.salesCenterIndex = 0 this.salesCenterIndex = 0
...@@ -298,7 +299,6 @@ ...@@ -298,7 +299,6 @@
...this.HEADINFO, ...this.HEADINFO,
...INFO ...INFO
} }
if (mode === 'inner') { if (mode === 'inner') {
this.planinnerLists = this.planinnerLists.map((item, i) => { this.planinnerLists = this.planinnerLists.map((item, i) => {
if (i === productIndex) { if (i === productIndex) {
...@@ -441,6 +441,16 @@ ...@@ -441,6 +441,16 @@
this.$emit('click', 'orderUpload') this.$emit('click', 'orderUpload')
}, },
preStep() { preStep() {
let groupOrder = {
"baseinfo": this.groupOrder.baseinfo,
'ITEM': this.planinnerLists,
'ATTACHMENT': [],
'INFO':{ ...this.HEADINFO,Marketing:this.Marketing},
}
this.$uStore({
name: 'groupOrder',
value: groupOrder
});
this.$emit('click', 'groupBaseinfo', true) this.$emit('click', 'groupBaseinfo', true)
}, },
...mapMutations(["$uStore"]), ...mapMutations(["$uStore"]),
......
...@@ -9,11 +9,16 @@ ...@@ -9,11 +9,16 @@
@scrolltolower='scrolltolower'> @scrolltolower='scrolltolower'>
<list class="scroll-area view" loadmoreoffset='100' show-scrollbar='false' @loadmore="scrolltolower"> <list class="scroll-area view" loadmoreoffset='100' show-scrollbar='false' @loadmore="scrolltolower">
<cell class="list-cell" v-for="(item,index) in lists" :key='index'> <cell class="list-cell" v-for="(item,index) in lists" :key='index'>
<view class="middle view planout-block-item"> <view class="middle view planout-block-item content">
<text class="middle-date-des middle-date-des-select">{{item.IMG_URL}}</text> <view class="content-left">
<text class="middle-date-des middle-date-des-select">{{item.TITLE}}</text> <image class="swiper-item-img" :src="item.IMG_URL" mode="widthFix">
<text class="middle-date-des middle-date-des-select">{{item.CONTENT}}</text> </image>
<text class="middle-date-des middle-date-des-select">{{item.DATE}}</text> </view>
<view class="content-right">
<text class="content-title">{{item.TITLE}}</text>
<text class="content-texts">{{item.CONTENT}}</text>
<text class="content-text content-date">{{item.DATE}}</text>
</view>
</view> </view>
<view class="empty-block"></view> <view class="empty-block"></view>
</cell> </cell>
...@@ -289,4 +294,33 @@ ...@@ -289,4 +294,33 @@
.scroll-area { .scroll-area {
overflow-y: scroll; overflow-y: scroll;
} }
.content{
flex-direction: row;
}
.content-left{
width: 284rpx;
height: 174rpx;
}
.content-right{
flex-direction: column;
padding-left: 34rpx;
flex: 1;
}
.content-title{
color: #333;
font-size: 32rpx;
margin-bottom: 10rpx;
}
.content-date{
margin-top: 10rpx;
color: #888;
font-size: 28rpx;
vertical-align: middle;
}
.content-texts{
color: #888;
font-size: 28rpx;
height: 60rpx;
vertical-align: middle;
}
</style> </style>
...@@ -177,7 +177,7 @@ ...@@ -177,7 +177,7 @@
return return
} }
const params = { const params = {
id: item.id ids: item.id
} }
uni.showLoading({ uni.showLoading({
......
...@@ -70,14 +70,22 @@ ...@@ -70,14 +70,22 @@
msgStatus: type msgStatus: type
} }
let res = await apiFindUnreadMsg(params) let res = await apiFindUnreadMsg(params)
if (res.status === 1 && res.data.Rows.length > 0) {
if (type === 0) { if (type === 0) {
this.unreadList = res.data.Rows if (res.data.Total - 0 > 0){
this.unreadCount = res.data.Total
uni.setTabBarBadge({ uni.setTabBarBadge({
index:3, index:3,
text: res.data.Total.toString() text: res.data.Total.toString()
}) })
}else {
uni.removeTabBarBadge({
index:3
})
}
}
if (res.status === 1 && res.data.Rows.length > 0) {
if (type === 0) {
this.unreadList = res.data.Rows
this.unreadCount = res.data.Total
} else { } else {
this.readList = res.data.Rows this.readList = res.data.Rows
} }
......
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,7 @@
}, },
scrollHeight() { scrollHeight() {
return { return {
'height': `${this.sysinfo.safeArea.height - 58 }px`, 'height': `${this.sysinfo.safeArea.height - 64 }px`,
} }
}, },
}, },
......
...@@ -354,8 +354,7 @@ ...@@ -354,8 +354,7 @@
if(res2.msgtype !== 'S'){ if(res2.msgtype !== 'S'){
return return
} }
this.orderInfo = res.HEAD this.orderInfo = {...res2.head}
this.$refs.popup.open('center') this.$refs.popup.open('center')
}catch(e){ }catch(e){
//TODO handle the exception //TODO handle the exception
......
<template>
<view class="lists">
<view class="status_bar" :style="navHeight"></view>
<view class="header-bg">
<image class="header-bg-img" src="@/static/image/nav_bg@3x.png" mode="scaleToFill"></image>
</view>
<view class="main">
<view class="middle view">
<view class="text-block">
<text class="middle-date">品牌</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input">{{clueDetail.wlybrand_text}}</text>
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">提报</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input">{{clueDetail.report_type_text}}</text>
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">门店</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input">{{clueDetail.cust_name}}</text>
<!-- <text class="uni-input">{{clueDetail.cust_name}}-{{clueDetail.customer_type_text}}</text> -->
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">营销单元</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input">{{clueDetail.sal_center_name}}</text>
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">业务员</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input">{{clueDetail.sales_emp_name}}</text>
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">创建年月</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input">{{clueDetail.gjahr}}-{{clueDetail.monat}}</text>
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">计划类型</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input">{{clueDetail.plan_type_text}}</text>
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">总计划量</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input">{{clueDetail.total_qty}}</text>
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">初始计划量</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input">{{clueDetail.initplan_qty}}</text>
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">已开票计划量</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input">{{clueDetail.billing_qty}}</text>
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">已占用计划量</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input">{{clueDetail.atp_qty}}</text>
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">剩余可用计划量</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input">{{clueDetail.remain_qty}}</text>
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">总计划额</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input">{{clueDetail.total_amt}}</text>
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">初始计划额</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input">{{clueDetail.initplan_amt}}</text>
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">已扣减计划额</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input">{{clueDetail.billing_amt}}</text>
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">已占用计划额</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input">{{clueDetail.atp_amt}}</text>
</view>
</view>
</view>
</view>
<view class="text-block">
<text class="middle-date">剩余可用计划额</text>
<view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell">
<view class="uni-list-cell-db">
<text class="uni-input">{{clueDetail.remain_amt}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="bottom-area"></view>
</view>
</view>
</template>
<script>
import {
mapState
} from 'vuex'
import {
apiGetClueInfo,
} from '@/servers/breakwords.js'
export default {
data() {
return {
condition: {
id: ''
},
clueDetail: {},
}
},
computed: {
...mapState(['sysinfo']),
navHeight() {
return {
'height': `${this.sysinfo.safeArea.top + 44}px`
}
},
},
onLoad(option) {
this.clueDetail = JSON.parse(option.planDetail)
uni.setNavigationBarTitle({
title: this.clueDetail.plan_number
});
},
methods: {
}
}
</script>
<style lang="scss" scoped>
.view {
display: flex;
flex-direction: column;
}
.status_bar {
height: var(--status-bar-height);
}
.header-bg {
height: 284rpx;
margin-top: -88rpx;
}
.header-bg-img {
width: 100%;
}
.lists {
position: relative;
flex-direction: column;
background: #f0f4f5;
}
.main {
position: relative;
overflow-y: scroll;
flex-direction: column;
margin-top: -164rpx;
border-radius: 16rpx;
padding: 0 16rpx;
}
.middle {
background-color: #fff;
border-radius: 16rpx;
padding: 0 48rpx;
margin-bottom: 32rpx;
}
.text-block {
display: flex;
overflow: hidden;
height: 96rpx;
border-bottom: 1px solid #f4f5f6;
}
.text-block-last {
margin-bottom: 0;
border-bottom: 0;
}
.no-border {
border: 0;
}
.middle-date {
flex: 3;
font-size: 24rpx;
line-height: 96rpx;
color: #999;
margin-bottom: 8rpx;
}
.middle-date-des {
align-items: center;
flex: 5.5;
font-size: 24rpx;
color: $text-base-color;
height: 96rpx;
line-height: 96rpx;
}
.uni-input-placeholder {
color: #DBDBDB;
}
.picker-year {
position: relative;
align-items: center;
// padding-left: 14rpx;
}
.uni-list-cell {
flex: 1;
height: 100%;
padding-right: 52rpx;
}
.uni-list-cell-db {
flex: 1;
height: 100%;
}
.picker-block {
flex: 1;
height: 100%;
}
.icon-arrow {
position: absolute;
right: 22rpx;
top: 40rpx;
width: 7px;
height: 10px;
z-index: 10;
}
.icon-search {
width: 11px;
height: 12px;
top: 36rpx;
}
.remark {
margin-bottom: 24px;
}
.remark-text {
flex: 1;
height: 180rpx;
background: #f5f6f7;
font-size: 24rpx;
border-radius: 4px;
padding: 12rpx 18rpx;
}
.diy-entry {
width: 140rpx;
height: 68rpx;
background: #f8f8f8;
border-radius: 8px;
line-height: 68rpx;
border: 1px solid #f8f8f8;
margin-left: 16rpx;
}
.diy-icon {
width: 24rpx;
height: 20rpx;
margin-right: 8rpx;
}
.diy-entry-text {
color: #333;
font-size: 12px;
}
.planout-block-item {
margin-top: 48rpx;
}
.upload-area {
padding-top: 32rpx;
padding-bottom: 32rpx;
.title {
font-size: 28rpx;
color: #333;
font-weight: 500;
}
.pic-lists {
margin-top: 24rpx;
margin-bottom: 20rpx;
}
.des {
color: #1C84FF;
font-size: 20rpx;
}
}
.bottom-area {
height: 140rpx;
margin-top: 12rpx;
}
</style>
<template> <template>
<view class="lists"> <view class="lists">
<view class="status_bar" :style="navHeight"></view> <view class="status_bar" :style="navHeight"></view>
<view class="header-bg"> <!-- <view class="header-bg">
<image class="header-bg-img" src="@/static/image/nav_bg@3x.png" mode="scaleToFill"></image> <image class="header-bg-img" src="@/static/image/nav_bg@3x.png" mode="scaleToFill"></image>
</view> </view> -->
<view class="main" :style="mainHeight"> <view class="main" :style="mainHeight">
<view class="navs-block">
<view class="navs-tab">
<view class="navs-tab-item">
<picker class="search-type-text" @change="bindPickerPlanChange" range-key='name'
mode="selector" :value="punishPlanSelected.name" :range="selectDataOptions.PlanType">
<text class="uni-input-text">{{punishPlanSelected.name}}</text>
</picker>
<image class="icon-arrow-down" src="@/static/image/arrow_down@3x.png" mode=""></image>
</view>
<view class="navs-tab-item">
<picker class="search-type-text" @change="bindPickerTypesChange" range-key='name'
mode="selector" :value="punishTypeSelected.name" :range="selectDataOptions.PunishType">
<text class="uni-input-text">{{punishTypeSelected.name}}</text>
</picker>
<image class="icon-arrow-down" src="@/static/image/arrow_down@3x.png" mode=""></image>
</view>
<view class="navs-tab-item">
<picker class="search-type-text" @change="bindPickerStatusChange" range-key='name'
mode="selector" :value="orderStatusSelected.name"
:range="selectDataOptions.ProcessOrderStatus">
<text class="uni-input-text">{{orderStatusSelected.name}}</text>
</picker>
<image class="icon-arrow-down" src="@/static/image/arrow_down@3x.png" mode=""></image>
</view>
</view>
</view>
<view class="middle view planout-block-item"> <view class="middle view planout-block-item">
<view class="text-block">
<text class="middle-date">销售计划编号</text>
<input class="middle-date-des" type="text" v-model="condition.plan_number[0].LOW" placeholder="请输入" />
</view>
<view class="text-block"> <view class="text-block">
<text class="middle-date">年度</text> <text class="middle-date">年度</text>
<view class="middle-date-des uni-list picker-year"> <view class="middle-date-des uni-list picker-year">
...@@ -21,16 +51,13 @@ ...@@ -21,16 +51,13 @@
</view> </view>
</view> </view>
<view class="text-block text-block-last"> <view class="text-block text-block-last">
<text class="middle-date">计划类型</text> <text class="middle-date">月份</text>
<view class="middle-date-des uni-list picker-year"> <view class="middle-date-des uni-list picker-year">
<view class="uni-list-cell"> <view class="uni-list-cell">
<view class="uni-list-cell-db"> <view class="uni-list-cell-db">
<picker class="picker-block" @change="bindPickerTypesChange" range-key='VALUE_KT' <picker class="picker-block" @change="bindPickerMonthChange" range-key='name' mode="selector"
mode="selector" :value="typesIndex" :range="selectedSalePlanTypes"> :value="condition.monat[0].LOW" :range="selectDataOptions.monthArr">
<view class="uni-input"> <text class="uni-input-text">{{condition.monat[0].LOW}}</text>
<text
class="uni-input-text">{{selectedSalePlanTypes[typesIndex] && selectedSalePlanTypes[typesIndex].VALUE_KT || '请选择'}}</text>
</view>
</picker> </picker>
</view> </view>
</view> </view>
...@@ -38,15 +65,20 @@ ...@@ -38,15 +65,20 @@
</view> </view>
</view> </view>
</view> </view>
<scroll-view class="scroll-area" scroll-y="true" lower-threshold='150' <view class="planout-block">
@scrolltolower='scrolltolower'> <button class="btn" type="default" @tap="search">
<text class="btn-text">查询</text>
</button>
</view>
<!-- <scroll-view class="scroll-area" scroll-y="true" lower-threshold='150'
@scrolltolower='scrolltolower'> -->
<list ref="list" class="scroll-area view" loadmoreoffset='100' @loadmore="scrolltolower" <list ref="list" class="scroll-area view" loadmoreoffset='100' @loadmore="scrolltolower"
:show-scrollbar='false'> :show-scrollbar='false'>
<!-- <refresh @refresh="refresh" :display="refreshing ? 'show' : 'hide'"> <refresh @refresh="refresh" :display="refreshing ? 'show' : 'hide'">
<loading-indicator></loading-indicator> <!-- <loading-indicator></loading-indicator> -->
</refresh> --> </refresh>
<cell v-for="(item,index) in lists" :key="item.plan_number"> <cell v-for="(item,index) in lists" :key="item.plan_number">
<view class="scroll-item"> <view class="scroll-item" @click="checkDetal(item)">
<view class="item-block item-block-code"> <view class="item-block item-block-code">
<text class="item-block-label">单号:{{item.plan_number}}</text> <text class="item-block-label">单号:{{item.plan_number}}</text>
</view> </view>
...@@ -87,7 +119,7 @@ ...@@ -87,7 +119,7 @@
</cell> </cell>
<view class="planout-block-item__last"> </view> <view class="planout-block-item__last"> </view>
</list> </list>
</scroll-view> <!-- </scroll-view> -->
<no-data v-if="lists.length === 0"></no-data> <no-data v-if="lists.length === 0"></no-data>
</view> </view>
</view> </view>
...@@ -105,7 +137,9 @@ ...@@ -105,7 +137,9 @@
import { import {
apiSalesPlan apiSalesPlan
} from '@/servers/purchasePlan.js' } from '@/servers/purchasePlan.js'
import {
querySysDictionaryDetailsByCode,
} from '@/servers/purchaseList.js'
import timeFormat from '@/uview-ui/libs/function/timeFormat.js' import timeFormat from '@/uview-ui/libs/function/timeFormat.js'
import noData from '@/components/nodata.nvue'; import noData from '@/components/nodata.nvue';
export default { export default {
...@@ -124,12 +158,36 @@ ...@@ -124,12 +158,36 @@
LOW: '', LOW: '',
HIGH: '' HIGH: ''
}], }],
PLAN_TYPE: [{ monat: [{
SIGN: 'I',
OPTION: 'EQ',
LOW: '',
HIGH: ''
}],
plan_number: [{
SIGN: 'I',
OPTION: 'CP',
LOW: '',
HIGH: ''
}],
plan_type: [{
SIGN: 'I',
OPTION: 'EQ',
LOW: '',
HIGH: ''
}],
report_type: [{
SIGN: 'I',
OPTION: 'EQ',
LOW: '',
HIGH: ''
}],
wlybrand: [{
SIGN: 'I', SIGN: 'I',
OPTION: 'EQ', OPTION: 'EQ',
LOW: '', LOW: '',
HIGH: '' HIGH: ''
}] }],
}, },
page: { page: {
"PAGE": "1", "PAGE": "1",
...@@ -145,6 +203,37 @@ ...@@ -145,6 +203,37 @@
selectedSalePlanTypes: [], selectedSalePlanTypes: [],
typesIndex: 0, typesIndex: 0,
lists: [], lists: [],
punishTypeSelected: {
'value': '',
'name': '全部提报'
},
orderStatusSelected: {
'value': '',
'name': '全部品牌'
},
punishPlanSelected: {
'value': '',
'name': '全部计划'
},
monthSelected: {
'value': '',
'name': ''
},
selectDataOptions: {
'PunishType': [{
'value': '',
'name': '全部提报'
}],
'ProcessOrderStatus': [{
'value': '',
'name': '全部品牌'
}],
'PlanType': [{
'value': '',
'name': '全部计划'
}],
'monthArr': []
},
} }
}, },
components: { components: {
...@@ -181,19 +270,99 @@ ...@@ -181,19 +270,99 @@
this.condition.GJAHR[0].LOW = timeFormat(new Date(), 'yyyy') this.condition.GJAHR[0].LOW = timeFormat(new Date(), 'yyyy')
this.condition.MV_BP = this.userInfo.code this.condition.MV_BP = this.userInfo.code
this.reset() this.reset()
this.getSalesPlanTypes(true); this.getSelectDictDataOrigin('A0001','PunishType')
this.getSelectDictDataOrigin('A0002','PlanType')
this.getSelectDictDataOrigin('A0019','ProcessOrderStatus')
this.getSelectDictDataOrigin('month','monthArr')
this.getSalesPlan(true);
}, },
methods: { methods: {
search() {
console.log(this.condition)
this.reset()
this.getSalesPlan(true);
},
getSelectDictDataOrigin(dictcode,key) {
querySysDictionaryDetailsByCode({'code': dictcode})
.then(res => {
if(res.data.Rows.length>0){
this.selectDataOptions[key] = [...this.selectDataOptions[key], ...res.data.Rows]
}
})
.catch(() => {})
},
bindPickerMonthChange(e) {
console.log('bindPickerMonthChange', e.detail.value,this.selectDataOptions)
this.condition.monat[0].LOW = this.selectDataOptions['monthArr'][e.detail.value].value
},
bindPickerPlanChange(e) {
console.log(this.selectDataOptions,'this.selectDataOptions')
console.log('bindPickerPlanChange', e.detail.value)
this.punishPlanSelected = this.selectDataOptions['PlanType'][e.detail.value || 0]
if (e.detail.value === 0) {
this.condition.plan_type = []
} else {
this.condition.plan_type[0] = {
SIGN: 'I',
OPTION: 'EQ',
LOW: this.punishPlanSelected.value,
HIGH: ''
}
}
this.search();
},
bindPickerTypesChange(e) {
console.log('bindPickerTypesChange', e.detail.value)
this.punishTypeSelected = this.selectDataOptions['PunishType'][e.detail.value || 0]
if (e.detail.value === 0) {
this.condition.report_type = []
} else {
this.condition.report_type[0] = {
SIGN: 'I',
OPTION: 'EQ',
LOW: this.punishTypeSelected.value,
HIGH: ''
}
}
this.search();
},
bindPickerStatusChange(e) {
console.log('bindPickerStatusChange', e.detail.value)
this.orderStatusSelected = this.selectDataOptions['ProcessOrderStatus'][e.detail.value || 0]
if (e.detail.value === 0) {
this.condition.wlybrand = []
} else {
this.condition.wlybrand[0] = {
SIGN: 'I',
OPTION: 'EQ',
LOW: this.orderStatusSelected.value,
HIGH: ''
}
}
this.search();
},
checkDetal(item) {
uni.navigateTo({
url: `/pages/purchase-plan-detail/purchase-plan-detail?planDetail=${JSON.stringify(item)}`
})
},
async getSalesPlan(isRefresh) { async getSalesPlan(isRefresh) {
if (isRefresh) {
this.page.PAGE = 1
}
if (this.loadParams.isDone) { if (this.loadParams.isDone) {
return return
} }
const params = { const params = {
...this.page, ...this.page,
...this.condition ...this.condition
} }
this.orderStatusSelected.value ? "" : delete params.wlybrand
this.punishTypeSelected.value ? "" : delete params.report_type
this.punishPlanSelected.value ? "" : delete params.plan_type
params.GJAHR[0].LOW ? "" : delete params.GJAHR
params.monat[0].LOW ? "" : delete params.monat
params.plan_number[0].LOW ? "" : delete params.plan_number
uni.showLoading({ uni.showLoading({
title: '加载中' title: '加载中'
}); });
...@@ -266,31 +435,30 @@ ...@@ -266,31 +435,30 @@
this.lists = [] this.lists = []
this.loadingText = '加载中' this.loadingText = '加载中'
}, },
async getSalesPlanTypes() { // async getSalesPlanTypes() {
const params = { // const params = {
"object_id": [{ // "object_id": [{
"sign": "I", // "sign": "I",
"option": "EQ", // "option": "EQ",
"low": "A0002", // "low": "A0002",
"HIGH": "" // "HIGH": ""
}] // }]
} // }
const res = await apiSalesPlanTypesSelect(params) // const res = await apiSalesPlanTypesSelect(params)
this.selectedSalePlanTypes = res.DATA // this.selectedSalePlanTypes = res.DATA
this.selectedSalePlan = this.selectedSalePlanTypes[this.typesIndex] // this.selectedSalePlan = this.selectedSalePlanTypes[this.typesIndex]
this.condition.PLAN_TYPE[0].LOW = this.selectedSalePlanTypes[this.typesIndex].VALUE_ID // this.condition.PLAN_TYPE[0].LOW = this.selectedSalePlanTypes[this.typesIndex].VALUE_ID
this.getSalesPlan() // this.getSalesPlan()
}, // },
bindPickerTypesChange(e) { // bindPickerTypesChange(e) {
console.log('bindPickerTypesChange', e.detail.value) // console.log('bindPickerTypesChange', e.detail.value)
this.typesIndex = e.detail.value // this.typesIndex = e.detail.value
this.condition.PLAN_TYPE[0].LOW = this.selectedSalePlanTypes[this.typesIndex].VALUE_ID // this.condition.PLAN_TYPE[0].LOW = this.selectedSalePlanTypes[this.typesIndex].VALUE_ID
this.getSalesPlan(true) // this.getSalesPlan(true)
}, // },
bindPickerYearChange(e) { bindPickerYearChange(e) {
console.log('bindPickerYearChange', e.detail.value) console.log('bindPickerYearChange', e.detail.value)
this.condition.GJAHR[0].LOW = e.detail.value this.condition.GJAHR[0].LOW = e.detail.value
this.getSalesPlan(true)
}, },
handleClick(e, content, index) { handleClick(e, content, index) {
console.log('click当前索引:', e, content, index); console.log('click当前索引:', e, content, index);
...@@ -331,18 +499,20 @@ ...@@ -331,18 +499,20 @@
.main { .main {
position: relative; position: relative;
flex-direction: column; flex-direction: column;
margin-top: -164rpx;
padding: 0 16rpx; padding: 0 16rpx;
// padding-top: 40rpx;
// background-color: #fff;
} }
.scroll-area { .scroll-area {
overflow-y: scroll; overflow-y: scroll;
background: #f0f4f5;
} }
.middle { .middle {
background-color: #fff; background-color: #fff;
border-radius: 16rpx; border-radius: 16rpx;
padding: 32rpx 64rpx 40rpx 48rpx; padding: 0rpx 64rpx 0rpx 48rpx;
} }
.text-block { .text-block {
...@@ -384,6 +554,8 @@ ...@@ -384,6 +554,8 @@
.uni-list-cell { .uni-list-cell {
flex: 1; flex: 1;
height: 96rpx;
line-height: 96rpx;
} }
.uni-list-cell-db { .uni-list-cell-db {
...@@ -397,6 +569,9 @@ ...@@ -397,6 +569,9 @@
.uni-input-text { .uni-input-text {
font-size: 14px; font-size: 14px;
color: #888; color: #888;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
} }
.icon-arrow { .icon-arrow {
...@@ -414,7 +589,7 @@ ...@@ -414,7 +589,7 @@
} }
.planout-block-item { .planout-block-item {
margin-bottom: 32rpx; // margin: 32rpx 0;
} }
.scroll-item { .scroll-item {
...@@ -520,4 +695,57 @@ ...@@ -520,4 +695,57 @@
font-size: 12px; font-size: 12px;
color: #999; color: #999;
} }
.navs-block {
flex-direction: column;
background-color: #fff;
padding-top: 40rpx;
}
.navs-tab {
display: flex;
flex: 1;
align-items: center;
height: 60rpx;
border-bottom: 1px solid #F4F5F6;
padding-bottom: 8rpx;
}
.navs-tab-item {
display: flex;
justify-content: center;
flex: 1;
align-items: center;
height: 50rpx;
overflow: hidden;
}
.search-type-text {
color: #333;
font-size: 28rpx;
}
.icon-arrow-down {
width: 6px;
height: 4px;
margin-left: 16rpx;
}
.planout-block {
display: flex;
justify-content: space-between;
margin-top: 30rpx;
margin-bottom: 30rpx;
padding: 0 24rpx;
}
.btn {
flex: 1;
height: 92rpx;
background: $wly-primary-color;
border-radius: 46rpx;
}
.btn-text {
color: #fff;
font-size: 34rpx;
}
</style> </style>
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