Kaynağa Gözat

change: 创建payment record页面. 接口参数调整.

peter 1 yıl önce
ebeveyn
işleme
18279373c1
1 değiştirilmiş dosya ile 8 ekleme ve 8 silme
  1. 8 8
      src/pages/payment-record/index.vue

+ 8 - 8
src/pages/payment-record/index.vue

@@ -373,18 +373,18 @@ const save = function () {
   }
   const formData = tableData.value.map((i, index) => {
     const result: any = {
-      unit_price: i.unit_price,
-      quantity: i.quantity,
-      sample_fee: i.sample_fee,
-      setup_service_fee: i.setup_service_fee,
-      total: i.total,
-      currency: i.currency,
-      description: i.description,
+      Unit_Price: i.unit_price,
+      Quantity: i.quantity,
+      Sample_Fee: i.sample_fee,
+      Setup_Service_Fee: i.setup_service_fee,
+      Total: i.total,
+      Currency: i.currency,
+      Description: i.description,
       PO_id: i.po_number,
       Statement: { name: i.statement_name, id: i.statement_id },
       Request_Type: '月结申请',
       Name: '/',
-      Unit_Price_Non_Currency: i.unit_price.toString(),
+      Unit_Price_Non_Currency: i.unit_price ? i.unit_price.toString() : '',
       Owner: '',
       Payment_Status: 'Pending Verify',
       Batch_number: new Date().getTime().toString(),