Commit b842e5ff authored by xiangzj's avatar xiangzj

装箱联调完成

parent 0190728b
......@@ -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),
// 查询仓位
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:{
//生产领料
......
<template>
<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-col span="2">
长:
</u-col>
<u-col span="6">
<uni-easyinput v-model="orderItem"></uni-easyinput>
<uni-easyinput v-model="form.long"></uni-easyinput>
</u-col>
</u-row>
<u-row gutter="16" class="itemRow">
......@@ -13,7 +18,7 @@
宽:
</u-col>
<u-col span="6">
<uni-easyinput v-model="orderItem"></uni-easyinput>
<uni-easyinput v-model="form.wide"></uni-easyinput>
</u-col>
</u-row>
<u-row gutter="16" class="itemRow">
......@@ -21,7 +26,7 @@
高:
</u-col>
<u-col span="6">
<uni-easyinput v-model="orderItem"></uni-easyinput>
<uni-easyinput v-model="form.high"></uni-easyinput>
</u-col>
</u-row>
<u-row gutter="16" class="itemRow">
......@@ -29,7 +34,7 @@
毛重:
</u-col>
<u-col span="6">
<uni-easyinput v-model="orderItem"></uni-easyinput>
<uni-easyinput v-model="form.brgew"></uni-easyinput>
</u-col>
</u-row>
<u-row gutter="16" class="itemRow">
......@@ -37,7 +42,7 @@
箱重:
</u-col>
<u-col span="6">
<uni-easyinput v-model="orderItem"></uni-easyinput>
<uni-easyinput v-model="form.zxntgew"></uni-easyinput>
</u-col>
</u-row>
<u-row gutter="16" class="itemRow">
......@@ -45,7 +50,7 @@
净重:
</u-col>
<u-col span="6">
<uni-easyinput v-model="orderItem" disabled></uni-easyinput>
<uni-easyinput v-model="weight" disabled></uni-easyinput>
</u-col>
</u-row>
</view>
......@@ -63,10 +68,6 @@ export default {
created() {
},
props:{
orderItem: {
type: String,
default: '',
},
form: {
type: Object,
default: function () {
......@@ -75,6 +76,9 @@ export default {
}
},
computed:{
weight(){
return (this.form.brgew-0) - (this.form.zxntgew-0)
}
},
methods: {
}
......
......@@ -54,48 +54,22 @@ export default {
show: true,
nlpla: '',
wxparams: '',
btnArr: [
{
style: '',
type: 'primary',
text: '扫描单号',
way: 'scanning'
},
// {
// style: '',
// type: 'warning',
// text: '查询单号',
// way: 'goClick'
// }
],
goodsList: [],
isFocus: false,
isDisabled: false
};
},
created() {
// this.getPlnr('10000001');
},
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) {
this.isFocus = false;
setTimeout(()=>{
this.wxparams = ''
uni.navigateTo({
url: `/pages/packing/packingList?order=${e}`
});
},500)
},
}
};
......
......@@ -98,6 +98,15 @@ export default {
],
form: {
ZZXFS: '',
zxspe: '', //箱规格(cm)
zxvolum: '', //体积(m132)
zxntgew: '', //箱重(kg)
ntgew: '', //净重(kg)
brgew: '', //毛重(kg)
long: '', //长
wide: '', //宽
high: '', //高
updkz: 'I'
},
goodsList: [],
};
......@@ -111,7 +120,36 @@ export default {
goSubmit(){
if(this.goodsList.length === 0){
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) {
......
<template>
<view class="lists">
<StickyNavBar class="listTitle">
</StickyNavBar>
<ContentLoadingMore class="contentMore" :list='list'>
<view class="cardbox">
<view class="cardContent" v-for="(item, index) in list" :key="item.PLNR">
......@@ -21,7 +19,7 @@
</view>
</view>
</ContentLoadingMore>
<BottomBtn :btnArr="btnArr" @getBtnHandle="getBtnHandle"></BottomBtn>
<!-- <BottomBtn :btnArr="btnArr" @getBtnHandle="getBtnHandle"></BottomBtn> -->
</view>
</template>
......@@ -148,7 +146,7 @@ page {
background: #f8f8f8;
}
.cardbox {
min-height: calc(100vh - 410rpx);
min-height: calc(100vh - 700rpx);
padding: 0rpx 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