Commit 19d7a9a8 authored by xiangzj's avatar xiangzj

bug修复

parent 18fb1051
...@@ -173,12 +173,12 @@ ...@@ -173,12 +173,12 @@
import { import {
apiAddressSelect apiAddressSelect
} from '@/servers/common.js' } from '@/servers/common.js'
import { import {
addressCheck, addressCheck,
regionOvs, regionOvs,
cityOvs, cityOvs,
streetOvs, streetOvs,
addressImport, addressImport,
} from '@/servers/address.js' } from '@/servers/address.js'
import noData from '@/components/nodata.nvue'; import noData from '@/components/nodata.nvue';
...@@ -787,4 +787,4 @@ ...@@ -787,4 +787,4 @@
.planout-block-item { .planout-block-item {
margin-top: 48rpx; margin-top: 48rpx;
} }
</style> </style>
...@@ -263,8 +263,9 @@ ...@@ -263,8 +263,9 @@
}, },
bindPickerTypesChange(e) { bindPickerTypesChange(e) {
console.log('bindPickerTypesChange', e.detail.value) console.log('bindPickerTypesChange', e.detail.value)
this.punishTypeSelected = this.selectDataOptions['PunishType'][e.detail.value] const idx = e.detail.value || 0
if (e.detail.value === 0) { this.punishTypeSelected = this.selectDataOptions['PunishType'][idx]
if (idx === 0) {
this.condition.punishTypes = [] this.condition.punishTypes = []
} else { } else {
this.condition.punishTypes[0] = this.punishTypeSelected.code this.condition.punishTypes[0] = this.punishTypeSelected.code
...@@ -274,8 +275,9 @@ ...@@ -274,8 +275,9 @@
}, },
bindPickerStatusChange(e) { bindPickerStatusChange(e) {
console.log('bindPickerStatusChange', e.detail.value) console.log('bindPickerStatusChange', e.detail.value)
this.orderStatusSelected = this.selectDataOptions['ProcessOrderStatus'][e.detail.value] const idx = e.detail.value || 0
if (e.detail.value === 0) { this.orderStatusSelected = this.selectDataOptions['ProcessOrderStatus'][idx]
if (idx === 0) {
this.condition.statusList = [] this.condition.statusList = []
} else { } else {
this.condition.statusList[0] = this.orderStatusSelected.code this.condition.statusList[0] = this.orderStatusSelected.code
...@@ -284,7 +286,7 @@ ...@@ -284,7 +286,7 @@
}, },
bindPickerYearChange(e) { bindPickerYearChange(e) {
console.log('bindPickerYearChange', e.detail.value) console.log('bindPickerYearChange', e.detail.value)
this.condition.year = e.detail.value this.condition.year = e.detail.value || 0
this.getProcessOrder(true) this.getProcessOrder(true)
}, },
checkDetal(item,type) { checkDetal(item,type) {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<image class="icon-address" src="@/static/image/order_quota@3x.png" mode="aspectFit"></image> <image class="icon-address" src="@/static/image/order_quota@3x.png" mode="aspectFit"></image>
<view class="cell-list-block__content"> <view class="cell-list-block__content">
<text class="cell-list-block__title">配额酒单</text> <text class="cell-list-block__title">配额酒单</text>
<text class="cell-list-block__desc">Wine List</text> <!-- <text class="cell-list-block__desc">Wine List</text> -->
</view> </view>
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image> <image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image>
</view> </view>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<image class="icon-address" src="@/static/image/order_noquota@3x.png" mode="aspectFit"></image> <image class="icon-address" src="@/static/image/order_noquota@3x.png" mode="aspectFit"></image>
<view class="cell-list-block__content"> <view class="cell-list-block__content">
<text class="cell-list-block__title">非配额酒单</text> <text class="cell-list-block__title">非配额酒单</text>
<text class="cell-list-block__desc">Wine List</text> <!-- <text class="cell-list-block__desc">Wine List</text> -->
</view> </view>
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image> <image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image>
</view> </view>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<image class="icon-address" src="@/static/image/order_group@3x.png" mode="aspectFit"></image> <image class="icon-address" src="@/static/image/order_group@3x.png" mode="aspectFit"></image>
<view class="cell-list-block__content"> <view class="cell-list-block__content">
<text class="cell-list-block__title">公关团购订单</text> <text class="cell-list-block__title">公关团购订单</text>
<text class="cell-list-block__desc">Group buying List</text> <!-- <text class="cell-list-block__desc">Group buying List</text> -->
</view> </view>
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image> <image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image>
</view> </view>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<view class="summary upload salescenter top-radius"> <view class="summary upload salescenter top-radius">
<text class="mustIcon">*</text> <text class="mustIcon">*</text>
<text class="top-date">营销中心</text> <text class="top-date">营销单元</text>
<view class="top-date-des uni-list picker-year"> <view class="top-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">
...@@ -52,33 +52,33 @@ ...@@ -52,33 +52,33 @@
<view class="text-block title-first"> <view class="text-block title-first">
<text class="middle-date title-first__text">{{index+1}}</text> <text class="middle-date title-first__text">{{index+1}}</text>
</view> </view>
<view class="text-block" v-if="item.isBigSingleProduct === 'TRUE'" <view class="text-block" style="height: auto;" @click="selectProduct(index,'inner')">
@click="selectPlanOrder(item,index)">
<view class="middle-date"> <view class="middle-date">
<text class="mustPosIcon">*</text> <text class="mustPosIcon">*</text>
<text class="middle-date">计划编号</text> <text class="middle-date">产品</text>
</view> </view>
<!-- <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">
<text class="middle-date-des">{{item.ZZFLD00002Q_TEXT}}</text> <text class="middle-date-des">{{item.DESCRIPTION}}</text>
</view> </view>
</view> </view>
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"> <image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit">
</image> </image>
</view> </view>
</view> </view>
<view class="text-block" style="height: auto;" @click="selectProduct(index,'inner')"> <view class="text-block" v-if="item.isBigSingleProduct === 'TRUE'"
@click="selectPlanOrder(item,index)">
<view class="middle-date"> <view class="middle-date">
<text class="mustPosIcon">*</text> <text class="mustPosIcon">*</text>
<text class="middle-date">产品</text> <text class="middle-date">计划编号</text>
</view> </view>
<!-- <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">
<text class="middle-date-des">{{item.DESCRIPTION}}</text> <text class="middle-date-des">{{item.ZZFLD00002Q_TEXT}}</text>
</view> </view>
</view> </view>
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"> <image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit">
...@@ -428,17 +428,52 @@ ...@@ -428,17 +428,52 @@
this.Marketing = this.selectedSalesCenter.VALUE this.Marketing = this.selectedSalesCenter.VALUE
}, },
nextStep() { nextStep() {
if (this.planinnerLists.some((item) => { if (this.salesCenterIndex === -1) {
return item.isBigSingleProduct === 'TRUE' && item.ZZFLD00002Q === ''
})) {
uni.showToast({ uni.showToast({
title: '计划编号不能为空', title: '请先选择营销中心',
duration: 2000,
icon: 'none'
});
return
}
const nameFlag = this.planinnerLists.every(function(item){
return item.DESCRIPTION
});
if (!nameFlag) {
uni.showToast({
title: '请先选择产品',
duration: 2000,
icon: 'none'
});
return
}
const planFlag = this.planinnerLists.every(function(item){
if(item.isBigSingleProduct === 'TRUE'){
return item.ZZFLD00002Q
}else{
return true
}
});
if (!planFlag) {
uni.showToast({
title: '请先选择计划编号',
duration: 2000,
icon: 'none'
});
return
}
const quantityFlag = this.planinnerLists.every(function(item){
return item.quantity
});
if (!quantityFlag) {
uni.showToast({
title: '请先填写数量',
duration: 2000, duration: 2000,
icon: 'none' icon: 'none'
}); });
return return
} }
let groupOrder = { let groupOrder = {
"baseinfo": this.groupOrder.baseinfo, "baseinfo": this.groupOrder.baseinfo,
'ITEM': this.planinnerLists, 'ITEM': this.planinnerLists,
...@@ -497,8 +532,6 @@ ...@@ -497,8 +532,6 @@
.text-block { .text-block {
overflow: hidden; overflow: hidden;
height: 96rpx;
margin-bottom: 14rpx;
border-bottom: 1px solid #f4f5f6; border-bottom: 1px solid #f4f5f6;
} }
...@@ -512,7 +545,6 @@ ...@@ -512,7 +545,6 @@
font-size: 28rpx; font-size: 28rpx;
line-height: 96rpx; line-height: 96rpx;
color: #333; color: #333;
margin-bottom: 8rpx;
margin-left: 4rpx; margin-left: 4rpx;
} }
......
...@@ -20,36 +20,37 @@ ...@@ -20,36 +20,37 @@
</view> </view>
<view class="content"> <view class="content">
<view class="todo-box block"> <view class="todo-box block">
<text class="title">常用查询</text> <text class="title">常用操作</text>
<view class="amount-block"> <view class="amount-block">
<view class="order-amount" @click="entryHandle('purchase-plan')"> <view class="order-amount" @click="goHandle('go-order')">
<view class="order-amount--wrapper"> <view class="order-amount--wrapper">
<image class="entry-icon" src="@/static/image/home_report@3x.png" mode="aspectFit"> <image class="entry-icon" src="@/static/image/order.png" mode="aspectFit">
</image> </image>
<text class="order-amount--num">销售计划</text> <text class="order-amount--num">下单</text>
</view> </view>
</view> </view>
<view class="order-amount" @click="entryHandle('my-order')"> <view class="order-amount" @click="goHandle('purchase')">
<view class="order-amount--wrapper"> <view class="order-amount--wrapper">
<image class="entry-icon" src="@/static/image/home_marketclue@3x.png" mode="aspectFit"> <image class="entry-icon" src="@/static/image/purchase.png" mode="aspectFit">
</image> </image>
<text class="order-amount--num">销售订单</text> <text class="order-amount--num">要货</text>
</view> </view>
</view> </view>
<view class="order-amount" @click="entryHandle('billing-invoice')"> <view class="order-amount" @click="entryHandle('purchase-plan')">
<view class="order-amount--wrapper"> <view class="order-amount--wrapper">
<image class="entry-icon" src="@/static/image/home_breakmission@3x.png" mode="aspectFit"> <image class="entry-icon" src="@/static/image/plan.png" mode="aspectFit">
</image> </image>
<text class="order-amount--num">账票管理</text> <text class="order-amount--num">销售计划</text>
</view> </view>
</view> </view>
<view class="order-amount" @click="entryHandle('ticket-order')"> <view class="order-amount" @click="entryHandle('my-order')">
<view class="order-amount--wrapper"> <view class="order-amount--wrapper">
<image class="entry-icon" src="@/static/image/home_breakrule@3x.png" mode="aspectFit"> <image class="entry-icon" src="@/static/image/sale.png" mode="aspectFit">
</image> </image>
<text class="order-amount--num">制票通知</text> <text class="order-amount--num">销售订</text>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<!-- <view class="notice-block block"> <!-- <view class="notice-block block">
...@@ -405,6 +406,11 @@ ...@@ -405,6 +406,11 @@
change(e) { change(e) {
this.current = e.detail.current; this.current = e.detail.current;
}, },
goHandle(path){
uni.switchTab({
url: `/pages/${path}/${path}`
})
},
entryHandle(path) { entryHandle(path) {
// uni.showToast({ // uni.showToast({
// title: '开发中...', // title: '开发中...',
...@@ -514,10 +520,9 @@ ...@@ -514,10 +520,9 @@
.content { .content {
flex: 1; flex: 1;
width: 100%; width: 100%;
padding: 32rpx 36rpx 24px;
box-sizing: border-box; box-sizing: border-box;
background: #ffffff; background: #ffffff;
border-radius: 32rpx 32rpx 0px 0px; border-radius: 20rpx 20rpx 0px 0px;
z-index: 10; z-index: 10;
} }
...@@ -530,20 +535,26 @@ ...@@ -530,20 +535,26 @@
font-size: 14px; font-size: 14px;
color: #333; color: #333;
font-weight: 600; font-weight: 600;
margin-bottom: 24rpx; margin-bottom: 10rpx;
padding: 10rpx 0 0 10rpx;
} }
} }
.amount-block { .amount-block {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
margin-top: 8px; margin: 16rpx 10rpx 40rpx;
margin-bottom: 8px;
} }
.order-amount { .order-amount {
flex: 1; flex: 1;
height: 70px; box-shadow: 3px 1px 5px rgba(0, 0, 0, 0.15);
background: #fdfdfd;
padding: 20rpx 16rpx 20rpx;
border-radius: 4px;
margin: 0 5px;
// height: 70px;
} }
.order-amount--wrapper { .order-amount--wrapper {
......
...@@ -421,7 +421,7 @@ ...@@ -421,7 +421,7 @@
.icon-arrow { .icon-arrow {
position: absolute; position: absolute;
right: 0; right: 0;
top: 16px; // top: 16px;
width: 12rpx; width: 12rpx;
height: 20rpx; height: 20rpx;
z-index: 10; z-index: 10;
......
...@@ -94,13 +94,17 @@ ...@@ -94,13 +94,17 @@
<text class="detal-item-label">喷码单位</text> <text class="detal-item-label">喷码单位</text>
<text class="detal-item-value detal-item-value2">{{newsItem.spurtCodeUnitName}}</text> <text class="detal-item-value detal-item-value2">{{newsItem.spurtCodeUnitName}}</text>
</view> </view>
<view class="block-detal-item">
<text class="detal-item-label">联系人</text>
<text class="detal-item-value detal-item-value2">{{newsItem.contacPerson}}</text>
</view>
<view class="block-detal-item"> <view class="block-detal-item">
<text class="detal-item-label">联系人电话</text> <text class="detal-item-label">联系人电话</text>
<text class="detal-item-value detal-item-value2">{{newsItem.contactNumber}}</text> <text class="detal-item-value detal-item-value2">{{newsItem.contactNumber}}</text>
</view> </view>
<view class="block-detal-item"> <view class="block-detal-item">
<text class="detal-item-label">收货地址</text> <text class="detal-item-label">收货地址</text>
<text class="detal-item-value detal-item-value2">{{newsItem.receiveAddress}}</text> <text class="detal-item-value detal-item-value3">{{newsItem.receiveAddress}}</text>
</view> </view>
<view class="block-detal-item"> <view class="block-detal-item">
<text class="detal-item-label">备注</text> <text class="detal-item-label">备注</text>
...@@ -397,7 +401,13 @@ ...@@ -397,7 +401,13 @@
// flex: 2; // flex: 2;
// text-align: left; // text-align: left;
} }
.detal-item-value3{
padding-left: 60rpx;
font-size: 24rpx;
width: 200%;
flex: 2;
text-align: left;
}
.receive-info { .receive-info {
position: relative; position: relative;
display: flex; display: flex;
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</view> </view>
<view class="summary upload salescenter top-radius"> <view class="summary upload salescenter top-radius">
<text class="mustIcon">*</text> <text class="mustIcon">*</text>
<text class="top-date">营销中心</text> <text class="top-date">营销单元</text>
<view class="top-date-des uni-list picker-year"> <view class="top-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">
...@@ -339,7 +339,7 @@ ...@@ -339,7 +339,7 @@
}); });
} else { } else {
uni.showToast({ uni.showToast({
title: '请先选择营销中心', title: '请先选择营销单元',
duration: 2000, duration: 2000,
icon: 'none' icon: 'none'
}); });
...@@ -361,7 +361,7 @@ ...@@ -361,7 +361,7 @@
} }
this.planinnerLists.unshift(product) this.planinnerLists.unshift(product)
}, },
// 选择营销中心 // 选择营销单元
bindPickerSalesCenterChange(e) { bindPickerSalesCenterChange(e) {
console.log('picker发送选择改变,携带值为', e.detail.value) console.log('picker发送选择改变,携带值为', e.detail.value)
this.salesCenterIndex = e.detail.value this.salesCenterIndex = e.detail.value
...@@ -372,7 +372,29 @@ ...@@ -372,7 +372,29 @@
nextStep() { nextStep() {
if (this.salesCenterIndex === -1) { if (this.salesCenterIndex === -1) {
uni.showToast({ uni.showToast({
title: '请先选择营销中心', title: '请先选择营销单元',
duration: 2000,
icon: 'none'
});
return
}
const nameFlag = this.planinnerLists.every(function(item){
return item.DESCRIPTION
});
if (!nameFlag) {
uni.showToast({
title: '请先选择产品',
duration: 2000,
icon: 'none'
});
return
}
const quantityFlag = this.planinnerLists.every(function(item){
return item.quantity
});
if (!quantityFlag) {
uni.showToast({
title: '请先填写数量',
duration: 2000, duration: 2000,
icon: 'none' icon: 'none'
}); });
...@@ -428,8 +450,6 @@ ...@@ -428,8 +450,6 @@
.text-block { .text-block {
overflow: hidden; overflow: hidden;
height: 96rpx;
margin-bottom: 14rpx;
border-bottom: 1px solid #f4f5f6; border-bottom: 1px solid #f4f5f6;
} }
...@@ -443,7 +463,6 @@ ...@@ -443,7 +463,6 @@
font-size: 28rpx; font-size: 28rpx;
line-height: 96rpx; line-height: 96rpx;
color: #333; color: #333;
margin-bottom: 8rpx;
margin-left: 4rpx; margin-left: 4rpx;
} }
......
...@@ -63,8 +63,8 @@ ...@@ -63,8 +63,8 @@
<text class="detal-item-value">{{item.NET_PRICE}}</text> <text class="detal-item-value">{{item.NET_PRICE}}</text>
</view> </view>
<view class="block-detal-item block-detal-item-last"> <view class="block-detal-item block-detal-item-last">
<text class="detal-item-label"></text> <text class="detal-total-label"></text>
<view class="detal-item-value"> <view class="detal-total-value">
<text class="item-value-intotal">小计:</text> <text class="item-value-intotal">小计:</text>
<text class="item-value-intotal-num">{{item.NET_VALUE}}</text> <text class="item-value-intotal-num">{{item.NET_VALUE}}</text>
</view> </view>
...@@ -399,6 +399,7 @@ ...@@ -399,6 +399,7 @@
.detal-item-label { .detal-item-label {
color: #999; color: #999;
font-size: 24rpx; font-size: 24rpx;
flex: 1;
} }
.detal-item-file { .detal-item-file {
...@@ -409,6 +410,18 @@ ...@@ -409,6 +410,18 @@
.detal-item-value { .detal-item-value {
color: #333; color: #333;
font-size: 28rpx; font-size: 28rpx;
width: 200%;
flex: 2;
text-align: right;
justify-content: end;
}
.detal-total-label {
color: #999;
font-size: 24rpx;
}
.detal-total-value {
color: #333;
font-size: 28rpx;
} }
.item-value-intotal { .item-value-intotal {
......
...@@ -71,8 +71,8 @@ ...@@ -71,8 +71,8 @@
<text class="detal-item-value">{{item.NET_PRICE}}</text> <text class="detal-item-value">{{item.NET_PRICE}}</text>
</view> </view>
<view class="block-detal-item block-detal-item-last"> <view class="block-detal-item block-detal-item-last">
<text class="detal-item-label"></text> <text class="detal-total-label"></text>
<view class="detal-item-value"> <view class="detal-total-value">
<text class="item-value-intotal">小计:</text> <text class="item-value-intotal">小计:</text>
<text class="item-value-intotal-num">{{item.NET_VALUE}}</text> <text class="item-value-intotal-num">{{item.NET_VALUE}}</text>
</view> </view>
...@@ -110,8 +110,8 @@ ...@@ -110,8 +110,8 @@
<text class="detal-item-value">{{item.NET_PRICE}}</text> <text class="detal-item-value">{{item.NET_PRICE}}</text>
</view> </view>
<view class="block-detal-item block-detal-item-last"> <view class="block-detal-item block-detal-item-last">
<text class="detal-item-label"></text> <text class="detal-total-label"></text>
<view class="detal-item-value"> <view class="detal-total-value">
<text class="item-value-intotal">小计:</text> <text class="item-value-intotal">小计:</text>
<text class="item-value-intotal-num">{{item.NET_VALUE}}</text> <text class="item-value-intotal-num">{{item.NET_VALUE}}</text>
</view> </view>
...@@ -225,7 +225,7 @@ ...@@ -225,7 +225,7 @@
this.ishowReceiveDetail = !this.ishowReceiveDetail this.ishowReceiveDetail = !this.ishowReceiveDetail
if (this.ishowReceiveDetail === true) { if (this.ishowReceiveDetail === true) {
let len = this.ITEM_INNER.length + this.ITEM_OUTER.length let len = this.ITEM_INNER.length + this.ITEM_OUTER.length
this.receiveInfoHeight = `${350*len}` this.receiveInfoHeight = len - 1 ===0 ? '380' : 350*len
} else { } else {
this.receiveInfoHeight = '132' this.receiveInfoHeight = '132'
} }
...@@ -429,6 +429,7 @@ ...@@ -429,6 +429,7 @@
.detal-item-label { .detal-item-label {
color: #999; color: #999;
font-size: 24rpx; font-size: 24rpx;
flex: 1;
} }
.detal-item-file { .detal-item-file {
...@@ -439,6 +440,19 @@ ...@@ -439,6 +440,19 @@
.detal-item-value { .detal-item-value {
color: #333; color: #333;
font-size: 28rpx; font-size: 28rpx;
width: 200%;
flex: 2;
text-align: right;
justify-content: end;
font-size: 28rpx;
}
.detal-total-label {
color: #999;
font-size: 24rpx;
}
.detal-total-value {
color: #333;
font-size: 28rpx;
} }
.item-value-intotal { .item-value-intotal {
......
...@@ -110,8 +110,8 @@ ...@@ -110,8 +110,8 @@
<text class="detal-item-value">{{item.NET_PRICE}}</text> <text class="detal-item-value">{{item.NET_PRICE}}</text>
</view> </view>
<view class="block-detal-item block-detal-item-last"> <view class="block-detal-item block-detal-item-last">
<text class="detal-item-label"></text> <text class="detal-total-label"></text>
<view class="detal-item-value"> <view class="detal-total-value">
<text class="item-value-intotal">小计:</text> <text class="item-value-intotal">小计:</text>
<text class="item-value-intotal-num">{{item.NET_VALUE}}</text> <text class="item-value-intotal-num">{{item.NET_VALUE}}</text>
</view> </view>
...@@ -462,6 +462,7 @@ ...@@ -462,6 +462,7 @@
.detal-item-label { .detal-item-label {
color: #999; color: #999;
font-size: 24rpx; font-size: 24rpx;
flex: 1;
} }
.detal-item-file { .detal-item-file {
...@@ -472,6 +473,18 @@ ...@@ -472,6 +473,18 @@
.detal-item-value { .detal-item-value {
color: #333; color: #333;
font-size: 28rpx; font-size: 28rpx;
width: 200%;
flex: 2;
text-align: right;
justify-content: end;
}
.detal-total-label {
color: #999;
font-size: 24rpx;
}
.detal-total-value {
color: #333;
font-size: 28rpx;
} }
.item-value-intotal { .item-value-intotal {
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<view class="middle view planout-block-item"> <view class="middle view planout-block-item">
<view class="text-block"> <view class="text-block">
<text class="middle-date">{{item.OBJECT_ID}}</text> <text class="middle-date">{{item.OBJECT_ID}}</text>
<text class="middle-date-des">{{item.DESCRIPTION}}</text> <text class="middle-pro-des">{{item.DESCRIPTION}}</text>
</view> </view>
<view class="text-block"> <view class="text-block">
<text class="middle-date">制票通知单</text> <text class="middle-date">制票通知单</text>
...@@ -420,7 +420,7 @@ ...@@ -420,7 +420,7 @@
} }
.middle-date-des { .middle-date-des {
flex: 3; flex: 2;
font-size: 28rpx; font-size: 28rpx;
line-height: 96rpx; line-height: 96rpx;
height: 96rpx; height: 96rpx;
...@@ -429,6 +429,15 @@ ...@@ -429,6 +429,15 @@
text-overflow: ellipsis; text-overflow: ellipsis;
color: #888; color: #888;
} }
.middle-pro-des {
display: flex;
flex: 2;
font-size: 28rpx;
// height: 96rpx;
color: #888;
margin-top: 10rpx;
align-items: center;
}
.middle-date-select { .middle-date-select {
color: #888; color: #888;
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</view> </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-address 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="bindPickerChange($event,'channelType')" :value="orderItem.channelsType" <picker class="picker-block" @change="bindPickerChange($event,'channelType')" :value="orderItem.channelsType"
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
</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>
<input class="middle-date-des" type="text" v-model="ele.wantQuantity" placeholder="请输入" /> <input class="middle-date-address" type="text" v-model="ele.wantQuantity" placeholder="请输入" />
</view> </view>
</view> </view>
</uni-cell> </uni-cell>
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
scrollTop: 0, scrollTop: 0,
deliveryPlanArr : [], deliveryPlanArr : [],
ticketTypeArr : [], ticketTypeArr : [],
channelTypeArr : [], // channelTypeArr : [],
marketPlaceArr : [], marketPlaceArr : [],
} }
}, },
...@@ -154,6 +154,10 @@ ...@@ -154,6 +154,10 @@
return {} return {}
} }
}, },
channelTypeArr: {
type: Array,
default: () => []
}
}, },
computed: { computed: {
navHeight() { navHeight() {
...@@ -191,9 +195,9 @@ ...@@ -191,9 +195,9 @@
// this.getProdDeliveryPlan() // this.getProdDeliveryPlan()
}, },
watch:{ watch:{
'orderItem.planType':function(res,res1){ // 'orderItem.planType':function(res,res1){
res && this.getChannelType() // res && this.getChannelType()
} // }
}, },
methods: { methods: {
async getProdDeliveryPlan(){ async getProdDeliveryPlan(){
...@@ -236,6 +240,25 @@ ...@@ -236,6 +240,25 @@
} }
}, },
nextStep() { nextStep() {
if (!this.orderItem.channelTypeName) {
uni.showToast({
title: '请先选择渠道',
duration: 2000,
icon: 'none'
});
return
}
const numFlag = this.orderItem.wantGoodsDetailList.every(function(item){
return item.wantQuantity
});
if (!numFlag) {
uni.showToast({
title: '请先填写要货数量',
duration: 2000,
icon: 'none'
});
return
}
this.$emit('click', 'purchaseReceive') this.$emit('click', 'purchaseReceive')
// uni.navigateTo({ // uni.navigateTo({
// url: `/pages/purchase-receive/purchase-receive?order=${JSON.stringify(this.orderItem)}` // url: `/pages/purchase-receive/purchase-receive?order=${JSON.stringify(this.orderItem)}`
...@@ -244,6 +267,9 @@ ...@@ -244,6 +267,9 @@
async getChannelType(){ async getChannelType(){
const res = await getChannelType({'salePlan': this.orderItem.planType}) const res = await getChannelType({'salePlan': this.orderItem.planType})
this.channelTypeArr = res.data this.channelTypeArr = res.data
if (!this.channelTypeArr.length) {
this.channelTypeArr = [{ value: 'S', name: '社会化渠道' }]
}
}, },
getSelectDictDataOrigin(dictcode) { getSelectDictDataOrigin(dictcode) {
querySysDictionaryDetailsByCode({'code': dictcode}) querySysDictionaryDetailsByCode({'code': dictcode})
...@@ -330,7 +356,7 @@ ...@@ -330,7 +356,7 @@
.text-block { .text-block {
overflow: hidden; overflow: hidden;
height: 96rpx; height: 96rpx;
margin-bottom: 14rpx; // margin-bottom: 14rpx;
border-bottom: 1px solid #f4f5f6; border-bottom: 1px solid #f4f5f6;
} }
...@@ -342,23 +368,23 @@ ...@@ -342,23 +368,23 @@
.middle-date { .middle-date {
flex: 2; flex: 2;
font-size: 28rpx; font-size: 28rpx;
line-height: 96rpx;
color: #999; color: #999;
margin-bottom: 8rpx; margin-bottom: 8rpx;
padding-top: 30rpx;
} }
.middle-date-des { .middle-date-des {
flex: 3; flex: 3;
font-size: 28rpx; font-size: 28rpx;
height: 96rpx; height: 96rpx;
line-height: 96rpx;
color: $text-base-color; color: $text-base-color;
padding-top: 30rpx;
justify-content: start;
} }
.picker-year { .picker-year {
position: relative; position: relative;
align-items: center; align-items: center;
padding-left: 14rpx;
} }
.uni-list-cell { .uni-list-cell {
...@@ -424,4 +450,11 @@ ...@@ -424,4 +450,11 @@
vertical-align: middle; vertical-align: middle;
margin-top: 10rpx; margin-top: 10rpx;
} }
.middle-date-address {
flex: 3;
font-size: 28rpx;
height: 96rpx;
line-height: 96rpx;
color: $text-base-color;
}
</style> </style>
...@@ -268,7 +268,7 @@ ...@@ -268,7 +268,7 @@
// }, 600); // }, 600);
// }, // },
created() { created() {
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.getSelectDictDataOrigin('A0001','PunishType') this.getSelectDictDataOrigin('A0001','PunishType')
...@@ -758,4 +758,4 @@ ...@@ -758,4 +758,4 @@
color: #fff; color: #fff;
font-size: 34rpx; font-size: 34rpx;
} }
</style> </style>
...@@ -46,38 +46,38 @@ ...@@ -46,38 +46,38 @@
</view> </view>
</view> </view>
</view> </view>
<view class="middle view"> <view class="middle view address-view">
<view class="text-block" v-if="orderItem.isShunt - 1 === 0" @click="handleShuntAdress"> <view class="text-address" v-if="orderItem.isShunt - 1 === 0" @click="handleShuntAdress">
<text class="middle-date">分流收货单位</text> <text class="middle-date-unit">分流收货单位</text>
<view class="middle-date-des uni-list picker-year" > <view class="middle-date-des-unit 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">
<text class="uni-input">{{orderItem.shuntReceiveUnitName}}</text> <text class="middle-date-address-text">{{orderItem.shuntReceiveUnitName}}</text>
</view> </view>
</view> </view>
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode=""></image> <image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode=""></image>
</view> </view>
</view> </view>
<view class="text-block"> <view class="text-address">
<text class="middle-date">收货单位</text> <text class="middle-date-unit">收货单位</text>
<view class="middle-date-des uni-list picker-year"> <view class="middle-date-des-unit 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="bindPickerChange($event,'receive')" :value="orderItem.receiveUnitName" <picker class="picker-block" @change="bindPickerChange($event,'receive')" :value="orderItem.receiveUnitName"
range-key='partner_name' mode="selector" :range="receiveUnitArr"> range-key='partner_name' mode="selector" :range="receiveUnitArr">
<text class="uni-input">{{orderItem.receiveUnitName}}</text> <text class="middle-date-address-text">{{orderItem.receiveUnitName}}</text>
</picker> </picker>
</view> </view>
</view> </view>
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode=""></image> <image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode=""></image>
</view> </view>
</view> </view>
<view class="text-block"> <view class="text-address">
<text class="middle-date">喷码单位</text> <text class="middle-date-unit">喷码单位</text>
<view class="middle-date-des uni-list picker-year" @click="handleCustomer"> <view class="middle-date-des-unit uni-list picker-year" @click="handleCustomer">
<view class="uni-list-cell"> <view class="uni-list-cell">
<view class="uni-list-cell-db"> <view class="uni-list-cell-db">
<text class="uni-input">{{orderItem.spurtCodeUnitName}}</text> <text class="middle-date-address-text">{{orderItem.spurtCodeUnitName}}</text>
</view> </view>
</view> </view>
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode=""></image> <image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode=""></image>
...@@ -93,9 +93,9 @@ ...@@ -93,9 +93,9 @@
<text class="middle-date">联系人电话</text> <text class="middle-date">联系人电话</text>
<input class="middle-date-des" type="text" v-model="orderItem.contactNumber" placeholder="请输入" /> <input class="middle-date-des" type="text" v-model="orderItem.contactNumber" placeholder="请输入" />
</view> </view>
<view class="text-block"> <view class="text-address">
<text class="middle-date">收货地址</text> <text class="middle-date-add">收货地址</text>
<input class="middle-date-des" type="text" v-model="orderItem.receiveAddress" placeholder="请输入" /> <text class="middle-date-des-add">{{orderItem.receiveAddress}}</text>
</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>
...@@ -425,6 +425,32 @@ ...@@ -425,6 +425,32 @@
this.$emit('click', 'purchaseMain') this.$emit('click', 'purchaseMain')
}, },
async nextStep() { async nextStep() {
if(this.orderItem.isShunt - 1 === 0){
if (!this.orderItem.shuntDealerName) {
uni.showToast({
title: '请先选择分流经销商',
duration: 2000,
icon: 'none'
});
return
}
if (!this.orderItem.shuntTypeName) {
uni.showToast({
title: '请先选择分流渠道',
duration: 2000,
icon: 'none'
});
return
}
if (!this.orderItem.shuntReceiveUnitName) {
uni.showToast({
title: '请先选择分流收货单位',
duration: 2000,
icon: 'none'
});
return
}
}
try { try {
const params = JSON.parse(JSON.stringify(this.orderItem)) const params = JSON.parse(JSON.stringify(this.orderItem))
params.wantGoodsDetailList = JSON.stringify(params.wantGoodsDetailList) params.wantGoodsDetailList = JSON.stringify(params.wantGoodsDetailList)
...@@ -501,11 +527,18 @@ ...@@ -501,11 +527,18 @@
padding: 32rpx 64rpx 0 48rpx; padding: 32rpx 64rpx 0 48rpx;
margin-bottom: 16rpx; margin-bottom: 16rpx;
} }
.address-view{
flex: 1;
}
.text-block { .text-block {
overflow: hidden; overflow: hidden;
height: 96rpx; // height: 96rpx;
margin-bottom: 14rpx; // margin-bottom: 14rpx;
border-bottom: 1px solid #f4f5f6;
}
.text-address {
overflow: hidden;
border-bottom: 1px solid #f4f5f6; border-bottom: 1px solid #f4f5f6;
} }
...@@ -519,7 +552,6 @@ ...@@ -519,7 +552,6 @@
font-size: 28rpx; font-size: 28rpx;
line-height: 96rpx; line-height: 96rpx;
color: #999; color: #999;
margin-bottom: 8rpx;
} }
.middle-date-des { .middle-date-des {
...@@ -529,11 +561,28 @@ ...@@ -529,11 +561,28 @@
line-height: 96rpx; line-height: 96rpx;
color: $text-base-color; color: $text-base-color;
} }
.middle-date-address {
color: #333;
font-size: 28rpx;
flex: 3;
padding-top: 10rpx;
justify-content: start;
font-size: 28rpx;
height: 96rpx;
}
.middle-date-address-text {
color: #333;
font-size: 28rpx;
flex: 1;
justify-content: start;
font-size: 28rpx;
height: 70rpx;
line-height: 34rpx;
align-items: center;
}
.picker-year { .picker-year {
position: relative; position: relative;
align-items: center; align-items: center;
padding-left: 14rpx;
} }
.uni-list-cell { .uni-list-cell {
...@@ -733,4 +782,36 @@ ...@@ -733,4 +782,36 @@
background: #ff1d32; background: #ff1d32;
border: 1px solid #ff1d32; border: 1px solid #ff1d32;
} }
.middle-date-unit {
flex: 2;
font-size: 28rpx;
color: #999;
margin-bottom: 8rpx;
padding-top: 30rpx;
}
.middle-date-des-unit {
flex: 3;
font-size: 28rpx;
min-height: 96rpx;
color: $text-base-color;
padding-top: 30rpx;
justify-content: start;
}
.middle-date-add {
flex: 2;
font-size: 28rpx;
color: #999;
margin-bottom: 8rpx;
padding-top: 30rpx;
}
.middle-date-des-add {
flex: 3;
font-size: 28rpx;
min-height: 124rpx;
color: $text-base-color;
padding-top: 30rpx;
justify-content: start;
}
</style> </style>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="apply-history view" :style="winHeight"> <view class="apply-history view" :style="winHeight">
<view class="status_bar" :style="navHeight"></view> <view class="status_bar" :style="navHeight"></view>
<view class="apply-history-wrapper view"> <view class="apply-history-wrapper view">
<component :style="componentHeight" :orderItem='detail' :is="currentTabComponent" @click="changeComponent" @submit="submit"></component> <component :style="componentHeight" :orderItem='detail' :channelTypeArr='channelTypeArr' :is="currentTabComponent" @click="changeComponent" @submit="submit"></component>
</view> </view>
</view> </view>
</template> </template>
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
import { import {
mapState mapState
} from 'vuex' } from 'vuex'
import { initAppWantGoods } from '@/servers/purchaseList.js' import { initAppWantGoods, getChannelType } from '@/servers/purchaseList.js'
import purchaseMain from '../purchase-main/purchase-main' import purchaseMain from '../purchase-main/purchase-main'
import purchaseReceive from '../purchase-receive/purchase-receive' import purchaseReceive from '../purchase-receive/purchase-receive'
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
}, },
data() { data() {
return { return {
channelTypeArr: [],
currentTabComponent: 'purchaseMain', currentTabComponent: 'purchaseMain',
topHeight: '', topHeight: '',
detail: {}, detail: {},
...@@ -118,10 +119,18 @@ ...@@ -118,10 +119,18 @@
this.getDetail() this.getDetail()
}, },
methods: { methods: {
async getChannelType(){
const res = await getChannelType({'salePlan': this.detail.planType})
this.channelTypeArr = res.data
if (!this.channelTypeArr.length) {
this.channelTypeArr = [{ value: 'S', name: '社会化渠道' }]
}
},
async getDetail(){ async getDetail(){
const res = await initAppWantGoods(this.orderItem) const res = await initAppWantGoods(this.orderItem)
for(let k in res.data){res.data[k] = res.data[k]===null?'':res.data[k]} for(let k in res.data){res.data[k] = res.data[k]===null?'':res.data[k]}
this.detail = {'shuntTypeName': ' ','shuntName': ' ','channelTypeName': '',...res.data} this.detail = {'shuntTypeName': ' ','shuntName': ' ','channelTypeName': '',...res.data}
this.getChannelType()
}, },
changeComponent(com) { changeComponent(com) {
this.currentTabComponent = com; this.currentTabComponent = com;
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<text class="item-block-value">{{item.infTypeTextView}}</text> <text class="item-block-value">{{item.infTypeTextView}}</text>
</view> </view>
<view class="item-block item-block-code"> <view class="item-block item-block-code">
<text class="item-block-label">营销中心</text> <text class="item-block-label">营销单元</text>
<text class="item-block-value">{{item.zzfld000001TextView}}</text> <text class="item-block-value">{{item.zzfld000001TextView}}</text>
</view> </view>
<view class="item-block item-block-code"> <view class="item-block item-block-code">
......
This diff is collapsed.
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<view class="main" :style="mainHeight"> <view class="main" :style="mainHeight">
<view class="middle view planout-block-item"> <view class="middle view planout-block-item">
<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">
<view class="uni-list-cell"> <view class="uni-list-cell">
<view class="uni-list-cell-db"> <view class="uni-list-cell-db">
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</view> </view>
</view> </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">
<view class="uni-list-cell"> <view class="uni-list-cell">
<view class="uni-list-cell-db"> <view class="uni-list-cell-db">
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
<text class="loading-more-text">{{loadingText}}</text> <text class="loading-more-text">{{loadingText}}</text>
</view> </view>
</cell> </cell>
<view class="planout-block-item__last"> </view> <!-- <view class="planout-block-item__last"> </view> -->
</list> </list>
<no-data v-if="lists.length === 0"></no-data> <no-data v-if="lists.length === 0"></no-data>
</view> </view>
...@@ -408,7 +408,7 @@ ...@@ -408,7 +408,7 @@
.icon-arrow { .icon-arrow {
position: absolute; position: absolute;
right: 0; right: 0;
top: 16px; // top: 16px;
width: 12rpx; width: 12rpx;
height: 20rpx; height: 20rpx;
z-index: 10; z-index: 10;
......
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