|
@ -458,6 +458,10 @@ const handleImport = () => { |
|
|
if(item.field == 'orderType'){ |
|
|
if(item.field == 'orderType'){ |
|
|
item.componentProps.disabled = false |
|
|
item.componentProps.disabled = false |
|
|
} |
|
|
} |
|
|
|
|
|
if(item.field == 'supplierCode'){ |
|
|
|
|
|
//默认供应商代码 |
|
|
|
|
|
item.value = defaultSupplierCode.value |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -479,6 +483,17 @@ const handleImport = () => { |
|
|
formRef.value.open(type, row) |
|
|
formRef.value.open(type, row) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
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) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取部门 用于详情 部门回显 |
|
|
// 获取部门 用于详情 部门回显 |
|
|
const { wsCache } = useCache() |
|
|
const { wsCache } = useCache() |
|
@ -914,6 +929,7 @@ const importSuccess = () => { |
|
|
/** 初始化 **/ |
|
|
/** 初始化 **/ |
|
|
onMounted(async () => { |
|
|
onMounted(async () => { |
|
|
getList() |
|
|
getList() |
|
|
|
|
|
getDefaultSupplier() |
|
|
importTemplateData.templateUrl = await SupplierinvoiceRequestMainApi.importTemplate() |
|
|
importTemplateData.templateUrl = await SupplierinvoiceRequestMainApi.importTemplate() |
|
|
}) |
|
|
}) |
|
|
</script> |
|
|
</script> |
|
|