Commit effd75a4 authored by 沈翠玲's avatar 沈翠玲

四个发料

parent 49ba9c51
......@@ -51,6 +51,8 @@ const install = (Vue, vm) => {
sapPickingDn: (params = {}, client = sapClient) => vm.$u.post(config.adminPath + '/sap/bc/erp_ep/picking_dn?sap-language=ZH&sap-client=' + client, params),
// 换标
sapMigoCS: (params = {}, client = sapClient) => vm.$u.post(config.adminPath + '/sap/bc/erp_ep/pda_migo_cs?sap-client=' + client, params),
// 生产发料
pdaKcInfo: (params = {}, client = sapClient) => vm.$u.post(config.adminPath + '/sap/bc/erp_ep/pda_kc_info?sap-client=' + client, params),
// 销售拣货过账
sapDelv: (params = {}, client = sapClient) => vm.$u.post(config.adminPath + '/sap/bc/erp_ep/post_delv?sap-language=ZH&sap-client=' + client, params),
// 销售拣货查询bl pl
......
......@@ -7,10 +7,15 @@
<view class="item">单位:{{ item.MEINS }}</view>
</view>
<view class="right">
<view>
<text class="blue">{{ totalVistaNum }}</text>
<text class="line">/</text>
<text class="">{{ item.BDMNG }}</text>
</view>
<u-button class="openBtn" size="mini" type="primary" plain @click="handleOpen(item.MATNR)">
查询
</u-button>
</view>
</view>
<view class="listBottom">
<view class="bottomTitle" @click="show = !show">
......@@ -34,6 +39,15 @@
</view>
</view>
</view>
<u-popup class="oddments-popup" v-model="visible" mode="center" :mask-close-able="false" closeable @close="close">
<scroll-view scroll-y="true" style="height: 600rpx;min-width: 300rpx;max-width: 600rpx">
<view class="content" v-for="(ele, idx) in pordList" :index="idx">
<view class="item">PL:{{ ele.PLNR }}</view>
<view class="item">仓位:{{ ele.NLPLA_Z }}</view>
<view class="item">数量:{{ ele.PACMG }}/{{ ele.MEINS }}</view>
</view>
</scroll-view>
</u-popup>
</view>
</template>
......@@ -88,6 +102,8 @@
way: "goSubmit",
},
],
visible: false,
pordList: [],
isFocus: false,
show: true,
num1: 0,
......@@ -95,7 +111,25 @@
},
created() {},
methods: {
handleOpen(item) {
const params = [
{
"MATNR":item,
"WERKS":this.vuex_user_factory
}
]
this.$u.api.sapApi.pdaKcInfo(params).then((res) => {
if (res && res.MSG.TYPE === "S") {
this.pordList = res.DATA
this.visible = true
} else {
this.$u.toast(res.MSG.MESSAGE);
}
})
},
close(){
this.visible = false
},
},
};
</script>
......@@ -104,7 +138,12 @@
page {
background: #f8f8f8;
}
.right {
display: flex;
justify-content: flex-start;
align-items: flex-end;
flex-direction: column;
}
.headerTitle {
padding: 20rpx;
font-weight: 600;
......@@ -161,7 +200,7 @@
border-bottom: 2px solid #f8f8f8;
.u-btn {
width: 150rpx;
width: 80rpx;
margin: 0px;
margin-top: 10rpx;
}
......@@ -245,4 +284,33 @@
.proItem {
display: flex;
}
.oddments-popup {
/deep/.u-mode-center-box {
padding: 12rpx;
padding-top: 50rpx;
background-color: #f8f8f8;
text-align: center;
.uni-scroll-view {
.content {
background: #fff;
margin-bottom: 8rpx;
padding: 20rpx;
border-radius: 16rpx;
text-align: left;
.item {
color: #000;
font-size: 28rpx;
font-weight: 500;
word-break: break-all;
}
}
}
}
.btn {
margin-top: 12rpx;
}
}
</style>
......@@ -11,6 +11,9 @@
>
</view>
<view class="right">
<u-button class="openBtn" size="mini" type="primary" plain @click="handleOpen(item.MATNR)">
查询
</u-button>
<!-- <checkbox-group class="checkedBox">
<checkbox value="r1" :checked="item.checkedBox" disabled/>
</checkbox-group> -->
......@@ -51,6 +54,15 @@
</view>
</view>
<!-- <BottomBtn :btnArr="btnArr" @getBtnHandle="getBtnHandle"></BottomBtn> -->
<u-popup class="oddments-popup" v-model="visible" mode="center" :mask-close-able="false" closeable @close="close">
<scroll-view scroll-y="true" style="height: 600rpx;min-width: 300rpx;max-width: 600rpx">
<view class="content" v-for="(ele, idx) in pordList" :index="idx">
<view class="item">PL:{{ ele.PLNR }}</view>
<view class="item">仓位:{{ ele.NLPLA_Z }}</view>
<view class="item">数量:{{ ele.PACMG }}/{{ ele.MEINS }}</view>
</view>
</scroll-view>
</u-popup>
</view>
</template>
......@@ -99,12 +111,33 @@ export default {
way: "goSubmit",
},
],
visible: false,
pordList: [],
isFocus: false,
show: true,
};
},
methods: {
handleOpen(item) {
const params = [
{
"MATNR":item,
"WERKS":this.vuex_user_factory
}
]
this.$u.api.sapApi.pdaKcInfo(params).then((res) => {
if (res && res.MSG.TYPE === "S") {
this.pordList = res.DATA
this.visible = true
} else {
this.$u.toast(res.MSG.MESSAGE);
}
})
},
close(){
this.visible = false
},
handleNum() {
let num = 0;
this.list.forEach((ele) => {
......@@ -172,7 +205,7 @@ page {
padding: 20rpx;
border-bottom: 2px solid #f8f8f8;
.u-btn {
width: 150rpx;
width: 80rpx;
margin: 0px;
margin-top: 10rpx;
}
......@@ -235,4 +268,33 @@ page {
/deep/ .uni-checkbox-input-disabled:before {
color: #007aff !important;
}
.oddments-popup {
/deep/.u-mode-center-box {
padding: 12rpx;
padding-top: 50rpx;
background-color: #f8f8f8;
text-align: center;
.uni-scroll-view {
.content {
background: #fff;
margin-bottom: 8rpx;
padding: 20rpx;
border-radius: 16rpx;
text-align: left;
.item {
color: #000;
font-size: 28rpx;
font-weight: 500;
word-break: break-all;
}
}
}
}
.btn {
margin-top: 12rpx;
}
}
</style>
......@@ -6,10 +6,15 @@
<view class="item">物料描述:{{ item.itemName }}</view>
</view>
<view class="right">
<view>
<text class="blue">{{ totalVistaNum }}</text>
<text class="line">/</text>
<text class="">{{ totalNum }}</text>
</view>
<u-button class="openBtn" size="mini" type="primary" plain @click="handleOpen(item.sapItemCode)">
查询
</u-button>
</view>
</view>
<view class="listBottom">
<view class="bottomTitle" @click="show = !show">
......@@ -51,6 +56,15 @@
</view>
</view>
</view>
<u-popup class="oddments-popup" v-model="visible" mode="center" :mask-close-able="false" closeable @close="close">
<scroll-view scroll-y="true" style="height: 600rpx;min-width: 300rpx;max-width: 600rpx">
<view class="content" v-for="(ele, idx) in pordList" :index="idx">
<view class="item">PL:{{ ele.PLNR }}</view>
<view class="item">仓位:{{ ele.NLPLA_Z }}</view>
<view class="item">数量:{{ ele.PACMG }}/{{ ele.MEINS }}</view>
</view>
</scroll-view>
</u-popup>
</view>
</template>
......@@ -79,6 +93,7 @@ export default {
},
},
computed: {
details() {
return this.list.reduce((acc, cur) => {
const item = acc.find((v) => v.workorderCode === cur.workorderCode);
......@@ -121,6 +136,7 @@ export default {
number: 0,
nlpla: "",
wxparams: "",
visible: false,
btnArr: [
{
style: "",
......@@ -135,6 +151,7 @@ export default {
way: "goSubmit",
},
],
pordList: [],
isFocus: false,
show: true,
num1: 0,
......@@ -142,6 +159,25 @@ export default {
},
created() {},
methods: {
handleOpen(item) {
const params = [
{
"MATNR":item,
"WERKS":this.vuex_user_factory
}
]
this.$u.api.sapApi.pdaKcInfo(params).then((res) => {
if (res && res.MSG.TYPE === "S") {
this.pordList = res.DATA
this.visible = true
} else {
this.$u.toast(res.MSG.MESSAGE);
}
})
},
close(){
this.visible = false
},
handleUseVista(items) {
return items.details.reduce((acc, cur) => cur.vista + acc, 0)
},
......@@ -166,6 +202,12 @@ export default {
page {
background: #f8f8f8;
}
.right {
display: flex;
justify-content: flex-start;
align-items: flex-end;
flex-direction: column;
}
.headerTitle {
padding: 20rpx;
font-weight: 600;
......@@ -212,7 +254,7 @@ page {
padding: 20rpx;
border-bottom: 2px solid #f8f8f8;
.u-btn {
width: 150rpx;
width: 80rpx;
margin: 0px;
margin-top: 10rpx;
}
......@@ -282,4 +324,32 @@ page {
.proItem {
display: flex;
}
.oddments-popup {
/deep/.u-mode-center-box {
padding: 12rpx;
padding-top: 50rpx;
background-color: #f8f8f8;
text-align: center;
.uni-scroll-view {
.content {
background: #fff;
margin-bottom: 8rpx;
padding: 20rpx;
border-radius: 16rpx;
text-align: left;
.item {
color: #000;
font-size: 28rpx;
font-weight: 500;
word-break: break-all;
}
}
}
}
.btn {
margin-top: 12rpx;
}
}
</style>
......@@ -6,10 +6,15 @@
<view class="item">物料描述:{{ item.itemName }}</view>
</view>
<view class="right">
<view>
<text class="blue">{{ totalVistaNum }}</text>
<text class="line">/</text>
<text class="">{{ item.applyNum }}</text>
</view>
<u-button class="openBtn" size="mini" type="primary" plain @click="handleOpen(item.sapItemCode)">
查询
</u-button>
</view>
</view>
<view class="listBottom">
<view class="bottomTitle" @click="show = !show">
......@@ -33,6 +38,15 @@
</view>
</view>
</view>
<u-popup class="oddments-popup" v-model="visible" mode="center" :mask-close-able="false" closeable @close="close">
<scroll-view scroll-y="true" style="height: 600rpx;min-width: 300rpx;max-width: 600rpx">
<view class="content" v-for="(ele, idx) in pordList" :index="idx">
<view class="item">PL:{{ ele.PLNR }}</view>
<view class="item">仓位:{{ ele.NLPLA_Z }}</view>
<view class="item">数量:{{ ele.PACMG }}/{{ ele.MEINS }}</view>
</view>
</scroll-view>
</u-popup>
</view>
</template>
......@@ -96,6 +110,8 @@
way: "goSubmit",
},
],
pordList: [],
visible: false,
isFocus: false,
show: true,
num1: 0,
......@@ -103,7 +119,25 @@
},
created() {},
methods: {
handleOpen(item) {
const params = [
{
"MATNR":item,
"WERKS":this.vuex_user_factory
}
]
this.$u.api.sapApi.pdaKcInfo(params).then((res) => {
if (res && res.MSG.TYPE === "S") {
this.pordList = res.DATA
this.visible = true
} else {
this.$u.toast(res.MSG.MESSAGE);
}
})
},
close(){
this.visible = false
},
},
};
</script>
......@@ -112,7 +146,12 @@
page {
background: #f8f8f8;
}
.right {
display: flex;
justify-content: flex-start;
align-items: flex-end;
flex-direction: column;
}
.headerTitle {
padding: 20rpx;
font-weight: 600;
......@@ -169,7 +208,7 @@
border-bottom: 2px solid #f8f8f8;
.u-btn {
width: 150rpx;
width: 80rpx;
margin: 0px;
margin-top: 10rpx;
}
......@@ -253,4 +292,33 @@
.proItem {
display: flex;
}
.oddments-popup {
/deep/.u-mode-center-box {
padding: 12rpx;
padding-top: 50rpx;
background-color: #f8f8f8;
text-align: center;
.uni-scroll-view {
.content {
background: #fff;
margin-bottom: 8rpx;
padding: 20rpx;
border-radius: 16rpx;
text-align: left;
.item {
color: #000;
font-size: 28rpx;
font-weight: 500;
word-break: break-all;
}
}
}
}
.btn {
margin-top: 12rpx;
}
}
</style>
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