SAP库位相关

master
hou 4 years ago
parent 4899040ab3
commit aa8c01c51b

@ -63,6 +63,7 @@ export default {
po_Supplier: '供应商',
po_OrderType: '订单类型',
po_Location: '库存地点',
SAPLocation:'所选物料没有SAP库位请重新选择',
po_PleaseScan: '请扫描PO单号',
po_PleaseScanMATcode: '请扫描物料条码',
PleaseScan: '请扫描',

@ -186,6 +186,7 @@ export default {
return_OperatorName: 'Return by',
return_Type: 'Return type',
return_Tip1: 'Return by cannot be empty',
SAPLocation: 'There is no SAP location for the selected material, please select again',
return_Tip2: 'Factory code cannot be empty',
return_Tip3: 'Qty cannot be empty',
return_Tip4: 'Return Qty cannot be greater than total Qty',

@ -152,6 +152,18 @@ export default class RawReceiptDetail extends BasePage {
this.wlCode = e.pickerName;
}
handleRow({ data }: any) {
console.log('data[0]', data[0]);
if (!this.model.proOrderResultList[data[0].index].sendSpot) {
uni.showModal({
content: this.$t('message.SAPLocation') as any,
success: (res) => {
if (res.confirm) {
this.model.proOrderResultList[data[0].index].checked = false;
}
},
});
return;
}
this.someIndex = data[0].index;
this.some = data[0].lineData;
this.model.proOrderResultList[this.someIndex].wlList = [];

@ -140,6 +140,17 @@ export default class RawReceiptDetail extends BasePage {
}
//
handleRow({ data }: any) {
if (!this.model.aggregateList[data[0].index].sendSpot) {
uni.showModal({
content: this.$t('message.SAPLocation') as any,
success: (res) => {
if (res.confirm) {
this.model.aggregateList[data[0].index].checked = false;
}
},
});
return;
}
this.someIndex = data[0].index;
this.some = data[0].lineData;
this.model.aggregateList[this.someIndex].wlList = [];

@ -167,7 +167,8 @@ export const orderHeaders = [
{
label: vm.$t('message.po_Location'),
// key: 'currentWkposCode',
key: 'wkposCode',
//key: 'wkposCode',
key: 'sendSpot',
},
{
label: vm.$t('message.po_MaterielDes'),
@ -189,7 +190,8 @@ export const orderHeaders = [
},
{
label: vm.$t('message.Pi_Station'),
key: 'sendSpot',
//key: 'sendSpot',
key: 'wkposCode',
},
{
label: vm.$t('message.Pi_OrderNo'),

@ -322,8 +322,5 @@ export default class returningDom extends BasePage {
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx;
}
.button-bar {
}
}
</style>

Loading…
Cancel
Save