Commit e6829ce4 authored by chuan.liu's avatar chuan.liu

制票订单处理 销售订单处理

parent 0a5a68b7
...@@ -77,20 +77,20 @@ ...@@ -77,20 +77,20 @@
tabList: [{ tabList: [{
id: "tab01", id: "tab01",
name: '全部', name: '全部',
newsid: 0 newsid: ''
}, { }, {
id: "tab02", id: "tab02",
name: '配额', name: '配额',
newsid: 23 newsid: 'ZS01'
}, { }, {
id: "tab03", id: "tab03",
name: '非配额', name: '非配额',
newsid: 223 newsid: 'ZS02'
}, },
{ {
id: "tab04", id: "tab04",
name: '公关团购', name: '公关团购',
newsid: 224 newsid: 'ZS02'
} }
], ],
tabIndex: 0, tabIndex: 0,
......
<template> <template>
<view class="order view"> <view class="order view">
<view class="top"> <view class="top">
<text class="title-no">订单编号:TP10000021</text> <text class="title-no">订单编号:{{newsItem.object_id}}</text>
<view class="title-info"> <view class="title-info">
<button class="title-info__status title-info__status-done" type="default"><text <button class="title-info__status title-info__status-done" type="default"><text
class="item-block-btn__text">待审批</text></button> class="item-block-btn__text">{{newsItem.status_text}}</text></button>
</view> </view>
</view> </view>
<view class="middle view"> <view class="middle view">
<view class="middle-title"> <view class="middle-title">
<text class="middle-title__text">非配额订单</text> <text class="middle-title__text">{{newsItem.process_type_text}}</text>
</view> </view>
<view class="text-block-box"> <view class="text-block-box">
<view class="text-block text-block-last"> <view class="text-block text-block-last">
<text class="middle-date">2021-08-06 05:14</text> <text class="middle-date">{{newsItem.posting_date}}</text>
<text class="middle-date-des">下单日期</text> <text class="middle-date-des">下单日期</text>
</view> </view>
<view class="text-block text-block-last"> <view class="text-block text-block-last">
<view class="middle-date-right"> <view class="middle-date-right">
<text class="middle-date">¥5000</text> <text class="middle-date">{{newsItem.all_price}}</text>
</view> </view>
<text class="middle-date-des middle-date-right">金额</text> <text class="middle-date-des middle-date-right">金额</text>
</view> </view>
...@@ -83,7 +83,6 @@ ...@@ -83,7 +83,6 @@
} }
.title-info__status { .title-info__status {
width: 120rpx;
height: 48rpx; height: 48rpx;
line-height: 48rpx; line-height: 48rpx;
background: #f61d30; background: #f61d30;
...@@ -102,13 +101,13 @@ ...@@ -102,13 +101,13 @@
background: #f8f8f8; background: #f8f8f8;
color: #888888; color: #888888;
border: 1px solid #f8f8f8; border: 1px solid #f8f8f8;
} }
.item-block-btn__text { .item-block-btn__text {
height: 48rpx; height: 48rpx;
line-height: 48rpx; line-height: 48rpx;
font-size: 12px; font-size: 12px;
color: #888888; color: #888888;
} }
.middle { .middle {
...@@ -153,7 +152,7 @@ ...@@ -153,7 +152,7 @@
.middle-date-des { .middle-date-des {
font-size: 24rpx; font-size: 24rpx;
color: #999; color: #999;
} }
.text-block-box { .text-block-box {
...@@ -164,7 +163,7 @@ ...@@ -164,7 +163,7 @@
.middle-date-right { .middle-date-right {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
text-align: right; text-align: right;
} }
</style> </style>
This diff is collapsed.
...@@ -5,63 +5,64 @@ ...@@ -5,63 +5,64 @@
<view class="main"> <view class="main">
<view class="order-main view"> <view class="order-main view">
<view class="top"> <view class="top">
<text class="title-no">订单编号:TP10000021</text> <text class="title-no">订单编号:{{INFO.OBJECT_ID}}</text>
<view class="title-info"> <view class="title-info">
<button class="title-info__status title-info__status-done" type="default">待审批</button> <button class="title-info__status title-info__status-done"
type="default">{{INFO.STATUS_TEXT}}</button>
</view> </view>
</view> </view>
<view class="order-main-middle view"> <view class="order-main-middle view">
<view class="middle-title"> <view class="middle-title">
<text class="middle-title__text">非配额订单</text> <text class="middle-title__text">{{INFO.PROCESS_TYPE_TEXT}}</text>
</view> </view>
<view class="text-block-box"> <view class="text-block-box">
<view class="text-block text-block-last"> <view class="text-block text-block-last">
<text class="middle-date">2021-08-06 05:14</text> <text class="middle-date">{{INFO.POSTING_DATE}}</text>
<text class="middle-date-des">下单日期</text> <text class="middle-date-des">下单日期</text>
</view> </view>
<view class="text-block text-block-last"> <view class="text-block text-block-last">
<view class="middle-date-right"> <view class="middle-date-right">
<text class="middle-date">¥5000</text> <text class="middle-date">{{INFO.OBJECT_ID}}</text>
</view> </view>
<text class="middle-date-des middle-date-right">金额</text> <text class="middle-date-des middle-date-right">金额</text>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view class="order-middle view" :class="{'order-middle-auto':ishowReceiveDetail}"> <view class="order-middle view" :class="{'order-middle-auto':ishowReceiveDetail}">
<view class="middle view"> <view class="middle view" v-for="(item,index) in ITEM" :key="index">
<view class="item-block item-block-name"> <view class="item-block item-block-name">
<text class="item-block-label">电商配额酒年度计划(1-5月)</text> <text class="item-block-label">{{item.ZZFLD000005_Z1}}</text>
</view> </view>
<view class="block-detal"> <view class="block-detal">
<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">1618五粮液 500ml*6</text> <text class="detal-item-value">{{item.DESCRIPTION}}</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">25</text> <text class="detal-item-value">{{item.ZZFLD000009}}</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">25</text> <text class="detal-item-value">{{item.ZZFLD00002W}}</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">¥880</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-item-label"></text>
<view class="detal-item-value"> <view class="detal-item-value">
<text class="item-value-intotal">小计:</text> <text class="item-value-intotal">小计:</text>
<text class="item-value-intotal-num">¥20,000.00</text> <text class="item-value-intotal-num">{{item.NET_VALUE}}</text>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view class="middle view"> <!-- <view class="middle view">
<view class="item-block item-block-name"> <view class="item-block item-block-name">
<text class="item-block-label">电商配额酒年度计划(1-5月)</text> <text class="item-block-label">电商配额酒年度计划(1-5月)</text>
</view> </view>
...@@ -90,8 +91,8 @@ ...@@ -90,8 +91,8 @@
</view> </view>
</view> </view>
</view> </view>
</view> </view> -->
<view class="float-btn-block"> <view class="float-btn-block">
<view class="float-btn" @click="handleShowReceiveDetail"> <view class="float-btn" @click="handleShowReceiveDetail">
<text class="float-btn__text">{{ishowReceiveDetail?'收起':'展示完整信息'}}</text> <text class="float-btn__text">{{ishowReceiveDetail?'收起':'展示完整信息'}}</text>
...@@ -99,9 +100,9 @@ ...@@ -99,9 +100,9 @@
src="@/static/image/arrow_up@3x.png" mode="aspectFit"></image> src="@/static/image/arrow_up@3x.png" mode="aspectFit"></image>
</view> </view>
</view> </view>
</view> </view>
<view class="order-bottom view"> <view class="order-bottom view">
<view class="middle view"> <view class="middle view">
<view class="item-block item-block-name"> <view class="item-block item-block-name">
...@@ -121,7 +122,7 @@ ...@@ -121,7 +122,7 @@
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</template> </template>
...@@ -131,10 +132,20 @@ ...@@ -131,10 +132,20 @@
mapState mapState
} from 'vuex' } from 'vuex'
import {
apiGetSalesOrderDetail
} from '@/servers/salesOrder.js'
export default { export default {
data() { data() {
return { return {
ishowReceiveDetail:false ishowReceiveDetail: false,
orderItem: {},
orderDetail: {
ITEM: [],
INFO: {},
ATTACHMENT: []
}
} }
}, },
computed: { computed: {
...@@ -144,8 +155,28 @@ ...@@ -144,8 +155,28 @@
'height': `${this.sysinfo.safeArea.top + 44}px` 'height': `${this.sysinfo.safeArea.top + 44}px`
} }
}, },
ITEM() {
return this.orderDetail.ITEM || []
},
INFO() {
return this.orderDetail.INFO || {}
},
ATTACHMENT() {
return this.orderDetail.ATTACHMENT || []
}
},
onLoad(option) {
this.orderItem = JSON.parse(option.order)
this.getOrderDetail()
}, },
methods: { methods: {
async getOrderDetail() {
const params = {
OBJECT_ID: this.orderItem.object_id
}
const res = await apiGetSalesOrderDetail(params)
this.orderDetail = res.DATA
},
handleShowReceiveDetail() { handleShowReceiveDetail() {
this.ishowReceiveDetail = !this.ishowReceiveDetail this.ishowReceiveDetail = !this.ishowReceiveDetail
}, },
...@@ -178,7 +209,7 @@ ...@@ -178,7 +209,7 @@
margin-top: -164rpx; margin-top: -164rpx;
padding: 0 16rpx; padding: 0 16rpx;
} }
.order-main { .order-main {
flex: 1; flex: 1;
background: #ffffff; background: #ffffff;
...@@ -186,104 +217,104 @@ ...@@ -186,104 +217,104 @@
padding-top: 30rpx; padding-top: 30rpx;
margin-bottom: 16rpx; margin-bottom: 16rpx;
} }
.top { .top {
height: 72rpx; height: 72rpx;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 0 48rpx; padding: 0 48rpx;
} }
.title-no { .title-no {
font-size: 24rpx; font-size: 24rpx;
color: #555555; color: #555555;
} }
.title-info { .title-info {
align-items: center; align-items: center;
margin-right: 26rpx; margin-right: 26rpx;
} }
.title-info__status { .title-info__status {
width: 120rpx; width: 120rpx;
height: 48rpx; height: 48rpx;
line-height: 48rpx; line-height: 48rpx;
background: #f61d30; background: #f61d30;
border-radius: 8rpx 200rpx 200rpx 8rpx; border-radius: 8rpx 200rpx 200rpx 8rpx;
border:1px solid #f61d30; border: 1px solid #f61d30;
font-size: 12px; font-size: 12px;
color: #fff; color: #fff;
text-align: center; text-align: center;
} }
.title-info__status:after { .title-info__status:after {
border:0; border: 0;
} }
.title-info__status-done{ .title-info__status-done {
background: #f8f8f8; background: #f8f8f8;
color: #888888; color: #888888;
border:1px solid #f8f8f8; border: 1px solid #f8f8f8;
} }
.order-main-middle { .order-main-middle {
position: relative; position: relative;
padding: 26rpx 48rpx 40rpx; padding: 26rpx 48rpx 40rpx;
} }
.middle-title { .middle-title {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 32rpx; margin-bottom: 32rpx;
} }
.middle-title__text { .middle-title__text {
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: 32rpx;
color: $text-base-color; color: $text-base-color;
font-family: PingFangSC, PingFangSC-Medium; font-family: PingFangSC, PingFangSC-Medium;
} }
.text-block { .text-block {
flex: 1; flex: 1;
flex-direction: column; flex-direction: column;
margin-bottom: 32rpx; margin-bottom: 32rpx;
} }
.text-block-last { .text-block-last {
margin-bottom: 0; margin-bottom: 0;
} }
.middle-date { .middle-date {
font-size: 28rpx; font-size: 28rpx;
color: $text-base-color; color: $text-base-color;
margin-bottom: 16rpx; margin-bottom: 16rpx;
} }
.middle-date-des { .middle-date-des {
font-size: 24rpx; font-size: 24rpx;
color: #999; color: #999;
} }
.text-block-box { .text-block-box {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.middle-date-right { .middle-date-right {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
} }
.order-middle{ .order-middle {
position: relative; position: relative;
height: 290rpx; height: 290rpx;
overflow: hidden; overflow: hidden;
padding-bottom: 60rpx; padding-bottom: 60rpx;
margin-bottom: 16rpx; margin-bottom: 16rpx;
} }
.order-middle-auto { .order-middle-auto {
height: auto; height: auto;
} }
...@@ -309,12 +340,12 @@ ...@@ -309,12 +340,12 @@
padding-top: 24rpx; padding-top: 24rpx;
padding-bottom: 32rpx; padding-bottom: 32rpx;
} }
.icon-file{ .icon-file {
width: 29px; width: 29px;
height: 35px; height: 35px;
} }
.block-detal { .block-detal {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -325,8 +356,8 @@ ...@@ -325,8 +356,8 @@
margin-bottom: 32rpx; margin-bottom: 32rpx;
justify-content: space-between; justify-content: space-between;
} }
.block-detal-item-last{ .block-detal-item-last {
margin-bottom: 0; margin-bottom: 0;
} }
...@@ -334,24 +365,24 @@ ...@@ -334,24 +365,24 @@
color: #999; color: #999;
font-size: 24rpx; font-size: 24rpx;
} }
.detal-item-file{ .detal-item-file {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.detal-item-value{ .detal-item-value {
color: #333; color: #333;
font-size: 28rpx; font-size: 28rpx;
} }
.item-value-intotal{ .item-value-intotal {
color: #333; color: #333;
font-size: 28rpx; font-size: 28rpx;
font-weight: 500; font-weight: 500;
} }
.item-value-intotal-num{ .item-value-intotal-num {
color: #FF1D32; color: #FF1D32;
font-size: 28rpx; font-size: 28rpx;
font-weight: 500; font-weight: 500;
...@@ -361,12 +392,12 @@ ...@@ -361,12 +392,12 @@
width: 116rpx; width: 116rpx;
height: 54rpx; height: 54rpx;
line-height: 50rpx; line-height: 50rpx;
border:1px solid $wly-primary-color; border: 1px solid $wly-primary-color;
background: #fff; background: #fff;
border-radius: 30rpx; border-radius: 30rpx;
} }
.btn:after{ .btn:after {
border: 0; border: 0;
} }
...@@ -374,7 +405,7 @@ ...@@ -374,7 +405,7 @@
color: $wly-primary-color; color: $wly-primary-color;
font-size: 24rpx; font-size: 24rpx;
} }
.float-btn-block { .float-btn-block {
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -387,7 +418,7 @@ ...@@ -387,7 +418,7 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.float-btn { .float-btn {
padding: 0 20px; padding: 0 20px;
height: 60rpx; height: 60rpx;
...@@ -397,8 +428,8 @@ ...@@ -397,8 +428,8 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.icon-arrow { .icon-arrow {
width: 7px; width: 7px;
height: 4px; height: 4px;
...@@ -408,8 +439,8 @@ ...@@ -408,8 +439,8 @@
transition-duration: 0.15s; transition-duration: 0.15s;
transform: rotate(0deg); transform: rotate(0deg);
} }
.icon-arrow-rotate { .icon-arrow-rotate {
transform: rotate(180deg); transform: rotate(180deg);
} }
</style> </style>
...@@ -100,11 +100,11 @@ ...@@ -100,11 +100,11 @@
</view> </view>
<view class="popup-content-content"> <view class="popup-content-content">
<text class="popup-content-content__title">提交成功</text> <text class="popup-content-content__title">提交成功</text>
<text class="popup-content-content__title2">生产备料编号:{{ orderInfo.OBJECT_ID }}</text> <!-- <text class="popup-content-content__title2">生产备料编号:{{ orderInfo.OBJECT_ID }}</text> -->
<text class="popup-content-content__title2">生产备料单号:{{ orderInfo.PRODPL_ID }}</text> <text class="popup-content-content__title2">生产备料单号:{{ orderInfo.PACKPL_ID }}</text>
</view> </view>
<view class="popup-content-foot"> <view class="popup-content-foot">
<text class="popup-content-foot__btn" @click="fnBackHome()">继续添加</text> <text class="popup-content-foot__btn" @click="resetData()">继续添加</text>
<text class="popup-content-foot__btn popup-content-foot__sure" <text class="popup-content-foot__btn popup-content-foot__sure"
@click="fnCheckOrderByNo()">查看备料</text> @click="fnCheckOrderByNo()">查看备料</text>
</view> </view>
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
HEADINFO: {}, HEADINFO: {},
productInitInfo: {}, productInitInfo: {},
orderInfo: { orderInfo: {
OBJECT_ID: '' PACKPL_ID: ''
}, },
} }
}, },
...@@ -159,7 +159,7 @@ ...@@ -159,7 +159,7 @@
...mapState(['sysinfo', 'userInfo']) ...mapState(['sysinfo', 'userInfo'])
}, },
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
this.initProduceMaterialPlanData() this.submit()
}, },
created() { created() {
this.initProduceMaterialPlanData() this.initProduceMaterialPlanData()
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
item = { item = {
...item, ...item,
...product, ...product,
...res.DATA[0] ...res.DATA.ITEM[0]
} }
} }
return item return item
...@@ -302,9 +302,6 @@ ...@@ -302,9 +302,6 @@
handleDel(index, ) { handleDel(index, ) {
this.planinnerLists.splice(index, 1) this.planinnerLists.splice(index, 1)
}, },
fnBackHome() {
this.$refs.popup.close()
},
fnCheckOrderByNo() { fnCheckOrderByNo() {
this.$refs.popup.close() this.$refs.popup.close()
uni.navigateTo({ uni.navigateTo({
...@@ -324,17 +321,19 @@ ...@@ -324,17 +321,19 @@
async submit() { async submit() {
const params = { const params = {
USER_BP: this.userInfo.customerCode,
HEAD: this.HEADINFO, HEAD: this.HEADINFO,
ITEM: this.planinnerLists ITEM: this.planinnerLists
} }
const res = await apiUpdateProduceMaterialOrder(params) const res = await apiUpdateProduceMaterialOrder(params)
const { const {
DATA1: HEAD2, HEAD: HEAD2,
DATA2: ITEM2 ITEM: ITEM2
} = res } = res
const params2 = { const params2 = {
USER_BP: this.userInfo.customerCode,
HEAD: HEAD2, HEAD: HEAD2,
ITEM: ITEM2 ITEM: ITEM2
} }
...@@ -344,7 +343,7 @@ ...@@ -344,7 +343,7 @@
const res2 = await apiSubmitProduceMaterialOrder(params2) const res2 = await apiSubmitProduceMaterialOrder(params2)
this.orderInfo = res.DATA1 this.orderInfo = res.HEAD
this.$refs.popup.open('center') this.$refs.popup.open('center')
}, },
...@@ -353,6 +352,10 @@ ...@@ -353,6 +352,10 @@
this.salesCenterIndex = -1 this.salesCenterIndex = -1
this.selectedSalesCenter = {} this.selectedSalesCenter = {}
this.initProduceMaterialPlanData() this.initProduceMaterialPlanData()
this.$refs.popup.close()
},
change(e) {
console.log('当前模式:' + e.type + ',状态:' + e.show);
} }
} }
} }
......
...@@ -83,11 +83,11 @@ ...@@ -83,11 +83,11 @@
</view> </view>
<view class="popup-content-content"> <view class="popup-content-content">
<text class="popup-content-content__title">提交成功</text> <text class="popup-content-content__title">提交成功</text>
<text class="popup-content-content__title2">生产计划编号:{{ orderInfo.OBJECT_ID }}</text> <!-- <text class="popup-content-content__title2">生产计划编号:{{ orderInfo.OBJECT_ID }}</text> -->
<text class="popup-content-content__title2">生产计划单号:{{ orderInfo.PRODPL_ID }}</text> <text class="popup-content-content__title2">生产计划单号:{{ orderInfo.PRODPL_ID }}</text>
</view> </view>
<view class="popup-content-foot"> <view class="popup-content-foot">
<text class="popup-content-foot__btn" @click="fnBackHome()">继续添加</text> <text class="popup-content-foot__btn" @click="resetData()">继续添加</text>
<text class="popup-content-foot__btn popup-content-foot__sure" <text class="popup-content-foot__btn popup-content-foot__sure"
@click="fnCheckOrderByNo()">查看计划</text> @click="fnCheckOrderByNo()">查看计划</text>
</view> </view>
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
HEADINFO: {}, HEADINFO: {},
productInitInfo: {}, productInitInfo: {},
orderInfo: { orderInfo: {
OBJECT_ID: '' PRODPL_ID: ''
}, },
} }
}, },
...@@ -288,9 +288,8 @@ ...@@ -288,9 +288,8 @@
handleDel(index, ) { handleDel(index, ) {
this.planinnerLists.splice(index, 1) this.planinnerLists.splice(index, 1)
}, },
fnBackHome() { change(e) {
this.resetData() console.log('当前模式:' + e.type + ',状态:' + e.show);
this.$refs.popup.close()
}, },
fnCheckOrderByNo() { fnCheckOrderByNo() {
this.$refs.popup.close() this.$refs.popup.close()
......
<template> <template>
<view class="order view"> <view class="order view">
<view class="top"> <view class="top">
<text class="title-no">制票编号:TP10000021</text> <text class="title-no">制票编号:{{itemHead.INVO_INFOID}}</text>
<view class="title-info"> <view class="title-info">
<button class="title-info__status" type="default"><text class="item-block-btn__text">待审批</text></button> <button class="title-info__status" type="default"><text
class="item-block-btn__text">{{itemHead.INV_STATUS_TEXT}}</text></button>
</view> </view>
</view> </view>
<view class="middle view"> <view class="middle view">
<text class="middle-title">配额酒制票通知单(计划内)</text> <text class="middle-title">{{itemHead.INFTYPE}}</text>
<view class="text-block"> <view class="text-block">
<text class="middle-date">2021-08-06 05:14</text> <text class="middle-date">{{itemHead.MAK_DATE}}</text>
<text class="middle-date-des">下单日期</text> <text class="middle-date-des">下单日期</text>
</view> </view>
<view class="text-block">
<text class="middle-date middle-billno">92353634474578</text>
<text class="middle-date-des">发票号</text>
</view>
</view> </view>
<view class="bottom view"> <view class="bottom view">
<view class="bottom-nav"> <view class="bottom-nav">
...@@ -25,52 +22,56 @@ ...@@ -25,52 +22,56 @@
src="@/static/image/arrow_up@3x.png" mode="aspectFit"></image> src="@/static/image/arrow_up@3x.png" mode="aspectFit"></image>
</view> </view>
</view> </view>
<view v-if="ishowDetail" class="bottom-content"> <view v-if="ishowDetail" class="bottom-content" v-for="(item,index) in itemLists" :key="index">
<view class="text-block"> <view class="text-block">
<text class="middle-date">五粮液1618</text> <text class="middle-date">{{item.DESCRIPTION}}</text>
<text class="middle-date-des">产品描述</text> <text class="middle-date-des">产品描述</text>
</view> </view>
<view class="text-block"> <view class="text-block">
<text class="middle-date">52% 500ml *4</text> <text class="middle-date middle-billno">{{item.INV_GUID}}</text>
<text class="middle-date-des">发票号</text>
</view>
<view class="text-block">
<text class="middle-date">{{item.ZZFLD00002S}}</text>
<text class="middle-date-des">规格</text> <text class="middle-date-des">规格</text>
</view> </view>
<view class="text-block-2"> <view class="text-block-2">
<view class="text-block text-block-1"> <view class="text-block text-block-1">
<text class="middle-date">100</text> <text class="middle-date">{{item.USE_ZZFLD9}}</text>
<text class="middle-date-des">开票件数</text> <text class="middle-date-des">开票件数</text>
</view> </view>
<view class="text-block"> <view class="text-block">
<text class="middle-date"></text> <text class="middle-date">{{item.ZZFLD00002T}}</text>
<text class="middle-date-des">单位</text> <text class="middle-date-des">单位</text>
</view> </view>
</view> </view>
<view class="text-block-2"> <view class="text-block-2">
<view class="text-block text-block-1"> <view class="text-block text-block-1">
<text class="middle-date">100</text> <text class="middle-date">{{item.NET_PRICE}}</text>
<text class="middle-date-des">单价</text> <text class="middle-date-des">单价</text>
</view> </view>
<view class="text-block"> <view class="text-block">
<text class="middle-date">4000</text> <text class="middle-date">{{item.USE_QUANTITY}}</text>
<text class="middle-date-des">数量</text> <text class="middle-date-des">数量</text>
</view> </view>
</view> </view>
<view class="text-block-2"> <view class="text-block-2">
<view class="text-block text-block-1"> <view class="text-block text-block-1">
<text class="middle-date">100</text> <text class="middle-date">{{item.REMAIN_ZZFLD9}}</text>
<text class="middle-date-des">剩余开票件数</text> <text class="middle-date-des">剩余开票件数</text>
</view> </view>
<view class="text-block"> <view class="text-block">
<text class="middle-date">17%</text> <text class="middle-date">{{item.ZZFLD00002E}}</text>
<text class="middle-date-des">税率</text> <text class="middle-date-des">税率</text>
</view> </view>
</view> </view>
<view class="text-block-2"> <view class="text-block-2">
<view class="text-block text-block-1"> <!-- <view class="text-block text-block-1">
<text class="middle-date">100</text> <text class="middle-date">{{item.INV_GUID}}</text>
<text class="middle-date-des">剩余发货件数</text> <text class="middle-date-des">剩余发货件数</text>
</view> </view> -->
<view class="text-block"> <view class="text-block">
<text class="middle-date">400,000.00</text> <text class="middle-date">{{item.NET_VALUE}}</text>
<text class="middle-date-des">价税合计</text> <text class="middle-date-des">价税合计</text>
</view> </view>
</view> </view>
...@@ -86,10 +87,21 @@ ...@@ -86,10 +87,21 @@
newsItem: { newsItem: {
type: Object, type: Object,
default: function(e) { default: function(e) {
return {} return {
HEAD: {},
ITEM: []
}
} }
} }
}, },
computed: {
itemHead() {
return this.newsItem.HEAD || {}
},
itemLists() {
return this.newsItem.ITEM || []
},
},
data() { data() {
return { return {
ishowDetail: true ishowDetail: true
...@@ -142,7 +154,6 @@ ...@@ -142,7 +154,6 @@
} }
.title-info__status { .title-info__status {
width: 120rpx;
height: 48rpx; height: 48rpx;
line-height: 48rpx; line-height: 48rpx;
background: #f61d30; background: #f61d30;
......
This diff is collapsed.
...@@ -37,8 +37,8 @@ ...@@ -37,8 +37,8 @@
class="filter-btn__text" class="filter-btn__text"
:class="{'filter-btn-active__text':item+3 === filterActiveIndex}">{{item+3}}月内</text></button> :class="{'filter-btn-active__text':item+3 === filterActiveIndex}">{{item+3}}月内</text></button>
</view> </view>
</view> </view>
<view class="empty"></view> <view class="empty"></view>
<swiper ref="swiper1" class="tab-box" :current="tabIndex" :duration="300" @change="onswiperchange" <swiper ref="swiper1" class="tab-box" :current="tabIndex" :duration="300" @change="onswiperchange"
...@@ -77,15 +77,15 @@ ...@@ -77,15 +77,15 @@
tabList: [{ tabList: [{
id: "tab01", id: "tab01",
name: '全部', name: '全部',
newsid: 0 newsid: ''
}, { }, {
id: "tab02", id: "tab02",
name: '待审批', name: '待审批',
newsid: 23 newsid: 'E004'
}, { }, {
id: "tab03", id: "tab03",
name: '已审批', name: '已审批',
newsid: 223 newsid: 'E005'
}], }],
tabIndex: 0, tabIndex: 0,
cacheTab: [], cacheTab: [],
...@@ -463,10 +463,10 @@ ...@@ -463,10 +463,10 @@
.filter-content { .filter-content {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.empty{ .empty {
height: 124rpx; height: 124rpx;
} }
.tab-box { .tab-box {
......
...@@ -37,7 +37,7 @@ export async function apiUpdateProduceMaterialPlanData(params) { ...@@ -37,7 +37,7 @@ export async function apiUpdateProduceMaterialPlanData(params) {
* @returns {Promise<AxiosResponse<T>>} * @returns {Promise<AxiosResponse<T>>}
*/ */
export async function apiUpdateProduceMaterialOrder(params) { export async function apiUpdateProduceMaterialOrder(params) {
const res = await apiHelper.post('/sap/bc/ztpm/to_new_crm/transdata/prodplan03', params) const res = await apiHelper.post('/sap/bc/ztpm/to_new_crm/transdata/materialpln', params)
return res return res
} }
...@@ -47,7 +47,7 @@ export async function apiUpdateProduceMaterialOrder(params) { ...@@ -47,7 +47,7 @@ export async function apiUpdateProduceMaterialOrder(params) {
* @returns {Promise<AxiosResponse<T>>} * @returns {Promise<AxiosResponse<T>>}
*/ */
export async function apiSubmitProduceMaterialOrder(params) { export async function apiSubmitProduceMaterialOrder(params) {
const res = await apiHelper.post('/sap/bc/ztpm/to_new_crm/masterdata/materialplnsubm', params) const res = await apiHelper.post('/sap/bc/ztpm/to_new_crm/transdata/materialplnsubm', params)
return res return res
} }
......
import apiHelper from './api.helper.js'
/**
* 根据搜索条件查询销售订单信息。
* @param name 账户名
* @returns {Promise<AxiosResponse<T>>}
*/
export async function apiGetSalesOrder(params) {
const res = await apiHelper.post('/sap/bc/ztpm/to_new_crm/transdata/get_so', params)
return res
}
/**
* 根据销售订单ID查询详情。
* @param name 账户名
* @returns {Promise<AxiosResponse<T>>}
*/
export async function apiGetSalesOrderDetail(params) {
const res = await apiHelper.post('/sap/bc/ztpm/to_new_crm/transdata/get_so_by_id', params)
return res
}
import apiHelper from './api.helper.js'
/**
* 根据搜索条件查询制票通知单信息。
* @param name 账户名
* @returns {Promise<AxiosResponse<T>>}
*/
export async function apiGetTicketOrder(params) {
const res = await apiHelper.post('/sap/bc/ztpm/to_new_crm/transdata/zhipiao13', params)
return res
}
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