Browse Source

新增--默认供应商代码

master_hella_20240701
wangyufei 5 months ago
parent
commit
a246f0ffe9
  1. 16
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

16
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -458,6 +458,10 @@ const handleImport = () => {
if(item.field == 'orderType'){
item.componentProps.disabled = false
}
if(item.field == 'supplierCode'){
//
item.value = defaultSupplierCode.value
}
})
}
@ -479,6 +483,17 @@ const handleImport = () => {
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()
@ -914,6 +929,7 @@ const importSuccess = () => {
/** 初始化 **/
onMounted(async () => {
getList()
getDefaultSupplier()
importTemplateData.templateUrl = await SupplierinvoiceRequestMainApi.importTemplate()
})
</script>

Loading…
Cancel
Save