|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
<!-- 订单号 -->
|
|
|
|
|
<u-form-item :required="true" :label="$t('message.Pi_OrderNo')" prop="prdOrder">
|
|
|
|
|
<u-search :placeholder="$t('message.po_PleaseInput')" v-model.trim="form.prdOrder" @search="query" :show-action="false"></u-search>
|
|
|
|
|
<u-button size="mini" style="margin-left: 10rpx" type="primary" @click="screen">{{ $t('message.screen') }}</u-button>
|
|
|
|
|
<u-button size="mini" style="margin-left: 10rpx" type="primary" @click="screen">{{ $t('message.screen') }} </u-button>
|
|
|
|
|
<!-- <jPicker
|
|
|
|
|
sureColor="#ff0000"
|
|
|
|
|
style="width: 230rpx"
|
|
|
|
@ -25,8 +25,7 @@
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 物料号 -->
|
|
|
|
|
<u-form-item :required="true" :label="$t('message.Pi_materielNo')" prop="materialCode">
|
|
|
|
|
<u-input v-model="form.materialCode" type="select" @click="materialCodeSelect = true" :placeholder="$t('message.po_PleaseInput')" />
|
|
|
|
|
<u-select :confirm-text="$t('message.product_Confirm')" :cancel-text="$t('message.product_Cancel')" v-model="materialCodeSelect" :list="model.materielList" @confirm="materialConfirm"></u-select>
|
|
|
|
|
<jPicker sureColor="#ff0000" style="width: 230rpx" @bindpicker="materialConfirm" showKey="value" valKey="value" :val="materieCode.value" class="search" :options="model.materielList" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 工位 -->
|
|
|
|
|
<u-form-item :label="$t('message.Pi_Station')">
|
|
|
|
@ -48,12 +47,12 @@
|
|
|
|
|
<!-- 工厂 -->
|
|
|
|
|
<u-row gutter="0">
|
|
|
|
|
<u-col :span="6">
|
|
|
|
|
<u-form-item :label="$t('message.QuantityReturned')" prop="sapFactoryCode">
|
|
|
|
|
<u-input style="flex: 0.9" :disabled="true" v-model="form.totalBackAmount" placeholder="" />
|
|
|
|
|
<u-form-item :label="$t('message.Summary_Number')" prop="sapFactoryCode">
|
|
|
|
|
<u-input style="flex: 0.9" :disabled="true" v-model="materielAmount" placeholder="" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
</u-col>
|
|
|
|
|
<u-col :span="6">
|
|
|
|
|
<u-form-item :required="true" :label="$t('message.Summary_Number')" prop="amount" label-width="80rpx">
|
|
|
|
|
<u-form-item :required="true" :label="$t('message.the')" prop="amount" label-width="80rpx">
|
|
|
|
|
<u-input v-model="form.amount" :border="border" type="number" :placeholder="$t('message.po_PleaseInput')" style="margin-left: 12px" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
</u-col>
|
|
|
|
@ -123,8 +122,10 @@ export default class returningDom extends BasePage {
|
|
|
|
|
wlCode: '' as any,
|
|
|
|
|
totalBackAmount: '0',
|
|
|
|
|
};
|
|
|
|
|
materielAmount: any = '';
|
|
|
|
|
prdOrder: any = [];
|
|
|
|
|
wlCode: any = '';
|
|
|
|
|
materieCode: any = '';
|
|
|
|
|
Location: any = [];
|
|
|
|
|
/**
|
|
|
|
|
* 工位退料人名称
|
|
|
|
@ -155,6 +156,8 @@ export default class returningDom extends BasePage {
|
|
|
|
|
this.form.materialCode = this.model.orderInInfo.materialCode;
|
|
|
|
|
this.form.sendSpot = this.model.orderInInfo.sendSpot;
|
|
|
|
|
this.form.totalBackAmount = this.model.orderInInfo.totalBackAmount;
|
|
|
|
|
this.materielAmount = this.model.orderInInfo.amount;
|
|
|
|
|
this.materieCode = this.model.materielList[0];
|
|
|
|
|
}
|
|
|
|
|
LocationChoice(e: any) {
|
|
|
|
|
this.wlCode = e.pickerName;
|
|
|
|
@ -198,11 +201,12 @@ export default class returningDom extends BasePage {
|
|
|
|
|
this.$form.resetFields();
|
|
|
|
|
}
|
|
|
|
|
materialConfirm(v: any) {
|
|
|
|
|
this.form.materialCode = v[0].value;
|
|
|
|
|
this.materieCode = v.pickerName;
|
|
|
|
|
this.model.materielList.forEach((item: any) => {
|
|
|
|
|
if (this.form.materialCode == item.label) {
|
|
|
|
|
if (this.materieCode.value == item.label) {
|
|
|
|
|
this.form.sendSpot = item.sendSpot;
|
|
|
|
|
this.form.totalBackAmount = item.totalBackAmount;
|
|
|
|
|
this.materielAmount = item.amount;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -210,25 +214,16 @@ export default class returningDom extends BasePage {
|
|
|
|
|
* 上传
|
|
|
|
|
*/
|
|
|
|
|
onSubmit() {
|
|
|
|
|
if (this.form.amount > this.model.orderInInfo.amount) {
|
|
|
|
|
if (parseFloat(this.form.amount) > parseFloat(this.materielAmount)) {
|
|
|
|
|
this.customToast(this.$t('message.return_Tip4') as string);
|
|
|
|
|
} else {
|
|
|
|
|
this.$form.validate(async (valid: boolean) => {
|
|
|
|
|
if (!valid) return;
|
|
|
|
|
// if (!this.model.orderInInfo.sapFactoryCode) {
|
|
|
|
|
// this.customToast(this.$t('message.return_Tip2') as string);
|
|
|
|
|
// }
|
|
|
|
|
// (this.form.sendSpot as any) = this.model.orderInInfo.sendSpot;
|
|
|
|
|
(this.form.sapFactoryCode as any) = this.model.orderInInfo.sapFactoryCode;
|
|
|
|
|
// delete this.form.wlName;
|
|
|
|
|
this.form.wlCode = this.wlCode.label;
|
|
|
|
|
await this.model.tluSubmit(this.form);
|
|
|
|
|
// this.$form.resetFields();
|
|
|
|
|
this.operatorName = '';
|
|
|
|
|
// this.form.sendSpot = '';
|
|
|
|
|
// this.form.wkposCode = '';
|
|
|
|
|
this.model.orderInInfo.sapFactoryCode = '';
|
|
|
|
|
// this.model.materielList = [];
|
|
|
|
|
this.model.materielList.length = 0;
|
|
|
|
|
this.empty();
|
|
|
|
|
});
|
|
|
|
@ -276,13 +271,16 @@ export default class returningDom extends BasePage {
|
|
|
|
|
font-size: 34rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
flex: 3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.left,
|
|
|
|
|
.right {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
@ -302,6 +300,7 @@ export default class returningDom extends BasePage {
|
|
|
|
|
padding: 30rpx 0;
|
|
|
|
|
line-height: 35rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.newly {
|
|
|
|
|
display: flex;
|
|
|
|
|
}
|
|
|
|
|