|
|
@ -11,7 +11,7 @@
|
|
|
|
<u-row align="top">
|
|
|
|
<u-row align="top">
|
|
|
|
<u-col :span="12">
|
|
|
|
<u-col :span="12">
|
|
|
|
<!-- MRP -->
|
|
|
|
<!-- MRP -->
|
|
|
|
<u-form-item :required="true" label="MRP" prop="mrpCodeRegion">
|
|
|
|
<u-form-item :required="mrpFlag" label="MRP" prop="mrpCodeRegion">
|
|
|
|
<u-input v-model="form.mrpCodeRegion" :border="border" :placeholder="$t('message.po_PleaseInput')" />
|
|
|
|
<u-input v-model="form.mrpCodeRegion" :border="border" :placeholder="$t('message.po_PleaseInput')" />
|
|
|
|
</u-form-item>
|
|
|
|
</u-form-item>
|
|
|
|
<!-- 订单号 -->
|
|
|
|
<!-- 订单号 -->
|
|
|
@ -116,6 +116,10 @@ export default class pickingDom extends BasePage {
|
|
|
|
* 表单是否改变
|
|
|
|
* 表单是否改变
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
isFormChange = false;
|
|
|
|
isFormChange = false;
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 9a61跟9a62设置成非必填
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
mrpFlag = true;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 选择项显示
|
|
|
|
* 选择项显示
|
|
|
@ -130,6 +134,9 @@ export default class pickingDom extends BasePage {
|
|
|
|
mrpCodeRegion: [{ required: true, message: this.$t('message.Pi_InputMrp') as string }],
|
|
|
|
mrpCodeRegion: [{ required: true, message: this.$t('message.Pi_InputMrp') as string }],
|
|
|
|
sapFactoryCode: [{ required: true, message: this.$t('message.Pi_InputFactory') as string }],
|
|
|
|
sapFactoryCode: [{ required: true, message: this.$t('message.Pi_InputFactory') as string }],
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
mrpRules = {
|
|
|
|
|
|
|
|
sapFactoryCode: [{ required: true, message: this.$t('message.Pi_InputFactory') as string }],
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 生成表单参数
|
|
|
|
* 生成表单参数
|
|
|
@ -185,9 +192,17 @@ export default class pickingDom extends BasePage {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 必须要在onReady生命周期,因为onLoad生命周期组件可能尚未创建完毕
|
|
|
|
// 必须要在onReady生命周期,因为onLoad生命周期组件可能尚未创建完毕
|
|
|
|
onReady() {
|
|
|
|
onReady() {
|
|
|
|
this.$form.setRules(this.rules);
|
|
|
|
if (session.factoryCode == '9A61' || session.factoryCode == '9A62') {
|
|
|
|
|
|
|
|
this.mrpFlag = false;
|
|
|
|
|
|
|
|
this.$form.setRules(this.mrpRules);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.mrpFlag = true;
|
|
|
|
|
|
|
|
this.$form.setRules(this.rules);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
model.clearProOrderList();
|
|
|
|
model.clearProOrderList();
|
|
|
|
this.form.sapFactoryCode = session.factoryCode;
|
|
|
|
this.form.sapFactoryCode = session.factoryCode;
|
|
|
|
|
|
|
|
|
|
|
|
//this.form.requireDateRegion = this.getNowFormatDate();
|
|
|
|
//this.form.requireDateRegion = this.getNowFormatDate();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// getNowFormatDate() {
|
|
|
|
// getNowFormatDate() {
|
|
|
|