退料数据问题

master
hou 3 years ago
parent eefeb6494d
commit 394da1ab36

@ -164,7 +164,8 @@ export default class returningDom extends BasePage {
let sendSpot = JSON.parse(localStorage.getItem('sendSpot') as any); let sendSpot = JSON.parse(localStorage.getItem('sendSpot') as any);
if (JSON.parse(sessionStorage.getItem('data') as any)) { if (JSON.parse(sessionStorage.getItem('data') as any)) {
this.data = JSON.parse(sessionStorage.getItem('data') as any); this.data = JSON.parse(sessionStorage.getItem('data') as any);
this.form.prdOrder = this.data.label; console.log('this.data',this.data)
this.prdOrder = this.data.label;
this.form.wlName = this.data.value; this.form.wlName = this.data.value;
this.form.sendSpot = this.data.sendSpot; this.form.sendSpot = this.data.sendSpot;
// this.form.amount = this.data.amount; // this.form.amount = this.data.amount;

@ -163,7 +163,7 @@ export default class dnReceiptDom extends BasePage {
this.customToast(this.$t('message.Commission_tips1') as any); this.customToast(this.$t('message.Commission_tips1') as any);
return; return;
} }
await this.model.queryOrderInInfo(this.form.documentNo.trim()); await this.model.queryOrderInInfo(this.form.documentNo);
if (model.code == '1') { if (model.code == '1') {
uni.showToast({ uni.showToast({
icon: 'success', icon: 'success',

@ -50,23 +50,12 @@ import model from './model';
@Component @Component
export default class rawMaterialInventory extends BasePage { export default class rawMaterialInventory extends BasePage {
/**
* 表单引用
*/
@Ref('form') readonly $form!: VForm; @Ref('form') readonly $form!: VForm;
/**
* 页面Module
*/
model = model; model = model;
index() { index() {
this.toPage(this.page.raw.index); this.toPage(this.page.raw.index);
} }
status = false; status = false;
/**
* 表单数据
*/
form = { form = {
// //
pddNo: null, pddNo: null,
@ -75,19 +64,14 @@ export default class rawMaterialInventory extends BasePage {
productDescZh: null, productDescZh: null,
// //
spQty: null, spQty: null,
// cboPlace: {} as OptionType,
}; };
cboPlaceSelect = false; cboPlaceSelect = false;
rules: VFormRules<any> = { rules: VFormRules<any> = {
pddNo: [{ required: true, message: this.$t('message.dn_PleaseScan') as string }], pddNo: [{ required: true, message: this.$t('message.dn_PleaseScan') as string }],
// cboPlace: [{ required: true, message: this.$t('message.Warehouse_Tip10') as string }], // cboPlace: [{ required: true, message: this.$t('message.Warehouse_Tip10') as string }],
}; };
value = ''; value = '';
show = false; show = false;
// //
async checkRawProductCode(productCode: string) { async checkRawProductCode(productCode: string) {
let result = await model.checkRawProductCode({ let result = await model.checkRawProductCode({
@ -104,11 +88,9 @@ export default class rawMaterialInventory extends BasePage {
model.checkRawCreateInfo(this.form); model.checkRawCreateInfo(this.form);
} }
} }
//
async checkRawOrderComplete() { async checkRawOrderComplete() {
await model.checkRawOrderComplete(this.form.pddNo); await model.checkRawOrderComplete(this.form.pddNo);
} }
// onReadyonLoad // onReadyonLoad
onReady() { onReady() {
this.$form.setRules(this.rules); this.$form.setRules(this.rules);

Loading…
Cancel
Save