|
|
|
@ -50,23 +50,12 @@ import model from './model';
|
|
|
|
|
|
|
|
|
|
@Component
|
|
|
|
|
export default class rawMaterialInventory extends BasePage {
|
|
|
|
|
/**
|
|
|
|
|
* 表单引用
|
|
|
|
|
*/
|
|
|
|
|
@Ref('form') readonly $form!: VForm;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 页面Module
|
|
|
|
|
*/
|
|
|
|
|
model = model;
|
|
|
|
|
index() {
|
|
|
|
|
this.toPage(this.page.raw.index);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
status = false;
|
|
|
|
|
/**
|
|
|
|
|
* 表单数据
|
|
|
|
|
*/
|
|
|
|
|
form = {
|
|
|
|
|
// 盘点单号
|
|
|
|
|
pddNo: null,
|
|
|
|
@ -75,19 +64,14 @@ export default class rawMaterialInventory extends BasePage {
|
|
|
|
|
productDescZh: null,
|
|
|
|
|
// 盘点数量
|
|
|
|
|
spQty: null,
|
|
|
|
|
|
|
|
|
|
// cboPlace: {} as OptionType,
|
|
|
|
|
};
|
|
|
|
|
cboPlaceSelect = false;
|
|
|
|
|
|
|
|
|
|
rules: VFormRules<any> = {
|
|
|
|
|
pddNo: [{ required: true, message: this.$t('message.dn_PleaseScan') as string }],
|
|
|
|
|
// cboPlace: [{ required: true, message: this.$t('message.Warehouse_Tip10') as string }],
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
value = '';
|
|
|
|
|
show = false;
|
|
|
|
|
|
|
|
|
|
// 扫描物料号检查
|
|
|
|
|
async checkRawProductCode(productCode: string) {
|
|
|
|
|
let result = await model.checkRawProductCode({
|
|
|
|
@ -104,11 +88,9 @@ export default class rawMaterialInventory extends BasePage {
|
|
|
|
|
model.checkRawCreateInfo(this.form);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
async checkRawOrderComplete() {
|
|
|
|
|
await model.checkRawOrderComplete(this.form.pddNo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 必须要在onReady生命周期,因为onLoad生命周期组件可能尚未创建完毕
|
|
|
|
|
onReady() {
|
|
|
|
|
this.$form.setRules(this.rules);
|
|
|
|
|