|
|
|
@ -76,14 +76,19 @@
|
|
|
|
|
<view class="library">
|
|
|
|
|
<view class="library-left">
|
|
|
|
|
<view>{{ $t('message.CommissionedLocation') }}</view>
|
|
|
|
|
<!-- <u-input v-model="locCode" disabled placeholder="" style="margin-top: 8px" /> -->
|
|
|
|
|
<jPicker sureColor="#ff0000" style="width: 230rpx" @bindpicker="SelectLoc" showKey="value" valKey="value" :val="Loc.value" class="search" :options="LocList" />
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- 扫码 -->
|
|
|
|
|
<u-form-item :label="$t('message.product_BarCode')">
|
|
|
|
|
<u-search :placeholder="$t('message.po_PleaseInput')" v-model="barCode" @search="onOk" :focus="firstFocus" :show-action="false"></u-search>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 数量 -->
|
|
|
|
|
<view class="single">
|
|
|
|
|
<view class="single-left">
|
|
|
|
|
<view>{{ $t('message.dn_Number') }}:</view>
|
|
|
|
|
<u-input v-model="num" :placeholder="$t('message.Summary_PleaseInputNumber')" style="margin-top: 8px" />
|
|
|
|
|
<u-input v-model="num" disabled placeholder="" style="margin-top: 8px" />
|
|
|
|
|
</view>
|
|
|
|
|
<view class="single-right">
|
|
|
|
|
<u-button type="primary" @click="Add">{{ $t('message.product_add') }}</u-button>
|
|
|
|
@ -123,10 +128,13 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
Tabheaders = Tabheaders;
|
|
|
|
|
model = model;
|
|
|
|
|
dnNo: any = '';
|
|
|
|
|
firstFocus = false;
|
|
|
|
|
barCode: any = '';
|
|
|
|
|
dnNoList: any = [];
|
|
|
|
|
DnlineNo: any = {};
|
|
|
|
|
LocList: any = [];
|
|
|
|
|
Loc: any = {};
|
|
|
|
|
locCode: any = '';
|
|
|
|
|
async QueryLoc() {
|
|
|
|
|
await this.model.QueryLoc(this.TheItem.receiveRegion);
|
|
|
|
|
this.LocList = this.model.LocList;
|
|
|
|
@ -181,6 +189,37 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
SelectLoc(e: any) {
|
|
|
|
|
this.Loc = e.pickerName;
|
|
|
|
|
}
|
|
|
|
|
//扫码查询
|
|
|
|
|
async onOk() {
|
|
|
|
|
if (!this.dnNo) {
|
|
|
|
|
this.customToast(this.$t('message.Warehouse_Tip1') as any);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (!this.barCode) {
|
|
|
|
|
this.customToast(this.$t('message.barcode_PleaseScan') as any);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (!this.DnlineNo.value) {
|
|
|
|
|
this.customToast(this.$t('message.DNLine_PleaseSelect') as any);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
const selctlist = {
|
|
|
|
|
dnNo: this.dnNo,
|
|
|
|
|
barCode: this.barCode,
|
|
|
|
|
dnItem: this.DnlineNo.value,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
};
|
|
|
|
|
await this.model.stoDnProdScan(selctlist);
|
|
|
|
|
if (this.model.res.code == '1') {
|
|
|
|
|
this.customToast(this.$t('message.Warehouse_Tip9') as any);
|
|
|
|
|
const data = this.model.res.data;
|
|
|
|
|
//this.locCode = data.locCode;
|
|
|
|
|
this.num = parseFloat(data.scanAmount);
|
|
|
|
|
//this.TheItem.scanAmount = this.TheItem.scanAmount + 1;
|
|
|
|
|
//this.barCode = '';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
num: any = '';
|
|
|
|
|
SunmitList: any = [];
|
|
|
|
|
Add() {
|
|
|
|
@ -192,10 +231,18 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
this.customToast(this.$t('message.Warehouse_Tip6') as any);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (!this.barCode) {
|
|
|
|
|
this.customToast(this.$t('message.barcode_PleaseScan') as any);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (!this.Loc) {
|
|
|
|
|
this.customToast(this.$t('message.Warehouse_Tip2') as any);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
// if (!this.Loc) {
|
|
|
|
|
// this.customToast(this.$t('message.Warehouse_Tip2') as any);
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
if (!this.num) {
|
|
|
|
|
this.customToast(this.$t('message.Summary_PleaseInputNumber') as any);
|
|
|
|
|
return;
|
|
|
|
@ -225,9 +272,12 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
scanAmount: this.TheItem.orderAmount,
|
|
|
|
|
wlCode: this.Loc.value,
|
|
|
|
|
nowAmount: this.num,
|
|
|
|
|
barCode: this.barCode,
|
|
|
|
|
};
|
|
|
|
|
this.SunmitList.push(obj);
|
|
|
|
|
this.num = '';
|
|
|
|
|
this.barCode = '';
|
|
|
|
|
//this.locCode = '';
|
|
|
|
|
console.log('this.model.dnNoList', this.model.dnNoList);
|
|
|
|
|
}
|
|
|
|
|
deleteItem(e: any) {
|
|
|
|
@ -272,6 +322,8 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
empty() {
|
|
|
|
|
this.dnNo = '';
|
|
|
|
|
this.LocList = [];
|
|
|
|
|
this.barCode = '';
|
|
|
|
|
//this.locCode = '';
|
|
|
|
|
this.Loc = {};
|
|
|
|
|
this.TheItem = {};
|
|
|
|
|
this.ItemIndex = 0;
|
|
|
|
@ -405,7 +457,7 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
.material-right-title {
|
|
|
|
|
width: 140rpx;
|
|
|
|
|
width: 200rpx;
|
|
|
|
|
height: 100%;
|
|
|
|
|
line-height: 100rpx;
|
|
|
|
|
}
|
|
|
|
|