|
|
|
@ -10,7 +10,7 @@
|
|
|
|
|
<u-form class="form" ref="form" :model="form" :error-type="['toast']" label-width="150rpx">
|
|
|
|
|
<!-- 订单号 -->
|
|
|
|
|
<u-form-item :required="true" :label="$t('message.Pi_OrderNo')" prop="prdOrder">
|
|
|
|
|
<u-search :placeholder="$t('message.po_PleaseInput')" v-model.trim="prdOrder" @search="model.queryOrderInInfo" :show-action="false"></u-search>
|
|
|
|
|
<u-search :placeholder="$t('message.po_PleaseInput')" v-model.trim="form.prdOrder" @search="model.queryOrderInInfo" :show-action="false"></u-search>
|
|
|
|
|
<u-button size="mini" style="margin-left: 10rpx" type="primary" @click="screen">{{ $t('message.screen') }}</u-button>
|
|
|
|
|
<!-- <jPicker
|
|
|
|
|
sureColor="#ff0000"
|
|
|
|
@ -42,7 +42,7 @@
|
|
|
|
|
v-model="form.wkposCode"
|
|
|
|
|
:placeholder="this.$t('message.po_PleaseInput')"
|
|
|
|
|
/> -->
|
|
|
|
|
<jPicker sureColor="#ff0000" style="width: 230rpx" @bindpicker="LocationChoice" showKey="value" valKey="value" :val="wlCode" class="search" :options="Location" />
|
|
|
|
|
<jPicker sureColor="#ff0000" style="width: 230rpx" @bindpicker="LocationChoice" showKey="value" valKey="value" :val="wlCode.value" class="search" :options="Location" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- 工厂 -->
|
|
|
|
@ -119,7 +119,7 @@ export default class returningDom extends BasePage {
|
|
|
|
|
// tlName: null, // 退料类型name
|
|
|
|
|
materialCode: null, // 物料类型code
|
|
|
|
|
wlName: '', // 物料类型name
|
|
|
|
|
wlCode: '',
|
|
|
|
|
wlCode: '' as any,
|
|
|
|
|
totalBackAmount: '0',
|
|
|
|
|
};
|
|
|
|
|
prdOrder: any = [];
|
|
|
|
@ -151,7 +151,7 @@ export default class returningDom extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
LocationChoice(e: any) {
|
|
|
|
|
console.log('e>>>>>>>>>>>>>>>>>>>>>>>>', e);
|
|
|
|
|
this.form.wlCode = e.pickerName.label;
|
|
|
|
|
this.wlCode = e.pickerName;
|
|
|
|
|
this.form.wkposCode = e.pickerName.sendSpot;
|
|
|
|
|
}
|
|
|
|
|
// 必须要在onReady生命周期,因为onLoad生命周期组件可能尚未创建完毕
|
|
|
|
@ -164,8 +164,7 @@ export default class returningDom extends BasePage {
|
|
|
|
|
let sendSpot = JSON.parse(localStorage.getItem('sendSpot') as any);
|
|
|
|
|
if (JSON.parse(sessionStorage.getItem('data') as any)) {
|
|
|
|
|
this.data = JSON.parse(sessionStorage.getItem('data') as any);
|
|
|
|
|
console.log('this.data',this.data)
|
|
|
|
|
this.prdOrder = this.data.label;
|
|
|
|
|
this.form.prdOrder = this.data.label;
|
|
|
|
|
this.form.wlName = this.data.value;
|
|
|
|
|
this.form.sendSpot = this.data.sendSpot;
|
|
|
|
|
// this.form.amount = this.data.amount;
|
|
|
|
@ -222,12 +221,13 @@ export default class returningDom extends BasePage {
|
|
|
|
|
} else {
|
|
|
|
|
this.$form.validate(async (valid: boolean) => {
|
|
|
|
|
if (!valid) return;
|
|
|
|
|
if (!this.model.orderInInfo.sapFactoryCode) {
|
|
|
|
|
this.customToast(this.$t('message.return_Tip2') as string);
|
|
|
|
|
}
|
|
|
|
|
// 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 = '';
|
|
|
|
|