Commit b842e5ff authored by xiangzj's avatar xiangzj

装箱联调完成

parent 0190728b
...@@ -52,6 +52,8 @@ const install = (Vue, vm) => { ...@@ -52,6 +52,8 @@ const install = (Vue, vm) => {
sapBlpl: (params = {}) => vm.$u.post(config.adminPath + '/sap/bc/erp_ep/search/sch_BLPL?sap-client=300', params), sapBlpl: (params = {}) => vm.$u.post(config.adminPath + '/sap/bc/erp_ep/search/sch_BLPL?sap-client=300', params),
// 查询仓位 // 查询仓位
sapLgpla: (params = {}) => vm.$u.post(config.adminPath + '/sap/bc/erp_ep/search/sch_LGPLA?sap-client=300', params), sapLgpla: (params = {}) => vm.$u.post(config.adminPath + '/sap/bc/erp_ep/search/sch_LGPLA?sap-client=300', params),
// 装箱
sapCasePlnr: (params = {}) => vm.$u.post(config.adminPath + '/sap/bc/erp_ep/pda_case/pda_case_plnr?sap-client=300', params),
}, },
mesApi:{ mesApi:{
//生产领料 //生产领料
......
<template> <template>
<view class="metering"> <view class="metering">
<!-- <uni-forms :modelValue="form">
<uni-forms-item label="长" name="long">
<uni-easyinput type="text" v-model="form.long" placeholder="请输入姓名" />
</uni-forms-item>
</uni-forms> -->
<u-row gutter="16" class="itemRow"> <u-row gutter="16" class="itemRow">
<u-col span="2"> <u-col span="2">
长: 长:
</u-col> </u-col>
<u-col span="6"> <u-col span="6">
<uni-easyinput v-model="orderItem"></uni-easyinput> <uni-easyinput v-model="form.long"></uni-easyinput>
</u-col> </u-col>
</u-row> </u-row>
<u-row gutter="16" class="itemRow"> <u-row gutter="16" class="itemRow">
...@@ -13,7 +18,7 @@ ...@@ -13,7 +18,7 @@
宽: 宽:
</u-col> </u-col>
<u-col span="6"> <u-col span="6">
<uni-easyinput v-model="orderItem"></uni-easyinput> <uni-easyinput v-model="form.wide"></uni-easyinput>
</u-col> </u-col>
</u-row> </u-row>
<u-row gutter="16" class="itemRow"> <u-row gutter="16" class="itemRow">
...@@ -21,7 +26,7 @@ ...@@ -21,7 +26,7 @@
高: 高:
</u-col> </u-col>
<u-col span="6"> <u-col span="6">
<uni-easyinput v-model="orderItem"></uni-easyinput> <uni-easyinput v-model="form.high"></uni-easyinput>
</u-col> </u-col>
</u-row> </u-row>
<u-row gutter="16" class="itemRow"> <u-row gutter="16" class="itemRow">
...@@ -29,7 +34,7 @@ ...@@ -29,7 +34,7 @@
毛重: 毛重:
</u-col> </u-col>
<u-col span="6"> <u-col span="6">
<uni-easyinput v-model="orderItem"></uni-easyinput> <uni-easyinput v-model="form.brgew"></uni-easyinput>
</u-col> </u-col>
</u-row> </u-row>
<u-row gutter="16" class="itemRow"> <u-row gutter="16" class="itemRow">
...@@ -37,7 +42,7 @@ ...@@ -37,7 +42,7 @@
箱重: 箱重:
</u-col> </u-col>
<u-col span="6"> <u-col span="6">
<uni-easyinput v-model="orderItem"></uni-easyinput> <uni-easyinput v-model="form.zxntgew"></uni-easyinput>
</u-col> </u-col>
</u-row> </u-row>
<u-row gutter="16" class="itemRow"> <u-row gutter="16" class="itemRow">
...@@ -45,7 +50,7 @@ ...@@ -45,7 +50,7 @@
净重: 净重:
</u-col> </u-col>
<u-col span="6"> <u-col span="6">
<uni-easyinput v-model="orderItem" disabled></uni-easyinput> <uni-easyinput v-model="weight" disabled></uni-easyinput>
</u-col> </u-col>
</u-row> </u-row>
</view> </view>
...@@ -63,10 +68,6 @@ export default { ...@@ -63,10 +68,6 @@ export default {
created() { created() {
}, },
props:{ props:{
orderItem: {
type: String,
default: '',
},
form: { form: {
type: Object, type: Object,
default: function () { default: function () {
...@@ -75,6 +76,9 @@ export default { ...@@ -75,6 +76,9 @@ export default {
} }
}, },
computed:{ computed:{
weight(){
return (this.form.brgew-0) - (this.form.zxntgew-0)
}
}, },
methods: { methods: {
} }
......
...@@ -54,48 +54,22 @@ export default { ...@@ -54,48 +54,22 @@ export default {
show: true, show: true,
nlpla: '', nlpla: '',
wxparams: '', wxparams: '',
btnArr: [
{
style: '',
type: 'primary',
text: '扫描单号',
way: 'scanning'
},
// {
// style: '',
// type: 'warning',
// text: '查询单号',
// way: 'goClick'
// }
],
goodsList: [], goodsList: [],
isFocus: false, isFocus: false,
isDisabled: false isDisabled: false
}; };
}, },
created() { created() {
// this.getPlnr('10000001');
}, },
methods: { methods: {
getBtnHandle(row) {
this[row.way]();
},
goClick() {
uni.navigateTo({
url: `/pages/salesOutbound/oddNumList`
});
},
scanning() {
this.isFocus = true
uni.navigateTo({
url: `/pages/salesOutbound/salesOutboundList`
});
},
handleInputPlnr(e) { handleInputPlnr(e) {
this.isFocus = false; this.isFocus = false;
uni.navigateTo({ setTimeout(()=>{
url: `/pages/packing/packingList?order=${e}` this.wxparams = ''
}); uni.navigateTo({
url: `/pages/packing/packingList?order=${e}`
});
},500)
}, },
} }
}; };
......
...@@ -98,6 +98,15 @@ export default { ...@@ -98,6 +98,15 @@ export default {
], ],
form: { form: {
ZZXFS: '', ZZXFS: '',
zxspe: '', //箱规格(cm)
zxvolum: '', //体积(m132)
zxntgew: '', //箱重(kg)
ntgew: '', //净重(kg)
brgew: '', //毛重(kg)
long: '', //长
wide: '', //宽
high: '', //高
updkz: 'I'
}, },
goodsList: [], goodsList: [],
}; };
...@@ -111,7 +120,36 @@ export default { ...@@ -111,7 +120,36 @@ export default {
goSubmit(){ goSubmit(){
if(this.goodsList.length === 0){ if(this.goodsList.length === 0){
this.$u.toast('暂无提交数据'); this.$u.toast('暂无提交数据');
return
} }
const arr = []
this.goodsList.forEach(ele => {
arr.push(
{
plnr: ele,
...this.form,
zxspe: this.form.long +'*'+ this.form.wide +'*'+ this.form.high,
zxvolum: (this.form.long * this.form.wide*this.form.high)/1000,
ntgew: (this.form.brgew-0) - (this.form.zxntgew-0),
zcode: this.form.ZZXFS === 'PL' ? '' : this.orderBoxNum
}
)
});
this.$u.api.sapApi
.sapCasePlnr(arr)
.then((res) => {
if (res.every((item) => item.TYPE === 'S')) {
this.$u.toast(res[0].MESSAGE);
setTimeout(()=>{
this.goBack()
},1000)
}
res.forEach((ele) => {
if (ele.TYPE === 'E') {
this.$u.toast(ele.MESSAGE);
}
});
});
}, },
// 删除 // 删除
deleGonds(idx) { deleGonds(idx) {
......
<template> <template>
<view class="lists"> <view class="lists">
<StickyNavBar class="listTitle">
</StickyNavBar>
<ContentLoadingMore class="contentMore" :list='list'> <ContentLoadingMore class="contentMore" :list='list'>
<view class="cardbox"> <view class="cardbox">
<view class="cardContent" v-for="(item, index) in list" :key="item.PLNR"> <view class="cardContent" v-for="(item, index) in list" :key="item.PLNR">
...@@ -21,7 +19,7 @@ ...@@ -21,7 +19,7 @@
</view> </view>
</view> </view>
</ContentLoadingMore> </ContentLoadingMore>
<BottomBtn :btnArr="btnArr" @getBtnHandle="getBtnHandle"></BottomBtn> <!-- <BottomBtn :btnArr="btnArr" @getBtnHandle="getBtnHandle"></BottomBtn> -->
</view> </view>
</template> </template>
...@@ -148,7 +146,7 @@ page { ...@@ -148,7 +146,7 @@ page {
background: #f8f8f8; background: #f8f8f8;
} }
.cardbox { .cardbox {
min-height: calc(100vh - 410rpx); min-height: calc(100vh - 700rpx);
padding: 0rpx 20rpx; padding: 0rpx 20rpx;
margin-top: 20rpx; margin-top: 20rpx;
} }
......
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