Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
wly-APP
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘川
wly-APP
Commits
6779e8df
Commit
6779e8df
authored
Nov 05, 2022
by
xiangzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
4407f7f6
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
753 additions
and
67 deletions
+753
-67
group-baseinfo.nvue
pages/group-buy/group-baseinfo.nvue
+1
-0
quota-order.nvue
pages/group-buy/quota-order.nvue
+15
-5
information.nvue
pages/information/information.nvue
+39
-5
message-list-page.nvue
pages/message-list/message-list-page.nvue
+2
-2
message.nvue
pages/message/message.nvue
+13
-5
order-detail-quota.nvue
pages/order-detail-quota/order-detail-quota.nvue
+1
-1
produce-plan.nvue
pages/produce-material/produce-plan.nvue
+1
-2
purchase-plan-detail.vue
pages/purchase-plan-detail/purchase-plan-detail.vue
+406
-0
purchase-plan.nvue
pages/purchase-plan/purchase-plan.nvue
+275
-47
No files found.
pages/group-buy/group-baseinfo.nvue
View file @
6779e8df
...
...
@@ -314,6 +314,7 @@
}
this.HEADINFO = HEAD
if (this.isKeepData) {
this.planinnerLists = [ ...this.groupOrder.ITEM ]
this.selectedGroupClient = {
'OBJNAME': this.groupOrder.INFO.GRPNAME,
'ID': this.groupOrder.INFO.GRPUTID
...
...
pages/group-buy/quota-order.nvue
View file @
6779e8df
...
...
@@ -234,10 +234,11 @@
baseinfo
} = this.groupOrder
this.HEADINFO = INFO
this.planinnerLists[0] = {
...this.planinnerLists[0],
...ITEM[0]
}
// this.planinnerLists[0] = {
// ...this.planinnerLists[0],
// ...ITEM[0]
// }
this.planinnerLists = [ ...ITEM ]
this.productInitInfo = ITEM[0]
if(baseinfo && baseinfo.YXDY.length === 1){
this.salesCenterIndex = 0
...
...
@@ -298,7 +299,6 @@
...this.HEADINFO,
...INFO
}
if (mode === 'inner') {
this.planinnerLists = this.planinnerLists.map((item, i) => {
if (i === productIndex) {
...
...
@@ -441,6 +441,16 @@
this.$emit('click', 'orderUpload')
},
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)
},
...mapMutations(["$uStore"]),
...
...
pages/information/information.nvue
View file @
6779e8df
...
...
@@ -9,11 +9,16 @@
@scrolltolower='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'>
<view class="middle view planout-block-item">
<text class="middle-date-des middle-date-des-select">{{item.IMG_URL}}</text>
<text class="middle-date-des middle-date-des-select">{{item.TITLE}}</text>
<text class="middle-date-des middle-date-des-select">{{item.CONTENT}}</text>
<text class="middle-date-des middle-date-des-select">{{item.DATE}}</text>
<view class="middle view planout-block-item content">
<view class="content-left">
<image class="swiper-item-img" :src="item.IMG_URL" mode="widthFix">
</image>
</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 class="empty-block"></view>
</cell>
...
...
@@ -289,4 +294,33 @@
.scroll-area {
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>
pages/message-list/message-list-page.nvue
View file @
6779e8df
...
...
@@ -177,7 +177,7 @@
return
}
const params = {
id: item.id
id
s
: item.id
}
uni.showLoading({
...
...
pages/message/message.nvue
View file @
6779e8df
...
...
@@ -70,14 +70,22 @@
msgStatus: type
}
let res = await apiFindUnreadMsg(params)
if (res.status === 1 && res.data.Rows.length > 0) {
if (type === 0) {
this.unreadList = res.data.Rows
this.unreadCount = res.data.Total
if (res.data.Total - 0 > 0){
uni.setTabBarBadge({
index:3,
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 {
this.readList = res.data.Rows
}
...
...
pages/order-detail-quota/order-detail-quota.nvue
View file @
6779e8df
...
...
@@ -201,7 +201,7 @@
},
scrollHeight() {
return {
'height': `${this.sysinfo.safeArea.height -
58
}px`,
'height': `${this.sysinfo.safeArea.height -
64
}px`,
}
},
},
...
...
pages/produce-material/produce-plan.nvue
View file @
6779e8df
...
...
@@ -354,8 +354,7 @@
if(res2.msgtype !== 'S'){
return
}
this.orderInfo = res.HEAD
this.orderInfo = {...res2.head}
this.$refs.popup.open('center')
}catch(e){
//TODO handle the exception
...
...
pages/purchase-plan-detail/purchase-plan-detail.vue
0 → 100644
View file @
6779e8df
<
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
>
pages/purchase-plan/purchase-plan.nvue
View file @
6779e8df
<template>
<view class="lists">
<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>
</view>
</view>
-->
<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="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">
<text class="middle-date">年度</text>
<view class="middle-date-des uni-list picker-year">
...
...
@@ -21,16 +51,13 @@
</view>
</view>
<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="uni-list-cell">
<view class="uni-list-cell-db">
<picker class="picker-block" @change="bindPickerTypesChange" range-key='VALUE_KT'
mode="selector" :value="typesIndex" :range="selectedSalePlanTypes">
<view class="uni-input">
<text
class="uni-input-text">{{selectedSalePlanTypes[typesIndex] && selectedSalePlanTypes[typesIndex].VALUE_KT || '请选择'}}</text>
</view>
<picker class="picker-block" @change="bindPickerMonthChange" range-key='name' mode="selector"
:value="condition.monat[0].LOW" :range="selectDataOptions.monthArr">
<text class="uni-input-text">{{condition.monat[0].LOW}}</text>
</picker>
</view>
</view>
...
...
@@ -38,15 +65,20 @@
</view>
</view>
</view>
<scroll-view class="scroll-area" scroll-y="true" lower-threshold='150'
@scrolltolower='scrolltolower'>
<view class="planout-block">
<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"
:show-scrollbar='false'>
<
!-- <
refresh @refresh="refresh" :display="refreshing ? 'show' : 'hide'">
<
loading-indicator></loading-indicator
>
</refresh>
-->
<refresh @refresh="refresh" :display="refreshing ? 'show' : 'hide'">
<
!-- <loading-indicator></loading-indicator> --
>
</refresh>
<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">
<text class="item-block-label">单号:{{item.plan_number}}</text>
</view>
...
...
@@ -87,7 +119,7 @@
</cell>
<view class="planout-block-item__last"> </view>
</list>
<
/scroll-view
>
<
!-- </scroll-view> --
>
<no-data v-if="lists.length === 0"></no-data>
</view>
</view>
...
...
@@ -105,7 +137,9 @@
import {
apiSalesPlan
} from '@/servers/purchasePlan.js'
import {
querySysDictionaryDetailsByCode,
} from '@/servers/purchaseList.js'
import timeFormat from '@/uview-ui/libs/function/timeFormat.js'
import noData from '@/components/nodata.nvue';
export default {
...
...
@@ -124,12 +158,36 @@
LOW: '',
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',
OPTION: 'EQ',
LOW: '',
HIGH: ''
}]
}]
,
},
page: {
"PAGE": "1",
...
...
@@ -145,6 +203,37 @@
selectedSalePlanTypes: [],
typesIndex: 0,
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: {
...
...
@@ -181,19 +270,99 @@
this.condition.GJAHR[0].LOW = timeFormat(new Date(), 'yyyy')
this.condition.MV_BP = this.userInfo.code
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: {
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) {
if (isRefresh) {
this.page.PAGE = 1
}
if (this.loadParams.isDone) {
return
}
const params = {
...this.page,
...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({
title: '加载中'
});
...
...
@@ -266,31 +435,30 @@
this.lists = []
this.loadingText = '加载中'
},
async getSalesPlanTypes() {
const params = {
"object_id": [{
"sign": "I",
"option": "EQ",
"low": "A0002",
"HIGH": ""
}]
}
const res = await apiSalesPlanTypesSelect(params)
this.selectedSalePlanTypes = res.DATA
this.selectedSalePlan = this.selectedSalePlanTypes[this.typesIndex]
this.condition.PLAN_TYPE[0].LOW = this.selectedSalePlanTypes[this.typesIndex].VALUE_ID
this.getSalesPlan()
},
bindPickerTypesChange(e) {
console.log('bindPickerTypesChange', e.detail.value)
this.typesIndex = e.detail.value
this.condition.PLAN_TYPE[0].LOW = this.selectedSalePlanTypes[this.typesIndex].VALUE_ID
this.getSalesPlan(true)
},
//
async getSalesPlanTypes() {
//
const params = {
//
"object_id": [{
//
"sign": "I",
//
"option": "EQ",
//
"low": "A0002",
//
"HIGH": ""
//
}]
//
}
//
const res = await apiSalesPlanTypesSelect(params)
//
this.selectedSalePlanTypes = res.DATA
//
this.selectedSalePlan = this.selectedSalePlanTypes[this.typesIndex]
//
this.condition.PLAN_TYPE[0].LOW = this.selectedSalePlanTypes[this.typesIndex].VALUE_ID
//
this.getSalesPlan()
//
},
//
bindPickerTypesChange(e) {
//
console.log('bindPickerTypesChange', e.detail.value)
//
this.typesIndex = e.detail.value
//
this.condition.PLAN_TYPE[0].LOW = this.selectedSalePlanTypes[this.typesIndex].VALUE_ID
//
this.getSalesPlan(true)
//
},
bindPickerYearChange(e) {
console.log('bindPickerYearChange', e.detail.value)
this.condition.GJAHR[0].LOW = e.detail.value
this.getSalesPlan(true)
},
handleClick(e, content, index) {
console.log('click当前索引:', e, content, index);
...
...
@@ -331,18 +499,20 @@
.main {
position: relative;
flex-direction: column;
margin-top: -164rpx;
padding: 0 16rpx;
// padding-top: 40rpx;
// background-color: #fff;
}
.scroll-area {
overflow-y: scroll;
background: #f0f4f5;
}
.middle {
background-color: #fff;
border-radius: 16rpx;
padding:
32rpx 64rpx 4
0rpx 48rpx;
padding:
0rpx 64rpx
0rpx 48rpx;
}
.text-block {
...
...
@@ -384,6 +554,8 @@
.uni-list-cell {
flex: 1;
height: 96rpx;
line-height: 96rpx;
}
.uni-list-cell-db {
...
...
@@ -397,6 +569,9 @@
.uni-input-text {
font-size: 14px;
color: #888;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.icon-arrow {
...
...
@@ -414,7 +589,7 @@
}
.planout-block-item {
margin-bottom: 32rpx
;
// margin: 32rpx 0
;
}
.scroll-item {
...
...
@@ -520,4 +695,57 @@
font-size: 12px;
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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment