|
@ -682,7 +682,7 @@ const formRef = ref() |
|
|
const supplierdeliverFormRef = ref() |
|
|
const supplierdeliverFormRef = ref() |
|
|
|
|
|
|
|
|
const openForm = async (type: string, row?: number) => { |
|
|
const openForm = async (type: string, row?: number) => { |
|
|
supplierdeliverFormRef.value.openForm(type, row) |
|
|
supplierdeliverFormRef.value.openForm(type, row,defaultSupplierCode.value) |
|
|
// if(type == "update"){ |
|
|
// if(type == "update"){ |
|
|
// SupplierdeliverRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
// SupplierdeliverRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
// if(item.field == 'supplierCode'){ |
|
|
// if(item.field == 'supplierCode'){ |
|
@ -1176,9 +1176,21 @@ const formFormDateChange = (field, val, row, index) => { |
|
|
row.supplierBatch = produceDateStr |
|
|
row.supplierBatch = produceDateStr |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
const defaultSupplierCode = ref('') |
|
|
|
|
|
const getDefaultSupplier = async ()=>{ |
|
|
|
|
|
let supplier = await SupplierApi.getSupplierPageSCP({isSearch:false}) |
|
|
|
|
|
if(supplier.list&&supplier.list.length>0){ |
|
|
|
|
|
defaultSupplierCode.value = supplier.list[0]['code'] |
|
|
|
|
|
}else{ |
|
|
|
|
|
defaultSupplierCode.value = '' |
|
|
|
|
|
} |
|
|
|
|
|
console.log('defaultSupplierCode',defaultSupplierCode) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** 初始化 **/ |
|
|
/** 初始化 **/ |
|
|
onMounted(async () => { |
|
|
onMounted(async () => { |
|
|
|
|
|
getDefaultSupplier() |
|
|
|
|
|
|
|
|
getList() |
|
|
getList() |
|
|
importTemplateData.templateUrl = await SupplierdeliverRequestMainApi.importTemplate() |
|
|
importTemplateData.templateUrl = await SupplierdeliverRequestMainApi.importTemplate() |
|
|
}) |
|
|
}) |
|
|