|
@@ -1919,6 +1919,13 @@ watch(computedVendor, () => {
|
|
computedVendor.value.Payment_Terms.length
|
|
computedVendor.value.Payment_Terms.length
|
|
) {
|
|
) {
|
|
form.value.Supplier_Payment_Terms = computedVendor.value.Payment_Terms
|
|
form.value.Supplier_Payment_Terms = computedVendor.value.Payment_Terms
|
|
|
|
+ // 选择供应商后, 对应的currency赋值到界面的Currency选项.
|
|
|
|
+ const temp: any[] = vendorList.value.filter(
|
|
|
|
+ (i) => i.value === form.value.currentVendor,
|
|
|
|
+ )
|
|
|
|
+ if (temp.length) {
|
|
|
|
+ form.value.Currency = temp[0].Currency || 'CNY'
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|