|
|
|
@ -168,15 +168,15 @@
|
|
|
|
|
<view class="form4">
|
|
|
|
|
<view class="poupitem">
|
|
|
|
|
<view class="pouptitle">已登记数量:</view>
|
|
|
|
|
<u-input disabled class="poupcontent" :clearable="false" v-model="operationNumber" placeholder="" style="overflow: hidden;background-color: #ddd;" />
|
|
|
|
|
<u-input disabled class="poupcontent" :clearable="false" v-model="operationNumber" placeholder="" style="overflow: hidden; background-color: #ddd" />
|
|
|
|
|
</view>
|
|
|
|
|
<view class="poupitem">
|
|
|
|
|
<view class="pouptitle">未登记数量:</view>
|
|
|
|
|
<u-input disabled class="poupcontent" :clearable="false" v-model="nooperationNumber" placeholder="" style="overflow: hidden;background-color: #ddd;" />
|
|
|
|
|
<u-input disabled class="poupcontent" :clearable="false" v-model="nooperationNumber" placeholder="" style="overflow: hidden; background-color: #ddd" />
|
|
|
|
|
</view>
|
|
|
|
|
<view class="poupitem">
|
|
|
|
|
<view class="pouptitle">登记数量:</view>
|
|
|
|
|
<u-input class="poupcontent" type="number" :clearable="false" v-model="czNumber" placeholder="" style="overflow: hidden" />
|
|
|
|
|
<u-input class="poupcontent" :clearable="false" v-model="czNumber" placeholder="" style="overflow: hidden" />
|
|
|
|
|
</view>
|
|
|
|
|
<view class="poupbutton" style="margin-top: 10px">
|
|
|
|
|
<div>
|
|
|
|
@ -214,7 +214,7 @@ export default class receivePO extends BasePage {
|
|
|
|
|
receivedlist: any = [];
|
|
|
|
|
operationNumber = 0;
|
|
|
|
|
nooperationNumber = 0;
|
|
|
|
|
czNumber = 0;
|
|
|
|
|
czNumber = '';
|
|
|
|
|
// receivedlist=[{
|
|
|
|
|
// orderStatus:'1',
|
|
|
|
|
// procureCode:'111',
|
|
|
|
@ -320,7 +320,7 @@ export default class receivePO extends BasePage {
|
|
|
|
|
this.singshow = false;
|
|
|
|
|
this.operationNumber = 0;
|
|
|
|
|
this.nooperationNumber = 0;
|
|
|
|
|
this.czNumber = 0;
|
|
|
|
|
this.czNumber = '';
|
|
|
|
|
}
|
|
|
|
|
//点击收货按钮,录入批次(或系统自动生成)、数量、托盘码进行收货。
|
|
|
|
|
async onOk() {
|
|
|
|
@ -531,12 +531,12 @@ export default class receivePO extends BasePage {
|
|
|
|
|
let params = {
|
|
|
|
|
factoryCode: session.FactoryCode,
|
|
|
|
|
id: this.list[0].id,
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
await this.model.selectArrivalRegistration(params);
|
|
|
|
|
if (this.model.singcode == 200) {
|
|
|
|
|
this.singshow = true;
|
|
|
|
|
this.operationNumber = model.singobj.operationNumber;
|
|
|
|
|
this.nooperationNumber =model.singobj.planNumber - model.singobj.operationNumber
|
|
|
|
|
this.nooperationNumber = model.singobj.planNumber - model.singobj.operationNumber;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//到货登记确定提交
|
|
|
|
@ -548,10 +548,11 @@ export default class receivePO extends BasePage {
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if ( this.czNumber == 0) {
|
|
|
|
|
if (parseFloat(this.czNumber) == 0 || this.czNumber == '') {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '登记数量不能为0',
|
|
|
|
|
title: '填写登记数量且不能为0',
|
|
|
|
|
type: 'default',
|
|
|
|
|
duration: 4000,
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -565,10 +566,10 @@ export default class receivePO extends BasePage {
|
|
|
|
|
//console.log('99999',params);
|
|
|
|
|
await this.model.ArrivalRegistration(params);
|
|
|
|
|
if (this.model.Arrivalcode == 200) {
|
|
|
|
|
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '成功',
|
|
|
|
|
type: 'success',
|
|
|
|
|
duration: 4000,
|
|
|
|
|
});
|
|
|
|
|
this.nopoupsing();
|
|
|
|
|
}
|
|
|
|
|