|
|
|
@ -70,8 +70,8 @@
|
|
|
|
|
<u-button type="error" @click="uni.navigateBack({})">{{ $t('message.po_Return') }}</u-button>
|
|
|
|
|
</u-col>
|
|
|
|
|
<u-col :span="6">
|
|
|
|
|
<u-button type="primary" @click="submit">{{ $t('message.InventoryFinish') }} </u-button></u-col
|
|
|
|
|
>
|
|
|
|
|
<u-button type="primary" @click="submit">{{ $t('message.InventoryFinish') }} </u-button>
|
|
|
|
|
</u-col>
|
|
|
|
|
</u-row>
|
|
|
|
|
</u-form>
|
|
|
|
|
</view>
|
|
|
|
@ -97,7 +97,7 @@ export default class KanDanHandOver extends BasePage {
|
|
|
|
|
Some: any = {};
|
|
|
|
|
MaterialList: any = [];
|
|
|
|
|
Barcode: any = '';
|
|
|
|
|
qty = 0;
|
|
|
|
|
qty: any = 0;
|
|
|
|
|
SubmitOrderlist: any = [];
|
|
|
|
|
Container: any = '';
|
|
|
|
|
SomeIndex = 0;
|
|
|
|
@ -176,7 +176,7 @@ export default class KanDanHandOver extends BasePage {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (this.qty > this.Container.qty - this.Container.cpRef4) {
|
|
|
|
|
if (this.qty > this.Container.qty - parseFloat(this.Container.cpRef4)) {
|
|
|
|
|
this.customToast(this.$t('message.AppendMateriel3') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -185,21 +185,25 @@ export default class KanDanHandOver extends BasePage {
|
|
|
|
|
if (this.SubmitOrderlist.length != 0) {
|
|
|
|
|
this.SubmitOrderlist.forEach((item: any) => {
|
|
|
|
|
if (item.barCode == this.Container.barcode) {
|
|
|
|
|
num += item.qty;
|
|
|
|
|
num += parseFloat(item.qty);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (this.qty + num > this.Some.qty) {
|
|
|
|
|
console.log('qty', this.qty);
|
|
|
|
|
console.log('num', num);
|
|
|
|
|
console.log(parseFloat(this.qty) + num);
|
|
|
|
|
console.log(this.Some.qty);
|
|
|
|
|
if (parseFloat(this.qty) + num > this.Some.qty) {
|
|
|
|
|
this.customToast(this.$t('message.demandQuantity') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (this.Container.cpRef4 == null) {
|
|
|
|
|
if (this.qty + num > this.Container.qty) {
|
|
|
|
|
if (parseFloat(this.qty) + num > this.Container.qty) {
|
|
|
|
|
this.customToast(this.$t('message.AppendMateriel3') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (this.qty + num > this.Container.qty - this.Container.cpRef4) {
|
|
|
|
|
if (parseFloat(this.qty) + num > this.Container.qty - this.Container.cpRef4) {
|
|
|
|
|
this.customToast(this.$t('message.AppendMateriel3') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -210,10 +214,10 @@ export default class KanDanHandOver extends BasePage {
|
|
|
|
|
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].orderType = '2';
|
|
|
|
|
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].qty = this.qty;
|
|
|
|
|
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].barCode = this.Container.barcode;
|
|
|
|
|
this.model.orderInInfoList[this.SomeIndex].totalqty += parseFloat(this.qty);
|
|
|
|
|
this.qty = 0;
|
|
|
|
|
this.Container = '';
|
|
|
|
|
this.Barcode = '';
|
|
|
|
|
this.model.orderInInfoList[this.SomeIndex].totalqty += this.qty;
|
|
|
|
|
}
|
|
|
|
|
deleteItem(e: any) {
|
|
|
|
|
uni.showModal({
|
|
|
|
@ -300,13 +304,16 @@ export default class KanDanHandOver extends BasePage {
|
|
|
|
|
font-size: 34rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
flex: 3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.left,
|
|
|
|
|
.right {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
@ -321,23 +328,28 @@ export default class KanDanHandOver extends BasePage {
|
|
|
|
|
padding: 40rpx;
|
|
|
|
|
border-radius: 10rpx;
|
|
|
|
|
box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
|
|
|
|
|
|
|
|
|
|
.u-form-item {
|
|
|
|
|
padding: 30rpx 0;
|
|
|
|
|
line-height: 35rpx;
|
|
|
|
|
|
|
|
|
|
.single {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
.single-left {
|
|
|
|
|
width: 80%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
view {
|
|
|
|
|
width: 110rpx;
|
|
|
|
|
height: 100%;
|
|
|
|
|
line-height: 100rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.single-right {
|
|
|
|
|
button {
|
|
|
|
|
margin-top: 15rpx;
|
|
|
|
@ -347,12 +359,14 @@ export default class KanDanHandOver extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.add {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100rpx;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 478px;
|
|
|
|
|
left: 0;
|
|
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 3rpx;
|
|
|
|
@ -360,23 +374,28 @@ export default class KanDanHandOver extends BasePage {
|
|
|
|
|
z-index: 10000;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.newly {
|
|
|
|
|
display: flex;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.single {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
.single-left {
|
|
|
|
|
width: 80%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
view {
|
|
|
|
|
width: 110rpx;
|
|
|
|
|
height: 100%;
|
|
|
|
|
line-height: 100rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.single-right {
|
|
|
|
|
button {
|
|
|
|
|
margin-top: 15rpx;
|
|
|
|
@ -385,12 +404,14 @@ export default class KanDanHandOver extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
margin-bottom: 40rpx;
|
|
|
|
|
color: #1a1a1a;
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.button-bar {
|
|
|
|
|
position: fixed;
|
|
|
|
|
bottom: 0;
|
|
|
|
|