Selaa lähdekoodia

feat: 创建PO.根据所选供应商currency变更页面表单currency.

peter 3 kuukautta sitten
vanhempi
commit
52eefae58f
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7 0
      src/pages/purchase-order/edit.vue

+ 7 - 0
src/pages/purchase-order/edit.vue

@@ -1919,6 +1919,13 @@ watch(computedVendor, () => {
     computedVendor.value.Payment_Terms.length
   ) {
     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'
+    }
   }
 })